[
http://jira.jboss.com/jira/browse/RF-3632?page=all ]
Ilya Shaikovsky resolved RF-3632.
---------------------------------
Resolution: Rejected
Works as it should. Client side a4j mechanism knows nothing about new content that will be
inserted instead of old one and focuses that was before.
BUT, as we already described it you could use focus attribute on any ajax component in
order to define the component that should get focus after ajax responce.
Lost input focus after rerendering parent form
----------------------------------------------
Key: RF-3632
URL:
http://jira.jboss.com/jira/browse/RF-3632
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.2.1
Environment: RF 3.2.1.CR3
IE 6
Firefox 2.0.0.11
Java 1.5.0_15
jetty-6.1.9
WinXP SP2
Reporter: Benno Markiewicz
A control within a parent form looses its focus when the parent form is rerendered. The
rerendering was forced by an event fired from the child control. See the source (based on
http://livedemo.exadel.com/richfaces-demo/richfaces/support.jsf?c=support)
<h:form id="myform">
<h:panelGrid columns="2">
<h:inputText id="myinput"
value="#{userBean.name}">
<a4j:support event="onkeyup" reRender="myform"
/>
</h:inputText>
<h:outputText id="outtext" value="#{userBean.name}"
/>
</h:panelGrid>
</h:form>
Notice the difference. Instead of "outtext" "myform" will be
rerendered.
Background: You have a detail form with several components. Every control on the form
changes the internal state. The view represents the actual state, so the whole form has to
be rerendered. But when you rerender the parent form, the focus/selection state of the
actual component is lost.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira