Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Losing focus from selectOneMenu after AJAX call

843844Nov 16 2007 — edited Jun 21 2008
Hi,
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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 19 2008
Added on Nov 16 2007
4 comments
1,088 views