Uploaded image for project: 'Seam Faces'
  1. Seam Faces
  2. SEAMFACES-28

ObjectConverter and EntityConverter

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

    XMLWordPrintable

Details

    Description

      Given

      class Foo {

      Bar bar;
      // Getters and setters

      List<Bar> bars;
      // Getters and setters
      }

      <h:selectOneMenu value="#

      {foo.bar}

      " >
      <f:selectItems value="#

      {foo.bars}

      " var="bar" itemLabel="#

      {bar.label}

      " itemValue="#

      {bar}

      " />
      <s:convertEntity /> || <s:convertObject />
      </h:selectOneMenu>

      I want to be able to have my setter/getter reference an object and not write the boilerplate for converting to/from a string.

      I also want to reference a managed entity, and have that managed entity set back into the setter so I can see the changes updated in the database with no boilerplate, and avoid LIEs.

      Attachments

        Activity

          People

            jporter@redhat.com Jason Porter
            pmuiratbleepbleep Pete Muir
            Archiver:
            samahaja@redhat.com Sagar Mahajan

            Dates

              Created:
              Updated:
              Resolved:
              Archived: