<h:commandButton action="#{user.editAction}" > <f:setPropertyActionListener target="#{user.action}" value="delete" /> </h:commandButton>Command button ile bean e bu deger gonderilir bean tarafında ise set get ile alınır .
@ManagedBean(nae="user") @SessionScopedm public class UserBean{ public String action; public void setAction(String action) { this.action = action; } public String editAction() { //now action property contains "delete" } }
Hiç yorum yok:
Yorum Gönder