Losing focus from selectOneMenu after AJAX call
843844Nov 16 2007 — edited Jun 21 2008Hi,
I am using JSF along with AJAX for Java(a4j). When I am selecting a value in selectonemenu, an ajax call is made to fetch values. Some fields are rendered after this call completed.
When the cjax call complets the value selected is set in the selectonemenu, but it doesn't have any focus. So, If try to use a TAB key the focus is on something else.
Are there any possibilities that some setting of attributes is wrong.
Below is the snipet of code I am using:
<h:selectOneMenu id="aid" tabindex="3" styleClass="optField"
value="#{java class}"
converter="#{Converter}" immediate="true">
<s:selectItems value="#{java class}" var="var1"
itemLabel="#{java class.descr}" itemValue="#{java class}"/>
<a4j:support event="onchange"
onsubmit="javascript:onAJAXRequestSubmit();"
oncomplete="javascript:onAJAXRequestComplete();"
reRender="a,b,c"
limitToList="true" ignoreDupResponses="true" actionListener="#{java class}">
</a4j:support>
</h:selectOneMenu>
Thanks,
Plad