Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Data table error

 
jyothi sanka
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have hard coded data in a data table. when I want to sort the column or edit the row. that time I am getting error like

HtmlDataTable.refresh



javax.servlet.ServletException: org.apache.myfaces.component.html.ext.HtmlDataTable.refresh(Ljavax/faces/context/FacesContext V

java.lang.NoSuchMethodError: org.apache.myfaces.component.html.ext.HtmlDataTable.refresh(Ljavax/faces/context/FacesContext


Can anyblody advice me why I am getting this error?

Thank you
 
Naveen Mishra
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Better try this approach .....
List result = null;
try {
Query query = session.createQuery(findEndedTaskInstancesByActorId);
query.setString("actorId", userBean.getUserName());
result = query.list();
}catch (Exception e) {}

JsfHelper.setSessionAttribute("urForm:urdatatableid",result );

U decide ur query and fire . rest is done here.
This fixes all ur problem. Cheers !!!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic