webtier@glassfish.java.net

Re: [webtier] JSF2.0 Ajax not work properly

From: Lincoln Baxter, III <lincolnbaxter_at_gmail.com>
Date: Fri, 17 Jul 2009 17:17:04 -0400

Well... the general symptoms I notice are related to <ui:repeat> and
InputText/SelectOneMenu

When I add a ValueChangeListener to the repeated SelectOneMenu, then
change one of the rows of the table. The ValueChangeListener never
fires. The DOM updates just fine.

However, one part of this issue I believe is caused by firefox caching
form values -- even when I specify (autocomplete="off") because after
the re-render, the dropdown that I changed will still have the new value
-- but if I change another row of the table, that previously altered row
will revert to its actual state on the back end.

It's a mildly complex scenario in my system at the moment, so I feel
like I need to either give you the whole thing (which I can as a WAR) or
try to condense it.

--Lincoln

On Fri, 2009-07-17 at 13:36 -0700, Jim Driscoll wrote:

> I haven't seen any problems like this at all, and I'd be very interested
> in hearing about any issues, so I can watch for them. What sorts of
> problems happen? Is there any pattern at all?
>
> Jim
>
> On 7/17/09 12:40 PM, lincolnbaxter_at_gmail.com wrote:
> > I've noticed behavior like this as well in the snapshots but haven't been able to create a simple example to reproduce it yet.
> >
> > Sometimes the back end values are never updated. Sometimes the valuechangelisteners don't trigger. Its very strange.
> >
> > Working on condensing a reproducable example...
> > ------Original Message------
> > From: webtier_at_javadesktop.org
> > To: webtier_at_glassfish.dev.java.net
> > ReplyTo: webtier_at_glassfish.dev.java.net
> > Subject: [webtier] JSF2.0 Ajax not work properly
> > Sent: Jul 17, 2009 14:57
> >
> > The ajax for drop down list is working fine in PR2. However, it not working well in Beta version.
> >
> > I changed the Ajax call code (some differences between PR2 and Beta) in jsp/xhtml page, and clear all browser data.
> >
> > The two drop down list, country and state. If I first select USA for example. it nothing happen. then, I select Canada this time it shows Canada provinces with the option number of USA states, some empty options were listed in the end.
> > Then, I select USA again, it show up USA state, but the option number is the Canada province number, the rest of states are cut off.
> >
> > Is it a bug?
> > [Message sent by forum member 'huangdp' (huangdp)]
> >
> > http://forums.java.net/jive/thread.jspa?messageID=356315
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: webtier-unsubscribe_at_glassfish.dev.java.net
> > For additional commands, e-mail: webtier-help_at_glassfish.dev.java.net
> >
> >
> >
> > Sent from my Verizon Wireless BlackBerry
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: webtier-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: webtier-help_at_glassfish.dev.java.net
>