Hi
Does anyone know if its possible to brand the target/response page for a
PageLink in wicket?

I have a "core" jar with all the base classes. I then have a war project
that depends on the core jar (using Maven2 + Idea). There will be a war for
every customer. Im able to brand everything I want to brand except a
PageLink / Link target. 
I know that I can brand the hole page that holds the link but I dont think
thats a good solution. I'v found to reasons for that:
1. I add the PageLinks in the Page java class constuctor. And I can't change
the Page java class in the core lib(it will change for all the other
brands). Very dangerous to add it again in the branded war(duplicated
reference).  
2. Even if 1. worked I dont want to brand the hole page because I'll get a
lot of duplicate code. Might be big even if I use wicket: extend.  

I found to possible solutions.
1. I have written a PageLink that takes a string resource key. Example:
"linkToOptionPage". The value/target in the PageLink is then read from a
property file. I then brand the property file instead.(a little bit like
struts/JSF navigation rules) 
2.I might be able to use dependecy injection in Spring and change the hole
TargetPage class to the specific customers targetpage. But is it worth the
overhead?

Or is it possible that wicket have som built in support for this? I have not
found anything. Please comment my suggestions or inform me if there is
another way?
Jens Alenius
-- 
View this message in context: 
http://www.nabble.com/Branding-a-PageLink-target-Page-tp18382006p18382006.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