Ah, yes. Nice and smooth! I must really go through the
newer tags properly. Did the same solution with my own
tag, but it would be nicer to use this. Thanks!
/Johannes
--- Ted Husted [EMAIL PROTECTED] wrote:
That was true with the html:errors tag, but not with
the newer
html:messages tag.
have to put the html in the resource file
for header and footer?
You can use include directive instead.
- Original Message -
From: JC [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, February 07, 2002 3:31 AM
Subject: html:messages Design issue: mixing data
and presentation
Hi,
A great thing with Struts is the error validation
capabilities. However, the use of html:errors/, or
lately html:messages, poses a problem that I found
not to be a very good design (though it is slightly
better in the messages tag).
What I don't like is, in order to get any presentation
That was true with the html:errors tag, but not with the newer
html:messages tag. With the messages, tag the errors.header and .footer
are optional, so can do things like this:
logic:messagesPresent
TABLE width=100%
TRTD class=message
UL
html:messages id=error
LIbean:write
Why do you have to put the html in the resource file for header and footer?
You can use include directive instead.
- Original Message -
From: JC [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, February 07, 2002 3:31 AM
Subject: html:messages Design issue: mixing data
5 matches
Mail list logo