Hi all,
Thanks for the replies and sorry for the mess :)
I have MyButton and MyAjaxButton that for now, each overrides the
onComponentTagBody (the one I mentioned above).
I also have a behavior for onComponentTag that works fine.
I thought of putting the onComponentTagBody in the same behavior.

Johan, Eelco, What do you mean by "Converters"? Is there a special class /
interface I'm not aware of?

Thanks


Eyal


On Thu, May 8, 2008 at 10:39 AM, Eelco Hillenius <[EMAIL PROTECTED]>
wrote:

> On Wed, May 7, 2008 at 8:42 PM, Igor Vaynberg <[EMAIL PROTECTED]>
> wrote:
> > doesnt Label do this already?
>
> Yeah, I think just using getModelValueAsString would give the same results.
>
> Also, Label is the only (or one of the few at most) class(es) where
> overriding onComponentTagBody makes sense. Why not do your thing in a
> base class Eyal?
>
> Or... make model wrappers, where the sole purpose of your wrapping
> models is to format the output of your wrapped models.
>
> Or... do this using converters.
>
> Creating a base class makes sense if you do this with the same kind of
> components all the time (labels I pressume?). If your components are
> very different, any of the other options are fine.
>
> Eelco
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Eyal Golan
[EMAIL PROTECTED]

Visit: http://jvdrums.sourceforge.net/

Reply via email to