Sorry i misunderstand your response

now is working ok

thanks again

On 5/23/05, Jamie Orchard-Hays <[EMAIL PROTECTED]> wrote:
> It should take iterator. I just wanted to point out that the component
> will coerce an iterator, so you don't have to specify it. The more
> important aspect of my reply has to do with item, which isn't of type
> Iterator.
> 
> pepone pepone wrote:
> > in tapestry component reference say that source can be Iterator,
> > Collection, Object[], or Object  is this reference out of date??
> >
> > http://jakarta.apache.org/tapestry/doc/ComponentReference/Foreach.html
> >
> >
> > On 5/23/05, Jamie Orchard-Hays <[EMAIL PROTECTED]> wrote:
> >
> >>item should not be of type Iterator, but the type of object in your
> >>List, Array, etc.
> >>
> >>Don't pass in "treeModel.iterator" for source, but just "treeModel".
> >>Tapestry will coerce the object into an Iterator.
> >>
> >>Again, have a look at the Foreach class and .jwc file to see what's
> >>going on.
> >>
> >>Jamie
> >>
> >>pepone pepone wrote:
> >>
> >>>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]
> >>>
> >>>
> >>
> >>---------------------------------------------------------------------
> >>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]
> 
>

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

Reply via email to