Great!
I believe the tabSet also works by separating the content to multiple
pages and having each tab navigate to one of those pages. This requires
you to keep the implementation of the tabset on each page the same (good
use case for #include).
Ken
Todd Patrick wrote:
> Ken: I printed out the list and this worked:
>
> <rave:page id="page">
> <rave:html id="html">
> <rave:head id="head" title="$resource{i18n.peTree}" />
> <rave:body>
> <rave:form id="form">
> <rave:tabSet id="tabs">
> <rave:tab id="tabTree" value="tree">
> <rave:tree id="tree"
> text="Example Tree" url="/wherever.jsf"
>
> imageURL="images/open.gif" target="targetFrame"
> clientSide="#{true}">
> <rave:treeNode
> id="treeNode1" text="Tree Node 1"
> text="Tree Node
> 1" url="/wherever.jsf"
>
> imageURL="images/closed.gif" target="targetFrame" />
> <rave:treeNode
> text="Tree Node 2">
> <rave:treeNode
> text="Tree Node 3" />
> <rave:treeNode
> text="Tree Node 4">
>
> <rave:treeNode text="Tree Node 5" />
>
> <rave:treeNode text="Tree Node 6" />
> </rave:treeNode>
> </rave:treeNode>
> <rave:treeNode
> text="Tree Node 7" />
> </rave:tree>
> </rave:tab>
> <rave:tab id="tabLink" value="link">
> <rave:hyperlink text="whatever">
> <!command
> setAttribute(key="foo" value="bar");
> println(value="I'm setting a request
> attribute named foo to $attribute{foo}.");
> />
> </rave:hyperlink>
> <rave:staticText value="The
> value of foo is: #{foo}" />
> </rave:tab>
> </rave:tabSet>
> </rave:form>
> </rave:body>
> </rave:html>
> </rave:page>
>
> Thank you!
>
> --Todd
>
> -----Original Message-----
> From: Ken.Paulsen_at_Sun.COM [mailto:Ken.Paulsen_at_Sun.COM]
> Sent: Friday, September 29, 2006 3:10 PM
> To: dev_at_jsftemplating.dev.java.net
> Subject: Re: JSFTemplating: java.lang.IllegalArgumentException:
> ComponentType 'rave:tabset' not defined!
>
>
> It is case sensitive. Try "rave:tabSet".
>
> Also, the displayed list is all the supported components... not
> necessarily all the "available" components. You must have the required
> component files (i.e. the UIComponent.class files such as those in
> webui.jar). All the "rave:" ones should work in your setup... the "sun:"
>
> ones will not b/c it requires a different .jar file. This jar file is
> available in the GlassFish source... I can show you where if you'd like.
>
> The component set is almost identical to "rave:" components but there
> are few additional ones in "sun:". The "sun:" are also newer, but less
> documented... you can use the rave: documentation for 99% of it, though
> (based on same code base).
>
> Ken
>
> Todd Patrick wrote:
>
>> Now that I saw the component list, I thought I would add a tabset to
>> my tree.jsf page, such as the following below.
>>
>> However, I get the exception:
>>
>> java.lang.IllegalArgumentException: ComponentType 'rave:tabset' not
>> defined!
>>
>> I tried to use sun:tabset and that failed as well?
>>
>> Thoughts?
>>
>> Thanks,
>>
>> --Todd
>>
>> <rave:page id="page">
>> <rave:html id="html">
>> <rave:head id="head" title="$resource{i18n.peTree}" />
>> <rave:body>
>> <rave:form id="form">
>> <rave:tabset id="tabs">
>> <rave:tab>
>> <rave:tree id="tree" text="Example Tree"
>> url="/wherever.jsf"
>> imageURL="images/open.gif"
>> target="targetFrame" clientSide="#{true}">
>> <rave:treeNode id="treeNode1" text="Tree
>>
> Node 1" text="Tree Node
>
>> 1"
>> url="/wherever.jsf"
>> imageURL="images/closed.gif"
>> target="targetFrame" />
>> <rave:treeNode text="Tree Node 2">
>> <rave:treeNode text="Tree Node
>> 3" />
>> <rave:treeNode text="Tree Node
>> 4">
>> <rave:treeNode
>> text="Tree Node 5" />
>> <rave:treeNode
>> text="Tree Node 6" />
>> </rave:treeNode>
>> </rave:treeNode>
>> <rave:treeNode text="Tree Node 7" />
>> </rave:tree>
>> </rave:tab>
>> <rave:tab>
>> <rave:hyperlink text="whatever">
>> <!command
>> setAttribute(key="foo"
>>
> value="bar");
>
>> println(value="I'm setting a
>>
> request attribute named foo to
>
>> $attribute{foo}.");
>> />
>> </rave:hyperlink>
>> <rave:staticText value="The value of foo
>> is: #{foo}" />
>> </rave:tab>
>> </rave:tabset>
>> </rave:form>
>> </rave:body>
>> </rave:html>
>> </rave:page>
>>
>>