You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Mathias Broekelmann (JIRA)" <my...@incubator.apache.org> on 2005/06/01 14:29:53 UTC
[jira] Created: (MYFACES-264) Cast to Number instead of Integer for component properties which expects a int value
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
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 =20
Reporter: Mathias Broekelmann
The component properties which expect integers cast the result of the value=
bindings to Integer. This prevents the use of el expressions like #{2} sinc=
e a integer literal is evalutated to a Long value. I know the RI also cast =
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 handles =
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