You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Tomas Havelka (JIRA)" <de...@myfaces.apache.org> on 2008/11/21 10:58:45 UTC

[jira] Issue Comment Edited: (TRINIDAD-1319) c:forEach does not work within tr:table

    [ https://issues.apache.org/jira/browse/TRINIDAD-1319?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12649634#action_12649634 ] 

havis edited comment on TRINIDAD-1319 at 11/21/08 1:58 AM:
-------------------------------------------------------------------

Yes, I've tried that, but this does not solve the problem either. It renderers panelList with just one item in which all list items (from #{app.properties} list) are concatenated to single string. I think, panelList (and other components like panelTabbed, panelRadio, etc.) needs tr:forEach (which acts as loop) to iterate over nested collection instead of tr:iterator (which acts as single component). But, c:forEach seems not work same as tr:forEach for any situations.

      was (Author: havis):
    Yes, I've tried that, but this does not solve the problem either. It renderers panelList with just one item in which all list items (from #{app.properties} list) are concatenated to single string. I think, panelList (and other components like panelTabbed, selectOneRadio, etc.) needs tr:forEach (which acts as loop) to iterate over nested collection instead of tr:iterator (which acts as single component). But, c:forEach seems not work same as tr:forEach for any situations.
  
> c:forEach does not work within tr:table
> ---------------------------------------
>
>                 Key: TRINIDAD-1319
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-1319
>             Project: MyFaces Trinidad
>          Issue Type: Bug
>          Components: Facelets
>    Affects Versions: 1.0.10-core
>         Environment: Facelets 1.1.14, Trinidad 1.0.10, Orchestra 1.3
>            Reporter: Tomas Havelka
>
> I found, that c:forEach tag from JSTL dos not work within some Trinidad components. In code above, no items are listed using c:forEach tag in tr:table component:
>       <tr:table rowBandingInterval="1" value="#{oxViewController.model}" var="app" width="100%">
>         <tr:column headerText="Code" sortable="true" sortProperty="code" width="35%">
>           <tr:outputText value="#{app.code}"/>
>         </tr:column>
>         <tr:column headerText="Name" sortable="true" sortProperty="name">
>           <tr:outputText value="#{app.name}"/>
>         </tr:column>
>         <f:facet name="detailStamp">
>           <tr:panelList>
>             <c:forEach items="#{app.properties}" var="property">
>               <tr:outputText value="#{property.name}" shortDesc="#{property.description}"/>
>               <tr:outputText value=" [required]" inlineStyle="color:red" rendered="#{property.required}"/>
>             </c:forEach>
>           </tr:panelList>
>         </f:facet>
>       </tr:table>

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