I trying to debug this problem and i found that ognl:item is always null
<span jwcid="$content$">
<div class="TreeView">
<div jwcid="@Foreach" source="ognl:treeModel.iterator"
value="ognl:item">
<span jwcid="@Conditional" condition="ognl:item == null">
<div> ognl:item is null</div>
</span>
<span jwcid="@Conditional" condition="ognl:item != null">
<div jwcid="@TreeItemView" model="ognl:object"/>
</span>
</div>
</div>
</span>
<component-specification
class="oz.webs.TreeView"
allow-body="yes" allow-informal-parameters="yes">
<parameter name="treeModel"
type="oz.webs.TreeModel" direction="in" required="yes"/>
<property-specification name="item" type="java.util.Iterator"/>
</component-specification>
Generated Html
<div class="TreeView">
<div> ognl:item is null</div>
<div> ognl:item is null</div>
<div> ognl:item is null</div>
<div> ognl:item is null</div>
</div>
can any body say me why the value of ognl:item is not updated?
On 5/23/05, pepone pepone <[EMAIL PROTECTED]> wrote:
> i think this isn't the problem
>
> model must be type TreeModelItem and ongl:item is a
> java.util.Iterator not a TreeModelItem
>
> but i test it and it don't work for my example
>
>
> On 5/23/05, Jamie Orchard-Hays <[EMAIL PROTECTED]> wrote:
> > Do you just want to say:
> >
> > <div jwcid="@TreeItemView" model="ognl:item"/>
> >
> > in your TreeItemView?
> >
> >
> >
> > pepone pepone wrote:
> > > Hello list
> > >
> > > i trying to pass the foreach att value to a model.getObject method of
> > > my component
> > > but i unable to get this working
> > >
> > > <div jwcid="@Foreach" source="ognl:model.iterator" value="ognl:item">
> > > <div jwcid="@TreeItemView" model="ognl:model.getObject(item)"/>
> > > </div>
> > >
> > > can any body sayme if posible and the correct way to doit
> > >
> > > thanks
> > >
> > > ---------------------------------------------------------------------
> > > 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]
> >
> >
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]