gigaZhang / struts2-jquery

Automatically exported from code.google.com/p/struts2-jquery
0 stars 0 forks source link

IllegalArgumentException On Action With Slider #927

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hi!
When I try to submit and read the values of a Slider (range), I get the next 
exception:

WARNING: Caught an exception while evaluating expression '[15,55]' against 
value stack
java.lang.IllegalArgumentException: fromIndex(55) > toIndex(2)

This is my JSP:

<s:form id="form" action="test" theme="xhtml" cssStyle="">
            <sj:checkboxlist
                        id="checkboxbuttonset"
                    label="Lista de asd"
                    list="dias"
                    name="echo"                                    

                    />
            <sj:slider id="echo3" name="slider" label="Slider" value="[0,10]"  step="1"/>
            <s:submit></s:submit>

And the Java file:

public String slider;

.. getter and setter..

public String execute() throws Exception {
        System.out.println(slider);
        return SUCCESS;
    }

I 'll atach the full stacktrace

Original issue reported on code.google.com by masterx...@gmail.com on 6 Dec 2012 at 7:28

Attachments:

GoogleCodeExporter commented 9 years ago
Hmm, the similar example in the Showcase App is working.
Maybe any Struts2 Configuration Issue?

Original comment by johgep on 13 Jan 2013 at 9:50