In one of my webapplication i'm using icefaces + seam. i've a web page which enable the user to fill a form. User can choose a category by using a selectOneMenu and the selection of category will be send to the server and will be shown to the user. I'm using following to show the web page with the form fields:
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:s="http://jboss.com/products/seam/taglib"
template="template.xhtml"
xmlns:ice="http://www.icesoft.com/icefaces/component" >
<!-- content -->
<ui:define name="content">
<f:loadBundle basename="localization.application" var="bundle" />
<ice:panelGroup id="contentAddAdvertismentPage">
<div class="section">
<ice:form>
<ice:panelTabSet stylclass="panelTabSet" tabPlacement="top" id="panelTabSetIDAddAdvertismentPage">
<ice:panelTab id="panelTabIDAddAdvertismentPage2" label="New Advertisement" rendered="true">
<ice:panelGrid columns="2" rendered="true">
<ice:inputText id="advTitleINP" value="#{selectedAdvertisement.title}"/>
<ice:outputText id="advTitleOUP" value="title" styleClass="valueHeader"/>
</ice:panelGrid>
<ice:selectOneMenu value="#{selectedAdvertisement.title}"
partialSubmit="true" immediate="true" >
<f:selectItems value="#{advertisementCategoryDataAction.componentList}" />
</ice:selectOneMenu>
<div id="EditChooseBox" class="buttonBox">
<ice:commandButton id="Saveadvertisementbutton" value="Save" action="#{advertisementHandle.saveAdvertisement}"/>
<s:button id="cancelEditViewing" value="Cancel" view="/userpage.xhtml"/>
</div>
</ice:panelTab>
</ice:panelTabSet>
</ice:form>
</div>
</ice:panelGroup>
</ui:define>
</ui:composition>
If the user do not choose any category, it get a defalut category otherwise he will see the category in another fields. The problem is that after user action, the selectOneMenu jump to its default category(first category in the list). Probably "ice:selectOneMenu" element will also be refreshed. How can i solve this problem?