Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Retrive current (or last inserted) Bean name from ActionListener

 
Daniel Reznick
Ranch Hand
Posts: 50
Eclipse IDE Google App Engine jQuery
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, i got a JSF+Facelets project mainly which consists from tables showing data, each table got a Bean that stores the displayed data,
In the footer of the page I got a button that got an actionListener method in which i need to retrieve the bean behind the current table being viewed and than gather the data from the bean and create an xml out of it,

I tried finding out the bean by accessing the getExternalContext().getSessionMap().keySet(); of the FacesContext.getCurrentInstance() and iterating it...

but the problem that in the run time I don't know what it the right bean that i should get from the SessionMap in the following way .getExternalContext().getSessionMap().get(beanName);


Is there any other way that i can use to tell the current (or last inserted) Bean name ?

Thanks in advance!

Daniel.
 
Daniel Reznick
Ranch Hand
Posts: 50
Eclipse IDE Google App Engine jQuery
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Different forums got different members, so asking different people opinions is not bad, its even good...(imo) don't get this weird rule of your's...

whatever...



Thanks anyway...
[ December 14, 2008: Message edited by: Daniel Reznick ]
 
Bauke Scholtz
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Different people? I walk around at the both forums. You even already got answer from me.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65535
108
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
While JavaRanch does not prohibit cross-site posting, we do request that you let people know when you have done so. That way, people can check what's already been said and not needlessly duplicate replies.

Please see this FAQ entry for more information.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!