Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Error trying to add composite component programmatically (“no tag was defined for name”)  RSS feed

 
Marcos APS
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm facing one of those errors that you're almost sure that you're not doing anything wrong, but the error simply won't go away, no mather what you do.

I have this composite component:

inputMask.xhtml


When I use it in a xhtml page like this:


Everything works fine. The component is rendered without problems and works well.

But when I try to add it programmatically, using OmniFaces Components#includeCompositeComponent, like this:


I get this error:


If I change the code to add the composite component to this (changing inputMask.xhtml to just inputMask):


I get this error instead:


I would like to have your help to solve this issue, because I've already tried many things but didn't have success.

I'm using Wildfly 10.1.0.Final (which comes with Mojarra 2.2.13)

PS.: I know Primefaces has an input mask component, but I wouldn't like to use Primefaces.

Cross-posted: http://stackoverflow.com/questions/39511065/error-trying-to-add-composite-component-programmatically-no-tag-was-defined-fo
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!