Invoking Linker Cross-Site-Iframe Ignoring the following script tags in the gwt.xml file -



Invoking Linker Cross-Site-Iframe Ignoring the following script tags in the gwt.xml file -

//smart_gwt_exmp.gwt.xml <?xml version="1.0" encoding="utf-8"?> <module rename-to='smart_gwt_exmp'> <inherits name='com.google.gwt.user.user'/> <inherits name="com.smartgwt.smartgwt"/> <inherits name='com.google.gwt.user.theme.standard.standard'/> <entry-point class='package2.client.smart_gwt_exmp'/> <source path='client'/> <source path='shared'/> <add-linker name="xsiframe"/> <set-configuration-property name='xsiframe.failifscripttag' value='false'/> </module> //smart_gwt_exmp.html <!doctype html public "-//w3c//dtd html 4.01 transitional//en"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8"> <link type="text/css" rel="stylesheet" href="smart_gwt_exmp.css"> <title>web application starter project</title> <script src="smart_gwt_exmp/sc/modules/isc_calendar.js"></script> <script src="smart_gwt_exmp/sc/modules/isc_containers.js"></script> <script src="smart_gwt_exmp/sc/modules/isc_core.js"></script> <script src="smart_gwt_exmp/sc/modules/isc_databinding.js"></script> <script src="smart_gwt_exmp/sc/modules/isc_drawing.js"></script> <script src="smart_gwt_exmp/sc/modules/isc_foundation.js"></script> <script src="smart_gwt_exmp/sc/modules/isc_grids.js"></script> <script src="smart_gwt_exmp/sc/modules/isc_history.js"></script> <script src="smart_gwt_exmp/sc/modules/isc_pluginbridges.js"></script> <script src="smart_gwt_exmp/sc/modules/isc_richtexteditor.js"></script> <script src="smart_gwt_exmp/sc/modules/isc_scheduler.js"></script> <script src="smart_gwt_exmp/sc/modules/isc_workflow.js"></script> <script type="text/javascript" language="javascript" src="smart_gwt_exmp/smart_gwt_exmp.nocache.js"></script> </head> <body> <!-- optional: include if want history back upwards --> <iframe src="javascript:''" id="__gwt_historyframe" tabindex='-1' style="position:absolute;width:0;height:0;border:0"></iframe> <!-- recommended if web app not function without javascript enabled --> <noscript> web browser must have javascript enabled in order application display correctly. </div> </noscript> <h1>web application starter project</h1> <table align="center"> <tr> <td colspan="2" style="font-weight:bold;">please come in name:</td> </tr> <tr> <td id="namefieldcontainer"></td> <td id="sendbuttoncontainer"></td> </tr> <tr> <td colspan="2" style="color:red;" id="errorlabelcontainer"></td> </tr> </table> </body> </html> //smart_gwt_exmp.java bundle package2.client; import com.google.gwt.core.client.entrypoint; import com.google.gwt.user.client.ui.rootpanel; import com.smartgwt.client.util.sc; import com.smartgwt.client.widgets.ibutton; import com.smartgwt.client.widgets.form.dynamicform; import com.smartgwt.client.widgets.form.fields.textitem; /** * entry point classes define <code>onmoduleload()</code>. */ public class smart_gwt_exmp implements entrypoint { public void onmoduleload() { dynamicform form=new dynamicform(); } }

//error during compilation //compiling 5 permutations // compiling permutation 0... // compiling permutation 1... // compiling permutation 2... // compiling permutation 3... // compiling permutation 4... // compile of permutations succeeded // linking c:\users\rsoni\workspace\smart_gwt_exmp\war\smart_gwt_exmp // invoking linker cross-site-iframe // ignoring next script tags in gwt.xml file // sc/modules/isc_core.js // sc/modules/isc_foundation.js // sc/modules/isc_containers.js // sc/modules/isc_grids.js // sc/modules/isc_forms.js // sc/modules/isc_richtexteditor.js // sc/modules/isc_calendar.js // sc/modules/isc_databinding.js // sc/skins/enterprise/load_skin.js

//link succeeded //compilation succeeded -- 92.377s

//note : when seek compile above code compiler gives me error .the //error have pasted in above code along output.

the std linker uses document.write() load script files , create sure they're loaded before onmoduleload called.

the xsiframe much improve web citizen , loads asynchronously, without document.write(). means cannot provide ordering guarantees, create implementaition simpler and, importantly, reliable, doesn't back upwards <script>s in gwt.xml files.

by default, fails build if have <script>. can turn error warning using xsiframe.failifscripttag configuration property, ignores <script>s, still have load them yourself, either right html host page (like did btw, assuming listed needed files, should work), or using scriptinjector.

gwt iframe

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -