List Info

Thread: Created: (JBSEAM-1364) Bind Map to h:inputText value - causes 'mode




Created: (JBSEAM-1364) Bind Map to h:inputText value - causes 'mode
country flaguser name
United States
2007-05-29 12:49:08
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.atl
assian.com/software/jira

        
_______________________________________________
jbossseam-issues mailing list
jbossseam-issueslists.jboss.org
https://lists.jboss.org/mailman/listinfo/jbossseam-issu
es

Closed: (JBSEAM-1364) Bind Map to h:inputText value - causes 'model
country flaguser name
United States
2007-05-29 17:14:08
     [ http://jira.jboss.com/jira/browse/JBSEAM-1364?page=all
]

Gavin King closed JBSEAM-1364.
------------------------------

    Fix Version/s: 1.3.0.ALPHA
       Resolution: Done
         Assignee: Gavin King

I made some fixes (in CVS), and tested map-style EL
expressions. It should all be working now. However, this
code is quite fragile and vulnerable to these kind of bugs.
A better solution is to enhance JBoss EL to let me get
access to the property getter.

> 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
>         Assigned To: Gavin King
>             Fix For: 1.3.0.ALPHA
>
>
> 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.atl
assian.com/software/jira

        
_______________________________________________
jbossseam-issues mailing list
jbossseam-issueslists.jboss.org
https://lists.jboss.org/mailman/listinfo/jbossseam-issu
es

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )