beehive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carlin Rogers (JIRA)" <>
Subject [jira] Created: (BEEHIVE-1193) disabling netui:select tag with client side Javascript can cause an exception
Date Fri, 11 May 2007 23:34:15 GMT
disabling netui:select tag with client side Javascript can cause an exception

                 Key: BEEHIVE-1193
             Project: Beehive
          Issue Type: Bug
    Affects Versions: 1.0.2, 1.0.1
            Reporter: Carlin Rogers
         Assigned To: Carlin Rogers
             Fix For: V.Next

An ArrayIndexOutOfBoundsException (or an AssertionError with asserts on) is thrown when client
side Javascript disables the generated HTML select tag just before the form is submitted.
The problem with this is that the additional hidden input element, <input type="hidden"
...>, used by the framework, provides form data that normally is not be present when the
form is disabled via the NetUI tag attribute.

This hidden element is used by the framework and its name includes a special marker. So when
the Javascript disables the select element, there is still a hidden <input> that gets
processed. During the parameter processing the frameworks sees the input and determines that
there should be select data to go with it but in this case there isn't because the Javascript
disabled the select.

Need to make sure that parameter processing in the Select.SelectPrefixHandler class can handle
this case correctly and treat as a null parameter value.

The stack trace for this issue is...
        at java.lang.reflect.Array.get(Native Method)
        at org.apache.beehive.netui.script.el.util.ParseUtils.convertType(
        at org.apache.beehive.netui.script.el.tokens.ExpressionToken.beanUpdate(
        at org.apache.beehive.netui.script.el.tokens.IdentifierToken.write(
        at org.apache.beehive.netui.script.el.ExpressionTerm.update(
        at org.apache.beehive.netui.script.el.ParsedExpression.update(
        at org.apache.beehive.netui.script.el.util.ParseUtils.update(
        at org.apache.beehive.netui.script.el.ExpressionEvaluatorImpl.update(
        at org.apache.beehive.netui.pageflow.ProcessPopulate.populate(
        at org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.processPopulate(

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

View raw message