Thanks mate,
I managed to do a bit of a hack job which will suffice :)
but yeah the idea is to simply append txt to a label... like the label may
contain "hi," and after I generate the label, i was wondering if it was
possible to append " how are you?" for instance,
turning the label into "hi, how are you?".
but its all good, i got it all sorted for now, its just a bit dirty.
Martijn Dashorst wrote:
>
> Don't put a space between the closing tag and the % sign:
>
> [1231312]%
>
> Notice the lack of space. Another option is to use a 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
>> [email protected]
>> 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
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>
--
View this message in context:
http://www.nabble.com/Adding-text-to-labels-prior-to-rendering-tf3925770.html#a11133777
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user