[jboss-user] [JBoss Seam] - Exception on submit form when show attribute bean
jagr
do-not-reply at jboss.com
Mon Oct 1 05:10:24 EDT 2007
I have bean named Person an annotated as @Name("person") with attribute name with getters and setters.
On jsf:
<h:form>
<h:inputText value="#{person.name}" size="20"/>
<s:button type="submit" value="Export" action="#{actions.doExport}"/> </h:form>
On Actions:
@Name("actions")
public class Actions {
@In
public Person person;
public void doExport() {
log.info(new StringBuffer("On Actions.doExport ").toString());
log.info(new StringBuffer("Name entered by user ").append(person.getName()).toString());
}
When I enter name on inputText and submit form, an exception is thrown:
ERROR [SeamPhaseListener] uncaught exception
javax.el.ELException: org.jboss.seam.RequiredException: In attribute requires non-null value: actions.person
What I'm doing wrong?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4090122#4090122
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4090122
More information about the jboss-user
mailing list