1 Replies Last post: Aug 13, 2008 5:30 PM by Ilya Musihin  
aodeqiang   4 posts since
Aug 8, 2008
Currently Being Moderated

Aug 8, 2008 4:42 PM

ajax rerender error

I use quipukit 1.4.3 together with richfaces 3.2.0, seam 2.0.3 on jboss 4.2.2GA.

In my page I've used facelet "<ui:decorate>"to include a quipukit component <q:q:dropDownField> .

I want to rerender some other components with ajax when user change the selected item in the dropdownfield. because I have not seen any "rerender" support in quipukit, I use the "rerender" feature of richface.

 

According to the documents of richfaces "The <a4j:support> component adds an Ajax support to any existing JSF component. It allows a component to generate asynchronous requests on the necessary event demand and with partial update of page content after a response incoming from the server.... "reRender" is a key attribute. The attribute allows to point to area(s) on a page that should be updated as a response on Ajax interaction. The value of the "reRender" attribute is an id of the JSF component or an id list."

 

so I use <q:dropDownField> like followings:

<q:dropDownField id="dropdown_#"

                     var="obj"

                     converter="#"

                     suggestionMode="stringStart"

                     autoComplete="true"

                     customValueAllowed="false"

                     disabled="#"

                     value="#"

                     buttonClass="seachbutton">

        <q:dropDownItems value="#"/>   

         ...

        <a:support event="onchange" reRender="#" ajaxSingle="true"/>     </q:dropDownField>    as result, the dropdownfield works and everytime when a new item was selected, the region with "#" was updated.

but the dropdownfield cannot be rerendered correctly. the outline of the dropdownfield was lost!

after i renew the page in my browser, the component is correctly rerendered again.

 

here is 2 picture to compare, the first is correct, the second is wrong rerendered component.

Attachments:
Ilya Musihin TeamDev Ltd. 38 posts since
May 22, 2008
Currently Being Moderated
1. Aug 13, 2008 5:30 PM in response to: aodeqiang
Re: ajax rerender error

Hello,

 

Unfortunately, we are not able to reproduce this problem. Please send a simple example where this can be reproduced. Also tell in which browser this problem occurs.

 

Sincerely,

Ilya Musihin

More Like This

  • Retrieving data ...