Ok, I’ve spent ½ a day on this & now I need a little help.

 

I have a page with 2 text fields on it. When I submit the pages I get the messages…

 

  • Conversion Error in rack1
  • Validation Error in rack2

Why are the messages different? Both fields are the same time, just in different classes.

Please someone give me a clue.

The JSP Code is…

<h:outputLabel for="r1" value="rack1" />             

<h:inputText id="r1"    value="#{nonConformingMaterial.problemCause}"         maxlength="10" size="20" required="true" />       

 

<h:outputLabel for="r2value="rack2" />

<h:inputText id="r2"    value="#{problemImprovementRequest.issuerUID}"        maxlength="10" size="20" required="true" /> 

 

 

<h:commandButton value="save" action="#{taskListMangerBean.saveMethod}"/>

<t:messages id="messageList" styleClass="error" summaryFormat="{0} in {1}" />

 

 

The Java Code for each object is…

 

private String problemCause = “”;

public String getProblemCause() {

            return problemCause;

}

public void setProblemCause(String problemCause) {

            this.problemCause = problemCause;

}

 

private String issuerUID = "";

public String getIssuerUID() {

            return issuerUID;

}

public void setIssuerUID(String issuerUID) {

            this.issuerUID = issuerUID;

}

 

Thanks

Jeff

Reply via email to