wood burning stoves 2.0*
The moose likes JSF and the fly likes How to show Browser time in JSF outputText component? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "How to show Browser time in JSF outputText component?" Watch "How to show Browser time in JSF outputText component?" New topic
Author

How to show Browser time in JSF outputText component?

mamidi subrahmanyam
Greenhorn

Joined: Jun 29, 2005
Posts: 18
How do I set javascript value in hutputText

<hutputText value="new Date();"/>
mamidi subrahmanyam
Greenhorn

Joined: Jun 29, 2005
Posts: 18
In <script> tag use something like this.

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

Try this.
 
jQuery in Action, 2nd edition
 
subject: How to show Browser time in JSF outputText component?