struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Burton Rhodes <burtonrho...@gmail.com>
Subject Possible bug on fieldError? (S2.1.6)
Date Thu, 22 Oct 2009 21:39:53 GMT
I have the following line in my jsp:

<s:textarea name="contactNote.note" rows="4" cssClass="Data"
cssErrorClass="ErrorDataField" cssStyle="width: 350px" />

When no fieldErrors exist, it displays like this:

<textarea name="contactNote.note" cols="" rows="4"
id="ContactNote_update_contactNote_note" class="Data" style="width:
350px"></textarea>

However, when a fieldError does exist for this field, it omits the
"style" attribute.  Is this a bug or a feature?!  I would prefer the
style to stay since it makes my textarea too small.

<textarea name="contactNote.note" cols="" rows="4"
id="ContactNote_update_contactNote_note" class="Data
ErrorDataField"></textarea>


Thanks,
Burton

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message