I’m having a problem retrieving a value from an application resource using a bean tag. I don’t have a problem referencing the tag when creating the input field. I’m getting an error, ‘JspTranslate: Attribute textarea.maxchar has no value’, when I use the tag to create a textarea. The code from the JSP follows:
<TR><TD> <input name=busPurposeLen type=text value="<bean:message key="textarea.maxchar" />" size=3 maxlength=3 readonly> characters available</TD></TR>
<TR><TD><html:textarea property="businessPurpose" cols="82" rows="4"
onchange="trim(this.form.businessPurpose, this.form.busPurposeLen, <bean:message key="textarea.maxchar" />)"
onkeydown="textCounter(this.form.businessPurpose, this.form.busPurposeLen, <bean:message key="textarea.maxchar" />)"
onkeyup="textCounter(this.form.businessPurpose, this.form.busPurposeLen, <bean:message key="textarea.maxchar" />)" /><BR><BR></TD></TR>
I’m not sure why I’m getting the error using the html:textarea element.
Tom
<TR><TD> <input name=busPurposeLen type=text value="<bean:message key="textarea.maxchar" />" size=3 maxlength=3 readonly> characters available</TD></TR>
<TR><TD><html:textarea property="businessPurpose" cols="82" rows="4"
onchange="trim(this.form.businessPurpose, this.form.busPurposeLen, <bean:message key="textarea.maxchar" />)"
onkeydown="textCounter(this.form.businessPurpose, this.form.busPurposeLen, <bean:message key="textarea.maxchar" />)"
onkeyup="textCounter(this.form.businessPurpose, this.form.busPurposeLen, <bean:message key="textarea.maxchar" />)" /><BR><BR></TD></TR>
I’m not sure why I’m getting the error using the html:textarea element.
Tom