ModalPanel, a4j:include, ajaxSingle & process together not f
gerritka Aug 22, 2008 2:21 AMHi,
i have problems with a4j:include and ajaxSingle/process. I use latest 3.2.2.BETA5 release (3.2.1.GA has similar problems). the folowing code snippet not function properly. If i click the delete button, the modal panel will close/reload the whole site instead of jumping to the next step. if i activate immediate=true and romve ajaxSingle/process, all functions good, but i don't get the value from the selectbox. i must use ajaxsingle, because the inputText can fail during validation phase if i want to save a profile.
ModalPanel:
<rich:modalPanel id="profilepanel" resizeable="false"
zindex="2000" height="230" width="540"
style="background-color:#ffffff;">
<h:form id="profile_manager">
<rich:message for="route_name" />
<h:panelGroup>
<a4j:include viewId="#{profileController.routeViewId}" />
</h:panelGroup>
</h:form>
</rich:modalPanel>
first step:
<f:subview id="routing_profiles_savetruck">
<h:panelGrid columns="2" id="truck_profile_table">
<h:inputText value="#{profileController.truckName}" id="truck_name" required="true"
requiredMessage="#{res.profileadministration_required_name}"
styleClass="input_text" validator="#{profileController.checkTruckCounterAndName}"/>
<a4j:commandButton action="#{profileController.saveTruckProfile}"
image="..." reRender="truck_name_label"
onclick="this.disabled=true" oncomplete="this.disabled=false"
id="save_truck_profile" alt="#{res.routing_alt_savetruck}" title="#{res.routing_alt_savetruck}" />
<h:selectOneMenu value="#{profileController.selectedTruckIdx}"
styleClass="input_select_fixed" id="truckSelector"
disabled="#{profileController.truckProfilesSize == 0}">
<f:selectItems value="#{profileController.truckProfiles}" />
</h:selectOneMenu>
<h:panelGroup>
<a4j:commandButton action="loadTruck" disabled="#{empty profileController.truckProfiles}"
image="..." id="load_truck"
alt="#{res.routing_alt_loadtruck}" title="#{res.routing_alt_loadtruck}"
onclick="this.disabled=true" oncomplete="this.disabled=false" />
<a4j:commandButton action="deleteTruck" disabled="#{empty profileController.truckProfiles}"
id="delete_truck" image="...." ajaxSingle="true" process="truckSelector"
alt="#{res.routing_alt_deletetruck}" title="#{res.routing_alt_deletetruck}"
onclick="this.disabled=true" oncomplete="this.disabled=false"
style="padding-left: 10px;"/>
</h:panelGroup>
</h:panelGrid>
</f:subview>
I also have problems with wrong coded image links from the commandbutton (wrong character inside)