You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by marqpdx <mi...@tinorb.com> on 2006/04/12 01:02:48 UTC
MyFaces, Tiles and Renaming Elements
We have an issue trying to use Ajax with Tiles and MyFaces.
Imagine:
<f:subview id="content">
<tiles:insert attribute="body" flush="false"/>
</f:subview>
Inside the body, there is an element id'd "selectTable" - a lot of Ajax
depends on that ID being unchanged. But, tiles changes it to
content:selectTable
That messes up a lot of stuff.
Any way around that?? Any way to turn off that renaming of my elements by
Faces and Tiles???
Thanks,
m
--
View this message in context: http://www.nabble.com/MyFaces%2C-Tiles-and-Renaming-Elements-t1435144.html#a3872637
Sent from the MyFaces - Users forum at Nabble.com.
Re: MyFaces, Tiles and Renaming Elements
Posted by Mike Kienenberger <mk...@gmail.com>.
On 4/11/06, marqpdx <mi...@tinorb.com> wrote:
> We have an issue trying to use Ajax with Tiles and MyFaces.
>
> Imagine:
> <f:subview id="content">
> <tiles:insert attribute="body" flush="false"/>
> </f:subview>
>
> Inside the body, there is an element id'd "selectTable" - a lot of Ajax
> depends on that ID being unchanged. But, tiles changes it to
> content:selectTable
>
> That messes up a lot of stuff.
>
> Any way around that?? Any way to turn off that renaming of my elements by
> Faces and Tiles???
content:selectTable comes from JSF and not from Tiles.
subview is a naming container, so anything enclosed in it is going to
be prefixed by "content:"
Do you really need a subview enclosing your insert?
Re: MyFaces, Tiles and Renaming Elements
Posted by Matthias Wessendorf <mw...@gmail.com>.
> depends on that ID being unchanged. But, tiles changes it to
> content:selectTable
as mike pointed out, this comes from JSF
you may try the MyFaces' specific forceID. See [1] as an example
(source code for the jsf page is visible)
[1] http://www.irian.at/myfaces/forceId.jsf
-Matthias