hi,

I am using JBoss Portal v2.2 (default package bundled with Jboss AS).

I am running a sample portlet, in which in EDIT mode the user gets a text field 
to set the portlet's title. I use a form (drawn in the doEdit() method), which 
action is obtained by calling RenderResponse.createActionUrl().

<form action=<Generated URL>>
 <input type=text name=title>
 <input type=submit>
< /form>

The URL generated looks something like this:

/portal/index.html?ctrl:cmd=action&ctrl:window=default.myPage.myPortlet

This is the way to do it according to all the literature i've read on this.

However, this did not work. When submitting the form, the query string was 
trunctuated, and the result was a URL that looks like this (I see this using 
Live-HTTP-Headers):

/portal/index.html?title=...

And thus the request was never directed to the portlet by the portal. The only 
way for this to work was to manually add 2 (two) hidden inputs to the form as 
follows:

<form action=<Generated URL>>
  <input type=text name=title>

  <input type=hidden name="ctrl:cmd" value="action">
  <input type=hidden name="ctrl:window" value="default.myPage.myPortlet">

  <input type=submit>
< /form>

What did I do wrong?


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3934462#3934462

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3934462


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to