Problem with making serializable Collections

2009-06-25 Thread joe young
Hi all, Having problem with Parsing HashMap from RPC, here is the error message: Analyzing 'com.sun.dmt.admin.client.login.LoginService' for serializable types Analyzing methods: public abstract com.sun.dmt.admin.client.domain.AdminPrivilege userIsValid

Re: ResourceBundle for client??

2009-03-18 Thread joe young
YES~!! It is exactly what I'm looking for!! Thank you so much Danny~ On Mar 18, 8:03 am, Danny Schimke schimk...@googlemail.com wrote: Is the Constants- Interface of GWT the thing, what you are searching for? With this you can read the values from a properties- file -Danny 2009/3/17 joe

Stupid Question on Client side Session

2009-03-17 Thread joe young
I would like to store some data on client side so that it can be access easily everywhere on the client side code (at any level and any widget), data like what data source, application state (demo or production) Without GWT, usually I put it on session, however now the session access is in

Re: Stupid Question on Client side Session

2009-03-17 Thread joe young
is a class we've defined to store all of our client-side state. Lothar Kimmeringer wrote: joe young schrieb: So what is the best suggestion to store those data, is there something like session in client side? You can define variables static. This has some effects in hosted mode if you open more

ResourceBundle for client??

2009-03-17 Thread joe young
Can client code able to use java.util.ResourceBundle? I have some information in a propertie file and I don't want to get it via RPC, is there an easy way to do it? Right now when I use java.util.ResourceBundle in client side code, it gives me this error~ [ERROR] Hint: Check the inheritance

How to uncheck a treenode of a tree

2009-03-10 Thread joe young
I have a Tree(com.gwtext.client.widgets.tree) with some checkable tree node (where setChecked(true); ) I would like to uncheck other checkboxes when one if it is onchecked, so that only one checked box at one time. My question is how can I uncheck a checkbox in public void

How to wait for return value from RPC before Tree node is moved

2009-02-27 Thread joe young
I'm trying to resort my nodes of the tree and save the new sorting into the database. I want to make sure the save is successful before I move the node, o/w it will display alert. public boolean doBeforeMoveNode(Tree tree, TreeNode node, TreeNode oldParent, TreeNode newParent,

Re: How to wait for return value from RPC before Tree node is moved

2009-02-27 Thread joe young
Hi Jason, Thanks for you quick reply~ Your solution works in some sense, but the problem I have the move node part is control by the TreePanelListener Adapter(): simpleNTreePanel.addListener(new TreePanelListenerAdapter () { public boolean doBeforeMoveNode(Tree

How to Debug/Trace client side code when deploying Tomcat

2009-02-25 Thread joe young
I'm using NetBeans to develope my GWT applicaiotn. Everything works fine when i deploy to gwt-shell-hosted. However when I deploy to tomcat 6 with netbeans, many little problems occur. Such as. I have a TreePanel that display all the regions. When the TreePanel first create, it will call RPC

Do something after RPC call

2009-01-30 Thread joe young
Hi, I always get into this problem, it will be great if someone tell me how to do it in a popular way. Sometimes I always want to do something after RPC calls and it came back with data. In this case, i want to save a new node first, then I want to load the node information to a form. In

Re: Do something after RPC call

2009-01-30 Thread joe young
Because loadGeoNodeForm() is the function of GeoNodeController, so that's why AsyncCallback.onSuccess() can't call it, all I want is to call that function AFTER the RPC is done, how do I do that? public class GeoNodeController { public void addNewNode(String theNewNodeParentId){

Re: How to pop up an YES/NO dialog before moving node in Tree?

2009-01-29 Thread joe young
Petersen ispet...@gmail.com wrote: I haven't used confirmation dialogs in GWT before--I've only used them in straight Javascript--so take the following with a grain of salt. On Wed, Jan 28, 2009 at 10:29 AM, joe young keven.c...@gmail.com wrote: I do the following: public boolean

How to pop up an YES/NO dialog before moving node in Tree?

2009-01-28 Thread joe young
Hi, I would like to have a pop up before moving node asking are you sure you want to move the node? Yes/No. I do the following: public boolean doBeforeMoveNode(Tree tree, TreeNode node, TreeNode oldParent, TreeNode newParent, int index) { GWT.log(treePanel.onMoveNode,

Calling RPC from gwt-shell-hosted on netbeans

2009-01-09 Thread joe young
I'm having trouble calling RPC in shell hosted mode. Currently I have a simple login page that use rpc to validate the user/ password. And when I tried running with shell hosted mode, it always give me an onFailure() Error ERROR final AsyncCallback callback = new AsyncCallback() {

Re: Calling RPC from gwt-shell-hosted on netbeans

2009-01-09 Thread joe young
in the classpath of the hosted browser ? If you use the Tomcat instance of the hosted browser, that should be enough. 2009/1/9 joe young keven.c...@gmail.com I'm having trouble calling RPC in shell hosted mode. Currently I have a simple login page that use rpc to validate the user/ password

Re: Calling RPC from gwt-shell-hosted on netbeans

2009-01-09 Thread joe young
, Jan 10, 2009 at 12:47 AM, joe young keven.c...@gmail.com wrote: where is the classpath of the hosted browser? there is no classes in /tomcat directory, do i need to copy the classes to /tomcat//webapps/ROOT/WEB-INF/classes/  ?? On Jan 9, 11:36 am, olivier FRESSE olivier.fre...@gmail.com