myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pavitra Subramaniam (JIRA)" <...@myfaces.apache.org>
Subject [jira] Updated: (TRINIDAD-1648) IllegalStateException in UIComponentBase when trying to add a resource (outputScript) to the body target...
Date Wed, 02 Dec 2009 00:30:20 GMT

     [ https://issues.apache.org/jira/browse/TRINIDAD-1648?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Pavitra Subramaniam updated TRINIDAD-1648:
------------------------------------------

    Status: Patch Available  (was: Open)

> IllegalStateException in UIComponentBase when trying to add a resource (outputScript)
to the body target...
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: TRINIDAD-1648
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-1648
>             Project: MyFaces Trinidad
>          Issue Type: New Feature
>          Components: Components
>    Affects Versions: 2.0.0-core
>         Environment: Running Trinidad 2.0.x; with Facelets; no Partial State Saving and
using JSF Ajax request rather than the Trinidad PPR mechanism
>            Reporter: Pavitra Subramaniam
>
> 1. I have a simple usecase where I have changed the Trinidad PPR code to use the jsf.ajax.
The client postback works ok and the command is processed on the server properly. 
> 2. During render response phase though, an <h:outputScript> tag present in the
page, gets re-targeted to be under the <body> tag and this causes an IllegalStateException
in the following method in UICOmponentBase.java.
> 3. It appears that the JSF RI, throws an ISE when the parent does not contain a child
either in its child list or the facets. 
>      * <p>If the specified {@link UIComponent} has a non-null parent,
>      * remove it as a child or facet (as appropriate) of that parent.
>      * As a result, the <code>parent</code> property will always be
>      * <code>null</code> when this method returns.</p>
>      *
>     private static void eraseParent(UIComponent component)
> 4. To reproduce the problem , download the patch provided. This exception is only apparent
when testing with JSF Ajax. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message