Hello HITECH79,

Is this a normal link to a page? You can do it much cleaner.
I think this should be enough:

add(new PageLink("mainLinkSupport", AcsSupportPage.class));

I suppose you will have somethink like this:

# SUPPORT 

You can add a Label component to your link:

add(new PageLink("mainLinkSupport", AcsSupportPage.class).add(
     new Label("supportLabel", new YourModel())));

Html:
# SUPPORT 

Do you want to localize the label?

greetings




HITECH79 wrote:
> 
> Hallo I am new in this forum and have this Problem with Pagelink:
> 
> JAVA:
> 
> add(new PageLink("mainLinkSupport", new IPageLink() {
>         private static final long serialVersionUID = 1L;
> 
>         public Page getPage() {
>           return new AcsSupportPage();
>         }
> 
>         public Class<? extends Page> getPageIdentity() {
>           return AcsSupportPage.class;
>         }
>       }));
> 
> 
> 
> 
> HTML:
> <!--<li> SUPPORT </li>-->
> 
> 
> My Question is how can i change the "LinkLabel" SUPPORT dynamic in the
> JAVA Code and not static in HTML.
> 
> Thanks a lot
> 
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Dynamic-Link-label-tp18363277p18363297.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to