Hi all,
I have problem with the page with collection of something entity. I would like to click on
"Delete" button and call the method something.delete with parameter Long id. But
I don't know how to do.
One solutions is to use @DataModel, @DataModelSelection and dataTable . But how to do when
I would like to use <ui:repeat> for collection iteration and create my own html
structure. How to call delete method ?
Know somebody how to solve this problem ? Without h:dataTable ?
Thanks Mila
| <ui:repeat
| value="#{gallery.pictures}"
| var="o">
| <h:form>
| <div
| class="floatl"
| style="margin-left: 10px;"><img
| src="/cms/content/?width=150&id=#{o.id}" /><br />
| <p><b>#{messages['image.name']}:</b>
#{o.title}</p>
| <p><b>#{messages['image.size']}:</b>
#{o.length}</p>
| <s:fragment rendered="#{o.description != null}">
| <p><b>#{messages['image.description']}:</b>
#{o.description}</p>
| </s:fragment>
|
| <s:link
| action="#{galleryDeleteImage.delete(o.id)}">
| <h:outputText value="#{messages['delete.image']}" />
| </s:link>
| </div>
| </h:form>
| </ui:repeat>
|
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053721#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...