You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Hans Meusch (JIRA)" <de...@myfaces.apache.org> on 2005/11/10 11:13:03 UTC

[jira] Created: (MYFACES-803) Same problem with the t:datatable ...

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


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


[jira] Updated: (MYFACES-803) Same problem with the t:datatable ...

Posted by "Hans Meusch (JIRA)" <de...@myfaces.apache.org>.
     [ 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


[jira] Closed: (MYFACES-803) Same problem with the t:datatable ...

Posted by "Bruno Aranda (JIRA)" <de...@myfaces.apache.org>.
     [ http://issues.apache.org/jira/browse/MYFACES-803?page=all ]
     
Bruno Aranda closed MYFACES-803:
--------------------------------

    Resolution: Invalid

> 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


[jira] Commented: (MYFACES-803) Same problem with the t:datatable ...

Posted by "Bruno Aranda (JIRA)" <de...@myfaces.apache.org>.
    [ http://issues.apache.org/jira/browse/MYFACES-803?page=comments#action_12357731 ] 

Bruno Aranda commented on MYFACES-803:
--------------------------------------

The fix for MYFACES-827 now allows to use other components different to UIPanel (and similar) as children for the facet. The popup in your example could now work, because the outputText in the facet was not included in a panelGroup. Now it should work with the SVN and the next nightly build.

Regards,

> 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