Andrew,
Thanks for quick response. I will definately use the PhaseListener to debug
the problem as you mentioned . Meanwhile i was thinking maybe i
misrepresented the problem . 
Here is the situation
I have textfield with a4j onblur event
As i tab out it reRenders other fields on the form . But while reRendering
dropdown fields, it picks one element after the other in that dropdown , i
could see this on the page dropdown showing one element after the other. And
then cursor goes in wait mode for a while. Finally i get the correct results

I understand the  reason to this behaviour. As these dropdowns appear later
in the page, JSF tries render them as part of rendering the page. But i have
already rendered them using ajax onblur event. As i couldn't do much in the
JSF page , So in the backing bean i am generating the dropdown only if its
null. It still didnt help.I have posted the snippets in the post 
http://www.nabble.com/Performance-issue-%3A-Setting-Dropdown-value-from-onblur-event-tf4037597.html.

As i am sure i am making some small mistake somewhere like in this post, i
would appreciate your time in taking a look at the code snippets in other
post



Andrew Robinson-5 wrote:
> 
> It is extremely hard to comment on that post, as performance issues
> can be anywhere in the code, especially since you are hitting the
> database. What I like to do, is create a debugging phase listener that
> prints out the current phase and then times the phase by adding the
> start time in the start of the phase into the request map and then
> performing a time difference in the end phase method. That way you can
> see what phase is slowing you down.
> 
> Also, I have witnessed IE6 extremely slow to re-render SELECT boxes
> for some unknown reason. It may be because of the fact that IE6 uses
> an MFC control, but not sure. Your best bet is to use the above
> technique, a debugger and step through the code, an client side
> debugger (like firebug for firefox) to time the javascript or use a
> performance tool.
> 
> On 7/6/07, bansi <[EMAIL PROTECTED]> wrote:
>>
>> Thanks Andrew for the catch it works like charm now. I will appreciate
>> your
>> time in taking a look at my other post :
>> http://www.nabble.com/Performance-issue-%3A-Setting-Dropdown-value-from-onblur-event-tf4037597.html.
>>
>>
>>
>> Andrew Robinson-5 wrote:
>> >
>> > Make sure you have the list boxes in the reRender property of the a4j
>> > command button
>> >
>> > On 7/6/07, bansi <[EMAIL PROTECTED]> wrote:
>> >>
>> >> I have observed a4j:commandButton works only on Page Refresh
>> >>
>> >> Here is the situation
>> >>
>> >> I am using two h:selectManyListbox to moves Roles i.e. All Roles to
>> >> selected
>> >> Roles using <h:commandButton value="-->" />
>> >>
>> >> h:commandButton works perfectly fine , the only limitation is after
>> >> moving
>> >> the value from left to right Listbox, whole page is automatically
>> >> refreshed
>> >> & the cursor moves to the top of the page
>> >>
>> >> This is where we thought ajax4jsf would come in handy & started using
>> >> a4j:commandButton instead of h:commandButton.
>> >> The result is when we click the a4j:commandButton it doesnt moves the
>> >> value
>> >> from left to right Listbox. Then we did page refreshed then only the
>> >> value
>> >> moved from left to right ListBox. Quite Amazing !!!. This is totally
>> >> opposite to behaviour of ajax
>> >>
>> >> We want a4j:commandButton to move the values from left to right
>> ListBox
>> >> without page refresh . Any pointers/suggestions will be highly
>> >> appreciated
>> >>
>> >>
>> >> --
>> >> View this message in context:
>> >>
>> http://www.nabble.com/h%3AcommandButton-a4j%3AcommandButton-does-Page-Refresh-----tf4037659.html#a11471154
>> >> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>> >>
>> >>
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/h%3AcommandButton-a4j%3AcommandButton-does-Page-Refresh-----tf4037659.html#a11472288
>> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>>
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/h%3AcommandButton-a4j%3AcommandButton-does-Page-Refresh-----tf4037659.html#a11472824
Sent from the MyFaces - Users mailing list archive at Nabble.com.

Reply via email to