wood burning stoves 2.0*
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
JavaRanch » Java Forums » Java » JSF
Bookmark "Custom facelets component to include page" Watch "Custom facelets component to include page" New topic

Custom facelets component to include page

Steven De Groote

Joined: Nov 23, 2006
Posts: 16

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
Mystified by JSF 2 composition components
JSF : commandButton in dynamically loaded <ui:include> page doesn't work
Simple loop/function in XHTML page
Problems rendering custom component
Page section does not update after call of a4j:support in IE 9