1 Reply Latest reply on May 23, 2007 12:09 PM by nicolasb

    process entity from GET request

    nicolasb

      hello,

      I display Information about an entity with a GET request by using a stateless bean and page parameter in the pages.xml.

      on this page which displays a single item i want to execute a conversational bean in which i would like to access the item:

      <h:form>
      <h:inputHidden value="#{item.id}"/>
      <h:commandButton type="submit" action="#{bean.addItem}"/>
      </h:form>
      


      doesn't seam to work since as soon as i add the inputHidden Parameter the addItem won't get executed.

      the item is somehow loaded into:

      @In
      Item item;
      

      because if omit this fragment a exception is thrown regarding the missing input.

      it works perfectly fine if i use a different entity. it only breaks as soon as i try to access the entity of the previous GET request

      i'm not sure where to continue
      thx for any help

        • 1. Re: process entity from GET request
          nicolasb

          it looks like this wont work if i forget to @name the entity AND @Out the variable in the pull process (instead of indirect access over the bean).
          sadly seam >seams< to ignore it and won't produce any error messages