Ok, that was the solution, after adding axis to the datapath I was able to integrate the result into the general layout, I also migrated from the "image" tag to a "view" with his "src" seted to the image, seems to be a better option since it don't have the issue with resizing to its contents.
Thank you all! On Jan 31, 2008 1:04 PM, Fernando Germano <[EMAIL PROTECTED]> wrote: > That's great, I'll try that, thank you! > > > > On 1/31/08, P T Withington <[EMAIL PROTECTED]> wrote: > > > > with lazy replication you can specify `axis` and `spacing` in the > > datapath. Try: > > > > <datapath ... replication="lazy" axis="x" /> > > > > On 2008-01-31, at 07:25 EST, Fernando Germano wrote: > > > > > Ok, I understand, so..., but then, how can I tie it to the layout?, > > > it not > > > complicated, I just need to have the images in an horizontal line > > > with some > > > spacing between them... > > > > > > I was looking at the flickr example, seems to do something similar > > > to what I > > > need but I does not use lazy replication, my biggest recordset could > > > have > > > around 1000 items, and I believe that a flickr search could have > > > around that > > > number... > > > > > > > > > On 1/31/08, P T Withington <[EMAIL PROTECTED]> wrote: > > >> > > >> Correct. The lazy manager has to be more intimately tied to the > > >> layout because it needs to compute how many items will fit in order > > >> to > > >> load just enough data. This is an area for improvement: there > > >> should > > >> be a general protocol between replication and layout, but for now > > >> there is not. > > >> > > >> On 2008-01-30, at 22:25 EST, Henry Minsky wrote: > > >> > > >>> I seem to recall that the lazy replication manager assigns it's own > > >>> layout, ignoring any pre-existing one but you can assign an axis > > >>> and a spacing attribute. > > >>> > > >>> > > >>> > > >>> On Wed, Jan 30, 2008 at 8:13 PM, Fernando Germano > > >>> <[EMAIL PROTECTED]> wrote: > > >>>> Ok, adding a width and a height to the image solved the problem of > > >>>> images > > >>>> not being displayed, but there are still a couple of things that I > > >>>> quite > > >>>> don't understand, this works... > > >>>> > > >>>> <view clip="true" width="540" height="90" > > >>>> id="contenido"> > > >>>> <view id="listado" layout="axis:x"> > > >>>> <image width="90" height="90"> > > >>>> <datapath xpath="s:/items[1]/item/imgurl/ > > >>>> text()" /> > > >>>> </image> > > >>>> </view> > > >>>> </view> > > >>>> > > >>>> But, If I add replication="lazy" to the datapath definition things > > >>>> no longer > > >>>> works, two things happens: > > >>>> > > >>>> * If I keep the image then I only see one (I believe I'm seeing > > >>>> something > > >>>> similar to the width and height issue). > > >>>> * If I use a text then I see a list of the items but they don't > > >>>> seem to > > >>>> respect any layout option, the just appear one below the other. > > >>>> > > >>>> > > >>>> Thank you! > > >>>> > > >>>> > > >>>> > > >>>> On Jan 30, 2008 12:30 AM, Henry Minsky <[EMAIL PROTECTED]> > > >>>> wrote: > > >>>>> I don't know what the warning is trying to indicate. > > >>>>> > > >>>>> Is the data appearing? You may need to set the height > > >>>>> explicitly, I > > >>>>> think there may be a bug in the replication manager updating > > >>>>> the view height automatically, so your images might be clipped. > > >>>>> > > >>>>> > > >>>>> > > >>>>> > > >>>>> > > >>>>> > > >>>>> On Jan 29, 2008 9:59 PM, Fernando Germano <[EMAIL PROTECTED]> > > >>>>> wrote: > > >>>>>> I need to work with some large dataset, an XML having links to > > >>>>>> images > > >>>> that I > > >>>>>> must show, basically a gallery like many around there, so I want > > >>>>>> to do > > >>>> some > > >>>>>> paging and of course lazy replication, so, the basic code looks > > >>>>>> like > > >>>> this: > > >>>>>> > > >>>>>> <view clip="true" width="540" id="cont"> > > >>>>>> <view id="list"> > > >>>>>> <simplelayout axis="x"/> > > >>>>>> <image> > > >>>>>> <datapath > > >>>> xpath="s:/items[1]/item/img_url/text()" > > >>>>>> replication="lazy"/> > > >>>>>> </image> > > >>>>>> </view> > > >>>>>> </view> > > >>>>>> > > >>>>>> But when I try this I get the following error: > > >>>>>> > > >>>>>> INFO: __LZprocessOperator: p is null in Datapath for image > > >>>>>> > > >>>>>> > > >>>>>> What am I missing? > > >>>>>> > > >>>>>> Thank you!! > > >>>>>> > > >>>>> > > >>>>> > > >>>>> > > >>>>> -- > > >>>>> Henry Minsky > > >>>>> Software Architect > > >>>>> [EMAIL PROTECTED] > > >>>>> > > >>>> > > >>>> > > >>> > > >>> > > >>> > > >>> -- > > >>> Henry Minsky > > >>> Software Architect > > >>> [EMAIL PROTECTED] > > >> > > >> > > > > >
