Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Not able to call the backing bean method on first time when i opened up a new browser.  RSS feed

 
Diptirmaya Rout
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

<h:inputText id="" value="#{BB.value}">
<a4j:support event="onblur" action="#{BB.method}" reRender="someId"></a4j:support>
</h:inputText>

In that code it is working properly and get the value from the server, and refresh the required part defined in reRender.

But issue is this is not working in the very first time when i open a new window and tried to onblur on this.it is not calling the server.

On second attempts onwards it behaves properly.

Problem is with new browser windows only, if i used the same window then it behaves properly.

Any suggetion higly valued for me.

Thanks
Diptiirmaya Rout
 
Tim Holloway
Bartender
Posts: 18662
71
Android Eclipse IDE Linux
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the JavaRanch, Diptirmaya!

Don't use capital letters to begin bean names. In Java, having the first letter of an identifier capitalized indicates that the item being identified is a class. Lower-case letters are used when referring to instances or property names. If you're using JSF2 with annotations, the case-folding is done automatically, so JSF wouldn't even be able to locate an object named "BB".

I don't know if that will fix your problem, but it should help.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!