myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hansjörg Meuschel <hj...@gmx.de>
Subject Re: datalist component - problem when iterating components with facet inside!?
Date Thu, 10 Nov 2005 12:10:10 GMT
Hi,
I'm using the myfaces implementation ...

Martin Marinschek wrote:

>Do you use the RI or MyFaces as implementation?
>
>regards,
>
>Martin
>
>On 11/10/05, Hansjörg Meuschel <hjmeu@gmx.de> wrote:
>  
>
>>Yea thats it...
>>
>>generated popup-ids with h:datatable
>>'_id70:HANSJ:0:_id107'
>>'_id70:HANSJ:1:_id107'
>>
>>generated popup-ids with t:datatable / t:datalist
>>'_id70:HANSJ:_id107'
>>'_id70:HANSJ:_id107'
>>
>>-> all the same...
>>
>>What can I do to fix this? I already published it in JIRA but I need a
>>quick solution... Has anybody an idea??
>>
>>
>>
>>Yee CN wrote:
>>
>>    
>>
>>>I just fixed a problem with the same manifestation. In my case I was having
>>>two dataTables with the same id. The second dataTable is wrong in the same
>>>way that you described. Hope this help!
>>>
>>>Regards
>>>Yee
>>>
>>>-----Original Message-----
>>>From: Hansjörg Meuschel [mailto:hjmeu@gmx.de]
>>>Sent: Thursday, 10 November 2005 5:07 PM
>>>To: users@myfaces.apache.org
>>>Subject: datalist component - problem when iterating components with facet
>>>inside!?
>>>
>>>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.
>>>
>>>What's wrong here, does anybody know? I've already done some experiments
>>>with EL foreach - without success.
>>>Does anybody have a workarround for that issue?
>>>
>>>Thank you...
>>>Hans
>>>
>>>
>>>
>>>
>>>      
>>>
>>--
>>Mit freundlichen Grüßen,
>>
>>------------------------------
>> Hansjörg Meuschel
>> Martin-Treu-Str. 40
>> 90403 Nürnberg
>> Tel.   +49 (0)911 274 278 1
>> mobil: +49 (1)60 725 3479
>> mail:  hjmeu@gmx.de
>> http://www.meuschel.net
>>
>>
>>    
>>
>
>
>--
>
>http://www.irian.at
>
>Your JSF powerhouse -
>JSF Consulting, Development and
>Courses in English and German
>
>Professional Support for Apache MyFaces
>
>
>  
>


-- 
Mit freundlichen Grüßen,

------------------------------
 Hansjörg Meuschel
 Martin-Treu-Str. 40
 90403 Nürnberg
 Tel.   +49 (0)911 274 278 1
 mobil: +49 (1)60 725 3479
 mail:  hjmeu@gmx.de
 http://www.meuschel.net


Mime
View raw message