Hi,
I have problem how to pass checkbox values through sitemap.
I have a XHTML form:
<form target="_self" method="get" action="callSomething">
<input type="checkbox" name="sameName" value="value1"/>
<input type="checkbox" name="sameName" value="value2"/>
<input type="checkbox" name="sameName" value="value3"/>
<input type="checkbox" name="sameName" value="value4"/>
<input type="submit" name="submit" value="Submit" />
</form>
request after submit looks like this:
callSomething?sameName=value1&sameName=value2&sameName=value3&submit=Submit
And question is how to pass those values to generator in sitemap:
<map:match pattern="navigator/callSomething*">
<map:act type="request">
<map:parameter name="parameters" value="true"/>
<map:generate src="http://localhost/?sameName={sameName}"/>
<map:call resource="check-this"/>
</map:act>
</map:match>
When I call this:
http://localhost/?sameName={sameName}
id adds only first value.
And this does not send anything.
<map:generate src="http://127.0.0.1/">
<map:parameter name="use-request-parameters" value="true"/>
</map:generate>
Renaming sameName parameter to sameName1, sameName2, ... is not an option.
Please help. Maybe it's a really newbie question, but I need to hack an
existing sitemap to support this and I don't want to see Cocoon again.
BTW I'm using Cocoon 2.
Thanks.
--
View this message in context:
http://www.nabble.com/pass-checkbox-values-through-sitemap-tf2806933.html#a7831351
Sent from the Cocoon - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]