myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mathias Broekelmann (JIRA)" <myfaces-...@incubator.apache.org>
Subject [jira] Updated: (MYFACES-264) Cast to Number instead of Integer for component properties which expects a int value
Date Mon, 11 Jul 2005 09:02:13 GMT
In-Reply-To: <734506522.1117628993540.JavaMail.jira@ajax.apache.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

     [ http://issues.apache.org/jira/browse/MYFACES-264?page=3Dall ]

Mathias Broekelmann updated MYFACES-264:
----------------------------------------

    Attachment: FixedNumberCastForIntegerAttributes.diff

The patch changes the cast from Integer to Number for several components an=
d his attributes

> Cast to Number instead of Integer for component properties which expects =
a int value

> -------------------------------------------------------------------------=
------------
>
>          Key: MYFACES-264
>          URL: http://issues.apache.org/jira/browse/MYFACES-264
>      Project: MyFaces
>         Type: Sub-task
>     Versions: Nightly Build
>     Reporter: Mathias Broekelmann
>  Attachments: FixedNumberCastForIntegerAttributes.diff
>
> The component properties which expect integers cast the result of the val=
uebindings to Integer. This prevents the use of el expressions like #{2} si=
nce a integer literal is evalutated to a Long value. I know the RI also cas=
t to Integer but I have not found it in the spec that this is a requirement=
. IMO that wouldn=C2=B4t make sense either.
> I would suggest to cast to Number and call Number.intValue() which handle=
s the conversion to int.
> I have found the problem in the following components:
> HtmlDataScroller.getFastStep()
> HtmlDataScroller.getPaginatorMaxPages()
> HtmlPopup.getDisplayAtDistanceX()
> HtmlPopup.getDisplayAtDistanceY()
> SelectOneCountry.getMaxLength()
> HtmlPanelTabbedPane.getSelectedIndex()
> HtmlDataTable.getBorder()
> HtmlInputSecret.getMaxlength()
> HtmlInputSecret.getSize()
> HtmlInputText.getMaxlength()
> HtmlInputText.getSize()
> HtmlInputTextarea.getCols()
> HtmlInputTextarea.getRows()
> HtmlPanelGrid.getBorder()
> HtmlPanelGrid.getColumns()
> HtmlSelectManyCheckbox.getBorder()
> HtmlSelectManyListbox.getSize()
> HtmlSelectOneListbox.getSize()
> HtmlSelectOneRadio.getBorder()

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


Mime
View raw message