Mounting parameters on homepage

2008-08-26 Thread Jörn Zaefferer
Hi,

I have a simple search form on my homepage and would like to mount the
search parameter, eg. to have host/?term=foo instead of
host/?x=faniwfani35gfsge353 (when using
CryptedUrlWebRequestCodingStrategy).

I can't figure out a way to configure the strategy used to mount the
homepage. This throws an IllegalArgumentException(The mount path '/'
is reserved for the application home page):

mount(new QueryStringUrlCodingStrategy(/, Homepage.class));

Overriding WebRequestCodingStrategy#mount(IRequestTargetUrlCodingStrategy)
isn't an option, as that method is final.

Is there any way to achieve this?

Thanks
Jörn


Re: Mounting parameters on homepage

2008-08-26 Thread Nino Saturnino Martinez Vazquez Wael



Jörn Zaefferer wrote:

Hi,

I have a simple search form on my homepage and would like to mount the
search parameter, eg. to have host/?term=foo instead of
host/?x=faniwfani35gfsge353 (when using
CryptedUrlWebRequestCodingStrategy).

I can't figure out a way to configure the strategy used to mount the
homepage. This throws an IllegalArgumentException(The mount path '/'
is reserved for the application home page):

mount(new QueryStringUrlCodingStrategy(/, Homepage.class));
  

why not /front or something?

Overriding WebRequestCodingStrategy#mount(IRequestTargetUrlCodingStrategy)
isn't an option, as that method is final.

Is there any way to achieve this?

Thanks
Jörn
  


--
-Wicket for love

Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


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



Re: Mounting parameters on homepage

2008-08-26 Thread Ritesh Trivedi

I dont think you need to explicitly mount a home page to /. Your application
has the home page reference and application mounts that page to /.

What you probably need is create a SearchPage.java, have it mounted as mixed
param coding strategy and let SearchPage provide PageParameter constructor
taking the search term as parameter. You can mount SearchPage with whatever
string you want, form submission on the home page should
setResponsePage(SearchPage.class, new PageParameter(searchterm_etc)) will do
it.


Jörn Zaefferer-2 wrote:
 
 Hi,
 
 I have a simple search form on my homepage and would like to mount the
 search parameter, eg. to have host/?term=foo instead of
 host/?x=faniwfani35gfsge353 (when using
 CryptedUrlWebRequestCodingStrategy).
 
 I can't figure out a way to configure the strategy used to mount the
 homepage. This throws an IllegalArgumentException(The mount path '/'
 is reserved for the application home page):
 
 mount(new QueryStringUrlCodingStrategy(/, Homepage.class));
 
 Overriding WebRequestCodingStrategy#mount(IRequestTargetUrlCodingStrategy)
 isn't an option, as that method is final.
 
 Is there any way to achieve this?
 
 Thanks
 Jörn
 
 

-- 
View this message in context: 
http://www.nabble.com/Mounting-parameters-on-homepage-tp19163461p19167106.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: Mounting parameters on homepage

2008-08-26 Thread Jörn Zaefferer
Thanks for your answers, though thats not what I asked for. I know
that the homepage is already mounted, thats why I'm asking how I can
change the strategy for its parameters. Creating a seperate page for
the search result is a workaround, not a solution.

Any other ideas?

Thanks
Jörn

On Tue, Aug 26, 2008 at 7:57 PM, Ritesh Trivedi
[EMAIL PROTECTED] wrote:

 I dont think you need to explicitly mount a home page to /. Your application
 has the home page reference and application mounts that page to /.

 What you probably need is create a SearchPage.java, have it mounted as mixed
 param coding strategy and let SearchPage provide PageParameter constructor
 taking the search term as parameter. You can mount SearchPage with whatever
 string you want, form submission on the home page should
 setResponsePage(SearchPage.class, new PageParameter(searchterm_etc)) will do
 it.


 Jörn Zaefferer-2 wrote:

 Hi,

 I have a simple search form on my homepage and would like to mount the
 search parameter, eg. to have host/?term=foo instead of
 host/?x=faniwfani35gfsge353 (when using
 CryptedUrlWebRequestCodingStrategy).

 I can't figure out a way to configure the strategy used to mount the
 homepage. This throws an IllegalArgumentException(The mount path '/'
 is reserved for the application home page):

 mount(new QueryStringUrlCodingStrategy(/, Homepage.class));

 Overriding WebRequestCodingStrategy#mount(IRequestTargetUrlCodingStrategy)
 isn't an option, as that method is final.

 Is there any way to achieve this?

 Thanks
 Jörn



 --
 View this message in context: 
 http://www.nabble.com/Mounting-parameters-on-homepage-tp19163461p19167106.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: Mounting parameters on homepage

2008-08-26 Thread Nino Saturnino Martinez Vazquez Wael

im still wondering why another mount path wouldnt work...

I know new commers to the application will hit mydomain.com , but if you 
make a bookmarkable reference to the /front you can still obtain that 
people can come in that way..


Jörn Zaefferer wrote:

Thanks for your answers, though thats not what I asked for. I know
that the homepage is already mounted, thats why I'm asking how I can
change the strategy for its parameters. Creating a seperate page for
the search result is a workaround, not a solution.

Any other ideas?

Thanks
Jörn

On Tue, Aug 26, 2008 at 7:57 PM, Ritesh Trivedi
[EMAIL PROTECTED] wrote:
  

I dont think you need to explicitly mount a home page to /. Your application
has the home page reference and application mounts that page to /.

What you probably need is create a SearchPage.java, have it mounted as mixed
param coding strategy and let SearchPage provide PageParameter constructor
taking the search term as parameter. You can mount SearchPage with whatever
string you want, form submission on the home page should
setResponsePage(SearchPage.class, new PageParameter(searchterm_etc)) will do
it.


Jörn Zaefferer-2 wrote:


Hi,

I have a simple search form on my homepage and would like to mount the
search parameter, eg. to have host/?term=foo instead of
host/?x=faniwfani35gfsge353 (when using
CryptedUrlWebRequestCodingStrategy).

I can't figure out a way to configure the strategy used to mount the
homepage. This throws an IllegalArgumentException(The mount path '/'
is reserved for the application home page):

mount(new QueryStringUrlCodingStrategy(/, Homepage.class));

Overriding WebRequestCodingStrategy#mount(IRequestTargetUrlCodingStrategy)
isn't an option, as that method is final.

Is there any way to achieve this?

Thanks
Jörn


  

--
View this message in context: 
http://www.nabble.com/Mounting-parameters-on-homepage-tp19163461p19167106.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]





--
-Wicket for love

Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


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