Dear Wiki user, You have subscribed to a wiki page or wiki category on "Jakarta-tapestry Wiki" for change notification.
The following page has been changed by gabrielh: http://wiki.apache.org/jakarta-tapestry/TapestryAndApplets New page: The HTML: You want to set the hidden input (called document.appletForm.someData.value) with the applet method result of document.myApplet.getSomeData(). You want to pass the data back to the applet using the <param> tag, hence the ognl:getAppletParameters() insert. {{{ <form jwcid="[EMAIL PROTECTED]"> <applet name="myApplet" code="Applet.class" archive="somejar.jar" width="310" height="335"> <span jwcid="@Insert" value="ognl:getAppletParameters()" raw="true"/> </applet> <input type="submit" jwcid="@Submit" listener="ognl:listeners.save" value="Save" onClick="return getAppletValues()"/> <input jwcid="[EMAIL PROTECTED]" value="ognl:someData"/> </form> <script type="text/javascript"> function getAppletValues() { document.appletForm.someData.value = document.myApplet.getSomeData(); return true; } }}} The applet class: {{{ public String getSomeData() { return s; } public void setSomeData(String s) { this.s = s; } }}} The page java class: {{{ /** * Get the applet parameters. * @return Applet parameters */ public String getAppletParameters() { return "<param name=\"someData\" value=\"" + getSomeData() + "\">"; } }}} --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
