retrieveing page parameters

2008-10-13 Thread miro

I am using 

setRedirect(true);
setResponsePage(MyPage.class,pageParameters);

in Mypage how can I retrieve pageParameters ? 
-- 
View this message in context: 
http://www.nabble.com/retrieveing-page-parameters-tp19956410p19956410.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: retrieveing page parameters

2008-10-13 Thread Per Newgro
Am Montag, 13. Oktober 2008 16:53:30 schrieb miro:
 I am using

 setRedirect(true);
 setResponsePage(MyPage.class,pageParameters);

 in Mypage how can I retrieve pageParameters ?

public MyPage(PageParameters params) not working?

Cheers
Per

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



Re: retrieveing page parameters

2008-10-13 Thread Piller Sébastien

Implement one-arg constructor:

class MyPage extends WebPage {

 public MyPage(PageParameters params) {
   super(params);
   // here you get the params
 }


miro a écrit :
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]



Re: retrieveing page parameters

2008-10-13 Thread Michael Sparer

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 ? 
 


-
Michael Sparer
http://talk-on-tech.blogspot.com
-- 
View this message in context: 
http://www.nabble.com/retrieveing-page-parameters-tp19956410p19956420.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: retrieveing page parameters

2008-10-13 Thread miro

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 ? 
 
 
 

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

2008-10-13 Thread Michael Sparer

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 ? 
 
 
 
 
 


-
Michael Sparer
http://talk-on-tech.blogspot.com
-- 
View this message in context: 
http://www.nabble.com/retrieveing-page-parameters-tp19956410p19956431.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: retrieveing page parameters

2008-10-13 Thread miro

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 ? 
 
 
 
 
 
 
 

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

2008-10-13 Thread miro

here more description

I have a bookmarkable page  and an link to this page .
   mountBookmarkablePage(/createStorageLocation,
CreateNewStorageLocation.class);

Now  I want to call this page using setResponsePage()
and passing some parameters for which I am doing this 

PageParameters  pageParameters= new PageParameters();
pageParameters.add(param1, testparam);
setRedirect(true);
setResponsePage(CreateNewStorageLocation.class,pageParameters);


api says the parameters will get  appended to the url .
I am assunming the url  will be 
http://localhost/csr/secure/index.jas/createStorageLocation?cicr7=sai

but this is what is happening
http://localhost/csr/secure/index.jas/createStorageLocation/cicr7/sai/
 
Please help me understand hot to pass parameters to a page using 
setResponsePage(APAge.class,PageParameters);


miro wrote:
 
 I am using 
 
 setRedirect(true);
 setResponsePage(MyPage.class,pageParameters);
 
 in Mypage how can I retrieve pageParameters ? 
 

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

2008-10-13 Thread Piller Sébastien

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]



Re: retrieveing page parameters

2008-10-13 Thread Piller Sébastien

this is right, this is the way it works...

*/cicr/bla* and *?cicr=bla* are just two different ways of passing 
attributes... the second is much better, imo


did you only try what i've written to you on your 2nd reply?


miro a écrit :

here more description

I have a bookmarkable page  and an link to this page .
   mountBookmarkablePage(/createStorageLocation,
CreateNewStorageLocation.class);

Now  I want to call this page using setResponsePage()
and passing some parameters for which I am doing this 


PageParameters  pageParameters= new PageParameters();
pageParameters.add(param1, testparam);
setRedirect(true);
setResponsePage(CreateNewStorageLocation.class,pageParameters);


api says the parameters will get  appended to the url .
I am assunming the url  will be 
http://localhost/csr/secure/index.jas/createStorageLocation?cicr7=sai


but this is what is happening
http://localhost/csr/secure/index.jas/createStorageLocation/cicr7/sai/
 
Please help me understand hot to pass parameters to a page using 
		setResponsePage(APAge.class,PageParameters);



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]



Re: retrieveing page parameters

2008-10-13 Thread miro

I haven't tried   what you wrote in second reply , I see the parameters in
url in the first way  which i dont want and switch to second way  which is  
*?cicr=bla*   how can I ? ,still getPageParameters returns null ?

Pills wrote:
 
 this is right, this is the way it works...
 
 */cicr/bla* and *?cicr=bla* are just two different ways of passing 
 attributes... the second is much better, imo
 
 did you only try what i've written to you on your 2nd reply?
 
 
 miro a écrit :
 here more description

 I have a bookmarkable page  and an link to this page .
mountBookmarkablePage(/createStorageLocation,
 CreateNewStorageLocation.class);

 Now  I want to call this page using setResponsePage()
 and passing some parameters for which I am doing this 

  PageParameters  pageParameters= new PageParameters();
  pageParameters.add(param1, testparam);
  setRedirect(true);
  setResponsePage(CreateNewStorageLocation.class,pageParameters);


 api says the parameters will get  appended to the url .
 I am assunming the url  will be 
 http://localhost/csr/secure/index.jas/createStorageLocation?cicr7=sai

 but this is what is happening
 http://localhost/csr/secure/index.jas/createStorageLocation/cicr7/sai/
  
 Please help me understand hot to pass parameters to a page using 
  setResponsePage(APAge.class,PageParameters);


 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-tp19956410p19957384.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: retrieveing page parameters

2008-10-13 Thread Piller Sébastien
* sorry, I would have say the first is much better, the one with 
slashes (/cicr/bla/)



Piller Sébastien a écrit :

this is right, this is the way it works...

*/cicr/bla* and *?cicr=bla* are just two different ways of passing 
attributes... the second is much better, imo


did you only try what i've written to you on your 2nd reply?


miro a écrit :

here more description

I have a bookmarkable page  and an link to this page .
   mountBookmarkablePage(/createStorageLocation,
CreateNewStorageLocation.class);

Now  I want to call this page using setResponsePage()
and passing some parameters for which I am doing this
PageParameters  pageParameters= new PageParameters();
pageParameters.add(param1, testparam);
setRedirect(true);
setResponsePage(CreateNewStorageLocation.class,pageParameters);


api says the parameters will get  appended to the url .
I am assunming the url  will be 
http://localhost/csr/secure/index.jas/createStorageLocation?cicr7=sai


but this is what is happening
http://localhost/csr/secure/index.jas/createStorageLocation/cicr7/sai/
 
Please help me understand hot to pass parameters to a page using 
setResponsePage(APAge.class,PageParameters);



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]





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



Re: retrieveing page parameters

2008-10-13 Thread miro

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-tp19956410p19957474.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: retrieveing page parameters

2008-10-13 Thread miro

Is there a way to switch to the second becasue it is more readable ?

Pills wrote:
 
 * sorry, I would have say the first is much better, the one with 
 slashes (/cicr/bla/)
 
 
 Piller Sébastien a écrit :
 this is right, this is the way it works...

 */cicr/bla* and *?cicr=bla* are just two different ways of passing 
 attributes... the second is much better, imo

 did you only try what i've written to you on your 2nd reply?


 miro a écrit :
 here more description

 I have a bookmarkable page  and an link to this page .
mountBookmarkablePage(/createStorageLocation,
 CreateNewStorageLocation.class);

 Now  I want to call this page using setResponsePage()
 and passing some parameters for which I am doing this
 PageParameters  pageParameters= new PageParameters();
 pageParameters.add(param1, testparam);
 setRedirect(true);
 setResponsePage(CreateNewStorageLocation.class,pageParameters);


 api says the parameters will get  appended to the url .
 I am assunming the url  will be 
 http://localhost/csr/secure/index.jas/createStorageLocation?cicr7=sai

 but this is what is happening
 http://localhost/csr/secure/index.jas/createStorageLocation/cicr7/sai/
  
 Please help me understand hot to pass parameters to a page using 
 setResponsePage(APAge.class,PageParameters);


 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]


 
 
 -
 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-tp19956410p19957506.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: retrieveing page parameters

2008-10-13 Thread Michael Sparer

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]
 
 
 
 
 


-
Michael Sparer
http://talk-on-tech.blogspot.com
-- 
View this message in context: 
http://www.nabble.com/retrieveing-page-parameters-tp19956410p19957601.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: retrieveing page parameters

2008-10-13 Thread Piller Sébastien

yes, it's mandatory.

How would wicket build your page without that, to make the parameters 
available from everywhere, even from the constructor?


miro a écrit :

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]






  



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



Re: retrieveing page parameters

2008-10-13 Thread miro

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-tp19956410p19958208.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: retrieveing page parameters

2008-10-13 Thread Michael Sparer

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]
 
 
 
 
 
 
 
 
 


-
Michael Sparer
http://talk-on-tech.blogspot.com
-- 
View this message in context: 
http://www.nabble.com/retrieveing-page-parameters-tp19956410p19958393.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: retrieveing page parameters

2008-10-13 Thread miro

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]



Re: retrieveing page parameters

2008-10-13 Thread Johan Compagner
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
QueryXUrlEncoder.

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]



Re: retrieveing page parameters

2008-10-13 Thread miro

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
 QueryXUrlEncoder.
 
 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]



Re: retrieveing page parameters

2008-10-13 Thread Johan Compagner
No please read my previous mail, i explained there why there cant be 1
mount point to 2 classes

On 10/13/08, miro [EMAIL PROTECTED] wrote:

 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
 QueryXUrlEncoder.

 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]



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