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 10:15:03 UTC

[jira] Created: (MYFACES-802) datalist component - problem when iterating components with facet inside!?

datalist component - problem when iterating components with facet inside!?
--------------------------------------------------------------------------

         Key: MYFACES-802
         URL: http://issues.apache.org/jira/browse/MYFACES-802
     Project: MyFaces
        Type: Bug
  Components: Tomahawk  
 Environment: WIN XP, Tomcat 5.0, Eclipse 3.0
    Reporter: Hans Meusch


Hi,
I've a problem with the datalist component:

The Code:
<t:dataList value="#{projectBenefitBean.data11}" var="benefit">
  <x:popup ...>
    <h:outputText value=#{benefit.description}"/>
     <f:facet name="popup">
            <h:outputText value="#{benefit.description}" />
      </f:facet>
  </x:popup>
</t:dataList>

The Problem:
All variables used inside the facet seem to stay on the first value of 
the iterated list.
The means for the above shown example:
- the first benefit.description shows all the items correctly
- the second description (inside the facet) shows the first item only.
- using the h:datatable - h:column component instead works fine.

Thank you...
Hans



-- 
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-802) datalist component - problem when iterating components with facet inside!?

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

Bruno Aranda commented on MYFACES-802:
--------------------------------------

I cannot reproduce your problem. Also note that you are mixing the prefix t and x (both refer to tomahawk components) in your code snippet. 
But your problem has allow me to discover a secondary issue Until now, the facet of the popup component only accepted UIPanel components (or another component with children). A facet can only have one child. I've just commited a fix to accept other components that do not have children nested in the facet (as the outputText in your example). If the facet has more than one component, this components have to be wrapped in a panelGroup component.

> datalist component - problem when iterating components with facet inside!?
> --------------------------------------------------------------------------
>
>          Key: MYFACES-802
>          URL: http://issues.apache.org/jira/browse/MYFACES-802
>      Project: MyFaces
>         Type: Bug
>   Components: Tomahawk
>  Environment: WIN XP, Tomcat 5.0, Eclipse 3.0
>     Reporter: Hans Meusch

>
> Hi,
> I've a problem with the datalist component:
> The Code:
> <t:dataList value="#{projectBenefitBean.data11}" var="benefit">
>   <x:popup ...>
>     <h:outputText value=#{benefit.description}"/>
>      <f:facet name="popup">
>             <h:outputText value="#{benefit.description}" />
>       </f:facet>
>   </x:popup>
> </t:dataList>
> The Problem:
> All variables used inside the facet seem to stay on the first value of 
> the iterated list.
> The means for the above shown example:
> - the first benefit.description shows all the items correctly
> - the second description (inside the facet) shows the first item only.
> - using the h:datatable - h:column component instead works fine.
> Thank you...
> Hans

-- 
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-802) datalist component - problem when iterating components with facet inside!?

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

    Resolution: Invalid

> datalist component - problem when iterating components with facet inside!?
> --------------------------------------------------------------------------
>
>          Key: MYFACES-802
>          URL: http://issues.apache.org/jira/browse/MYFACES-802
>      Project: MyFaces
>         Type: Bug
>   Components: Tomahawk
>  Environment: WIN XP, Tomcat 5.0, Eclipse 3.0
>     Reporter: Hans Meusch

>
> Hi,
> I've a problem with the datalist component:
> The Code:
> <t:dataList value="#{projectBenefitBean.data11}" var="benefit">
>   <x:popup ...>
>     <h:outputText value=#{benefit.description}"/>
>      <f:facet name="popup">
>             <h:outputText value="#{benefit.description}" />
>       </f:facet>
>   </x:popup>
> </t:dataList>
> The Problem:
> All variables used inside the facet seem to stay on the first value of 
> the iterated list.
> The means for the above shown example:
> - the first benefit.description shows all the items correctly
> - the second description (inside the facet) shows the first item only.
> - using the h:datatable - h:column component instead works fine.
> Thank you...
> Hans

-- 
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-802) datalist component - problem when iterating components with facet inside!?

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

Bruno Aranda commented on MYFACES-802:
--------------------------------------

The fix for MYFACES-827 now allows to use other components different to UIPanel (and similar) as children for the facet. 

> datalist component - problem when iterating components with facet inside!?
> --------------------------------------------------------------------------
>
>          Key: MYFACES-802
>          URL: http://issues.apache.org/jira/browse/MYFACES-802
>      Project: MyFaces
>         Type: Bug
>   Components: Tomahawk
>  Environment: WIN XP, Tomcat 5.0, Eclipse 3.0
>     Reporter: Hans Meusch

>
> Hi,
> I've a problem with the datalist component:
> The Code:
> <t:dataList value="#{projectBenefitBean.data11}" var="benefit">
>   <x:popup ...>
>     <h:outputText value=#{benefit.description}"/>
>      <f:facet name="popup">
>             <h:outputText value="#{benefit.description}" />
>       </f:facet>
>   </x:popup>
> </t:dataList>
> The Problem:
> All variables used inside the facet seem to stay on the first value of 
> the iterated list.
> The means for the above shown example:
> - the first benefit.description shows all the items correctly
> - the second description (inside the facet) shows the first item only.
> - using the h:datatable - h:column component instead works fine.
> Thank you...
> Hans

-- 
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