I believe you are right about the  tag having problems. I think it is because 
the Automatic object you create has not been persisted and won't have an id.

Here's a suggestion for something you could try:

  | <h:selectOneMenu value="#{rstReportHome.specialfirm}" ...>
  | <s:selectItems ... noSelectionLabel="AUTOMATIC"/>
  | 
  | public Firm getSpecialFirm()
  | {
  |     return getInstance().getFirm();
  | }
  | 
  | public void setSpecialFirm(Firm firm)
  | {
  |     if(firm == null)
  |     {
  |         // create a new automatic firm.
  |         firm = new Firm();
  |         firm.setStuff("stuff");
  |     }
  |     getInstance().setFirm(firm);
  | }
  | 

I'm guessing that noSelection returns a null here.
Please post your results. Thanks.


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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4102316
_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to