Announcement Announcement Module
Collapse
No announcement yet.
Roo Populate form on selecting item from drop down list. Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    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...ntinent=Africa and select different continents/regions

    B. Roogards
    jD

    Comment


    • #3
      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...ntinent=Africa 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

      Comment


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


        Roogards
        jD

        Comment

        Working...
        X