Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to show Browser time in JSF outputText component?

 
mamidi subrahmanyam
Greenhorn
Posts: 19
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How do I set javascript value in hutputText

<hutputText value="new Date();"/>
 
mamidi subrahmanyam
Greenhorn
Posts: 19
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In <script> tag use something like this.

document.getElementById(viewId:compId).value = new Date();

Try this.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic