Hi,

I am having problems with my pages and I am not sure if what I am doing to
solve it is right.


Page Class:

...
@Property
private Long myObjectId;

@Inject
private MyService myService;

onActivate(Long objectId){
      myObjectId = objectId;
}

void onSuccess(){
   MyObject myObject = myService.getMyObjectById(myObjectId);
   ...
}


So, the parameter is alright during the onActivate, but when I submit the
forrm, I am trying to save the changes but myObjectId is null.

I am using @Persist to keep the value, but I am not suer if this is ok
because I am having a lot of properties with @Persist and I don't know if
this ok.


Can somebody give me a hint?

Thanks!

Reply via email to