Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

facelets taglib problem  RSS feed

 
beppe scalese
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!

I'm having some problem creating an own facelets taglib.

I've created a ".xhtml" file as component(i.e. an inputBox) , the ".xml" file containing <facelet-taglib> tag comnfiguration and then I putted the <context-param> tag in the web.xml.
But, if I call the taglib from the main page using <xmlns:tagName = "url"> tag
the new tag is not recognized.

Is there anybody who could help me on this??

thanks in advance
 
Victor Bucutea
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,

it should work :

in web.xml i have :

<context-param>
<param-name>facelets.LIBRARIES</param-name>
<param-value>
/WEB-INF/facelets/jguard_1.1.0-beta4.taglib.xml
</param-value>
</context-param>


in faces-config.xml i have :

<component>
<component-type>ro.softspot.facelets.tld.PubCredentialComponent</component-type>
<component-class>ro.softspot.facelets.tld.PubCredentialComponent</component-class>
</component>

it works for me ;) . I won't post the taglib.xml because it irelevant .


Victor
 
beppe scalese
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
it works now.

Thank you very much!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!