[ 
http://jira.nuxeo.org/browse/NXP-2513?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=53285#action_53285
 ] 

Anahide Tchertchian commented on NXP-2513:
------------------------------------------

http://hg.nuxeo.org/nuxeo/nuxeo-jsf/rev/d173e27e9411
http://hg.nuxeo.org/nuxeo/nuxeo-jsf/rev/3be92a962011

work done:

- remove hackish jsf templating feature usage to manage iterations over layout 
rows, layout row widgets and subwidgets: iterating over the layout row/row 
widgets/widget subwidgets (resolved through variables put in context) is 
clearer and makes it possible to handle several levels of subwidgets iterations.
- save a list state so that it's restored correctly when it's in a list too 
(UIEditableList save/restore mechanism)
- discovered that the same template can be included in itself, provided there's 
no cycle (thanks to 

important stuff to notice about lists of list: the template used for list 
widget cannot be reused as is at each level for the following reasons:
- a4j:region tags cannot be included in each other => the first list template 
is the only one that can hold this tag
- ui:inputList inclusion is not possible as is: the variable used for model 
name has to be different so that there is no confusion in the iteration
- in case of document models, the ui:inputList template value has to be 
resolved using the property path from the start of the hierarchy: current field 
value is not enough to find the actual document model field (and thus its 
default value)

=> added a sample list_subwidget_template.xhtml in default template, it can be 
used only at first sub level but can be taken as an example for a sub-sub list.


> Can't add a list subwidget to a complex widget template
> -------------------------------------------------------
>
>                 Key: NXP-2513
>                 URL: http://jira.nuxeo.org/browse/NXP-2513
>             Project: Nuxeo Enterprise Platform
>          Issue Type: Bug
>          Components: Web UI
>    Affects Versions: 5.2 M1
>            Reporter: Thomas Roger
>            Assignee: Anahide Tchertchian
>             Fix For: 5.2 GA
>
>         Attachments: afpProduct.xsd, layout-contrib.xml, NXP-2513.diff
>
>   Original Estimate: 1 week
>  Remaining Estimate: 1 week
>
> When adding a list subwidget in a complex widgent template, I get the 
> following exception:
>  ERROR [[Faces Servlet]] Servlet.service() for servlet Faces Servlet threw 
> exception
> java.lang.StackOverflowError
>         at 
> com.sun.facelets.el.VariableMapperWrapper.resolveVariable(VariableMapperWrapper.java:58)
>         at 
> com.sun.facelets.el.VariableMapperWrapper.resolveVariable(VariableMapperWrapper.java:58)
>         at 
> com.sun.facelets.el.VariableMapperWrapper.resolveVariable(VariableMapperWrapper.java:58)
>         at 
> com.sun.facelets.el.VariableMapperWrapper.resolveVariable(VariableMapperWrapper.java:58)
>         at 
> com.sun.facelets.el.VariableMapperWrapper.resolveVariable(VariableMapperWrapper.java:58)
>         at 
> com.sun.facelets.el.VariableMapperWrapper.resolveVariable(VariableMapperWrapper.java:58)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.nuxeo.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        
_______________________________________________
ECM-tickets mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm-tickets

Reply via email to