cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Flynn <pfl...@ucc.ie>
Subject Re: use-request-parameters with checkboxes
Date Mon, 02 Oct 2006 15:19:44 GMT
Jeroen Reijn wrote:
> Hi Peter,
> 
> splitting values based on #'s isn't the best solution imho. 

I agree, but for a very simple application it's easy enough
using contains($ref,@id) to identify the elements needed.

> I guess that you could use the request generator for your purpose. 
 > It should give you the values based on the uri you provide.

Ah...I'm missing something there. Is there an example I can see?

///Peter


> 
> -----Original Message-----
> From: Peter Flynn [mailto:pflynn@ucc.ie]
> Posted At: maandag 2 oktober 2006 16:48
> Posted To: Cocoon User List
> Conversation: use-request-parameters with checkboxes
> Subject: use-request-parameters with checkboxes
> 
> 
> I'm trying to handle form data from a plain HTML form which is normally
> (outside Cocoon) returned in the format
> 
> http://foo.bar/cgi-bin?field=value&stuff=abc#def#ghi&more=bar
> 
> where the values of selected checkboxes are concatenated with # to
> separate the values.
> 
> If I change the action attribute of the form element to point to my
> Cocoon (using a URI defined in my sitemap.xmap with 
> use-request-parameters), it appears that Cocoon silently munges these 
> into the format
> 
> http://foo.bar/cgi-bin?field=value&stuff=abc&stuff=def&stuff=ghi&more=bar
> 
> This makes the data unusable, as the XSLT receives only one value for 
> the parameter stuff (the first) and drops the othes on the floor.
> 
> Is there a switch which will make the request parameters behave normally?
> 
> ///Peter
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
> 
> 


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


Mime
View raw message