yep, i have a border implementation that does just this.

it searches its hierarchy for a formcomponent(s) and adds labels, then if
there are any errors it renders them after the component. so it is
definetely possible, you still have to add a border/component but the
chances are you are adding a label/component anyways.

-igor


On 8/16/07, Scott Swank <[EMAIL PROTECTED]> wrote:
>
> Look at Borders
>
>
> http://wicketstuff.org/wicket13/compref/?wicket:bookmarkablePage=%3Aorg.apache.wicket.examples.compref.BorderPage
>
> Particular the FormComponentFeedbackBorder.
>
>
> On 8/16/07, Onno Scheffers <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > I'm new to Wicket. I worked with Tapestry before and I was wondering if
> > there's something like the Tapestry ValidationDelegate available in
> Wicket?
> >
> > By adding a ValidationDelegate to a form I was able to override methods
> > like writeLabelPrefix, writeLabelSuffix, writePrefix and writeSuffix.
> > That made it very easy to add a '*' behind each component in the form if
> > it was required and when it was in error I could automatically render
> > the error-message behind the component and apply an error-style to the
> > label of that component.
> > It made life much easier and saved a lot of code.
> >
> > So far the only way I've been able to get error-messages to render
> > behind component in Wicket is by using a custom component that I
> > manually have to add after each component to both the template and to
> > the Java code. I haven't yet found a way to add behaviors to components
> > or forms that can render this kind of markup behind an existing
> > component or its label.
> >
> > Rendering error-messages behind components is quite common and I'm a
> > Wicket newbie, so I'm sure I must have overlooked something. Any help
> > would be appreciated.
> >
> > regards,
> >
> > Onno
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> --
> Scott Swank
> reformed mathematician
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to