2 Replies Latest reply on Aug 30, 2007 4:10 AM by damianharvey

    Anyway to create JSF components dynamically?

    samdoyle

      Using Seam/Facelets and RichFaces or any other capable set of JSF components?

      I have a bunch of icons populated on a map using Seam Remoting JavaScript. I would like to create some type of table based popup JSF component on click. Or would I just be better off using some JavaScript widgets?

      Thanks, S.D.

        • 1. Re: Anyway to create JSF components dynamically?
          samdoyle

          To be more specific I guess what I would like to do is when a JavaScript created icon is clicked on it creates a popup which is a Seam page with values populated with data stored in the JavaScript Object.

          So basically if I have something like:

          <h:inputText id="name"
           value="#{incident.name}"/>
          


          Where incident is a Seam component how do I create a new incident instance and have the name value set to the value I already have in the JavaScript object?

          The JavaScript object though is already an entity that was returned from a Seam Remoting call in the first place.

          Thanks, S.D.

          • 2. Re: Anyway to create JSF components dynamically?
            damianharvey

            Have you looked at something like richfaces modal?