« Return to Thread: Validation and CSS with 4.1.3-SNAPSHOT
andyhot wrote:Css is supposed to be auto-included only for the exception page
Regarding toaster - it's really cool... If you get tacos [1]
you use the dojo:Widget component [2] by:
<div jwcid="infoPanel@dojo:Widget" dojoType="toaster"
positionDirection="br-up"
messageTopic="info" duration="5000"></div>
and then, in an ajax listener:
cycle.getResponseBuilder().addStatusMessage(null, "info", "My custom status
message");
[1]
http://tacos.sourceforge.net/tacos4.1/tacos-core/quick-start/downloading.html
[2] http://tacos.sourceforge.net/tacos4.1/tacos-core/tapdocs/index.html
On 8/23/07, Jesse Kuhnert <jkuhnert@gmail.com> wrote:
>
> The style related css stuff you want might be helped by looking here:
>
>
> http://tapestry.apache.org/tapestry4.1/usersguide/clientside-validation.html
>
> (i thought that Andy had made the css style for that stuff inlined
> automatically though, maybe there is some other weird collision
> happening)
>
> For customization of validation UI - you can do it however you like by
> overriding any of the tapestry javascript functions discussed here:
>
> http://tapestry.apache.org/tapestry4.1/javascript/form-validation.html
>
> For example, if you wanted to inline the error messages you could
> redefine
>
> tapestry.form.validation.summarizeErrors(form, results, profile)
>
> to do something more humane - like
>
> http://www.humanized.com/weblog/2006/09/11/monolog_boxes_and_transparent_messages/
> .
>
> I keep forgetting to add it in but I implemented the humanized style
> toaster in dojo (before humanized talked about it) and you can find a
> tapestry impl of it here:
>
> http://blog.opencomponentry.com/2007/03/29/philly-is-burning/
>
> If you want text to appear somewhere next to fields it might be
> easiest to override:
>
> tapestry.form.validation.handleMissingField(field, profile)
> tapestry.form.validation.handleInvalidField(field, profile)
>
> The most up to date API kind of javascript docs can be found here:
>
> http://tapestry.apache.org/tapestry4.1/jsdoc/index.html
>
> On 8/23/07, mraible <matt@raibledesigns.com> wrote:
> >
> > After upgrading from 4.0.2 to 4.1.3-SNAPSHOT, I'm getting some strange
> issues
> > in regards to validation. When the client-side validation pops up, all I
> see
> > is an "OK" button and nothing else. Are there some CSS styles I need to
> add
> > in order to see the messages?
> >
> > Also, is it possible to have the errors inlined instead of in a popup?
> >
> > Screenshot: http://www.nabble.com/file/p12296912/Picture%2B1.png
> >
> > Thanks,
> >
> > Matt
> >
> > --
> > View this message in context:
> http://www.nabble.com/Validation-and-CSS-with-4.1.3-SNAPSHOT-tf4318536.html#a12296912
> > Sent from the Tapestry - User mailing list archive at Nabble.com.
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
> >
> >
>
>
> --
> Jesse Kuhnert
> Tapestry/Dojo team member/developer
>
> Open source based consulting work centered around
> dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
--
Andreas Andreou - andyhot@apache.org - http://andyhot.di.uoa.gr
Tapestry / Tacos developer
Open Source / JEE Consulting
« Return to Thread: Validation and CSS with 4.1.3-SNAPSHOT
| Free embeddable forum powered by Nabble | Forum Help |