
|
If you were logged in you would be able to see more operations.
|
|
|
Click
Created: 20/Feb/08 08:39 PM
Updated: 02/Apr/08 10:45 PM
|
|
| Component/s: |
core
|
| Affects Version/s: |
None
|
| Fix Version/s: |
1.5 M1
|
|
|
Environment:
|
Windows - Tomcat 5.0.28 - Java 5.0 - Click 1.4.-RC3
|
|
|
Hi,
I needed to change the action url of a form object but currnetly it's not supported by Form class.
What i need is something like this
Form form = new Form();
form.setAction("some_different_action"); //new method requested.
.....
in the Form.java class the getActionURL() method would be modified as follows
public String getActionURL() {
HttpServletRequest request = getContext().getRequest();
HttpServletResponse response = getContext().getResponse();
// use action property if specified by the user, otherwise use default request URI
String actionStr = action; //action is a new property added to Form class
if (action == null)
actionStr = request.getRequestURI();
return response.encodeURL(actionStr);
}
regards,
ERdem Gunay
|
|
Description
|
Hi,
I needed to change the action url of a form object but currnetly it's not supported by Form class.
What i need is something like this
Form form = new Form();
form.setAction("some_different_action"); //new method requested.
.....
in the Form.java class the getActionURL() method would be modified as follows
public String getActionURL() {
HttpServletRequest request = getContext().getRequest();
HttpServletResponse response = getContext().getResponse();
// use action property if specified by the user, otherwise use default request URI
String actionStr = action; //action is a new property added to Form class
if (action == null)
actionStr = request.getRequestURI();
return response.encodeURL(actionStr);
}
regards,
ERdem Gunay |
Show » |
|
|
property to the Form class to support this. I can't see any risks with
adding this to the 1.4 code base.
regards Malcolm Edgar
On Feb 20, 2008 8:41 PM, Erdem Gunay (JIRA) <click-jira@avoka.com> wrote:
>
> Form control should provide setting custom Action Url.
> ------------------------------------------------------
>
> Key:
CLK-319> URL: http://www.avoka.com:8080/jira/browse/CLK-319
> Project: Click
> Issue Type: Improvement
> Components: core
> Environment: Windows - Tomcat 5.0.28 - Java 5.0 - Click 1.4.-RC3
> Reporter: Erdem Gunay
> Assigned To: Malcolm Edgar
>
>
> Hi,
>
> I needed to change the action url of a form object but currnetly it's not supported by Form class.
>
> What i need is something like this
> Form form = new Form();
> form.setAction("some_different_action"); //new method requested.
> .....
>
> in the Form.java class the getActionURL() method would be modified as follows
>
> public String getActionURL() {
> HttpServletRequest request = getContext().getRequest();
> HttpServletResponse response = getContext().getResponse();
>
> // use action property if specified by the user, otherwise use default request URI
> String actionStr = action; //action is a new property added to Form class
> if (action == null)
> actionStr = request.getRequestURI();
> return response.encodeURL(actionStr);
> }
>
> regards,
>
> ERdem Gunay
>
> --
> This message is automatically generated by JIRA.
> -
> If you think it was sent incorrectly contact one of the administrators: http://www.avoka.com:8080/jira/secure/Administrators.jspa
> -
> For more information on JIRA, see: http://www.atlassian.com/software/jira
>
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Click-development mailing list
> Click-development@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/click-development
>
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Click-development mailing list
Click-development@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/click-development