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]