I need to remove an element from a java.util.Set
, I'm iterating over in a h:dataTable
. Pretty simple, right? This is what I have (com
is my set, endpoint
the iteration variable):
<a4j:commandButton image="/img/delete.png"
action="#{person.com.remove(endpoint)}"
execute="@this" render="myTable" />
With JSF-2 implicit navigation, the boolean return value is converted via .toString()
and used as the navigation outcome, which is pointless.
Sure, I can introduce another backing bean method that just swallows the return value but that seems like needless duplication. Can I avoid that, and if yes, how?
The environment has richfaces and omnifaces, so anything using convenience functions from there is fine as well.