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

[jira] Updated: (MYFACES-925) ViewID Include in request

     [ http://issues.apache.org/jira/browse/MYFACES-925?page=all ]

Udo Schnurpfeil updated MYFACES-925:
------------------------------------

    Priority: Minor  (was: Major)

You may use a hidden field with #{facesContext.viewRoot.viewId} like in the former comment, but without a special bean.

> ViewID Include in request
> -------------------------
>
>          Key: MYFACES-925
>          URL: http://issues.apache.org/jira/browse/MYFACES-925
>      Project: MyFaces
>         Type: Improvement
>   Components: Tobago
>     Reporter: Olexandr Zakordonskyy
>     Priority: Minor

>
> I need to include ViewID in rendered response, to retrieve the ID from request.
> I do it in the way:
> PageRenderer.encodeEndTobago:
> line 299(09-Dec-2005):
>     writer.startElement("input", null);
>     writer.writeAttribute("type", "hidden", null);
>     writer.writeNameAttribute("currentViewID");
>     writer.writeAttribute("value", facesContext.getViewRoot().getViewId(), null);
>     writer.endElement("input");

-- 
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