http://wiki.apidesign.org/index.php?title=MigrateFromGWT&feed=atom&action=historyMigrateFromGWT - Revision history2024-03-29T06:35:40ZRevision history for this page on the wikiMediaWiki 1.12.0rc1http://wiki.apidesign.org/index.php?title=MigrateFromGWT&diff=10518&oldid=prevJaroslavTulach: /* Real HotSpot VM */2021-10-01T05:37:42Z<p><span class="autocomment">Real HotSpot VM</span></p>
<table style="background-color: white; color:black;">
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr>
<td colspan='2' style="background-color: white; color:black;">←Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 05:37, 1 October 2021</td>
</tr>
<tr><td colspan="2" class="diff-lineno">Line 108:</td>
<td colspan="2" class="diff-lineno">Line 108:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>=== Real [[HotSpot]] [[VM]] ===</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>=== Real [[HotSpot]] [[VM]] ===</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>-</td><td style="background: #ffa; color:black; font-size: smaller;"><div>When we have our libraries converted, we can use them in a [[Knockout4Java]] [[Maven]] archetype project and <del style="color: red; font-weight: bold; text-decoration: none;">use it inside of </del>[[JavaFX]] WebView. This gives us all the benefits of [[HotSpot]] and real [[Java]] (including features of modern [[JDK]]s). </div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>When we have our libraries converted, we can use them in a [[Knockout4Java]] [[Maven]] archetype project and <ins style="color: red; font-weight: bold; text-decoration: none;">execute them in regular [[JVM]] while rendering the [[HTML]] content via </ins>[[JavaFX]] <ins style="color: red; font-weight: bold; text-decoration: none;">'''</ins>WebView<ins style="color: red; font-weight: bold; text-decoration: none;">'''</ins>. This gives us all the benefits of [[HotSpot]] and real [[Java]] (including features of modern [[JDK]]s). We can use <ins style="color: red; font-weight: bold; text-decoration: none;">regular [[JVM]] </ins>[[debugger]] and verify <ins style="color: red; font-weight: bold; text-decoration: none;">our </ins>[[Java]] application <ins style="color: red; font-weight: bold; text-decoration: none;">behavior </ins>the way we are used to.</div></td></tr>
<tr><td class='diff-marker'>-</td><td style="background: #ffa; color:black; font-size: smaller;"><div> </div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div></div></td></tr>
<tr><td class='diff-marker'>-</td><td style="background: #ffa; color:black; font-size: smaller;"><div>We can use [[debugger]] and verify <del style="color: red; font-weight: bold; text-decoration: none;">the behavior of the </del>[[Java]] application <del style="color: red; font-weight: bold; text-decoration: none;">logic </del>the way we are used to.</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>=== [[Bck2Brwsr]] & other transpilers ===</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>=== [[Bck2Brwsr]] & other transpilers ===</div></td></tr>
</table>JaroslavTulachhttp://wiki.apidesign.org/index.php?title=MigrateFromGWT&diff=10517&oldid=prevJaroslavTulach: /* Real HotSpot VM */2021-10-01T05:35:46Z<p><span class="autocomment">Real HotSpot VM</span></p>
<table style="background-color: white; color:black;">
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr>
<td colspan='2' style="background-color: white; color:black;">←Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 05:35, 1 October 2021</td>
</tr>
<tr><td colspan="2" class="diff-lineno">Line 108:</td>
<td colspan="2" class="diff-lineno">Line 108:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>=== Real [[HotSpot]] [[VM]] ===</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>=== Real [[HotSpot]] [[VM]] ===</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>-</td><td style="background: #ffa; color:black; font-size: smaller;"><div>When we have our libraries converted, we can use them in a <del style="color: red; font-weight: bold; text-decoration: none;">''knockout4j'' </del>[[Maven]] archetype project and use it inside of [[JavaFX]] WebView. This gives us all the benefits of [[HotSpot]] and real [[Java]] (including features of modern [[JDK]]s). </div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>When we have our libraries converted, we can use them in a <ins style="color: red; font-weight: bold; text-decoration: none;">[[Knockout4Java]] </ins>[[Maven]] archetype project and use it inside of [[JavaFX]] WebView. This gives us all the benefits of [[HotSpot]] and real [[Java]] (including features of modern [[JDK]]s). </div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>We can use [[debugger]] and verify the behavior of the [[Java]] application logic the way we are used to.</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>We can use [[debugger]] and verify the behavior of the [[Java]] application logic the way we are used to.</div></td></tr>
</table>JaroslavTulachhttp://wiki.apidesign.org/index.php?title=MigrateFromGWT&diff=10515&oldid=prevJaroslavTulach: /* Bck2Brwsr & other transpilers */2021-10-01T05:15:53Z<p><span class="autocomment">Bck2Brwsr & other transpilers</span></p>
<table style="background-color: white; color:black;">
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr>
<td colspan='2' style="background-color: white; color:black;">←Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 05:15, 1 October 2021</td>
</tr>
<tr><td colspan="2" class="diff-lineno">Line 116:</td>
<td colspan="2" class="diff-lineno">Line 116:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>Originally we started with a [[GWT]] application. Now we have a real [[Java]] application, which can run on desktop and render its [[HTML]] UI via [[JavaFX]]. [[Good]], however our original application used to run in a browser. Can we do the same?</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>Originally we started with a [[GWT]] application. Now we have a real [[Java]] application, which can run on desktop and render its [[HTML]] UI via [[JavaFX]]. [[Good]], however our original application used to run in a browser. Can we do the same?</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>-</td><td style="background: #ffa; color:black; font-size: smaller;"><div>Yes, we can. With the help of [[Bck2Brwsr]] [[VM]], we can take the same application and repackage it so it runs in a pluginless browser. Just choose ''bck2brwsr'' [[Maven]] configuration and rebuild. Btw. [[TeaVM]] also supports the {{HTML4J|net/java/html/js|JavaScriptBody}} annotation and other transpilers are encouraged to <del style="color: red; font-weight: bold; text-decoration: none;">joint </del>this ecosystem and do the same.</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>Yes, we can. With the help of [[Bck2Brwsr]] [[VM]], we can take the same application and repackage it so it runs in a pluginless browser. Just choose ''bck2brwsr'' [[Maven]] configuration and rebuild. Btw. [[TeaVM]] also supports the {{HTML4J|net/java/html/js|JavaScriptBody}} annotation and other transpilers are encouraged to <ins style="color: red; font-weight: bold; text-decoration: none;">join </ins>this ecosystem and do the same.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>Say farewell to [[GWT]]. Enjoy your [[GWT]]-less [[HTML]]/[[Java]] applications! Long live [[Java]] in browsers!</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>Say farewell to [[GWT]]. Enjoy your [[GWT]]-less [[HTML]]/[[Java]] applications! Long live [[Java]] in browsers!</div></td></tr>
</table>JaroslavTulachhttp://wiki.apidesign.org/index.php?title=MigrateFromGWT&diff=10514&oldid=prevJaroslavTulach: /* Bck2Brwsr */2021-10-01T05:15:37Z<p><span class="autocomment">Bck2Brwsr</span></p>
<table style="background-color: white; color:black;">
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr>
<td colspan='2' style="background-color: white; color:black;">←Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 05:15, 1 October 2021</td>
</tr>
<tr><td colspan="2" class="diff-lineno">Line 112:</td>
<td colspan="2" class="diff-lineno">Line 112:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>We can use [[debugger]] and verify the behavior of the [[Java]] application logic the way we are used to.</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>We can use [[debugger]] and verify the behavior of the [[Java]] application logic the way we are used to.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>-</td><td style="background: #ffa; color:black; font-size: smaller;"><div>=== [[Bck2Brwsr]] ===</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>=== [[Bck2Brwsr]] <ins style="color: red; font-weight: bold; text-decoration: none;">& other transpilers </ins>===</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>Originally we started with a [[GWT]] application. Now we have a real [[Java]] application, which can run on desktop and render its [[HTML]] UI via [[JavaFX]]. [[Good]], however our original application used to run in a browser. Can we do the same?</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>Originally we started with a [[GWT]] application. Now we have a real [[Java]] application, which can run on desktop and render its [[HTML]] UI via [[JavaFX]]. [[Good]], however our original application used to run in a browser. Can we do the same?</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>-</td><td style="background: #ffa; color:black; font-size: smaller;"><div>Yes, we can. With the help of [[Bck2Brwsr]] [[VM]], we can take the same application and repackage it so it runs in a pluginless browser. Just choose ''bck2brwsr'' [[Maven]] configuration and rebuild.</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>Yes, we can. With the help of [[Bck2Brwsr]] [[VM]], we can take the same application and repackage it so it runs in a pluginless browser. Just choose ''bck2brwsr'' [[Maven]] configuration and rebuild<ins style="color: red; font-weight: bold; text-decoration: none;">. Btw. [[TeaVM]] also supports the {{HTML4J|net/java/html/js|JavaScriptBody}} annotation and other transpilers are encouraged to joint this ecosystem and do the same</ins>.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>Say farewell to [[GWT]]. Enjoy your [[GWT]]-less [[HTML]]/[[Java]] applications! Long live [[Java]] in browsers!</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>Say farewell to [[GWT]]. Enjoy your [[GWT]]-less [[HTML]]/[[Java]] applications! Long live [[Java]] in browsers!</div></td></tr>
</table>JaroslavTulachhttp://wiki.apidesign.org/index.php?title=MigrateFromGWT&diff=10513&oldid=prevJaroslavTulach: /* Convert to Annotations */2021-10-01T05:11:46Z<p><span class="autocomment">Convert to Annotations</span></p>
<table style="background-color: white; color:black;">
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr>
<td colspan='2' style="background-color: white; color:black;">←Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 05:11, 1 October 2021</td>
</tr>
<tr><td colspan="2" class="diff-lineno">Line 51:</td>
<td colspan="2" class="diff-lineno">Line 51:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>=== Convert to Annotations ===</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>=== Convert to Annotations ===</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>-</td><td style="background: #ffa; color:black; font-size: smaller;"><div>The first step is to convert comments into something that [[JVM]] can consume. Since [[JDK]]5 the proper way of attaching additional information to methods is to use [[annotations]]. Let's us rewrite the code to use ''@<del style="color: red; font-weight: bold; text-decoration: none;">JavaScriptBody</del>'' as provided by HTML/Java interop API (see <del style="color: red; font-weight: bold; text-decoration: none;">its </del>[<del style="color: red; font-weight: bold; text-decoration: none;">https</del>://bits.netbeans.org/html+java/1.7.1/ <del style="color: red; font-weight: bold; text-decoration: none;">javadoc</del>]). The goal is to have source like this:</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>The first step is to convert comments into something that [[JVM]] can consume. Since [[JDK]]5 the proper way of attaching additional information to methods is to use [[annotations]]. Let's us rewrite the code to use ''@''<ins style="color: red; font-weight: bold; text-decoration: none;">{{HTML4J|net/java/html/js|JavaScriptBody}} </ins>as provided by <ins style="color: red; font-weight: bold; text-decoration: none;">[[Html4Java|</ins>HTML/Java interop API<ins style="color: red; font-weight: bold; text-decoration: none;">]] </ins>(see <ins style="color: red; font-weight: bold; text-decoration: none;">the whole </ins>[<ins style="color: red; font-weight: bold; text-decoration: none;">http</ins>://bits.netbeans.org/html+java/1.7.1/<ins style="color: red; font-weight: bold; text-decoration: none;">net/java/html/js/package-summary.html interop documentation</ins>]). The goal is to have source like this:</div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div> </div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div><source lang="java"></div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div><source lang="java"></div></td></tr>
</table>JaroslavTulachhttp://wiki.apidesign.org/index.php?title=MigrateFromGWT&diff=10494&oldid=prevJaroslavTulach: /* Convert to Annotations */2021-10-01T04:12:27Z<p><span class="autocomment">Convert to Annotations</span></p>
<table style="background-color: white; color:black;">
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr>
<td colspan='2' style="background-color: white; color:black;">←Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 04:12, 1 October 2021</td>
</tr>
<tr><td colspan="2" class="diff-lineno">Line 51:</td>
<td colspan="2" class="diff-lineno">Line 51:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>=== Convert to Annotations ===</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>=== Convert to Annotations ===</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>-</td><td style="background: #ffa; color:black; font-size: smaller;"><div>The first step is to convert comments into something that [[JVM]] can consume. Since [[JDK]]5 the proper way of attaching additional information to methods is to use [[annotations]]. Let's us rewrite the code to use ''@JavaScriptBody'' as provided by <del style="color: red; font-weight: bold; text-decoration: none;">[[netbeans:Html4Java|HTML4J]] library </del>(see its [<del style="color: red; font-weight: bold; text-decoration: none;">http</del>://<del style="color: red; font-weight: bold; text-decoration: none;">deadlock</del>.netbeans.org<del style="color: red; font-weight: bold; text-decoration: none;">/job</del>/html+java/<del style="color: red; font-weight: bold; text-decoration: none;">lastSuccessfulBuild</del>/<del style="color: red; font-weight: bold; text-decoration: none;">artifact/boot/target/site/apidocs/index.html </del>javadoc]). The goal is to have source like this:</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>The first step is to convert comments into something that [[JVM]] can consume. Since [[JDK]]5 the proper way of attaching additional information to methods is to use [[annotations]]. Let's us rewrite the code to use ''@JavaScriptBody'' as provided by <ins style="color: red; font-weight: bold; text-decoration: none;">HTML/Java interop API </ins>(see its [<ins style="color: red; font-weight: bold; text-decoration: none;">https</ins>://<ins style="color: red; font-weight: bold; text-decoration: none;">bits</ins>.netbeans.org/html+java/<ins style="color: red; font-weight: bold; text-decoration: none;">1.7.1</ins>/ javadoc]). The goal is to have source like this:</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div><source lang="java"></div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div><source lang="java"></div></td></tr>
</table>JaroslavTulachhttp://wiki.apidesign.org/index.php?title=MigrateFromGWT&diff=7374&oldid=prevJaroslavTulach: /* Bck2Brwsr */2014-01-29T18:31:29Z<p><span class="autocomment">Bck2Brwsr</span></p>
<table style="background-color: white; color:black;">
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr>
<td colspan='2' style="background-color: white; color:black;">←Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 18:31, 29 January 2014</td>
</tr>
<tr><td colspan="2" class="diff-lineno">Line 117:</td>
<td colspan="2" class="diff-lineno">Line 117:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>Yes, we can. With the help of [[Bck2Brwsr]] [[VM]], we can take the same application and repackage it so it runs in a pluginless browser. Just choose ''bck2brwsr'' [[Maven]] configuration and rebuild.</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>Yes, we can. With the help of [[Bck2Brwsr]] [[VM]], we can take the same application and repackage it so it runs in a pluginless browser. Just choose ''bck2brwsr'' [[Maven]] configuration and rebuild.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>-</td><td style="background: #ffa; color:black; font-size: smaller;"><div>Enjoy your [[GWT]]-less [[HTML]]/[[Java]] applications!</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">Say farewell to [[GWT]]. </ins>Enjoy your [[GWT]]-less [[HTML]]/[[Java]] applications<ins style="color: red; font-weight: bold; text-decoration: none;">! Long live [[Java]] in browsers</ins>!</div></td></tr>
</table>JaroslavTulachhttp://wiki.apidesign.org/index.php?title=MigrateFromGWT&diff=7373&oldid=prevJaroslavTulach: /* Bck2Brwsr */2014-01-29T18:30:40Z<p><span class="autocomment">Bck2Brwsr</span></p>
<table style="background-color: white; color:black;">
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr>
<td colspan='2' style="background-color: white; color:black;">←Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 18:30, 29 January 2014</td>
</tr>
<tr><td colspan="2" class="diff-lineno">Line 113:</td>
<td colspan="2" class="diff-lineno">Line 113:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>=== [[Bck2Brwsr]] ===</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>=== [[Bck2Brwsr]] ===</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>-</td><td style="background: #ffa; color:black; font-size: smaller;"><div>Originally we started with a [[GWT]] application. Now we have real [[Java]] application, which can run on desktop and render its [[HTML]] UI via [[JavaFX]]. <del style="color: red; font-weight: bold; text-decoration: none;">However </del>our original application used to run in a browser<del style="color: red; font-weight: bold; text-decoration: none;">? </del>Can we do the same?</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>Originally we started with a [[GWT]] application. Now we have <ins style="color: red; font-weight: bold; text-decoration: none;">a </ins>real [[Java]] application, which can run on desktop and render its [[HTML]] UI via [[JavaFX]]. <ins style="color: red; font-weight: bold; text-decoration: none;">[[Good]], however </ins>our original application used to run in a browser<ins style="color: red; font-weight: bold; text-decoration: none;">. </ins>Can we do the same?</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>Yes, we can. With the help of [[Bck2Brwsr]] [[VM]], we can take the same application and repackage it so it runs in a pluginless browser. Just choose ''bck2brwsr'' [[Maven]] configuration and rebuild.</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>Yes, we can. With the help of [[Bck2Brwsr]] [[VM]], we can take the same application and repackage it so it runs in a pluginless browser. Just choose ''bck2brwsr'' [[Maven]] configuration and rebuild.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>Enjoy your [[GWT]]-less [[HTML]]/[[Java]] applications!</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>Enjoy your [[GWT]]-less [[HTML]]/[[Java]] applications!</div></td></tr>
</table>JaroslavTulachhttp://wiki.apidesign.org/index.php?title=MigrateFromGWT&diff=7372&oldid=prevJaroslavTulach: /* Convert to Annotations */2014-01-29T18:29:07Z<p><span class="autocomment">Convert to Annotations</span></p>
<table style="background-color: white; color:black;">
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr>
<td colspan='2' style="background-color: white; color:black;">←Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 18:29, 29 January 2014</td>
</tr>
<tr><td colspan="2" class="diff-lineno">Line 99:</td>
<td colspan="2" class="diff-lineno">Line 99:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div></source></div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div></source></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>-</td><td style="background: #ffa; color:black; font-size: smaller;"><div>To help us with migration there is a [[NetBeans]] module that can do this for us automatically (either one by one or as a batch conversion). </div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>To help us with migration there is a [[NetBeans]] module that can do this for us automatically (either one by one or as a batch conversion)<ins style="color: red; font-weight: bold; text-decoration: none;">.</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div> </div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">The syntax of [[Java]] callbacks from [[JavaScript]] is the same as the one defined</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">by [[GWT]] (e.g. starts with '''@'''). However, thanks to [[AnnotationProcessor]]s, it is now part of [[Javac]] execution - if there is a typo in the class name (''java.lang.Runnable''), method </ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">name (''run''), or its parameters (empty list in this case) an error is emitted during compilation - preventing errors as soon as possible</ins>.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>=== Real [[HotSpot]] [[VM]] ===</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>=== Real [[HotSpot]] [[VM]] ===</div></td></tr>
</table>JaroslavTulachhttp://wiki.apidesign.org/index.php?title=MigrateFromGWT&diff=7371&oldid=prevJaroslavTulach: /* Convert to Annotations */2014-01-29T18:23:00Z<p><span class="autocomment">Convert to Annotations</span></p>
<table style="background-color: white; color:black;">
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr>
<td colspan='2' style="background-color: white; color:black;">←Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 18:23, 29 January 2014</td>
</tr>
<tr><td colspan="2" class="diff-lineno">Line 99:</td>
<td colspan="2" class="diff-lineno">Line 99:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div></source></div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div></source></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>-</td><td style="background: #ffa; color:black; font-size: smaller;"><div>To help us with migration there is a [[NetBeans]] module that can do this for us automatically.</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>To help us with migration there is a [[NetBeans]] module that can do this for us automatically <ins style="color: red; font-weight: bold; text-decoration: none;">(either one by one or as a batch conversion)</ins>. </div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div> </div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">=== Real [[HotSpot]] [[VM]] ===</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div> </div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">When we have our libraries converted, we can use them in a ''knockout4j'' [[Maven]] archetype project and use it inside of [[JavaFX]] WebView. This gives us all the benefits of [[HotSpot]] and real [[Java]] (including features of modern [[JDK]]s). </ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div> </div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">We can use [[debugger]] and verify the behavior of the [[Java]] application logic the way we are used to.</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div> </div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">=== [[Bck2Brwsr]] ===</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div> </div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">Originally we started with a [[GWT]] application. Now we have real [[Java]] application, which can run on desktop and render its [[HTML]] UI via [[JavaFX]]. However our original application used to run in a browser? Can we do the same?</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div> </div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">Yes, we can. With the help of [[Bck2Brwsr]] [[VM]], we can take the same application and repackage it so it runs in a pluginless browser. Just choose ''bck2brwsr'' [[Maven]] configuration and rebuild.</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div> </div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">Enjoy your [[GWT]]-less [[HTML]]/[[Java]] applications!</ins></div></td></tr>
</table>JaroslavTulach