[
http://issues.apache.org/jira/browse/MYFACES-863?page=comments#action_12359030
]
Pablo Sosa commented on MYFACES-863:
------------------------------------
Hi Brune, I don't quite remember but I've seen someone commenting on a similar
or the same problem and the solution was to do
else
{
//Add super
return super.isDisabled(facesContext, uiComponent);
}
I don't know if that helps, but if I can find the reference I'm talking about
I'll send it.
Cheers,
Pablo
> 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