Hmm, I'd tried that several ways, every time the ParameterNames() list
was empty and I couldn't fetch the parameter I was looking for. I tried
peeking the Request parameters in the Event method as well as @SetupRender.
There was an additional complication with submitting the HTML form and
the EventLink at the same time. I had thought wrapping the HTML form
submit inside the EventLink might work, but this submits the event twice
it seems.
Here's some code relating to the form and EventLink that might
illuminate things:
w.element("form", "id", "prefForm", "method", "post");
w.element("center");
w.element("input", "type", "hidden", "id", "productsList", "value",
""); //This is the field to pass to Event Handler
w.end();
Link formEvent = cr.createFormEventLink("SavePreferences", new
Object[]{});
w.element("a","href",formEvent,"id","submitPrefs","onclick","javascript:setupSubmit(this);");
w.element("input", "type", "submit", "value",
ms.get("save-rewards-preferences"));
w.end(); //submit
w.end(); //formEventLink
w.end(); //center
w.end(); //form
On 12/22/2010 12:55 PM, Thiago H. de Paula Figueiredo wrote:
On Wed, 22 Dec 2010 15:42:21 -0200, Rich M <rich...@moremagic.com> wrote:
I don't have the option of using 5.2 at this point, so that seems to
leave out @RequestParameter and @ActivationRequestParameter. What
might my other options be for passing back the value attribute from
an HTML tag to the Component Event method?
Just @Inject Request and use it's getParameter() method. The above
annotations are just shortcuts for this.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org