Hi,
I have done some changes to the chainSelect component:
1. Partial Ajax Support
For the Add selection button, the <h:commandButton> should be replaced with
with the fragment below:
(this is required not only for ajax support - but also because of refactoring: I have moved the action listener code to
a seam component registered under "chainSelectActions" name)
<a4j:commandButton value="#{messages['command.add']}"
immediate="true" actionListener="#{chainSelectActions.add}"
reRender="unitesSelection" />
I have done the required changes for GEIDE (groupatelier, themes and document
type admin interface)
Unfortunately, because of classloading problems, I could not use Ajax for the Remove buttons (these buttons have to be
created dynamically).
2. Fix displayValueOnly attribute support.
for this, you have to add displayValueOnly="true" to the outer tag, and also remove the "Add" button from code, or hide
it - maybe using rendered="#{condition}"
If you display other html/components inside the outer tag, you also have to take care of hiding it in displayValueOnly
mode if appropriate.
_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm