You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by Robert Zeigler <ro...@roxanemy.com> on 2011/04/02 07:18:35 UTC

PageRenderLinkSource.addParameter

Is there some specific reason why addParameter is (String,String) rather than (String,Object)? Couldn't PageRenderLinkSource use ValueEncoderSource to encode the provided object to string automatically?

Just thinking.

Or maybe we keep the current implementation so a user can provide an exact string if they want absolute control over what shows up in the URL, as well as an addParameter(String,Object)? 

Anyway, I was thinking of adding the new method, but I wanted to check in on what the original rationale for String, String was first.

Robert
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


Re: PageRenderLinkSource.addParameter

Posted by Howard Lewis Ship <hl...@gmail.com>.
This was addressed in 5.2 or 5.3, where Link has a new method,
addParameterValue(String, Object).  And yes, its a ValueEncoder under
the covers.

On Fri, Apr 1, 2011 at 10:18 PM, Robert Zeigler
<ro...@roxanemy.com> wrote:
> Is there some specific reason why addParameter is (String,String) rather than (String,Object)? Couldn't PageRenderLinkSource use ValueEncoderSource to encode the provided object to string automatically?
>
> Just thinking.
>
> Or maybe we keep the current implementation so a user can provide an exact string if they want absolute control over what shows up in the URL, as well as an addParameter(String,Object)?
>
> Anyway, I was thinking of adding the new method, but I wanted to check in on what the original rationale for String, String was first.
>
> Robert
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: dev-help@tapestry.apache.org
>
>



-- 
Howard M. Lewis Ship

Creator of Apache Tapestry

The source for Tapestry training, mentoring and support. Contact me to
learn how I can get you up and productive in Tapestry fast!

(971) 678-5210
http://howardlewisship.com

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org