getString, Label - Warn

2008-06-02 Thread Fabien D.
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);

Re: getString, Label - Warn

2008-06-02 Thread Maurice Marrink
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,

Re: getString, Label - Warn

2008-06-02 Thread James Carman
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.

Re: getString, Label - Warn

2008-06-02 Thread 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

Re: getString, Label - Warn

2008-06-02 Thread James Carman
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:

Re: getString, Label - Warn

2008-06-02 Thread Erik van Oosten
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 :

Re: getString, Label - Warn

2008-06-02 Thread Fabien D.
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.

Re: getString, Label - Warn

2008-06-02 Thread James Carman
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:

Re: getString, Label - Warn

2008-06-02 Thread Fabien D.
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.