PDA

View Full Version : Shortcut does not work



netRapid
6 Jul 2009, 2:23 AM
Hello,

using the Shortcut class does not work. It produces the following error in the hosted mode log:
[ERROR] Line 45: No source code is available for type com.extjs.gxt.desktop.client.Shortcut; did you forget to inherit a required module?

This code reproduces the bug:


ContentPanel p = new ContentPanel();
Shortcut sc = new Shortcut("some-id", "some text");
p.add(sc);


regards,

Bernhard

sven
6 Jul 2009, 2:25 AM
Moving this to the help forum. You need to inherit the desktop module

csergiu77
6 Jul 2009, 2:21 PM
Sven can you help us reltes to shortcut issue.
A sample of how we can do that ?

Arno.Nyhm
29 Jul 2009, 5:19 AM
Sven can you help us reltes to shortcut issue.
A sample of how we can do that ?

you need to include this in your application.gwt.xml:


<inherits name="com.google.gwt.user.User"/>
<inherits name='com.extjs.gxt.ui.GXT'/>
<inherits name='com.extjs.gxt.desktop.WebDesktop' />

and dont forget to include this div x-desktop codesnippet to your html:


<body>
<script language="javascript" src="org.yournamehere.Main/org.yournamehere.Main.nocache.js"></script>
<div id="x-desktop">
<dl id="x-shortcuts"></dl>
</div>
</body>