• Post Reply Bookmark Topic Watch Topic
  • New Topic

JSF onload not working  RSS feed

 
Himalay Majumdar
Ranch Hand
Posts: 324
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to call a bean in jsf onload, but am not sure where to place the elements. We dont have a body tag in most of the pages, including the one below..so I added it manually.
Also we use h:form tags. Below is the little part of the entire .xhtml page. In it we have multiple h:form tags, I cud not make the backing bean call onload yet, actually I guess the javascript itself is not invoked on load.
Any idea on this. Thanks

 
suresh dasari
Ranch Hand
Posts: 121
Chrome Eclipse IDE Mac
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Himalay,

did you solve the problem???
Actually I didnt understood what your trying to achieve.
if you could solve the problem, will you share it with us?
 
Himalay Majumdar
Ranch Hand
Posts: 324
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Suresh,

Sorry for the late reply.

In JSF when you click on a button, a corresponding action method is invoked.
I want to invoke a method without making the user clicking on a button. One way I can do that is to make the button click automated when on pageload.

I did not use this approach, as the task I was trying accomplish does not fit into this solution, but we can make an action method being invoked like this.

-Himalay
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!