Similarly, I use an @InitialValue annotation to set it to a function
call, like this:
@InitialValue("myDefault")
public abstract String getFoo();
public String getMyDefault() { return "Hello"; }
-Norman Franke
ASD, Inc.
On Oct 29, 2007, at 11:53 AM, Andreas Andreou wrote:
Well, you can initialize it to a non-null value during pageBeginRender
On 10/29/07, zaxeer <[EMAIL PROTECTED]> wrote:
hi devs,
I have a from which contains some fields: Whole form is reterived
by a bean
class say USERINFO if i persist this USERINFO getter setter in
session,
@Persist("session")
public abstract USERINFO getUSERINFO ();
public abstract void setUSERINFO (USERINFO USERINFO );
it works ok.
but if don't persist USERINFO in session , like this
public abstract USERINFO getUSERINFO ();
public abstract void setUSERINFO (USERINFO USERINFO );
on submitting form (@tacos:AjaxForm) the error occurs like
"target is null for setProperty(null, "zip", 2)"
(which is USERINFO.zip) i think main class object set to null on
submitting.
plz help me
--
View this message in context: http://www.nabble.com/non-Session-
Object-for-From-Submission-tf4712531.html#a13470271
Sent from the Tapestry - User mailing list archive at Nabble.com.
--
Andreas Andreou - [EMAIL PROTECTED] - http://blog.andyhot.gr
Tapestry / Tacos developer
Open Source / JEE Consulting
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]