• Post Reply Bookmark Topic Watch Topic
  • New Topic

access webuijsf component with javascript

 
andreas papaioannou
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have been trying everything written around and still cant get to be able to change a textField value with javascript...

If anyone knows a way, please help me...
i have tried both:
(hh is a dynamically added Hyperlink)
hh.setOnClick("document.getElementById('form1:textField1').innerHTML = 'ssfsdf';");
hh.setOnClick("document.getElementById('form1:textField1').value = 'ssfsdf';");

and none works...

Thnx a lot!!!
 
Mark Spritzler
ranger
Sheriff
Posts: 17290
9
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"andreas andreas",
Welcome to the JavaRanch.

We're a friendly group, but we do require members to have valid display names.

Display names must be two words: your first name, a space, then your last name. Fictitious names are not allowed.

Please edit your profile and correct your display name since accounts with invalid display names get deleted.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!