You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Darlan Oliveira (JIRA)" <in...@incubator.apache.org> on 2005/03/11 18:52:58 UTC
[jira] Updated: (MYFACES-131) Bug when property value of selectOne* and selectMany* is a data type different of String
[ http://issues.apache.org/jira/browse/MYFACES-131?page=history ]
Darlan Oliveira updated MYFACES-131:
------------------------------------
Attachment: RendererUtils.java
HtmlRendererUtils.java
HtmlRadioRendererBase.java
Source modified.
> Bug when property value of selectOne* and selectMany* is a data type different of String
> ----------------------------------------------------------------------------------------
>
> Key: MYFACES-131
> URL: http://issues.apache.org/jira/browse/MYFACES-131
> Project: MyFaces
> Type: Bug
> Versions: 1.0.8 beta
> Environment: JBoss 4, Tomcat 5, JDK 1.5, Win XP
> Reporter: Darlan Oliveira
> Attachments: HtmlRadioRendererBase.java, HtmlRendererUtils.java, RendererUtils.java
>
> I have a problem when the property value of selectOne* and selectMany* is a data type different of String (Eg.: int, byte, Long, others). The submitted value by user is converted to this data type, but the html component (select/option) wasn't reflected in browser. I modified the classes below and now, it's ok.
> Class...: org.apache.myfaces.renderkit.RenderUtils
> Line 543: String.valueOf(ar[i])
> Line 555: String.valueOf(Array.get(values, i))
> Line 569: //set.addAll(lst);
> for (int i = 0; i < lst.size(); i++) {
> set.add(String.valueOf(lst.get(i)));
> }
> Class...: org.apache.myfaces.renderkit.html.HtmlRenderUtils
> Line 379: if (!useSubmittedValue) {
> lookup = String.valueOf(uiSelectOne.getValue());
> } else {
> lookup = String.valueOf(lookup);
> }
> Class...: org.apache.myfaces.renderkit.html.HtmlRadioRendererBase
> Line 151: currentValue.toString().equals(itemStrValue)
--
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
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira