Re: Struts2: Pre-populate form with values from a session bean

2011-04-13 Thread arin_12
ext: http://struts.1045723.n5.nabble.com/Struts2-Pre-populate-form-with-values-from-a-session-bean-tp3487976p4300972.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsub

Re: Struts2: Pre-populate form with values from a session bean

2008-12-09 Thread Robert Graf-Waczenski
Dave Newton wrote: --- On Tue, 12/9/08, Robert Graf-Waczenski <[EMAIL PROTECTED]> wrote: getmFoo() as getter works just fine here with S2 as it did since almost eight years with S1. Which version of S2? I'll re-check when I get home and follow up. Thanks, Dave --

Re: Struts2: Pre-populate form with values from a session bean

2008-12-09 Thread Dave Newton
--- On Tue, 12/9/08, Robert Graf-Waczenski <[EMAIL PROTECTED]> wrote: > getmFoo() as getter works just fine here with S2 as it did > since almost eight years with S1. Which version of S2? I'll re-check when I get home and follow up. Thanks, Dave -

Re: Struts2: Pre-populate form with values from a session bean

2008-12-09 Thread Robert Graf-Waczenski
Dave Newton wrote: --- On Tue, 12/9/08, Robert Graf-Waczenski wrote: [...] I was guessing in that direction already but wanted a guru to confirm this first, which is what you did. Minus the "guru" part ;) That's our naming spec and we have decided to also use this spec for bean pr

Re: Struts2: Pre-populate form with values from a session bean

2008-12-09 Thread Dave Newton
--- On Tue, 12/9/08, Robert Graf-Waczenski wrote: > [...] I was guessing in that direction already but wanted > a guru to confirm this first, which is what you did. Minus the "guru" part ;) > That's our naming spec and we have decided to also use > this spec for bean property names, hence the ge

Re: Struts2: Pre-populate form with values from a session bean

2008-12-09 Thread Robert Graf-Waczenski
Dave, your comments helped me resolve the issue, see my comments below. Dave Newton wrote: A couple of comments, although with the configuration provided I'm not getting as far as you are. --- On Thu, 12/4/08, Robert Graf-Waczenski wrote: name="com.blah.blurp" ex

Re: Struts2: Pre-populate form with values from a session bean

2008-12-04 Thread Dave Newton
A couple of comments, although with the configuration provided I'm not getting as far as you are. --- On Thu, 12/4/08, Robert Graf-Waczenski wrote: > > name="com.blah.blurp" >extends="struts-default"> > class="com.blah.blurp.actions2.AddAction"> >

Re: Struts2: Pre-populate form with values from a session bean

2008-12-04 Thread Robert Graf-Waczenski
Dave Newton wrote: --- On Thu, 12/4/08, Robert Graf-Waczenski wrote: I'm using Struts 2.0.14, any chance that this is a fixed bug? If it is unknown, i'll go file a bug then. I dunno; I've used this pattern on a few apps (ScopedModelDriven, too) so I'm skeptical it's a bug. Could you p

Re: Struts2: Pre-populate form with values from a session bean

2008-12-04 Thread Dave Newton
--- On Thu, 12/4/08, Robert Graf-Waczenski wrote: > I'm using Struts 2.0.14, any chance that this is a fixed bug? > If it is unknown, i'll go file a bug then. I dunno; I've used this pattern on a few apps (ScopedModelDriven, too) so I'm skeptical it's a bug. Could you post the config for the act

Re: Struts2: Pre-populate form with values from a session bean

2008-12-04 Thread Robert Graf-Waczenski
Dave Newton wrote: --- On Thu, 12/4/08, Robert Graf-Waczenski wrote: The form field is only pre-filled if i explicitly use value="#session...", but with this, [...] If the action implements modelDriven, and the getModel() call returns the session bean under mySessionBeanKey, then yo

Re: Struts2: Pre-populate form with values from a session bean

2008-12-04 Thread Dave Newton
--- On Thu, 12/4/08, Robert Graf-Waczenski wrote: > value="#session.mySessionBeanKey.theValue"/> > > The form field is only pre-filled if i explicitly use > value="#session...", but with this, [...] If the action implements modelDriven, and the getModel() call returns the session bean under myS

Struts2: Pre-populate form with values from a session bean

2008-12-04 Thread Robert Graf-Waczenski
Hi! We were previously using Struts1 session scope form beans to achieve what we feel was rather natural: We frequently have a pattern were a user needs to change some settings in some model bean stored in a persistent storage. With Struts1, we had a jsp with a tag that was bound to an actio