struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexandre Poitras <alexandre.poit...@gmail.com>
Subject Re: [shale] Tomahawk in Clay pure html
Date Wed, 28 Dec 2005 17:38:19 GMT
I have learned to do it by looking at the standard clay-config.xml
wich define the standard jsf components. Pettry obvious once you have
a working example. I suggest you to take a look at this file.

On 12/28/05, Gary VanMatre <gvanmatre@comcast.net> wrote:
> >From: <hermod.opstvedt@dnbnor.no>
> > Hi
> >
> > Has anybody used the Tomahawk Tree2 in a Clay pure html setup? If so, how did
> > you define it?
> >
>
> I have not had a chance to use the Tree2 with Clay yet but you can find a base Clay
> config file for Tomahawk here:  http://issues.apache.org/bugzilla/show_bug.cgi?id=37024
>
> It looks like the Tree2 is defined but Ryan stated that he didn't have a chance to test
> all of the configs.
>
>
> > Actually the question goes for any non-trivial JSF component. In Craigs Shale
> > rolodex sample he implemented the tab'ed menu with a shapevalidator. Is this the
> > way to handle all non-trivial JSF components in a pure html setup?
> >
>
> Well, the shapeValidator would be one way.  I have not looked at the tag for this on
> but we are lucky in that I believe that the author of this component is a struts committer.
>
> Clay will handle type conversions for most data types.  Attributes that can't be converted
> are passed on to the component thur the attributes map.  Clay attributes have three binding
types:
>
>   VB - Use Value Binding
>    MB - Use Method Binding
>    None - No use of EL.  The value passes through
>    Early - EL evaluated before setting the component property/attribute.
>
> If that doesn't cover the component creation, you can create a custom handler to build
the
> component metadata like in the shapeValidator.  The clay subtree is created using common
> chains.  You can register a custom command.  There are preprocess and postprocess hooks
> for almost everything.  The catalog is "clayCustomization" and the base XML file can
be found
> here:
> http://svn.apache.org/viewcvs.cgi/struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/component/chain/shale-clay-config.xml?rev=359113&view=log
>
>
> <catalog           name="clayCustomization">
>    <chain           name="preprocessAddComponent">
>        <command  className="org.apache.shale.usecases.rolodex.CustomCommand"/>
>    </chain>
> </catalog>
>
> I'll try to make time to look at the Tree2's tag today.
>
> > Hermod
> >
>
>
> Gary
>
> >
> > * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
> >
> > This email with attachments is solely for the use of the individual or
> > entity to whom it is addressed. Please also be aware that DnB NOR cannot
> > accept any payment orders or other legally binding correspondence with
> > customers as a part of an email.
> >
> > This email message has been virus checked by the virus programs used
> > in the DnB NOR Group.
> >
> > * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
> > For additional commands, e-mail: dev-help@struts.apache.org
> >
>


--
Alexandre Poitras
Qu├ębec, Canada

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Mime
View raw message