aspose file tools
The moose likes JSF and the fly likes h:selectManyListbox - selection jumps to last position on onchange event Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » JSF
Reply Bookmark "h:selectManyListbox - selection jumps to last position on onchange event" Watch "h:selectManyListbox - selection jumps to last position on onchange event" New topic
Author

h:selectManyListbox - selection jumps to last position on onchange event

Nicole Mayer
Greenhorn

Joined: Dec 09, 2008
Posts: 1
I use a h:selectManyListbox with size=5. I use a4j:support to handle the onchange event and to load some data when one value is selected. The values are assigned to the selectManyListbox via f:selectItems. The onchange event works and the other data are loaded.

What doesn't work:
if i select one of the items above the size that is defined for the listbox the selection always jumps to the last position. Who knows why this happens and how to solve?

In the meanwhile i realized that this only happens in Firefox, in IE6/7 it's working! If I remove the reRender property of a4j:support the jumping isn't done, but i do not reRender this field, only the other which have to be updated.

thanks a lot in advance!

Nil

[ December 10, 2008: Message edited by: Nicole Mayer ]

[ December 10, 2008: Message edited by: Nicole Mayer ]
[ December 10, 2008: Message edited by: Nicole Mayer ]
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: h:selectManyListbox - selection jumps to last position on onchange event
 
Similar Threads
selectOneMenu and ajax support
Seam/RichFaces - extendedDataTable, datascroller, and changeable page size
a4j
two lists, with buttons that let you move options from one list to the other.
A4j:Support Problem