Modelpanel validation message not displaying in screen???
sivaprasad9394 Nov 16, 2010 6:35 AMHi all,
In my application ,if the use is not selecting the values in the combobox it should display the Error message in the Modelpanel.I am able to see the message in the backend log.But front end i can't able to see the message.How to resolve this issue????Thanks for reading.
Page:
Modelpanel page:
<%@ taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@ taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"%>
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
<rich:modalPanel id="info_release_editModel" moveable="false" resizeable="false" autosized="false"
width="950" height="500" showWhenRendered="false" style="overflow-y: scroll">
<f:facet name="header">
<h:outputText value="Edit Customer Info - Call Bar" styleClass="modalPanel12"/>
</f:facet>
<f:facet name="controls">
<h:panelGroup>
<h:outputLabel value="Press Esc to close"></h:outputLabel>
<h:outputLabel value="(OR)"></h:outputLabel>
<a4j:commandLink id="hidelinkstatusmodal"
styleClass="hidelink" style="border:0" title="Close"
limitToList="true" ajaxSingle="true">
<img src="../_assets/image/close.png">
</a4j:commandLink>
<rich:componentControl for="info_release_editModel" attachTo="hidelinkstatusmodal"
operation="hide" event="onclick" />
</h:panelGroup>
</f:facet>
<h:form id="releaseEditForm">
<a4j:outputPanel>
<table class="font_exist" width="950" height="50%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td>
<a4j:region selfRendered="true">
<a4j:include id="commonPageView" viewId="/existingcustomer/postpaid/header_common_modal.jsp"></a4j:include>
</a4j:region>
</td>
</tr>
<tr>
<td><table width="900" border="1">
<tr>
<td width="176"><h:outputText value="#{msg['existingcustomer.postpaid.modelpanel.currcallbar']}"/>
<h:outputText value="#{msg.semiColon}"/></td>
<td width="486"><h:outputText id="postpaidCallBarFields" styleClass="style1" value="#{accountInfoBean.callBar}"/></td>
<td width="282"> </td>
</tr>
<tr>
<td><h:outputText value="#{msg['existingcustomer.postpaid.modelpanel.currcallbartype']}"/>
<h:outputText value="#{msg.semiColon}"/></td>
<td><h:outputText id="postpaidCallBarTypeFields" styleClass="style1" value="#{accountInfoBean.callBarType}"/></td>
<td> </td>
</tr>
<tr>
<td><h:outputText value="*" styleClass="mandatory_text" />
<h:outputText value="#{msg['existingcustomer.postpaid.modelpanel.currcallbartypereason']}"/>
<h:outputText value="#{msg.semiColon}"/></td>
<td><rich:comboBox id="cbxcallBarTypereasonField" listClass="myClass" width="250"
selectFirstOnUpdate="false" required="true"
enableManualInput="false" requiredMessage="#{msg.requiredField}"
defaultLabel="#{msg.defaultLabel}" directInputSuggestions="true"
value="#{editAccountInfoBean.cbxReleaseCallBarReason}">
<f:selectItems value="#{listBoxBean.selectCallBarTypeReason}"/>
<a4j:support event="onblur"
id="ajaxSuppServiceID" reRender="p_statustypeField,e_statustypeField">
</a4j:support>
</rich:comboBox>
</td>
<td> <a4j:region><a4j:outputPanel id="p_statustypeField" ajaxRendered="true">
<h:message id="e_statustypeField" for="cbxnewServiceField" styleClass="fieldError"/>
</a4j:outputPanel></a4j:region></td>
</tr>
<tr>
<td height="18"><h:outputText id="notesField" value="#{msg.notes}"/>
<h:outputText value="#{msg.semiColon}"/></td>
<td><h:inputTextarea cols="50" rows="5" value="#{editAccountInfoBean.callBarNotes}" style=" width : 341px;"></h:inputTextarea></td>
<td> </td>
</tr>
</table></td>
</tr>
<tr>
<td> </td>
</tr>
</table>
<h:panelGrid columns="6">
<a4j:commandButton limitToList="true" ajaxSingle="true" reRender="p_statustypeField,e_statustypeField"
id="saveButtonId" styleClass="celcocm01" value="#{msg.save}"
action="#{editAccountInfoBean.submitupdateCallbarReasonAction}"
oncomplete="if(#{facesContext.maximumSeverity==null})#{rich:component('info_release_editModel')}.hide();"/>
<a4j:commandButton limitToList="true" ajaxSingle="true" reRender="cbxcallBarTypereasonField,p_statustypeField"
id="resetButtonId" styleClass="celcocm01" value="#{msg.reset}"
oncomplete="if(#{facesContext.maximumSeverity==null})#{rich:component('info_release_editModel')}.hide();"/>
<a4j:commandButton limitToList="true" ajaxSingle="true" reRender="cbxcallBarTypereasonField,p_statustypeField"
id="cancelButtonId" styleClass="celcocm01" value="#{msg.cancel}"
oncomplete="if(#{facesContext.maximumSeverity==null})#{rich:component('info_release_editModel')}.hide();"/>
</h:panelGrid>
</a4j:outputPanel>
</h:form>
</rich:modalPanel>
Backendlog file:
19:26:05,953 INFO [SessionTimeoutFilter] in the is session control required for this resourse method with the control required variable value is....true
19:26:05,953 INFO [SessionTimeoutFilter] in the is session invalid method..........
19:26:05,953 INFO [SessionTimeoutFilter] false : session in valid value is the bollean variable.....
19:26:07,031 INFO [lifecycle] WARNING: FacesMessage(s) have been enqueued, but may not have been displayed.
sourceId=mainSystemrInclude:postpaidCustomerView:postpaidCustomerForm:generalInformationPage:releaseEditView:releaseEditForm:cbxcallBarTypereasonField[severity=(ERROR 2), summary=(Required field cannot be left blank ), detail=(Required field cannot be left blank )]
How to fix this problem?Is there any error in Model panel page.