but if   a  sub class  is the response page and no mount path  is found   can
wicket use the super class mountpath or is there a way to override some
method in my sub class to return the mount path of base class ?

Johan Compagner wrote:
> 
> If we would say base class mounted to xxx then also all the subs are
> mounted to xxx how on earth do we know then which we should construct
> when xxx is hit?
> 
> Also if you dont want /xx/yyy/zzz but xx?yyy=zzz then use a different
> url encoding because the first on is default look for
> QueryXxxxxUrlEncoder.
> 
> Yes you have to have a pageparam constructor if you use bookmarkable
> pages with parameters.
> 
> On 10/13/08, miro <[EMAIL PROTECTED]> wrote:
>>
>> I created a new class  Test extending   CreateNewStorageLocation   (this
>> page
>> is   bookmarked
>> as mountBookmarkablePage("/createStorageLocation",
>> CreateNewStorageLocation.class);
>> just to override a method ,
>> clicking on a link I call a page which redirects to Test  and
>>  wicket creates some new url
>> http://localhost/csr/secure/index.jas/?wicket:interface=:2::::
>>
>> is there a way I can ask wicket to use the same  path   as of its super
>> class becasue I might have several classes extedning from the same class
>> overring some methods ?
>>
>>
>>
>>
>> Michael Sparer wrote:
>>>
>>> yepp, use the setResponsePage(Page page) instead of
>>> setResponsePage(Class
>>> pageClass) method - but be aware that the resulting page is bound to the
>>> session and not reusable for other sessions, aka bookmarkable
>>>
>>>
>>>
>>> miro wrote:
>>>>
>>>> now are there  ways to hide   parameters from  url ie I want to pass
>>>> parameters but wont show them  in url ?  also   I doing a redirect from
>>>> the caller.
>>>>
>>>> Michael Sparer wrote:
>>>>>
>>>>> Yepp you need one if you want your mounting strategies work ... and
>>>>> for
>>>>> getPageParameters not returning null ;-)
>>>>>
>>>>>
>>>>> miro wrote:
>>>>>>
>>>>>> I dont have a constructor with PageParameters.Do I need one? ,
>>>>>> becasue
>>>>>> if itr appended to the url I can retrieve it from request or
>>>>>> getPageParameters()
>>>>>>
>>>>>> Pills wrote:
>>>>>>>
>>>>>>> in your constructor that has a parameter PageParameters...
>>>>>>>
>>>>>>>
>>>>>>> miro a écrit :
>>>>>>>> where should I call super(params)  ?
>>>>>>>>
>>>>>>>> Michael Sparer wrote:
>>>>>>>>
>>>>>>>>> then there either weren't any pageparams or you missed to call
>>>>>>>>> super(params)
>>>>>>>>>
>>>>>>>>> regards,
>>>>>>>>> Michael
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> miro wrote:
>>>>>>>>>
>>>>>>>>>> I tried that , getPageParameters() was returning null .
>>>>>>>>>>
>>>>>>>>>> Michael Sparer wrote:
>>>>>>>>>>
>>>>>>>>>>> getPageParameters()? Didn't you look at the API before posting?
>>>>>>>>>>> ;-)
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> miro wrote:
>>>>>>>>>>>
>>>>>>>>>>>> I am using
>>>>>>>>>>>>
>>>>>>>>>>>> setRedirect(true);
>>>>>>>>>>>> setResponsePage(MyPage.class,pageParameters);
>>>>>>>>>>>>
>>>>>>>>>>>> in Mypage how can I retrieve pageParameters ?
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> ---------------------------------------------------------------------
>>>>>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>>>>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/retrieveing-page-parameters-tp19956410p19958664.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]
>>
>>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/retrieveing-page-parameters-tp19956410p19959672.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