RequestFactory service stub

2010-11-21 Thread hezjing
Hi

May I know if the interface defined in the RequestFactory service stub like
EmployeeRequest must be corresponding to a method defined in the entity?

Imagine that I already have a JPA entity class like the following, which has
a named query instead of a findAllEmployees()

@Entity
@NamedQuery(name = "findAllEmployees", query = "SELECT e FROM Employee e")
public class Employee {
...
/* public static List findAllEmployees() { ... } */
}

Is it true that the EmployeeRequest cannot call and execute the named query
without the findAllEmployees()?


-- 

Hez

-- 
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-tool...@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.



Which package to keep custom generator

2010-11-11 Thread hezjing
Hi

Where should the custom generator reside in? client package or rebind
package?

In http://francisshanahan.com/index.php/2010/a-simple-gwt-generator-example/,
it explained that it should reside in server package.
However in
http://timepedia.blogspot.com/2007/06/gwt-demystified-generators-part-3-meet.html,
it is in rebind package.

Which is the recommended package to keep our custom generator?

Also, I'm curious why there is no Google's GWT documentation or tutorial
about the generator?


-- 

Hez

-- 
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-tool...@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.



Importing hellomvp

2010-11-07 Thread hezjing
Hi

I have downloaded Tutorial-hellomvp-2.1.zip, but there is no Eclipse project
metadata (the .project and .classpath files) in the archive.

May I know how to import and run hellomvp into Eclipse?


I think it would be very useful to include the Eclipse project metadata into
the archive, just like the Tutorial-Contacts.zip :-)


Thank you!

-- 

Hez

-- 
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-tool...@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.



GWT 2.1 application failed to load in Chrome, but not in IE7

2010-11-04 Thread hezjing
Hi

I have a very simple entry point like the following:

public class Dummy implements EntryPoint {

@Override
public void onModuleLoad() {
RootPanel panel = RootPanel.get();
panel.add(new Label("aaa"));
}
}


When run in development mode, the application is loaded successfully in IE7.
However, it failed to load in Chrome 7.0.x with the following exception:

Exception in thread "Thread-0" java.lang.NullPointerException
at
com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91)
at
com.google.gwt.core.client.JavaScriptException.getName0(JavaScriptException.java)
at
com.google.gwt.core.client.JavaScriptException.getName(JavaScriptException.java:64)
at
com.google.gwt.core.client.JavaScriptException.init(JavaScriptException.java:200)
at
com.google.gwt.core.client.JavaScriptException.getMessage(JavaScriptException.java:183)
at
com.google.gwt.dev.util.log.AbstractTreeLogger.getStackTraceAsString(AbstractTreeLogger.java:70)
at
com.google.gwt.dev.shell.remoteui.ViewerServiceClient.generateLogData(ViewerServiceClient.java:293)
at
com.google.gwt.dev.shell.remoteui.ViewerServiceClient.addLogEntry(ViewerServiceClient.java:123)
at
com.google.gwt.dev.shell.remoteui.ViewerServiceTreeLogger.sendEntry(ViewerServiceTreeLogger.java:157)
at
com.google.gwt.dev.shell.remoteui.ViewerServiceTreeLogger$PendingLog.send(ViewerServiceTreeLogger.java:72)
at
com.google.gwt.dev.shell.remoteui.ViewerServiceTreeLogger.initLogHandle(ViewerServiceTreeLogger.java:134)
at
com.google.gwt.dev.shell.remoteui.ViewerServiceTreeLogger$1.onDone(ViewerServiceTreeLogger.java:145)
at
com.google.gwt.dev.shell.remoteui.ViewerServiceTreeLogger$1.onDone(ViewerServiceTreeLogger.java:143)
at
com.google.gwt.dev.shell.remoteui.ViewerServiceClient$2.onDone(ViewerServiceClient.java:101)
at
com.google.gwt.dev.shell.remoteui.ViewerServiceClient$2.onDone(ViewerServiceClient.java:99)
at
com.google.gwt.dev.shell.remoteui.MessageTransport$PendingRequest.setResponse(MessageTransport.java:118)
at
com.google.gwt.dev.shell.remoteui.MessageTransport.processServerResponse(MessageTransport.java:416)
at
com.google.gwt.dev.shell.remoteui.MessageTransport.processMessage(MessageTransport.java:391)
at
com.google.gwt.dev.shell.remoteui.MessageTransport.access$300(MessageTransport.java:44)
at
com.google.gwt.dev.shell.remoteui.MessageTransport$3.run(MessageTransport.java:314)
at java.lang.Thread.run(Thread.java:619)


Do you what does this exception means?


-- 

Hez

-- 
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-tool...@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-maven-plugin from Google and Codehaus

2010-11-01 Thread hezjing
I have been trying to learn gwt-maven-plugin and read the documentation
from http://mojo.codehaus.org/gwt-maven-plugin/, last published for
1.3-SNAPSHOT.

Then, I accidentally found this site for gwt-maven-plugin 2.1-SNAPSHOT at
http://people.apache.org/~nicolas/gwt-maven-plugin-2.1/, which seems to be
better one ;-)


On Wed, Oct 27, 2010 at 6:32 PM, Thomas Broyer  wrote:

>
>
> On 27 oct, 08:50, hezjing  wrote:
> > Is there any documentation for Google's gwt-maven-plugin?
>
> As I said "Form the user POV (your, our POV), it works the same as the
> version
> from codehaus."
> In other words, the documentation from codehaus should apply just as
> well to the Google version (and it did for me).
>
> --
> 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-tool...@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.
>
>


-- 

Hez

-- 
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-tool...@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.



gwt-maven-plugin is designed for version 2.1-SNAPSHOT?

2010-10-29 Thread hezjing
Hi

With the release of GWT 2.1, I think we should also update the Maven
repositories to the following?



google-maven-release-repository
Google Maven Release Repository
https://oss.sonatype.org/content/repositories/google-releases

false





google-gwt-repo
http://google-web-toolkit.googlecode.com/svn/2.1.0/gwt/maven




When mvn package, I encounter the following warning and error:

[INFO] [gwt:compile {execution: default}]
[WARNING] You're project declares dependency on gwt-user 2.1.0. This plugin
is designed for version 2.1-SNAPSHOT
[INFO]

[ERROR] FATAL ERROR
[INFO]

[INFO] null
[INFO]

[INFO] Trace
java.lang.NullPointerException
at
org.codehaus.mojo.gwt.AbstractGwtMojo.getClasspath(AbstractGwtMojo.java:220)
at
org.codehaus.mojo.gwt.shell.AbstractGwtShellMojo$JavaCommand.withinScope(AbstractGwtShellMojo.java:284)
at
org.codehaus.mojo.gwt.shell.CompileMojo.compile(CompileMojo.java:186)
at
org.codehaus.mojo.gwt.shell.CompileMojo.doExecute(CompileMojo.java:178)
at
org.codehaus.mojo.gwt.shell.AbstractGwtShellMojo.execute(AbstractGwtShellMojo.java:118)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
at
org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)


Did I missing something here?


-- 

Hez

-- 
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-tool...@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: What Major Companies Use GWT???

2010-10-26 Thread hezjing
Do you know what are the server technologies these companies are using (e.g.
EJB)?


On Tue, Oct 26, 2010 at 11:25 PM, PhilBeaudoin
wrote:

> VMWare uses it in its new Code2Cloud project:
> http://tasktop.com/blog/tasktop/springsource-vmware-code2cloud
>
> Google do use it in many products, in particular adwords. There is a
> question on the topic in Quora, might be a good place to add some
> answers:
> https://www.quora.com/What-web-applications-use-Google-Web-Toolkit-(GWT)
>
>  Philippe
>
> On Oct 26, 6:42 am, Stefan Bachert  wrote:
> > Hi,
> >
> > On 25 Okt., 11:06, Sir Codealot  wrote:
> >
> > > What major companies are already using GWT?  I'm a little surprised
> > > that this sort of info is not available and obvious, front and center,
> > > on the GWT FAQs, but I can't find it.
> >
> > I agree the business position of GWT is to weak in spite of its
> > strength.
> > Google itself does not earn with GWT so the incentives are weak.
> >
> > Another point is, there are a lot of GUI technology out there. It is
> > very hard for companies to decide
> >
> > JSP, JSF, Iceface, ASF, Wicket, Qt, jquery,
> > Flash, Flex, SilverLight, JX,
> > GWT with smartClient, GWT with GXT, GWT with Mosaic, GWT pure,
> > CaptianCasa,
> > Vaadin
> > Swing, SWT, AWT
> > Eclipse RCP, Eclipse RAP,
> > quoxdoo
> > JAXX,
> > XUL.
> >
> > I am surely missed the most.
> > Some of them are doing just half the way.
> >
> > I know companies that are using GWT in some way
> > - RedHat
> > - IBM, Lombardi
> > - Google (quite sure)
> >
> > However, sometimes a tool uses GWT but this is not really published.
> > XWiki, Magnolia CMS for example
> >
> > Stefan Bacherthttp://gwtworld.de
>
> --
> 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-tool...@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.
>
>


-- 

Hez

-- 
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-tool...@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-maven-plugin from Google and Codehaus

2010-10-26 Thread hezjing
Is there any documentation for Google's gwt-maven-plugin?


On Tue, Oct 26, 2010 at 4:58 PM, Thomas Broyer  wrote:

>
> On 26 oct, 07:28, hezjing  wrote:
> > Hi
> >
> > GWT 2.1 is using gwt-maven-plugin 1.3.2.google, and it is maintain in
> GWT's
> > plugin repository.
> >
> > What is the difference between this plugin and the gwt-maven-plugin 1.2
> > fromhttp://mojo.codehaus.org/gwt-maven-plugin/
> >
> > Where can I find the documentation for gwt-maven-plugin 1.3.2.google?
>
> Form the user POV (your, our POV), it works the same as the version
> from codehaus. I believe Google modified it to make it work with
> AppEngine.
> They said that they'll open-source their changes and contribute them
> back to codehaus. On the other hand, the codehaus plugin is moving in
> another direction (one version of the plugin for a given version of
> GWT, i.e. gwt-maven-plugin 2.1 for GWT 2.1, then gwt-maven-plugin 2.2
> for GWT 2.2, etc.)
>
> --
> 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-tool...@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.
>
>


-- 

Hez

-- 
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-tool...@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.



gwt-maven-plugin from Google and Codehaus

2010-10-25 Thread hezjing
Hi

GWT 2.1 is using gwt-maven-plugin 1.3.2.google, and it is maintain in GWT's
plugin repository.

What is the difference between this plugin and the gwt-maven-plugin 1.2
from http://mojo.codehaus.org/gwt-maven-plugin/

Where can I find the documentation for gwt-maven-plugin 1.3.2.google?


Thank you!


-- 

Hez

-- 
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-tool...@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.



Cannot specify different version of App Engine SDK

2010-09-30 Thread hezjing
Hi

It seem like the Google plugin doesn't allow me to select version of App
Engine SDK for a Maven project.

I'm following the instructions described at
http://googlewebtoolkit.blogspot.com/2010/08/how-to-use-google-plugin-for-eclipse.html
to enable Google Plugin for Eclipse to work with an existing Maven project.

Here are the steps I performed:

1. Build the GWT source code:
>cd C:\gwt\trunk
>ant

2. Import existing Maven project:
Select File | Import | Maven | Existing Maven Projects and
set the root directory to C:\gwt\trunk\build\out\samples\Expenses

3. Select version of the App Engine SDK:
Open the properties of the expenses project,
Under Google | App Engine,
Check 'Use Google App Engine',
Select 'Use default SDK (App Engine 1.3.4 - 1.3.4) instead of 'Use specific
SDK (C:\...\.m2\repository\com\google\appengine - unknown version)'.
Click OK.


The problem is when I open the Google App Engine settings again (step 3),
the 'Use specific SDK' is still selected!


-- 

Hez

-- 
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-tool...@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 import Expenses project into Eclipse?

2010-09-28 Thread hezjing
I got a little bit further with the following steps:

1. Build the GWT source code:
>cd C:\gwt\trunk
>ant

2. Install the latest GWT JARs into local Maven repository:
>mvn install:install-file -DgroupId=com.google.gwt -DartifactId=gwt-servlet
^
-Dversion=2.1-SNAPSHOT -Dpackaging=jar
-Dfile=C:\gwt\trunk\build\staging\gwt-0.0.0\gwt-servlet.jar
>mvn install:install-file -DgroupId=com.google.gwt -DartifactId=gwt-user ^
-Dversion=2.1-SNAPSHOT -Dpackaging=jar
-Dfile=C:\gwt\trunk\build\staging\gwt-0.0.0\gwt-user.jar

3. Import C:\gwt\trunk\samples\expenses to Eclipse as an existing Maven
project.


Now I'm able to browse the project without any error.


How should I run the application from Eclipse? I tried:

1. Project -> Properties -> Google -> App Engine Settings ...
Check 'Use Google App Engine'
Use specific SDK: 'C:\Documents and
Settings\hezjing\.m2\repository\com\google\appengine - unknown version'

2. Project -> Properties -> Google -> Web Toolkit
Check 'Use Google Web Toolkit'
Configure and use the SDK at C:\gwt\trunk\build\staging\gwt-0.0.0

3. Project -> Properties -> Google -> Web Application
Check 'The project has a WAR directory'
WAR directory: src/main/webapp
Uncheck 'Launch and deploy from this directory'

With the above steps, I got an error that says:
The App Engine SDK 'C:\Documents and
Settings\cpt2t2o\.m2\repository\com\google\appengine' on the project's build
path is not valid


I also failed to run the application from command line using gae:run:

C:\gwt\trunk\samples\expenses>mvn gae:run
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'gae'.
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] The plugin 'org.codehaus.mojo:google-app-engine-maven-plugin' does
not exist or no valid version could be found


I definitely need more help from you :-)


On Tue, Sep 28, 2010 at 3:16 AM, Ed M  wrote:

> where are you supposed to run the 'mvn package' command from?
>
> If the answer is the command prompt. I'm assuming that this means one
> has to actually download maven, not just the eclipse plugin
>
> --
> 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-tool...@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.
>
>


-- 

Hez

-- 
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-tool...@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 import Expenses project into Eclipse?

2010-09-27 Thread hezjing
Hi

May I know how to import the GWT 2.1's expenses project into Eclipse?

I tried to generate .classpath or .project as described in
trunk\samples\expenses\README-MAVEN.txt,
but there is no 'eclipse.generate' goal defined in build.xml:

C:\gwt\trunk\samples\expenses>ant eclipse.generate
Buildfile: C:\gwt\trunk\samples\expenses\build.xml

BUILD FAILED
Target "eclipse.generate" does not exist in the project "expenses".


-- 

Hez

-- 
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-tool...@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: HTTP query string when tested in development mode

2010-09-26 Thread hezjing
Thanks to Philippe,

The solution is simply rename the hosted page *.html to *.jsp

See
https://groups.google.com/group/google-appengine-java/browse_thread/thread/46240ee12dc856be
<https://groups.google.com/group/google-appengine-java/browse_thread/thread/46240ee12dc856be>

On Tue, Sep 21, 2010 at 2:07 PM, hezjing  wrote:

> Hi
>
> Apparently it seems that it is the Google App Engine that is causing this
> problem.
>
> The servlet filter is able to obtain the query string when I tested in GWT
> application without the App Engine settings. I'm also new to App Engine, do
> you know why the servlet filter is not working with App Engine?
>
>
>
> On Sun, Sep 19, 2010 at 4:30 PM, hezjing  wrote:
>
>> Hi rjcarr
>>
>> The query string is still null after I set to
>> ...Dummy.html?debug=2¶m=2&gwt.codesvr=127.0.0.1:9997<http://127.0.0.1:/Property123.html?gwt.codesvr=127.0.0.1:9997>
>> .
>>
>> The same problem occurs with the default development mode URL like
>> http://127.0.0.1:/Dummy.html?gwt.codesvr=127.0.0.1:9997,
>> I'm just thinking could this because of the browser plugin that causes
>> this problem?
>>
>>
>>
>> On Sun, Sep 19, 2010 at 10:10 AM, rjcarr  wrote:
>>
>>> From what you've posted it doesn't look like a valid URL.  A query
>>> string, as far as I know, is a series of key=value pairs separated by
>>> &.  You posted this:
>>>
>>> http://127.0.0.1:/Dummy.html?debug¶m2&gwt.codesvr=127.0.0.1:9997
>>>
>>> Which doesn't look correctly formed.  Try this:
>>>
>>>
>>> http://127.0.0.1:/Dummy.html?debug=2¶m=2&gwt.codesvr=127.0.0.1:9997
>>>
>>> --
>>> 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.
>>>
>>>
>>
>>
>> --
>>
>> Hez
>>
>
>
>
> --
>
> Hez
>



-- 

Hez

-- 
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-tool...@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: HTTP query string when tested in development mode

2010-09-20 Thread hezjing
Hi

Apparently it seems that it is the Google App Engine that is causing this
problem.

The servlet filter is able to obtain the query string when I tested in GWT
application without the App Engine settings. I'm also new to App Engine, do
you know why the servlet filter is not working with App Engine?



On Sun, Sep 19, 2010 at 4:30 PM, hezjing  wrote:

> Hi rjcarr
>
> The query string is still null after I set to
> ...Dummy.html?debug=2¶m=2&gwt.codesvr=127.0.0.1:9997<http://127.0.0.1:/Property123.html?gwt.codesvr=127.0.0.1:9997>
> .
>
> The same problem occurs with the default development mode URL like
> http://127.0.0.1:/Dummy.html?gwt.codesvr=127.0.0.1:9997,
> I'm just thinking could this because of the browser plugin that causes this
> problem?
>
>
>
> On Sun, Sep 19, 2010 at 10:10 AM, rjcarr  wrote:
>
>> From what you've posted it doesn't look like a valid URL.  A query
>> string, as far as I know, is a series of key=value pairs separated by
>> &.  You posted this:
>>
>> http://127.0.0.1:/Dummy.html?debug¶m2&gwt.codesvr=127.0.0.1:9997
>>
>> Which doesn't look correctly formed.  Try this:
>>
>>
>> http://127.0.0.1:/Dummy.html?debug=2¶m=2&gwt.codesvr=127.0.0.1:9997
>>
>> --
>> 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-tool...@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.
>>
>>
>
>
> --
>
> Hez
>



-- 

Hez

-- 
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-tool...@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: Error compiling GWT source code from trunk

2010-09-19 Thread hezjing
Hi Ashton

I have successfully compiled the GWT source codes from the trunk.

1) Install a Windows standalone command line Subversion package
http://www.sliksvn.com/en/download/

2) Check out the GWT tools:
cd C:\gwt
svn checkout http://google-web-toolkit.googlecode.com/svn/tools/ tools

3) Check out the GWT source:
cd C:\gwt
svn checkout http://google-web-toolkit.googlecode.com/svn/trunk/ trunk

4) Set an environment variable that contains the full path to the tools
directory
set GWT_TOOLS=C:\gwt\tools

5) Compile the GWT source codes:
cd C:\gwt\trunk
ant


Hopefully this is useful to you!


On Mon, Sep 20, 2010 at 8:24 AM, Thomas Broyer  wrote:

>
>
> On Sep 19, 3:13 pm, Ashton Thomas  wrote:
> > Anyone know the answer to this?
> >
> > On Sep 14, 12:34 am, hezjing  wrote:
> >
> > > H ... I think I have already checked-out the full source code from
> trunk
> > > now, but the same compilation error still exist :-(
> >
> > > I must be missing something here, can someone please help?
>
> Could it be a missing "tools" folder?
> http://code.google.com/webtoolkit/makinggwtbetter.html#workingoncode
>
> --
> 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-tool...@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.
>
>


-- 

Hez

-- 
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-tool...@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: HTTP query string when tested in development mode

2010-09-19 Thread hezjing
Hi rjcarr

The query string is still null after I set to ...Dummy.html?debug=2¶m=2&
gwt.codesvr=127.0.0.1:9997
.

The same problem occurs with the default development mode URL like
http://127.0.0.1:/Dummy.html?gwt.codesvr=127.0.0.1:9997,
I'm just thinking could this because of the browser plugin that causes this
problem?



On Sun, Sep 19, 2010 at 10:10 AM, rjcarr  wrote:

> From what you've posted it doesn't look like a valid URL.  A query
> string, as far as I know, is a series of key=value pairs separated by
> &.  You posted this:
>
> http://127.0.0.1:/Dummy.html?debug¶m2&gwt.codesvr=127.0.0.1:9997
>
> Which doesn't look correctly formed.  Try this:
>
> http://127.0.0.1:/Dummy.html?debug=2¶m=2&gwt.codesvr=127.0.0.1:9997
>
> --
> 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-tool...@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.
>
>


-- 

Hez

-- 
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-tool...@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.



HTTP query string when tested in development mode

2010-09-18 Thread hezjing
Hi

I have the following servlet filter and mapped to the URL pattern /*

public void doFilter(ServletRequest request, ServletResponse response,
FilterChain chain) throws IOException, ServletException {
HttpServletRequest req = (HttpServletRequest) request;
// query is null?
String query = req.getQueryString();
}

When I started the GWT application in development mode:
http://127.0.0.1:/Dummy.html?debug¶m2&gwt.codesvr=127.0.0.1:9997,
the
query string is always empty (null).

Do you know why?


-- 

Hez

-- 
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-tool...@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.



Uninstall Google plugin from Eclipse

2010-09-15 Thread hezjing
Hi

After I uninstall Google App Engine Java SDK 1.3.7 from Eclipse with the
following steps:
Help -> About Eclipse -> Installation Details -> Google App Engine Java SDK
1.3.7 -> Uninstall

I can still see the SDK listed here, Window -> Preferences -> Google -> App
Engine
I think this entry should be removed too?

-- 

Hez

-- 
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-tool...@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: Error compiling GWT source code from trunk

2010-09-13 Thread hezjing
H ... I think I have already checked-out the full source code from trunk
now, but the same compilation error still exist :-(

I must be missing something here, can someone please help?


On Tue, Sep 14, 2010 at 10:54 AM, hezjing  wrote:

> I'm sorry, please ignore this email and there are some missing folders in
> my svn folder :-(
>
>
> On Tue, Sep 14, 2010 at 10:20 AM, hezjing  wrote:
>
>> Hi
>>
>> I have checked out GWT source code from the trunk and encountered the
>> following the error when compiled with Apache Ant 1.8.0:
>>
>>
>> C:\gwt\trunk>ant
>> Buildfile: C:\gwt\trunk\build.xml
>>   [taskdef] Could not load definitions from resource
>> net/sf/antcontrib/antlib.xml. It could not be found.
>>   [taskdef] Could not load definitions from resource emma_ant.properties.
>> It could not be found.
>>
>> build:
>>   [taskdef] Could not load definitions from resource
>> net/sf/antcontrib/antlib.xml. It could not be found.
>>   [taskdef] Could not load definitions from resource emma_ant.properties.
>> It could not be found.
>>
>> dev:
>>   [taskdef] Could not load definitions from resource
>> net/sf/antcontrib/antlib.xml. It could not be found.
>>   [taskdef] Could not load definitions from resource emma_ant.properties.
>> It could not be found.
>>
>> buildtools:
>>   [taskdef] Could not load definitions from resource
>> net/sf/antcontrib/antlib.xml. It could not be found.
>>   [taskdef] Could not load definitions from resource emma_ant.properties.
>> It could not be found.
>>
>> build:
>>   [taskdef] Could not load definitions from resource
>> net/sf/antcontrib/antlib.xml. It could not be found.
>>   [taskdef] Could not load definitions from resource emma_ant.properties.
>> It could not be found.
>>
>> ant-gwt:
>>   [taskdef] Could not load definitions from resource
>> net/sf/antcontrib/antlib.xml. It could not be found.
>>   [taskdef] Could not load definitions from resource emma_ant.properties.
>> It could not be found.
>>
>> compile:
>> [gwt.javac] C:\gwt\trunk\build-tools\ant-gwt\build.xml:11: warning:
>> 'includ
>> eantruntime' was not set, defaulting to build.sysclasspath=last; set to
>> false for repeatable builds
>>
>> build:
>>
>> customchecks:
>>   [taskdef] Could not load definitions from resource
>> net/sf/antcontrib/antlib.xml. It could not be found.
>>   [taskdef] Could not load definitions from resource emma_ant.properties.
>> It could not be found.
>>
>> compile:
>> [gwt.javac] C:\gwt\trunk\build-tools\customchecks\build.xml:8: warning:
>> 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set
>> to false for repeatable builds
>> [gwt.javac] Compiling 2 source files to
>> C:\gwt\trunk\build\out\build-tools\customchecks\bin
>> [gwt.javac]
>> C:\gwt\trunk\build-tools\customchecks\src\com\google\gwt\checkstyle\FieldCheck.java:19:
>> package com.puppycrawl.tools.checkstyle.api does not exist
>> [gwt.javac] import com.puppycrawl.tools.checkstyle.api.DetailAST;
>> [gwt.javac]   ^
>> [gwt.javac]
>> C:\gwt\trunk\build-tools\customchecks\src\com\google\gwt\checkstyle\FieldCheck.java:20:
>> package com.puppycrawl.tools.checkstyle.api does not exist
>> [gwt.javac] import com.puppycrawl.tools.checkstyle.api.TokenTypes;
>> ...
>>
>>
>> Do you have any idea of what could be the problem?
>>
>>
>> --
>>
>> Hez
>>
>
>
>
> --
>
> Hez
>



-- 

Hez

-- 
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-tool...@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: Error compiling GWT source code from trunk

2010-09-13 Thread hezjing
I'm sorry, please ignore this email and there are some missing folders in my
svn folder :-(


On Tue, Sep 14, 2010 at 10:20 AM, hezjing  wrote:

> Hi
>
> I have checked out GWT source code from the trunk and encountered the
> following the error when compiled with Apache Ant 1.8.0:
>
>
> C:\gwt\trunk>ant
> Buildfile: C:\gwt\trunk\build.xml
>   [taskdef] Could not load definitions from resource
> net/sf/antcontrib/antlib.xml. It could not be found.
>   [taskdef] Could not load definitions from resource emma_ant.properties.
> It could not be found.
>
> build:
>   [taskdef] Could not load definitions from resource
> net/sf/antcontrib/antlib.xml. It could not be found.
>   [taskdef] Could not load definitions from resource emma_ant.properties.
> It could not be found.
>
> dev:
>   [taskdef] Could not load definitions from resource
> net/sf/antcontrib/antlib.xml. It could not be found.
>   [taskdef] Could not load definitions from resource emma_ant.properties.
> It could not be found.
>
> buildtools:
>   [taskdef] Could not load definitions from resource
> net/sf/antcontrib/antlib.xml. It could not be found.
>   [taskdef] Could not load definitions from resource emma_ant.properties.
> It could not be found.
>
> build:
>   [taskdef] Could not load definitions from resource
> net/sf/antcontrib/antlib.xml. It could not be found.
>   [taskdef] Could not load definitions from resource emma_ant.properties.
> It could not be found.
>
> ant-gwt:
>   [taskdef] Could not load definitions from resource
> net/sf/antcontrib/antlib.xml. It could not be found.
>   [taskdef] Could not load definitions from resource emma_ant.properties.
> It could not be found.
>
> compile:
> [gwt.javac] C:\gwt\trunk\build-tools\ant-gwt\build.xml:11: warning: 'includ
> eantruntime' was not set, defaulting to build.sysclasspath=last; set to
> false for repeatable builds
>
> build:
>
> customchecks:
>   [taskdef] Could not load definitions from resource
> net/sf/antcontrib/antlib.xml. It could not be found.
>   [taskdef] Could not load definitions from resource emma_ant.properties.
> It could not be found.
>
> compile:
> [gwt.javac] C:\gwt\trunk\build-tools\customchecks\build.xml:8: warning:
> 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set
> to false for repeatable builds
> [gwt.javac] Compiling 2 source files to
> C:\gwt\trunk\build\out\build-tools\customchecks\bin
> [gwt.javac]
> C:\gwt\trunk\build-tools\customchecks\src\com\google\gwt\checkstyle\FieldCheck.java:19:
> package com.puppycrawl.tools.checkstyle.api does not exist
> [gwt.javac] import com.puppycrawl.tools.checkstyle.api.DetailAST;
> [gwt.javac]   ^
> [gwt.javac]
> C:\gwt\trunk\build-tools\customchecks\src\com\google\gwt\checkstyle\FieldCheck.java:20:
> package com.puppycrawl.tools.checkstyle.api does not exist
> [gwt.javac] import com.puppycrawl.tools.checkstyle.api.TokenTypes;
> ...
>
>
> Do you have any idea of what could be the problem?
>
>
> --
>
> Hez
>



-- 

Hez

-- 
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-tool...@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.



Error compiling GWT source code from trunk

2010-09-13 Thread hezjing
Hi

I have checked out GWT source code from the trunk and encountered the
following the error when compiled with Apache Ant 1.8.0:


C:\gwt\trunk>ant
Buildfile: C:\gwt\trunk\build.xml
  [taskdef] Could not load definitions from resource
net/sf/antcontrib/antlib.xml. It could not be found.
  [taskdef] Could not load definitions from resource emma_ant.properties. It
could not be found.

build:
  [taskdef] Could not load definitions from resource
net/sf/antcontrib/antlib.xml. It could not be found.
  [taskdef] Could not load definitions from resource emma_ant.properties. It
could not be found.

dev:
  [taskdef] Could not load definitions from resource
net/sf/antcontrib/antlib.xml. It could not be found.
  [taskdef] Could not load definitions from resource emma_ant.properties. It
could not be found.

buildtools:
  [taskdef] Could not load definitions from resource
net/sf/antcontrib/antlib.xml. It could not be found.
  [taskdef] Could not load definitions from resource emma_ant.properties. It
could not be found.

build:
  [taskdef] Could not load definitions from resource
net/sf/antcontrib/antlib.xml. It could not be found.
  [taskdef] Could not load definitions from resource emma_ant.properties. It
could not be found.

ant-gwt:
  [taskdef] Could not load definitions from resource
net/sf/antcontrib/antlib.xml. It could not be found.
  [taskdef] Could not load definitions from resource emma_ant.properties. It
could not be found.

compile:
[gwt.javac] C:\gwt\trunk\build-tools\ant-gwt\build.xml:11: warning: 'includ
eantruntime' was not set, defaulting to build.sysclasspath=last; set to
false for repeatable builds

build:

customchecks:
  [taskdef] Could not load definitions from resource
net/sf/antcontrib/antlib.xml. It could not be found.
  [taskdef] Could not load definitions from resource emma_ant.properties. It
could not be found.

compile:
[gwt.javac] C:\gwt\trunk\build-tools\customchecks\build.xml:8: warning:
'includeantruntime' was not set, defaulting to build.sysclasspath=last; set
to false for repeatable builds
[gwt.javac] Compiling 2 source files to
C:\gwt\trunk\build\out\build-tools\customchecks\bin
[gwt.javac]
C:\gwt\trunk\build-tools\customchecks\src\com\google\gwt\checkstyle\FieldCheck.java:19:
package com.puppycrawl.tools.checkstyle.api does not exist
[gwt.javac] import com.puppycrawl.tools.checkstyle.api.DetailAST;
[gwt.javac]   ^
[gwt.javac]
C:\gwt\trunk\build-tools\customchecks\src\com\google\gwt\checkstyle\FieldCheck.java:20:
package com.puppycrawl.tools.checkstyle.api does not exist
[gwt.javac] import com.puppycrawl.tools.checkstyle.api.TokenTypes;
...


Do you have any idea of what could be the problem?


-- 

Hez

-- 
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-tool...@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.



Getting started GWT 2.1

2010-08-25 Thread hezjing
Hi

May I know if there is any article about GWT 2.1 features, especially the
data presentation widgets and the MVP framework?


-- 

Hez

-- 
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-tool...@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: Official tutorial of how to create GWT module?

2010-08-05 Thread hezjing
Hmmm ... I have developed some GWT applications, and I'm thinking to move
the common functionalities into modules (or libraries).
What is the steps to create these common modules, and then shared by the GWT
applications?


On Thu, Aug 5, 2010 at 2:13 PM, rudolf michael  wrote:

> http://code.google.com/webtoolkit/doc/1.6/tutorial/create.html
>
> <http://code.google.com/webtoolkit/doc/1.6/tutorial/create.html>if you
> have the GWT Eclipse plugin installed then all you you need to do is New
> Google application project, add the project name and package and hit the
> finish button as simple as that.
>
> best regards,
> Rudolf Michael
>
> On Thu, Aug 5, 2010 at 8:34 AM, hezjing  wrote:
>
>> Hi
>>
>> I might be missing something, but I couldn't find a tutorial of how to
>> create a GWT module from the GWT documentation.
>>
>> Is there any tutorial or article from GWT Team?
>>
>>
>> --
>>
>> Hez
>>
>> --
>> 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-tool...@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.
>>
>
>  --
> 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-tool...@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.
>



-- 

Hez

-- 
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-tool...@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.



Official tutorial of how to create GWT module?

2010-08-04 Thread hezjing
Hi

I might be missing something, but I couldn't find a tutorial of how to
create a GWT module from the GWT documentation.

Is there any tutorial or article from GWT Team?


-- 

Hez

-- 
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-tool...@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+EJB+JPA Integration without DTO's

2010-05-11 Thread hezjing
Thanks for sharing this sample!

What do you mean when you said the GWT 2.0 added the support for JPA
annotations?


On Wed, Feb 17, 2010 at 10:13 AM, Morswin  wrote:

> Maybe someone will find that useful:
> http://code.google.com/p/gwt-ejb-sample/
> Cheers,
> Morswin
>
> --
> 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-tool...@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.
>
>


-- 

Hez

-- 
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-tool...@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.



MVP: One page with many views and presenters?

2009-10-13 Thread hezjing
Hi
Until recently, I realised that I'm wrong to assume that one page is
corresponding to one view and presenter.
Instead, a page can contains several views and presenters right?


-- 

Hez

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Warning when run with GWT 2 ms1 and gwt-presenter

2009-10-13 Thread hezjing
Hi

I'm using GWT 2.0 milestone 1 and gwt-presenter.

I observed the following warning when run in development mode:

00:00:45.407  [WARN] Warnings in 'transient source for
net.customware.gwt.dispatch.client.service.DispatchService_TypeSerializer'
  00:00:45.407  [WARN] Line 20: Referencing deprecated class
'com.google.gwt.user.client.rpc.SerializableException'
  00:00:45.423  [INFO] See snapshot:
...\Temp\net.customware.gwt.dispatch.client.service.DispatchService_TypeSerializer7560914274574951570.java


Am I correct to assume that these warnings are caused by gwt-presenter, and
nothing to do in my application?


-- 

Hez

--~--~-~--~~~---~--~~
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 2.0 Milestone 1: C:\gwt-2.0.0-ms1\gwt-dev-windows.jar is missing

2009-10-06 Thread hezjing
The problem is resolved by renaming gwt-dev.jar to gwt-dev-windows.jar
before configuring the GWT SDK in Eclipse.


It is my fault that I missed the "Known issues" at the bottom of the
announcement, I was too excited trying out GWT 2.0

:-P


On Tue, Oct 6, 2009 at 10:59 PM, olivier nouguier <
olivier.nougu...@gmail.com> wrote:

> Or simply copy gwt-dev.jar to gwt-dev-windows.jar in gwt install dir.
>
> On Tue, Oct 6, 2009 at 12:14 PM, hezjing  wrote:
>
>> Hi Sebastien,
>> Are you suggesting to update the existing classpath to GWT 2.0 classpath
>> manually?
>>
>>
>> I'm not sure if Google plugin will solve this problem in the next release?
>>
>>
>> On Tue, Oct 6, 2009 at 12:11 PM, Sebastien  wrote:
>>
>>>
>>> (a tiny problem of keyboard later ...)
>>> This change is nice when the developpement team is cross plaform.
>>>
>>> Due to this change you have to update your eclipse classpath.
>>>
>>> Regards,
>>> Seb
>>>
>>> On 6 oct, 06:07, Sebastien  wrote:
>>> > Hi,
>>> >
>>> > The announce said the distribution is no more specific to a platform.
>>> > So I suppose gwt-dev-*.jar have been replaced by a single and portable
>>> > jar: gwt-dev.jar.
>>> >
>>> > On 6 oct, 05:29, hezjing  wrote:
>>> >
>>> > > Hi
>>> >
>>> > > I'm trying to configure GWT 2.0 milestone 1 in Google plugin
>>> following the
>>> > > steps:
>>> >
>>> > > Extracted gwt-2.0.0-ms1.zip to C:\gwt-2.0.0-ms1,
>>> >
>>> > > in Eclipse 3.5, right click a project -> Google -> Web Toolkit
>>> Settings...
>>> > > -> Configure SDKs... ,
>>> >
>>> > > in Preferences (Filtered) window, click Add... ,
>>> >
>>> > > in Add Google Web Toolkit SDK window, enter
>>> > > Installation directory: C:\gwt-2.0.0-ms1
>>> > > Display name: GWT 2.0 Milestone 1
>>> >
>>> > > Error: C:\gwt-2.0.0-ms1\gwt-dev-windows.jar is missing
>>> >
>>> > > --
>>> >
>>> > > Hez
>>>
>>>
>>
>>
>> --
>>
>> Hez
>>
>>
>>
>
>
> --
> A coward is incapable of exhibiting love; it is the prerogative of the
> brave.
> --
> Mohandas Gandhi
>
>
> >
>


-- 

Hez

--~--~-~--~~~---~--~~
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 2.0 Milestone 1: C:\gwt-2.0.0-ms1\gwt-dev-windows.jar is missing

2009-10-06 Thread hezjing
Hi Sebastien,
Are you suggesting to update the existing classpath to GWT 2.0 classpath
manually?


I'm not sure if Google plugin will solve this problem in the next release?


On Tue, Oct 6, 2009 at 12:11 PM, Sebastien  wrote:

>
> (a tiny problem of keyboard later ...)
> This change is nice when the developpement team is cross plaform.
>
> Due to this change you have to update your eclipse classpath.
>
> Regards,
> Seb
>
> On 6 oct, 06:07, Sebastien  wrote:
> > Hi,
> >
> > The announce said the distribution is no more specific to a platform.
> > So I suppose gwt-dev-*.jar have been replaced by a single and portable
> > jar: gwt-dev.jar.
> >
> > On 6 oct, 05:29, hezjing  wrote:
> >
> > > Hi
> >
> > > I'm trying to configure GWT 2.0 milestone 1 in Google plugin following
> the
> > > steps:
> >
> > > Extracted gwt-2.0.0-ms1.zip to C:\gwt-2.0.0-ms1,
> >
> > > in Eclipse 3.5, right click a project -> Google -> Web Toolkit
> Settings...
> > > -> Configure SDKs... ,
> >
> > > in Preferences (Filtered) window, click Add... ,
> >
> > > in Add Google Web Toolkit SDK window, enter
> > > Installation directory: C:\gwt-2.0.0-ms1
> > > Display name: GWT 2.0 Milestone 1
> >
> > > Error: C:\gwt-2.0.0-ms1\gwt-dev-windows.jar is missing
> >
> > > --
> >
> > > Hez
> >
>


-- 

Hez

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



GWT 2.0 Milestone 1: C:\gwt-2.0.0-ms1\gwt-dev-windows.jar is missing

2009-10-05 Thread hezjing
Hi

I'm trying to configure GWT 2.0 milestone 1 in Google plugin following the
steps:

Extracted gwt-2.0.0-ms1.zip to C:\gwt-2.0.0-ms1,

in Eclipse 3.5, right click a project -> Google -> Web Toolkit Settings...
-> Configure SDKs... ,

in Preferences (Filtered) window, click Add... ,

in Add Google Web Toolkit SDK window, enter
Installation directory: C:\gwt-2.0.0-ms1
Display name: GWT 2.0 Milestone 1

Error: C:\gwt-2.0.0-ms1\gwt-dev-windows.jar is missing


-- 

Hez

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



CssResource, the CSS location

2009-09-28 Thread hezjing
Hi
Is it true that with CssResource, there is no need to specify CSS reference
in the module XML and the hosted HTML?


Also with the following ClientBundle,

public interface MyResources extends ClientBundle {

@Source("My.css")
MyCss css();
}


The My.css must be saved in the src directory.
How can we reference the CSS in the other directories? example in war
directory?


Thank you!


-- 

Hez

--~--~-~--~~~---~--~~
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 can I get GWT 2.0

2009-09-10 Thread hezjing
Hi

May I know how to tweak Google plugin for Eclipse to use the unofficial GWT
2.0 builds?



On Mon, Sep 7, 2009 at 5:20 PM, Thomas Broyer  wrote:

>
>
>
> On 7 sep, 01:11, Karan Sardana  wrote:
> > I am using a commercial library - EXT GWT 2.0, and for that I need GWT
> > 2.0;
>
> Er, where did you see that you *need* GWT 2.0 to be able to use Ext
> GWT 2.0 ?!
> http://www.extjs.com/deploy/gxt-2.0.1/release_notes.html only says
> they "added support from GWT 2.0" (meaning that before that you
> couldn't use GWT 2.0 with Ext GWT)
>
> > where can I get that from?
>
> You can download unofficial builds at http://code.google.com/p/sfeir
> >
>


-- 

Hez

--~--~-~--~~~---~--~~
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 get URL in GWT?

2009-09-08 Thread hezjing
Hi Vikas,
How about retrieve the HttpServletRequest instance, then getLocalAddr() and
getLocalPort()?

You may want to check out the rest of the useful getter methods
in HttpServletRequest.


On Tue, Sep 8, 2009 at 5:55 PM, Vikas  wrote:

>
> For RPC communication, I need server IP address and port which is
> specified in URL.
> e.g. In 'http://10.4.6.131:8181/webClient.html' url 10.4.6.131 IP
> address and 8181 port.
>
> How to get this IP and port in GWT?
>
> Thanks in advance,
> Vikas
>
> >
>


-- 

Hez

--~--~-~--~~~---~--~~
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 plugin: Problem when project name is changed

2009-09-05 Thread hezjing
Hi

I'm still learning GWT, and I thought that the it is a convention (or best
practice?) a GWT project X, will have host page X.html.
It would be very helpful to keep the consistency of the project after the
rename.

For example when host page is renamed, and the plugin is not updating the
launch configuration automatically,
it should shown an error say the original host page the launch configuration
is referring is no long exist?

:-)


On Sat, Sep 5, 2009 at 9:53 AM, Isaac Truett  wrote:

>
> I would tend to say no, although I reserve the right to be persuaded
> otherwise by a compelling argument. I can't think of any precedent for
> an Eclipse plugin altering a launch configuration's arguments field in
> that manner.
>
>
>
> On Wed, Sep 2, 2009 at 3:54 AM, hezjing wrote:
> > What about if we rename the hosted page?
> > Should the plugin update the reference in the launch configuration too?
> >
> > On Mon, Aug 31, 2009 at 10:20 PM, Isaac Truett 
> wrote:
> >>
> >> > I'm not sure that it should change the name of the launch
> >> > configuration and hosted page however.
> >>
> >> I'm willing to take the next step and say I'm sure it shouldn't. :)
> >>
> >> - Isaac
> >>
> >> 2009/8/31 Miguel Méndez :
> >> > On Sun, Aug 30, 2009 at 2:05 PM, hezjing  wrote:
> >> >>
> >> >> Hi
> >> >> I have a GWT project named X created by Google plugin.
> >> >> Then later I want to change the name to Y, so I right clicked Project
> X
> >> >> ->
> >> >> Refactor -> Rename ... -> New name: Y
> >> >> When run, it will complaint the working directory does not exist:
> >> >> /X/war
> >> >> It seems that launch configuration is still referring to the old
> name.
> >> >> Would it be possible for the plugin to rename the launch
> configuration,
> >> >> hosted page and etc?
> >> >
> >> > The rename should update references to the project's name in the
> launch
> >> > configuration.  I'm not sure that it should change the name of the
> >> > launch
> >> > configuration and hosted page however.  Could you add a feature
> >> > request here
> >> > for this?
> >> >
> >> >>
> >> >> --
> >> >>
> >> >> Hez
> >> >>
> >> >>
> >> >
> >> >
> >> >
> >> > --
> >> > Miguel
> >> >
> >> > >
> >> >
> >>
> >>
> >
> >
> >
> > --
> >
> > Hez
> >
> > >
> >
>
> >
>


-- 

Hez

--~--~-~--~~~---~--~~
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: Aligning Widget in RootPanel

2009-09-04 Thread hezjing
Hi Sidni,

I think the problem is because the width of the HorizontalPanel is too
small.

Try this,

Label l = new Label("Hello");
HorizontalPanel hp = new HorizontalPanel();
hp.setBorderWidth(1);
hp.setWidth("100%");
hp.add(l);
hp.setCellHorizontalAlignment(l, HorizontalPanel.ALIGN_CENTER);
RootPanel.get().add(hp);


Tip: it is always useful to set border of the panel when troubleshooting
alignment problem :-)


On Thu, Sep 3, 2009 at 11:51 PM, sidni  wrote:

>
> Hi,
>
> Consider 2 code snipet below:
> My intention is to display "Hello" in Center of the page.
>
> 1. Using Label directly
>
> Label l = new Label("NITESH");
> l.setHorizontalAlignment(HasAlignment.ALIGN_CENTER);
> RootPanel.get().add(l);
>
> This displays it in center.
>
> 2. Label widget contained in Vertical/HorizontalPanel
>
> -
> HorizontalPanel hp = new HorizontalPanel();
> Label l = new Label("Hello");
> hp.add(l);
> hp.setHorizontalAlignment(HasAlignment.ALIGN_CENTER);
> //hp.setCellHorizontalAlignment(l,
> HasHorizontalAlignment.ALIGN_CENTER);
> RootPanel.get().add(hp);
> -
>
> If we replace HorizontalPanel with VerticalPanel we get result the
> same.
>
> How would I display my label at Center of page if its contained under
> some Panel ? Am I missing something ?
>
> 10x
>
> >
>


-- 

Hez

--~--~-~--~~~---~--~~
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 plugin: Problem when project name is changed

2009-09-02 Thread hezjing
What about if we rename the hosted page?Should the plugin update the
reference in the launch configuration too?


On Mon, Aug 31, 2009 at 10:20 PM, Isaac Truett  wrote:

>
> > I'm not sure that it should change the name of the launch
> > configuration and hosted page however.
>
> I'm willing to take the next step and say I'm sure it shouldn't. :)
>
> - Isaac
>
> 2009/8/31 Miguel Méndez :
> > On Sun, Aug 30, 2009 at 2:05 PM, hezjing  wrote:
> >>
> >> Hi
> >> I have a GWT project named X created by Google plugin.
> >> Then later I want to change the name to Y, so I right clicked Project X
> ->
> >> Refactor -> Rename ... -> New name: Y
> >> When run, it will complaint the working directory does not exist: /X/war
> >> It seems that launch configuration is still referring to the old name.
> >> Would it be possible for the plugin to rename the launch configuration,
> >> hosted page and etc?
> >
> > The rename should update references to the project's name in the launch
> > configuration.  I'm not sure that it should change the name of the launch
> > configuration and hosted page however.  Could you add a feature
> request here
> > for this?
> >
> >>
> >> --
> >>
> >> Hez
> >>
> >>
> >
> >
> >
> > --
> > Miguel
> >
> > >
> >
>
> >
>


-- 

Hez

--~--~-~--~~~---~--~~
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 plugin: Problem when project name is changed

2009-08-31 Thread hezjing
Issue 4005<http://code.google.com/p/google-web-toolkit/issues/detail?id=4005>
is
created :-)

2009/8/31 Miguel Méndez 

> On Sun, Aug 30, 2009 at 2:05 PM, hezjing  wrote:
>
>> Hi
>> I have a GWT project named X created by Google plugin.
>>
>> Then later I want to change the name to Y, so I right clicked Project X ->
>> Refactor -> Rename ... -> New name: Y
>>
>> When run, it will complaint the working directory does not exist: /X/war
>> It seems that launch configuration is still referring to the old name.
>>
>> Would it be possible for the plugin to rename the launch configuration,
>> hosted page and etc?
>>
>>
> The rename should update references to the project's name in the launch
> configuration.  I'm not sure that it should change the name of the launch
> configuration and hosted page however.  Could you add a feature request
> here <http://code.google.com/p/google-web-toolkit/issues/list> for this?
>
>
>>
>> --
>>
>> Hez
>>
>>
>>
>
>
> --
> Miguel
>
> >
>


-- 

Hez

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



GWT plugin: Problem when project name is changed

2009-08-30 Thread hezjing
Hi
I have a GWT project named X created by Google plugin.

Then later I want to change the name to Y, so I right clicked Project X ->
Refactor -> Rename ... -> New name: Y

When run, it will complaint the working directory does not exist: /X/war
It seems that launch configuration is still referring to the old name.

Would it be possible for the plugin to rename the launch configuration,
hosted page and etc?


-- 

Hez

--~--~-~--~~~---~--~~
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 1.6 eclipse plugin

2009-08-28 Thread hezjing
Hi Philipmac

You can install the Eclipse plugin following the instructions here:
http://code.google.com/eclipse/docs/getting_started.html#installing
and it could be helpful to import the existing project following the steps
here:
http://code.google.com/eclipse/docs/existingprojects.html


Hope this is helpful!


On Thu, Aug 27, 2009 at 2:15 AM, philipmac wrote:

>
> Hey,
>
> I am trying to get the gwt1.6 Sample Gilead application (http://
> sourceforge.net/projects/gilead/files/) up and running.
>
> It seems that I need to have the GWT1.6 plugin to use this, where can
> I find this?
>
>
> The reason I think that this is the error is because when I open the
> project in eclipse, manually imported the GWT stuff via Build Path ->
> Add Library, ->Add GWT stuff and App engine stuff.
>
> Yet when I try to GWT compile it, it tells me that it is not a GWT
> app.  Also in the GWT Compile popup it seems to not know where the
> entry point is, even though the entry point is defined in the
> Sample.gwt.xml file, as per all GWT projects.
>
> I am hoping that if I can use the GWT for which the Gilead proj was
> created, these problems will go away.
>
> >
>


-- 

Hez

--~--~-~--~~~---~--~~
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: CSS is dissapear when deployed on Tomcat 5?

2009-08-23 Thread hezjing
I think I found the problem:
I have to associate the CSS in both the module XML file and host HTML page:

MyApp.gwt.xml


MyApp.html



I thought we should associate the CSS in one of the files :-(



On Mon, Aug 24, 2009 at 12:56 AM, hezjing  wrote:

> Hi
> My GWT 1.7 application is working fine when tested in hosted mode and in
> the compiled version.
> The CSS is associated in the module XML file.
>
> The problem is when I deployed the application in Tomcat 5 on the hosting
> server, the CSS are all stripped off,
> and there seems to be no CSS at all?!
>
> AFAK, the only difference between my environment and the hosting server is
> the web server: Jetty and Tomcat 5.
>
> Do you think this is the problem?
>
> Where should I start tackle this problem?
>
>
> Appreciate your help, thank you!
>
>
> --
>
> Hez
>



-- 

Hez

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



CSS is dissapear when deployed on Tomcat 5?

2009-08-23 Thread hezjing
Hi
My GWT 1.7 application is working fine when tested in hosted mode and in the
compiled version.
The CSS is associated in the module XML file.

The problem is when I deployed the application in Tomcat 5 on the hosting
server, the CSS are all stripped off,
and there seems to be no CSS at all?!

AFAK, the only difference between my environment and the hosting server is
the web server: Jetty and Tomcat 5.

Do you think this is the problem?

Where should I start tackle this problem?


Appreciate your help, thank you!


-- 

Hez

--~--~-~--~~~---~--~~
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 change the arrow icon of DisclosurePanel

2009-08-22 Thread hezjing
Hi
May I know how to change the arrow icon of the DisclosurePanel?


-- 

Hez

--~--~-~--~~~---~--~~
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 retrieve the selected value of ListBox in MVP

2009-08-09 Thread hezjing
Thanks Jeff, to summary, I have to create my own ListBox implementing
HasValue:

class MyListBox extends ListBox implements HasValue {

public String getValue() {
int index = getSelectedIndex();
return getValue(index);
}
}


and then get the selected value of the ListBox in the presenter:

class PhoneEditorPresenter {

interface Display {
// returns the instance of MyListBox
HasValue getContactTypeList();
}

void doSave() {
String type = getContactTypeList().getValue();
}
}



On Sun, Aug 9, 2009 at 10:56 PM, Jeff Chimene  wrote:

>
> On Sun, Aug 9, 2009 at 5:43 AM, hezjing wrote:
> > Hi
> > I'm trying to following the MVP implementation shown by Ray Ryan:
> > class PhoneEditorPresenter {
> > interface Display {
> > HasValue getNumberField();
> > }
> > void doSave() {
> > String number = getNumberField().getValue();
> > }
> > }
> >
> >
> > Everything seems OK until I have a ListBox now, the ListBox does not
> > implements HasValue
> > May I know which interface (e.g. Has*) I should use to retrieve the
> selected
> > value of a ListBox?
>
> I think the answer is to create your own class that extends ListBox to
> implement a HasValue method.
>
> But I could be wrong.
> >
> > --
> >
> > Hez
> >
> > >
> >
>
> >
>


-- 

Hez

--~--~-~--~~~---~--~~
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 retrieve the selected value of ListBox in MVP

2009-08-09 Thread hezjing
Hi
I'm trying to following the MVP implementation shown by Ray
Ryan
:

class PhoneEditorPresenter {

interface Display {
 HasValue getNumberField();
}

void doSave() {
 String number = getNumberField().getValue();
}
}


Everything seems OK until I have a ListBox now, the ListBox does not
implements HasValue

May I know which interface (e.g. Has*) I should use to retrieve the selected
value of a ListBox?


-- 

Hez

--~--~-~--~~~---~--~~
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-RPC will pick-up a wrong implementation?

2009-08-09 Thread hezjing
Uh-huh ... thanks for your explanation,and I think this piece of information
is worth mention in the GWT's developer's guide too!

On Sun, Aug 9, 2009 at 5:46 AM, pohl  wrote:

>
> To add to Paul's answer:  the practice that Ray Ryan advocated is not
> to prevent GWT-RPC from picking up the wrong implementation.
>
> Rather, it is to prevent GWT-RPC from including all possible
> implementations, even those that you will never use.
>
> For example, if you use List the GWT-RPC magic-generator will have
> to include compiled javascript that implements java.util.Vector class,
> because it will have no way of knowing that the server will never
> return such a type.
>
> So being specific with ArrayList keeps the size of your compiled
> javascript as small as possible.
> >
>


-- 

Hez

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Handler when a widget is added to panel?

2009-08-06 Thread hezjing
Hi
I have Composite widgets, and these widgets will be added and removed from a
DockPanel depending on user selection.

I want to perform initialization whenever the widget is being added to
DockPanel.

May I know which handler I can register for this purpose?


-- 

Hez

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



GWT-RPC will pick-up a wrong implementation?

2009-08-06 Thread hezjing
Hi

If I follow Ray Ryan presentation (page 18, 19), he mentioned that it's good
to be specific of the implementation:

ArrayList is favor than List

that is to ensure that the GWT-RPC will pick up the right implementation.


I'm just curios of how the GWT-RPC will pick up the wrong implementation?


-- 

Hez

--~--~-~--~~~---~--~~
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: Include CSS in XML or HTML affects the output?

2009-07-04 Thread hezjing
Does this means I must include the CSS in the module XML if I'm going to
override some of the styles in standard.css?
It seems that if I include the CSS in the module XML, I have to restart the
hosted server console to every time the CSS is modified.
Whereas in HTML hosted page, I can simply refresh the CSS by clicking the
refresh button in the hosted browser.



On Sat, Jul 4, 2009 at 6:18 AM, Thomas Broyer  wrote:

>
>
>
> On 3 juil, 17:58, hezjing  wrote:
> > Hi
> > I want to customize the color and font size of the StackPanel item, so I
> > defined the following style:
> >
> > .mymenu .gwt-StackPanelItem {
> >   color: blue;
> >   font-size: small;
> >
> > }
> >
> > Then I add the above style and keep the rest of the standard CSS
> properties:
> >
> > StackPanel panel = new StackPanel();
> > panel.addStyleName("mymenu");
> >
> > The problem is this only works if I include the CSS in the module XML
> file.
> >
> > If I include the CSS in the HTML host page, the style is overridden by
> > standard.css.
> [...]
> > Do you know why including the CSS in the module XML or HTML host page
> > affects the output?
>
> The stylesheets in the .gwt.xml are injected at the end of the
> document's  once the document's  is fully loaded, so they
> always come *after* the stylesheets found in the HTML, and therefore
> override their declarations.
> >
>


-- 

Hez

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Include CSS in XML or HTML affects the output?

2009-07-03 Thread hezjing
Hi
I want to customize the color and font size of the StackPanel item, so I
defined the following style:

.mymenu .gwt-StackPanelItem {
  color: blue;
  font-size: small;
}


Then I add the above style and keep the rest of the standard CSS properties:

StackPanel panel = new StackPanel();
panel.addStyleName("mymenu");


The problem is this only works if I include the CSS in the module XML file.

If I include the CSS in the HTML host page, the style is overridden by
standard.css.


Both methods above generate the same HTML shown below:





Administration


...



Do you know why including the CSS in the module XML or HTML host page
affects the output?


-- 

Hez

--~--~-~--~~~---~--~~
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: Compiler java.lang.StackOverflowError

2009-07-03 Thread hezjing
Thanks, Carl!
I think the link you provided is pointing to this thread :-)

I'm not sure if you're talking about issue 3510?
I managed to apply the gwt-dev-patch.jar in Eclipse following these steps:

Right click Project
Build Path -> Configure Build Path...
Select Libraries tab -> Add External JARs... -> Select gwt-dev-patch.jar
Select Order and Export tab -> Move gwt-dev-patch.jar after src path


The problem was me don't know to configure the path in Eclipse to pick
up gwt-dev-patch.jar correctly!


Thank you!


On Fri, Jul 3, 2009 at 8:00 AM, Carl Pritchett wrote:

>
> Also the GWT patch will probably help with this issue:
>
> http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/1342916873cd523b?hl=en
>
> I no longer see the -Xss property after adding the patch jar to my
> classpath
>
> On Jul 2, 1:13 pm, hezjing  wrote:
> > Hi
> >
> > I temporary avoid this StackOverflowError by compiling the project to
> only
> > one browser,
> >
> > --- module.xml ---
> > 
> >
> > with my current VM arguments set to -Xss64M and -Xmx512M.
> >
> > I probably have to compile to the different browsers one by one.
> >
> > Really, I have no glue what are the appropriate values of -Xss and the
> -Xmx
> >  :-(
> >
> >
> >
> > On Wed, Jul 1, 2009 at 8:52 PM, hezjing  wrote:
> > > Hi
> > > I know this is not a new problem, and I resolved this problem the 1st
> time
> > > by setting -Xss1024k.
> >
> > > Now it comes back again, but the problem still exist after I increased
> the
> > > stack size to -Xss8M, -Xss16M or -Xss64M.
> >
> > > I would like to try out the patch described in the comment 21 of
> > >http://code.google.com/p/google-web-toolkit/issues/detail?id=3510,
> > > but may I know where should I save the gwt-dev-patch.jar if I'm using
> > > Google plugin?
> >
> > > I tried to copy gwt-dev-patch.jar to the directory where
> > > the gwt-dev-tools.jar is found,
> > > C:\eclipse\configuration\org.eclipse.osgi\bundles\589\1\.cp\libs
> >
> > > but that doesn't seem to resolve the problem :-(
> >
> > > Do you have any idea?
> >
> > > --
> >
> > > Hez
> >
> > --
> >
> > Hez
> >
>


-- 

Hez

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Setting a PopupPanel modal

2009-07-02 Thread hezjing
Hi

May I know how to make a PopupPanel modal?

Below is my testing code:


public void onModuleLoad() {

Label hello = new Label("Can you click the button now?");

final PopupPanel popup = new PopupPanel();
popup.setModal(true);
popup.setWidget(hello);

Button button = new Button("Click me");
button.addClickHandler(new ClickHandler() {
 public void onClick(ClickEvent event) {
 popup.show();
 // still able to click button after this?
 }
});

VerticalPanel panel = new VerticalPanel();
panel.setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE);
panel.setSize("100%", "100%");
panel.add(button);

RootPanel root = RootPanel.get();
root.add(panel);
}


When the button is clicked, it will show the PopupPanel showing the "Can you
click the button now?".
I'm still able to click on the button even though this PopupPanel has been
setModal(true).


Can you help me?


-- 

Hez

--~--~-~--~~~---~--~~
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: Compiler java.lang.StackOverflowError

2009-07-01 Thread hezjing
Hi

I temporary avoid this StackOverflowError by compiling the project to only
one browser,

--- module.xml ---



with my current VM arguments set to -Xss64M and -Xmx512M.

I probably have to compile to the different browsers one by one.


Really, I have no glue what are the appropriate values of -Xss and the -Xmx
 :-(


On Wed, Jul 1, 2009 at 8:52 PM, hezjing  wrote:

> Hi
> I know this is not a new problem, and I resolved this problem the 1st time
> by setting -Xss1024k.
>
> Now it comes back again, but the problem still exist after I increased the
> stack size to -Xss8M, -Xss16M or -Xss64M.
>
>
> I would like to try out the patch described in the comment 21 of
> http://code.google.com/p/google-web-toolkit/issues/detail?id=3510,
> but may I know where should I save the gwt-dev-patch.jar if I'm using
> Google plugin?
>
> I tried to copy gwt-dev-patch.jar to the directory where
> the gwt-dev-tools.jar is found,
> C:\eclipse\configuration\org.eclipse.osgi\bundles\589\1\.cp\libs
>
> but that doesn't seem to resolve the problem :-(
>
>
> Do you have any idea?
>
>
>
> --
>
> Hez
>



-- 

Hez

--~--~-~--~~~---~--~~
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 java.lang.StackOverflowError

2009-07-01 Thread hezjing
Hi
I know this is not a new problem, and I resolved this problem the 1st time
by setting -Xss1024k.

Now it comes back again, but the problem still exist after I increased the
stack size to -Xss8M, -Xss16M or -Xss64M.


I would like to try out the patch described in the comment 21 of
http://code.google.com/p/google-web-toolkit/issues/detail?id=3510,
but may I know where should I save the gwt-dev-patch.jar if I'm using Google
plugin?

I tried to copy gwt-dev-patch.jar to the directory where
the gwt-dev-tools.jar is found,
C:\eclipse\configuration\org.eclipse.osgi\bundles\589\1\.cp\libs

but that doesn't seem to resolve the problem :-(


Do you have any idea?



-- 

Hez

--~--~-~--~~~---~--~~
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 align the labels to the bottom of HorizontalPanel?

2009-06-30 Thread hezjing
Thanks Damien and Ian, you have been helping me a lot!

On Tue, Jun 30, 2009 at 8:45 PM, Damien Picard wrote:

> So simply...
> I'm sorry hezjing to don't have think about "!important".
> (It permits to force the rule to apply instead of cascading mechanism...)
>
>
>
> 2009/6/30 Ian Bambury 
>
>
>> .my td
>> {
>> vertical-align: bottom !important;
>> }
>>
>> Ian
>>
>> http://examples.roughian.com
>>
>>
>> 2009/6/30 Damien Picard 
>>
>> I think it is not possible, because if you don't specify a
>>> VerticalAlignment, the default (top) is applied, with
>>> style="vertical-alignment: top".
>>> And there is no way in CSS to override it...
>>>
>>> A way to cheat with it could be :
>>>
>>> .my {
>>> background: yellow;
>>> }
>>>
>>>
>>> .my div{
>>> height: 100%;
>>>     vertical-align: bottom;
>>> }
>>>
>>> .big {
>>> font-size: 15px;
>>>  font-weight: bold;
>>> background: red;
>>> }
>>>
>>> .small {
>>>  font-size: xx-small;
>>> background: blue;
>>> }
>>>
>>> But I'm not sure it will work
>>>
>>>
>>>
>>> 2009/6/30 hezjing 
>>>
>>>> I think I'm a bit slow here :-P
>>>> Probably I should ask how can we achieve this effect by setting CSS,
>>>> without setVerticalAlignment()?
>>>>
>>>>
>>>>
>>>> On Tue, Jun 30, 2009 at 5:19 PM, Damien Picard >>> > wrote:
>>>>
>>>>> As you can see in the generated HTML code, the css class "my" is
>>>>> applied to the DOM element "table".
>>>>> Nevertheless, each "td" node of this table is applied the css style
>>>>> "vertical-align" with the setted "VerticalAlignment".
>>>>> And, in the XHTML/CSS definition, the style order applied is :
>>>>>  - "style" attribute of the node
>>>>>  - "class" attribute of the node
>>>>>  - if there is no style or class attribute, inherits from parents
>>>>>
>>>>> Then, the style applied here is the one contained in the "style"
>>>>> attribute of td node, which override the one contained in the "my" class 
>>>>> of
>>>>> table node.
>>>>>
>>>>>
>>>>> Regards,
>>>>>
>>>>> 2009/6/30 hezjing 
>>>>>
>>>>>> Hi Damien
>>>>>> Yes, it is working now and the following is what the HTML generated!
>>>>>>
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> BIG
>>>>>> 
>>>>>> 
>>>>>>  small
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>>
>>>>>>
>>>>>> Hmmm ... I thought I tried
>>>>>> setVerticalAlignment(HasVerticalAlignment.ALIGN_BOTTOM) too!
>>>>>> I don't know what was in my head at that time!
>>>>>>
>>>>>>
>>>>>> But I'm still don't understand why my approach doesn't work?
>>>>>>
>>>>>>
>>>>>>
>>>>>> On Tue, Jun 30, 2009 at 4:38 PM, Damien Picard <
>>>>>> picard.dam...@gmail.com> wrote:
>>>>>>
>>>>>>> Hi,
>>>>>>>
>>>>>>> Could you try something like :
>>>>>>>
>>>>>>> public void onModuleLoad() {
>>>>>>>
>>>>>>>  Label bigTitle = new Label("BIG");
>>>>>>> bigTitle.setStyleName("big");
>>>>>>>
>>>>>>> Label smallTitle = new Label("small");
>>>>>>>  smallTitle.setStyleName("small");
>>>>>>>
>>>>>>> HorizontalPanel panel = new HorizontalPanel();
>>>>>>>  // this style will set vertical-align: bottom
>>>>>>> *panel.setVerticalAlignment(HasVerticalAlignment.VerticalAlignmentConstant.ALIGN_BOTTOM);
>>>>>>> *
>>>>>

Re: How to align the labels to the bottom of HorizontalPanel?

2009-06-30 Thread hezjing
I think I'm a bit slow here :-P
Probably I should ask how can we achieve this effect by setting CSS,
without setVerticalAlignment()?



On Tue, Jun 30, 2009 at 5:19 PM, Damien Picard wrote:

> As you can see in the generated HTML code, the css class "my" is applied to
> the DOM element "table".
> Nevertheless, each "td" node of this table is applied the css style
> "vertical-align" with the setted "VerticalAlignment".
> And, in the XHTML/CSS definition, the style order applied is :
>  - "style" attribute of the node
>  - "class" attribute of the node
>  - if there is no style or class attribute, inherits from parents
>
> Then, the style applied here is the one contained in the "style" attribute
> of td node, which override the one contained in the "my" class of table
> node.
>
>
> Regards,
>
> 2009/6/30 hezjing 
>
>> Hi Damien
>> Yes, it is working now and the following is what the HTML generated!
>>
>> 
>> 
>> 
>> 
>> BIG
>> 
>> 
>>  small
>> 
>> 
>> 
>> 
>>
>>
>> Hmmm ... I thought I tried
>> setVerticalAlignment(HasVerticalAlignment.ALIGN_BOTTOM) too!
>> I don't know what was in my head at that time!
>>
>>
>> But I'm still don't understand why my approach doesn't work?
>>
>>
>>
>> On Tue, Jun 30, 2009 at 4:38 PM, Damien Picard 
>> wrote:
>>
>>> Hi,
>>>
>>> Could you try something like :
>>>
>>> public void onModuleLoad() {
>>>
>>>  Label bigTitle = new Label("BIG");
>>> bigTitle.setStyleName("big");
>>>
>>> Label smallTitle = new Label("small");
>>>  smallTitle.setStyleName("small");
>>>
>>> HorizontalPanel panel = new HorizontalPanel();
>>>  // this style will set vertical-align: bottom
>>> *panel.setVerticalAlignment(HasVerticalAlignment.VerticalAlignmentConstant.ALIGN_BOTTOM);
>>> *
>>>  panel.setStyleName("my");//Probably not useful (cause the classe is
>>> applied to "table" DOM node instead of "td" DOM node)
>>>
>>> panel.add(bigTitle);
>>>  panel.add(smallTitle);
>>>
>>>  RootPanel root = RootPanel.get();
>>> root.add(panel);
>>> }
>>>
>>> Regards,
>>>
>>> 2009/6/30 hezjing 
>>>
>>> Hi
>>>>
>>>> I have a big label and a small label, and I want to "align-bottom" these
>>>> labels when added in HorizontalPanel:
>>>>
>>>> public void onModuleLoad() {
>>>>
>>>>  Label bigTitle = new Label("BIG");
>>>> bigTitle.setStyleName("big");
>>>>
>>>> Label smallTitle = new Label("small");
>>>> smallTitle.setStyleName("small");
>>>>
>>>> HorizontalPanel panel = new HorizontalPanel();
>>>> // this style will set vertical-align: bottom
>>>>  panel.setStyleName("my");
>>>>
>>>> panel.add(bigTitle);
>>>> panel.add(smallTitle);
>>>>
>>>>  RootPanel root = RootPanel.get();
>>>> root.add(panel);
>>>> }
>>>>
>>>>
>>>> and here is my CSS:
>>>>
>>>> .my {
>>>> vertical-align: bottom;
>>>> background: yellow;
>>>> }
>>>>
>>>> .big {
>>>> font-size: 15px;
>>>> font-weight: bold;
>>>> background: red;
>>>> }
>>>>
>>>> .small {
>>>> font-size: xx-small;
>>>> background: blue;
>>>> }
>>>>
>>>>
>>>> The problem is the smallTitle is always top aligned.
>>>>
>>>>
>>>> The following is what I observed in Firebug, and it seems that both
>>>> labels are set to style="vertical-align: top"
>>>>
>>>> 
>>>> 
>>>> 
>>>> 
>>>> BIG
>>>> 
>>>> 
>>>> small
>>>> 
>>>> 
>>>> 
>>>> 
>>>>
>>>>
>>>> It doesn't help if I
>>>> panel.setVerticalAlignment(HasVerticalAlignment.ALIGN_BOTTOM).
>>>>
>>>> How can I align the labels to the bottom of HorizontalPanel?
>>>>
>>>>
>>>> --
>>>>
>>>> Hez
>>>>
>>>>
>>>>
>>>
>>>
>>> --
>>> Damien Picard
>>> Open Source BPM : http://code.google.com/p/osbpm
>>>
>>>
>>>
>>
>>
>> --
>>
>> Hez
>>
>>
>>
>
>
> --
> Damien Picard
> Open Source BPM : http://code.google.com/p/osbpm
>
> >
>


-- 

Hez

--~--~-~--~~~---~--~~
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 align the labels to the bottom of HorizontalPanel?

2009-06-30 Thread hezjing
Hi Damien
Yes, it is working now and the following is what the HTML generated!





BIG


small






Hmmm ... I thought I tried
setVerticalAlignment(HasVerticalAlignment.ALIGN_BOTTOM) too!
I don't know what was in my head at that time!


But I'm still don't understand why my approach doesn't work?



On Tue, Jun 30, 2009 at 4:38 PM, Damien Picard wrote:

> Hi,
>
> Could you try something like :
>
> public void onModuleLoad() {
>
>  Label bigTitle = new Label("BIG");
> bigTitle.setStyleName("big");
>
> Label smallTitle = new Label("small");
>  smallTitle.setStyleName("small");
>
> HorizontalPanel panel = new HorizontalPanel();
>  // this style will set vertical-align: bottom
> *panel.setVerticalAlignment(HasVerticalAlignment.VerticalAlignmentConstant.ALIGN_BOTTOM);
> *
>  panel.setStyleName("my");//Probably not useful (cause the classe is
> applied to "table" DOM node instead of "td" DOM node)
>
> panel.add(bigTitle);
>  panel.add(smallTitle);
>
>  RootPanel root = RootPanel.get();
> root.add(panel);
> }
>
> Regards,
>
> 2009/6/30 hezjing 
>
> Hi
>>
>> I have a big label and a small label, and I want to "align-bottom" these
>> labels when added in HorizontalPanel:
>>
>> public void onModuleLoad() {
>>
>>  Label bigTitle = new Label("BIG");
>> bigTitle.setStyleName("big");
>>
>> Label smallTitle = new Label("small");
>> smallTitle.setStyleName("small");
>>
>> HorizontalPanel panel = new HorizontalPanel();
>> // this style will set vertical-align: bottom
>>  panel.setStyleName("my");
>>
>> panel.add(bigTitle);
>> panel.add(smallTitle);
>>
>>  RootPanel root = RootPanel.get();
>> root.add(panel);
>> }
>>
>>
>> and here is my CSS:
>>
>> .my {
>> vertical-align: bottom;
>> background: yellow;
>> }
>>
>> .big {
>> font-size: 15px;
>> font-weight: bold;
>> background: red;
>> }
>>
>> .small {
>> font-size: xx-small;
>> background: blue;
>> }
>>
>>
>> The problem is the smallTitle is always top aligned.
>>
>>
>> The following is what I observed in Firebug, and it seems that both labels
>> are set to style="vertical-align: top"
>>
>> 
>> 
>> 
>> 
>> BIG
>> 
>> 
>> small
>> 
>> 
>> 
>> 
>>
>>
>> It doesn't help if I
>> panel.setVerticalAlignment(HasVerticalAlignment.ALIGN_BOTTOM).
>>
>> How can I align the labels to the bottom of HorizontalPanel?
>>
>>
>> --
>>
>> Hez
>>
>>
>>
>
>
> --
> Damien Picard
> Open Source BPM : http://code.google.com/p/osbpm
>
> >
>


-- 

Hez

--~--~-~--~~~---~--~~
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 align the labels to the bottom of HorizontalPanel?

2009-06-30 Thread hezjing
Hi

I have a big label and a small label, and I want to "align-bottom" these
labels when added in HorizontalPanel:

public void onModuleLoad() {

Label bigTitle = new Label("BIG");
bigTitle.setStyleName("big");

Label smallTitle = new Label("small");
smallTitle.setStyleName("small");

HorizontalPanel panel = new HorizontalPanel();
// this style will set vertical-align: bottom
panel.setStyleName("my");

panel.add(bigTitle);
panel.add(smallTitle);

 RootPanel root = RootPanel.get();
root.add(panel);
}


and here is my CSS:

.my {
vertical-align: bottom;
background: yellow;
}

.big {
font-size: 15px;
font-weight: bold;
background: red;
}

.small {
font-size: xx-small;
background: blue;
}


The problem is the smallTitle is always top aligned.


The following is what I observed in Firebug, and it seems that both labels
are set to style="vertical-align: top"





BIG


small






It doesn't help if I
panel.setVerticalAlignment(HasVerticalAlignment.ALIGN_BOTTOM).

How can I align the labels to the bottom of HorizontalPanel?


-- 

Hez

--~--~-~--~~~---~--~~
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 add a hyperlink in a cell for any grid?

2009-06-30 Thread hezjing
Hi Sowjanya

I think your question should start in a new thread ;-)


On Tue, Jun 30, 2009 at 3:51 PM, Sowjanya Yerramneni 
 wrote:

> Hi,
>
> Can anyone help me out explaining how to add a hyperlink in a cell for any
> grid?
> I could set simple data into my grid but unable to find out how to add a
> hyperlink in one of the columns.
> Please let me know.
>


Can you try if the following code works for you?

public void onModuleLoad() {
 Hyperlink link = new Hyperlink("Hello", "token");
 Grid panel = new Grid(1, 1);
panel.setWidget(0, 0, link);

RootPanel root = RootPanel.get();
root.add(panel);
}


-- 

Hez

--~--~-~--~~~---~--~~
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: Problem specifying Grid's cell size

2009-06-29 Thread hezjing
Hi Ian,

You example works fine except that I have to include myGrid when setting the
styles into the cells like the following:

f.setStyleName(0, 0, "myGrid my-Grid-ne my-Grid-border-row
my-Grid-border-col");
f.setStyleName(0, 1, "myGrid my-Grid-n  my-Grid-border-row");
f.setStyleName(0, 2, "myGrid my-Grid-nw my-Grid-border-row
my-Grid-border-col");
f.setStyleName(1, 0, "myGrid my-Grid-e  my-Grid-border-col")


For some reasons, the myGrid style specified in Grid has no effect in the
cells.

Thanks Ian, you shown me a good CSS example and it is very helpful for a
Java Swing developer like me ;-)



On Mon, Jun 29, 2009 at 8:06 PM, Ian Bambury  wrote:

> You can apply border-spacing to a table (e.g. your grid) which adjusts the
> spacing between cells. To get rid of it completely, you need to set
> border-collapse:collapse to the *table* (not the cells - i.e.not the td
> elements)
> I think you can get away with setting font-size on the table/grid and to
> make the css easier, you might like to set style something like below. It
> makes the code easier to read (e.g. every cell has ne. n, nw to indicate
> where it is in the grid) and the css is so much simpler - you set all the
> widths/heights in one place and therefore don't miss any if you change from
> 5px to 3px, say.
>
> Grid grid = new Grid(3, 3);
> grid.setStylePrimaryName("my-Grid");
> CellFormatter f = grid.getCellFormatter();
> f.setStyleName(0, 0, "my-Grid-ne my-Grid-border-row
> my-Grid-border-col");
> f.setStyleName(0, 1, "my-Grid-n  my-Grid-border-row");
> f.setStyleName(0, 1, "my-Grid-nw my-Grid-border-row
> my-Grid-border-col");
> f.setStyleName(1, 0, "my-Grid-e  my-Grid-border-col");
> .
> .
> .
> and then the css is simpler
>
> .my-Grid
> {
> font-size   :  1px;
> border-collapse :   collapse;
> }
> .my-Grid-border-row
> {
> height  :5px;
> }
> .my-Grid-border-col
> {
> width   :5px;
> }
> .my-Grid-ne
> {
> /* put the north-east corner image here */
> }
> etc
>
> Ian
>
> http://examples.roughian.com
>
>
>
> >
>


-- 

Hez

--~--~-~--~~~---~--~~
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: Problem specifying Grid's cell size

2009-06-28 Thread hezjing
Thanks Ian, the problem is resolved by setting the font size really small.
Note also that we don't have to set the font size for all the cells, only
setting the font size of the 1st row will do.

So here is my CSS for the cells in the 1st row:

.my-topLeft {
  background: url(images/wb-corner.png) no-repeat 0px 0px;
  width: 5px;
  height: 5px;
  font-size: 1px;
}

.my-topCenter {
  background: url(images/wb-hborder-top.png) repeat-x;
  width: 100%;
  height: 5px;
  font-size: 1px;
}

.my-topRight {
  background: url(images/wb-corner.png) no-repeat -5px 0px;
  width: 5px;
  height: 5px;
  font-size: 1px;
}


Then, I specify the above CSS into the grid to get a rounded corner effect:

Grid grid = new Grid(3, 3);
grid.setCellSpacing(0);

grid.setText(1, 1, "My Title");

CellFormatter formatter = grid.getCellFormatter();
formatter.setStyleName(0, 0, "my-topLeft");
formatter.setStyleName(0, 1, "my-topCenter");
formatter.setStyleName(0, 2, "my-topRight");


The above code is working fine, I have my rounded corner rectangle!


Here come with another question: I have to specify the cell spacing by
calling grid.setCellSpacing(0)
How can I move this cell spacing into the CSS?

I tried to create and set the CSS like the following:

.my {
  margin: 0px;
  padding: 0px;
}

Grid grid = new Grid(3, 3);
// grid.setCellSpacing(0);
grid.setStyleName("my");


But the above code doesn't work, I still have to specify the cell spacing in
the Java code :-(


Appreciate your advice, thank you!


On Mon, Jun 29, 2009 at 3:46 AM, Ian Bambury  wrote:

> Yep. There's an   in the cell so you will have to set the font size
> really small.
> You'd be better off doing all this by setting style classes and doing it in
> css.
>
> Ian
>
> http://examples.roughian.com
>
>
> 2009/6/28 hezjing 
>
> Hi
>>
>> I want to achieve a rounded corner rectangle using Grid.
>>
>> Here I create a 3x3 grid:
>>
>> Grid grid = new Grid(3, 3);
>>  grid.setCellPadding(0);
>> grid.setCellSpacing(0);
>> // display the border for debugging
>>  grid.setBorderWidth(1);
>>
>>
>> Imagine that I have a 5x5 pixel corner images, so I specify the width and
>> height of the top row like the following:
>>
>> CellFormatter formatter = grid.getCellFormatter();
>> // top left corner
>>  formatter.setWidth(0, 0, "5px");
>> formatter.setHeight(0, 0, "5px");
>>  // top center
>> formatter.setWidth(0, 1, "100%");
>> formatter.setHeight(0, 1, "5px");
>>  // top right corner
>> formatter.setWidth(0, 2, "5px");
>> formatter.setHeight(0, 2, "5px");
>>
>>
>> The problem is when tested in hosted mode, the cell doesn't display in the
>> specified height!
>>
>> Did I miss anything here?
>>
>>
>> Please help, thank you!
>>
>>
>> --
>>
>> Hez
>>
>>
>>
>
> >
>


-- 

Hez

--~--~-~--~~~---~--~~
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 specifying Grid's cell size

2009-06-28 Thread hezjing
Hi

I want to achieve a rounded corner rectangle using Grid.

Here I create a 3x3 grid:

Grid grid = new Grid(3, 3);
grid.setCellPadding(0);
grid.setCellSpacing(0);
// display the border for debugging
grid.setBorderWidth(1);


Imagine that I have a 5x5 pixel corner images, so I specify the width and
height of the top row like the following:

CellFormatter formatter = grid.getCellFormatter();
// top left corner
formatter.setWidth(0, 0, "5px");
formatter.setHeight(0, 0, "5px");
// top center
formatter.setWidth(0, 1, "100%");
formatter.setHeight(0, 1, "5px");
// top right corner
formatter.setWidth(0, 2, "5px");
formatter.setHeight(0, 2, "5px");


The problem is when tested in hosted mode, the cell doesn't display in the
specified height!

Did I miss anything here?


Please help, thank you!


-- 

Hez

--~--~-~--~~~---~--~~
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 avoid creating label which does not receive event?

2009-06-27 Thread hezjing
Hi Ian
Can you elaborate more of why you think the DecoratorPanel is overkill in my
case?

It would be very helpful to know how to choose a widget over the others.


I still have questions on how to implement a rounded corner in 3x3 grid, but
I think I will start a new thread to discuss that.


Thank you!


On Sun, Jun 28, 2009 at 5:36 AM, Ian Bambury  wrote:

> Given that the only thing you can add is a widget, I suspect that you are a
> bit stuck.
> But DecoratorPanels might be a bit over the top for what you need. Have you
> thought of a 9-box grid where you set the bg image,(and maybe height and
> width) of the outside cells and the text of the centre cell?
> Ian
>
> http://examples.roughian.com
>
>
> 2009/6/27 hezjing 
>
> Hi
>> In
>> http://code.google.com/events/io/sessions/MeasureMillisecondsPerformanceTipsWebToolkit.html,
>>  Kelly
>> Norton explains that we should avoid using widget if it does not receive
>> event.
>>
>> I look at my current code and found that I have been using labels to
>> display titles.
>> These titles are static string and do not receive event, and so I think I
>> should avoid using the labels.
>>
>> For example, to display a title in a rounded corner panel, I added a Label
>> into a DecoratorPanel:
>>
>> class RoundedTitle extends Composite {
>> MyClass() {
>>  Label title = new Label("Login");
>> DecoratorPanel panel = new DecoratorPanel();
>>  panel.add(title);
>> initWidget(panel);
>> }
>> }
>>
>>
>> May I know how should we eliminate the label in this situation, and set
>> the title (or string) into DecoratorPanel?
>>
>>
>> --
>>
>> Hez
>>
>>
>>
>
> >
>


-- 

Hez

--~--~-~--~~~---~--~~
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 avoid creating label which does not receive event?

2009-06-27 Thread hezjing
Hi
In
http://code.google.com/events/io/sessions/MeasureMillisecondsPerformanceTipsWebToolkit.html,
Kelly
Norton explains that we should avoid using widget if it does not receive
event.

I look at my current code and found that I have been using labels to display
titles.
These titles are static string and do not receive event, and so I think I
should avoid using the labels.

For example, to display a title in a rounded corner panel, I added a Label
into a DecoratorPanel:

class RoundedTitle extends Composite {
MyClass() {
Label title = new Label("Login");
DecoratorPanel panel = new DecoratorPanel();
panel.add(title);
initWidget(panel);
}
}


May I know how should we eliminate the label in this situation, and set the
title (or string) into DecoratorPanel?


-- 

Hez

--~--~-~--~~~---~--~~
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 DOM classes improve performance?

2009-06-25 Thread hezjing
Hi

I'm reading
http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/a789d84722d2d80c
:


On Fri, Jun 26, 2009 at 10:37 AM, Arthur Kalmenson 
 wrote:

>
> - don't create a lot of widgets if you don't have to, think about using the
> DOM classes.



I'm not sure how DOM classes will improve performance.

Can Arthur or someone explains further on this?
Some examples would be very helpful too!


Thank you very much!


-- 

Hez

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Specify column header in AbstractColumnDefinition.setHeader() and FixedWidthFlexTable.setHTML()

2009-06-25 Thread hezjing
Hi

I'm working on PagingScrollTable.

May I know what is the different if we specify a column header
using AbstractColumnDefinition.setHeader(row, Object)
and using FixedWidthFlexTable like the following code?

FixedWidthFlexTable headerTable = new FixedWidthFlexTable();
headerTable.setHTML(0, 1, "Name");


For some reasons, I couldn't see the column header specified
using AbstractColumnDefinition.setHeader(),
but the FixedWidthFlexTable is working just fine.


-- 

Hez

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Disable checkbox when data table selection policy is checkbox

2009-06-25 Thread hezjing
Hi

I'm working on the PagingScrollTable.

When specify the selection policy to checkbox in the data table like this,

FixedWidthGrid dataTable = new FixedWidthGrid();
dataTable.setSelectionPolicy(SelectionPolicy.CHECKBOX);


Then, all rows will have a checkbox.

But, how can I disable (or hide) the checkbox for some rows based on some
condition?


-- 

Hez

--~--~-~--~~~---~--~~
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: PagingScrollTable generates PageChangeEvent between builds

2009-06-24 Thread hezjing
With the latest trunk build, we have to call
pagingScrollTable.gotoFirstPage() to load the data.


On Tue, Jun 23, 2009 at 1:35 AM, hezjing  wrote:

> Hi
> The PagingScrollTable seems to behave differently
> between gwt-incubator-march-02-2009.jar and the one I built from the trunk
> (r1684).
>
> With gwt-incubator-march-02-2009.jar, the PageChangeEvent is generated to
> the PageChangeHandler when the table is first displayed.
>
> With the latest build, there is no PageChangeEvent generated.
>
>
> Is this normal?
>
>
> --
>
> Hez
>



-- 

Hez

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



PagingScrollTable generates PageChangeEvent between builds

2009-06-22 Thread hezjing
Hi
The PagingScrollTable seems to behave differently
between gwt-incubator-march-02-2009.jar and the one I built from the trunk
(r1684).

With gwt-incubator-march-02-2009.jar, the PageChangeEvent is generated to
the PageChangeHandler when the table is first displayed.

With the latest build, there is no PageChangeEvent generated.


Is this normal?


-- 

Hez

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Javadoc of PagingScrollTable's constructor

2009-06-22 Thread hezjing
Hi

In the GWT incubator example PagingScrollTableDemo.java, it creates a
PagingScrollTable with two parameters:

pagingScrollTable = new PagingScrollTable(cachedTableModel,
tableDef);


but this constructor (with two parameters) is not described in the Javadoc
http://collectionofdemos.appspot.com/javadoc/com/google/gwt/gen2/table/client/PagingScrollTable.html


May I know if there is an up-to-date Javadoc for the GWT incubator?


Thank you!

-- 

Hez

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



PagingScrollTable: little left-right arrow image

2009-06-20 Thread hezjing
Hi
While working on the PagingScrollTable, there is this little left-right
arrow image shown on the screen (see attached).


Do you have any idea what is this?


-- 

Hez

--~--~-~--~~~---~--~~
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: trying up gwt incubator scrollTable problem

2009-06-20 Thread hezjing
Hi

You may want to check Table.gwt.xml shown in
http://google-web-toolkit-incubator.googlecode.com/svn/trunk/src/com/google/gwt/gen2/table/Table.gwt.xml

Do you have the modules inherited like the following?









On Sat, Jun 20, 2009 at 5:44 PM, asianCoolz  wrote:

>
> i trying out the incubator
>
> http://code.google.com/docreader/#p=google-web-toolkit-incubator&s=google-web-toolkit-incubator&t=PagingScrollTable
> "scroll table" but when i try to run the example, i get error below
>
> [ERROR] Line 150: No source code is available for type
> com.google.gwt.gen2.table.client.FixedWidthFlexTable; did you forget
> to inherit a required module?
> [ERROR] Line 152: No source code is available for type
> com.google.gwt.gen2.table.client.FixedWidthGrid; did you forget to
> inherit a required module?
>
>
> do i need to include source codes for incubator ?
> >
>


-- 

Hez

--~--~-~--~~~---~--~~
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: Hyperlink is not working after 1st try

2009-06-20 Thread hezjing
To close this thread, the solution is to rest the history token by adding
the following line:

private void displayLogin() {
...
// reset the current token
History.newItem("login", false);
}


Thanks Ian and Paul!


On Sun, Jun 21, 2009 at 2:56 AM, Paul Robinson  wrote:

>
> The first time you press the hyperlink to "logout", there's a new
> history item added of that name. The second time you press it, the
> current history token is still "logout", so it does nothing.
>
>
> hezjing wrote:
> > Hi
> >
> > I have the following code which suppose to do the following:
> >
> > 1) when the login button is clicked, it will clear the RootPanel and
> > show a logout hyperlink,
> >
> > 2) when the logout hyperlink is selected, it will clear the RootPanel
> > and show the login button again.
> >
> >
> > public class Dummy implements EntryPoint, ValueChangeHandler {
> >
> > public void onModuleLoad() {
> > History.addValueChangeHandler(this);
> > displayLogin();
> > }
> >
> > private void displayLogin() {
> > Button ok = new Button("Login");
> > ok.addClickHandler(new ClickHandler() {
> > public void onClick(ClickEvent event) {
> > displayContent();
> > }
> > });
> > RootPanel root = RootPanel.get();
> > root.clear();
> > root.add(ok);
> > }
> >
> > private void displayContent() {
> > Hyperlink logout = new Hyperlink("Logout", "logout");
> > RootPanel root = RootPanel.get();
> > root.clear();
> > root.add(logout);
> > }
> >
> > public void onValueChange(ValueChangeEvent event) {
> > if (event.getValue().equals("logout")) {
> > displayLogin();
> > }
> > }
> > }
> >
> >
> > The problem is when tested in hosted mode, the hyperlink stops
> > responding after the 1st time:
> >
> > 1) Login button is clicked, show logout hyperlink
> >
> > 2) Logout hyperlink is selected, show login button
> >
> > 3) Login button is clicked, show logout hyperlink
> >
> > 4) Logout hyperlink is selected, and NOTHING happen here!
> >
> >
> > Do you have any idea of what could be the problem?
> >
> >
> > --
> >
> > Hez
> >
> > >
>
> >
>


-- 

Hez

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Hyperlink is not working after 1st try

2009-06-20 Thread hezjing
Hi

I have the following code which suppose to do the following:

1) when the login button is clicked, it will clear the RootPanel and show a
logout hyperlink,

2) when the logout hyperlink is selected, it will clear the RootPanel and
show the login button again.


public class Dummy implements EntryPoint, ValueChangeHandler {

public void onModuleLoad() {
History.addValueChangeHandler(this);
displayLogin();
}

private void displayLogin() {
Button ok = new Button("Login");
ok.addClickHandler(new ClickHandler() {
public void onClick(ClickEvent event) {
displayContent();
}
});
RootPanel root = RootPanel.get();
root.clear();
root.add(ok);
}

private void displayContent() {
Hyperlink logout = new Hyperlink("Logout", "logout");
RootPanel root = RootPanel.get();
root.clear();
root.add(logout);
}

public void onValueChange(ValueChangeEvent event) {
if (event.getValue().equals("logout")) {
displayLogin();
}
}
}


The problem is when tested in hosted mode, the hyperlink stops responding
after the 1st time:

1) Login button is clicked, show logout hyperlink

2) Logout hyperlink is selected, show login button

3) Login button is clicked, show logout hyperlink

4) Logout hyperlink is selected, and NOTHING happen here!


Do you have any idea of what could be the problem?


-- 

Hez

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



ValueChangeHandler should be parameterized in the Javadoc of Hyperlink

2009-06-20 Thread hezjing
Hi
ValueChangeHandler is a parameterized interface.

Hence, I think the example given in the Javadoc of Hyperlink should be
changed from:


public
class HistoryExample implements EntryPoint, ValueChangeHandler {
...
public void onValueChange(ValueChangeEvent event) {
...
}
}


to the following:


public class HistoryExample implements EntryPoint,
ValueChangeHandler {
...
public void onValueChange(ValueChangeEvent event) {
...
}
}


-- 

Hez

--~--~-~--~~~---~--~~
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 retrieve EntryPoint object?

2009-06-19 Thread hezjing
Hi
A quick question, is there a convenient method to retrieve EntryPoint
object?

-- 

Hez

--~--~-~--~~~---~--~~
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: Web app classpath problem

2009-06-18 Thread hezjing
To close this thread, the solution is to
copy commons-collections.jar into war\WEB-INF\lib


On Mon, May 25, 2009 at 11:08 PM, hezjing  wrote:

> This problem is discussed in
> http://groups.google.com/group/Google-Web-Toolkit-Contributors/msg/446da2497826c290?pli=1
>
> <http://groups.google.com/group/Google-Web-Toolkit-Contributors/msg/446da2497826c290?pli=1>
> On Mon, May 25, 2009 at 9:29 PM, hezjing  wrote:
>
>> Hi
>> I'm getting the following warning in the hosted mode console:
>>
>> [INFO] Starting Jetty on port 8080
>> [WARN] Server class
>> 'org.apache.commons.collections.map.CaseInsensitiveMap' could not be found
>> in the web app, but was found on the system classpath
>> [WARN] Adding classpath entry
>> 'file:/C:/eclipse/plugins/com.google.gwt.eclipse.sdkbundle.win32_1.6.4.v200904062334/gwt-windows-1.6.4/gwt-dev-windows.jar'
>> to the web app classpath for this session
>> More info:
>> file:/C:/eclipse/plugins/com.google.gwt.eclipse.sdkbundle.win32_1.6.4.v200904062334/gwt-windows-1.6.4/doc/helpInfo/webAppClassPath.html
>>
>>
>> I followed the tip described
>> in gwt-windows-1.6.4\doc\helpInfo\webAppClassPath.html, and ensure
>> that gwt-servlet.jar is already in war\WEB-INF\lib
>> but the problem still exist!
>>
>>
>> Do you have any idea?
>>
>>
>> --
>>
>> Hez
>>
>
>
>
> --
>
> Hez
>



-- 

Hez

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Aligning labels and fields

2009-06-18 Thread hezjing
Hi

I have been implementing the input form like the following code:

Label nameLabel = new Label("Name");
 TextBox nameTextBox = new TextBox();

Label ageLabel = new Label("Age");
 TextBox ageTextBox = new TextBox();

// we have two labels and two fields, so 2x2
 Grid grid = new Grid(2, 2);
grid.setWidget(0, 0, nameLabel);
grid.setWidget(0, 1, nameTextBox );
 grid.setWidget(1, 0, ageLabel);
grid.setWidget(1, 1, ageTextBox);

 // set the style to every cell
CellFormatter fmt = grid.getCellFormatter();
 fmt.setStyleName(0, 0, "labelStyle");
fmt.setStyleName(0, 1, "inputStyle");
 fmt.setStyleName(1, 0, "labelStyle");
fmt.setStyleName(1, 1, "inputStyle");


I'm using Grid because I want the labels and fields to be aligned.

The code becomes ugly when there are 10 or more fields!


Can you share your experience in aligning the labels and fields (form) in
plain GWT?


-- 

Hez

--~--~-~--~~~---~--~~
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: PagingScrollTable cannot find scrollTableLoading.gif

2009-06-18 Thread hezjing
I think the same issue is reported in
http://code.google.com/p/google-web-toolkit-incubator/issues/detail?id=271


<http://code.google.com/p/google-web-toolkit-incubator/issues/detail?id=271>Phew
... thanks for your help!

On Thu, Jun 18, 2009 at 11:14 PM, Isaac Truett  wrote:

> Okay. So the quickest fix is probably to just copy scrollTableLoading.gif
> into war/.
> The problem is that PagingOptions refers to the image like so:
>
> loadingImage = new Image("scrollTableLoading.gif");
>
> Where it should probably be:
>
> loadingImage = new Image(GWT.getModuleBaseURL() +
> "scrollTableLoading.gif");
>
> I can put in a quick patch for this later.
>
>
>
> On Thu, Jun 18, 2009 at 11:06 AM, hezjing  wrote:
> >
> > Yes, the scrollTableLoading.gif is found in war/[module name] directory.
> > The HTML file is in war/ directory.
> >
> > On Thu, Jun 18, 2009 at 10:49 PM, Isaac Truett 
> wrote:
> >>
> >> On Thu, Jun 18, 2009 at 10:29 AM, hezjing  wrote:
> >> >
> >> > Hi Isaac
> >> > I'm using Google plugin, how do I check if the -noserver is set?
> >>
> >> The "Run built-in server" checkbox would be unchecked under the
> >> Embedded Server in the run/debug profile.
> >>
> >>
> >> > Anyway, I guess by default there is no -noserver :-)
> >>
> >> Yep.
> >>
> >> > I don't have to deploy the images myself since they are already found
> in war\WEB-INF\lib\gwt-incubator-march-02-2009.jar, right?
> >> >
> >>
> >> Yes and no. The image needs to be served up like any other image from
> >> a web server, so it has to be in a public directory (unless you're
> >> serving up images yourself, such as with a Servlet). The GWT
> >> compilation process should take care of moving images into the right
> >> place normally, so you wouldn't need to do that yourself. The image
> >> should be located at war/[module name]/scrollTableLoading.gif, giving
> >> it a URL path of /[module name]/scrollTableLoading.gif. But from your
> >> original post, it looks like /scrollTableLoading.gif is being
> >> requested (without the module name). Something's off in the relative
> >> paths. Where's the HTML file that loads your module? Is there a
> >> scrollTableLoading.gif in war/[module name]/ or anywhere else under
> >> war/ outside of the incubator jar?
> >>
> >>
> >>
> >> > Thanks for your help!
> >> >
> >> >
> >> > On Thu, Jun 18, 2009 at 10:12 PM, Isaac Truett 
> wrote:
> >> >>
> >> >> Well... it's a 404, so the URL doesn't map to anything. Are you
> running with -noserver? If so, did you deploy the image to your server in
> the proper location?
> >> >>
> >> >> On Tue, Jun 16, 2009 at 9:39 PM, hezjing  wrote:
> >> >>>
> >> >>> Hi Isaac
> >> >>> Hmmm ... you're right, the scrollTableLoading.gif is found
> in gwt-incubator-march-02-2009.jar.
> >> >>> Then, do you have any idea why is it showing 404 warning while
> trying to load scrollTableLoading.gif?
> >> >>>
> >> >>> On Wed, Jun 17, 2009 at 4:30 AM, Isaac Truett 
> wrote:
> >> >>>>
> >> >>>> Are you sure you're looking in the right place? There are copies of
> >> >>>> scrollTableLoading.gif located in com/google/gwt/gen2/table/public
> and
> >> >>>> com/google/widgetideas/table/public
> >> >>>>
> >> >>>>
> http://code.google.com/p/google-web-toolkit-incubator/source/browse/trunk/src/com/google/gwt/gen2/table/public/scrollTableLoading.gif
> >> >>>>
> >> >>>>
> http://code.google.com/p/google-web-toolkit-incubator/source/browse/trunk/src/com/google/gwt/widgetideas/table/public/scrollTableLoading.gif
> >> >>>>
> >> >>>>
> >> >>>> On Tue, Jun 16, 2009 at 12:56 PM, hezjing
> wrote:
> >> >>>> > Hi
> >> >>>> > Apparently, the scrollTableLoading.gif is the image display next
> to the last
> >> >>>> > button while loading the data.
> >> >>>> > You will see this image if table is taking long time to load the
> data.
> >> >>>> > scrollTableLoading.gif does not comes with the GWT incubator
> distribution,
> >> >>>> > you

Re: PagingScrollTable cannot find scrollTableLoading.gif

2009-06-18 Thread hezjing
Yes, the scrollTableLoading.gif is found in war/[module name] directory.

The HTML file is in war/ directory.


On Thu, Jun 18, 2009 at 10:49 PM, Isaac Truett  wrote:

>
> On Thu, Jun 18, 2009 at 10:29 AM, hezjing  wrote:
> >
> > Hi Isaac
> > I'm using Google plugin, how do I check if the -noserver is set?
>
> The "Run built-in server" checkbox would be unchecked under the
> Embedded Server in the run/debug profile.
>
>
> > Anyway, I guess by default there is no -noserver :-)
>
> Yep.
>
> > I don't have to deploy the images myself since they are already found
> in war\WEB-INF\lib\gwt-incubator-march-02-2009.jar, right?
> >
>
> Yes and no. The image needs to be served up like any other image from
> a web server, so it has to be in a public directory (unless you're
> serving up images yourself, such as with a Servlet). The GWT
> compilation process should take care of moving images into the right
> place normally, so you wouldn't need to do that yourself. The image
> should be located at war/[module name]/scrollTableLoading.gif, giving
> it a URL path of /[module name]/scrollTableLoading.gif. But from your
> original post, it looks like /scrollTableLoading.gif is being
> requested (without the module name). Something's off in the relative
> paths. Where's the HTML file that loads your module? Is there a
> scrollTableLoading.gif in war/[module name]/ or anywhere else under
> war/ outside of the incubator jar?
>
>
>
> > Thanks for your help!
> >
> >
> > On Thu, Jun 18, 2009 at 10:12 PM, Isaac Truett 
> wrote:
> >>
> >> Well... it's a 404, so the URL doesn't map to anything. Are you running
> with -noserver? If so, did you deploy the image to your server in the proper
> location?
> >>
> >> On Tue, Jun 16, 2009 at 9:39 PM, hezjing  wrote:
> >>>
> >>> Hi Isaac
> >>> Hmmm ... you're right, the scrollTableLoading.gif is found
> in gwt-incubator-march-02-2009.jar.
> >>> Then, do you have any idea why is it showing 404 warning while trying
> to load scrollTableLoading.gif?
> >>>
> >>> On Wed, Jun 17, 2009 at 4:30 AM, Isaac Truett 
> wrote:
> >>>>
> >>>> Are you sure you're looking in the right place? There are copies of
> >>>> scrollTableLoading.gif located in com/google/gwt/gen2/table/public and
> >>>> com/google/widgetideas/table/public
> >>>>
> >>>>
> http://code.google.com/p/google-web-toolkit-incubator/source/browse/trunk/src/com/google/gwt/gen2/table/public/scrollTableLoading.gif
> >>>>
> >>>>
> http://code.google.com/p/google-web-toolkit-incubator/source/browse/trunk/src/com/google/gwt/widgetideas/table/public/scrollTableLoading.gif
> >>>>
> >>>>
> >>>> On Tue, Jun 16, 2009 at 12:56 PM, hezjing wrote:
> >>>> > Hi
> >>>> > Apparently, the scrollTableLoading.gif is the image display next to
> the last
> >>>> > button while loading the data.
> >>>> > You will see this image if table is taking long time to load the
> data.
> >>>> > scrollTableLoading.gif does not comes with the GWT incubator
> distribution,
> >>>> > you need to manually create one.
> >>>> >
> >>>> >
> >>>> > On Sun, Jun 7, 2009 at 2:02 PM, hezjing  wrote:
> >>>> >>
> >>>> >> Hi
> >>>> >> While I'm testing the PagingScrollTable, the hosted mode console
> complaint
> >>>> >> the following warning:
> >>>> >> [WARN] 404 - GET /scrollTableLoading.gif (127.0.0.1) 1408 bytes
> >>>> >>
> >>>> >> May I know why is this warning?
> >>>> >> Should we create this scrollTableLoading.gif?
> >>>> >>
> >>>> >> --
> >>>> >>
> >>>> >> Hez
> >>>> >
> >>>> >
> >>>> >
> >>>> > --
> >>>> >
> >>>> > Hez
> >>>> >
> >>>> > >
> >>>> >
> >>>>
> >>>>
> >>>
> >>>
> >>>
> >>> --
> >>>
> >>> Hez
> >>>
> >>>
> >>
> >>
> >>
> >
> >
> >
> > --
> >
> > Hez
> >
> > >
>
> >
>


-- 

Hez

--~--~-~--~~~---~--~~
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: PagingScrollTable cannot find scrollTableLoading.gif

2009-06-18 Thread hezjing
Hi Isaac
I'm using Google plugin, how do I check if the -noserver is set?
Anyway, I guess by default there is no -noserver :-)

I don't have to deploy the images myself since they are already found
in war\WEB-INF\lib\gwt-incubator-march-02-2009.jar, right?


Thanks for your help!



On Thu, Jun 18, 2009 at 10:12 PM, Isaac Truett  wrote:

> Well... it's a 404, so the URL doesn't map to anything. Are you running
> with -noserver? If so, did you deploy the image to your server in the proper
> location?
>
>
> On Tue, Jun 16, 2009 at 9:39 PM, hezjing  wrote:
>
>> Hi Isaac
>> Hmmm ... you're right, the scrollTableLoading.gif is found
>> in gwt-incubator-march-02-2009.jar.
>> Then, do you have any idea why is it showing 404 warning while trying to
>> load scrollTableLoading.gif?
>>
>>
>> On Wed, Jun 17, 2009 at 4:30 AM, Isaac Truett  wrote:
>>
>>>
>>> Are you sure you're looking in the right place? There are copies of
>>> scrollTableLoading.gif located in com/google/gwt/gen2/table/public and
>>> com/google/widgetideas/table/public
>>>
>>>
>>> http://code.google.com/p/google-web-toolkit-incubator/source/browse/trunk/src/com/google/gwt/gen2/table/public/scrollTableLoading.gif
>>>
>>>
>>> http://code.google.com/p/google-web-toolkit-incubator/source/browse/trunk/src/com/google/gwt/widgetideas/table/public/scrollTableLoading.gif
>>>
>>>
>>> On Tue, Jun 16, 2009 at 12:56 PM, hezjing wrote:
>>> > Hi
>>> > Apparently, the scrollTableLoading.gif is the image display next to the
>>> last
>>> > button while loading the data.
>>> > You will see this image if table is taking long time to load the data.
>>> > scrollTableLoading.gif does not comes with the GWT incubator
>>> distribution,
>>> > you need to manually create one.
>>> >
>>> >
>>> > On Sun, Jun 7, 2009 at 2:02 PM, hezjing  wrote:
>>> >>
>>> >> Hi
>>> >> While I'm testing the PagingScrollTable, the hosted mode console
>>> complaint
>>> >> the following warning:
>>> >> [WARN] 404 - GET /scrollTableLoading.gif (127.0.0.1) 1408 bytes
>>> >>
>>> >> May I know why is this warning?
>>> >> Should we create this scrollTableLoading.gif?
>>> >>
>>> >> --
>>> >>
>>> >> Hez
>>> >
>>> >
>>> >
>>> > --
>>> >
>>> > Hez
>>> >
>>> > >
>>> >
>>>
>>>
>>>
>>
>>
>> --
>>
>> Hez
>>
>>
>>
>
> >
>


-- 

Hez

--~--~-~--~~~---~--~~
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: Inserting header and footer into DecoratorPanel

2009-06-18 Thread hezjing
Hi

The Lombardi team talked about this similar UI (RoundedContainerWithHeader)
in Google IO, see
http://code.google.com/events/io/sessions/EffectiveGwt.html (slide 10) ...


On Sun, May 3, 2009 at 3:32 PM, hezjing  wrote:

> Hi
> On Sun, May 3, 2009 at 2:12 PM, Adam T  wrote:
>
>> So, the top of the DecoratorPanel is one colour and the bottom
>> another?
>
>
> Yes.
>
>
>
>> Couldn't you have an image in the css for the vertical
>> borders that faded between the two colours (though that might not look
>> so good as the panel increases in height)?
>>
>
> Exactly, the height can be varied.
> I'm wondering how to create a vertical borders that is applicable for
> different height.
>
>
> --
>
> Hez
>



-- 

Hez

--~--~-~--~~~---~--~~
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: PagingScrollTable cannot find scrollTableLoading.gif

2009-06-16 Thread hezjing
Hi Isaac
Hmmm ... you're right, the scrollTableLoading.gif is found
in gwt-incubator-march-02-2009.jar.
Then, do you have any idea why is it showing 404 warning while trying to
load scrollTableLoading.gif?


On Wed, Jun 17, 2009 at 4:30 AM, Isaac Truett  wrote:

>
> Are you sure you're looking in the right place? There are copies of
> scrollTableLoading.gif located in com/google/gwt/gen2/table/public and
> com/google/widgetideas/table/public
>
>
> http://code.google.com/p/google-web-toolkit-incubator/source/browse/trunk/src/com/google/gwt/gen2/table/public/scrollTableLoading.gif
>
>
> http://code.google.com/p/google-web-toolkit-incubator/source/browse/trunk/src/com/google/gwt/widgetideas/table/public/scrollTableLoading.gif
>
>
> On Tue, Jun 16, 2009 at 12:56 PM, hezjing wrote:
> > Hi
> > Apparently, the scrollTableLoading.gif is the image display next to the
> last
> > button while loading the data.
> > You will see this image if table is taking long time to load the data.
> > scrollTableLoading.gif does not comes with the GWT incubator
> distribution,
> > you need to manually create one.
> >
> >
> > On Sun, Jun 7, 2009 at 2:02 PM, hezjing  wrote:
> >>
> >> Hi
> >> While I'm testing the PagingScrollTable, the hosted mode console
> complaint
> >> the following warning:
> >> [WARN] 404 - GET /scrollTableLoading.gif (127.0.0.1) 1408 bytes
> >>
> >> May I know why is this warning?
> >> Should we create this scrollTableLoading.gif?
> >>
> >> --
> >>
> >> Hez
> >
> >
> >
> > --
> >
> > Hez
> >
> > >
> >
>
> >
>


-- 

Hez

--~--~-~--~~~---~--~~
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: PagingScrollTable cannot find scrollTableLoading.gif

2009-06-16 Thread hezjing
Hi

Apparently, the scrollTableLoading.gif is the image display next to the last
button while loading the data.You will see this image if table is taking
long time to load the data.

scrollTableLoading.gif does not comes with the GWT incubator distribution,
you need to manually create one.


On Sun, Jun 7, 2009 at 2:02 PM, hezjing  wrote:

> Hi
> While I'm testing the PagingScrollTable, the hosted mode console complaint
> the following warning:
>
> [WARN] 404 - GET /scrollTableLoading.gif (127.0.0.1) 1408 bytes
>
>
> May I know why is this warning?
> Should we create this scrollTableLoading.gif?
>
>
> --
>
> Hez
>



-- 

Hez

--~--~-~--~~~---~--~~
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: Session id and client side IP

2009-06-08 Thread hezjing
Hi Abhiram
Have a look at
http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/a95f12f6972d8cab
of  how to obtaining the client's address.


On Tue, Jun 9, 2009 at 1:15 PM, abhiram  wrote:

>
> Hi,
>
>  How do I get the IP address of the person who is logging in from the
> client side?
>  And is the session id something that is generated from the client
> side or the server sends back to the client side after it is contacted
> for the first time by the client?
>
>  Regards,
> Abhiram
> >
>


-- 

Hez

--~--~-~--~~~---~--~~
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: What is FixedWidthGridBulkRenderer?

2009-06-08 Thread hezjing
What will happen if a PagingScrollTable does not have
a FixedWidthGridBulkRenderer?Does this means the table without a bulk
renderer will simply be rendered slowly?


On Tue, Jun 9, 2009 at 1:26 AM, jay  wrote:

>
> Bulk loading is the process of creating a string to represent the
> HTML, and then inserting the entire string into the DOM, allowing the
> browser to do the "heavy lifting" of creating all the DOM elements.
>
> My understanding (and experience) is that this technique is incredibly
> fast compared to creating and inserting individual DOM elements.
>
> (I hope I'm answering the question you were trying to ask...if you're
> interested in the internals of the bulk loader, then I guess my answer
> doesn't help you...)
>
> jay
>
> On Jun 8, 8:51 am, hezjing  wrote:
> > Hi
> > I don't understand FixedWidthGridBulkRenderer class while working with
> > PagingScrollTable,see alsohttp://
> collectionofdemos.appspot.com/javadoc/com/google/gwt/gen2/tabl...
> > .
> >
> > What does a helper class to bulk load FixedWidthGrid tables really mean?
> > Can someone elaborate on this?
> >
> > Thank you!
> >
> > --
> >
> > Hez
> >
>


-- 

Hez

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



What is FixedWidthGridBulkRenderer?

2009-06-08 Thread hezjing
Hi
I don't understand FixedWidthGridBulkRenderer class while working with
PagingScrollTable,see also
http://collectionofdemos.appspot.com/javadoc/com/google/gwt/gen2/table/client/FixedWidthGridBulkRenderer.html
.

What does a helper class to bulk load FixedWidthGrid tables really mean?
Can someone elaborate on this?


Thank you!

-- 

Hez

--~--~-~--~~~---~--~~
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 specify number of rows of PagingScrollTable?

2009-06-08 Thread hezjing
Hi
The problem is resovled :-)

Instead reset the number of rows in TableModel, I should really do it in
PageChangeHandler like the following:

public class MyPage implements PageChangeHandler {

private PagingScrollTable table;
...
public void onPageChange(PageChangeEvent event) {
final TableModel model = table.getTableModel();
// RPC call to return total of users
userService.getUserCount(new AsyncCallback() {
...
public void onSuccess(Integer total) {
model.setRowCount(total);
}
});
}
}


Thank you!


On Sun, Jun 7, 2009 at 10:49 PM, hezjing  wrote:

> Hi,
>
> I'm creating a PagingScrollTable, and want to set the total of rows after
> RPC call.
> Here is my client code snippet to create the table model:
>
> CachedTableModel cachedTableModel = new CachedTableModel(new
> UserTableModel());
>  cachedTableModel.setPreCachedRowCount(10);
> cachedTableModel.setPostCachedRowCount(10);
>
>
> Then, I'm trying to calculate the number of rows while creating the table
> model and every requestRows() is called:
>
> class UserTableModel extends MutableTableModel {
>
> UserTableModel() {
>  // RPC call to return total of users
>   userService.getUserCount(new AsyncCallback() {
>   ...
>   public void onSuccess(Integer total) {
>   setRowCount(total);
>   }
>   });
>  }
>
> public void requestRows(final Request request, final
> TableModel.Callback callback) {
>  ...
>   // RPC call to return total of users
>   userService.getUserCount(new AsyncCallback() {
>   ...
>   public void onSuccess(Integer total) {
>   setRowCount(total);
>   }
>   });
>  }
> }
>
>
> The problem is the PagingScrollTable does not showing the total of rows,
> the last button is not display too!
>
> May I know where is the appropriate place to reset the number of rows?
>
>
> Please help, thank you!
>
>
> --
>
> Hez
>



-- 

Hez

--~--~-~--~~~---~--~~
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 specify number of rows of PagingScrollTable?

2009-06-07 Thread hezjing
Hi,

I'm creating a PagingScrollTable, and want to set the total of rows after
RPC call.
Here is my client code snippet to create the table model:

CachedTableModel cachedTableModel = new CachedTableModel(new
UserTableModel());
cachedTableModel.setPreCachedRowCount(10);
cachedTableModel.setPostCachedRowCount(10);


Then, I'm trying to calculate the number of rows while creating the table
model and every requestRows() is called:

class UserTableModel extends MutableTableModel {

UserTableModel() {
 // RPC call to return total of users
 userService.getUserCount(new AsyncCallback() {
  ...
 public void onSuccess(Integer total) {
 setRowCount(total);
 }
 });
 }

public void requestRows(final Request request, final
TableModel.Callback callback) {
 ...
 // RPC call to return total of users
 userService.getUserCount(new AsyncCallback() {
  ...
 public void onSuccess(Integer total) {
 setRowCount(total);
 }
 });
 }
}


The problem is the PagingScrollTable does not showing the total of rows, the
last button is not display too!

May I know where is the appropriate place to reset the number of rows?


Please help, thank you!


-- 

Hez

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



PagingScrollTable cannot find scrollTableLoading.gif

2009-06-06 Thread hezjing
Hi
While I'm testing the PagingScrollTable, the hosted mode console complaint
the following warning:

[WARN] 404 - GET /scrollTableLoading.gif (127.0.0.1) 1408 bytes


May I know why is this warning?
Should we create this scrollTableLoading.gif?


-- 

Hez

--~--~-~--~~~---~--~~
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: Error link in GWT incubator page

2009-06-06 Thread hezjing
Hi
Yes, the Javadoc is now fixed but the live demo and the module are referring
to ScrollTable.

I think the live demo should be link to
http://collectionofdemos.appspot.com/demo/com.google.gwt.gen2.demo.scrolltable.PagingScrollTableDemo/PagingScrollTableDemo.html



On Fri, Jun 5, 2009 at 1:31 AM, Alex Rudnick  wrote:

>
> Thanks for the heads-up! Fixed :)
>
> On Thu, Jun 4, 2009 at 12:30 PM, hezjing  wrote:
> > Hi
> > I think there is an error in the GWT incubator page:
> > In
> http://code.google.com/p/google-web-toolkit-incubator/wiki/PagingScrollTable
> ,
> > the Java doc link is pointing
> > to .../com/google/gwt/gen2/table/client/ScrollTable.html
> > It should be pointing
> > to .../com/google/gwt/gen2/table/client/PagingScrollTable.html.
>
> --
> Alex Rudnick
> swe, gwt, atl
>
> >
>


-- 

Hez

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



PagingScrollTableDemo not found in GWT incubator demos

2009-06-05 Thread hezjing
Hi

I encounter the following error when clicked on the PagingScrollTableDemo
in http://collectionofdemos.appspot.com/demo/index.html

Error: Not Found
The requested URL
/demo/com.google.gwt.demos.scrolltable.PagingScrollTableDemo/PagingScrollTableDemo.html
was not found on this server.


-- 

Hez

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Download GWT incubator demo source code?

2009-06-04 Thread hezjing
Hi
I was looking at the GWT incubator demos at
http://collectionofdemos.appspot.com/demo/index.html
May I know if the demo source code is available for us to download?


Otherwise, I can only browse the source code at
http://google-web-toolkit-incubator.googlecode.com/svn/trunk/src-demo/com/google/gwt/gen2/demo/

:-(


-- 

Hez

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Error link in GWT incubator page

2009-06-04 Thread hezjing
Hi

I think there is an error in the GWT incubator page:

In
http://code.google.com/p/google-web-toolkit-incubator/wiki/PagingScrollTable
,the Java doc link is pointing to
.../com/google/gwt/gen2/table/client/ScrollTable.html

It should be pointing to
.../com/google/gwt/gen2/table/client/PagingScrollTable.html
.


-- 

Hez

--~--~-~--~~~---~--~~
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: Expire an idle session

2009-06-03 Thread hezjing
Hi Kamal
I removed the cookies too.

BTW, I saw some example that set the timeout like the following:

HttpSession session = getThreadLocalRequest().getSession();
session.setMaxInactiveInterval(1000 * 60);


I tried the above code before adding session-timeout in web.xml.
That doesn't work in my case, do you have any idea when to
use HttpSession.setMaxInactiveInterval()?


On Thu, Jun 4, 2009 at 12:59 AM, Kamal Chandana Mettananda  wrote:

> Seems you have set the session time out in server side. So what is the use
> of Cookies here?
>
> ---
> Kamal Mettananda
> http://lkamal.blogspot.com
>
>
> On Wed, Jun 3, 2009 at 10:00 PM, hezjing  wrote:
>
>> Hi
>>
>> Yes, it is working by setting the timeout in the server.
>>
>> To summarize, the following are what I did:
>>
>> 1) Configured the session timeout in web.xml (say for 1 minute):
>>
>> 
>> 1
>>  
>>
>>
>> 2) Then create a session in the login RemoteServiceServlet:
>>
>> /* user is authenticated */
>>  HttpSession session = getThreadLocalRequest().getSession();
>>
>>
>> 3) And check if a session has expired at the beginning of every RPC
>> method:
>>
>> HttpSession session  = getThreadLocalRequest().getSession(false);
>> if (session == null) {
>>  /* means the session has expired */
>> }
>>
>>
>>
>>
>> On Wed, Jun 3, 2009 at 11:12 PM, Kamal Chandana Mettananda <
>> lka...@gmail.com> wrote:
>>
>>> Hi Hez,
>>>
>>> As Tony said, setting the session time out in the server would be the
>>> better way.
>>>
>>> I guess that you are trying to set this timeout in client side because
>>> you let individual users configure their session time out period. If that is
>>> the case, then you will have to follow the way that have mentioned.
>>>
>>> HTH,
>>> Kamal
>>> ---
>>> Kamal Mettananda
>>> http://lkamal.blogspot.com
>>>
>>>
>>>
>>>
>>> On Wed, Jun 3, 2009 at 1:32 AM, Tony Strauss <
>>> tony.stra...@designingpatterns.com> wrote:
>>>
>>>>
>>>> What about timing out the session on the server?
>>>>
>>>> Assuming that you're using a Java application container on the server,
>>>> you can add the following to web.xml:
>>>>
>>>>  5
>>>>
>>>>
>>>> This will cause the server to time out connections after five minutes
>>>> of inactivity.  With this technique, it's actually possible to
>>>> intercept requests made after a time out in the onFailure() handler
>>>> and to take some kind of action (i.e., redirect to a login screen).
>>>>
>>>> Tony
>>>> --
>>>> Tony Strauss
>>>> Designing Patterns, LLC
>>>> http://www.designingpatterns.com
>>>> http://blogs.designingpatterns.com
>>>>
>>>> On Jun 2, 11:05 am, hezjing  wrote:
>>>> > Hi
>>>> >
>>>> > I want the session to be expired if the it is idle for 5 minutes.
>>>> >
>>>> > I have the following client code after a successful login:
>>>> >
>>>> > String sessionID = /* (Get sessionID from server's response to login
>>>> > request.) */ ;
>>>> > long DURATION = 1000 * 60 * 5;
>>>> > Date expires = new Date(System.currentTimeMillis() + DURATION);
>>>> > // the sid cookie will be expired after 5 min
>>>> > Cookies.setCookie("sid", sessionID, expires, null, "/", false);
>>>> >
>>>> > The problem with the above code is that the session cookie will be
>>>> expired 5
>>>> > minutes from the time the session is created and not from the time the
>>>> last
>>>> > request to the server.
>>>> > For example, if a session is created at 00:00, followed by a request
>>>> at
>>>> > 00:04, the cookie will still expire at 00:05 instead of 00:09.
>>>> >
>>>> > To do this, I have to reset the expiry time of the cookie in every RPC
>>>> call
>>>> > like the following:
>>>> >
>>>> > public void onFailure(Throwable caught) {
>>>> > ...
>>>> > // re-calculate the expiry time
>>>> > Date expires = new Date(System.currentTimeMillis() + DURATION)
>>>> > Cookies.setCookie("sid", sessionID, expires, null, "/", false);
>>>> >
>>>> > }
>>>> >
>>>> > public void onSuccess(...) {
>>>> > ...
>>>> > // re-calculate the expiry time
>>>> > Date expires = new Date(System.currentTimeMillis() + DURATION)
>>>> > Cookies.setCookie("sid", sessionID, expires, null, "/", false);
>>>> >
>>>> > }
>>>> >
>>>> > May I know if there a more elegant way of doing this?
>>>> >
>>>> > --
>>>> >
>>>> > Hez
>>>>
>>>>
>>>
>>>
>>>
>>
>>
>> --
>>
>> Hez
>>
>>
>>
>
> >
>


-- 

Hez

--~--~-~--~~~---~--~~
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: Expire an idle session

2009-06-03 Thread hezjing
Hi

Yes, it is working by setting the timeout in the server.

To summarize, the following are what I did:

1) Configured the session timeout in web.xml (say for 1 minute):


1



2) Then create a session in the login RemoteServiceServlet:

/* user is authenticated */
HttpSession session = getThreadLocalRequest().getSession();


3) And check if a session has expired at the beginning of every RPC method:

HttpSession session  = getThreadLocalRequest().getSession(false);
if (session == null) {
 /* means the session has expired */
}




On Wed, Jun 3, 2009 at 11:12 PM, Kamal Chandana Mettananda  wrote:

> Hi Hez,
>
> As Tony said, setting the session time out in the server would be the
> better way.
>
> I guess that you are trying to set this timeout in client side because you
> let individual users configure their session time out period. If that is the
> case, then you will have to follow the way that have mentioned.
>
> HTH,
> Kamal
> ---
> Kamal Mettananda
> http://lkamal.blogspot.com
>
>
>
>
> On Wed, Jun 3, 2009 at 1:32 AM, Tony Strauss <
> tony.stra...@designingpatterns.com> wrote:
>
>>
>> What about timing out the session on the server?
>>
>> Assuming that you're using a Java application container on the server,
>> you can add the following to web.xml:
>>
>>  5
>>
>>
>> This will cause the server to time out connections after five minutes
>> of inactivity.  With this technique, it's actually possible to
>> intercept requests made after a time out in the onFailure() handler
>> and to take some kind of action (i.e., redirect to a login screen).
>>
>> Tony
>> --
>> Tony Strauss
>> Designing Patterns, LLC
>> http://www.designingpatterns.com
>> http://blogs.designingpatterns.com
>>
>> On Jun 2, 11:05 am, hezjing  wrote:
>> > Hi
>> >
>> > I want the session to be expired if the it is idle for 5 minutes.
>> >
>> > I have the following client code after a successful login:
>> >
>> > String sessionID = /* (Get sessionID from server's response to login
>> > request.) */ ;
>> > long DURATION = 1000 * 60 * 5;
>> > Date expires = new Date(System.currentTimeMillis() + DURATION);
>> > // the sid cookie will be expired after 5 min
>> > Cookies.setCookie("sid", sessionID, expires, null, "/", false);
>> >
>> > The problem with the above code is that the session cookie will be
>> expired 5
>> > minutes from the time the session is created and not from the time the
>> last
>> > request to the server.
>> > For example, if a session is created at 00:00, followed by a request at
>> > 00:04, the cookie will still expire at 00:05 instead of 00:09.
>> >
>> > To do this, I have to reset the expiry time of the cookie in every RPC
>> call
>> > like the following:
>> >
>> > public void onFailure(Throwable caught) {
>> > ...
>> > // re-calculate the expiry time
>> > Date expires = new Date(System.currentTimeMillis() + DURATION)
>> > Cookies.setCookie("sid", sessionID, expires, null, "/", false);
>> >
>> > }
>> >
>> > public void onSuccess(...) {
>> > ...
>> > // re-calculate the expiry time
>> > Date expires = new Date(System.currentTimeMillis() + DURATION)
>> > Cookies.setCookie("sid", sessionID, expires, null, "/", false);
>> >
>> > }
>> >
>> > May I know if there a more elegant way of doing this?
>> >
>> > --
>> >
>> > Hez
>>
>>
>
> >
>


-- 

Hez

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Expire an idle session

2009-06-02 Thread hezjing
Hi

I want the session to be expired if the it is idle for 5 minutes.

I have the following client code after a successful login:

String sessionID = /* (Get sessionID from server's response to login
request.) */ ;
long DURATION = 1000 * 60 * 5;
Date expires = new Date(System.currentTimeMillis() + DURATION);
// the sid cookie will be expired after 5 min
Cookies.setCookie("sid", sessionID, expires, null, "/", false);


The problem with the above code is that the session cookie will be expired 5
minutes from the time the session is created and not from the time the last
request to the server.
For example, if a session is created at 00:00, followed by a request at
00:04, the cookie will still expire at 00:05 instead of 00:09.

To do this, I have to reset the expiry time of the cookie in every RPC call
like the following:

public void onFailure(Throwable caught) {
...
// re-calculate the expiry time
Date expires = new Date(System.currentTimeMillis() + DURATION)
Cookies.setCookie("sid", sessionID, expires, null, "/", false);
}

public void onSuccess(...) {
...
// re-calculate the expiry time
Date expires = new Date(System.currentTimeMillis() + DURATION)
Cookies.setCookie("sid", sessionID, expires, null, "/", false);
}


May I know if there a more elegant way of doing this?


-- 

Hez

--~--~-~--~~~---~--~~
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: Validation problem

2009-05-27 Thread hezjing
Hi poonam
Instead of writing your own validation class, would you consider one of the
GWT validation libraries?
e.g. https://sourceforge.net/projects/gwt-vl/

I'm a newbie, and I'm still looking for a GWT validation library ... is
there anyone able to share their experience in GWT validation?


On Wed, May 20, 2009 at 8:43 PM, poonam  wrote:

>
> Can anyone help me in writing a simple gwt class for validating the
> input.
> My requirement is that, I need to check that the input in the textbox
> is alphabetic, and if the input is anything other than alphabet it
> displays the error message.
> Thanks
> >
>


-- 

Hez

--~--~-~--~~~---~--~~
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: Missing files when enabled Google App Engine SDK after GWT project is created

2009-05-26 Thread hezjing
Created issue 
1598<http://code.google.com/p/googleappengine/issues/detail?id=1598>
.

On Tue, May 26, 2009 at 11:25 PM, Jason Parekh wrote:

>
> On Mon, May 25, 2009 at 11:55 AM, hezjing  wrote:
> > Hi
> > Eclipse complaints the appengine-web.xml file does not exist when I
> enabled
> > the Google App Engine SDK after created a GWT project.
> > Here are the steps I performed:
> > 1) File->New->Web Application Project
> > Check use Google Web Toolkit
> > Uncheck use Google App Engine
> > Finish
> > 2) Right click project->Google->App Engine Settings...
> > Check use Google App Engine
> > Problem: the appengine-web.xml file does not exist!
> >
> > This problem can be fixed by selecting the quick fix, and
> appengine-web.xml
> > will be created automatically.
> > Unfortunately when the project is launched, it failed to
> > locate war\WEB-INF\logging.properties and commons-logging.jar
> > I'm wondering, if Google plugin should automatically perform the
> > following when we enabled Google App Engine SDK?
> > 1) Create appengine-web.xml
> > 2) Create logging.properties
> > 3) Add commons-logging.jar into referenced libraries
>
> Good find, definitely looks like this flow could be improved.  If you
> don't mind, could you please file a bug in the issue tracker at
> http://code.google.com/p/googleappengine/issues/list ?
>
> Thanks,
> jason
>
> >
> > This problem does not exist if I checked both GWT and Google App Engine
> > while creating the project in step 1.
> >
> > --
> >
> > Hez
> >
> > >
> >
>
> >
>


-- 

Hez

--~--~-~--~~~---~--~~
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 and Java Error .Help Please.

2009-05-26 Thread hezjing
Hi Jeeva

On Tue, May 26, 2009 at 5:45 PM, jeeva  wrote:

>
> do you help to find a slide show jar which works nice friend ?
>

I'm a bit slow here :-Pcan you tell us what do you want?


-- 

Hez

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Avoid domain object and DTO in GUI?

2009-05-26 Thread hezjing
Hi Dean
You raised an interesting point which I had never think of it ...

On Tue, May 26, 2009 at 5:42 PM, Dean S. Jones  wrote:

>
> As I have posted here numerous times, you will one day regret having
> "domain objects" used in your GUI. Better to factor down to the few UI
> "display" generic models ( tables, trees, forms, etc )


Do you mean we should avoid passing domain objects (or the DTOs) to the GUI?

Instead of returning the domain objects, the RPC service should return the
"models"?
For example if I want to display the user's details on a table, the RPC
service should return a list of strings containing the user details instead
of a list of users (List)?


It would be very helpful if you are able to show me some examples, thank
you!


-- 

Hez

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



  1   2   >