Results 1 to 4 of 4

Thread: Roo Populate form on selecting item from drop down list.

  1. #1
    Join Date
    Feb 2011
    Location
    Bangalore
    Posts
    19

    Question Roo Populate form on selecting item from drop down list.

    My application has a drop down list named employeeId .

    When an employeeId is selected I want to populate all other fields(employeeName,Address etc) automatically in the same form.

    Is it possible to do without using ajax?
    How to implement this using spring?

    Thanks and Regards
    Privin Thomas

  2. #2
    Join Date
    Jun 2010
    Posts
    440

    Default

    Hello,

    Review the code shown in my article in the attached link below...
    It is exactly what you are looking for.

    http://viralpatel.net/blogs/2011/02/...-ui-forms.html

    To see how it works visit:http://pragmatikroo.org/worldAlmanac/countrys?find=gallery&page=1&size=50&continent=Afr ica and select different continents/regions

    B. Roogards
    jD

  3. #3
    Join Date
    Feb 2011
    Location
    Bangalore
    Posts
    19

    Default

    Quote Originally Posted by delgad9 View Post
    Hello,

    Review the code shown in my article in the attached link below...
    It is exactly what you are looking for.

    http://viralpatel.net/blogs/2011/02/...-ui-forms.html

    To see how it works visit:http://pragmatikroo.org/worldAlmanac/countrys?find=gallery&page=1&size=50&continent=Afr ica and select different continents/regions

    B. Roogards
    jD
    Hi dalgad9.
    Thanks for replying..

    I have gone through those code.
    here is my create.jspx file.

    <field:select disableFormBinding="true" id="c_com_cardshop_Sell_CardPurchased" items="${stockdatas}" field="CardPurchased" path="/stockdatas" onchange="selectIt(this);" />
    When I run the project it is thorwing an error:
    org.apache.jasper.JasperException: /WEB-INF/views/sells/create.jspx(20,172) Attribute onchange invalid for tag select according to TLD
    The onchange attribute is not defined in tag library.
    Can you tell me what modifications I have to make in TLD?

    Thanks in advance
    Privin Thomas

  4. #4
    Join Date
    Jun 2010
    Posts
    440

    Default

    I'm glad you grabbed the idea...
    Applied the modification to the tagx. It will work from there.


    Roogards
    jD

Posting Permissions

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