]
joe Koch updated JBSEAM-3863:
-----------------------------
Attachment: autocompletion.jpg
autocompletion
leaf that as it is and click on the button
Rerender is stronger than the pages.xml
---------------------------------------
Key: JBSEAM-3863
URL:
https://jira.jboss.org/jira/browse/JBSEAM-3863
Project: Seam
Issue Type: Bug
Affects Versions: 2.1.0.GA
Reporter: joe Koch
Priority: Trivial
Attachments: autocompletion.jpg
hi,
we had a bit a strange thing on one of our pages after we added a a4j thing.
as it used to work correctly:
we entered a value in a field, the browser gave us some values we entered before (auto
completion). when we left the focus on the input field, the "drop down list" was
still there, and we pressed a button that did a action and left the page via an return
code via pages.xml
as we liked the input field to be formatted nicely we added a
<a4j:support event="onchange"
reRender="selectUnderlyingForm"/>
so now the imput field was renderd as wished when we left the field.
But when we left the page (with the action button) and had the values on the auto
completion on the input field, the action from the button was called and exited correctly
but the page reload it self an did not redirect as told on the pages.xml => we never
left the original page.
we searched for days, till we found out that the render of the "onchange" was
stronger than the pages.xml, without the a4j everything is working correctly.
we did some test with the "live http headers" and saw that first the rerender
goes to the server and than the button click. what is correct.
as i had not enough knowledge i was not able to see the responds for that page. may that
came synchronous back after the button action?
i guess seam should stop comunication with the page as soon as it comes to the pages.xml.
i guess this is the problem.
this is not an important issue but someting hard to find!
if you need any more information i am glad to help you.
best regards
<td class="prodTableCell">
<s:decorate id="issueSizeDecorator">
<h:inputText label="#{messages['issueSize']}"
styleClass="numberInput" id="issueSize" required="true"
value="#{product.issueSize}">
<f:convertNumber integerOnly="true" pattern="###,###,###"
locale="de_CH"/>
<a4j:support event="onchange"
reRender="selectUnderlyingForm"/>
<xxx:productRangeValidator/>
<f:attribute name="product" value="#{product}"/>
<f:attribute name="fieldName" value="issueSize"/>
</h:inputText> </s:decorate> </td>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: