Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

get the <h:form> id of the current page

 
avi lev
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi

first question on this great forum.....

i need to find on what page i'm at a cretin moment using a backing bean.

tnx.
 
Tim Holloway
Saloon Keeper
Pie
Posts: 17625
39
Android Eclipse IDE Linux
  • 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the JavaRanch, Avi!

JSF View definitions can contain more than one Form. I often do this.

Backing beans (Models) can exist in a many-to-many relationship with Views.

So there's no general mechanism you can use.

You can use the view binding mechanism to attach a particular UI control to a backing bean. You can then walk up the component tree to see what form it's in. That's not something the average webapp should be doing, though.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic