• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Rotate multiple information on a line

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am trying to get different information changing every 10 seconds on a line.
The information should be provided by a backing bean, but this is the next step.
Currently I am stuck with the first step, trying to assign text to outputText using javascript.

Following is my approach:
starting with:
<BODY onload="init()"
Having outputText:
><h:form id="Broadcast" >
<h:outputText id="broadcastMessage" value="Text" />
</h:form>
Having some javascript:
var broadcast = document.getElementById('Broadcast:broadcastMessage');
init();
function init() {
broadcast="New";
}

The result when doing this: The value of :outputText is never changing from "Text" to "New" ... am I taking the wrong apporach

To be mentioned:
...using Firefox 5.0
...it does not make much sense just changing from 'Text' to 'New', a will add some functionality where different information is being rotated



 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic