Results 1 to 2 of 2

Thread: valuechanged not function

  1. #1

    Question valuechanged not function

    I have this code, and not show System.out.println, gChanged is not called

    JSP FILE
    <h:selectOneMenu id="stgrupo" value="#{xxx.gselected}" valueChangeListener="#{xxx.gChanged}" onchange="submit()">
    <f:selectItems value="#{xxx.grprs}"/>
    </h:selectOneMenu>

    JAVA FILE

    public void gChanged(ValueChangeEvent event)
    {
    System.out.println("ValueChangeEvent: " + (String) event.getNewValue() );
    }

    Thank for all

  2. #2
    Join Date
    Jan 2005
    Location
    Bucharest, Romania
    Posts
    5,403

    Default

    Vicente, no offense but why don't try reading the tutorial first and maybe one of the books from the spring main site; take a look at the sample or just do a google. There are plenty of samples that can help you jump start the development.
    Costin Leau
    SpringSource - http://www.SpringSource.com- Spring Training, Consulting, and Support - "From the Source"
    http://twitter.com/costinl
    Please use [ c o d e ] [ / c o d e ] tags

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •