You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Rhys Causey <rh...@technolog.ca> on 2005/06/30 01:02:21 UTC
Fwd: [Eng] Tapestry and ValidationDelegate
Begin forwarded message:
> From: <ed...@technolog.ca>
> Date: June 29, 2005 7:00:38 PM EDT (CA)
> To: <en...@technolog.ca>
> Subject: [Eng] Tapestry and ValidationDelegate
> Reply-To: Engineering Email Alias <en...@technolog.ca>
>
>
> Hi,
> So I've read the chapter in `Tapestry in Action' explaining the use of
> ValidationDelegate. The explained method of modifying the rendered
> components (i.e. to highlight an input box red) seems really
> awkward in
> the sense that this is done using the IMarkupWriter within the
> writeSuffix, Prefix, Attributes, LabelSuffix, and LabelPrefix. I find
> this contradicts the main goals of Tapestry and it's ideas of
> separating
> logic (java objects) and presentation (html templates).
>
> Is there another method?
>
>
> _______________________________________________
> Eng mailing list
> Eng@technolog.ca
> http://www.technolog.ca/mailman/listinfo/eng
>
Re: [Eng] Tapestry and ValidationDelegate
Posted by Nick Stuart <ba...@gmail.com>.
Well, there are just some places where the two have to mix. Any way
you slice it you are going to have to figure if something went wrong
(the logic) and what to do to tell the user (the presentation). I
think doing this in the MarkupWriters is about as good a spot as any.
It keeps it generic enough that you don't have to know what exactly
went wrong, but you still get to 'tell' the user about it.
There would be other ways to do it, such as a conditional that would
change the CSS styles or something like that, but why?
-Nick
On 6/29/05, Rhys Causey <rh...@technolog.ca> wrote:
>
>
> Begin forwarded message:
>
> > From: <ed...@technolog.ca>
> > Date: June 29, 2005 7:00:38 PM EDT (CA)
> > To: <en...@technolog.ca>
> > Subject: [Eng] Tapestry and ValidationDelegate
> > Reply-To: Engineering Email Alias <en...@technolog.ca>
> >
> >
> > Hi,
> > So I've read the chapter in `Tapestry in Action' explaining the use of
> > ValidationDelegate. The explained method of modifying the rendered
> > components (i.e. to highlight an input box red) seems really
> > awkward in
> > the sense that this is done using the IMarkupWriter within the
> > writeSuffix, Prefix, Attributes, LabelSuffix, and LabelPrefix. I find
> > this contradicts the main goals of Tapestry and it's ideas of
> > separating
> > logic (java objects) and presentation (html templates).
> >
> > Is there another method?
> >
> >
> > _______________________________________________
> > Eng mailing list
> > Eng@technolog.ca
> > http://www.technolog.ca/mailman/listinfo/eng
> >
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org