Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Custom facelets component to include page  RSS feed

Steven De Groote
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!