Skip to main content



      Home
Home » Eclipse Projects » Remote Application Platform (RAP) » RWT Standalone
RWT Standalone [message #81968] Tue, 08 April 2008 17:10 Go to next message
Eclipse UserFriend
Hi,

IŽm just trying to investigate RWT Standalone.
But somehow, I canŽt get it to work, what I get is

org.eclipse.swt.SWTException: Invalid thread access
at org.eclipse.swt.SWT.error(SWT.java:1683)
at org.eclipse.swt.SWT.error(SWT.java:1603)
at org.eclipse.swt.SWT.error(SWT.java:1574)
at org.eclipse.swt.widgets.Widget.error(Widget.java:775)
at org.eclipse.swt.widgets.Widget.checkWidget(Widget.java:718)
at org.eclipse.swt.widgets.Composite.getChildren(Composite.java :107)
at
org.eclipse.swt.internal.widgets.WidgetTreeVisitor.accept(Wi dgetTreeVisitor.java:49)
at org.eclipse.rwt.lifecycle.WidgetUtil.find(WidgetUtil.java:19 4)
at
org.eclipse.swt.internal.widgets.displaykit.DisplayLCA.readF ocusControl(DisplayLCA.java:482)
at
org.eclipse.swt.internal.widgets.displaykit.DisplayLCA.readD ata(DisplayLCA.java:255)
at org.eclipse.rwt.internal.lifecycle.ReadData.execute(ReadData .java:26)
at
org.eclipse.rwt.internal.lifecycle.RWTLifeCycle.continueLife Cycle(RWTLifeCycle.java:208)
at
org.eclipse.rwt.internal.lifecycle.RWTLifeCycle$UIThreadCont roller.run(RWTLifeCycle.java:115)
at java.lang.Thread.run(Thread.java:619)

I couldnŽt find any tutorial or information about that, I read the one
post which describes which libraries to use, but seems that is not enough.
Some ideas?

Martin
Re: RWT Standalone [message #81998 is a reply to message #81968] Wed, 09 April 2008 02:52 Go to previous messageGo to next message
Eclipse UserFriend
<br><font size=2 face="sans-serif">We use RWT standalone without problems
in Tomcat.</font>
<br>
<br><font size=2 face="sans-serif">(currently use M2 + M3)</font>
<br>
<br><font size=2 face="sans-serif">Since we needed some time to find out
how it was done, maybe the following information might help you to find
the missing pieces in your puzzle:</font>
<br>
<br><font size=2 face="sans-serif">1) We use the following jars from RAP:
</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; -
org.eclipse.core.commands</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; -
org.eclipse.equinox.common</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; -
org.eclipse.rap.jface</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; -
org.eclipse.rap.rwt</font>
<br>
<br><font size=2 face="sans-serif">2) We have a normal implementation of
IEntryPoint.createUI</font>
<br><font size=2 face="sans-serif">----------</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; Display display = </font><font size=2 color=#820040 face="Courier New"><b>new</b></font><font size=2 face="Courier New">
<b>Display</b>();</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; Shell shell = </font><font size=2 color=#820040 face="Courier New"><b>new</b></font><font size=2 face="Courier New">
<b>Shell</b>(display);</font>
<br>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; shell.<b>open</b>();</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; shell.<b>setMaximized</b>(</font><font size=2 color=#820040 face="Courier New"><b>true</b></font><font size=2 face="Courier New">);</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; </font><font size=2 color=#820040 face="Courier New"><b>while</b></font><font size=2 face="Courier New">
(!shell.<b>isDisposed</b>()) {</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </font><font size=2 color=#820040 face="Courier New"><b>if</b></font><font size=2 face="Courier New">
(!display.<b>readAndDispatch</b>()) {</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; display.<b>sleep</b>();</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; }</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; </font><font size=2 color=#820040 face="Courier New"><b>return</b></font><font size=2 face="Courier New">
0;</font>
<br><font size=2 face="sans-serif">----------</font>
<br>
<br><font size=2 face="sans-serif">2) In WEB-INF/conf we have a w4t.xml:
&nbsp;(a question to the RAP developers - will this hopefully be obsolete
in the future ? We'd like to have it in the web.xml as well )</font>
<br>
<br><font size=2 face="sans-serif">----------</font>
<br><font size=2 color=#008080 face="Courier New">&lt;?</font><font size=2 color=#3f8080 face="Courier New">xml
</font><font size=2 color=#800080 face="Courier New">version</font><font size=2 face="Courier New">=</font><font size=2 color=#4200ff face="Courier New">&quot;1.0&quot;
</font><font size=2 color=#800080 face="Courier New">encoding</font><font size=2 face="Courier New">=</font><font size=2 color=#4200ff face="Courier New">&quot;UTF-8&quot;</font><font size=2 color=#008080 face="Courier New">?&gt;</font>
<br><font size=2 color=#008080 face="Courier New">&lt;</font><font size=2 color=#3f8080 face="Courier New">w4t:application
</font><font size=2 color=#800080 face="Courier New">xmlns:w4t</font><font size=2 face="Courier New">=</font><font size=2 color=#4200ff face="Courier New">&quot;</font><a href=http://w4toolkit.com/><font size=2 color=#4200ff face="Courier New">http://w4toolkit.com/</font></a><font size=2 color=#4200ff face="Courier New">&quot;</font>
<br><font size=2 color=#4200ff face="Courier New">&nbsp; &nbsp; &nbsp;
&nbsp; </font><font size=2 color=#800080 face="Courier New">xmlns:xsi</font><font size=2 face="Courier New">=</font><font size=2 color=#4200ff face="Courier New">&quot;</font><a href="http://www.w3.org/2001/XMLSchema-instance"><font size=2 color=#4200ff face="Courier New">http://www.w3.org/2001/XMLSchema-instance</font></a><font size=2 color=#4200ff face="Courier New">&quot;</font>
<br><font size=2 color=#4200ff face="Courier New">&nbsp; &nbsp; &nbsp;
&nbsp; </font><font size=2 color=#800080 face="Courier New">xsi:schemaLocation</font><font size=2 face="Courier New">=</font><font size=2 color=#4200ff face="Courier New">&quot;</font><a href=http://w4toolkit.com/><font size=2 color=#4200ff face="Courier New">http://w4toolkit.com/</font></a><font size=2 color=#4200ff face="Courier New">
w4t.xsd &quot;</font><font size=2 color=#008080 face="Courier New">&gt;</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; </font><font size=2 color=#008080 face="Courier New">&lt;</font><font size=2 color=#3f8080 face="Courier New">initialisation</font><font size=2 color=#008080 face="Courier New">&gt;</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; </font><font size=2 color=#008080 face="Courier New">&lt;</font><font size=2 color=#3f8080 face="Courier New">lifecycle</font><font size=2 color=#008080 face="Courier New">&gt;</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; org.eclipse.rwt.internal.lifecycle.RWTLifeCycle</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; </font><font size=2 color=#008080 face="Courier New">&lt;/</font><font size=2 color=#3f8080 face="Courier New">lifecycle</font><font size=2 color=#008080 face="Courier New">&gt;</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; </font><font size=2 color=#008080 face="Courier New">&lt;/</font><font size=2 color=#3f8080 face="Courier New">initialisation</font><font size=2 color=#008080 face="Courier New">&gt;</font>
<br><font size=2 color=#008080 face="Courier New">&lt;/</font><font size=2 color=#3f8080 face="Courier New">w4t:application</font><font size=2 color=#008080 face="Courier New">&gt;</font>
<br><font size=2 face="sans-serif">----------</font>
<br>
<br><font size=2 face="sans-serif">3) In WEB-INF we have a simple web.xml:</font>
<br>
<br><font size=2 face="sans-serif">-----------</font>
<br><font size=2 color=#008080 face="Courier New">&lt;?</font><font size=2 color=#3f8080 face="Courier New">xml
</font><font size=2 color=#800080 face="Courier New">version</font><font size=2 face="Courier New">=</font><font size=2 color=#4200ff face="Courier New">&quot;1.0&quot;
</font><font size=2 color=#800080 face="Courier New">encoding</font><font size=2 face="Courier New">=</font><font size=2 color=#4200ff face="Courier New">&quot;ISO-8859-1&quot;</font><font size=2 color=#008080 face="Courier New">?&gt;</font>
<br><font size=2 color=#008080 face="Courier New">&lt;</font><font size=2 color=#3f8080 face="Courier New">web-app
</font><font size=2 color=#800080 face="Courier New">xmlns</font><font size=2 face="Courier New">=</font><font size=2 color=#4200ff face="Courier New">&quot;</font><a href=http://java.sun.com/xml/ns/j2ee><font size=2 color=#4200ff face="Courier New">http://java.sun.com/xml/ns/j2ee</font></a><font size=2 color=#4200ff face="Courier New">&quot;</font>
<br><font size=2 color=#4200ff face="Courier New">&nbsp; &nbsp; &nbsp;
&nbsp; </font><font size=2 color=#800080 face="Courier New">xmlns:xsi</font><font size=2 face="Courier New">=</font><font size=2 color=#4200ff face="Courier New">&quot;</font><a href="http://www.w3.org/2001/XMLSchema-instance"><font size=2 color=#4200ff face="Courier New">http://www.w3.org/2001/XMLSchema-instance</font></a><font size=2 color=#4200ff face="Courier New">&quot;</font>
<br><font size=2 color=#4200ff face="Courier New">&nbsp; &nbsp; &nbsp;
&nbsp; </font><font size=2 color=#800080 face="Courier New">xsi:schemaLocation</font><font size=2 face="Courier New">=</font><font size=2 color=#4200ff face="Courier New">&quot;</font><a href=http://java.sun.com/xml/ns/j2ee><font size=2 color=#4200ff face="Courier New">http://java.sun.com/xml/ns/j2ee</font></a><font size=2 color=#4200ff face="Courier New">
</font><a href="http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"><font size=2 color=#4200ff face="Courier New">http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd</font></a><font size=2 color=#4200ff face="Courier New">&quot;</font>
<br><font size=2 color=#4200ff face="Courier New">&nbsp; &nbsp; &nbsp;
&nbsp; </font><font size=2 color=#800080 face="Courier New">version</font><font size=2 face="Courier New">=</font><font size=2 color=#4200ff face="Courier New">&quot;2.4&quot;</font><font size=2 color=#008080 face="Courier New">&gt;</font>
<br>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; </font><font size=2 color=#008080 face="Courier New">&lt;</font><font size=2 color=#3f8080 face="Courier New">display-name</font><font size=2 color=#008080 face="Courier New">&gt;</font><font size=2 face="Courier New">Welcome
to Tomcat</font><font size=2 color=#008080 face="Courier New">&lt;/</font><font size=2 color=#3f8080 face="Courier New">display-name</font><font size=2 color=#008080 face="Courier New">&gt;</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; </font><font size=2 color=#008080 face="Courier New">&lt;</font><font size=2 color=#3f8080 face="Courier New">description</font><font size=2 color=#008080 face="Courier New">&gt;</font><font size=2 face="Courier New">Welcome
to Tomcat</font><font size=2 color=#008080 face="Courier New">&lt;/</font><font size=2 color=#3f8080 face="Courier New">description</font><font size=2 color=#008080 face="Courier New">&gt;</font>
<br>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; </font><font size=2 color=#008080 face="Courier New">&lt;</font><font size=2 color=#3f8080 face="Courier New">context-param</font><font size=2 color=#008080 face="Courier New">&gt;</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; </font><font size=2 color=#008080 face="Courier New">&lt;</font><font size=2 color=#3f8080 face="Courier New">param-name</font><font size=2 color=#008080 face="Courier New">&gt;</font><font size=2 face="Courier New">org.eclipse.rwt.entryPoints</font><font size=2 color=#008080 face="Courier New">&lt;/</font><font size=2 color=#3f8080 face="Courier New">param-name</font><font size=2 color=#008080 face="Courier New">&gt;</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; </font><font size=2 color=#008080 face="Courier New">&lt;</font><font size=2 color=#3f8080 face="Courier New">param-value</font><font size=2 color=#008080 face="Courier New">&gt;</font><font size=2 face="Courier New">de.tolina.web.RAPEntryPoint</font><font size=2 color=#008080 face="Courier New">&lt;/</font><font size=2 color=#3f8080 face="Courier New">param-value</font><font size=2 color=#008080 face="Courier New">&gt;</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; </font><font size=2 color=#008080 face="Courier New">&lt;/</font><font size=2 color=#3f8080 face="Courier New">context-param</font><font size=2 color=#008080 face="Courier New">&gt;</font>
<br>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; </font><font size=2 color=#008080 face="Courier New">&lt;</font><font size=2 color=#3f8080 face="Courier New">listener</font><font size=2 color=#008080 face="Courier New">&gt;</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; </font><font size=2 color=#008080 face="Courier New">&lt;</font><font size=2 color=#3f8080 face="Courier New">listener-class</font><font size=2 color=#008080 face="Courier New">&gt;</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; org.eclipse.rwt.internal.engine.RWTServletContextListener</font >
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; </font><font size=2 color=#008080 face="Courier New">&lt;/</font><font size=2 color=#3f8080 face="Courier New">listener-class</font><font size=2 color=#008080 face="Courier New">&gt;</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; </font><font size=2 color=#008080 face="Courier New">&lt;/</font><font size=2 color=#3f8080 face="Courier New">listener</font><font size=2 color=#008080 face="Courier New">&gt;</font>
<br>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; </font><font size=2 color=#008080 face="Courier New">&lt;</font><font size=2 color=#3f8080 face="Courier New">servlet</font><font size=2 color=#008080 face="Courier New">&gt;</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; </font><font size=2 color=#008080 face="Courier New">&lt;</font><font size=2 color=#3f8080 face="Courier New">servlet-name</font><font size=2 color=#008080 face="Courier New">&gt;</font><font size=2 face="Courier New">rapServlet</font><font size=2 color=#008080 face="Courier New">&lt;/</font><font size=2 color=#3f8080 face="Courier New">servlet-name</font><font size=2 color=#008080 face="Courier New">&gt;</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; </font><font size=2 color=#008080 face="Courier New">&lt;</font><font size=2 color=#3f8080 face="Courier New">servlet-class</font><font size=2 color=#008080 face="Courier New">&gt;</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; org.eclipse.rwt.internal.engine.RWTDelegate</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; </font><font size=2 color=#008080 face="Courier New">&lt;/</font><font size=2 color=#3f8080 face="Courier New">servlet-class</font><font size=2 color=#008080 face="Courier New">&gt;</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; </font><font size=2 color=#008080 face="Courier New">&lt;/</font><font size=2 color=#3f8080 face="Courier New">servlet</font><font size=2 color=#008080 face="Courier New">&gt;</font>
<br>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; </font><font size=2 color=#008080 face="Courier New">&lt;</font><font size=2 color=#3f8080 face="Courier New">servlet-mapping</font><font size=2 color=#008080 face="Courier New">&gt;</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; </font><font size=2 color=#008080 face="Courier New">&lt;</font><font size=2 color=#3f8080 face="Courier New">servlet-name</font><font size=2 color=#008080 face="Courier New">&gt;</font><font size=2 face="Courier New">rapServlet</font><font size=2 color=#008080 face="Courier New">&lt;/</font><font size=2 color=#3f8080 face="Courier New">servlet-name</font><font size=2 color=#008080 face="Courier New">&gt;</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; </font><font size=2 color=#008080 face="Courier New">&lt;</font><font size=2 color=#3f8080 face="Courier New">url-pattern</font><font size=2 color=#008080 face="Courier New">&gt;</font><font size=2 face="Courier New">/main</font><font size=2 color=#008080 face="Courier New">&lt;/</font><font size=2 color=#3f8080 face="Courier New">url-pattern</font><font size=2 color=#008080 face="Courier New">&gt;</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; </font><font size=2 color=#008080 face="Courier New">&lt;/</font><font size=2 color=#3f8080 face="Courier New">servlet-mapping</font><font size=2 color=#008080 face="Courier New">&gt;</font>
<br><font size=2 color=#008080 face="Courier New">&lt;/</font><font size=2 color=#3f8080 face="Courier New">web-app</font><font size=2 color=#008080 face="Courier New">&gt;</font>
<br><font size=2 face="sans-serif">-----------</font>
<br>
<br><font size=2 face="sans-serif">4) You can use different features (branding
+ theming), that normally are done with extension points by specifiying
some variables.</font>
<br><font size=2 face="sans-serif">This is optional:</font>
<br>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; &lt;context-param&gt;</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &lt;param-name&gt;org.eclipse.rwt.themes&lt;/par am-name&gt; </font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &lt;param-value&gt;useradmin#theme/theme.properties& amp;lt;/param-value&gt; </font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; &lt;/context-param&gt;</font>
<br>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; &lt;context-param&gt;</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &lt;param-name&gt;org.eclipse.rwt.brandings&lt;/ param-name&gt; </font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &lt;param-value&gt;rap.RAPUseradminBranding&lt;/ param-value&gt; </font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; &lt;/context-param&gt;</font>
<br>
<br><font size=2 face="sans-serif">Hope this helps you</font><font size=2 face="Courier New">
?</font>
Re: RWT Standalone [message #82014 is a reply to message #81998] Wed, 09 April 2008 05:32 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: rherrmann.innoopract.com

Hi,

thanks for the detailed instructions.
Regarding your question about W4T.xml: yes this file will become
obsolete one day. But as this file is necessary to maintain
compatibility with W4Toolkit, we can only remove it when there are
no more W4Toolkit users.

Cheers,
Rüdiger


stefan.hansel@tolina.de wrote:
>
> We use RWT standalone without problems in Tomcat.
>
> (currently use M2 + M3)
>
> Since we needed some time to find out how it was done, maybe the
> following information might help you to find the missing pieces in your
> puzzle:
>
> 1) We use the following jars from RAP:
> - org.eclipse.core.commands
> - org.eclipse.equinox.common
> - org.eclipse.rap.jface
> - org.eclipse.rap.rwt
>
> 2) We have a normal implementation of IEntryPoint.createUI
> ----------
> Display display = *new* *Display*();
> Shell shell = *new* *Shell*(display);
>
> shell.*open*();
> shell.*setMaximized*(*true*);
> *while* (!shell.*isDisposed*()) {
> *if* (!display.*readAndDispatch*()) {
> display.*sleep*();
> }
> }
> *return* 0;
> ----------
>
> 2) In WEB-INF/conf we have a w4t.xml: (a question to the RAP developers
> - will this hopefully be obsolete in the future ? We'd like to have it
> in the web.xml as well )
>
> ----------
> <?xml version="1.0" encoding="UTF-8"?>
> <w4t:application xmlns:w4t="http://w4toolkit.com/"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://w4toolkit.com/ w4t.xsd ">
> <initialisation>
> <lifecycle>
> org.eclipse.rwt.internal.lifecycle.RWTLifeCycle
> </lifecycle>
> </initialisation>
> </w4t:application>
> ----------
>
> 3) In WEB-INF we have a simple web.xml:
>
> -----------
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <web-app xmlns="http://java.sun.com/xml/ns/j2ee"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
> http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
> version="2.4">
>
> <display-name>Welcome to Tomcat</display-name>
> <description>Welcome to Tomcat</description>
>
> <context-param>
> <param-name>org.eclipse.rwt.entryPoints</param-name>
> <param-value>de.tolina.web.RAPEntryPoint</param-value>
> </context-param>
>
> <listener>
> <listener-class>
>
> org.eclipse.rwt.internal.engine.RWTServletContextListener
> </listener-class>
> </listener>
>
> <servlet>
> <servlet-name>rapServlet</servlet-name>
> <servlet-class>
> org.eclipse.rwt.internal.engine.RWTDelegate
> </servlet-class>
> </servlet>
>
> <servlet-mapping>
> <servlet-name>rapServlet</servlet-name>
> <url-pattern>/main</url-pattern>
> </servlet-mapping>
> </web-app>
> -----------
>
> 4) You can use different features (branding + theming), that normally
> are done with extension points by specifiying some variables.
> This is optional:
>
> <context-param>
> <param-name>org.eclipse.rwt.themes</param-name>
> <param-value>useradmin#theme/theme.properties</param-value >
> </context-param>
>
> <context-param>
> <param-name>org.eclipse.rwt.brandings</param-name>
> <param-value>rap.RAPUseradminBranding</param-value>
> </context-param>
>
> Hope this helps you ?
Re: RWT Standalone [message #82060 is a reply to message #82014] Wed, 09 April 2008 08:25 Go to previous messageGo to next message
Eclipse UserFriend
<br><font size=2 face="sans-serif">Is there anything interesting that could
be configured there for non W4T-users ?</font>
<br>
<br><font size=2 face="sans-serif">Otherwise wouldn't it be possible just
to have a fallback - if that file doesn't exist, than take a simple default
(actually there is only one listener registered) ?</font>
<br>
<br><font size=2 face="sans-serif">Kind regards, </font>
<br>
<br><font size=2 face="sans-serif">Stefan</font>
<br>
Re: RWT Standalone [message #82104 is a reply to message #82060] Wed, 09 April 2008 09:15 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: rherrmann.innoopract.com

Stefan,

you are right, the only sensible thing to be configured here is the
RWTLifeCycle.
There are default values defined, but as said, we can't change these
without breaking W4Toolkit applications.

Cheers,
Rüdiger



stefan.hansel@tolina.de wrote:
>
> Is there anything interesting that could be configured there for non
> W4T-users ?
>
> Otherwise wouldn't it be possible just to have a fallback - if that file
> doesn't exist, than take a simple default (actually there is only one
> listener registered) ?
>
> Kind regards,
>
> Stefan
Re: RWT Standalone [message #83007 is a reply to message #81998] Tue, 15 April 2008 07:47 Go to previous message
Eclipse UserFriend
Originally posted by: ifurnadjiev.innoopract.com

Hi Stefan,

thank you once again for the detailed instructions. They are included in
RAP wiki FAQ page http://wiki.eclipse.org/RapFaq .

Cheers,
Ivan
Previous Topic:[ANN] RAP 1.1 M3 released
Next Topic:SWT.INHERIT_DEFAULT should be default?
Goto Forum:
  


Current Time: Sun Aug 31 01:41:46 EDT 2025

Powered by FUDForum. Page generated in 0.03517 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top