[JBoss Seam] - Re: Remoting problem: object as param not passed
by enazareno
Hi Shane,
In relation to this, if the JavaBean is not marked as @Entity, only the string is carried, the other properties like Double values are null. Here is my class
| @Name("sendoutFact")
| public class SendoutFact implements Serializable{
|
| private String agent;
| private Double principal;
|
| public Double getPrincipal() {
| return principal;
| }
|
| public void setPrincipal(Double principal) {
| this.principal = principal;
| }
|
| public String getAgent() {
| return agent;
| }
|
| public void setAgent(String agent) {
| this.agent = agent;
| }
| }
|
In the javascript it outputs the Double value as number, but when it reaches the server it is null. However like in this thread, if I mark it as an entity, everything is OK. Have this issue already been solved?
Regards,
Elmo
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4026216#4026216
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4026216
19Â years, 1Â month
[JBoss Seam] - Re: Allways can't get he project value, bother me for 2 days
by chicochen
thanks for your feedback!
my actionbean:
@Stateful
| @Name("projectMaintAction")
| @Scope(ScopeType.CONVERSATION)
| @Restrict("#{identity.loggedIn}")
| public class ProjectMaintActionImpl implements ProjectMaintAction {
|
| @In(required = false) @Out
| private Project project;
|
| //@In(value="projectMaintService", create=true)
| //public ProjectMaintService projectMaintService;
| @In
| private EntityManager entityManager;
|
| @In
| private FacesMessages facesMessages;
|
| @Logger
| private Log log;
|
| private boolean isCreation = false;
|
| public boolean isCreation() {
| return isCreation;
| }
| @Begin
| public void createProject() {
| isCreation = true;
| project = new Project();
| }
| @End
| public void saveProject() {
| if (isCreation == true){
| String aa = project.getName();
| entityManager.persist(project);
| }
| }
|
|
| @Destroy @Remove
| public void destroy() {
| }
| public void delete() {
| // TODO Auto-generated method stub
|
| }
| public void editProject() {
| // TODO Auto-generated method stub
|
| }
| public void updateProject() {
| // TODO Auto-generated method stub
|
| }
| public void viewProject() {
| // TODO Auto-generated method stub
|
| }
|
| }
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4026209#4026209
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4026209
19Â years, 1Â month