[jbossseam-issues] [JBoss JIRA] Created: (JBSEAM-1364) Bind Map to h:inputText value - causes 'model validation failed:String index out of range: -1'

Clinton Parham (JIRA) jira-events at lists.jboss.org
Tue May 29 13:49:08 EDT 2007


Bind Map to h:inputText value - causes 'model validation failed:String index out of range: -1'
----------------------------------------------------------------------------------------------

                 Key: JBSEAM-1364
                 URL: http://jira.jboss.com/jira/browse/JBSEAM-1364
             Project: JBoss Seam
          Issue Type: Feature Request
          Components: JSF
    Affects Versions: 1.2.1.GA
            Reporter: Clinton Parham


I'm trying to bind a Map entry to h:inputText. The code below successfully extracts the value for the key when the page is loaded, but when I submit it, the page reloads with an error alongside the field: 'model validation failed:String index out of range: -1'. It appears that the s:validateAll that wraps h:inputText does not work properly when used this way??

(Gavin suggested that I submit this to JIRA - see forum thread reference)

>From the .xhtml 
Code: 

<h:form id="dataEntryForm">
...
<h:inputText id="asdf" required="true" value="#{biomarkers['waist']}" />
...
</h:form>


>From the session bean: 
Code: 

...
@Out
Map<String, String> biomarkers = new HashMap<String, String>();
...
// method code that preps the Map prior to being used
biomarkers.put("waist", "33.3");
...



-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the seam-issues mailing list