You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Bruno Aranda (JIRA)" <de...@myfaces.apache.org> on 2005/12/01 11:56:33 UTC

[jira] Closed: (MYFACES-863) HtmlTextareaRenderer method isDisabled generates an infinite loop

     [ http://issues.apache.org/jira/browse/MYFACES-863?page=all ]
     
Bruno Aranda closed MYFACES-863:
--------------------------------

    Resolution: Fixed

Looking at the code I see that this was fixed by Martin, on the 27th november. Thanks for reporting,

> HtmlTextareaRenderer method isDisabled generates an infinite loop
> -----------------------------------------------------------------
>
>          Key: MYFACES-863
>          URL: http://issues.apache.org/jira/browse/MYFACES-863
>      Project: MyFaces
>         Type: Bug
>   Components: Tomahawk
>  Environment: I'm under W2k, eclipse 3.1. I've updated myfaces trunk 23/11/05 and build the jars. Tomahawk version is 347990, url http://svn.apache.org/repos/asf/myfaces/tomahawk/trunk.
>     Reporter: Pablo Sosa
>     Assignee: Bruno Aranda

>
> The HtmlTextareaRenderer isDisabled(FacesContext facesContext, UIComponent uiComponent) contains a reference to itself. I'm not sure whether it should be calling super.isDisabled on the impl project or something else. 
>     protected boolean isDisabled(FacesContext facesContext, UIComponent uiComponent)
>     {
>         if (!UserRoleUtils.isEnabledOnUserRole(uiComponent))
>         {
>             return true;
>         }
>         else
>         {
>             //This is causing the StackOverflow, entering in a infinite loop
>             return isDisabled(facesContext, uiComponent);
>         }
>     }
> Log:
> java.lang.StackOverflowError^M
>         at java.util.HashMap.get(HashMap.java:320)^M
>         at javax.faces.component.UIComponentBase.getValueBinding(UIComponentBase.java:80)^M
>         at org.apache.myfaces.component.html.ext.HtmlInputTextarea.getEnabledOnUserRole(HtmlInputTextarea.java:70)^M
>         at org.apache.myfaces.component.UserRoleUtils.isEnabledOnUserRole(UserRoleUtils.java:80)^M
>         at org.apache.myfaces.renderkit.html.ext.HtmlTextareaRenderer.isDisabled(HtmlTextareaRenderer.java:39)^M
> :
> :
> -----------------
> Latest svn log entry
> ------------------------------------------------------------------------
> r166820 | manolito | 2004-05-19 02:31:40 +1200 (Wed, 19 May 2004) | 2 lines
> user role support completely moved to components source tree
> ------------------------------------------------------------------------

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