Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-6461

Seam Gen component development

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Can't Do
    • Icon: Major Major
    • LATER
    • 3.1.1
    • seam2
    • None
    • Seam and eclipse plugin

      Complex reusable components can be created with Seam-gen and a little effort. This could be automated.

      Example, create an Address entity and inject it into a person. Do this by using <ui:include on the xhtml for person to include the xhtml of the address and then injecting the Home of the Address into the Home of the Person class. (Lists can be done the same way)

      The xhtml page does not look good my just doing this; but the included xhtml can be cleaned up by taking off the headers and borders as desired.

      This works for additional levels of complexity. By doing this and doing the same with Address by injecting a State, City and Zipcode object I was able to construct an address lookup/verifier that would find the City and State given a Zipcode and limit the City list by selecting the the State first and the Zipcode list by selecting the City.

      And it all used the Homes and Lists created by Seam-Gen. The list boxes for State, City and Zipcode were backed by the List actions generated by Seam-gen with a restriction added.

      While it doesn't sound like much it is an important example for teaching users how to build-up components from components created by Seam-Gen.

              alexeykazakov Alexey Kazakov
              rhn-gps-rgreatho Robb Greathouse (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: