我的转换器消息在jsf中不起作用

时间:2014-01-09 07:36:43

标签: jsf-2

我的转换器消息不能以一种特定的形式工作...我没有看到我的代码有任何问题..任何人请看看并帮助我找出问题

这是我的xhtml文件

    <ui:define name="body">
        <f:view>
            <h:form id="summaryrpt" >

                   <table class="bigTable">
                          <!-- Table-1 Row-1 -->
                    <tr>
                        <td colspan="2" align="right" class="tr" >All Funds in Lacs</td>
                    </tr>

                        <c:if test="#{approveall1Bean.detail ne null}" >
                           <!-- Used to show Message -->
                          <tr><td colspan="3"  align="center" >
                                  <h:outputLabel value="" id="rcdsave" /><h:message for="rcdsave" styleClass="LblError"/>
                              </td></tr>
                         <!-- End -->

                         <!-- NLRMP CELL Activities List -->
                          <tr>
                              <td align="center" colspan="2" >
                               <table id="distictTBL"  class="bigTable">
                                  <tr class="header" >
                                          <th>S.No.</th>
                                          <th>Activities</th>
                                          <th>Unit Cost/Rates</th>
                                          <th>Number of unit(s)</th>
                                          <th>Asked Amount</th>
                                          <th>Approve Amount</th>
                                          <th>Remark</th>
                                          <th></th>
                                   </tr>
                                     <c:forEach items="#{approveall1Bean.proposal}" var="prop">
                                      <c:if test="#{prop ne null}" var="p" >
                                                <c:choose>

                                                    <c:when test="#{prop[0] ne ''}">
                                                          <c:if test="#{(prop[0] eq '4') || (prop[0] eq '5')}">
                                                              <tr class="tr">
                                                               <td><h3><h:outputLabel value="#{prop[0]}" /> </h3></td>
                                                              <td><h:outputText value="#{prop[1]}" /> </td>
                                                              <td align="center"><h:outputLabel value="#{prop[2]}" /> </td>
                                                               <td align="center"><h:outputLabel value="#{prop[3]}" /> </td>
                                                               <td align="center"><h:outputLabel value="#{prop[4]}" /> </td>
                                                               <td align="center"><h:inputText value="#{prop[7]}" required="true" requiredMessage="Please Fill the detail" converterMessage="Please Enter valid value. Character and Symbols not allowed"  rendered="#{prop[4] ne ''}" styleClass="TextinputNum">
                                                               <f:convertNumber pattern="#.##" />
                                                                   </h:inputText>                                                               </td>
                                                               <td align="center"><h:inputText value="#{prop[8]}" rendered="#{prop[4] ne ''}"  styleClass="txtara" /> </td>
                                                                </tr>
                                                          </c:if>
                                                       <c:if test="#{prop[0] eq '12'}">
                                                      <tr class="tr">
                                                      <td></td>
                                                      <td colspan="7" ><h:outputText value="#{prop[1]}"/></td>
                                                      </tr>
                                                      </c:if>
                                                      <c:if test="#{(prop[0] eq '1') || (prop[0] eq '2')|| (prop[0] eq '3')}">
                                                      <tr class="tr">
                                                      <td><h3><h:outputLabel value="#{prop[0]}" /> </h3></td>
                                                      <td colspan="7" ><h3><h:outputLabel value="#{prop[1]}"/></h3> </td>
                                                      </tr>
                                                      </c:if>
                                                  </c:when>
                                                  <c:otherwise>
                                                      <tr class="trAlt">
                                                      <td> </td>
                                                      <td><h:outputText value="#{prop[1]}" /> </td>
                                                      <td align="center"><h:outputLabel value="#{prop[2]}" /> </td>
                                                      <td align="center"><h:outputLabel value="#{prop[3]}" /> </td>
                                                      <td align="center"><h:outputLabel value="#{prop[4]}" /> </td>
                                                      <td align="center"><h:inputText value="#{prop[7]}" converterMessage="Please Enter valid value. Character and Symbols not allowed"  rendered="#{prop[4] ne ''}"  styleClass="TextinputNum">
                                                           <f:convertNumber pattern="#.##" />   
                                                          </h:inputText>
                                                      </td>
                                                       <td align="center"><h:inputText value="#{prop[8]}" rendered="#{prop[4] ne ''}"  styleClass="txtara" /> </td>
                                                      </tr>
                                                 </c:otherwise>
                                              </c:choose>
                                      </c:if>
                                    </c:forEach>
                                   </table>
                              </td>
                          </tr>
                          <!-- nlrmp cell End -->

                          <!-- Submit button -->
                          <tr>
                              <td colspan="3" align="center" >
                                  <h:commandButton image="../resources/images/submit.gif" id="btnProposalSubmit"  value="Save" action="#{approveall1Bean.saveDistrictApprove}" >

                                   </h:commandButton>

                              </td>
                          </tr>
                          </c:if>
                          <!-- End -->

                        </table>
            </h:form>
        </f:view>
    </ui:define>
</ui:composition>

当我点击提交按钮时,我得到以下错误“输入字符串:”qq“”

谁能告诉我问题出在哪里?

0 个答案:

没有答案