[jboss-user] [JBoss Seam] - Re: Error selecting object problem
trickyvail
do-not-reply at jboss.com
Tue Nov 6 13:46:44 EST 2007
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
More information about the jboss-user
mailing list