for /dynapara1/dynapara2/dynapara3/....

for dynapara1/2/3... they are some parameters passed to our application

in fact, we have some "action" value in the URL that is not "dynamic" and is
intended to point to different pages, e.g.

/dynapara1/dynapara2/dynapara3/..../action1
/dynapara1/dynapara2/dynapara3/..../action2
/dynapara1/dynapara2/dynapara3/..../action3
/dynapara1/dynapara2/dynapara3/..../action4

for our application, action1, action2, action3, action4 can be known before
and are intended to be forwarded to their corresponding page

we know that, if we change the URL to 
/action1/dynapara1/dynapara2/dynapara3/....
/action2/dynapara1/dynapara2/dynapara3/....
/action3/dynapara1/dynapara2/dynapara3/....
/action4/dynapara1/dynapara2/dynapara3/....

we can mount the action1, 2,3,4 successfully
however, we may not be able to change the requirement right now :(

in fact, we have "hacked" into wicket's code and change the logic, now we
can recognize the "mount point" from the last part of the URL rather than
the first part of the URL, and it seems can solve our problems

but we think this may not be appropriate as it is not supported my wicket
officially

so we are seeking if there is any other good work around for the problem in
the (future) wicket

-Wing


Johan Compagner wrote:
> 
> If we would have somehow have special url encoding for the home page
> then that encoding should say to the WicketFilter that it can parse that
> kind of stuff
> and that it is a wicket request.
> 
> The problem is that parsing must be done quite right because else almost
> everything is a valid value??
> How do you know that /dynamicparamvalue/ is a value for you and not
> another
> mapping??
> 
> johan
> 
> 
> On 5/8/07, ywtsang <[EMAIL PROTECTED]> wrote:
>>
>>
>> Before we have this new url encoding strategy for Home page, we need to
>> take
>> another approach for the problem?
>>
>> for my problem:
>>
>> http://mydomain.com/<dynamaic parameters value>/<dynamaic parameters
>> value
>> 2>/...
>>
>> It seems that wicket will return "404" when there is no mapping of the
>> page.
>> Could we assign a "default" page for the application if wicket can't find
>> any page mapping? Is there any hint for the problem?
>>
>> Thanks for your help.
>>
>> -Wing
>>
>>
>> Johan Compagner wrote:
>> >
>> > currently the empty path is the homepage that you specify in the
>> > Application
>> > class.
>> > so thats why it is not legal, we can't mount the homepage currently.
>> >
>> > Maybe we should see if we can set the url coding strategy for the
>> homepage
>> > somehow
>> > instead of :
>> >
>> > getHomePage()
>> >
>> > getHomePageCodingStrategy()
>> >
>> > johan
>> >
>> >
>> >
>> > On 5/7/07, ywtsang <[EMAIL PROTECTED]> wrote:
>> >>
>> >>
>> >> is it possible to "mount" with "empty" path?
>> >>
>> >> e.g.
>> >>
>> >> mount(new IndexedParamUrlCodingStrategy("/",  my class, null));
>> >>
>> >> wicket complains it is not legal
>> >>
>> >> for my problem
>> >> i want the URL to have something like:
>> >>
>> >> http://mydomain.com/value1/value2/value3/value4
>> >>
>> >> where I can "use" IndexdParamUrlCodingStrategy to get the value1, 2,
>> 3,
>> >> 4....
>> >>
>> >> if it is not possible to mount with "empty" path, is there any other
>> >> solution to my problem?
>> >>
>> >> any pointer/hint for my problem is great, thanks for your help
>> >>
>> >> -Wing
>> >> --
>> >> View this message in context:
>> >>
>> http://www.nabble.com/mounting-with-%22empty%22-path-tf3702181.html#a10352898
>> >> Sent from the Wicket - User mailing list archive at Nabble.com.
>> >>
>> >>
>> >>
>> -------------------------------------------------------------------------
>> >> This SF.net email is sponsored by DB2 Express
>> >> Download DB2 Express C - the FREE version of DB2 express and take
>> >> control of your XML. No limits. Just data. Click to get it now.
>> >> http://sourceforge.net/powerbar/db2/
>> >> _______________________________________________
>> >> Wicket-user mailing list
>> >> [email protected]
>> >> https://lists.sourceforge.net/lists/listinfo/wicket-user
>> >>
>> >
>> >
>> -------------------------------------------------------------------------
>> > This SF.net email is sponsored by DB2 Express
>> > Download DB2 Express C - the FREE version of DB2 express and take
>> > control of your XML. No limits. Just data. Click to get it now.
>> > http://sourceforge.net/powerbar/db2/
>> > _______________________________________________
>> > Wicket-user mailing list
>> > [email protected]
>> > https://lists.sourceforge.net/lists/listinfo/wicket-user
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/mounting-with-%22empty%22-path-tf3702181.html#a10368207
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> -------------------------------------------------------------------------
>> This SF.net email is sponsored by DB2 Express
>> Download DB2 Express C - the FREE version of DB2 express and take
>> control of your XML. No limits. Just data. Click to get it now.
>> http://sourceforge.net/powerbar/db2/
>> _______________________________________________
>> Wicket-user mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/wicket-user
>>
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Wicket-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> 
> 

-- 
View this message in context: 
http://www.nabble.com/mounting-with-%22empty%22-path-tf3702181.html#a10371164
Sent from the Wicket - User mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to