Thanks for the hint. I have done it and the generated ids are unique. But 
unfortunately it solves not my problem. When I have a tree in portlet 1 and a 
tabel with datascroller in portlet 2, I always get duplicated ids on the second 
interaction by the user in table or tree. I think its described here: 
https://issues.apache.org/jira/browse/PB-35

-----Ursprüngliche Nachricht-----
Von: Dave Brondsema [mailto:[EMAIL PROTECTED] 
Gesendet: Dienstag, 26. September 2006 21:33
An: MyFaces Discussion
Betreff: Re: JSF portlet bridge

O. Pfau wrote:
> Hi,
> 
> I have implemented some test JSF portlets briged with the myFaces bridge. I 
> have a problem to understand how the bridge is generating the ids. If I have 
> two ids "idComp1" and a nested id "idComp2" the id to address the inner 
> component is "idComp1:idComp2". In a portlet I think the id should be build 
> upon the scheme "<unique-portlet-id>:idComp1:idComp2" or something. If I have 
> more than one instance of the same portlet in a page, I think there will be 
> some trouble. Also the javascript code should be unique. I thought the bridge 
> will handle this in the case of ids or is my understanding faulty ?
> 
> Thanks,
> Oli

You "need to make sure that the parent-most naming-container in your app
has a dynamic id" [1] for it to work.  In other words, your top h:form
cannot specify an id, but let it be fully generated.  Then it will have
the portlet namespace as part of it.

[1] https://issues.apache.org/jira/browse/MYFACES-769#action_12365291
(Ignore the beginning of that issue.. it was before I understood how the
IDs worked)

-- 
Dave Brondsema
Software Developer
Cornerstone University

Reply via email to