Thank you for an opinion :)

What do you mean by RESTFull?

And how should I  use parameters? In older application (4.0.2) I had
components that have parameters
of text/id and they render appropriate PageLink. Now, with the same
approach, passing all parameters as string from code to PageLink's context,
as I said earlier, codes "psize=5" to "psize%3D5" (or did I messed up
something..)

Maybe somehow I could use Link/LinkImpl (which have addParameter method)? I
found some posts with them, but I'm not sure how to use them in my situation
(that is, not returning Link object on some action, but rather rendering a
valid link in html).

Algirdas


Renat Zubairov wrote:
> 
> IMHO passing page number as page activation context is not RESTFull :)
> depends on the use cases off course.
> I think you would better use parameter for that.
> 
> Renat
> 
> 2008/7/30 Algirdas <[EMAIL PROTECTED]>:
>>
>> I'm writing custom grid component with paging, sorting, etc.
>> (also migrating from Tapestry 4.0.2 to T5).
>>
>> I need to pass page number, page size, sorting order and so on in url.
>> There is this new "context" thing and wonder if I should use it.
>>
>> That is, my old implementation was
>> myapp/product?id=10&pnum=2&psize=5
>>
>> with context I could do
>> myapp/product/10/pnum/2/psize/5
>>
>> Any suggestions on which implementation I should choose?
>>
>> In both cases I would generate links manually.
>>
>> I would rather go with the first one, but passing "psize=5" to context of
>> PageLink
>> encodes into "psize%3D5". Any thoughts about this?
>>
>> --
>> View this message in context:
>> http://n2.nabble.com/URL-parameters-or-context--tp661050p661050.html
>> Sent from the Tapestry Users mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 
> 
> -- 
> Best regards,
> Renat Zubairov
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://n2.nabble.com/URL-parameters-or-context--tp661050p662204.html
Sent from the Tapestry Users mailing list archive at Nabble.com.


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

Reply via email to