Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Row Action of Data Table on Faces Portlet not working

 
Minh Tang
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Good day,

I have a problem with tmy Faces portlet and Data Table. Here is what id do:
1. I have a ArrayList object which contains entity bean that i use to display on my data table. (Work perfectly)
2. I added a RowAction on my Data Table which save the ID of the bean and I use that bean on another page.

The problem is that the row action just don't work. The click seems to be doing something but it just reload the same page. I've put some debug println() and it dosen't print to the console. Seems like the code isnot executed at all. I have command button on the jsp as well which work fine.

The weird thing is that on a JSF (without portlet) the same data table's row action work fine.

I've been working on this problem for the last 8 hours and one of my friend has the same problem. I start to think this is a bug with the technology.

I use IBM Rational Architect.
 
Minh Tang
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I found the solution to my problem. The reason is that I use the onPageLoadBegin method to add entity bean to my ArrayList. For some reason, doing so will render the row action unusable. so i move that code to the "get" accessor method of my ArrayList. Can someone tell me why I need to do so?

Thank you.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic