how to hide parameter in URL? for parameters

2009-02-19 Thread wch2001


Dear all,

I am doing a project , there is one url with some parameters  as below

http://localhost:8080/dira/?wicket:bookmarkablePage=%3Asg.sphsearch.dira.web.wicket.pages.company.CompanyDetailoriginPage=companyorganizationId=191834

If I set mountBookmarkablePage in webApplication for CompanyDetail like
that:
mountBookmarkablePage(/company, CompanyDetail.class);

The url will be changed to 

http://localhost:8080/dira/company/originPage/company/organizationId/191834/

how Can I hide the parameters? like 
http://localhost:8080/dira/company

thanks

wch
-- 
View this message in context: 
http://www.nabble.com/how-to-hide-parameter-in-URL--for-parameters-tp22096367p22096367.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: how to hide parameter in URL? for parameters

2009-02-19 Thread taha siddiqi
use a post request !!

tawus

On Thu, Feb 19, 2009 at 2:31 PM, wch2001 wch2...@hotmail.com wrote:


 Dear all,

 I am doing a project , there is one url with some parameters  as below

 http://localhost:8080/dira/?wicket:bookmarkablePage=%3Asg.sphsearch.dira.web.wicket.pages.company.CompanyDetailoriginPage=companyorganizationId=191834

 If I set mountBookmarkablePage in webApplication for CompanyDetail like
 that:
 mountBookmarkablePage(/company, CompanyDetail.class);

 The url will be changed to

 http://localhost:8080/dira/company/originPage/company/organizationId/191834/

 how Can I hide the parameters? like
 http://localhost:8080/dira/company

 thanks

 wch
 --
 View this message in context: 
 http://www.nabble.com/how-to-hide-parameter-in-URL--for-parameters-tp22096367p22096367.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: how to hide parameter in URL? for parameters

2009-02-19 Thread Jeremy Thomerson
A post isn't always the answer, obviously, if you need a bookmarkable page.
Look at the IndexedParamUrlCodingStrategy - that's what you need.


-- 
Jeremy Thomerson
http://www.wickettraining.com

On Thu, Feb 19, 2009 at 3:12 AM, taha siddiqi tawushaf...@gmail.com wrote:

 use a post request !!

 tawus

 On Thu, Feb 19, 2009 at 2:31 PM, wch2001 wch2...@hotmail.com wrote:
 
 
  Dear all,
 
  I am doing a project , there is one url with some parameters  as below
 
 
 http://localhost:8080/dira/?wicket:bookmarkablePage=%3Asg.sphsearch.dira.web.wicket.pages.company.CompanyDetailoriginPage=companyorganizationId=191834
 
  If I set mountBookmarkablePage in webApplication for CompanyDetail like
  that:
  mountBookmarkablePage(/company, CompanyDetail.class);
 
  The url will be changed to
 
 
 http://localhost:8080/dira/company/originPage/company/organizationId/191834/
 
  how Can I hide the parameters? like
  http://localhost:8080/dira/company
 
  thanks
 
  wch
  --
  View this message in context:
 http://www.nabble.com/how-to-hide-parameter-in-URL--for-parameters-tp22096367p22096367.html
  Sent from the Wicket - User mailing list archive at Nabble.com.
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




Re: how to hide parameter in URL? for parameters

2009-02-19 Thread Cristiano Kliemann
wch,

Why do you need to make a bookmarkable page and hide its parameters? It
doesn't make much sense to me. The main purpose of bookmarkable pages is,
like the name says, to let the user bookmark them (by copying to a text
file, for example) with all the parameters needed to show what you intend to
show.

You can't just hide the parameters with a bookmarkable page. To completely
hide them, the only choice is to use a post request. You can, however,
obfuscate them with a URL coding strategy, like Jeremy said. You may use
IndexedParamUrlCodingStrategy or implement your own.

-- Cristiano

On Thu, Feb 19, 2009 at 2:31 PM, Jeremy Thomerson jer...@wickettraining.com
 wrote:

 A post isn't always the answer, obviously, if you need a bookmarkable page.
 Look at the IndexedParamUrlCodingStrategy - that's what you need.


 --
 Jeremy Thomerson
 http://www.wickettraining.com

 On Thu, Feb 19, 2009 at 3:12 AM, taha siddiqi tawushaf...@gmail.com
 wrote:

  use a post request !!
 
  tawus
 
  On Thu, Feb 19, 2009 at 2:31 PM, wch2001 wch2...@hotmail.com wrote:
  
  
   Dear all,
  
   I am doing a project , there is one url with some parameters  as below
  
  
 
 http://localhost:8080/dira/?wicket:bookmarkablePage=%3Asg.sphsearch.dira.web.wicket.pages.company.CompanyDetailoriginPage=companyorganizationId=191834
  
   If I set mountBookmarkablePage in webApplication for CompanyDetail like
   that:
   mountBookmarkablePage(/company, CompanyDetail.class);
  
   The url will be changed to
  
  
 
 http://localhost:8080/dira/company/originPage/company/organizationId/191834/
  
   how Can I hide the parameters? like
   http://localhost:8080/dira/company
  
   thanks
  
   wch
   --
   View this message in context:
 
 http://www.nabble.com/how-to-hide-parameter-in-URL--for-parameters-tp22096367p22096367.html
   Sent from the Wicket - User mailing list archive at Nabble.com.
  
  
   -
   To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
   For additional commands, e-mail: users-h...@wicket.apache.org
  
  
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 



Re: how to hide parameter in URL? for parameters

2009-02-19 Thread Jeremy Thomerson
Sorry - I thought she wanted to hide the parameter *names* and leave the
values.  My bad.

On Thu, Feb 19, 2009 at 11:53 AM, Cristiano Kliemann
cristia...@gmail.comwrote:

 wch,

 Why do you need to make a bookmarkable page and hide its parameters? It
 doesn't make much sense to me. The main purpose of bookmarkable pages is,
 like the name says, to let the user bookmark them (by copying to a text
 file, for example) with all the parameters needed to show what you intend
 to
 show.

 You can't just hide the parameters with a bookmarkable page. To completely
 hide them, the only choice is to use a post request. You can, however,
 obfuscate them with a URL coding strategy, like Jeremy said. You may use
 IndexedParamUrlCodingStrategy or implement your own.

 -- Cristiano

 On Thu, Feb 19, 2009 at 2:31 PM, Jeremy Thomerson 
 jer...@wickettraining.com
  wrote:

  A post isn't always the answer, obviously, if you need a bookmarkable
 page.
  Look at the IndexedParamUrlCodingStrategy - that's what you need.
 
 
  --
  Jeremy Thomerson
  http://www.wickettraining.com
 
  On Thu, Feb 19, 2009 at 3:12 AM, taha siddiqi tawushaf...@gmail.com
  wrote:
 
   use a post request !!
  
   tawus
  
   On Thu, Feb 19, 2009 at 2:31 PM, wch2001 wch2...@hotmail.com wrote:
   
   
Dear all,
   
I am doing a project , there is one url with some parameters  as
 below
   
   
  
 
 http://localhost:8080/dira/?wicket:bookmarkablePage=%3Asg.sphsearch.dira.web.wicket.pages.company.CompanyDetailoriginPage=companyorganizationId=191834
   
If I set mountBookmarkablePage in webApplication for CompanyDetail
 like
that:
mountBookmarkablePage(/company, CompanyDetail.class);
   
The url will be changed to
   
   
  
 
 http://localhost:8080/dira/company/originPage/company/organizationId/191834/
   
how Can I hide the parameters? like
http://localhost:8080/dira/company
   
thanks
   
wch
--
View this message in context:
  
 
 http://www.nabble.com/how-to-hide-parameter-in-URL--for-parameters-tp22096367p22096367.html
Sent from the Wicket - User mailing list archive at Nabble.com.
   
   
-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org
   
   
  
   -
   To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
   For additional commands, e-mail: users-h...@wicket.apache.org
  
  
 




-- 
Jeremy Thomerson
http://www.wickettraining.com