1

I want to know how to get two row attributes in one iteration in ADF Mobile.

For my requirement, I need to display the image in the page as below:

image1     image2

image3     image4

image5     ...

So I use the listView to do this.

<amx:listView var="row" value="#{ImageList.collectionModel}"
              fetchSize="-1" id="lv1" rendered="true">
    <amx:listItem id="li1">
        <amx:tableLayout width="100%" id="tl3">
            <amx:rowLayout id="rl2">
                <amx:cellFormat width="100%" halign="center" id="cf4">
                    <amx:image source="#{row.imageFile}" id="i2"/>
                </amx:cellFormat>
                <amx:cellFormat width="100%" halign="center" id="cf5">
                    <amx:image source="#{row.imageFile}" id="i3"/>
                </amx:cellFormat>
            </amx:rowLayout>
        </amx:tableLayout>
    </amx:listItem>
</amx:listView>

See, Here I am able to receive the same row in each iteration. How can I get 2 different row in each iteration?

Thanks!

4

1 回答 1

1

一切都与 UI 有关,无需将两个图像放在一个迭代器中,阅读有关 oracle maf UI 的更多信息,您将通过一些 css创建 MAF AMX 用户界面来弄清楚。

例如尝试:

宽度:50px;浮动:左;显示:相对;

listitem inline style propertyoracle MAF 中的最简单列表视图上。

于 2014-07-28T13:58:18.533 回答