• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

JSF and JavaScript

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Bartender
Posts: 4121
IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Come have lunch with me Arthur. Adventure will follow. This tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic