开发者

JSF - How to add h:graphicImage after f:selectItem element?

I am trying to add a h:graphicImage after the f:selecItem element, using this declaration:

<h:selectManyCheckbox layout="pageDirection">

    <f:selectItem itemValue="some Value" itemLabel="some Label" itemDisabled="true">
         <h:graphicImage value="someImage.gif" title="someTitle" />
    </f:selectItem>

</h:s开发者_如何学CelectManyCheckbox>

and,

 <h:selectManyCheckbox layout="pageDirection">

    <f:selectItem itemValue="some Value" itemLabel="some Label" itemDisabled="true" />
    <h:graphicImage value="someImage.gif" title="someTitle" />        

</h:selectManyCheckbox>

But, after rendering, the graphicImage element always show before the selectItem group.


In these cases, I've always used a dataTable over a list of beans. The first column contained a selectBooleanCheckbox over a boolean property of the bean (p.e. selected), and I had more columns with the content that I need, so I could have got graphicImage or whatever else.

I only also needed an additional java logic to get the selected beans, and process the data.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜