myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gregg D Bolinger <gthou...@gmail.com>
Subject Re: method binding not working correctly
Date Fri, 12 Aug 2005 16:54:38 GMT
Ok guys.  Thanks for the help, although it wasn't what I was looking
for.  I really appriciate it.  I'll look into using saveState to fix
my issue.  I really don't want this in session scope because when I
come back to the page, it requires too much cleanup.

Thanks again.

Gregg

On 8/12/05, Mike Kienenberger <mkienenb@gmail.com> wrote:
> If you create the bean request scope, the value of rendered for your
> update button is always false, from what code you've posted.
> 
> So even though it was true long enough to draw the button on your html
> response, it's now out of sync when you resubmit a request.   Your
> html treats it as if it were "rendered", but your server state shows
> it as not-rendered.   Actions submitted from non-rendered buttons are
> ignored (I'm basing this on how everything about a non-rendered
> component is ignored, not because I've actually researched and proven
> the issue).
> 
> -Mike
> 
> On 8/12/05, Gregg D Bolinger <gthought@gmail.com> wrote:
> > Technically, the problem isn't solved yet.  Why won't this work in
> > request scope?  actionListeners don't get brand new beans in the true
> > sense of a page being requested for the very first time.  If I have an
> > inputText with a name in it and an actionListener on a button, when I
> > press that button, the text is still in the textfield when the page
> > refreshes.  The point is, when in request scope, the commandButton is
> > not registering the binding on the method for the non-rendered
> > component, even when it is set to render on refresh.  That doesn't
> > make sense?
> >
> > Can one of you try it in request scope and tell me what happens?
> >
> > Gregg
> >
> > On 8/12/05, Mike Kienenberger <mkienenb@gmail.com> wrote:
> > > Yeah, obviously you knew what you were doing since you helped solve
> > > the problem :)
> > > Me and my big mouth :)
> > >
> > > -Mike
> > >
> > >
> > > On 8/12/05, Martin Marinschek <martin.marinschek@gmail.com> wrote:
> > > > I am conentrating very much on exactly this aspect ;)
> > > >
> > > > regards,
> > > >
> > > > Martin
> > > >
> > > > On 8/12/05, Mike Kienenberger <mkienenb@gmail.com> wrote:
> > > > > I wrote,
> > > > > >> What happens if you dump the render statement?
> > > > >
> > > > > On 8/12/05, Gregg D Bolinger <gthought@gmail.com> wrote:
> > > > > >Then the update  method is called just fine.
> > > > >
> > > > > I'd say this it the point to concentrate on.  Not sure why you and
> > > > > Martin are looking at other things.
> > > > >
> > > >
> > > >
> > > > --
> > > >
> > > > http://www.irian.at
> > > > Your JSF powerhouse -
> > > > JSF Trainings in English and German
> > > >
> > >
> >
>

Mime
View raw message