Don't put a space between the closing tag and the % sign:

<span wicket:id="foo">[1231312]</span>%

Notice the lack of space. Another option is to use a &nbsp; if you
want whitespace.

Martijn

On 6/15/07, Ballist1c <[EMAIL PROTECTED]> wrote:
>
> Hey guys,
>
> I am in a situation where I have created labels with data extracted from my
> components automatically , but I want to format it before I throw it out to
> the display.
>
> The context is that I am retrieving a number, which I want to be displayed
> as a percentage and I would like the % symbol attached to the label.... is
> this possible?
>
> ratingValue = new Label ("ratingValue");
>
> <some sorta code>
>
> add(ratingValue);
>
> Ive had trouble adding it at the HTML level, it just doesnt want to go on
> the same line which is annoying.
>
> Thanks guys
>
> --
> View this message in context: 
> http://www.nabble.com/Adding-text-to-labels-prior-to-rendering-tf3925770.html#a11133195
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>


-- 
Join the wicket community at irc.freenode.net: ##wicket
Wicket 1.2.6 contains a very important fix. Download Wicket now!
http://wicketframework.org

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to