0

I'm using primefaces 3.5 JBoss 7.1.1. I'm migrating my app to Wildfly 9.0.2.

The following code used to work with JBoss but no longer with WildFly.

                <p:tabView id="tabView" dynamic="true" cache="false" style="width:1120px">
                <f:event listener="#{ucoController.loadUcoConfiguration}" type="preRenderView" />
                <p:tab id="Activation" title="SOMF Activation">  
                    <h:panelGrid id="ActivationPG" columns="1" cellpadding="10" border="0">  
                        <h:form id="user" class="sgdsForm clear">
                            <script type="text/javascript">  
                                function startAjaxStatus(){
                                    document.getElementById("tabView:user:image").style.display='block';
                                    document.getElementById("tabView:user:shutDown").style.display='block';
                                }
                            </script>
                            <ol>    
                                <li>
                                    <label for="activate" class="label">SOMF Activation</label>
                                    <p:selectBooleanCheckbox value="#{configurationBean.SOMFActivated}" />
                                </li>

                                <li>    
                                    <br/>   
                                    <h:outputText value="#{configurationBean.SOMFActivationMessage}" style="float:left; text-align:left;margin-leftt:7px;color:#0F5795;font-weight:bold;font-size:0.9em;line-height:23px;"/>
                                </li>
                                <li>
                                    <br/>
                                    <p:commandButton ajax="false" global="#{configurationBean.SOMFActivated}" onclick="startAjaxStatus()" value="Update" actionListener="#{ucoController.updateUco}"  id="updateActivation" icon="ui-icon-disk" update=":tabView:user,:tabView:ScreeningForm> 
                                    </p:commandButton>
                                </li>
                            </ol>    
                            <h:panelGrid columns="2" border="0" > 
                                <h:outputText value="Update in progress..." id="shutDown" style="color:#0F5795;font-weight:bold;font-size:0.9em;line-height:23px;display:none;"/>
                                <p:graphicImage value="resources/img/load.gif" id="image" style="display:none;"/>
                            </h:panelGrid>
                        </h:form>
                    </h:panelGrid>  
                </p:tab>  
                <p:tab id="Screening" title="Screening" rendered="#{ucoController.disableConfiguration}">  
                    <h:panelGrid id="ScreeningPG" columns="1"  cellpadding="10" border="0"> 
                        <h:form id="ScreeningForm" class="sgdsForm clear" >
                            <ol>    
                                <li>       
                                    <label for="analysis" class="label required">Think Time (ms)</label>
                                    <h:inputText id="thinkTime" value="#{configurationBean.screeningThinktime}" maxlength="5" readonly="#{configurationBean.SOMFActivated}">
                                        <f:validator validatorId="screeningTimeValidator" />
                                        <f:attribute name="autoScreening" value="#{configurationBean.automaticScreening}" /> 
                                    </h:inputText>
                                </li>
                                <li>
                                    <label for="activate" class="label">Automatic Screening</label>
                                    <p:selectBooleanCheckbox value="#{configurationBean.automaticScreening}" readonly="#{configurationBean.SOMFActivated}" disabled="#{configurationBean.SOMFActivated}"/>
                                </li>

                                <li>
                                    <br/>
                                    <p:commandButton disabled="#{configurationBean.SOMFActivated}" oncomplete="handleComplete(xhr, status, args)" value="Update"  actionListener="#{ucoController.updateUco}" id="updateScreening" icon="ui-icon-disk" process="@this,ScreeningForm" update=":tabView:ScreeningPG"/>
                                </li>

                            </ol>
                        </h:form>
                    </h:panelGrid>
                </p:tab>  
        </p:tabView>

And my backing bean :

@ManagedBean(name = "ucoController", eager = true)
@SessionScoped
public class UcoController implements Serializable {
public final ConfigurationBean loadConfiguration() {
    // load configuration
}

public final void updateUco(ActionEvent event) {
    // update configuration
}
}

I wonder why the updateUco method is not fired when submiting the form. In consequence my form seems to not be submitted! The model doesn't change.

Is there anything wrong with mojarra version or primefaces?

I went through this exhaustive answer for what to appear the same problem. But none of the point described fit for my case !

Hassam Abdelillah
  • 2,246
  • 3
  • 16
  • 37

1 Answers1

1

Please upgrade primefaces to version 4.0 in order to support JSF version 2.2 which is supported in Wildfly 9.0.2.

Apostolos
  • 10,033
  • 5
  • 24
  • 39