[jboss-user] [JBoss Seam] - process entity from GET request

nicolasb do-not-reply at jboss.com
Tue May 22 21:00:54 EDT 2007


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

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4047750#4047750

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4047750



More information about the jboss-user mailing list