>>>>> On Tue, 22 Jun 2010 17:36:05 +0200, Saulius Adamonis <saulius.adamonis_at_gmx.de> said:
SA> Hi everybody!
SA> I've been trying to develop an own composite-component in my JSF2.0
SA> project but there are some mysterious problems I just can't figure out.
SA> I did everything exactly as described in all the tutorials and books
SA> about JSF, so I
SA> 1. created a namespace xmlns:ts="
http://java.sun.com/jsf/composite/tscomp"
SA> 2. created the file loginPanel.xhtml (with the composite:interface and
SA> composite:implementation stuff) in /web/resources/tscomp
SA> 3. put the tag <ts:loginPanel /> where I wanted the component to be
SA> displayed
SA> My IDE (Netbeans 6.8) recognizes the component and autocompletes it
SA> while typing, so I guess there should be nothing wrong so far. But when
SA> I deploy the project, nothing is being displayed at that place. In the
SA> HTML-sourcecode you can still find the untouched
SA> <ts:loginPanel></ts:loginPanel>-tag instead though.
Can you please share a listing of the files in the WAR?
Something you get by doing
find . -type f -print
from the top level of the exploded war.
Or, if you're not using an exploded war, you can just do jar.tf on the
war.
SA> the implementation of the component is just a pure text:
SA> ...
SA> <composite:interface>
SA> </composite:interface>
SA> <composite:implementation>
SA> some text here.
SA> </composite:implementation>
SA> ...
SA> Does anybody maybe have an idea what I'm doing wrong?
This looks fine to me.
>>>>> On Wed, 23 Jun 2010 09:17:34 -0400, Mike Kienenberger <mkienenb_at_gmail.com> said:
MK> Have you created a taglib.xml file containing your component and added
MK> the path to that file to your web.xml file? Something like the
MK> following...
Mike, you specifically don't need that to do a composite component. The
lack of necessity for a .taglib.xml file is one of the most important
features for composite components.
Ed
--
| edburns_at_oracle.com | office: +1 407 458 0017
| homepage: | http://ridingthecrest.com/
| 13 Work Days Til JSF 2.1 Milestone 1