On the component I have:

    @Parameter
    private List<BreadcrumbBean> breadCrumbs;

This is passed in via the containg (base)page.
And in the same component class I have:

    private BreadcrumbBean crumb;

    public BreadcrumbBean getCrumb() {
        return crumb;
    }

    public void setCrumb(BreadcrumbBean crumb) {
        this.crumb = crumb;
    }

This should be right, right?

-J.

On Fri, 2008-04-18 at 14:00 +0100, nicholas Krul wrote:
> ? is your crumb property of type BreadCrumbBean, or is it type String?
> should be same as breadCrumbs<?TYPE>
> 
> On Fri, Apr 18, 2008 at 1:56 PM, Chris Lewis <[EMAIL PROTECTED]>
> wrote:
> 
> > I can't speak about your t:if bit because I don't know what "LastCrumb"
> > would be, but assuming that your page class has getters/setters (or the
> > property is annotated with @Property) for the "crumb" property, a getter
> > for your "breadCrumbs," and your crumb bean defines a "getName" method,
> > you *should* be good.
> >
> > It would be helpful if you can include the exception, specifically the
> > line it references, etc.
> >
> > chris
> >
> > PS the list is good, the IRC channel (irc.freenode.net #tapestry) is
> > better ;-)
> >
> > Jan Vissers wrote:
> > > Yep, sure, I may I add - This mailing list is great and Tapestry rocks!
> > >
> > >  <t:loop source="breadCrumbs" value="crumb" index="index">
> > >     <t:if test="LastCrumb">
> > >        ${crumb.name}
> > >        <t:parameter name="else">
> > >            <a href="#"
> > > t:type="pageLink" ....>${crumb.name}</a>
> > >               >
> > >        </t:parameter>
> > >     </t:if>
> > > </t:loop>
> > >
> > > -J.
> > >
> > > On Fri, 2008-04-18 at 14:34 +0200, Chris Lewis wrote:
> > >
> > >> Can you share some code? At least the relevant part from template would
> > >> be helpful.
> > >>
> > >> chris
> > >>
> > >> Jan Vissers wrote:
> > >>
> > >>> Hi,
> > >>>
> > >>> Just to make sure I'm not missing something.
> > >>>
> > >>> In T4 when I wrote a @For construct I could use value="..." as long as
> > I
> > >>> provided a setter|getter pair for the class involved - in this case
> > >>> BreadcrumbBean. I want to iterate over a list of beans and use each
> > >>> instance individually. Now T5 throws up on me with this nice coercion
> > >>> message. Does this mean I need to contribute my own coercion - or is
> > >>> there a more simple way? In my case BreadcrumbBean is a simple class
> > >>> holding three String members.
> > >>>
> > >>> Thanks (again :-))
> > >>> -J.
> > >>>
> > >>>
> > >>> ---------------------------------------------------------------------
> > >>> To unsubscribe, e-mail: [EMAIL PROTECTED]
> > >>> For additional commands, e-mail: [EMAIL PROTECTED]
> > >>>
> > >>>
> > >>>
> > >>>
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> > >
> >
> > --
> > http://thegodcode.net
> >
> >


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to