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
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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Custom facelets component to include page