01-11-2008 02:50 PM
01-11-2008 07:01 PM
01-11-2008 08:08 PM
Actually, this is something we're looking at already. You can see an example of the AJAX category picker in "multiple select" mode in the Advanced Search dialog - we just need to do some back-end work to enable this elsewhere.
01-12-2008 01:38 AM
…I hope I am not looking at the wrong picker?Sounds like you are; I'm talking about the AJAX category picker in HEAD (which is what I thought you were referring to before..?)
01-13-2008 02:26 PM
Actually, this is something we're looking at already. You can see an example of the AJAX category picker in "multiple select" mode in the Advanced Search dialog - we just need to do some back-end work to enable this elsewhere.
Great! I imagine we're not the only ones that would highly appreciate this!
P.S. By the way: The Advanced Search dialog in Alfresco 2.1 does not allow multiple select in the way I ment: You cannot with 5 clicks (say) select 5 categories at the current level and then hit "Add to List". You have to click at least 3 times to select the tag and then one more click onto "Add to List" for *each* of the 5 tags. That's a lot more work. – I hope I am not looking at the wrong picker?
01-16-2008 05:50 AM
05-22-2008 12:30 PM
At the moment this is supported by internationalising the loaded files.. I can't find the way to do that. Could someone point me?
06-05-2009 05:24 AM
public class AjaxCategoryPickerGenerator extends BaseComponentGenerator
{
public UIComponent generate(FacesContext context, String id)
{
UIComponent component = context.getApplication().
createComponent("org.alfresco.faces.AjaxCategoryPicker");
FacesHelper.setupComponentId(context, component, id);
return component;
}
@Override
@SuppressWarnings("unchecked")
protected UIComponent createComponent(FacesContext context, UIPropertySheet propertySheet,
PropertySheetItem item)
{
// the category selector component is used whatever mode the property sheet is in
return generate(context, item.getName());
}
@Override
protected void setupMandatoryValidation(FacesContext context, UIPropertySheet propertySheet,
PropertySheetItem item, UIComponent component, boolean realTimeChecking, String idSuffix)
{
if (component instanceof UIMultiValueEditor)
{
// Override the setup of the mandatory validation
// so we can send the _current_value id suffix.
// We also enable real time so the page load
// check disables the ok button if necessary, as the user
// adds or removes items from the multi value list the
// page will be refreshed and therefore re-check the status.
super.setupMandatoryValidation(context, propertySheet, item,
component, true, "_current_value");
}
else
{
// Override the setup of the mandatory validation
// so we can send the _selected id suffix.
// We also enable real time so the page load check disabled
// the ok button if necessary, as the control is used the
// page will be refreshed and therefore re-check the status.
super.setupMandatoryValidation(context, propertySheet, item,
component, true, "_selected");
}
}
@Override
protected ControlType getControlType()
{
return ControlType.SELECTOR;
}
@Override
protected UIComponent setupMultiValuePropertyIfNecessary(
FacesContext context, UIPropertySheet propertySheet,
PropertySheetItem property, PropertyDefinition propertyDef,
UIComponent component)
{
return component;
}
}
01-14-2010 05:36 AM
01-14-2010 05:59 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.