Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Howard Dixon   on Dec 11 In Java Category.

  
Question Answered By: Chuong Tran   on Dec 11

I think you wanna send  parameter to action  to delete a person in your sample, but in correct way you should send an object like 'person entity' to delete it.
so, in this tag '<f:param name="selectpersonalid" value="#{items.persinalid}"/>
you shuold implement like it :


FacesContext facesContext = FacesContext.getCurrentInstance();

if(facesContext == null) {
System.out.println("facesContext is null");
} else {
String id = (String) facesContext.getExternalContext().getRequestParameterMap().get("selectpersonalid");
}
and the best practice is use SEAM Framework and it's Annotations, like this :

@RequestParameter("selectpersonalid")
private String selectpersonalid;

Share: 

 

This Question has 3 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on Jsf problem Or get search suggestion and latest updates.


Tagged: