dev@javaserverfaces.java.net

Re: composite component issue

From: Kito Mann <kito.mann_at_virtua.com>
Date: Tue, 22 Jun 2010 13:21:21 -0400

Hello Saulius,

How did you reference the file? For example, if the file is mypage.xhtml,
did you reference it through the browser as http://localhost:8080/mypage.jsf?
If not, the page wasn't being processed by JSF, which could cause the
problem you are describing.

---
Kito D. Mann | twitter: kito99 | Author, JSF in Action
Virtua, Inc. | http://www.virtua.com | JSF/Java EE training and consulting
http://www.JSFCentral.com - JavaServer Faces FAQ, news, and info | twitter:
jsfcentral
+1 203-404-4848 x3
Sign up for the JSFCentral newsletter: http://oi.vresp.com/?fid=ac048d0e17
On Tue, Jun 22, 2010 at 11:36 AM, Saulius Adamonis
<saulius.adamonis_at_gmx.de>wrote:
> Hi everybody!
>
> I've been trying to develop an own composite-component in my JSF2.0 project
> but there are some mysterious problems I just can't figure out.
>
> I did everything exactly as described in all the tutorials and books about
> JSF, so I
>
> 1. created a namespace xmlns:ts="http://java.sun.com/jsf/composite/tscomp"
> 2. created the file loginPanel.xhtml (with the composite:interface and
> composite:implementation stuff) in /web/resources/tscomp
> 3. put the tag <ts:loginPanel /> where I wanted the component to be
> displayed
>
> My IDE (Netbeans 6.8) recognizes the component and autocompletes it while
> typing, so I guess there should be nothing wrong so far. But when I deploy
> the project, nothing is being displayed at that place. In the
> HTML-sourcecode you can still find the untouched
> <ts:loginPanel></ts:loginPanel>-tag instead though.
>
> the implementation of the component is just a pure text:
>
> ...
> <composite:interface>
> </composite:interface>
>
> <composite:implementation>
>  some text here.
> </composite:implementation>
> ...
>
> Does anybody maybe have an idea what I'm doing wrong?
>
> Thanks in advance and excuse me for my rather poor English!
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_javaserverfaces.dev.java.net
> For additional commands, e-mail: dev-help_at_javaserverfaces.dev.java.net
>
>