Announcement Announcement Module
Collapse
No announcement yet.
problem with validationMessageCode in generated create view Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • problem with validationMessageCode in generated create view

    Somehow I ended up with this generated view. Tomcat complains about with the stack trace below. Not sure how it got there, but removing validationMessageCode="field.invalid.email" fixed the problem.



    <code>

    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <div xmlns:c="http://java.sun.com/jsp/jstl/core" xmlns:field="urn:jsptagdir:/WEB-INF/tags/form/fields" xmlns:form="urn:jsptagdir:/WEB-INF/tags/form" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:spring="http://www.springframework.org/tags" version="2.0">
    <jsp:output omit-xml-declaration="yes"/>
    <form:create id="fc_com_vmware_cloud_orchestration_onboarding_O rgSettings" modelAttribute="orgSettings" path="/orgsettingses" render="${empty dependencies}" z="Oft2bLdAXQoGnzc88zpPxqkHefQ=">

    <field:checkbox field="canPublishCatalogs" id="c_com_vmware_cloud_orchestration_onboarding_Or gSettings_canPublishCatalogs" z="imZGod+o7PfLN5Mb8lDgf9sRGhk="/>
    <field:input field="delayAfterPowerOnSeconds" id="c_com_vmware_cloud_orchestration_onboarding_Or gSettings_delayAfterPowerOnSeconds" validationMessageCode="field.invalid.integer" z="9PRokG+LNUIWkRjFPv2nDQwvbqk="/>
    <field:input field="deployedVmQuota" id="c_com_vmware_cloud_orchestration_onboarding_Or gSettings_deployedVmQuota" validationMessageCode="field.invalid.integer" z="sZP2OHfi+hRc7iHGIUWic/eezN8="/>
    <field:input field="storedVmQuota" id="c_com_vmware_cloud_orchestration_onboarding_Or gSettings_storedVmQuota" validationMessageCode="field.invalid.integer" z="FOH6Y9IYDz15fA09bALscM4sBMg="/>
    <field:checkbox field="useServerBootSequence" id="c_com_vmware_cloud_orchestration_onboarding_Or gSettings_useServerBootSequence" z="c0Et+TlqAIeKDsAN/Z2ZtP5L7wg="/>
    <field:select field="ldapMode" id="c_com_vmware_cloud_orchestration_onboarding_Or gSettings_ldapMode" items="${ldapmodesenums}" path="ldapmodesenums" z="BmX4M+cqqi/WCZBp6wtypbUa2FA="/>
    <field:select field="leaseSettings" id="c_com_vmware_cloud_orchestration_onboarding_Or gSettings_leaseSettings" itemValue="id" items="${orgleasesettingses}" path="/orgleasesettingses" z="FRZaTy2JDcXIiRHdqq5tTVObUQw="/>
    <field:select field="emailSettings" id="c_com_vmware_cloud_orchestration_onboarding_Or gSettings_emailSettings" itemValue="id" items="${orgemailsettingses}" path="/orgemailsettingses" validationMessageCode="field.invalid.email" z="m58ajzhOTueeKni6LkiEaTqIA2k="/>
    <field:simple field="adminOrgs" id="c_com_vmware_cloud_orchestration_onboarding_Or gSettings_adminOrgs" messageCode="entity_reference_not_managed" messageCodeAttribute="Admin Organization" z="Ma2V8p4bXopw3f1wDqJDFNUypl8="/>
    <field:select field="ldapSettings" id="c_com_vmware_cloud_orchestration_onboarding_Or gSettings_ldapSettings" itemValue="id" items="${orgldapsettingses}" path="/orgldapsettingses" z="DMUtSNdB019zPw5Ibzj5/2ZgQAE="/>
    <field:checkbox field="isEnabled" id="c_com_vmware_cloud_orchestration_onboarding_Or gSettings_isEnabled" z="DBnN4BpFSbgUijiN1wzMRoM7qM4="/>
    </form:create>
    <form:dependency dependencies="${dependencies}" id="d_com_vmware_cloud_orchestration_onboarding_Or gSettings" render="${not empty dependencies}" z="vHnw1BZ5R0vZ4ht1cT9NiIOQPes="/>
    </div>

    </code>




    Aug 7, 2010 2:26:25 PM org.apache.catalina.core.StandardWrapperValve invoke
    SEVERE: Servlet.service() for servlet default threw exception
    org.apache.jasper.JasperException: /WEB-INF/views/orgsettingses/create.jspx(13,270) Attribute validationMessageCode invalid for tag select according to TLD
    at org.apache.jasper.compiler.DefaultErrorHandler.jsp Error(DefaultErrorHandler.java:40)
    at org.apache.jasper.compiler.ErrorDispatcher.dispatc h(ErrorDispatcher.java:407)
    at org.apache.jasper.compiler.ErrorDispatcher.jspErro r(ErrorDispatcher.java:236)
    at org.apache.jasper.compiler.Validator$ValidateVisit or.checkXmlAttributes(Validator.java:1235)
    at org.apache.jasper.compiler.Validator$ValidateVisit or.visit(Validator.java:846)
    at org.apache.jasper.compiler.Node$CustomTag.accept(N ode.java:1530)
    at org.apache.jasper.compiler.Node$Nodes.visit(Node.j ava:2361)
    at org.apache.jasper.compiler.Node$Visitor.visitBody( Node.java:2411)
    at org.apache.jasper.compiler.Validator$ValidateVisit or.visit(Validator.java:865)
    at org.apache.jasper.compiler.Node$CustomTag.accept(N ode.java:1530)
    at org.apache.jasper.compiler.Node$Nodes.visit(Node.j ava:2361)
    at org.apache.jasper.compiler.Node$Visitor.visitBody( Node.java:2411)
    at org.apache.jasper.compiler.Validator$ValidateVisit or.visit(Validator.java:750)
    at org.apache.jasper.compiler.Node$UninterpretedTag.a ccept(Node.java:1246)
    at org.apache.jasper.compiler.Node$Nodes.visit(Node.j ava:2361)
    at org.apache.jasper.compiler.Node$Visitor.visitBody( Node.java:2411)
    at org.apache.jasper.compiler.Node$Visitor.visit(Node .java:2417)
    at org.apache.jasper.compiler.Node$Root.accept(Node.j ava:495)
    at org.apache.jasper.compiler.Node$Nodes.visit(Node.j ava:2361)
    at org.apache.jasper.compiler.Validator.validateExDir ectives(Validator.java:1763)
    at org.apache.jasper.compiler.Compiler.generateJava(C ompiler.java:198)
    at org.apache.jasper.compiler.Compiler.compile(Compil er.java:347)
    at org.apache.jasper.compiler.Compiler.compile(Compil er.java:327)
    at org.apache.jasper.compiler.Compiler.compile(Compil er.java:314)
    at org.apache.jasper.JspCompilationContext.compile(Js pCompilationContext.java:589)
    at org.apache.jasper.servlet.JspServletWrapper.servic e(JspServletWrapper.java:317)
    at org.apache.jasper.servlet.JspServlet.serviceJspFil e(JspServlet.java:313)
    at org.apache.jasper.servlet.JspServlet.service(JspSe rvlet.java:260)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:717)
    at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:290)
    at org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:206)
Working...
X