aspose file tools*
The moose likes JSF and the fly likes Custom facelets component to include page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Custom facelets component to include page" Watch "Custom facelets component to include page" New topic
Author

Custom facelets component to include page

Steven De Groote
Greenhorn

Joined: Nov 23, 2006
Posts: 16
Hi,

I'm in trouble with a fairly basic custom component I built (using JSF1.2 and facelets)
It's the same as the regular ui:include, but it renders its own children if the includefile cannot be found (instread of an exception like in ui:include).

Here is the code of the apply() function within my TagHandler:


Problem is though, that the code fails on the "this.nextHandler.apply(ctx, null), saying "Parent UIComponent is null.
It doesn't give me an error there when I make sure that the tag does not have any child tags...

Is there any facelets expert around here who knows what I'm doing wrong?
Thanks a lot in advance!


Web developer / SCEA / Owner http://www.f1technical.net
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Custom facelets component to include page
 
Similar Threads
Problems rendering custom component
Simple loop/function in XHTML page
Mystified by JSF 2 composition components
JSF : commandButton in dynamically loaded <ui:include> page doesn't work
Page section does not update after call of a4j:support in IE 9