Thanks Thijs I'll check it out.

On 8/15/07, Thijs <[EMAIL PROTECTED]> wrote:
>
> Sorry
> onComponentTagBody
>
> protected void onComponentTagBody(final MarkupStream markupStream, final
> ComponentTag openTag) {
>     replaceComponentTagBody(markupStream, openTag,
> doYourStuffWithTheModel(getModelObject()));
> }
>
> And you can probably add a SimpleAttributeModifier to add a "class"
> element to add a css property.
> see
>
> http://cwiki.apache.org/WICKET/how-to-modify-an-attribute-on-a-html-*tag*.html
> <
> http://cwiki.apache.org/WICKET/how-to-modify-an-attribute-on-a-html-tag.html
> >
>
>
> Put this al in a custom component and you have what you want...
>
> Francisco Diaz Trepat - gmail wrote:
> > Sounds good. I thought about it too.
> >
> > as the subject suggest, would that be the wickets way?
> >
> > would that be the more nit way from a wicket perspective?
> >
> > f(t)
> >
> >
> > On 8/15/07, Thijs <[EMAIL PROTECTED]> wrote:
> >
> >> Why not use the onComponentTag?
> >>
> >> Francisco Diaz Trepat - gmail wrote:
> >>
> >>> sorry sent to the wrong address.
> >>>
> >>> ---------- Forwarded message ----------
> >>> From: Francisco Diaz Trepat - gmail <[EMAIL PROTECTED]>
> >>> Date: Aug 15, 2007 12:02 PM
> >>> Subject: Wickest way to format a label before render
> >>> To: [EMAIL PROTECTED]
> >>>
> >>> Hi, I have the dumbest request from our functional team.
> >>>
> >>> A label that holds the result of a calculation must invert the
> positive
> >>> negative sign (- +), with that the color, and add a percentage symbol.
> >>>
> >>> So, basically I have to change the display model value and based on
> the
> >>> model value itself.
> >>>
> >>> onBeforeRender?
> >>>
> >>> I had some difficulties,
> >>>
> >>> thanks,
> >>>
> >>> f(t)
> >>>
> >>>
> >>>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >>
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to