You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Scott Swank <sc...@gmail.com> on 2008/06/23 23:01:06 UTC

render PageParameters

Is there code available to me to generate the the http get parameter
string that corresponds to a PageParameters instance?  I am generating
links from our confirmation e-mail back to bookmarkable pages in our
application.

Thank you,
Scott

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


Re: render PageParameters

Posted by Scott Swank <sc...@gmail.com>.
That should do it.  Thank you Jeremy.

On Mon, Jun 23, 2008 at 2:29 PM, Jeremy Thomerson
<je...@wickettraining.com> wrote:
> You could do something like:
>
>        WebRequestEncoder encoder = new WebRequestEncoder(new
> AppendingStringBuffer("your-url"));
>        for (Iterator it = parameters.entrySet().iterator(); it.hasNext(); )
> {
>            Entry entry = (Entry) it.next();
>            encoder.addValue((String) entry.getKey(), (String)
> entry.getValue());
>        }
>
> I haven't tested that exact code, but basically this was taken from code in:
> URIRequestTargetUrlCodingStrategy
>
> --
> Jeremy Thomerson
> http://www.wickettraining.com
>
> On Mon, Jun 23, 2008 at 4:01 PM, Scott Swank <sc...@gmail.com> wrote:
>
>> Is there code available to me to generate the the http get parameter
>> string that corresponds to a PageParameters instance?  I am generating
>> links from our confirmation e-mail back to bookmarkable pages in our
>> application.
>>
>> Thank you,
>> Scott
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>

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


Re: render PageParameters

Posted by Jeremy Thomerson <je...@wickettraining.com>.
You could do something like:

        WebRequestEncoder encoder = new WebRequestEncoder(new
AppendingStringBuffer("your-url"));
        for (Iterator it = parameters.entrySet().iterator(); it.hasNext(); )
{
            Entry entry = (Entry) it.next();
            encoder.addValue((String) entry.getKey(), (String)
entry.getValue());
        }

I haven't tested that exact code, but basically this was taken from code in:
URIRequestTargetUrlCodingStrategy

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

On Mon, Jun 23, 2008 at 4:01 PM, Scott Swank <sc...@gmail.com> wrote:

> Is there code available to me to generate the the http get parameter
> string that corresponds to a PageParameters instance?  I am generating
> links from our confirmation e-mail back to bookmarkable pages in our
> application.
>
> Thank you,
> Scott
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>