struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From JC <johann...@yahoo.com>
Subject Re: <html:messages> Design issue: mixing data and presentation!!!!
Date Fri, 08 Feb 2002 23:08:08 GMT
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 <husted@apache.org> wrote:
> 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%">
> <TR><TD class="message">
>    <UL>
>    <html:messages id="error">
>       <LI><bean:write name="error"/></LI>
>    </html:messages>
>    </UL>
> </TD></TR>
> </TABLE>
> </logic:messagesPresent>
> 
> 
> JC wrote:
> > 
> > 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
> > formatting on the header and footer, you need to
> enter
> > html in the resources and therefore mixing up data
> and
> > presentation.
> > 
> > An example where this apply is that we have an
> i18n
> > utility where the administrator for each country
> can
> > translate all messages from a default language
> into
> > their local language and for the messages headers
> and
> > footers they have to see the html as well.
> > 
> > Has anyone thought of this before?
> > 
> > /Johannes
> > 
> >
>
_____________________________________________________
> > Hitta snörapporter...
> > från 500 olika skidorter i Europa
> > på http://se.snow.yahoo.com
> > 
> > --
> > To unsubscribe, e-mail:  
> <mailto:struts-user-unsubscribe@jakarta.apache.org>
> > For additional commands, e-mail:
> <mailto:struts-user-help@jakarta.apache.org>
> 
> -- Ted Husted, Husted dot Com, Fairport NY USA.
> -- Java Web Development with Struts.
> -- Tel +1 585 737-3463.
> -- Web http://www.husted.com/struts/
> 
> --
> To unsubscribe, e-mail:  
> <mailto:struts-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
> <mailto:struts-user-help@jakarta.apache.org>
>  

_____________________________________________________
Hitta snörapporter... 
från 500 olika skidorter i Europa
på http://se.snow.yahoo.com

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


Mime
View raw message