-
1. Re: Richfaces, Myfaces and Tiles
sergeysmirnov Mar 8, 2007 1:23 AM (in response to stingray)So, you have a problem with modalPanel, but not with RichFaces is general.
The Richfaces.showModalPanel() function accepts the id of the html tag, but not the id of the component. If you follow the common recommendations and use subview for included tiles, the id of the tag will not correspond to the id of the component.
For example, if you have:
<f:subview id="body">
<rich:modalPanel id="mypanel" .... />
</f:subview>
the id will be "body:mypanel", but not just "mypanel". The Richfaces.showModalPanel() requires exactly the "body:mypanel". So, pay attention of the real id you have on the page.
Not only subview changes the result id. h:form also works like this. If you point to the wrong id, the javascript error should occur -
2. Re: Richfaces, Myfaces and Tiles
stingray Mar 8, 2007 2:20 AM (in response to stingray)Thanks a lot for your answer!
It works now!
Best regards
Thomas