You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Stefan Meyer (JIRA)" <de...@myfaces.apache.org> on 2009/05/06 08:14:30 UTC

[jira] Created: (TRINIDAD-1468) nested ui:repeat does not work with facesbean

nested ui:repeat does not work with facesbean
---------------------------------------------

                 Key: TRINIDAD-1468
                 URL: https://issues.apache.org/jira/browse/TRINIDAD-1468
             Project: MyFaces Trinidad
          Issue Type: Bug
          Components: Components
    Affects Versions:  1.2.11-core
            Reporter: Stefan Meyer
            Priority: Critical


I have a nested ui:repeat like this:

							    <ui:repeat var="item" value="#{context.selectItemListRows}">
							    	<tr>
								    <ui:repeat var="item" value="#{row}">
								    	<td>
									    	<h:outputLabel for="itemSelector" styleClass="#{item.selected ? 'active' : ''}">
										    	<tr:selectBooleanCheckbox simple="true" id="itemSelector" value="#{item.selected}"/>
										    	<h:outputText value="#{item.label}"/>
										    </h:outputLabel>
								    	</td>
							    	</ui:repeat>
							    	</tr>
							    </ui:repeat>

Everything works fine except that updates to the DataModel (nested list in this case) are not reflected in the value of the stamped checkbox component. This is because the value exists as a local property in the FacesBean. Otherwise the expression evaluation would return a differnent value.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (TRINIDAD-1468) nested ui:repeat does not work with facesbean

Posted by "Stefan Meyer (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/TRINIDAD-1468?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12706315#action_12706315 ] 

Stefan Meyer commented on TRINIDAD-1468:
----------------------------------------

of course this might be a facelets problem

> nested ui:repeat does not work with facesbean
> ---------------------------------------------
>
>                 Key: TRINIDAD-1468
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-1468
>             Project: MyFaces Trinidad
>          Issue Type: Bug
>          Components: Components
>    Affects Versions:  1.2.11-core
>            Reporter: Stefan Meyer
>            Priority: Critical
>
> I have a nested ui:repeat like this:
> 							    <ui:repeat var="item" value="#{context.selectItemListRows}">
> 							    	<tr>
> 								    <ui:repeat var="item" value="#{row}">
> 								    	<td>
> 									    	<h:outputLabel for="itemSelector" styleClass="#{item.selected ? 'active' : ''}">
> 										    	<tr:selectBooleanCheckbox simple="true" id="itemSelector" value="#{item.selected}"/>
> 										    	<h:outputText value="#{item.label}"/>
> 										    </h:outputLabel>
> 								    	</td>
> 							    	</ui:repeat>
> 							    	</tr>
> 							    </ui:repeat>
> Everything works fine except that updates to the DataModel (nested list in this case) are not reflected in the value of the stamped checkbox component. This is because the value exists as a local property in the FacesBean. Otherwise the expression evaluation would return a differnent value.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (TRINIDAD-1468) nested ui:repeat does not work with facesbean

Posted by "Andrew Robinson (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/TRINIDAD-1468?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12707051#action_12707051 ] 

Andrew Robinson commented on TRINIDAD-1468:
-------------------------------------------

ui:repeat has always had some issues, this is most likely a facelets bug. Try using tr:iterator instead

> nested ui:repeat does not work with facesbean
> ---------------------------------------------
>
>                 Key: TRINIDAD-1468
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-1468
>             Project: MyFaces Trinidad
>          Issue Type: Bug
>          Components: Components
>    Affects Versions:  1.2.11-core
>            Reporter: Stefan Meyer
>            Priority: Critical
>
> I have a nested ui:repeat like this:
> 							    <ui:repeat var="item" value="#{context.selectItemListRows}">
> 							    	<tr>
> 								    <ui:repeat var="item" value="#{row}">
> 								    	<td>
> 									    	<h:outputLabel for="itemSelector" styleClass="#{item.selected ? 'active' : ''}">
> 										    	<tr:selectBooleanCheckbox simple="true" id="itemSelector" value="#{item.selected}"/>
> 										    	<h:outputText value="#{item.label}"/>
> 										    </h:outputLabel>
> 								    	</td>
> 							    	</ui:repeat>
> 							    	</tr>
> 							    </ui:repeat>
> Everything works fine except that updates to the DataModel (nested list in this case) are not reflected in the value of the stamped checkbox component. This is because the value exists as a local property in the FacesBean. Otherwise the expression evaluation would return a differnent value.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.