• Post Reply Bookmark Topic Watch Topic
  • New Topic

JSF and JavaScript  RSS feed

 
annaunivStud Sboa
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi...
I am working in JSF in IBM's RAD..
well usually i get the values of the textboxes in my page code bean using getTextName().getValue...

I am cnstructing a page whic calls a javascript function on window's onload,
then i use setTimeOut() to call the function again and againg every second... and update the textboxes i have in my jsp for every call using
document.getElementById("form1:text1").value=x;
where x is the variable updated each time in my Java script function....

but when i get the value of the textbox this time in this JSF page it throws some exceptions.... but in all other jsf pages i am able to retrieve...
is that cos of calling the JS function every second

plzzz help me to get it solved

Thanksss
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
it throws some exceptions...


Does the JSF throw the exceptions (on the server), or the JavaScript (in the browser)? And what exceptions?
 
annaunivStud Sboa
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi thanks for the reply....
it returns exception in the console...null pointer exception,
Unexpected exception in one of the services in faces servlet
can you help me
please
thanks
 
annaunivStud Sboa
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is only the server side exception... It is thrown after i click a button whose action is to get the value of the textbox in JSP in the java file..
that is during getTextName().getValue()
help me to get it solved
thanks
 
Mark Spritzler
ranger
Sheriff
Posts: 17309
11
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving this to a more appropriate forum. We will start with JSF. The moderators there might think it would be better in the JavaScript forum.

Thanks

Mark
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!