beehive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Russ Baker (JIRA)" <>
Subject [jira] Updated: (BEEHIVE-1193) disabling netui:select tag with client side Javascript can cause an exception
Date Tue, 19 Jun 2007 15:13:25 GMT


Russ Baker updated BEEHIVE-1193:

Verified that setting the disable attribute true does not cause the AssertionError. Verified
against a build post 538018. I recommend that this bug be closed.

> disabling netui:select tag with client side Javascript can cause an exception
> -----------------------------------------------------------------------------
>                 Key: BEEHIVE-1193
>                 URL:
>             Project: Beehive
>          Issue Type: Bug
>    Affects Versions: 1.0.1, 1.0.2
>            Reporter: Carlin Rogers
>            Assignee: Julie Zhuo
>             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...
> java.lang.ArrayIndexOutOfBoundsException
>         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