Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem with commandButton inside dataTable

 
                      
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a dataTable, inside that i have one commandButton for each row. When i click the commandButton, it is not calling the action method/actionListener. My managed bean is in request scope. If i change the scope to session scope, it will work. But i cannot set the scope to request scope according to the requirement. Any work around for this?
 
                      
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Finally I got a good and simple solution for this.

I used the Ajax 4 JSF's keepAlive tag. So it will keep keeping the bean in the subsequent requests.

You can use actionListener for getting which row is selected.

<a4j:keepAlive beanName="requestScopedBean" ajaxOnly="false"></a4j:keepAlive>
 
Piya Bahendra
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Is it possible to use Ajax 4 JSF's keepAlive tag in websphere portal 6.0?

Thanks




Originally posted by Green Beret:
Finally I got a good and simple solution for this.

I used the Ajax 4 JSF's keepAlive tag. So it will keep keeping the bean in the subsequent requests.

You can use actionListener for getting which row is selected.

<a4j:keepAlive beanName="requestScopedBean" ajaxOnly="false"></a4j:keepAlive>
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic