Hi everybody,
If I use this code :
BookmarkablePageLink lien_accueil = new
BookmarkablePageLink(accueil,
HomePage.class);
Label labelLinkAccueil = new Label
(name,getString(LabelLinkAccueil));
labelLinkAccueil.setEscapeModelStrings(false);
Make a model that does the getString in the getObject and give that
model to your label.
Maurice
On Mon, Jun 2, 2008 at 2:15 PM, Fabien D. [EMAIL PROTECTED] wrote:
Hi everybody,
If I use this code :
BookmarkablePageLink lien_accueil = new
BookmarkablePageLink(accueil,
It's not telling you that you can't use it as a constructor param.
It's telling you that you're trying to use it during the constructor
code of your PanelMenu class. So, either move that code to
onBeforeRender or use a ResourceModel for your label.
On Mon, Jun 2, 2008 at 8:15 AM, Fabien D.
I have tried, but I have the same warning
--
View this message in context:
http://www.nabble.com/getString%2C-Label--%3E-Warn-tp17599949p17600229.html
Sent from the Wicket - User mailing list archive at Nabble.com.
-
To
You tried what? Moving the code to onBeforeRender() or using ResourceModel?
On Mon, Jun 2, 2008 at 8:33 AM, Fabien D. [EMAIL PROTECTED] wrote:
I have tried, but I have the same warning
--
View this message in context:
Do this instead:
BookmarkablePageLink lien_accueil = new BookmarkablePageLink(accueil,
HomePage.class);
Label labelLinkAccueil = new Label (name,new
ResourceModel(LabelLinkAccueil));
Regards,
Erik.
Fabien D. wrote:
Hi everybody,
If I use this code :
To use model and label ... I will try RessourceModel now
Thank you for your help
--
View this message in context:
http://www.nabble.com/getString%2C-Label--%3E-Warn-tp17599949p17602329.html
Sent from the Wicket - User mailing list archive at Nabble.com.
No problem. Erik gave you exactly what you need.
On Mon, Jun 2, 2008 at 10:14 AM, Fabien D. [EMAIL PROTECTED] wrote:
To use model and label ... I will try RessourceModel now
Thank you for your help
--
View this message in context:
With the ModelRessource, it's working, thank you :) :)
--
View this message in context:
http://www.nabble.com/getString%2C-Label--%3E-Warn-tp17599949p17602394.html
Sent from the Wicket - User mailing list archive at Nabble.com.