Re: Digest for google-web-toolkit@googlegroups.com - 25 Messages in 13 Topics

2013-02-16 Thread Rick Fisher
OpoplrqwweetrrrtwqXxxwweee

Sent from my iPhone

On Feb 15, 2013, at 1:04 PM, google-web-toolkit@googlegroups.com wrote:

>   Today's Topic Summary
> Group: http://groups.google.com/group/google-web-toolkit/topics
> 
> Updating GWT Pie Chart Dynamically [1 Update]
> How to invoke Java String methods from JSNI code [3 Updates]
> GWT 2.5.1-rc1 available [5 Updates]
> How to set min and max size to SplitLayoutPanel [1 Update]
> Serialize data from ListDataProvider? [2 Updates]
> "Google Web Toolkit" context menu missing in Eclipse [2 Updates]
> CellTable: how to disable any background changes on selection? [1 Update]
> gwt-comet issue with GWT 2.5 [2 Updates]
> How to register keyhandler on CellTable? [1 Update]
> Is "GWT Consulting" a viable career path? [2 Updates]
> GWT Compiler doesnt generate cache.html files [1 Update]
> How to get the data out of a CellTable? [2 Updates]
> Inline rendering in Chrome different than FF? [2 Updates]
>  Updating GWT Pie Chart Dynamically
> abhishek sharma  Feb 15 11:50AM -0800  
> 
> Hi all,
>  
> SFTB . I have a scenrio as follows:-
> 1) The pie chart has to be updated every 30 seconds.
> 2) The data for the pie chart is to be fetched by HTTP.
>  
> I am able to receive the data through HTTP and parse it. However I am not 
> able to update the data of the pie chart every 30 seconds.
> I am using visualization charts for this.
> Can anyone provide me similar code snippet too?
> Any help appreciated
>  
> 
>  How to invoke Java String methods from JSNI code
> Patrick Tucker  Feb 15 05:26AM -0800  
> 
> Does str < "test" not get the result you want?
>  
> On Friday, February 15, 2013 5:53:58 AM UTC-5, alucard wrote:
>  
> 
> alucard  Feb 15 05:48AM -0800  
> 
> Yes, but that was not the question. I'd like to be able to invoke methods 
> from the Java String implementation. The code above is meant just as an 
> example for the error I get.
>  
> On Friday, February 15, 2013 2:26:43 PM UTC+1, Patrick Tucker wrote:
>  
> 
> Hilco Wijbenga  Feb 15 10:17AM -0800  
> 
> > Yes, but that was not the question. I'd like to be able to invoke methods
> > from the Java String implementation. The code above is meant just as an
> > example for the error I get.
>  
> The format object.@Class::method(param;)(arg) you are using seems fine
> (I use it in multiple places). Are you sure the error is not in the
> call to your "test" method? Has it been properly exported?
>  
> 
>  GWT 2.5.1-rc1 available
> Sachin Shekhar R  Feb 15 07:14AM -0800  
> 
> Thanks could not find it in mvnrepository.com. Found it via your twitter 
> post :) at central repo !!!
>  
> On Friday, February 15, 2013 12:42:30 PM UTC+5:30, Thomas Broyer wrote:
>  
> 
> EMan  Feb 15 08:15AM -0800  
> 
> I tried upgrading from 2.5.0 to 2.5.1 but I am getting an error during the 
> gwt compile. I googled that I needed to remove my gwt-junitCache, which I 
> tried but it doesn't seem to be helping. I am still using the 2.5.0 gwt 
> maven plugin since the 2.5.1 is not available. Could that be causing the 
> problem? Thanks.
>  
> [INFO] java.lang.RuntimeException: Unexpected IOException on in-memory 
> stream
> [INFO] at 
> com.google.gwt.dev.javac.CompilationUnit.getTypes(CompilationUnit.java:324)
> [INFO] at 
> com.google.gwt.dev.jjs.impl.UnifyAst.assimilateUnit(UnifyAst.java:672)
> [INFO] at 
> com.google.gwt.dev.jjs.impl.UnifyAst.searchForTypeBySource(UnifyAst.java:985)
> [INFO] at 
> com.google.gwt.dev.jjs.impl.UnifyAst.addRootTypes(UnifyAst.java:530)
> [INFO] at 
> com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScriptCompiler.java:621)
> [INFO] at 
> com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.java:33)
> [INFO] at com.google.gwt.dev.Precompile.precompile(Precompile.java:278)
> [INFO] at com.google.gwt.dev.Precompile.precompile(Precompile.java:229)
> [INFO] at com.google.gwt.dev.Precompile.precompile(Precompile.java:141)
> [INFO] at com.google.gwt.dev.Compiler.run(Compiler.java:232)
> [INFO] at com.google.gwt.dev.Compiler.run(Compiler.java:198)
> [INFO] at com.google.gwt.dev.Compiler$1.run(Compiler.java:170)
> [INFO] at 
> com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:88)
> [INFO] at 
> com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:82)
> [INFO] at com.google.gwt.dev.Compiler.main(Compiler.java:177)
> [INFO] Caused by: java.io.InvalidClassException: 
> com.google.gwt.dev.jjs.ast.JDeclaredType; local class incompatible: stream 
> classdesc serialVersionUID = -8155793964565947646, local class 
> serialVersionUID = -1052417216019896795
>  
>  
> On Wednesday, February 13, 2013 1:54:49 PM UTC-5, Matthew Dempsky wrote:
>  
> 
> Jens  Feb 15 08:37AM -0800  
> 
> Deleting gwt-unitCache solved the issue for me. I have also deleted 
> war/ and war/WEB-INF/deploy but I think thats not needed.
>  
> Can you compile through Eclipse using GPE? I don't think the maven plugin 
> itself is causing the problem. Ma

GWT CellTable.Resources causes Deferred binding exception

2012-04-10 Thread Rick Fisher
Hello

GWT 2.4

I am getting the following exception trying to instantiate a CellTable

Caused by: java.lang.RuntimeException: Deferred binding failed for
'com.google.gwt.user.cellview.client.CellTable$Resources' (did you
forget to inherit a required module?)

The offending code is:
@UiField(provided=true)
CellTable derivedCellTable = new CellTable(20);  <--
Fails during Instantiation

I get the same Exception instantiating a CellTable NOT in the UiField.
Code will work maybe 10% of the time.  Not always.  celltable seems
very tempermental.


Does anyone have any thoughts?
- thanks


My UIBinder is as follows:

-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x- UIBinder -x-x-x-x-x-x-x-x-x-x-x-x-x-x-
x-
http://dl.google.com/gwt/DTD/xhtml.ent";>


.cellTable {
border: 1px solid #ccc;
}

.selectedLabel {
padding-left: 1px;
}









-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x- UIBinder -x-x-x-x-x-x-x-x-x-x-x-x-x-x-
x-



-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-  JAVA CLASS  -x-x-x-x-x-x-x-x-x-x-x-x-
x-x-x-
public class RolesView extends ViewBase implements ApplicationView {

// A simple data type that represents a role.
public class Role {
String roleName = null;
String resourceList = "";

public Role(String name, String resourceArray) {
roleName = name;

resourceList = resourceArray;
}
}

/* The Interface HomeViewUiBinder. */
interface HomeViewUiBinder extends UiBinder {
}

@UiField  (provided=true)
HtmlFlowPanel panel = new HtmlFlowPanel();  // net.company
homegrown object

@UiField(provided=true)
CellTable derivedCellTable = new CellTable(20);  <--
Fails during Instantiation

@UiField(provided=true)
CellTable explicitCellTable = new CellTable(20);


/*  The UI binder. */
private static HomeViewUiBinder uiBinder =
GWT.create(HomeViewUiBinder.class);

final String DATA_PROVIDER = "dataProvider";
final String TAB_PANEL_ITEM = "tabPanelItem";
final String LIST_OF_ROLES_OBJECTS = "resourceList";
final String ROLE_CELL_TABLE = "cellTable";

final String DERIVED="derived";
final String EXPLICIT="explict";

ListDataProvider derivedDataProvider = new
ListDataProvider();
ListDataProvider explicitDataProvider = new
ListDataProvider();

public RolesView() {
super();
uiBinder.createAndBindUi(this);

}
}
-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-  JAVA CLASS  -x-x-x-x-x-x-x-x-x-x-x-x-
x-x-x-

-- 
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 in DTD "gwt-module.dtd"

2012-04-03 Thread Rick Fisher
My dear friends at Google,

Are you aware the following DTD has an error?

 "http://google-web-toolkit.googlecode.com/svn/tags/2.4.0/distro-
source/core/src/gwt-module.dtd"

: BEGIN :::
This page contains the following errors:

error on line 17 at column 2: StartTag: invalid element name
Below is a rendering of the page up to the first error.
: END :::

It is causing errors in our projects - "IntelliJ compile"

Can someone fix it?  :-)

Thank you

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



RichTextArea and valueChangeHandler

2011-09-07 Thread Rick Poleshuck
Has anyone implemented or knows how to implement a ValueChangeHandler on a 
RichTextArea similar to TextArea?


Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/XXFSKNP3wTkJ.
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: Can't get correct DOMImpl when chromeframe installed but turned off

2011-08-13 Thread Rick Li
The referred code is from UserAgentPropertyGenerator.

On Aug 13, 6:06 pm, Rick Li  wrote:
> I find a workround, if I comment out the chromeframe check it would be
> ok.
>
> I'm not sure why it's needed, it only checks the chromeframe plugin is
> installed but doesn't check if it's activated or not.
>
> in my IE8 + chromeframe 13, if it's activated, the userAgent would
> already contain "webkit".
>
>       // webkit family (chrome, safari and chromeframe).
>       new UserAgentPropertyGeneratorPredicate("safari")
>       .getPredicateBlock()
>         .println("return (")
>           .println("(ua.indexOf('webkit') != -1)")
>           .println("||")
>           .println("(function() {")
> /*
>   .println("if (ua.indexOf('chromeframe') != -1) {")
>               .println("return true;")
>             .println("}")
>             .println("if (typeof window['ActiveXObject'] !=
> 'undefined') {")
>               .println("try {")
>                 .println("var obj = new
> ActiveXObject('ChromeTab.ChromeFrame');")
>                 .println("if (obj) {")
>                   .println("obj.registerBhoIfNeeded();")
>                   .println("return true;")
>                 .println("}")
>               .println("} catch(e) { }")
>             .println("}")
> */
>             .println("return false;")
>             .println("})()")
>         .println(")")
>       .returns("'safari'"),

-- 
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: Can't get correct DOMImpl when chromeframe installed but turned off

2011-08-13 Thread Rick Li
I find a workround, if I comment out the chromeframe check it would be
ok.

I'm not sure why it's needed, it only checks the chromeframe plugin is
installed but doesn't check if it's activated or not.

in my IE8 + chromeframe 13, if it's activated, the userAgent would
already contain "webkit".



  // webkit family (chrome, safari and chromeframe).
  new UserAgentPropertyGeneratorPredicate("safari")
  .getPredicateBlock()
.println("return (")
  .println("(ua.indexOf('webkit') != -1)")
  .println("||")
  .println("(function() {")
/*
  .println("if (ua.indexOf('chromeframe') != -1) {")
  .println("return true;")
.println("}")
.println("if (typeof window['ActiveXObject'] !=
'undefined') {")
  .println("try {")
.println("var obj = new
ActiveXObject('ChromeTab.ChromeFrame');")
.println("if (obj) {")
  .println("obj.registerBhoIfNeeded();")
  .println("return true;")
.println("}")
  .println("} catch(e) { }")
.println("}")
*/
.println("return false;")
.println("})()")
.println(")")
  .returns("'safari'"),

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



Can't get correct DOMImpl when chromeframe installed but turned off

2011-08-11 Thread Rick Li
Hi,

I created below issue couple of days ago but no one replied
http://code.google.com/p/google-web-toolkit/issues/detail?id=6665

this issue happened to me with chrome frame 12 + IE8, it always bind
WebKit DOMImpl even when chromeframe is disabled.

is there a way to fix this?

Thanks,
Rick

-- 
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.1 DateTimeFormat & locale changes?

2010-12-02 Thread Rick Porter
I think I have solved my date/time issues by forcing a locale, but I
would welcome suggestions for a better solution.

In my module XML, I added the following line to include some
internationalization code:

   

I added the following line to my module XML for my locale:

   

Including the locale extend-property increases the GWT compile time,
since the compile does each browser/locale combination. This was the
most undesireable piece of my solution since it basically doubled my
GWT compile times. I tried to set the default locale using another bit
of XML found at 
http://code.google.com/intl/es-AR/webtoolkit/doc/latest/DevGuideI18nLocale.html#LocaleDefault,
but I could not even get the GWT compile to work when including that
XML.

The last required piece was adding the following line in my HTML file:

   

This gives it a default locale, but I believe that it can be
overridden with request parameters.

I did test this on a couple projects, and it worked for both. However,
I did not test with different locales. It seems that a new GWT 2.1
project has the same issues, so this is not just a GWT 2.0 conversion
problem -- I tested by adding a DateBox to a new GWT default project.


Enjoy,
Rick

-- 
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 DateTimeFormat & locale changes?

2010-11-23 Thread Rick Porter
Hello,

I recently made some tool updates to Helios & GWT 2.1, and everything
looks pretty good. However, I am seeing some changed behavior
regarding the date/time formatting and locales.  Previously, my "out-
of-the-box" compile gave me "en-US" formatting (12 hr times, week
starting on Sun, and mm/dd/yy). Now, I am seeing 24 hr clock, weeks
starting on Monday, and -mm-dd formatting. I changed my
DateTimeFormat calls to the deprecated 'getShortDateFormat' to
'getFormat(PredefinedFormat.DATE_SHORT)' without any luck (and similar
changes for other date/time functions).

I did include the "" based
on guidance found at 
http://code.google.com/webtoolkit/doc/latest/DevGuideCodingBasicsFormatting.html.
However, this did not seem to help.

Suggestions?

Thanks,
Rick

-- 
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 get the next "day of week" date?

2010-11-17 Thread Rick Porter
I have not tested the edge conditions around daylight savings times,
but I found this useful:

import com.google.gwt.user.datepicker.client.CalendarUtil;

Date now = new Date();
int nDays = 1;
CalendarUtil.addDaysToDate(now, nDays);

The number of days can be negative if you need to go back. There are a
few other useful functions in there too.

Good luck,
Rick

-- 
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: Handling session timeout

2010-10-15 Thread Rick Porter
There are many ways to handle it. You should decide what is important
to your users and for your environment, and how you define a session
expiration.

In one GWT application, I use the Google UserService to get the
current user on the server side. I make sure the user is logged in at
the start, and I make sure that I handle expired sessions throughout
the application when the user makes a new request to the server. It
does nothing to detect session expiration on the client side, but the
valid session duration is defined in days.

Here's a link to a good starting point that uses a timer to detect and
process inactivity on the client:

http://gwt-ext.com/forum/viewtopic.php?t=1682

The code in the above link uses GWT-Ext widgets, but can be easily
adapted to use standard GWT widgets.

Keep in mind that there are many different variations of how you
define inactivity... Some servers declare your session dead if you
have not sent a message in some amount of time -- you could
periodically send a "ping" message to insure your session does not go
stale. BUT, that may cause you to exceed your request quotas on the
Google servers.

Then, consider the user experience. If your application is working
correctly, your user may not know when messages are going between
client/server. So, you may need to track something else to determine
when the session is inactive.

Lastly, consider how the users see the session expiration. In one GWT
application, I did something similar to what is shown in the GWT-Ext
link. Some folks using the app did not like the idea that they had
been logged out without seeing where in the application they were. So,
I changed my app to tell them they had been logged out (with a dialog
box), and upon acknowledging the message they were sent to another
page.

I do not know your particular design constraints, but I think I have
given you the highlights of things to consider.


Best of luck,
Rick

-- 
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: Handling session timeout

2010-10-15 Thread Rick Porter
There are many ways to handle it, but you need to consider how to
present it to your users and other constraints specific to your
environment.

In one GWT app, I did nothing to detect client-side inactivity. I used
the Google UserService to detect session expiration on the server side
whenever there was a message from the client (and I wrote the code to
handle those case). The Google UserService lets you see the policy on
how long the sessions stay active, but it is often measured in days.
So, it did not seem worthwhile to write code to handle the session
expiration.

Here's a link to a client-side that attempts to detect session
expiration:

http://gwt-ext.com/forum/viewtopic.php?t=1682

The code uses GWT-Ext widgets, but can be easily adapted to use
standard GWT widgets.

Some servers consider a client's session inactive if they have not
received a message from the client in some period of time (as shown in
the example). The example code can be adapted to periodically send a
"ping" message to the server instead of just detecting messaging
inactivity. You probably do NOT want clients sending "pings" to you
application if it is deployed on Google's servers, since the pings
will probably count against you request quota.

Another thing to consider is that if your application is working
correctly, the user may not even be aware when messages are exchanged
between client/server. For this reason, you may want to introduce some
other means of tracking inactivity.

Lastly, you need to determine how you want session expiration
presented to your user. My users did not care for the way the GWT-Ext
example informed the user (particularly if they missed the refresh
prompt). My solution was to keep the user at the same screen and
present a dialog box informing them when their session timed out. Upon
acknowledging the message, they were sent to another place.

I tried to hit the highlights of things for you to consider regarding
session expiration, but I think you need to tailor your solution for
your environment.


Regards,
Rick

-- 
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 "Unable to contact the server."

2010-01-18 Thread Rick Horowitz
I'm running GWT 2.0, app engine 1.3, with Eclipse Galileo Build id:
20090920-1017, Java java-6-openjdk, on Ubuntu 9.10. Starting recently
-- within the past few weeks -- I started getting  the error, "Unable
to contact the server" when I restart my GWT/app engine application
and reload the application's web page from Firefox. If I restart
Eclipse, it usually eliminates the problem temporarily, but not
always. This problem is sucking a significant amount of my time --
I've even had to reboot on occasion to make it go away. The exception
stack trace is below.

I'd really appreciate any ideas.

Thanks,

Rick

15:41:10.556 [ERROR] [physicaltherapy] Unable to contact the server.
com.google.gwt.user.client.rpc.StatusCodeException:
at
com.google.gwt.user.client.rpc.impl.RequestCallbackAdapter.onResponseReceived
(RequestCallbackAdapter.java:192)
at com.google.gwt.http.client.Request.fireOnResponseReceived
(Request.java:287)
at com.google.gwt.http.client.RequestBuilder$1.onReadyStateChange
(RequestBuilder.java:396)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at com.google.gwt.dev.shell.MethodAdaptor.invoke
(MethodAdaptor.java:103)
at com.google.gwt.dev.shell.MethodDispatch.invoke
(MethodDispatch.java:71)
at com.google.gwt.dev.shell.OophmSessionHandler.invoke
(OophmSessionHandler.java:157)
at
com.google.gwt.dev.shell.BrowserChannel.reactToMessagesWhileWaitingForReturn
(BrowserChannel.java:1713)
at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript
(BrowserChannelServer.java:165)
at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke
(ModuleSpaceOOPHM.java:120)
at com.google.gwt.dev.shell.ModuleSpace.invokeNative
(ModuleSpace.java:507)
at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject
(ModuleSpace.java:264)
at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject
(JavaScriptHost.java:91)
at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:188)
at sun.reflect.GeneratedMethodAccessor12.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at com.google.gwt.dev.shell.MethodAdaptor.invoke
(MethodAdaptor.java:103)
at com.google.gwt.dev.shell.MethodDispatch.invoke
(MethodDispatch.java:71)
at com.google.gwt.dev.shell.OophmSessionHandler.invoke
(OophmSessionHandler.java:157)
at com.google.gwt.dev.shell.BrowserChannel.reactToMessages
(BrowserChannel.java:1668)
at com.google.gwt.dev.shell.BrowserChannelServer.processConnection
(BrowserChannelServer.java:401)
at com.google.gwt.dev.shell.BrowserChannelServer.run
(BrowserChannelServer.java:222)
at java.lang.Thread.run(Thread.java:636)
-- 
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 use UIBinder to create customized tags

2010-01-04 Thread Rick
Hi

You need to write your own parser taking clue from
DockLayoutPanelParser. Then You need to register this parser in
UIBinderWriter's registerParsers() method.

Feel free if I can further help.

Thanks and regards

Rick

On Jan 4, 6:11 pm, Hans Speijer  wrote:
> Any news on this topic? Could you be a bit more specific on how you
> patched UIBinderWriter?
>
> On Dec 24 2009, 5:15 am, Rick  wrote:
>
>
>
> > Thanks Thomas
>
> > I am successful to create mycustomizedtag by patching UIBinderWriter
> > -> registerParsers() method. I think GWT has done most of the work for
> > supportingcustomizedtag but keeping it private.

--

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 use UIBinder to create customized tags

2009-12-23 Thread Rick
Thanks Thomas

I am successful to create my customized tag by patching UIBinderWriter
-> registerParsers() method. I think GWT has done most of the work for
supporting customized tag but keeping it private.

On Dec 23, 6:48 pm, Thomas Broyer  wrote:
> On Dec 22, 5:28 am, Rick  wrote:
>
> > Thanks Thomas
>
> > Widgets are now adding by implementing HasWidgets interface.
>
> > But I need to do a little more. As there are tags in DockLayoutPanel
> > -- , ,  in the same way, I want to create my own
> > customized tags like , etc so that I can arrange my
> > layout accordingly. Can it be possible. If it is, kindly let me know
> > as it will be a great help for me to design my UI with more
> > flexibility,
>
> This is planned, but not yet available (there's a TODO in the code),
> unless of course you patch GWT.

--

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 use UIBinder to create customized tags

2009-12-23 Thread Rick
Any idea friends???

I request from GWT members to reply this post please.

Regards

Rick

On Dec 22, 9:28 am, Rick  wrote:
> Thanks Thomas
>
> Widgets are now adding by implementing HasWidgets interface.
>
> But I need to do a little more. As there are tags in DockLayoutPanel
> -- , ,  in the same way, I want to create my own
> customized tags like , etc so that I can arrange my
> layout accordingly. Can it be possible. If it is, kindly let me know
> as it will be a great help for me to design my UI with more
> flexibility,
>
> On Dec 21, 7:44 pm, Thomas Broyer  wrote:
>
> > On Dec 21, 12:13 pm, Rick  wrote:
>
> > > Hi all
>
> > > As GWT is adding widgets in Horizontal panel, in the same way I want
> > > to get element in my composite widgets so that I can manage their
> > > layout in onAttach means I want to get label and html in RComposite
> > > widget's on attach.
>
> > > ui.xml
> > >  > >         xmlns:g='urn:import:com.google.gwt.user.client.ui'
> > >         xmlns:my='urn:import:gwt.testui.client'>
>
> > >         
>
> > >         My Widgets
> > >         in a row
>
> > >         
>
> > > 
> > > -->RCompositeWidget
> > > public class RCompositeWidget extends Composite {
> > >         public RCompositeWidget() {
> > >                 HorizontalPanel hp = new HorizontalPanel();
> > >                 initWidget(hp);
> > >         }
>
> > > }
>
> > > But I am getting following exception:
> > >         In com.google.gwt.uibinder.rebind.xmlelemen...@870aad, found
> > > unexpected child ""
>
> > RCompositeWidget has to implement HasWidgets if it's meant to be a
> > widget container, otherwise how wouldUiBinderadd the widgets to it?
> > Actually,UiBinderdoes not know that RCompositeWidget internally uses
> > an HorizontalPanel.

--

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 use UIBinder to create customized tags

2009-12-21 Thread Rick

Thanks Thomas

Widgets are now adding by implementing HasWidgets interface.

But I need to do a little more. As there are tags in DockLayoutPanel
-- , ,  in the same way, I want to create my own
customized tags like , etc so that I can arrange my
layout accordingly. Can it be possible. If it is, kindly let me know
as it will be a great help for me to design my UI with more
flexibility,

On Dec 21, 7:44 pm, Thomas Broyer  wrote:
> On Dec 21, 12:13 pm, Rick  wrote:
>
>
>
> > Hi all
>
> > As GWT is adding widgets in Horizontal panel, in the same way I want
> > to get element in my composite widgets so that I can manage their
> > layout in onAttach means I want to get label and html in RComposite
> > widget's on attach.
>
> > ui.xml
> >  >         xmlns:g='urn:import:com.google.gwt.user.client.ui'
> >         xmlns:my='urn:import:gwt.testui.client'>
>
> >         
>
> >         My Widgets
> >         in a row
>
> >         
>
> > 
> > -->RCompositeWidget
> > public class RCompositeWidget extends Composite {
> >         public RCompositeWidget() {
> >                 HorizontalPanel hp = new HorizontalPanel();
> >                 initWidget(hp);
> >         }
>
> > }
>
> > But I am getting following exception:
> >         In com.google.gwt.uibinder.rebind.xmlelemen...@870aad, found
> > unexpected child ""
>
> RCompositeWidget has to implement HasWidgets if it's meant to be a
> widget container, otherwise how wouldUiBinderadd the widgets to it?
> Actually,UiBinderdoes not know that RCompositeWidget internally uses
> an HorizontalPanel.

--

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 use UIBinder with customized composite widget

2009-12-21 Thread Rick
Hi all

As GWT is adding widgets in Horizontal panel, in the same way I want
to get element in my composite widgets so that I can manage their
layout in onAttach means I want to get label and html in RComposite
widget's on attach.

ui.xml




My Widgets
in a row






-->RCompositeWidget
public class RCompositeWidget extends Composite {
public RCompositeWidget() {
HorizontalPanel hp = new HorizontalPanel();
initWidget(hp);
}

}

But I am getting following exception:
In com.google.gwt.uibinder.rebind.xmlelemen...@870aad, found
unexpected child ""

Regards

Rick

--

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.




Unable to compile code

2009-12-11 Thread Rick
Hi all

I have just shifted my application to GWT 2.0  from GWT 1.7 as
discussed in http://code.google.com/webtoolkit/doc/latest/ReleaseNotes.html.
But In new development mode window there is no option for compile/
browse to check my code in compile mode. Also I have applied a
Window.alert in onModuleLoad to check whether it is reflecting or not.
By clicking on 'Launch Default Browser' my application get run in
Mozilla but Window.alert is not coming. It is showing previous
compiled version(The version I compilled with GWT 1.7 jars)

Thanks and regards

Rick

--

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.




Unable to compile code

2009-12-11 Thread Rick
Hi all

I have just shifted my application to GWT 2.0  from GWT 1.7 as
discussed in http://code.google.com/webtoolkit/doc/latest/ReleaseNotes.html.
But In new development mode window there is no option for compile/
browse to check my code in compile mode. Also I have applied a
Window.alert in onModuleLoad to check whether it is reflecting or not.
By clicking on 'Launch Default Browser' my application get run in
Mozilla but Window.alert is not coming. It is showing previous
compiled version(The version I compilled with GWT 1.7 jars)

Thanks and regards

Rick

--

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: Panel is giving its offset width before super.onAttach() is called

2009-10-05 Thread Rick

Hi all

Sorry to say expected behaviour entered wrong. It should be:

Actual output
Before vp attached to RootPanel Offset width:0
Before super.onAttach called Offset width:500
After super.onAttach called Offset width:500
Expected output
Before vp attached to RootPanel Offset width:0
Before super.onAttach called Offset width:0
After super.onAttach called Offset width:500


On Oct 5, 3:59 pm, Rick  wrote:
> Hi all
>
> I am making an application using GWT 1.7. But I am surprised by the
> behaviour I got. I took a vertical panel and add a button on this. I
> set width of button to 500px. Now What I was expected that in onAttach
> () of Vertical panel, before calling super.onAttach(), the offsetWidth
> of vertical panel should be zero. But it is giving me 500px.
>
> VerticalPanel vp = new VerticalPanel() {
> @Override
> protected void onAttach() {
>                 GWT.log("Before super.onAttach called Offset width: " +
> getOffsetWidth(), null);
>                 super.onAttach();
>                 GWT.log(After super.onAttach called Offset width: " + 
> getOffsetWidth
> (), null);
>         }};
>
> Button b = new Button("Hello");
> b.setWidth("500px");
> vp.add(b);
> GWT.log("Before vp attached to RootPanel Offset width: " +
> vp.getOffsetWidth(), null);
> RootPanel.get().add(vp);
>
> Actual output
>         Before vp attached to RootPanel Offset width:0
>         Before super.onAttach called Offset width:500
>         After super.onAttach called Offset width:500
> Expected output
>         Before vp attached to RootPanel Offset width:0
>         Before super.onAttach called Offset width:500
>         After super.onAttach called Offset width:500
>
> Thanks and regards
>
> Rick
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Panel is giving its offset width before super.onAttach() is called

2009-10-05 Thread Rick

Hi all

I am making an application using GWT 1.7. But I am surprised by the
behaviour I got. I took a vertical panel and add a button on this. I
set width of button to 500px. Now What I was expected that in onAttach
() of Vertical panel, before calling super.onAttach(), the offsetWidth
of vertical panel should be zero. But it is giving me 500px.

VerticalPanel vp = new VerticalPanel() {
@Override
protected void onAttach() {
GWT.log("Before super.onAttach called Offset width: " +
getOffsetWidth(), null);
super.onAttach();
GWT.log(After super.onAttach called Offset width: " + 
getOffsetWidth
(), null);
}
};
Button b = new Button("Hello");
b.setWidth("500px");
vp.add(b);
GWT.log("Before vp attached to RootPanel Offset width: " +
vp.getOffsetWidth(), null);
RootPanel.get().add(vp);

Actual output
Before vp attached to RootPanel Offset width:0
Before super.onAttach called Offset width:500
After super.onAttach called Offset width:500
Expected output
Before vp attached to RootPanel Offset width:0
Before super.onAttach called Offset width:500
After super.onAttach called Offset width:500

Thanks and regards

Rick
--~--~-~--~~~---~--~~
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 while clearing a panel

2009-08-07 Thread Rick

Hi all

I have added some child widgets in a vertical panel before vertical
panel got attach. Now a child widget has thrown some exception in its
onAttach method. Now want to clear this panel, but no way I am getting
'java.lang.IllegalStateException: Should only call onDetach when the
widget is attached to the browser's document'

Sample code to produce the bug:

VerticalPanel v = new VerticalPanel();
Button b = new Button() {
protected void onAttach() {
if (true) {
throw new ResourceException("Exception in 
onAttach");
}
super.onAttach();
}
};
v.add(b);
try {
RootPanel.get().add(v);
} catch (Exception e) {

} finally {
try{
v.clear();
}catch(Exception e){

}finally{
Window.alert("Finally" + v.getWidgetCount());
    }
}

Thanks and Regards

Rick
--~--~-~--~~~---~--~~
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 code not running using Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.1) Gecko/20090715 Firefox/3.5.1

2009-07-26 Thread Rick

Hi Juraj

Thanks a lot. I have been shifted on GWT 1.7 and problem is no more
now.

Rick

On Jul 25, 2:10 pm, Juraj Vitko  wrote:
> http://code.google.com/webtoolkit/doc/1.7/ReleaseNotes_1_7.html
>
> GWT1.7 adds explicit support for Internet Explorer 8, Firefox
> 3.5, ...
>
> On Jul 24, 12:46 pm, Rick  wrote:
>
> > Hi all
>
> > I am building my application usingGWT1.6. Today I moved on Firefox/
> > 3.5.1. and to my wonder, my aplication isnotworking with this
> > version. I am getting following error. Any suggestion in this regards
> > will be highly appreciated as I am totally blocked.
>
> > (NS_ERROR_DOM_NOT_SUPPORTED_ERR): Operation isnotsupported code: 9
> > INDEX_SIZE_ERR: 1 DOMSTRING_SIZE_ERR: 2 HIERARCHY_REQUEST_ERR: 3
> > WRONG_DOCUMENT_ERR: 4 INVALID_CHARACTER_ERR: 5 NO_DATA_ALLOWED_ERR: 6
> > NO_MODIFICATION_ALLOWED_ERR: 7 NOT_FOUND_ERR: 8 NOT_SUPPORTED_ERR: 9
> > INUSE_ATTRIBUTE_ERR: 10 INVALID_STATE_ERR: 11 SYNTAX_ERR: 12
> > INVALID_MODIFICATION_ERR: 13 NAMESPACE_ERR: 14 INVALID_ACCESS_ERR: 15
> > VALIDATION_ERR: 16 TYPE_MISMATCH_ERR: 17 result: 2152923145 
> > filename:http://localhost:/DAKHOME/5D297221CBFAB4CC5BFA3FF6ECBA57AC.cache
> > lineNumber: 64180 columnNumber: 0 inner: null data: null
>
> > Thanks and regards
>
> > Rick
--~--~-~--~~~---~--~~
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 code not running using Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.1) Gecko/20090715 Firefox/3.5.1

2009-07-24 Thread Rick

Hi all

I am building my application using GWT 1.6. Today I moved on Firefox/
3.5.1. and to my wonder, my aplication is not working with this
version. I am getting following error. Any suggestion in this regards
will be highly appreciated as I am totally blocked.


(NS_ERROR_DOM_NOT_SUPPORTED_ERR): Operation is not supported code: 9
INDEX_SIZE_ERR: 1 DOMSTRING_SIZE_ERR: 2 HIERARCHY_REQUEST_ERR: 3
WRONG_DOCUMENT_ERR: 4 INVALID_CHARACTER_ERR: 5 NO_DATA_ALLOWED_ERR: 6
NO_MODIFICATION_ALLOWED_ERR: 7 NOT_FOUND_ERR: 8 NOT_SUPPORTED_ERR: 9
INUSE_ATTRIBUTE_ERR: 10 INVALID_STATE_ERR: 11 SYNTAX_ERR: 12
INVALID_MODIFICATION_ERR: 13 NAMESPACE_ERR: 14 INVALID_ACCESS_ERR: 15
VALIDATION_ERR: 16 TYPE_MISMATCH_ERR: 17 result: 2152923145 filename:
http://localhost:/DAKHOME/5D297221CBFAB4CC5BFA3FF6ECBA57AC.cache.html
lineNumber: 64180 columnNumber: 0 inner: null data: null

Thanks and regards

Rick


--~--~-~--~~~---~--~~
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 while loading stylesheet dynamically

2009-07-23 Thread Rick

Hi Adam

Thanks a lot. Its working fine now.

On Jul 24, 2:50 am, Adam T  wrote:
> Hi Rick,
>
> The last line in your native method should read:
>
> $doc.getElementsByTagName("head")[0].appendChild(fileref);
>
> As GWT uses $doc to refer to the pages document.  
> See:http://code.google.com/webtoolkit/doc/1.6/DevGuideCodingBasics.html#D...
>
> //Adam
>
> On 23 Juli, 15:03, Rick  wrote:
>
> > Hi All
>
> > I am building an application using GWT 1.6. In my application I need
> > to load external stylesheet at runtime. But its not working. I am able
> > to load stylesheet in an independent html file. But when I am using
> > same with GWT, its not reflecting. Below is a sample code to produce
> > this case. Any help/suggestion will be highly appriciated.
>
> > StyleSheetEntryPoint.java
>
> > package com.example.foo.client;
> > import com.google.gwt.core.client.EntryPoint;
> > import com.google.gwt.user.client.ui.HTML;
> > import com.google.gwt.user.client.ui.RootPanel;
>
> > public class StyleSheetEntryPoint implements EntryPoint {
>
> >         public void onModuleLoad() {
> >                 loadStyleSheet();
> >                 HTML html = new HTML("Hello");
> >                 html.setStyleName("sendButton");
> >                 RootPanel.get().add(html);
> >         }
>
> >         public static native void loadStyleSheet()/*-{
> >                 var fileref=document.createElement("link");
> >                 fileref.setAttribute("rel", "stylesheet");
> >                 fileref.setAttribute("type", "text/css");
> >                 fileref.setAttribute("href", "Component.css");
> >                 
> > document.getElementsByTagName("head")[0].appendChild(fileref);
> >         }-*/;
>
> > }
>
> > Component.css
> >         .sendButton {font-weight:bold;font-size: 16pt;}
>
> > Following HTML is giving me expected behaviour.
> > 
> > 
> > 
> > function loadCSS(){
> >         var fileref=document.createElement("link");
> >         fileref.setAttribute("rel", "stylesheet");
> >         fileref.setAttribute("type", "text/css");
> >         fileref.setAttribute("href", "Component.css");
> >         document.getElementsByTagName("head")[0].appendChild(fileref);}
>
> > 
> > 
> > 
> > Hello
> > 
> > 
>
> > Thanks and regards
>
> > Rick
--~--~-~--~~~---~--~~
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 while loading stylesheet dynamically

2009-07-23 Thread Rick

Hi All

I am building an application using GWT 1.6. In my application I need
to load external stylesheet at runtime. But its not working. I am able
to load stylesheet in an independent html file. But when I am using
same with GWT, its not reflecting. Below is a sample code to produce
this case. Any help/suggestion will be highly appriciated.

StyleSheetEntryPoint.java

package com.example.foo.client;
import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.RootPanel;

public class StyleSheetEntryPoint implements EntryPoint {

public void onModuleLoad() {
loadStyleSheet();
HTML html = new HTML("Hello");
html.setStyleName("sendButton");
RootPanel.get().add(html);
}

public static native void loadStyleSheet()/*-{
var fileref=document.createElement("link");
fileref.setAttribute("rel", "stylesheet");
fileref.setAttribute("type", "text/css");
fileref.setAttribute("href", "Component.css");
document.getElementsByTagName("head")[0].appendChild(fileref);
}-*/;

}

Component.css
.sendButton {font-weight:bold;font-size: 16pt;}

Following HTML is giving me expected behaviour.



function loadCSS(){
var fileref=document.createElement("link");
fileref.setAttribute("rel", "stylesheet");
fileref.setAttribute("type", "text/css");
fileref.setAttribute("href", "Component.css");
document.getElementsByTagName("head")[0].appendChild(fileref);
}



Hello



Thanks and regards

Rick



--~--~-~--~~~---~--~~
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 using Google Visualization with DockPanel

2009-07-22 Thread Rick

Hi all

I am using GWT 1.6 and Google Visualizations to show graph in my
application. I have to show multiple graphs to user. For this, I am
adding my visualization graphs in a DockPanel with direction. Now If I
add graphs before attaching DockPanel, all graphs are rendered
properly in all browsers. But I have to do my work after attaching
DockPanel. In this case, in Mozilla and Chrome, only last graph added
in dockpanel get rendered where as in IE, all graphs are rendered
properly. Kindly note that this problem occurs only when I am adding
Graphs in DockPanel. In other containers like VerticalPanel &
HorizontalPanel, I can add Graphs after attaching container, it works
well.

Below is a sample code to produce this case. Any help/suggestion will
be highly appriciated.

Code:


package com.example.simpleviz.client;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.user.client.ui.DockPanel;
import com.google.gwt.user.client.ui.RootPanel;
import com.google.gwt.user.client.ui.Widget;
import com.google.gwt.visualization.client.DataTable;
import com.google.gwt.visualization.client.VisualizationUtils;
import
com.google.gwt.visualization.client.AbstractDataTable.ColumnType;
import com.google.gwt.visualization.client.visualizations.BarChart;
import com.google.gwt.visualization.client.visualizations.PieChart;
import
com.google.gwt.visualization.client.visualizations.PieChart.Options;

public class MyClass implements EntryPoint {

public void onModuleLoad() {

VisualizationUtils.loadVisualizationApi(new Runnable() {
public void run() {
Widget bar = createBarChart();
Widget pie = createPieChart();
DockPanel d = new DockPanel();
RootPanel.get().add(d);
d.add(bar, DockPanel.NORTH);
d.add(pie, DockPanel.NORTH);
}

}, new String[] { BarChart.PACKAGE, PieChart.PACKAGE});

}

private Widget createPieChart() {
DataTable data = DataTable.create();
data.addColumn(ColumnType.STRING, "Task");
data.addColumn(ColumnType.NUMBER, "Hours per Day");
data.addRows(1);
data.setValue(0, 0, "Work");
data.setValue(0, 1, 10);

Options options = Options.create();
options.setWidth(200);
options.setHeight(100);
options.set3D(true);
options.setTitle("My Daily Activities");

PieChart pie = new PieChart(data, options);
return pie;
}

public Widget createBarChart() {
DataTable data = DataTable.create();
data.addColumn(ColumnType.STRING, "Year");
data.addColumn(ColumnType.NUMBER, "Sales");
data.addColumn(ColumnType.NUMBER, "Expenses");
data.addRows(4);
data.setValue(0, 0, "2004");
data.setValue(0, 1, 1000);
data.setValue(0, 2, 400);

BarChart.Options options = BarChart.Options.create();
options.setWidth(200);
options.setHeight(100);
options.set3D(true);
options.setTitle("My Daily Activities");

BarChart barchart = new BarChart(data, options);
return barchart;
}

}

Thanks and regards

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



Re: RPC call efficiency

2009-02-10 Thread Rick

Hi all

Thanks for your replies. Let me specify one more thing which might
help us in figuring out my problem. My application server is in US and
and I am accessing it from India. During a discussion with one of
colleague, this point came that there should be a minimum time that a
request will take for coming back from US based server. But we don't
know what this minimum time should be in best & average conditions.

Further, when I tried to ping google.com with command "ping google.com
-t", I got following result:


Pinging google.com [74.125.45.100] with 32 bytes of data:

Reply from 74.125.45.100: bytes=32 time=370ms TTL=241
Reply from 74.125.45.100: bytes=32 time=354ms TTL=241
Reply from 74.125.45.100: bytes=32 time=340ms TTL=241
Reply from 74.125.45.100: bytes=32 time=370ms TTL=241
Reply from 74.125.45.100: bytes=32 time=341ms TTL=241

Ping statistics for 74.125.45.100:
Packets: Sent = 5, Received = 5, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 340ms, Maximum = 370ms, Average = 355ms

It is showing 355ms average time but total time elapsed in starting
pinging and pausing for these 5 packets was 5 seconds. Then avg ping
time should be around 1 sec. Now again I got more confused why it is
showing 355ms.

When I tried to ping my server, it's avg time was 375 ms.

I also tested by returning a String value but same problem with it
also.

Regarding testing AJAX call using an example in core JS, I am sorry
but I don't know how to write this as I have worked only in GWT for
AJAX applications. It will be very helpful if one can provide such
example or help in writing this.

Please let me know if further I can provide some information which can
help in figuring out my problem.

Thanks and regards

Rick

On Feb 6, 9:19 pm, Jason Essington  wrote:
> Just curious, what happens if you return a string, or an int rather  
> than a long?
>
> longs are emulated in GWT and have been pegged as being a bit slow,  
> but 1s sure seems like an awful lot.
>
> The other thing to do is pull up FireBug (Firefox), or WebInspector  
> (WebKit nightly builds) and check the latency of theRPCcall.
>
> What are the ping times to your remote server?
>
> -jason
>
> On Feb 6, 2009, at 3:49 AM, Rick wrote:
>
>
>
> > Hi
>
> > Thanks for reply.When I deploy application on local machine,RPCcall
> > get returned in 20 ms but when this application get deployed on Remote
> > server,RPCcallis taking 1000 ms. I am just returning a hard code
> > long value from server.
>
> > Thanks and regards
>
> > Rick
>
> > On Feb 6, 2:46 pm, lowecg2004  wrote:
> >> Hi Rick,
>
> >> In my experienceRPCis very efficient - I have a 100 or so objects
> >> serialising over the wire in less than 50ms, with simpler structures
> >> taking even less time. Something that returns just a long should
> >> complete in no time at all. Have you tried adding some timing logic  
> >> to
> >> the server code that produces that long value? What timings do you  
> >> get
> >> if you just return a hard long value?  Using a HTTP proxy like  
> >> Charles
> >> (http://www.charlesproxy.com/)  will shed some light on the size of
> >> theRPCcalls being made and will provide some more precise timings.
>
> >> Good luck,
>
> >> Chris.
>
> >> On Feb 6, 9:08 am, Rick  wrote:
>
> >>> Hi
>
> >>> I am using Java as server so I usedRPCcalls. The thing worrying me
> >>> is theefficiencyofRPCcall. I just write a simple method  
> >>> getValue()
> >>> on server which returns a long value. When I called it from  
> >>> client, it
> >>> is taking 1 second to go to server and then come back. This 1 second
> >>> time is pinching the performance of my application and I can't  
> >>> afford
> >>> it. Can any one suggest what improvement should be done so that this
> >>> time get reduced.
> >>> Any suggestion in this regard will be highly appreciated .
>
> >>> Thanks and reagrds
>
> >>> Rick
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: RPC call efficiency

2009-02-06 Thread Rick

Hi

Thanks for reply.When I deploy application on local machine, RPC call
get returned in 20 ms but when this application get deployed on Remote
server, RPC call is taking 1000 ms. I am just returning a hard code
long value from server.

Thanks and regards

Rick

On Feb 6, 2:46 pm, lowecg2004  wrote:
> Hi Rick,
>
> In my experience RPC is very efficient - I have a 100 or so objects
> serialising over the wire in less than 50ms, with simpler structures
> taking even less time. Something that returns just a long should
> complete in no time at all. Have you tried adding some timing logic to
> the server code that produces that long value? What timings do you get
> if you just return a hard long value?  Using a HTTP proxy like Charles
> (http://www.charlesproxy.com/)  will shed some light on the size of
> the RPC calls being made and will provide some more precise timings.
>
> Good luck,
>
> Chris.
>
> On Feb 6, 9:08 am, Rick  wrote:
>
> > Hi
>
> > I am using Java as server so I used RPC calls. The thing worrying me
> > is the efficiency of RPC call. I just write a simple method getValue()
> > on server which returns a long value. When I called it from client, it
> > is taking 1 second to go to server and then come back. This 1 second
> > time is pinching the performance of my application and I can't afford
> > it. Can any one suggest what improvement should be done so that this
> > time get reduced.
> > Any suggestion in this regard will be highly appreciated .
>
> > Thanks and reagrds
>
> > Rick
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



RPC call efficiency

2009-02-06 Thread Rick

Hi

I am using Java as server so I used RPC calls. The thing worrying me
is the efficiency of RPC call. I just write a simple method getValue()
on server which returns a long value. When I called it from client, it
is taking 1 second to go to server and then come back. This 1 second
time is pinching the performance of my application and I can't afford
it. Can any one suggest what improvement should be done so that this
time get reduced.
Any suggestion in this regard will be highly appreciated .

Thanks and reagrds

Rick
--~--~-~--~~~---~--~~
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 redirect to another EntryPoint class

2008-11-25 Thread Rick

Hi

For redirection you can use following method:
public static native void reDirectPage(String html)/*-{
 var text = $wnd.location.href;
 var index = text.lastIndexOf("/");
 var subString = text.substring(0,index+1);
 var targetString = subString+html;
 $wnd.location.href = targetString;
}-*/;

On Nov 25, 9:23 am, Not Ken Shabby <[EMAIL PROTECTED]> wrote:
> The following code was 'hand extracted and modified" from a project I
> am working on. Therefore there maybe typos.
> There are also references / usages of classes not shown here, but you
> do not need them.
>
> The basic flow is:
> 1. In your class which implements "EntryPoint" create an instance of a
> Logon panel class (of your own design) --- here mine is called
> "MyLogonPanel"
> 2. Pass a reference to the Entry Point class ("this") to the Logon
> Panel class --- so that later you can call back into this class
> 2. Add the logon panel to the "RootPanel"
> 3. In the constructor of the Logon Panel - create the necessary UI
> components to display a logon message and places to enter UserId and
> password.
> 4. Call your server code to verify the UserId and Password --- onSucess
> () should call back a method in the Entry Point class
>     --- (here "loggedOn() ) which then removes the Logon Panel from
> the Root Panel and replaces it with the main application screen.
>
> I hope this helps.
>
> Regards,
>
> Ken.
>
> ==
> MyEntryPoint.java :
>
> public class MyEntryPoint implements EntryPoint
> {
>     MyMainScreen screen;
>     MyLogonPanel logon;
>
>     public void onModuleLoad()
>     {
>         logon = new MyLogonPanel(this);
>         RootPanel.get().add(logon);
>     }
>
>     public void loggedOn(MyLogonResult result)
>     {
>         RootPanel.get().remove(logon);
>         screen = new MyMainScreen(result);
>         RootPanel.get().add(screen);
>     }
>
> }
>
> 
> MyLogonPanel.java:
>
> public final class MyLogonPanel extends VerticalPanel
> {
>     final TextBox userIdTB = new TextBox();
>     final PasswordTextBox passwordTB = new PasswordTextBox();
>     final Label message = new Label("Please enter userid and
> password");
>     final MyEntryPoint entryPoint;
>     final VerticalPanel logonBox;
>
>     MyLogonPanel(MyEntryPoint entryPoint)
>     {
>         this.entryPoint = entryPoint;
>         HorizontalPanel hp1 = new HorizontalPanel();
>         HorizontalPanel hp2 = new HorizontalPanel();
>
>         this.add(message);
>         hp1.add(new Label("UserId:"));
>         hp1.add(userIdTB);
>
>         hp2.add(new Label("Password:"));
>         hp2.add(passwordTB);
>
>         this.add(hp1);
>         this.add(hp2);
>         Button logonB = new Button("Logon");
>         logonB.addClickListener(new LogonClickListener());
>         this.add(logonB);
>         logonBox = this;
>     }
>
>     private class LogonClickListener implements ClickListener
>     {
>         public void onClick(Widget sender)
>         {
>             message.setText("--trying to logon--");
>             MyRemoteServiceAsync call = MyRemoteService.App.getInstance
> ();
>
>             UserId userId = new UserId(userIdTB.getText());
>             PassWord password = new PassWord(passwordTB.getText());
>             LogonCredentials logonCredentials = new LogonCredentials
> (userId, password);
>             call.logon(logonCredentials, new LogonCallback());
>         }
>     }
>
>     private class LogonCallback implements AsyncCallback
>     {
>         public void onFailure(Throwable caught)
>         {
>             logonBox.add(new Label("failure of LOGON callback"));
>             logonBox.add(new Label(caught.toString()));
>             logonBox.add(new Label("--END--"));
>         }
>
>         public void onSuccess(Object obj)
>         {
>             System.out.println("LOGON callback - onSuccess");
>             MyLogonResult result = (MyLogonResult) obj;
>
>             if (result.logonFailed())
>             {
>                 message.setText(result.getResponseString());
>                 return;
>             }
>             entryPoint.loggedOn(result);
>         }
>
>     }
>
> }
>
> ***
>
> On Nov 24, 4:56 am, rajasekhar <[EMAIL PROTECTED]> wrote:
>
> > I need to redirect to home page.because the problem without
> > redirecting is when I refresh the home page it is going to login page
> > again .Please let me know how to handle this.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Googl

Google chrome issue with GWT in History Management

2008-11-24 Thread Rick

Hello All

I am a facing a issue regarding History Management. I am performing
two actions on two button click. One button adds node in history using
History.newItem. and Second button redirects it to the same HTML page
again. Following code is used to redirect it:

public static native void reDirectPage(String html)/*-{
 var text = $wnd.location.href;
 var index = text.lastIndexOf("/");
 var subString = text.substring(0,index+1);
 var targetString = subString+html;
 $wnd.location.href = targetString;

 }-*/;

But after adding nodes in history , redirection is not happening in
Chrome whereas it is working fine in Mozilla and IE. In chrome it just
replace the URL and does not load entrypoint again.

Is it a bug of Google Chrome or I am using wrong way of redirecting.

Any comments in this regard will be highly appreciated.

Thanks and regards

Rick Smith


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Can Google Adsense be used with GWT

2008-11-24 Thread Rick

Hi Arthur

Thanks for feedback.
I placed the script provided by Google into HTML file and it was
working nice. But I want little more. I want to use it as widgets and
then add these widgets to RootPanel whenever required. and can control
the position where it shows. For this I put the script into a native
method and called this method on Click of a button. But I did not get
success. Using it in html will be something like hard code and does
not give user much flexibility.

On Nov 24, 8:06 am, "Arthur Kalmenson" <[EMAIL PROTECTED]> wrote:
> HiRick,
>
> AFAIK, GoogleAdSensewon't work very well unless your site is Search
> Engine Optimized. If it is, you should be able to add GoogleAdSense
> to your site like you would with any other site built with Javascript
> and HTML. You can integrate it either with JSNI or put it into the
> HTML file that starts your GWT app.
>
> --
> Arthur Kalmenson
>
> On Sun, Nov 23, 2008 at 12:00 AM,Rick<[EMAIL PROTECTED]> wrote:
>
> > I have developed a web site using GWT1.5. I want to show Google
> >Adsenseon it. DO GWT have support for GoogleAdsense. Any comments/
> > updates in this regard will be highly appreciated.
>
> > Regards
>
> >RickSmith
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Can Google Adsense be used with GWT

2008-11-22 Thread Rick

I have developed a web site using GWT1.5. I want to show Google
Adsense on it. DO GWT have support for Google Adsense. Any comments/
updates in this regard will be highly appreciated.

Regards

Rick Smith
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: authentication in GWT

2008-11-18 Thread Rick

To logout from HTTP authentication use:

public void logout() {
HttpSession session = this.getThreadLocalRequest().getSession();
session.invalidate();
}

You can do this in your ServiceImpl class.


I kind of agree with Reinier, but might have used language that was
less strong.
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



GWT, Netbeans and debugging

2008-11-17 Thread Rick

I have been working on a GWT project with Netbeans and the client side
debugging in hosted mode has stopped working. I created a test
helloworld project from scratch and the debugging works fine there. I
am using gwt4nb and I created another test project, copied over all my
sources but used all new build.xml and configuration files. Still no
joy. For my large project I have had to increase the memory to
GWTShell, but cannot imagine why this would cause problems with
debugging.

I know that I am not giving much information on this problem, but...

Anyone seen this?
Anyone have a solution?
Any suggestions?
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



using google addsense with gwt

2008-09-10 Thread Rick

Hi all
I want to place google adsense code into my gwt widgets. So that I can
control its position where to show.

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---