Re: URL coding strategies

2010-12-16 Thread Andrea Del Bene
Hi Henrique, are you using a custom WebRequestCodingStrategy implementation? This class should let you encode visible URL as you prefer. Hello, I am mounting my URLs so I can list product items like so: http://www.mysite.com/item/id/0 http://www.mysite.com/item/id/1 and so on...then I user

Re: URL coding strategies

2010-12-16 Thread Bas Gooren
There are two ways to achieve what you are looking for: 1) store a stable, unique textual identifier per product (e.g. Ford-Ranger-Model-2005), and lookup the product from this identifier 2) store a textual identifier - ID mapping in your session and do the lookup when the page is accessed; of

Re: URL coding strategies

2010-12-16 Thread Henrique Boregio
Hey Bas, you're right, I hadn't thought of it that way. In option 1, how would I go about using a unique textual identifier? Say there are 2 items with the name Ford Ranger Model 2005 but each one is posted by different users, the URL would still be:

Re: URL coding strategies

2010-12-16 Thread Bas Gooren
information in the identifier. Bas - Original Message - From: Henrique Boregio hbore...@gmail.com To: users@wicket.apache.org Sent: Thursday, December 16, 2010 6:06 PM Subject: Re: URL coding strategies Hey Bas, you're right, I hadn't thought of it that way. In option 1, how would I go

Re: URL coding strategies

2010-03-18 Thread bgooren
You cannot have a seo-friendly url _and_ pass objects. If you want to pass an object to another page (say a Product), then you need to create a constructor on the target page which accepts a Product or an IModelProduct. You can then call setResponsePage( new TargetPage( product ) ); The upside is