Yep. TapestryUtils.getForm(this, cycle). (something like that)

On 5/25/07, Howard Lewis Ship <[EMAIL PROTECTED]> wrote:

If the component is enclosed by the Form, it can get the Form instance,
and
get the validation delegate from the Form.  I believe there's a method on
TapestryUtils to handle this.

On 5/25/07, Jan Vissers <[EMAIL PROTECTED]> wrote:
>
> Turns out in my case I actually didn't need this.
>
> My component now references the delegate using the 'page' shared
property:
>
> ognl:page.delegate.fieldTracking
>
> Jan Vissers wrote:
> > Hi,
> >
> > I have a component, that renders 'feedback' information, and in doing
> > so interrogates the ValidationDelegate - or at least that is what is
> > supposed to be happing. However, I haven't found a way to pass the
> > delegate into this component. Is this possible, and if so - how ?
> >
> > I'm now trying:
> >
> > public abstract class Feedback extends BaseComponent {
> >
> > @Parameter(name="delegate",required=false,defaultValue="ognl:
> beans.delegate")
> >
> >    public abstract ValidationDelegate getDelegate();
> > ....
> >
> > }
> >
> > Thanks,
> > -J.
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
>
> --
> Cumquat Information Technology
> De Dreef 19
> 3706 BR Zeist
> T +31 (0)30 - 6940490
> F +31 (0)30 - 6940499
> W http://www.cumquat.nl
>
> E [EMAIL PROTECTED]
> M +31 6 51 169 556
> B http://www.cumquat.nl/technology_atom10.xml
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
Howard M. Lewis Ship
TWD Consulting, Inc.
Independent J2EE / Open-Source Java Consultant
Creator and PMC Chair, Apache Tapestry
Creator, Apache HiveMind

Professional Tapestry training, mentoring, support
and project work.  http://howardlewisship.com




--
Jesse Kuhnert
Tapestry/Dojo team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com

Reply via email to