-
1. Re: help: simple pojo property not being updated (outjection and conversation)
asookazian Aug 7, 2009 7:22 PM (in response to robertwalker)When you submit the form, the setLaunchDate() method will be executed prior to the action method in the h:commandButton or h:commandLink.
In step 2, the value is referencing a Seam component that should have @Name("mailboxBean"). Does that annotation exist? And if you're using SFSB rather than JavaBean, remember that the business method must be in your @Local interface, otherwise Seam won't find it.
So if setLaunchDate() is in MailboxManager, then use
mailboxManager
rather thanmailboxBean
in step 2. -
2. Re: help: simple pojo property not being updated (outjection and conversation)
robertwalker Aug 7, 2009 8:52 PM (in response to robertwalker)thanks for your reply, I am really excited about learning and using seam, just having some growing pains.
I do understand about the setLaunchDate() being called prior
to my action method being invoked.my goto step 2 is a s:link like this
<s:link action="#{mailboxManager.step1}" propagation="join" value="next" />
so prior to mailboxManager.step1() being invoked, I expect
mailboxBean.launchDate to be populated. I should not need to propagation attribute but i am trying different things to get this to work.my pojo bean to store the data across the wizard steps (step1.xhtml, step2.xhtml, step.xhtml) is annotated like you mentioned it should be.
@Name("mailboxBean") public class MailboxBean implements Serializable { // components and properties for Step 1 private Date launchDate; // components and properties for Step 2 private String exchangeMailboxName; public String getExchangeMailboxName() {return exchangeMailboxName;} public void setExchangeMailboxName(String exchangeMailboxName) {this.exchangeMailboxName = exchangeMailboxName;} public Date getLaunchDate() {return launchDate;} public void setLaunchDate(Date launchDate) { this.launchDate = launchDate; }
thanks again, any other suggestions?