I'm not sure that what I describe here is possible, but if it is, I'd be
grateful if someone could point me in the right direction.

I'd like to allow template designers to give some default text for a lable,
e.g.:
<label wicket:id="myLabel">DefaultValue</label>

And I'd then like to be able to either leave that text untouched, or append
it with a "*" character, depending on some other criteria that I can query
in the Page class.  But I can't find a way to make wicket retain the
template value ("DefaultValue"), never mind let me append other characters.

I was hoping (for example) that I could derive a class from Label and play
some tricks with onComponentTagBody/replaceComponentTagBody.  But it looks
like the templateValue ("DefaultValue") is not available to me.

Am I missing something?  Or does Wicket "throw away" the Label text set in
the template before I have a chance to do anything with it?
-- 
View this message in context: 
http://www.nabble.com/Accessing-Template-Value-of-a-Label-tf3796116.html#a10737105
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

Reply via email to