aspose file tools*
The moose likes JSF and the fly likes Facelets template/composition without name atribute Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Facelets template/composition without name atribute" Watch "Facelets template/composition without name atribute" New topic
Author

Facelets template/composition without name atribute

Vadim Vararu
Ranch Hand

Joined: Jan 03, 2009
Posts: 147
I've read that: "A template client (composition in my case) can refrain from using <ui:define> tags in their body. So in this case, it will be injected in any template <ui:insert> without name".

So, i have the template:


and the client:


According to what i've read, the "Hello! I am composition inserted" string should appear three time, cause we have 3 nameless <ui:insert> tag in template, but it's displayed just once. Why?


If you think you've done too much, usually it means you've done too few.
Akaine Harga
Ranch Hand

Joined: Nov 03, 2009
Posts: 80

Before we move to conclusions, I'd recommend integrating the last facelets version which is unlike the official page says actually is v1.1.15.B1. Had tons of bugs similar to yours while was using v1.1.14.

Another thing is that you shouldn't be able to see the page at all but an exception for duplicating ids.


Wanna install linux on a vacuum cleaner. Could anyone tell me which distro sucks better?
willCodeForFood("Java,PHP,C#,XML,VBS,XHTML,CSS,JavaScript,SQL"); //always looking for job opportunities in AU/NZ/US/CA/Europe :P
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Facelets template/composition without name atribute