class DoubleLabel extends Label {

@Override
    public void onComponentTagBody(final MarkupStream markupStream,
final ComponentTag openTag) {
      replaceComponentTagBody(markupStream, openTag, getFormatted());
    }

    private String getFormatted() {
      // your logic to format modelobject
    }
}

On Thu, Jun 9, 2011 at 10:31 AM, Zeldor <pgronkiew...@gmail.com> wrote:
> Hi,
>
> I have labels showing data that is in Double format, but I don't need so
> much precision in UI. Can I easily make my page round those values [down]
> and display just numbers without fraction?
>
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/Rounding-values-for-display-tp3584858p3584858.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to