Has the applet had a chance to initialize when the script is run?
On Thu, Aug 14, 2008 at 3:48 PM, <[EMAIL PROTECTED]> wrote: > I'm using the <trh:script> tag to call an applet method and it creates this > error. (document.applets[0].rebuildChartUsingCurrentData is not a function > ). > > This is how I'm using it: > <trh:script text="function updateApplet() > {document.applets[0].rebuildChartUsingCurrentData();}" /> > > The document.applets[0].rebuildChartUsingCurrentData(); works when not in a > Trinidad/JSF page. The updateApplet() is called on an onClick event > > <tr:commandButton text="Test Button" > id="mybutton" > partialSubmit="true" > actionListener="#{lotBean.doSomething}" > partialTriggers="mybutton" > onclick="updateApplet()"/> > > I've tried it without success using just a script tag as well. Is there some > limitation that prevents the <trh> tag from accessing applets? Is there some > other way of doing this inside a jsf page? > > Thanks > Al > >