RE: how deeply into a bean does myfaces update value references?

2006-08-01 Thread Thomas_Perry
Thank you all for responding to my question. I probably should have begun by stating my problem: I want to be able to reset an update form to it's initial state. Sounds simple enough, but... A button of type=reset works fine, but on this jsp, a form submit may have occurred to refresh

Re: how deeply into a bean does myfaces update value references?

2006-08-01 Thread Mike Kienenberger
On 8/1/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I want to be able to reset an update form to it's initial state. Sounds simple enough, but... For what it's worth, I handled this by creating a public String clear() { return clear; } action method and a redirect-back-to-the-same-page

Re: how deeply into a bean does myfaces update value references?

2006-08-01 Thread Andrew Robinson
I have had to do similar things but took a different approach. First I assumed users will not always be nice. They will sometimes use the back button, sometimes close the browser, etc. Second, I don't want to keep un-applied changes around (so in a list-detail view, the list shouldn't show

Re: how deeply into a bean does myfaces update value references?

2006-08-01 Thread Mike Kienenberger
Yep, this is the same thing I do. I put my DataObject in a special DataContext (editing scratchpad area) which I store in the component tree with t:saveState. If the user saves, I commit the changes. If the user cancels, I nullify the object and context. If the user leaves the page, the

Re: how deeply into a bean does myfaces update value references?

2006-07-31 Thread Andrew Robinson
h:inputText value=#{myBean.foo} On update: Look for myBean in the scoped maps (request, session, application). If not found, create a new instance of mybean. call setFoo() on the instance of my bean. On 7/31/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: hello everyone, I have a jsp

Re: how deeply into a bean does myfaces update value references?

2006-07-31 Thread Thomas_Perry
Subject Please respond to Re: how deeply into a bean does MyFaces myfaces update value references? Discussion

Re: how deeply into a bean does myfaces update value references?

2006-07-31 Thread Andrew Robinson
cc Subject Please respond to Re: how deeply into a bean does MyFaces myfaces update value references? Discussion [EMAIL PROTECTED

Re: how deeply into a bean does myfaces update value references?

2006-07-31 Thread Craig McClanahan
On 7/31/06, Andrew Robinson [EMAIL PROTECTED] wrote: It should never look for (or set) myBean.myBean unless you use itsomewhere in the EL or have it as a managed property in the facesconfig. What code (including EL and managed properties) refers to the myBean property?To be more specific, here are

RE: how deeply into a bean does myfaces update value references?

2006-07-31 Thread Dhananjay Prasanna
) and delegate some DI to spring or hivemind. ;) From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Craig McClanahan Sent: Tuesday, 1 August 2006 7:50 AM To: MyFaces Discussion Subject: Re: how deeply into a bean does myfaces update value references? On 7/31/06, Andrew

Re: how deeply into a bean does myfaces update value references?

2006-07-31 Thread Craig McClanahan
On 7/31/06, Dhananjay Prasanna [EMAIL PROTECTED] wrote: Craig, is there any thought to add namespace support to the EL? Example: #{myBean.blah} As opposed to: #{myModule:myBean} This would help greatly, especially for those of us who have huge numbers of managed

RE: how deeply into a bean does myfaces update value references?

2006-07-31 Thread Dhananjay Prasanna
Hi Craig, Weve had this discussion regarding the $ separator on this list not long ago. I am aware of and have been using the spring resolver, however there is a namespace collision between spring beans and jsf beansthe resolver will prefer spring beans of the same id (assuming the