• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Rob Spoor
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Junilu Lacar
  • Tim Cooke
Saloon Keepers:
  • Tim Holloway
  • Piet Souris
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Frits Walraven
  • Himai Minh

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

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
This tiny ad is wafer thin:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic