struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Musachy Barroso" <musa...@gmail.com>
Subject Re: Creating custom struts 2 tags
Date Mon, 09 Apr 2007 16:20:12 GMT
You can check tabletags as an example of creating a plugin with tags:

http://code.google.com/p/tabletags/

regards
musachy

On 4/9/07, Dave Newton <newton.dave@yahoo.com> wrote:
>
> --- Telmo Costa wrote:
> > I've been searching for documentation on how to
> > create a custom tag for struts2, but I haven't
> > succeed. Can you tell me where to find a tutorial or
> > give me some guidelines on that subject?
>
> They're just like any other custom tags.
>
> Are you referring specifically about how to pull OGNL
> values like the S2 tags do?
>
> I'd probably start by looking at the source of
> org.apache.struts2.components.Date, since it does what
> you want (but for dates :)
>
> I'm guessing if you extend Component you're a *long*
> way through the process already; getting the value
> appears to be as easy as calling findValue(valueName)
> and doing what you need to with it.
>
> That's a good idea for a quick tutorial though; if I
> have time I'll add something tonight.
>
> d.
>
>
>
>
>
> ____________________________________________________________________________________
> Finding fabulous fares is fun.
> Let Yahoo! FareChase search your favorite travel sites to find flight and
> hotel bargains.
> http://farechase.yahoo.com/promo-generic-14795097
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>


-- 
"Hey you! Would you help me to carry the stone?" Pink Floyd

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message