You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Legolas Woodland <le...@gmail.com> on 2006/01/05 13:05:40 UTC

[Studio Creator]How to use 3rd party taglib in jsf pages

Hi
Thank you for reading my post.
Can some one please help me to add a taglib to my jsf page ?
Im using Creator 2 EA 2 , I add all jar files to its build path and also 
to web-inf/lib
now when i add the taglib definition to a page it say :
The markup in the document preceeding the root element must be well formed

Here is how i add the taglib which IDE return the above error :
*Image 1*


now if i move the taglib definition after Root element it say :
*Image2*

Is it a problem regard to Chart Creator tag lib , or JSF has its own 
method of declaring taglib uri ?

Thank you



Re: [Studio Creator]How to use 3rd party taglib in jsf pages

Posted by Laurie Harper <la...@holoweb.net>.
Legolas Woodland wrote:
> Hi
> Thank you for reading my post.
> Can some one please help me to add a taglib to my jsf page ?
> Im using Creator 2 EA 2 , I add all jar files to its build path and also 
> to web-inf/lib
> now when i add the taglib definition to a page it say :
> The markup in the document preceeding the root element must be well formed
> 
> Here is how i add the taglib which IDE return the above error :
> *Image 1*
> 
> 
> now if i move the taglib definition after Root element it say :
> *Image2*
> 
> Is it a problem regard to Chart Creator tag lib , or JSF has its own 
> method of declaring taglib uri ?

You're trying to mix JSP syntax and XML syntax. You should be declaring 
the taglib with the XML namespace (xmlns) syntax, the same way the other 
taglibs are already referenced:

   <jsp:root ... xmlns:c="http://some/url">

where 'http://some/url' is whatever URL is defined in the TLD file.

L.