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
signature.asc
Description: OpenPGP digital signature

