Re: Branding a PageLink target Page

2008-07-28 Thread jensiator

I dont think wicket:link would work. Because I need to create my own class
(Navlink). I guess that the wicket framework adds a Link (or PageLink)
automaticly for you. But if you work on the sourcecode it might work.
Changing the code behind wicket:link. If its possible
Jens


greeklinux wrote:
 
 Hello,
 
 for me it would be important to know where to look if I see the Navlink
 code.
 When I know where to find the property file with the navigation roules
 then it
 is ok.
 
 Cant you use the wicket:link tag? then you have to change only the html
 instead of the java part.
 
 greetings
 
 
 jensiator wrote:
 
 Thank you for the feedback. 
 Okey, I have a NavLink.class that extends PageLink. 
 The keys in the property file is the full class name. If the property
 file don't contain the class name key, NavLink will just call the
 PageLink constuctor with the the class name as usual. If the property
 file contains the classname key it will call the super constructor
 (PageLink) with the value set in the propertyfile. And the value can be
 another page target class. The drawback is that its hard for other
 developers to understand which page the NavLink is realy targeting!
 
 I wonder if its possible to do something like MyTargetClass_BRAND.class?
 Have to think about that!
 
 Jens
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Branding-a-PageLink-target-Page-tp18382006p18688733.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]



Re: Branding a PageLink target Page

2008-07-11 Thread jensiator

Hi greeklinux
Yes. The branding of links means that I want to dynamicaly configure the
PageLink Target for a customer? 
-- 
View this message in context: 
http://www.nabble.com/Branding-a-PageLink-target-Page-tp18382006p18397492.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]



Re: Branding a PageLink target Page

2008-07-11 Thread greeklinux

Hello Jens,

I dont find such a fuctionality, too. But it is a interresting one.
If you want something simple, then I would suggest your first solution.
Implement a PageLink/Link that takes some key and read this key from 
a properties file.

I used such a link route configuration with a php framework. And I think
this would be an interresting feature for wicket.

greetings




jensiator wrote:
 
 Hi greeklinux
 Yes. The branding of links means that I want to dynamicaly configure the
 PageLink Target for a customer? 
 

-- 
View this message in context: 
http://www.nabble.com/Branding-a-PageLink-target-Page-tp18382006p18401826.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]



Re: Branding a PageLink target Page

2008-07-11 Thread jensiator

Thank you for the feedback. 
Okey, I have a NavLink.class that extends PageLink. 
The keys in the property file is the full class name. If the property file
don't contain the class name key, NavLink will just call the PageLink
constuctor with the the class name as usual. If the property file contains
the classname key it will call the super constructor (PageLink) with the
value set in the propertyfile. And the value can be another page target
class. The drawback is that its hard for other developers to understand
which page the NavLink is realy targeting!

I wonder if its possible to do something like MyTargetClass_BRAND.class?
Have to think about that!

Jens

-- 
View this message in context: 
http://www.nabble.com/Branding-a-PageLink-target-Page-tp18382006p18403071.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]



Re: Branding a PageLink target Page

2008-07-11 Thread greeklinux

Hello,

for me it would be important to know where to look if I see the Navlink
code.
When I know where to find the property file with the navigation roules then
it
is ok.

Cant you use the wicket:link tag? then you have to change only the html
instead of the java part.

greetings


jensiator wrote:
 
 Thank you for the feedback. 
 Okey, I have a NavLink.class that extends PageLink. 
 The keys in the property file is the full class name. If the property file
 don't contain the class name key, NavLink will just call the PageLink
 constuctor with the the class name as usual. If the property file contains
 the classname key it will call the super constructor (PageLink) with the
 value set in the propertyfile. And the value can be another page target
 class. The drawback is that its hard for other developers to understand
 which page the NavLink is realy targeting!
 
 I wonder if its possible to do something like MyTargetClass_BRAND.class?
 Have to think about that!
 
 Jens
 
 

-- 
View this message in context: 
http://www.nabble.com/Branding-a-PageLink-target-Page-tp18382006p18404637.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]



Branding a PageLink target Page

2008-07-10 Thread jensiator

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]



Re: Branding a PageLink target Page

2008-07-10 Thread greeklinux

Hello,

I am not understanding exactly what you mean with branding.
Dynamicaly configure the PageLink Target for a customer?

greetings



jensiator wrote:
 
 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-tp18382006p18382951.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]