[ http://issues.apache.org/jira/browse/MYFACES-803?page=all ]

Hans Meusch updated MYFACES-803:
--------------------------------

    Attachment: Result.txt

The file is the result of a comparison of the rendered page using a 
<h:datatable and a <t:datatable component:
-> the problem seems to be that in the case of the <t:datatable, the id of the 
popup is the same for all
( h: datatable:
'_id70:HANSJ:0:_id107'
'_id70:HANSJ:1:_id107'
....,
t:datatable:
_id70:HANSJ:_id107
_id70:HANSJ:_id107
...

-> might be the same issue with the datalist problem [MYFACES-802]
Greets,
Hans



> Same problem with the t:datatable ...
> -------------------------------------
>
>          Key: MYFACES-803
>          URL: http://issues.apache.org/jira/browse/MYFACES-803
>      Project: MyFaces
>         Type: Sub-task
>   Components: Tomahawk
>     Reporter: Hans Meusch
>  Attachments: Result.txt
>
> Same problem with dataTable: iteration is not done within facet - here: 
> benef.description is always the first element of the list.
> (Bug-Code)
> <t:dataTable value="#{projectBenefitBean.data11}" var="benef">
>       <h:column>
>               <x:popup styleClass="popup">
>       <h:outputText value="#{benef.description}"/>
>                    <f:facet name="popup">
>                       <h:panelGroup>
>                               <h:outputText value="#{benef.description}"/>
>                                       <h:commandLink 
> rendered="#{projectBenefitBean.mode == 0}"  styleClass="BENEFITBUTTON">
>                                               <f:param value="1" name="col"/>
>                                               <f:param value="1" name="row"/> 
>                                               <h:outputText value="changes"/>
>                                       </h:commandLink>
>                       </h:panelGroup>
>                     </f:facet>
>                 </x:popup>
>         </h:column>
> </t:dataTable>
> This code works fine ... (using h:datatable instead of t:datatable):
> <h:dataTable value="#{projectBenefitBean.data11}" var="benef">
>       <h:column>
>               <x:popup styleClass="popup">
>       <h:outputText value="#{benef.description}"/>
>                    <f:facet name="popup">
>                       <h:panelGroup>
>                               <h:outputText value="#{benef.description}"/>
>                                       <h:commandLink 
> rendered="#{projectBenefitBean.mode == 0}"  styleClass="BENEFITBUTTON">
>                                               <f:param value="1" name="col"/>
>                                               <f:param value="1" name="row"/> 
>                                               <h:outputText value="changes"/>
>                                       </h:commandLink>
>                       </h:panelGroup>
>                     </f:facet>
>                 </x:popup>
>         </h:column>
> </h:dataTable>

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

Reply via email to