cancel
Showing results for 
Search instead for 
Did you mean: 

AJAX Category Picker suggestions

hbf
Champ on-the-rise
Champ on-the-rise
Dear Alfresco engineers,

I've just taken a look at the latest AJAX Category Picker that is in the development version of Alfresco (SVN r1427).

First of all, thanks for bringing an improved category picker in the next release of Alfresco! This is very welcome and the work is much appreciated! – I keep hearing from our content editors that it is very, very time-consuming to change a node's tagging with the V2.1 Category Picker.

I would also like to suggest an improvement. The new picker is still based on selecting a *single* category at a time. After you have selected it, you add it to the list. From what I hear from our editors, this is exactly the weak point of the old, V2.1 Picker! As soon as editors need to add many categories, this strategy becomes almost unusable, you have to click and confirm so much.

What about this: With the very nice AJAX interface that you have now (SVN), you show checkboxes for the tags at the current level (or a UISelectMany). This would make allow for multiple categories to be added at a time and would make the category picker much more useful in my opinion.

(I know that the current architecture (AbstractItemSelector) does not allow for more than one selected item, so I see that it means quite some work… Still, people judge Alfresco also by its usability so I think it would be more than worth the effort!)

Maybe others can comment on this and tell their wishes?

I hope to be able to help with this feedback and thanks again for the work,
Kaspar

P.S. Actually, our editors would prefer a hierarchical UISelectMany list where they initially see the current tags as selected lines and can select the lines (= categories) they want to have. I understand that this is not such a good idea as the category hierarchy can be large, etc. I think the latest AJAX browser with checkboxes would be very nice!
9 REPLIES 9

mikeh
Star Contributor
Star Contributor
Hi

Thanks for the feedback - always appreciated.

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.

Thanks,
Mike

hbf
Champ on-the-rise
Champ on-the-rise
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?

mikeh
Star Contributor
Star Contributor
…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..?)

Mike

kevinr
Star Contributor
Star Contributor
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?

In Alfresco 2.1 the Advanced Search picker is not using the new Ajax multi-select features - it is only present in 2.9.

Kevin

hbf
Champ on-the-rise
Champ on-the-rise
Kevin and Mike, sorry for the confusion.

I only saw the new AJAX category picker in HEAD on nodes (not on the Advanced Search page).

But it's wonderful to hear that in the future the multi-select features will be enabled on the node editor, too!

Thanks for the feedback!
Kaspar

gilles
Champ in-the-making
Champ in-the-making
About Category internationalisation, in the ALFCOM-1086 opened bug, one says that:
At the moment this is supported by internationalising the loaded files.
. I can't find the way to do that. Could someone point me?

BTW, I think that this is a very usefull feature missing; how could we help?

Thanks,
Gilles

jayjayecl
Confirmed Champ
Confirmed Champ
Is there any way to get a "Generator" which would be just like this ajax category selector  ?
I would like to use it in the web-client-config-custom.xml …
I tried designing it, but I failed.

Here is what I did (from various classes, like CategorySelectorGenerator - the ugly one-, and AjaxTagPickerGenerator …)


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;
   }
  
}
‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍

nicolasraoul
Star Contributor
Star Contributor
Am I missing something, or the multi-selection category chooser did not make it into Alfresco 3.2?

For each category I want to add, I have to
1) Click "Select…"
2) Click "Click here to select a Category"
3) Navigate and click on the "+"
4) Click on "Add to list"

Categories are a great feature, but I feel the UI could be much more efficient.

nicolasraoul
Star Contributor
Star Contributor
Actually, a different kind of category picker can be seen in the "Advanced search" dialog. It is not more intuitive, but it has multiple select:

1) Click "Click here to select a Category"
2) Navigate and click on the "+" for as many categories as you want
3) Click "OK"
4) Click on "Add to list"