zaxeer schrieb:
Hi devs,
thanks for your replies
i am already doing some thing like this in pageBeginRender
public void pageBeginRender(PageEvent event) {
if (event.getRequestCycle().isRewinding()) {
return;
}
if(getUSERINFO () == null){
setUSERINFO (new USERINFO("1","ABC","XYZ"));
}
}
but error:
"target is null for setProperty(null, "zip", null)"
remians there if i persist USERINFO in session its OK, but i think in
normal JSP application we need not to persist Whole form content in session,
session just need to use for some long retainable info.
any idea from you will be helpfull for me.
I don't know exactly how AjaxForm works but it might be that it rewinds
the form on submission so with that code your USERINFO object won't be
set to a non-null value.
Also have a look at the client:page persistence scope. That way you can
persist the object on the client side as long as the user stays on the
same page.
Uli
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]