myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Robinson" <andrew.rw.robin...@gmail.com>
Subject Re: Using <trh:script> to call an Applet method........
Date Fri, 15 Aug 2008 05:49:18 GMT
Has the applet had a chance to initialize when the script is run?

On Thu, Aug 14, 2008 at 3:48 PM,  <albertw@qualcomm.com> 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
>
>

Mime
View raw message