> -----Original Message-----
> From: Eric Lentz 
> Sent: Friday, May 20, 2011 8:56
> To: Struts Users Mailing List
> Subject: Re: What is getModel() for?
> 
> >"Getting" is not always the same thing as "instantiating" and/Or
> "initializing".
> 
> That's an *excellent* point! Well said. It would be great, 

Not to be a bah humbug type of person, but the constructor is for initializing,
and the getters are for getting.

> IMO, to call 
> that out in the documentation and expand on what that means. 

I guess, one could mention in the javadoc that you have no control how many
times the getModel() could get called, and that it should return the "same"
object each time in a given lifecycle...

> What's the 
> process for doing that? 
> 



--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-                                                               -
- Jason Pyeron                      PD Inc. http://www.pdinc.us -
- Principal Consultant              10 West 24th Street #100    -
- +1 (443) 269-1555 x333            Baltimore, Maryland 21218   -
-                                                               -
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
This message is copyright PD Inc, subject to license 20080407P00.

 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to