You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Volker Weber (JIRA)" <de...@myfaces.apache.org> on 2005/12/09 19:50:10 UTC

[jira] Commented: (MYFACES-924) REST Support

    [ http://issues.apache.org/jira/browse/MYFACES-924?page=comments#action_12359925 ] 

Volker Weber commented on MYFACES-924:
--------------------------------------

I can't see any reason to send the answer to a faces response to any other URL than the response cames from.
You need the UIComponent Tree which was rendered to decode the answer.

Anyway, you can use client side code and action type="script" to do this.
see my comment on http://issues.apache.org/jira/browse/MYFACES-923

> REST Support
> ------------
>
>          Key: MYFACES-924
>          URL: http://issues.apache.org/jira/browse/MYFACES-924
>      Project: MyFaces
>         Type: Improvement
>   Components: Tobago
>     Reporter: Olexandr Zakordonskyy

>
> On the action controls we need submitURL attriute.
> This url means the URL where the request should be send.
> You may add new function:
> function submitActionWithURL(formId, actionId, actionURL) {
>   setAction(formId, actionId);
>   var form = document.getElementById(formId);
>   if (form) {
>     form.action = actionURL;
>     form.submit();
>   }
> }
> First 2 parameters will be as in submitAction functions.
> actionURL - the url where to send request to execute action.
> This function may be rendered if actionURL is not null instead of submitAction.
> We need this functionality to support REST-style navigation.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira