[jboss-user] [JBoss jBPM] - Re: own beans
fuligj
do-not-reply at jboss.com
Fri Apr 13 04:51:35 EDT 2007
I have compiled the file User.java:
| package org.jbpm.webapp.bean;
|
| public class User
| {
| String firstName;
| String lastName;
| String phone;
| String email;
|
| public User()
| {
| }
|
| public void setFirstName(String firstName)
| {
| this.firstName = firstName;
| }
|
| public String getFirstName()
| {
| return firstName;
| }
|
| public void setLastName(String lastName)
| {
| this.lastName = lastName;
| }
|
| public String getLastName()
| {
| return lastName;
| }
|
| public void setPhone(String phone)
| {
| this.phone = phone;
| }
|
| public String getPhone()
| {
| return phone;
| }
|
| public void setEmail(String email)
| {
| this.email = email;
| }
|
| public String getEmail()
| {
| return email;
| }
| } to User.class. This file i have copied in jbpm-war\WEB-INF\classes\org\jbpm\webapp\bean and add tag:
| <managed-bean>
| <managed-bean-name>UserBean</managed-bean-name>
| <managed-bean-class>org.jbpm.webapp.bean.User</managed-bean-class>
| <managed-bean-scope>request</managed-bean-scope>
| </managed-bean>
|
to the faces-config.xml.
But the server in this way can't boot.
What could be the problem?
Thanks!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4036986#4036986
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4036986
More information about the jboss-user
mailing list