image is not displayed at broswer IE 7.0

2009-01-16 Thread avd

dir sir,
i have a problem in gwt to display image at browser.
my problem is wnen i browse a image and click for show image it is not
displayed at browser.i found only a color small rectangle.i am using
IE 7.0 broswer.
  please solve my problem





with regards
avdhesh
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Deployment server side issues

2009-01-16 Thread Feltros

Overview:
Having uploaded all the compiled files (which run fine in hosted and
compiled modes on my PC) to an Apache server, the front side no longer
seems able to reach the server side servlets (and their mappings as
stated in the main .gwt.xml file).

Points to make clear firstly:
The server cannot be at fault, my colleague has implemented his own
GWT project on exactly the same server using server side code and it
runs perfectly. We have looked over every millimetre of code and the
directory structures etc and they match perfectly so I am assuming its
something I do in the compiling phase or something to do with my build
path?

Secondarily, I do not have a project-compile.cmd or project-shell.cmd
or project.launch file since I was creating a GXT (its a widget
library) application and was compiling/running through eclipse
(possibly incorrectly hence why things haven't worked?)

Mappings are as such:




The problem reveals itself when I do the following:
   service = (ServerAsync) Registry.get("server");
service.fillUserData(unfilled, new AsyncCallback(){

public void onFailure(Throwable caught) {
LoginDialog.this.retry("Server error");
Info.display("Error",caught.getMessage());
}
public void onSuccess(UserData result) {
//Other things
}});


Now I am receiving the error (onFailure(Throwable caught)):
The requested URL /myDomain/MyProject/www/com.BTI.Root/service was not
found on this server.

>From what I can tell, any calls to com.BTI.root/* go to the tomcat
directory and are then mapped to
com.google.gwt.dev.shell.GWTShellServlet by web.xml under tomcat/
webapps/ROOT/WEB-INF so if it handles the client side script running
fine then why does it fail for the server side?

Do I need the gwt-servlet.jar to be included to get servlets to run?
Is there some special case for this jar? I've read multiple documents
on how it needs to be in web-inf/lib for servlets to run, but this is
not the case on my colleagues project which works fine.

My classpath/buildpath:
jre
/src
/bin
GWT1.5.3 (gwt-user.jar and gwt-dev-windows.jar)
GXT1.2.1
Commons-IO
Commons-fileupload
MysqlConnector

Basically it would appear my servlets aren't being initialised or
correctly mapped to. Has anyone else encountered this problem and know
a solution?

Could it be that my server side is having trouble finding one of its
imports (such as the mysqlconnector - which is the only import used in
the login handler which is giving me all the trouble at the moment)?

Thanks kindly to anyone who can help
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Testing GWT 1.5 with various mobile platforms

2009-01-16 Thread akutz

I have created a new app focused on mobile management of various
virtualization platforms using GWT. I have tested the app with several
mobile platforms, and am keeping a list of those that work and those
that do not. You can find the list at 
http://help.lostcreations.com/faqs/vmm/supported-device-list.

FYI - So far Safari on the iPhone and Android are the only two
platforms that appear to work :(
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



How to debug my entire web app in hosted mode

2009-01-16 Thread chandraj...@gmail.com

I want my entire legacy app to be run from the hosted mode so that I
can debug the front end code(java).
Currently if I deploy to tomcat and attach a Remote debugger I can't
debug the GWT code because they are now html & JS.

I want a way to debug GWT working within the full application. How can
I please?


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Who's Using GWT?

2009-01-16 Thread akutz

lostcreations is using GWT for its new application, Virtualization
Manager Mobile (VMM).

With VMM you can manage and monitor virtual host servers and VMs right
from the palm of your hand using your favorite mobile device! Not only
can it run in any browser that supports AJAX and cookies, but it is
completely fluid -- looking its best at a font size of 2pt or 256pt!

A few of VMM's key features include:

- Start, stop, reset, and suspend VMs from your mobile!
- Monitor host and VM CPU and memory performance.
- Supports VMware Infrastructure 3.x (VI3x), VMware Server 2, and beta
two will enable support for Citrix Xen Server 5 and Microsoft Hyper-V.
- Runs in any AJAX-supported browser (optimized for small displays)
- Installs on Windows, OS X, and Linux
- Built with Google Web Toolkit
- Built with lostcreations's Unified Virtualization API (UVAPI)
- Third-party developers can create custom plug-ins to extend
hypervisor support for VMM

Read more at http://lostcreations.com/vmm (demo link with user and
pass at the site)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: jbpm -gwt integration

2009-01-16 Thread Sumit Chandel
Hi Abi,

I am not familiar with JBPM, but here are a couple of techniques you could
use to get your GWT front-end interoperating with JBPM services residing on
the server:

1) Assuming you'll only be using JBPM on the server-side, you could use the
GWT RPC subsystem to make calls from the client that get handled by your RPC
servlets on the server-side. Check out the documentation on GWT RPC linked
below for more details if you're not familiar with how GWT RPC works. Once
on the server-side, you can issue calls to your JBPM services as you would
normally expect.

2) If instead JBPM is a service that is invoked HTTP requests, at the
crudest level you could use the RequestBuilder class to construct the
requests that the JBPM service expects and deal with the response in the
request callback. Depending on the type of data returned, you would have a
variety of ways to parse through it (JSON, XML, etc...).

Using GWT RPC:
http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5&s=google-web-toolkit-doc-1-5&t=DevGuideRemoteProcedureCalls

Using RequestBuilder:
http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5&s=google-web-toolkit-doc-1-5&t=DevGuideHttp

Sorry I couldn't be of more assistance. Feel free to post up more details
about how you need to connect to the JBPM services and we could probably
provide more specific guidance to get you started.

Hope that helps,
-Sumit Chandel

On Tue, Jan 13, 2009 at 2:43 AM, abi  wrote:

>
> Hi,
>
> I am trying to integrate jbpm with GWT. Basically I am trying to call
> JBPM services(GWT-rpc) from GWT client. Not sure, how to proceed with.
> Does anybody throw some light on this? Redirecting me to some link
> would also help me for understanding.Thanks in advance.
>
> Abi
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



BROKEN DISPLAY OF DECORATOR PANEL

2009-01-16 Thread bond

Hi,
I've add a decorator panel in a RootPanel but in IE6 the image at the
4 corner are not display. In firefox it work correctly.

Any ideas?

Thanks!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Compiler problem after upgrading from v1.4.62 to v1.5.3

2009-01-16 Thread DaViS

Hi everyone,

I'm having an issue with the gwt compiler and i was hoping someone
could help me out. I've built a gwt app using v1.4.62 and it's been
working great for a while now. Due to some enhancements im making, i
need to update to the latest gwt (v1.5.3). After doing so, i'm no
longer able to compile the app using my build script. I've changed the
gwt_home classpath variable as well as updated the gwt used by my
build script. The error seems to be related to my exportable class but
it is not clear what is wrong. There are some warnings that come up
during the build but i didn't think they would cause this
problem...especially since the warnings are related to other classes
from the one that fails to compile.

Here is the error portion of the build log (full build log is at
bottom of post):

Compiling permutations
 [java]Analyzing permutation #1
 [java]   [ERROR] Errors in transient source for
com.brovada.nexisys.personalquoting.client.controller.QuoteOptionManagerExporterImpl
 [java]  [ERROR] Line 7:  Unresolvable native reference to
field 'typeName' in type 'java.lang.Object'
 [java]   [ERROR] Cannot proceed due to previous errors
 [java] [ERROR] Build failed

Here is the top of the class where the annotations are:

/**
 * @gwt.export
 * @gwt.exportPackage quoteManager
 */
public class QuoteOptionManager implements Exportable {

}

Any help is greatly appreciated as i have no idea where to go from
here or what to try next. Thanks so much for the help.

-DaViS


FULL BUILD LOG:

gwt-compile:
 [java] Scanning source for uses of the deprecated gwt.typeArgs
javadoc annotation; please use Java parameterized types instead
 [java]Type net.mygwt.ui.client.data.Model
 [java]   Field children
 [java]  [WARN] Deprecated use of gwt.typeArgs for field
children; Please use java.util.List as
the field's type
 [java]   Field properties
 [java]  [WARN] Deprecated use of gwt.typeArgs for field
properties; Please use java.util.Map as the field's type
 [java] Compiling module
com.brovada.nexisys.personalquoting.PersonalQuoting
 [java] Scanning for additional dependencies: file:/C:/brovada/dev/
nexisys/Scripts.michigan/Applications/PersonalQuoting/src/com/brovada/
nexisys/personalquoting/client/PersonalQuoting.java
 [java]Computing all possible rebind results for
'com.brovada.nexisys.personalquoting.client.messages.StaticMessages'
 [java]   Rebinding
com.brovada.nexisys.personalquoting.client.messages.StaticMessages
 [java]  Scanning source for uses of the deprecated
gwt.typeArgs javadoc annotation; please use Java parameterized types
instead
 [java] Type net.mygwt.ui.client.data.Model
 [java]Field children
 [java]   [WARN] Deprecated use of gwt.typeArgs
for field children; Please use
java.util.List as the field's type
 [java]Field properties
 [java]   [WARN] Deprecated use of gwt.typeArgs
for field properties; Please use java.util.Map as the field's type
 [java]   Rebinding
com.brovada.nexisys.personalquoting.client.messages.StaticMessages
 [java]  Scanning source for uses of the deprecated
gwt.typeArgs javadoc annotation; please use Java parameterized types
instead
 [java] Type net.mygwt.ui.client.data.Model
 [java]Field children
 [java]   [WARN] Deprecated use of gwt.typeArgs
for field children; Please use
java.util.List as the field's type
 [java]Field properties
 [java]   [WARN] Deprecated use of gwt.typeArgs
for field properties; Please use java.util.Map as the field's type
 [java]Computing all possible rebind results for
'com.brovada.nexisys.personalquoting.client.messages.DynamicMessages'
 [java]   Rebinding
com.brovada.nexisys.personalquoting.client.messages.DynamicMessages
 [java]  Scanning source for uses of the deprecated
gwt.typeArgs javadoc annotation; please use Java parameterized types
instead
 [java] Type net.mygwt.ui.client.data.Model
 [java]Field children
 [java]   [WARN] Deprecated use of gwt.typeArgs
for field children; Please use
java.util.List as the field's type
 [java]Field properties
 [java]   [WARN] Deprecated use of gwt.typeArgs
for field properties; Please use java.util.Map as the field's type
 [java]   Rebinding
com.brovada.nexisys.personalquoting.client.messages.DynamicMessages
 [java]  Scanning source for uses of the deprecated
gwt.typeArgs javadoc annotation; please use Java parameterized types
instead
 [java] Type net.mygwt.ui.client.data.Model
 [java]Field children
 [java]   [WARN] Deprecated use of g

Background-Image in VerticalPanels (need Help!)

2009-01-16 Thread Sydus


Hi,

I am a Java-Programmer and new to GWT and I have a problem with using
an background-image on a DockPanel. I have 1 DockPanel with 3
VerticalPanels. The left and right VerticalPanels should only include
a background-image. The content of the Website is going to be placed
into the middle VerticalPanel.

I have put an image with the name "body.jpg" into the public folder,
where also the html-file is stored. If I specify in a CSS-file, that
the image should be used for the general background it does work. But
if I specify that it should only be used with the VerticalPanels, it
does not work.

I have the following Java-Code:


//===
package testPackage01.client;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.user.client.HistoryListener;
import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.ClickListener;
import com.google.gwt.user.client.ui.DecoratedTabPanel;
import com.google.gwt.user.client.ui.DockPanel;
import com.google.gwt.user.client.ui.HTMLPanel;
import com.google.gwt.user.client.ui.RootPanel;
import com.google.gwt.user.client.ui.Widget;
import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.VerticalPanel;

public class Module01 implements EntryPoint, HistoryListener {

public void onModuleLoad() {


DecoratedTabPanel tabPanel = new DecoratedTabPanel();
tabPanel.setWidth("50%");
tabPanel.setAnimationEnabled(true);

HTMLPanel htmlPanelTab1 = new HTMLPanel(
"WELCOME!"
+ "Lorem ipsum dolor sit 
amet, consetetur sadipscing elitr,
sed diam nonumy eirmod tempor invidunt ut labore et dolore magna
aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo
dolores et ea rebum. Stet clita kasd gubergren, no sea takimata
sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet,
consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut
labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos
et accusam et justo duo dolores et ea rebum. Stet clita kasd
gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam
nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat,
sed diam voluptua. At vero eos et accusam et justo duo dolores et ea
rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem
ipsum dolor sit amet. ");
tabPanel.add(htmlPanelTab1, "Tab1");

HTMLPanel htmlPanelTab2 = new HTMLPanel(
"Lorem ipsum dolor sit amet, consectetur 
adipiscing elit. Donec
in dui ac ligula fringilla tincidunt. Quisque massa ante, porta non,
rutrum eu, euismod nec, est. Aliquam nisi lectus, porttitor ac, auctor
id, placerat id, urna. Vestibulum viverra, augue in lacinia vehicula,
eros nulla pulvinar eros, vel eleifend urna purus eget velit. Nulla
facilisi. Morbi vel ipsum a turpis iaculis scelerisque. Sed elit.
Vestibulum dictum, elit sed dignissim lobortis, mauris metus lacinia
justo, sit amet convallis velit neque ac ante. Morbi rhoncus commodo
libero. Nunc in odio. Nullam volutpat metus. Phasellus pellentesque
quam vel lorem. Mauris tempus, diam a tristique bibendum, augue orci
pellentesque elit, sit amet consectetur ligula dui eget justo.");

tabPanel.add(htmlPanelTab2, "Tab2");

HTMLPanel htmlPanelTab3 = new HTMLPanel(
"Lorem ipsum dolor sit amet, consectetur 
adipiscing elit. Donec
in dui ac ligula fringilla tincidunt. Vestibulum viverra, augue in
lacinia vehicula, eros nulla pulvinar eros, vel eleifend urna purus
eget velit. Nulla facilisi. Morbi vel ipsum a turpis iaculis
scelerisque. Sed elit. Vestibulum dictum, elit sed dignissim lobortis,
mauris metus lacinia justo, sit amet convallis velit neque ac ante.
Morbi rhoncus commodo libero. Nunc in odio. Sed facilisis. Praesent
vitae sem. Sed tincidunt massa ac nunc. Mauris blandit enim nec odio
convallis vulputate. Integer sem felis, dictum vitae, hendrerit nec,
ornare ut, urna. Nullam volutpat metus. Phasellus pellentesque quam
vel lorem. Mauris tempus, diam a tristique bibendum, augue orci
pellentesque elit, sit amet consectetur ligula dui eget justo.");

tabPanel.add(htmlPanelTab3, "Tab3");


HTMLPanel htmlPanelTab4 = new HTMLPanel(
"Lorem ipsum dolor sit amet, consectetur 
adipiscing elit. Donec
in dui ac ligula fringilla tincidunt. Quisque massa ante, porta non,
rutrum eu, euismod nec, est. Aliquam nisi lectus, porttitor ac, auctor
id, placerat id, urna. Vestibulum viverra, augue in lacinia vehicula,
eros nulla pulvinar eros, vel eleifend urna purus eget velit. Nulla
facilisi. Morbi vel ipsum a turpis iaculis scelerisque. Sed elit.
Vesti

StockWatcher and Eclypse: problem

2009-01-16 Thread Adri

Hello,

I'm approaching GWT and I was trying to follow the instruction in the
tutorial.

When I run the StockWatcher application within Eclypse I got a Could
not find the main class popup and the following errors:

java.lang.NoClassDefFoundError: com/google/gwt/util/tools/ToolBase
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$000(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
Caused by: java.lang.ClassNotFoundException:
com.google.gwt.util.tools.ToolBase
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
... 12 more
Exception in thread "main"

I followed perfectly the instruction in the tutorial.

Can anyone help me? I cannot find the error.

Thank you in advance!

Cheers

Adriano

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Help with GWT + PHP + Eclipse setup

2009-01-16 Thread ScoPi

I have a good setup in Eclipse for debugging the client-side of a GWT
application that uses Apache/PHP on the backend. However, I can't
figure out how to debug the server-side PHP from Eclipse as well. I do
have the PDT installed (PHP Development Tools), but since the GWT
application creator script created my Eclipse project file, the
project isn't a PHP project and therefore the normal options to easily
debug the server side aren't present. Does anyone have any
suggestions? Is xdebug my only option?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: How to render a list(ul li) by gwt widget ?

2009-01-16 Thread Jason

Thanks for all your reply.

I'v find a perfect solution, here they are, hope this would help other
peoples:

public class OrderedList extends ComplexPanel {
public OrderedList() {
setElement(DOM.createElement("OL"));
}

public void add(Widget w) {
super.add(w, getElement());
}

public void insert(Widget w, int beforeIndex) {
super.insert(w, getElement(), beforeIndex, true);
}

}

public class ListItem extends ComplexPanel implements HasText {
public ListItem() {
setElement(DOM.createElement("LI"));
}

public void add(Widget w) {
super.add(w, getElement());
}

public void insert(Widget w, int beforeIndex) {
super.insert(w, getElement(), beforeIndex, true);
}

public String getText() {
return DOM.getInnerText(getElement());
}

public void setText(String text) {
DOM.setInnerText(getElement(), (text == null) ? "" : text);
}

}

On 1月16日, 下午7时31分, luisfpg  wrote:
> Create a class like this:
>
> public class ULPanel extends ComplexPanel {
>
> private UListElement list;
>
> public BulletPanel() {
> list = Document.get().createULElement();
> setElement(list);
> }
>
> @Override
> public void add(Widget child) {
> Element li = Document.get().createLIElement().cast();
> list.appendChild(li);
> super.add(child, li);
> }
>
>
>
> }- 隐藏被引用文字 -
>
> - 显示引用的文字 -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: pendingSrc problem of Image object on IE 7.0

2009-01-16 Thread todd.sei...@gmail.com

I doubt this is an issue with GWT. It is likely that the browser is
not letting the website access local files do to security issues.

On Jan 16, 6:06 am, ship  wrote:
> hi,
> In a gwt web application, I am showing a user selected image through
> FileUpload class , this image is showing on IE 6.0 browser but not on
> the IE 7.0 , when i see img element in the alert box it display this
> text:
>
> 
>
> how solve this PENDINGSRC problem in Image object.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: RPC functionality outside of a WAR

2009-01-16 Thread todd.sei...@gmail.com

To what would you have access? What is the backend?

If you can upload JARs then this might help? (http://groups.google.com/
group/Google-Web-Toolkit/browse_thread/thread/fb6c8a8adbdbd5cb/
e4b051bf2b41d30e?lnk=gst&q=MyRpcServlet+#e4b051bf2b41d30e)

On Jan 15, 1:04 pm, Mike B  wrote:
> Is it possible to build a GWT app that has RPC functionality, but is
> not contained in a WAR?  I am developing a plugin that does not have
> access to a web.xml file and can't find a way to get my client and
> server code to link up
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: passing events up from a widget?

2009-01-16 Thread seven.reeds

Never mind.  It looks like the answer is to implement
SourcesChangeEvents and all the associated methods.  There might be
great documentation on this somewhere with examples but i have not
seen it.  Looking at the TextBoxBase and ListBox code helped a lot.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: how to image.setUrl to ("public/images/2341.gif");

2009-01-16 Thread eggsy84

Use the GWT Image object in your client side code:

http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/gwt/user/client/ui/Image.html

com.google.gwt.user.client.ui.Image img = new Image("images/
myImage.jpg");

or

img.setUrl("images/myImage.jpg);

As long as the image is within your public/images folder it should
work just fine.

Eggsy

On Jan 16, 3:01 pm, Alex Luya  wrote:
> For testing,I uploaded an image into direcotry:src/../client/public/
> images(servlet will do that),and  created an image object and call
> setUrl() method to set url,so the question is how I can get and
> specify this url(src/../client/public/images/)  in client side.thank
> you.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



how to image.setUrl to ("public/images/2341.gif");

2009-01-16 Thread Alex Luya

For testing,I uploaded an image into direcotry:src/../client/public/
images(servlet will do that),and  created an image object and call
setUrl() method to set url,so the question is how I can get and
specify this url(src/../client/public/images/)  in client side.thank
you.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Number of DAO's effect over all module sizes

2009-01-16 Thread AB

I dont understand why or even how you could include DAOs in the client
side src trees.  When I think of dao's, I think classes that have tcp
connections to databases, etc which cant possibly compile into
javascript.  Are you talking about dto's or other objects that the
DAOs pass back to the client via rpc?  Or are you talking about just
the interfaces that the rpc classes implement on each side?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: GWTx - anyone with experience?

2009-01-16 Thread Rob Smith

You're such a broken record :)

You see GWT and 'x' and copy paste your complaint post. The user is
referring to GWTx. Please read his original post carefully.

http://code.google.com/p/gwtx/


On Jan 16, 8:29 am, "Arthur Kalmenson"  wrote:
> That's one of the caveat of using GXT, it's rather slow compared to
> vanilla GWT. You can search around the group for opinions regarding
> GXT and GWT-ext.
>
> --
> Arthur Kalmenson
>
> On Wed, Jan 14, 2009 at 5:22 PM, Glamdring  
> wrote:
>
> > Hello,
>
> > I plan to use GWTx Introspector and BeanInfo in order to make a simple
> > binding mechanism. I however, have doubts about its efficiency - has
> > anyone tried them in a real project? (They seem fantastic for a Hello
> > World, but I don't want to redesign my application when at some point
> > the CPU reached 60%).
>
> > Thanks in advance.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: GWT for SOA development

2009-01-16 Thread gregor

Spring + Hibernate + GWT is a sound choice and should support most all
of what you need to do. I would look at JBoss SEAM, but then I like
JBoss. All three are tried and tested in the field, so that should
tell you scalability is not an issue. With GWT clients, the key thing
is being able to move session state from the server (where it lives in
e.g. a Struts application), to the client. If it is possible for you
to eliminate most session state maintenance from your server cluster
you will get a significant boost to performance and scalability since
you get less HttpSession synchronization chatter across the cluster.

This of course is in your own hands. Spring, Hibernate, GWT  and your
application server won't stop you doing this right, but they won't do
it for you automatically either.

On Jan 16, 10:34 am, Paranoid Android 
wrote:
> Thank you. I'm convincing myself that this could be the possible best
> solution.
> I also looked at the architecture of some "white label social
> networking platforms" and portals like Elgg, LinkedIn, Liferay etc..
> and it seems that the architecture i've described in the previous post
> could be both robust and flexible enought for  my solution.
> Using GWT I can develop an high quality interface, higher than a JSP
> based from my poit of view, also moving some complexity and computing
> overhead to the client.
> With the Spring framework I've an ascertained and robust backbone for
> implementing services and managing data with Hibernate in a simpler
> and managed way.
> Besides that, I can integrate some messaging system, maybe based on
> ActiveMQ and thanks to message driven beans provided by Spring, if
> such need will arise in the future or in the more detailed design
> phases.
> In this way I can concetrate, in the first design phases, to other
> concers more related to the "social aspect" of the platform (i.e.
> sociability design, data portability etc) than to spend a lot of time
> developing some kind of "more advanced message-based architecture"
> using ESB like ServiceMix.
> I've only one concern: scalability.
> How does this solution conciliate with scalability issues. Is this
> architecture scalable? Can this architecture support the goals of my
> project? What do you think?
>
> On Jan 15, 5:35 pm, gregor  wrote:
>
> > > If, for example, I've an application with a rich client interface
> > > (e.g. builded using gwt) that interacts with, let's say, with a
> > > Session Facade..(ejb, spring, or whatever).
> > > My Model is composed of services and a typical persistence layer...
> > > now hypothesize that everything is well done, i.e. services reflects a
> > > business decomposition etc..etc...
> > > Isn't this a good solution? Is this SOA? Is this MVC?
>
> > I think what you are describing here is an industrial strength Java EE
> > + GWT architecture for a system that is fully capable of
> > *participating* in an SOA since all the business services (EJB/Spring
> > based, whatever) can be exposed in multiple ways to third party
> > systems as required, including an ESB supporting an SOA environment.
> > An application server like JBoss, for instance, has a plethora of
> > tools to help you do this (including it's own ESB as it happens), and
> > I think Spring is the same.
>
> > MVC is another matter, and IMO it is another buzz term that means all
> > sorts of things to different people. MVC was originally invented
> > during the Apple Lisa project (the first real WIMP framework) in the
> > early 1980's I believe, and I think it was implemented in Smalltalk,
> > one of the first "proper" OO languages, which was specifically
> > designed to support MVC. Struts is most definitely MVC:
> > JSP==View;Action==Controller;Bean==Model etc. But it has to be that
> > way to run the cycles of pages in the application.
>
> > However in GUI programming environments the role of Controller becomes
> > moot, or confused. Swing, for example, is often accused of not being
> > "true MVC" because there is no real enforcement or even encouragement
> > to cleanly separate a View (i.e. a widget) from a Controller, whatever
> > that actually means in the context of a client GUI.
>
> > For a GWT example, suppose you have a Tree, you select an item from it
> > and you want to display some details about that item in second panel.
> > You might have the widget containing the tree implement
> > SourcesChangeEvents, and the display panel implement ChangeListener,
> > so the display panel is notified when user selects a Tree item.
> > DisplayPanel has its onChange(Widget sender) method called, retrieves
> > the item identifier from the sender (the Tree) and calls an
> > asynchronous RPC service to get the details. RPC servlet calls, say, a
> > Session EJB to fetch the Model object concerned, then returns it to
> > DisplayPanel callback onSuccess(object result) method, from whence
> > DisplayPanel can populate its fields.
>
> > As you can see the "Controller" element is split up all over the pl

Re: GWTx - anyone with experience?

2009-01-16 Thread Arthur Kalmenson

That's one of the caveat of using GXT, it's rather slow compared to
vanilla GWT. You can search around the group for opinions regarding
GXT and GWT-ext.

--
Arthur Kalmenson



On Wed, Jan 14, 2009 at 5:22 PM, Glamdring  wrote:
>
> Hello,
>
> I plan to use GWTx Introspector and BeanInfo in order to make a simple
> binding mechanism. I however, have doubts about its efficiency - has
> anyone tried them in a real project? (They seem fantastic for a Hello
> World, but I don't want to redesign my application when at some point
> the CPU reached 60%).
>
> Thanks in advance.
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Need help with client server auth

2009-01-16 Thread mikedshaf...@gmail.com

The simplest thing I can comment is:  that's about your only option.
You've got various levels of security issues here, so I'm going to
assume the simplest.  You need the web client to be trusted by the GWT
"server" (the server end of the GWT-RPC).  Then you need the GWT
server to be trusted by the application server.  In most of our
applications, we do server to server trust using Kerberos, service
tickets and a whole bunch of authentication that is way beyond
anything I want to write here.  For GWT-RPC, we do a session id that
contains the users Kerberos credentials ticket, which can be verified
by a Spring inserted filter on our GWT RPC.  We have done cookies in a
SQL database, but today we've got code that takes the credentials and
sends them to a cookie on the browser.  That cookie is then visible to
the server as it is included in the web request.  We don't use SSL to
harden our pipes, but we could and might.  All of our users at this
time are inside the firewall and we are therefore dealing with them
via an LDAP (Microsoft Active Directory in our case).

All of this sounds like mumbo jumbo no doubt.  To do "real" security
like we're doing, we've had a couple of us working on this for a
couple of years.  We've also done less secure security (oxymoronic
perhaps) where we create a special session key and store it in SQL.
We then send it down to the client where it is cookied.  Every request
has the cookie and our server side then extracts the session and
validates against the session table in SQL.  Then using the same
session id, we can determine the users' credentials that we've also
stuck in another table.  This has allowed us to do things like certain
users can't insert records or whatever rule you employ.  But our
security auditors haven't historically loved this and that's what
prompted us to develop the Kerberos/service ticket solution.

Now we are working with WS-Security to truly secure our SOA
services...it never ends...

Later,

Shaffer

On Jan 16, 3:58 am, "Mikhail M"  wrote:
> Need help!
>
> I have an architecture described below
>
> 1) Client application
> 2) Server application
>
> Client and server applications hasn't dependencies and could be set on
> different servers.
> I have the same Object model using in both application.
>
> Client and server are using rpc to communicate.
>
> In server application I'm using Spring
> (org.springframework.web.servlet.DispatcherServlet)
> In client application - GWT
>
> It works perfect but it isn't secure. So now I need to add auth to my client
> application.
> Users could have different roles, that's why they could call only allowed
> remote procedures.
> Of course it should be checked on server side.
>
> I need some mechanism for detection users on server side. I could't find any
> suitable
> solution for my application architecture. I think should be any transparent
> mechanism for my
> architecture.
>
> Do you have any ideas?
>
> My idea is to add to every rpc call any parameter - session identifier. This
> identifier
> set to any user if auth was correct. This session id stored in data base for
> example and
> cleared after some times if user was inactive.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Fw: TreeNode Listener issues

2009-01-16 Thread Manish Kumar

any idea on this. please help me out.

Thanx
- Original Message - 
From: "Manish Kumar" 
To: 
Sent: Friday, January 16, 2009 12:48 PM
Subject: TreeNode Listener issues


>
>
> Hi Everybody,
>
> Can I get any help on this : I am calling a listener in this fashion. I am
> not getting what i am doing wrong. I am using GWT 1.5.2 and GWText
> component.
>
> Please have a look at my code and help me out to find where i am wrong.
> Please excuse and let me know if anything is not concerned to this forum.
>
> import com.gwtext.client.widgets.tree.TreeNode;
> final TreeNode rootChild = new TreeNode( itemName );
>
> if( itmType != null && itmType.equalsIgnoreCase("folder") )
>
> {
>
>rootChild.setExpandable(true);
>
>
>rootChild.addListener(new TreeNodeListenerAdapter() {
>
>
>public void onClick(Node node, EventObject e) {
>
>try
>
>{
>
>RequestBuilder builder = new RequestBuilder(RequestBuilder.GET,
> URL.encode(tempUrl));
>
>
>builder.setCallback(new RequestCallback()
>
>{
>
>public void onError(Request request, Throwable exception)
>
>  {
>
>MessageBox.alert( exception.getLocalizedMessage() );
>
>  }
>
>public void onResponseReceived(Request request, Response
> response)
>
> {
>
>if (200 == response.getStatusCode())
>
>  {
>
>MessageBox.alert( response.getText() );
>
>buildTreeNode ( response.getText(), rootChild, root,
> tempUrl );
>
>  }
>
>else
>
>  {
>
>   MessageBox.alert(response.getStatusCode() +" : "+
> response.getStatusText() +":"+ response.getText() );
>
>  }
>
>   }
>
>});
>
>builder.send();
>
>}
>
>catch(RequestException ex)
>
>{
>
>System.out.println( "Exception occurred during sub tree node: "+
> ex.getLocalizedMessage());
>
>}
>
> }
>
> });
>
> }
>
> else
>
> {
>
>rootChild.addListener(new TreeNodeListenerAdapter()
>
>{
>
>public void onDblClick( Node node, EventObject e ) {
>
>try
>
> {
>
>System.out.println("xxx :");
>
>
>RequestBuilder builder = new RequestBuilder(RequestBuilder.GET,
> URL.encode(tempUrl));
>
>
>builder.setCallback(new RequestCallback()
>
>{
>
>public void onError( Request request, Throwable exception )
>
> {
>
>MessageBox.alert( exception.getLocalizedMessage() );
>
>}
>
>
>  public void onResponseReceived( Request request, Response
> response )
>
>   {
>
>if ( 200 == response.getStatusCode() )
>
> {
>
>TabPanel tabPanel = new TabPanel();
>
>tabPanel.setTabPosition(Position.BOTTOM);
>
>tabPanel.setResizeTabs(true);
>
>tabPanel.setMinTabWidth(115);
>
>tabPanel.setTabWidth(135);
>
>tabPanel.setActiveTab(0);
>
>
>Frame google = new Frame(itmPath);
>
>
>Panel filePanel = new Panel("Google");
>
>filePanel.setLayout(new FitLayout());
>
>filePanel.setIconCls("tab-icon");
>
>filePanel.add(google);
>
>}
>
>else
>
>{
>
>MessageBox.alert( response.getStatusCode() +" : "+
> response.getStatusText() +":"+ response.getText() );
>
>}
>
> }
>
> });
>
> builder.send();
>
> }
>
> catch(RequestException ex)
>
> {
>
> System.out.println( "Exception occurred during sub tree node: "+
> ex.getLocalizedMessage());
>
> }
>
> }
>
> });
>
> }
>
>
> Regards,
> Manish
>
>
> > 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: History and Tab panels

2009-01-16 Thread jake H

OK i finally got what todd tried to say me :p

Its working now. ty all for your replies.

On Jan 9, 6:21 pm, "todd.sei...@gmail.com" 
wrote:
> First remember that #0 and #3 are not pages. Check 
> outhttp://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/g...()
> to see how you can invoke the currenthistorywhen your app reloads
>
> Historyfor a full UI is rather complex. Consider mapping commands 
> tohistorywith very specific naming. For example you could use a token
> such as "MyTopLevelTab:1" and a command which selects the tab for you.
>
> new Command() {
>   public void execute() {
>     tpanel.selectTab(1);
>   }
>
> }
>
> And use some other token for the child TabPanel like "MyTopLevelTab:
> 1:MyOtherTabPanel:3"
>
> new Command() {
>   public void execute() {
>     tpanel.selectTab(1);
>     ((TabPanel) tpanel.getWidget(1)).selectTab(3);
>   }
>
> }

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: How to use/debug a widget and use 2 different Java packages in the same project?

2009-01-16 Thread olivier FRESSE
Hi,
Put your widget code in a jar file, and use it as a module in your test
code.

http://code.google.com/support/bin/answer.py?answer=55197&topic=10211


2009/1/16 Fred Janon 

> Hi,
>
> I am developing a widget that I would like to package in a jar for use in
> GWT projects. I created a new project for my widget, wrote the code and
> debugged it in its own project. Now I want to create a test project (in a
> different Java package) and be able to still modify/debug my widget without
> having to build a jar every time. Basically the question is: can we work in
> an Eclipse project with 2 different Java packages, one for the application,
> one for a widget under development. I would be the same as modying the GWT
> code in a client project. I am using GWT 15.3 and Eclipse.
>
> Thanks
>
> Fred
>
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



How to use/debug a widget and use 2 different Java packages in the same project?

2009-01-16 Thread Fred Janon
Hi,

I am developing a widget that I would like to package in a jar for use in
GWT projects. I created a new project for my widget, wrote the code and
debugged it in its own project. Now I want to create a test project (in a
different Java package) and be able to still modify/debug my widget without
having to build a jar every time. Basically the question is: can we work in
an Eclipse project with 2 different Java packages, one for the application,
one for a widget under development. I would be the same as modying the GWT
code in a client project. I am using GWT 15.3 and Eclipse.

Thanks

Fred

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: History and Tab panels

2009-01-16 Thread Ian Bambury
When you first create the app, you have to call history (either directly or
to the routine you do the paging in) with the history token.
Ian

http://examples.roughian.com


2009/1/15 jake H 

>
>
> I tried something , that managed to do some more than the previous
> codes.
> But i still have the refresh problem , when refresh button is pressed
> even if the url points in a specific page,  the main tab is reloaded.
> And when i save a bookmark with subpanel and trying to visit it , i
> cant. while in top panel its working.
>
> I provide the code
> tpanel is the top level tab panel , while the sub , is the sub tab
> panel of a specific top level tab panel.
>
>
>  tpanel.addTabListener(new TabListener() {
>   public void onTabSelected(SourcesTabEvents sender, int
> tabIndex) {
> // Push an item onto the history stack
>History.newItem("page" + tabIndex);
> }
>public boolean onBeforeTabSelected(SourcesTabEvents sender,
> int
> tabIndex){
>
>return true;
>}
>
> });
>
>  subpanel.addTabListener(new TabListener() {
>   public void onTabSelected(SourcesTabEvents sender, int
> tabIndex) {
> // Push an item onto the history stack
>History.newItem("subpage" + tabIndex);
> }
>public boolean onBeforeTabSelected(SourcesTabEvents sender,
> int
> tabIndex){
>
>return true;
>}
>
> });
>
>History.addHistoryListener(new HistoryListener() {
>public void onHistoryChanged(String historyToken) {
>  if(historyToken != null) {
> String check = historyToken.substring(0,4);
> GWT.log("Check value "+check,null);
> String htok;
> int check2=-1;
> if( check.equals("page") )
> {
> htok = historyToken.substring(4,historyToken.length());
> check2 = 0;
> }
> else
> {
> htok =
> historyToken.substring(7,historyToken.length());
> check2 = 1;
> GWT.log("htok value "+htok,null);
> }
>
> int index = Integer.parseInt(htok);
> if( check2 == 0 ) {
> if( index >= tpanel.getTabBar().getTabCount()) index =
> 0;
>
>  tpanel.selectTab(index);
>  }
>  else if( check2 == 1 ) {
> if( index >=
> subpanel.getTabBar().getTabCount()) index
> = 0;
>
>   subpanel.selectTab(index);
>  }
> }
>   }
>});
>
>
>
> Any idea?
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: GWT applications memory management

2009-01-16 Thread Lex

Hello Dmitry,

We are also thinking about splitting application into several. So now
we will try this approach starting with creation some "proof of
concept" demo application.
Thanks a lot for your explanation.


On Jan 16, 12:17 pm, "buz...@gmail.com"  wrote:
> Hello Alexey,
>
> Unfortunately this is a typical situation in large GWT application
> which uses a lot of custom Widgets and DOM/native code.
>
> We have found no tooling which would efficiently show us the exact
> places of memory leaks and the only approach left is to cut you
> application into two halves and see how the memory behaves.
>
> We have succeeded in reducing the memory leak by carefully analyzing
> the code and unlinking custom event listeners and object hierarchies
> by overriding onUnload() methods of custom widgets. Splitting your
> application into several and providing hard navigation by changing
> window.url from time to time, instead of relying on GWT History
> mechanism also helps.
>
> Memory leak situation is a lot better in Firefox and Opera, but Chrome
> went further by providing separate memory space for each tab, thus it
> guarantees that if you close the tab everything is "garbage
> collected", because process is killed. I guess Google took the only
> right way to solve the problem :)
>
> I hope it will help you to deal with your problems.
>
> Dmitry
>
> On Jan 14, 4:00 pm, Lex  wrote:
>
>
>
> > Hello all.
>
> > I'd like to ask the question about the approaches normally used to
> > manage memory in GWT applications. Till the moment I wrote this post,
> > I read most of discussions on the group related to this topik, but
> > unfortunately have no answer on my question.
>
> > What I'm actually looking for: is some guide or list of rules "What is
> > necessary to be done in GWT code, to prevent GWT application to
> > consume more and more memory". This problem occurs in Internet
> > Explorer.
>
> > Currently we are developing rather big application using GWT. During
> > developement process we had noticed that Internet Explorer consumes
> > memory more and more and never release it. We had also noticed that
> > after we press refresh button in IE, it finally releases most of
> > consumed memory (but not all). We try to check out pages with IE leak
> > detectors, sIEve, and Microsoft JS Memory Leak Detector. Those tools
> > are not detect any memory leaks in our application.
>
> > After this we create very simple test. We create SimplePanelwidget,
> > and put some FlexTable on it. After this we put in this flex table
> > different widgets (Buttons, checkboxes, etc.). After we add
> > SimplePanel to the rootPanel, and remove it from root panel. Do this
> > several times (using timer). After each cycle (add, remove SimplePanel
> > from RootPanel) some amount of memory ~200 KB is not released.
>
> > So my questions are following:
> > -  Does the situation when IE is not released all memory it consumes
> > is know issue or not?
> > -  Does anybody know what may be done to reduce or remove at all
> > memory leaking?
> > -  Does anybody have URL to some guides of memory management in GWT
> > applications?
>
> > Any help will be highly appreciated- Hide quoted text -
>
> - Show quoted text -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: How to render a list(ul li) by gwt widget ?

2009-01-16 Thread luisfpg

Create a class like this:

public class ULPanel extends ComplexPanel {

private UListElement list;

public BulletPanel() {
list = Document.get().createULElement();
setElement(list);
}

@Override
public void add(Widget child) {
Element li = Document.get().createLIElement().cast();
list.appendChild(li);
super.add(child, li);
}
}
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



pendingSrc problem of Image object on IE 7.0

2009-01-16 Thread ship

hi,
In a gwt web application, I am showing a user selected image through
FileUpload class , this image is showing on IE 6.0 browser but not on
the IE 7.0 , when i see img element in the alert box it display this
text:



how solve this PENDINGSRC problem in Image object.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Need help with client server auth

2009-01-16 Thread Mikhail M
Need help!

I have an architecture described below

1) Client application
2) Server application

Client and server applications hasn't dependencies and could be set on
different servers.
I have the same Object model using in both application.

Client and server are using rpc to communicate.

In server application I'm using Spring
(org.springframework.web.servlet.DispatcherServlet)
In client application - GWT

It works perfect but it isn't secure. So now I need to add auth to my client
application.
Users could have different roles, that's why they could call only allowed
remote procedures.
Of course it should be checked on server side.

I need some mechanism for detection users on server side. I could't find any
suitable
solution for my application architecture. I think should be any transparent
mechanism for my
architecture.


Do you have any ideas?

My idea is to add to every rpc call any parameter - session identifier. This
identifier
set to any user if auth was correct. This session id stored in data base for
example and
cleared after some times if user was inactive.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: GWT for SOA development

2009-01-16 Thread Paranoid Android

Thank you. I'm convincing myself that this could be the possible best
solution.
I also looked at the architecture of some "white label social
networking platforms" and portals like Elgg, LinkedIn, Liferay etc..
and it seems that the architecture i've described in the previous post
could be both robust and flexible enought for  my solution.
Using GWT I can develop an high quality interface, higher than a JSP
based from my poit of view, also moving some complexity and computing
overhead to the client.
With the Spring framework I've an ascertained and robust backbone for
implementing services and managing data with Hibernate in a simpler
and managed way.
Besides that, I can integrate some messaging system, maybe based on
ActiveMQ and thanks to message driven beans provided by Spring, if
such need will arise in the future or in the more detailed design
phases.
In this way I can concetrate, in the first design phases, to other
concers more related to the "social aspect" of the platform (i.e.
sociability design, data portability etc) than to spend a lot of time
developing some kind of "more advanced message-based architecture"
using ESB like ServiceMix.
I've only one concern: scalability.
How does this solution conciliate with scalability issues. Is this
architecture scalable? Can this architecture support the goals of my
project? What do you think?

On Jan 15, 5:35 pm, gregor  wrote:
> > If, for example, I've an application with a rich client interface
> > (e.g. builded using gwt) that interacts with, let's say, with a
> > Session Facade..(ejb, spring, or whatever).
> > My Model is composed of services and a typical persistence layer...
> > now hypothesize that everything is well done, i.e. services reflects a
> > business decomposition etc..etc...
> > Isn't this a good solution? Is this SOA? Is this MVC?
>
> I think what you are describing here is an industrial strength Java EE
> + GWT architecture for a system that is fully capable of
> *participating* in an SOA since all the business services (EJB/Spring
> based, whatever) can be exposed in multiple ways to third party
> systems as required, including an ESB supporting an SOA environment.
> An application server like JBoss, for instance, has a plethora of
> tools to help you do this (including it's own ESB as it happens), and
> I think Spring is the same.
>
> MVC is another matter, and IMO it is another buzz term that means all
> sorts of things to different people. MVC was originally invented
> during the Apple Lisa project (the first real WIMP framework) in the
> early 1980's I believe, and I think it was implemented in Smalltalk,
> one of the first "proper" OO languages, which was specifically
> designed to support MVC. Struts is most definitely MVC:
> JSP==View;Action==Controller;Bean==Model etc. But it has to be that
> way to run the cycles of pages in the application.
>
> However in GUI programming environments the role of Controller becomes
> moot, or confused. Swing, for example, is often accused of not being
> "true MVC" because there is no real enforcement or even encouragement
> to cleanly separate a View (i.e. a widget) from a Controller, whatever
> that actually means in the context of a client GUI.
>
> For a GWT example, suppose you have a Tree, you select an item from it
> and you want to display some details about that item in second panel.
> You might have the widget containing the tree implement
> SourcesChangeEvents, and the display panel implement ChangeListener,
> so the display panel is notified when user selects a Tree item.
> DisplayPanel has its onChange(Widget sender) method called, retrieves
> the item identifier from the sender (the Tree) and calls an
> asynchronous RPC service to get the details. RPC servlet calls, say, a
> Session EJB to fetch the Model object concerned, then returns it to
> DisplayPanel callback onSuccess(object result) method, from whence
> DisplayPanel can populate its fields.
>
> As you can see the "Controller" element is split up all over the place
> because what you have here is a distributed n-tier architecture with
> an AJAX UI, and, unlike Struts, it doesn't fit neatly into pure MVC.
> The same sort of thing happens with Swing/SWT. In the Apple Lisa days,
> I think it was assumed an application would either run pretty much all
> on a server to a dumb client or alternatively pretty much all on the
> client just accessing maybe a database sever, so the original MVC
> didn't really cater for all this.
>
> This is not to say that you cannot implement pure MVC in a GWT client
> (I think there are projects around that directly support this) but it
> can take extra effort that may not really be worth it. One case where
> true MVC does earn its dinner is where you have a complex model
> (something like a work flow process for example) which supports
> multiple views, all of which might update it and all of which need
> notifying of changes to it. In this case the Views should interact
> with the model via a Co

Re: GWT applications memory management

2009-01-16 Thread buz...@gmail.com

Hello Alexey,

Unfortunately this is a typical situation in large GWT application
which uses a lot of custom Widgets and DOM/native code.

We have found no tooling which would efficiently show us the exact
places of memory leaks and the only approach left is to cut you
application into two halves and see how the memory behaves.

We have succeeded in reducing the memory leak by carefully analyzing
the code and unlinking custom event listeners and object hierarchies
by overriding onUnload() methods of custom widgets. Splitting your
application into several and providing hard navigation by changing
window.url from time to time, instead of relying on GWT History
mechanism also helps.

Memory leak situation is a lot better in Firefox and Opera, but Chrome
went further by providing separate memory space for each tab, thus it
guarantees that if you close the tab everything is "garbage
collected", because process is killed. I guess Google took the only
right way to solve the problem :)

I hope it will help you to deal with your problems.

Dmitry

On Jan 14, 4:00 pm, Lex  wrote:
> Hello all.
>
> I'd like to ask the question about the approaches normally used to
> manage memory in GWT applications. Till the moment I wrote this post,
> I read most of discussions on the group related to this topik, but
> unfortunately have no answer on my question.
>
> What I'm actually looking for: is some guide or list of rules "What is
> necessary to be done in GWT code, to prevent GWT application to
> consume more and more memory". This problem occurs in Internet
> Explorer.
>
> Currently we are developing rather big application using GWT. During
> developement process we had noticed that Internet Explorer consumes
> memory more and more and never release it. We had also noticed that
> after we press refresh button in IE, it finally releases most of
> consumed memory (but not all). We try to check out pages with IE leak
> detectors, sIEve, and Microsoft JS Memory Leak Detector. Those tools
> are not detect any memory leaks in our application.
>
> After this we create very simple test. We create SimplePanelwidget,
> and put some FlexTable on it. After this we put in this flex table
> different widgets (Buttons, checkboxes, etc.). After we add
> SimplePanel to the rootPanel, and remove it from root panel. Do this
> several times (using timer). After each cycle (add, remove SimplePanel
> from RootPanel) some amount of memory ~200 KB is not released.
>
> So my questions are following:
> -  Does the situation when IE is not released all memory it consumes
> is know issue or not?
> -  Does anybody know what may be done to reduce or remove at all
> memory leaking?
> -  Does anybody have URL to some guides of memory management in GWT
> applications?
>
> Any help will be highly appreciated
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Best way to listen for events using com.google.gwt.dom.client.Element n GWT 1.5

2009-01-16 Thread step3...@yahoo.fr

Hello,

I have the same problem : we build the page on the server so we have
to use DOM static methods DOM.setEventListener to associate a listener
directly to a DOM element.
I think its important not to depreciate this method in 1.6 !

Thanks

On 14 jan, 22:18, Tommaso  wrote:
> To be clear: for SEO/Speed reasons we would like to have as much of
> the page built on the server side as possible. I'd like to be able to
> retrieve items from the page using the GWT 1.5 paradigm and associate
> events to them. So for example, I'd want to be able to set an event on
> a LinkElement and not just things wrappable by a Label.
>
> -tom
>
> On Jan 14, 9:04 am, Tommaso  wrote:
>
> > I'm working on a project that recently upgraded to GWT 1.5. The API
> > includes a whole new dom package for html elements which descend from
> > com.google.gwt.dom.client.Element. My question is: once I've retrieved
> > a (for example) DivElement what is the recommended way for attaching
> > events to it? I see too main options:
>
> > wrap it with a Label:
>
> > Element element = Document.get().getElementById(("colorpicker3"))
> > Label spanLabel = Label.wrap(element);
> > spanLabel.addClickListener(new ClickListener() ...
>
> > or Cast it to the old type Element so you can use the DOM static
> > methods on it:
>
> > DOM.setEventListener((com.google.gwt.user.client.Element) element.cast
> > ()).
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



How to show our widget in new window

2009-01-16 Thread ramesh chiluveri

Hai All,

I have requirement like , i want to show my popup panel in a new
window when application loads.

is there any way to show our widgets in a new window.

i think we have window.open(url,name,features) method. but it is not
useful in this case.

Thank u
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Problem layout with html + gwt

2009-01-16 Thread bond

Hi,
I've a problem with a new example that I've made.
In this example I've the main.html as this:









Beautiful Day









Beautiful Day




Tristique porta

Fusce porta pede nec eros. Maecenas ipsum sem, 
interdum non,
aliquam vitae, interdum nec, metus. Maecenas ornare lobortis risus.


















Porttitor posuere
Jun 13, 2006 by Vulputate

In hac habitasse platea dictumst. Duis porttitor. 
Sed vulputate
elementum nisl. Vivamus et mi at arcu mattis iaculis. Nullam posuere
tristique tortor. In bibendum. Aenean ornare, nunc eget pretium porttitor, sem est pretium
leo, non euismod nulla dui non diam. Pellentesque dictum faucibus leo.
Vestibulum ac ante. Sed in est.

Sed sodales nisl sit amet augue. Donec 
ultrices,
augue ullamcorper posuere laoreet, turpis massa tristique justo, sed
egestas metus magna sed purus.

Aliquam risus justo, mollis in, laoreet a, 
consectetuer nec,
risus. Nunc blandit sodales lacus. Nam luctus semper mi. In eu diam.

Fusce porta pede nec eros. Maecenas ipsum sem, 
interdum non,
aliquam vitae, interdum nec, metus. Maecenas ornare lobortis risus.
Etiam placerat varius mauris. Maecenas viverra. Sed feugiat. Donec
mattis quam aliquam risus. Nulla non felis
sollicitudin urna blandit egestas. Integer et libero varius pede
tristique ultricies. Cras nisl. Proin quis massa semper felis euismod
ultricies.


Adipiscing
Jun 11, 2006 by Laoreet

Aliquam risus justo, mollis in, laoreet a, 
consectetuer nec,
risus. Nunc blandit sodales lacus. Nam luctus semper mi. In eu diam.
Phasellus rutrum elit vel nisi. Cras mauris nulla, egestas quis,
cursus at, venenatis ac, ante. Fusce accumsan enim et arcu. Duis
sagittis libero at lacus. Suspendisse lacinia nulla eget urna.


Tristique
Aenean
Pretium


In hac habitasse platea dictumst. Duis porttitor. 
Sed vulputate
elementum nisl. Vivamus et mi at arcu mattis iaculis. Nullam posuere
tristique tortor. In bibendum. Aenean ornare, nunc eget pretium
porttitor, sem est pretium leo, non euismod nulla dui non diam.
Pellentesque dictum faucibus leo. Vestibulum ac ante. Sed in est. Sed
sodales nisl sit amet augue. Donec ultrices, augue ullamcorper posuere
laoreet, turpis massa tristique justo, sed egestas metus magna sed
purus. Fusce eleifend, dui ut posuere auctor, justo elit posuere
sapien, at blandit enim quam fringilla mi.

Interdum
May 24, 2006 by Lectus

Praesent nisi sem, bibendum in, ultrices sit amet, 
euismod sit
amet, dui. Donec varius tincidunt nisi. Ut ut sapien. Integer porta.
Fusce nibh. Curabitur pellentesque, lectus at volutpat interdum, sem justo placerat elit, eget
feugiat est leo tempor quam. Ut quis neque convallis magna consequat
molestie. Nullam semper massa eget ligula. Cum sociis natoque
penatibus et magnis dis parturient montes, nascetur ridiculus mus.
Pellentesque a nibh quis nunc volutpat aliquam

margin-bottom: 12px;
font: normal 1.1em "Lucida Sans Unicode",serif;
background: url(img/quote.gif) no-repeat;
padding-left: 28px;
color: #555;

Eget feugiat est leo tempor quam. Ut quis neque 
convallis magna
consequat molestie.





Something

pellentesque
sociis natoque
semper
convallis


Another thing

consequat 
molestie
sem justo
semper
sociis natoque


Third and last

sociis natoque
magna sed 
purus
tincidunt
consequat 
molestie








© 2006 Website.com.
Valid http://jigsaw.w3.org/css-validator/check/referer";>CSS & http://validator.w3.org/check?uri=referer";>XHTML. Template design by http://templates.arcsin.se";>Arcsin









and in the MainEntryPoint the code is:
public void onModuleLoad() {
 RootPanel.get("container")