Re: Security Vulnerabilities with GWT

2022-10-26 Thread 'Ben Shapiro' via GWT Users
I know that this conversation is about 2 years old.  We upgraded to GWT 
2.10 in hopes that it would resolve the following vulnerabilities with 
protobuf-java, they are all being reports in the gwt-servlet.jar (version 
2.10.0):
https://nvd.nist.gov/vuln/detail/CVE-2022-3171
https://www.cve.org/CVERecord?id=CVE-2015-5237
https://github.com/advisories/GHSA-wrvw-hg22-4m67
https://github.com/advisories/GHSA-h4h5-3hr4-j3g2
https://nvd.nist.gov/vuln/detail/CVE-2021-22569

These are all being reported in our project by the AWS Enhanced Scanning.  
It there any way to upgrade Protobuf from 2.5.0 to the latest version of 
3.21.8?

Thanks in advance.
Ben

On Tuesday, June 30, 2020 at 4:16:01 AM UTC-6 priyako...@gmail.com wrote:

> Thank you very much for quick responses.
> Here are Vulnerabilities listed -
>
>
> Gwt-dev.jar -
> 1.1 Vulnerable version of jetty library(current version-- 9.2.14, 
> available version -9.2.27+ ) 
> [Associated CVEs -  
> CVE-2017-7656,CVE-2017-7657,CVE-2017-7658,CVE-2017-9735,CVE-2018-12536]
> 1.2 Vulnerable version of commons-collections(current version - 3.2.1)  [ 
> CVE-2015-6420,CVE-2017-15708,CVE-2014-3577]
> 1.3 Vulnerable version of org.apache.httpcomponents:httpclient(current 
> version - 4.3.1)  [ CVE-2015-6420,CVE-2017-15708,CVE-2014-3577]
> 1.4 Vulnerable version of Google Protobuf(current version - 2.5.0, 
> available version - 3.4.0) [CVE-2015-5237]
> 1.5  Vulnerable version of htmlunit ( current version - 2.19 , available 
> version- 2.37) [CVE-2020-5529]
>
> Gwt-servlet.jar -
> 1.1 Vulnerable version of Google Protobuf(current version - 2.5.0, 
> available version - 3.4.0) [CVE-2015-5237]
>
>
> On Monday, 29 June 2020 16:27:41 UTC+5:30, Priya Kolekar wrote:
>>
>>
>> Hi All,
>>
>> Security Vulnerability have been detected in gwt-dev.jar & 
>> gwt-servlet.jar(in release 2.8.2) & are reported by Dependency checker 
>> tool <https://jeremylong.github.io/DependencyCheck/>.
>>
>> Below are the details -
>>
>> Gwt-dev.jar -
>> 1.1 Vulnerable version of jetty library(current version-- 9.2.14, 
>> available version -9.2.27+ )
>> 1.2 Vulnerable version of commons-collections(current version - 3.2.1)
>> 1.3 Vulnerable version of org.apache.httpcomponents:httpclient(current 
>> version - 4.3.1)
>> 1.4 Vulnerable version of Google Protobuf(current version - 2.5.0, 
>> available version - 3.4.0)
>> 1.5  Vulnerable version of htmlunit ( current version - 2.19 , available 
>> version- 2.37)
>>
>> Gwt-servlet.jar -
>> 1.1 Vulnerable version of Google Protobuf(current version - 
>> 2.5.0, available version - 3.4.0)
>>
>> Given above vulnerabilities -
>> 1. Are those security issues addressed in latest 2.9.0 release?
>> 2. If no, is there a plan to include them in any future release say 3.x?
>> 3. As we know that gwt-dev.jar is used for development purpose & can be 
>> flagged as false positive, still are there any attack surfaces exists?
>>
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/5ee8893c-b867-4457-87f9-0e68f1fcc26dn%40googlegroups.com.


Re: Install GWT plugin for Firefox26

2022-06-28 Thread 'Ben Shapiro' via GWT Users
We have the gwt-dev-plugin-1.26-rc1.xpi plugin here in our office. I am 
happy to give you a copy if you want.  Then you can manually install it on 
your old version of Firefox.

You can reach me at bshapiro @ qvera.com.

Thanks.

On Friday, June 24, 2022 at 3:29:44 AM UTC-6 dis0...@gmail.com wrote:

> I maintain the (old) application with the GWT part. To run the system 
> locally (bugs fixing or minor code changes) I need the FF26 - and the GWT 
> plugin.
> Each time I have to setup my machine for the task, I install the FF26 and 
> the GWT plugin. No problems in the past. But this year I get the error 
> while doing it:
>
> Secure Connection Failed
> An error occurred during a connection to www.gwtproject.org. Cannot 
> communicate securely with peer: no common encryption algorithm(s). (Error 
> code: ssl_error_no_cypher_overlap) 
>
> How can I install the GWT plugin on my FF26 browser?
>
> Thanks!
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/7145216a-739c-4826-b424-424c750f8a83n%40googlegroups.com.


Help finding UK based get developers

2017-08-03 Thread Ben Potter
Hi guys, I'm looking for some help if you would be so kind.

I am looking for a gwt developer in the south of England. 

I'm having trouble finding a gwt specialist rather than someone who has just 
used it at some point in the past.

If anyone could point me in the right direction or recommend anyone it would be 
greatly appreciated.

Thanks

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Basic SuperDevCompiler + SuperDevModeUI Library

2015-09-12 Thread Ben Dol
That worked thanks, Jens. Makes this library less useful for me now haha oh 
well might find more use for it at some point.

Appreciate the help.

On Sunday, September 13, 2015 at 2:47:19 AM UTC+12, Jens wrote:
>
>
> Using intellij GWT run configuration with Tomcat7
>>
>
> I assume you have an exploded war artifact configured in IntelliJ that you 
> deploy it using a Tomcat7 server which is also configured inside IntelliJ. 
> In that case add "-war /path/to/war-artifact" to your GWT run configuration 
> as DevMode parameter. Once you do that all public resources as well as a 
> special .nocache.js file will be copied to your IntelliJ artifact 
> which you can then deploy to Tomcat7.
>
> If you don't add that "-war" parameter yourself in the GWT run 
> configuration then IntelliJ will use some temp folder for it which 
> obviously will not be the folder of your exploded war artifact configured 
> inside IntelliJ and that you are going to deploy. Thats probably why you 
> had problems with it.
>
> -- J.
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Basic SuperDevCompiler + SuperDevModeUI Library

2015-09-12 Thread Ben Dol
Using intellij GWT run configuration with Tomcat7

"C:\Program Files\Java\jdk1.7.0_65\bin\java" -Xms2048m -Xmx2048m 
-XX:MaxPermSize=1024m -Didea.launcher.port=7536 
"-Didea.launcher.bin.path=E:\Jetbrains\IntelliJ IDEA 14.1.4\bin" 
-Dfile.encoding=windows-1252 -classpath 
"C:\Users\Ben\.m2\repository\com\google\gwt\gwt-codeserver\2.7.0\gwt-codeserver-2.7.0.jar;
 

..."lots of jars"...
com.intellij.rt.execution.application.AppMain com.google.gwt.dev.DevMode 
-superDevMode -war 
C:\Users\Ben\.IntelliJIdea14\system\gwt\xxx-project.e34dc554\xxx.dcb6c866\run\www
 
-noserver -remoteUI 7903:IntelliJIdea -startupUrl http://127.0.0.1:8080/xxx 
nz.co.doltech.xxx

Runing CodeServer with parameters: [-noprecompile, -port, 9876, 
-sourceLevel, 1.7, -bindAddress, 127.0.0.1, -launcherDir, 
C:\Users\Ben\.IntelliJIdea14\system\gwt\xxx.e34dc554\xxx.dcb6c866\run\www, 
-logLevel, INFO, nz.co.doltech.xxx]
Super Dev Mode starting up
   workDir: 
C:\Users\Ben\AppData\Local\Temp\gwt-codeserver-4027014467612992043.tmp
   Loading Java files in nz.co.doltech.xxx.
Linking modules
   Bootstrap link for command-line module 'nz.co.doltech.xxx'

On Sunday, September 13, 2015 at 1:10:30 AM UTC+12, Jens wrote:
>
> Either launch (other parameters omitted)
>
> DevMode -noserver -war /path/to/exploded_war
>
> or
>
> CodeServer -launcherDir /path/to/exploded_war
>
> with /path/to/exploded_war being your build tool's output war directory or 
> your GWT-Project/war folder. At work we do this for ages because we always 
> use the exact same servlet container as we use in production. So we 
> literally never used GWT's bundled jetty server.
>
> What problems did you encounter? When coming from GWT 2.6 classic DevMode 
> it should actually just work without any changes to your configuration.
>
> -- J.
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Problems GWT2.7 superdevmode + tomcat server

2015-09-11 Thread Ben Dol
There is a way to get it working with the tomcat maven plugin with gwt 
maven plugin, however I haven't had any luck with that yet. In the mean 
time you can use a library I wrote up for SuperDevMode to help manipulate 
compilations. Somewhat a work around to many issues but I find it helps me 
out a lot in development https://github.com/BenDol/SuperDevModeUI

On Saturday, September 12, 2015 at 12:58:09 AM UTC+12, Thomas Lacroix wrote:
>
> Hi,
>
> I would like to use superdevmode with my tomcat8 server, it doesn’t work 
> and I don’t see what I am doing wrong. I followed this video:
>
> “Debugging GWT Super Dev Mode using Tomcat” (
> https://www.youtube.com/watch?v=w9270Yqt-5I)
>
> but I am getting an error HTTP 404 resource not available. When I look in 
> the launcherDir directory (Dwtp.deploy), I am not sure it is publishing the 
> app right, it seems it is missing files (.html, js files, etc...)
>
> I also tried to fiddle with a GWT Web Application launcher with –noserver 
> but can’t get it to not use jetty as it offers me to debug with the url:
>
> http://127.0.0.1:/localhost:8080/projectX.html
>
> It is probably a separate issue from the first one.
>
> I had no better luck following this other video that is using the SDBG 
> plugin (https://www.youtube.com/watch?v=d6xsX9x9WC4), the SDM code server 
> is not automatically created and launched and I see only the thread about 
> tomcat8 server. For this latter problem, I do not have the same google 
> plugin for eclipse as in the video (different logo) so that might be the 
> problem.
>
> I tried the same tests as above with a jar compiled from tip of the trunk 
> but it does not change anything.
>
> Does anyone have a clue about what I am missing here?
>
> Thanks
>
> Thomas
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Basic SuperDevCompiler + SuperDevModeUI Library

2015-09-11 Thread Ben Dol
So I wanted to invoke SuperDevMode compilations myself removing the need 
for the bookmarks so I wrote an emulated wrapper for the dev_mode_on.js 
compiler interface. Then added some useful features to a SuperDevModeUI 
like auto compile on F5, display compile errors in the same window and an 
optional ghost button to invoke a recompile in the top left corner of the 
application.

https://github.com/BenDol/SuperDevModeUI 



































Anyway, someone might find it useful. I find it helps in my development so 
thought I'd share it.

Enjoy!

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Basic SuperDevCompiler + SuperDevModeUI Library

2015-09-11 Thread Ben Dol
Not when you are using Tomcat. I know there are ways to get it working with 
Tomcat, but I didn't have any luck with it yet.

On Saturday, September 12, 2015 at 7:27:35 AM UTC+12, Jens wrote:
>
> Are you aware that GWT 2.7 already has automatic recompilation on browser 
> reload by default?
>
> -- J.
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Hibernate Validator Issue

2015-02-19 Thread Ben Dol
Also forgot to mention I have the GWT inherit in my modules gwt.xml, like 
so:

inherits name=org.hibernate.validator.HibernateValidator /
replace-with
class=nz.co.doltech.ims.client.core.AppValidatorFactory
when-type-is class=javax.validation.ValidatorFactory /
/replace-with


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Hibernate Validator Issue

2015-02-19 Thread Ben Dol
Hey guys, I'm trying to get the GWT Validation working but I keep getting a 
ton of compile errors. I am using Maven to import the dependencies 
including the Hibernate Sources which I am manually installing with maven. 
This is the error I get when compiling: http://pastebin.com/TBt0ps4K and 
here is how I have it set up.

Parent POM:

plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-install-plugin/artifactId
version${maven-install-plugin.version}/version
inheritedfalse/inherited
executions
execution
idinstall-hibernate-validator/id
phasevalidate/phase
goals
goalinstall-file/goal
/goals
configuration

file${basedir}/lib/hibernate-validator-4.1.0.Final-sources.jar/file
groupIdorg.hibernate/groupId
artifactIdhibernate-validator-sources/artifactId
version${hibernate-validator.version}/version
packagingjar/packaging
generatePomtrue/generatePom
/configuration
/execution
/executions
/plugin


 ...

dependency
groupIdorg.hibernate/groupId
artifactIdhibernate-validator/artifactId
version${hibernate-validator.version}/version/dependency

dependency
groupIdorg.hibernate/groupId
artifactIdhibernate-validator-sources/artifactId
version${hibernate-validator.version}/version
/dependency


...

Modules POM:

dependency
groupIdorg.hibernate/groupId
artifactIdhibernate-validator/artifactId
/dependency

dependency
groupIdorg.hibernate/groupId
   artifactIdhibernate-validator-sources/artifactId
/dependency



https://lh3.googleusercontent.com/-hBrkBSDzmeI/VOZPidyHJaI/AVA/Tl3R3u5DeCY/s1600/Untitled.png

Any Ideas what might be going on here?

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Hibernate Validator Issue

2015-02-19 Thread Ben Dol
Also this is the version used:

hibernate-validator.version4.1.0.Final/hibernate-validator.version

As instructed by the tutorial on the gwt webiste.


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Access OutputStream of HttpServlet within GWT Client

2014-05-28 Thread Ben
Hi,

we have the following scenario:

We want to show an html output from our reporting framework within the gwt 
client.
We have access to this generated html content via an HttpServlet that 
writes its output to 
HttpServletResponse.getOutputStream()

We already had a look at RequestBuilder. But the response does not look 
like the one from the HttpServlet. 

Is there any chance to access data from a HttpServlet response in GWT?

Regards
Ben

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: RadioButton does not get selected when setValue is called events not fired in IE

2014-04-23 Thread Ben Hahne
dhoffer dhoffer6@... writes:

 
 I have two RadioButtons on a panel, each have an
 addValueChangeHandler() listener.  Later after all the widgets are
 created and added to the panelI call readiobutton1.setValue(true,
 true) to both set it as selected and to fire events which the
 addValueChangeHandler() listener should pickup.
 
 However here is what happens.
 
 - Most of the time the selected RadioButton is not enabled, that is,
 neither of the RadioButtons are selected when the panel loads.
 However most of the time the event is fired/caught which causes other
 buttons to be enabled/disabled.
 
 - However in IE, most of the time the event (above) is not fired.
 Well actually all I can see is that the results of the event do not
 happen so it must not be fired.
 
 Am I doing something wrong?  What is the right way to create
 RadioButtons with a default one and then have a listener to act based
 on what is selected either by the user or by code?
 
 Thanks much!
 


So, this has been driving me insane for almost a day.

Finally I have figured out how to get this to work.  I presume it isn't 
working because the widget hasn't been attached to the DOM.  I haven't a 
clue why this should matter to the browser, but I have found that putting 
the RadioButton.setValue(state,state) works fine after the item has been 
added to the initialized widget!

I know this is an old post, but I couldn't find a work around anywhere!

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: RadioButton does not get selected when setValue is called events not fired in IE

2014-04-23 Thread Ben Hahne
So, this fix evidently only satiates IE :( WTH CHROME?!



-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: RadioButton does not get selected when setValue is called events not fired in IE

2014-04-23 Thread Ben Hahne
OK!

So I have just realized my issue was because I was using tabs and had radio 
buttons with the same group name.  This was causing confusion with who was to 
be checked evidently.  So, after making different group names for each set of 
tabs, I see the expected results.

#DontCopyPastCode

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Super Dev Mode in Firefox, Breakpoints not being hit

2014-03-04 Thread Ben Hegarty
That seems to have helped, so it breaks on the GWT.Debugger() but the 
breakpoints still seem not to work. At least I have a workaround cheers.

On Tuesday, 4 March 2014 18:19:59 UTC, Brian Slesinsky wrote:

 In my testing they do sometimes work but it is certainly flaky. I 
 recommend adding a GWT.debugger() call and recompiling; that should always 
 work, unless something is really wrong.

 - Brian

 On Monday, March 3, 2014 12:44:06 PM UTC-8, Ben Hegarty wrote:

 Hi,
 I was wondering if anyone is seeing issues using super dev mode in 
 firefox, I've tried it in chrome and it works perfectly, but in firefox the 
 breakpoints aren't being hit, i've even rolled back to using a basic 
 project just to test it and still with no luck. Is anyone else seeing this 
 issue? Or is a special way that firefox enables breakpoints?
 Regards
 Ben



-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


Super Dev Mode in Firefox, Breakpoints not being hit

2014-03-03 Thread Ben Hegarty
Hi,
I was wondering if anyone is seeing issues using super dev mode in firefox, 
I've tried it in chrome and it works perfectly, but in firefox the 
breakpoints aren't being hit, i've even rolled back to using a basic 
project just to test it and still with no luck. Is anyone else seeing this 
issue? Or is a special way that firefox enables breakpoints?
Regards
Ben

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


How to disable smartgwt CustomValidator for a specific scenario

2014-02-28 Thread Hanen Ben Rhouma
 H


Hello,


I have a form which uses CustomValidator to check for non empty field
whenever we try to Add a record (PARAMETER, VALUE) I'm looking for a way to
disable form validation when I'm trying to Delete (the user can delete an
empty listGridRecord if he changes his mind and needs no more to add).

I'm using this custom validator:

CustomValidator validatorParameter = new CustomValidator() {

@Override
protected boolean condition(Object value) {

parameterName = (String) value;
if ((value == null || ((String) value).trim().isEmpty())) {
rowIsValidate = false;
return false;
} else {
rowIsValidate = true;
return true;
}
}
};

which I'm setting in an init() method this way:

parametersListGrid.getField(PARAMETER).setValidators(validatorParameter);

I tried setting a flag noValidation on true whenever I detect a click on
Delete button and used it this way:

CustomValidator validatorParameter = new CustomValidator() {

@Override
protected boolean condition(Object value) {

parameterName = (String) value;
if (((value == null || ((String) value).trim().isEmpty()))
 !noValidation){
rowIsValidate = false;
return false;
} else {
rowIsValidate = true;
return true;
}
}
};

but I figured out that this flag is set later on after the validation
happened so rowIsValidate stays false and we can't delete the empty record
given the errors shown after validation;

Any idea on how to pass this validation step just in deletion scenario?

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


Custom widget child elements

2014-01-03 Thread Ben Cuthbert
Hi All,

I have created a custom widget that extends ComplexPanel so that it can 
have children.

The UIBinder looks like so

layout:Layout ui:field=layoutPanel

 layout:top

  g:HTMLPanel styleName=links-container

  /g:HTMLPanel

 /layout:top

 /layout:Layout


In the Layout class that extends ComplexPanel I have a method to add to top


@UiChild( tagname = top )

public final void addTopPanel(Element widget) {

 addPanelToParent(TOP_CONTENT_TAG, widget);

 }


The issue I see is that when UIBinder builds the page it trys to load the 
child element of layoutPanel before building and calling onLoad of 
layoutPanel. The child needs to the parent element layoutPanel to be 
initialised before it attempts to load itself onto the parent if that makes 
sense. Basically like the Document.ready(), once that is called the child 
can add to the parent.

The only way around this was to create an eventBus msg and fire it into the 
application once the entire app has loaded and then manually create a class 
of the Child widget and add it to the parent. 

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Determining dependencies for split points

2013-11-03 Thread Ben Klein
The solution that worked for me was to move the code from the runAsync 
method of split point 1 out of the runAsync call (next to it). This put the 
relevant code into the initial download part, where I could trace the 
dependency.

On Monday, October 14, 2013 1:00:41 PM UTC-4, Ben Klein wrote:

 In my GWT application, I have several split points. In the compile report, 
 it says that a certain class has some code loaded in split point 1 and some 
 code loaded in split point 5. How do I find out what is causing the code to 
 load from split point 5?
  

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Determining dependencies for split points

2013-11-03 Thread Ben Klein
Correction: split point 5, not 1

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


Integration of desktop and mobile application

2013-10-22 Thread Ben
Hello all,

we have two applications, a GWT application for desktop use and a M-GWT 
application for mobile devices.

What we want:

- the user should have to call only one URL regardless on what device
- the GWT application should transparently direct the user to the M-GWT 
application if the user is using a mobile device
- the two applications should be kept as two seperate modules / projects, 
so that they can be compiled separately

We are using GWT 2.5.1, GWTP 1.0.1 and M-GWT 1.1.2.
We already tried to accomplish this by using GWTPs form factors, but 
realized that this isn't suitable for our task, because we have two 
completely different apps.

How can we achieve this?

Regards
Ben

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Determining dependencies for split points

2013-10-14 Thread Ben Klein
Actually, these are initial fragments, loading in the order 5,1,2,3,4. 
There are no exclusive fragments in this application.

On Monday, October 14, 2013 1:37:46 PM UTC-4, Jens wrote:

 You have only used that specific code in split point 5 and never in split 
 point 1. Thats why the code ends up in split point 5. If you would use the 
 same code in both split points it would end up in the left over fragment 
 because its not unique anymore to a single split point.

 The compile report should show you a method call stack which the GWT 
 compiler has been used to determine if a code fragment should end up in the 
 split point you currently investigate.


 -- J. 


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


Build tree table with GWT CellTableBuilder

2013-05-22 Thread Ben


Is it possible to build a tree table like 
thishttp://www.sencha.com/examples/#ExamplePlace:basictreegridwith the new 
CellTableBuilder of vanilla GWT?
https://lh5.googleusercontent.com/-oHWT1_E1_LY/UZzQ8WUvYlI/AAM/I8q4wxhkTt4/s1600/oqDJW.png
The GWT Showcase 
examplehttp://gwt.googleusercontent.com/samples/Showcase/Showcase.html#!CwCustomDataGrid
 only 
allows to expand the top level rows. My use case requires expansion of 
multiple row levels.

How can I achieve this with pure GWT?


Regards
Ben

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




Re: Slider for GWT?

2013-05-16 Thread Ben Ritchie
CSS hide the other scrollbar?

On Tuesday, 7 May 2013 19:00:14 UTC+1, membersound wrote:

 This incubator works perfectly for me, as I just need a single scrollbar. 
 Thanks!


 2013/5/7 Honza Rames ram...@gmail.com javascript:

 There is an Slider implementation in GWT incubator (
 https://code.google.com/p/google-web-toolkit-incubator/wiki/SliderBar) 
 which is now deprecated but can be used as a how-to. I've used this 
 codebase and created an updated implementation that added mobile support 
 and more. But is still pixel based and kind of slow to render (if you have 
 a lot of them). But if you want I'll be happy to share ;-).

 Honza

 On Sunday, May 5, 2013 7:57:16 PM UTC+2, membersound wrote:

 Hi,

 maybe I'm missing it, but so far I could not found a Slider Widget (or 
 anything similar I could misuse therefore).

 Doesn't gwt provide a slider?

  -- 
 You received this message because you are subscribed to a topic in the 
 Google Groups Google Web Toolkit group.
 To unsubscribe from this topic, visit 
 https://groups.google.com/d/topic/google-web-toolkit/omXqNhZc_xU/unsubscribe?hl=en
 .
 To unsubscribe from this group and all its topics, send an email to 
 google-web-toolkit+unsubscr...@googlegroups.com javascript:.
 To post to this group, send email to 
 google-we...@googlegroups.comjavascript:
 .
 Visit this group at 
 http://groups.google.com/group/google-web-toolkit?hl=en.
 For more options, visit https://groups.google.com/groups/opt_out.
  
  




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




Converting JavaScript project to GWT component

2013-03-12 Thread Ben Cuthbert
Has anyone got any good tutorials on converting Javascript projects 
like http://needim.github.com/noty/ to GWT components?

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




GWT Maps - v2 to v3

2013-02-12 Thread Ben
We are looking at porting our GWT Maps v2 apps to v3. As we understand it 
there are 2 principle efforts/libs to this effect:

   1. http://code.google.com/p/gwt-google-maps-v3/ 
   2. 
   
http://code.google.com/p/gwt-google-apis/downloads/detail?name=gwt-maps-3.8.0-pre1.zip
 
   

 It does appear that the following issues are problematic and/or will 
require considerable re-engineering when going from v2 to v3:

   - - tabbed / composite info-windows (for polylines and markers) (they 
   don't exist in v3)
   - - polyline clickhandlers (broken in v3?) 
   - - Control clickhandlers e.g., custom Button on the map. (broken in v3?)
   
Anyone have systematic porting experience now and willing to share a) which 
lib they chose, b) how they implemented tabbed infowindows containing 
widgets (requiring click handlers), and polyline and control clicks, and 
any other gotchas?  There are a few examples showing case by case 
mitigation of issues but the code samples are limited and we're finding it 
a challenge thus far (e.g., overriding InfoWindow - how?).

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




Re: why no getTabBar() in TabLayoutPanel?

2013-02-11 Thread Ben
 

I also would need the getTabBar() but for a different reason (dynamically 
customizing the style of the bar) thus the proposed workarounds are not 
good for me.

 Any suggestion? At least I would like to understand why this essential 
basic functionality has been removed. 

 

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




Re: GWT 2.5 dev mode unable to refresh

2012-12-04 Thread Ben St. Pierre
No ideas?

On Tuesday, November 13, 2012 4:52:03 PM UTC-7, Ben St. Pierre wrote:

 Hi guys,

 After upgrading to to GWT 2.5 I am unable to refresh my dev mode.  It 
 initially loads fine but reloading (in any browser causes the rpc mechanism 
 to throw this error...

 Caused by: com.google.gwt.user.client.rpc.SerializationException: 
 java.lang.RuntimeException: Unable to find class 
 com.google.gwt.user.client.rpc.core.java.util.ArrayList_FieldSerializer

 Any idea what would cause this?  As I said again it loads the first time 
 in dev mode but then fails after a refresh (even with no code changes).


-- 
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/-/fB1tPkdyQNsJ.
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.5 dev mode unable to refresh

2012-11-13 Thread Ben St. Pierre
Hi guys,

After upgrading to to GWT 2.5 I am unable to refresh my dev mode.  It 
initially loads fine but reloading (in any browser causes the rpc mechanism 
to throw this error...

Caused by: com.google.gwt.user.client.rpc.SerializationException: 
java.lang.RuntimeException: Unable to find class 
com.google.gwt.user.client.rpc.core.java.util.ArrayList_FieldSerializer

Any idea what would cause this?  As I said again it loads the first time in 
dev mode but then fails after a refresh (even with no code changes).

-- 
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/-/Fbir_JLhQJ4J.
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's ReflectionHelper.loadClass(String) does?

2012-11-08 Thread Ben St. Pierre
It's used by dev mode to load classes dynamically.  GWT production code 
would be unable to use this.

On Monday, October 3, 2011 12:27:07 PM UTC-6, Elhanan wrote:

 hi.. it seems there is some sort of partial reflection support in gwt, but 
 can i use it? is it the same as class.forname?


-- 
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/-/Zf7sB34ldO0J.
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 compiler .java files

2012-10-25 Thread Ben Cuthbert
All

I when I add my modules .java files into the jar and pass it to my 
application the compiler works. But when I put the .java files of the 
module into a -sources.jar and then add that to the classpath of my 
application the compile does not work, and I get the following error.

ERROR] Line 48: No source code is available for type

-- 
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/-/Xm-oeMSHokoJ.
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: CellList Style

2012-10-24 Thread sana ben aissa
hi , 

how does it work in case i added the same widget twice in a view ? i wanna 
add the same widget twice in a view with diffrent style ! 
like this , i will always get the second style i puted in the component !

thx for ur time :=)

-- 
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/-/qBEQf61ecp8J.
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: TabLayoutPanel with scroll buttons

2012-09-25 Thread sana ben aissa

please can you show me how to use it , i coudn't even test it !

-- 
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/-/RUADpqouugoJ.
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: TabLayoutPanel with scroll buttons

2012-09-25 Thread sana ben aissa


 hi , 


please can help me understand what do you mean by saying You should be 
able to wrap it into a Composite and then reference that 
Composite in your UiBinder file though.  ?? 

and i m searching for a widget that can help me do this 
http://www.youtube.com/watch?v=bUDpr-v-jHAfeature=relmfu (in 1:56) , is 
this code is what i am looking for ?
I used a tablayoutpanel and when it comes to doing scrollable tabs , i foud 
your code !! but i can't be sure !

-- 
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/-/8IzF8Q40Gp8J.
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.



Newbie listbox with Uibinder issue

2012-09-25 Thread Ben Hegarty
I've been having a problem using the Listbox with the UIbinder but I can't 
seem to figure out why the following code doesn't populate the listbox on 
startup?

public class RegistrationViewImpl extends Composite implements 
RegistrationView {

private static RegistrationViewUiBinder uiBinder = 
GWT.create(RegistrationViewUiBinder.class);

@UiField Button register;
@UiField Button postcodeLookup;

@UiField TextBox tbxFirstName;
@UiField TextBox tbxSurname;
@UiField TextBox tbxEmail;

@UiField(provided=true) ListBox lbxDay;
@UiField(provided=true) ListBox lbxMonth;
@UiField(provided=true) ListBox lbxYear;
@UiField(provided=true) ListBox lbxGender;
@UiField(provided=true) ListBox lbxInterestedIn;

@UiField TextBox tbxPostcode;
@UiField ListBox lbxAddress;
@UiField TextBox tbxUsername;
@UiField PasswordTextBox tbxPassword;
@UiField PasswordTextBox tbxCfmPassword;

private Presenter presenter;

@UiTemplate(RegistrationViewImpl.ui.xml)
interface RegistrationViewUiBinder extends UiBinderWidget, 
RegistrationView {
}

public RegistrationViewImpl() {
lbxDay = new ListBox(false);
lbxMonth = new ListBox(false);
lbxYear = new ListBox(false);
lbxGender = new ListBox(false);
lbxInterestedIn = new ListBox(false);

populateListBoxes();

initWidget(uiBinder.createAndBindUi(this));
}

private void populateListBoxes() {
for (Integer day = 1; day = 31; day++ ){
lbxDay.addItem(day.toString());
}
lbxDay.setVisibleItemCount(1);

lbxMonth.addItem(January);
lbxMonth.addItem(February);
lbxMonth.addItem(March);
lbxMonth.addItem(April);
lbxMonth.addItem(May);
lbxMonth.addItem(June);
lbxMonth.addItem(July);
lbxMonth.addItem(August);
lbxMonth.addItem(September);
lbxMonth.addItem(October);
lbxMonth.addItem(November);
lbxMonth.addItem(December);
lbxMonth.setVisibleItemCount(1);

int currentYear = DateUtil.getYearAsInt(new Date());
for (Integer year = 1900; year=currentYear; year++){
lbxYear.addItem(year.toString());
}
lbxYear.setVisibleItemCount(1);

lbxGender.addItem(Gender.Man.toString());
lbxGender.addItem(Gender.Woman.toString());

lbxInterestedIn.addItem(Gender.Man.toString());
lbxInterestedIn.addItem(Gender.Woman.toString());
}

@UiHandler(register)
void onRegisterClick(ClickEvent event) {
if (!tbxPassword.getText().equals(tbxCfmPassword.getText())) {
Window.alert(Passwords do not match.);
}

User user = new User(tbxUsername.getText(),tbxEmail.getText());
user.firstName = tbxFirstName.getText();
user.lastName = tbxSurname.getText();   

DateTimeFormat fmt = DateTimeFormat.getFormat(.MM.dd);

String day = lbxDay.getItemText(lbxDay.getSelectedIndex()); 
String month = lbxMonth.getItemText(lbxMonth.getSelectedIndex());  
String year = lbxYear.getItemText(lbxYear.getSelectedIndex());  
user.dob = fmt.parse(year +  + month + . + day);

user.gender = 
Gender.valueOf(lbxGender.getItemText(lbxGender.getSelectedIndex()));
user.interestedIn = 
Gender.valueOf(lbxInterestedIn.getItemText(lbxInterestedIn.getSelectedIndex()));
 

user.address.postcode = tbxPostcode.getText();  
user.address.houseNumber = 
lbxAddress.getItemText(lbxAddress.getSelectedIndex());

presenter.onRegisterUser(user, tbxPassword.getText());
}

@UiHandler(postcodeLookup)
void onPostcodeLookupClick(ClickEvent event) {
}

@Override
public void setPresenter(Presenter presenter) {
this.presenter = presenter;

}
}


and the XML..

!DOCTYPE ui:UiBinder SYSTEM http://dl.google.com/gwt/DTD/xhtml.ent;
ui:UiBinder xmlns:ui=urn:ui:com.google.gwt.uibinder
xmlns:g=urn:import:com.google.gwt.user.client.ui 
xmlns:p1=urn:import:com.google.gwt.user.datepicker.client
ui:style
.important {
font-weight: bold;
}
/ui:style
g:HTMLPanel
g:LayoutPanel width=527px height=515px
g:layer left=144px width=73px top=11px height=18px
g:Label text=First Name:/
/g:layer
g:layer left=223px width=186px top=4px height=25px
g:TextBox name=tbxFirstName ui:field=tbxFirstName/
/g:layer
g:layer left=157px width=60px top=42px height=18px
g:Label text=Surname:/
/g:layer
g:layer left=223px width=186px top=35px height=25px
g:TextBox name=tbxSurname ui:field=tbxSurname/
/g:layer
g:layer left=171px width=46px top=73px 

CellTable does not appear when used in CellList (or CellTable) as part of a custom widget

2012-09-03 Thread ben
Hello,

I created a custom widget that contains a CellTable and other components.
It works fine.

Now I want to use this widget in a CellList (or CellTable, whatever).
I created a custom cell that extends AbstractCell and contains my widget.

The problem is that I can see every components of my custom widget except 
the CellTable.

Thanks for your help.

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



CellTable does not appear when used in CellList (or CellTable) as part of a custom widget

2012-09-03 Thread ben
Hello,

I created a custom widget that contains a CellTable and other components.
It works fine.

Now I want to use this widget in a CellList (or CellTable, whatever).
I created a custom cell that extends AbstractCell and contains my widget.

The problem is that I can see every components of my custom widget except 
the CellTable.

Thanks for your help.

-- 
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/-/KkKkmeESLYEJ.
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: Any summary on The History and Future of Google Web Toolkit available?

2012-07-03 Thread Ben
here is the presentation: 
https://docs.google.com/presentation/d/1pC9WK80-fzIs2iMQOO3Jsvfmqv2erI9xucuF3lHOE7Q/edit#slide=id.p18
 

Am Montag, 2. Juli 2012 22:44:08 UTC+2 schrieb Celinio Fernandes:

 https://developers.google.com/events/io/sessions/gooio2012/218/   is this 
 talk finally available somewhere ? i'm looking for the video !

 On Sat, Jun 30, 2012 at 7:23 AM, Ali Jalal ali.jal...@gmail.com wrote:

 Another news:


 http://podcasts.infoworld.com/d/application-development/google-hands-over-control-of-google-web-toolkit-steering-committee-196753?_kip_ipx=393161888-1341015596source=rss_infoworld_top_stories_utm_source=twitterfeedutm_medium=twitter


 On Sat, Jun 30, 2012 at 3:11 AM, Thomas Broyer t.bro...@gmail.comwrote:



 On Friday, June 29, 2012 10:14:14 PM UTC+2, Clint wrote:

 I was hoping to see the Google IO session streamed: The History and 
 Future of Google Web Toolkit, but apparently it wasn't available.

 Any summaries folks care to post from that session? Feel free to post a 
 link to the video once its available if you see it. 


 Ray just posted his slides: 
 https://docs.google.com/presentation/d/1pC9WK80-fzIs2iMQOO3Jsvfmqv2erI9xucuF3lHOE7Q/edit
  
  
 -- 
 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/-/bnDZTkr9YxgJ.

 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.


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




-- 
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/-/jnYtp_9GgQYJ.
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: add timer on panel......

2012-06-04 Thread Ben Klein
If I recall correctly, System.currentTimeMillis() still works in GWT. In 
your timer code, this can be called; end_time + start_time - current_time 
will give you how much time is left.

On Tuesday, May 29, 2012 7:59:43 AM UTC-4, Harshal Patil wrote:

 Hello

 Can anyone plz help me to create timer and how to add it on the panel?


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



Tree HTML item loses focus

2012-03-07 Thread Ben Klein
I have a Tree serving as a navigation pane, in which almost all of the
items are HTML links. Often, when tabbing through the tree, the Tree
itself will take back the focus from whichever link was selected. Is
there any way that I can prevent this from happening?

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



ListBox horizontal scrollbar

2012-01-20 Thread Ben
Using GWT2.0.3 and trying to find an easy way to effectively end up
with a ListBox that has both vertical *and* horizontal scrollbars
(vertical is no problem - the horizontal is the sticky one).  Not
finding conclusive answers in the forums at this point. Was hoping to
find someone who'd done the extension or has a new widget I can freely
use.

Regards.

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



Incubator SliderBar - setCurrentValue() not updating the slider's value

2011-11-15 Thread Ben
I'm using the SliderBar from GWT incubator.. I can't get it to set
value! In the below code the alert pops up but the Slider's value does
not change.
What am i missing?
Thanks.


SLIDER_LIT_MIN = new SliderBar(0.0,1);
SLIDER_LIT_MIN.setStylePrimaryName(gwt-SliderBar-shell);
SLIDER_LIT_MIN.setWidth(150px);
SLIDER_LIT_MIN.setStepSize(100.0);
SLIDER_LIT_MIN.setCurrentValue(2000.0);
SLIDER_LIT_MIN.setNumTicks(25);
SLIDER_LIT_MIN.setNumLabels(2);
SLIDER_LIT_MIN.addMouseUpHandler(new MouseUpHandler(){
public void onMouseUp(MouseUpEvent event) {
  double max = SLIDER_LIT_MAX.getValue().doubleValue();
  double min = SLIDER_LIT_MIN.getValue().doubleValue();
  if(minmax){alert(minmax);
SLIDER_LIT_MIN.setCurrentValue(new Float(max),true);}
}//onKeyUp
});

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



Ruler tool for GWT maps

2011-11-03 Thread Ben
Hi GWT/Mappers - Has anybody built a ruler tool to enable measuring
between 2 points *on a map created via GWT* in java?  An example or
sources would be appreciated. I suppose either JSNI or GWT version is
ok.. I'm using an older ver. of GWT - 2.1.
Thanks.

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



Re: FileUpload and IE8

2011-10-06 Thread Ben Imp
Not that this helps you resolve your issue, but the GWT applications I 
maintain have no issues when uploading files in IE8 land.  Something about 
how you are handling things is likely unique.  Post some code and, as others 
have mentioned, a bit more detail about what exactly is happening.

-Ben

-- 
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/-/0-hM9_iCRRsJ.
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: Using window.open(), Chrome and extensions in GWT project..

2011-10-05 Thread Ben
I can only PARTLY answer my own question: in a Chrome window opened
via open.window() you can right-click on the title bar and select
open in tab. this returns the window to traditional form and exposes
the extensions bar. This is an extra step and we'd still love to see
if extensions bar can be made visible by default from window.open().

On Oct 4, 3:52 pm, Ben ben.falc...@gmail.com wrote:
 As a part of a larger GWT project we have some native JavaScript in
 which we use window.open to create a new Chrome instance. So far so
 good. But we have some Chrome extensions (e.g., a screenshot extension
 - 'Awesome Screenshot', or 'Screen capture (by Google)') that we want
 available to this new window. Is is possible to show the extensions
 bar in the new.window ??  Is there any other hooks so we can make use
 of the screen-capture capabilities from the new window?  (Yes, I
 realize that on WinXP/Win7 one could use system utils like
 SnippingTool or alt-printScrn).

 Thanks.

 Example window.open():

 body
 ullia href= onclick=window.open('http://www.google.com',
 'mywindow', 'width=700, height=700, scrollbars=no, resizable=no,
 toolbar=no, menubar=no, location=no'); return false;Pop out a new
 Chrome window (can i make the extensions-bar visible too??)/a/li/
 ul
 /body

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



Using window.open(), Chrome and extensions in GWT project..

2011-10-04 Thread Ben
As a part of a larger GWT project we have some native JavaScript in
which we use window.open to create a new Chrome instance. So far so
good. But we have some Chrome extensions (e.g., a screenshot extension
- 'Awesome Screenshot', or 'Screen capture (by Google)') that we want
available to this new window. Is is possible to show the extensions
bar in the new.window ??  Is there any other hooks so we can make use
of the screen-capture capabilities from the new window?  (Yes, I
realize that on WinXP/Win7 one could use system utils like
SnippingTool or alt-printScrn).

Thanks.

Example window.open():

body
ullia href= onclick=window.open('http://www.google.com',
'mywindow', 'width=700, height=700, scrollbars=no, resizable=no,
toolbar=no, menubar=no, location=no'); return false;Pop out a new
Chrome window (can i make the extensions-bar visible too??)/a/li/
ul
/body

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



Using FileUpload

2011-10-03 Thread Soumaya Ben Abdallah
Hi All,

I was wondering, is there a way to get the last modified date of a
file when using the FileUpload component?

Thanx in advance.

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



Re: Performance Tip for IE browsers : Java garbage collection is NOT Javascript garbage Collection

2011-09-26 Thread ben fenster
so just to understand just replace anonymous in call callback with a
variable will fix the problem ?
instead of:
call(new callback(){});

use :
callback c = new callback(){};
call(c);

?



On Sep 26, 1:29 pm, Rokesh rjan...@gmail.com wrote:
 Hi All,

 I've been working on GWT for a while now and noticed something important and
 peculiar.
 In GWT you code in Java and almost automatically assume Java garbage
 collection (because that's how you code).

 In this code 
 sample:http://code.google.com/webtoolkit/doc/latest/DevGuideServerCommunicat...
 you'll see that the callback is created like the code snippet below. I
 imagine that every GWT project will implement it like this.

 The Use Case: Fill data in the new CellTable widget. The size of the data
 varied from 100 to 600 records.

 If the onSuccess results in a lot of data and this event/callback is invoked
 lots of times (actually 3 to 5 times is enough) , on IE6, IE7,IE8 and IE9
 there will be performance degradation. In other browsers
 like Chrome, Firefox and Safari there is no performance loss noticed.

 After reading Joel Webber's note on Performance, I found out that it's not
 the component (like the CellTable) that causes this behavior,
 but it was the callback creation. It seems that IE doesn't know how to
 garbage collection the callback. So each time this new AsyncCallback is
 performed,
 a memory leak occurred in IE browsers.

 Since the Callback is stateless, we decided to create the callback only once
  (*static *variable) and there was no performance loss anymore.
 After clicking for a while, the performance was the same (even after
 inspecting the results of  some measurement tools).

 This worked for us and even IE6 is blazingly fast. IE9 is now even faster
 that Chrome! No need for Chrome Frame Plugin (some organizations don't allow
 Plugins at all, think about that!)

 Hopefully this tip works for you.

 And Yes we have GWT in production. That company's browser policy is to use
 IE (now on 7, moving to 8). So this had to work or otherwise , it was a huge
 showstopper!

 GWT applications do perform (even in older browsers), just make sure that
 critical parts of your code are carefully reviewed (especially on the
 new).

  AsyncCallback callback = new AsyncCallback() {
     public void onSuccess(Void result) {
       // do some UI stuff to show success
     }

     public void onFailure(Throwable caught) {
       // do some UI stuff to show failure
     }
   };

   // (3) Make the call...

-- 
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: Java and HTML file

2011-09-13 Thread Ben Imp
While I'm not sure GWT allows you to do exactly what you are asking, you 
should be able to use a ui binder template to accomplish the same goal.

http://code.google.com/webtoolkit/doc/latest/DevGuideUiBinder.html

-Ben

-- 
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/-/gzVbqbbgn0oJ.
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: Creating my own UiBinder panel

2011-09-09 Thread Aviad Ben Dov
Sure thing. Here goes:

I want to create my own UiBinder-enabled panel. This panel is a double-sided
panel as can be seen in this
examplehttp://developer.apple.com/library/safari/#documentation/InternetWeb/Conceptual/SafariVisualEffectsProgGuide/Transitions/Transitions.html
.

What I would like is for clients of the double-sided panel to be able to
create the panel entirely in UiBinder, in the following way:

c:DoubleSidedPanel ui:field=panel
c:front
g:HTMLThis is the front!/g:HTML
/c:front
c:back
g:HTMLThis is the back!/g:HTML
/c:back
/c:DoubleSidedPanel

And then in code they would be able to call: panel.showFront() or
panel.showBack(), as they require.

I got this working already; the obstacle is UiBinder. I don't know how to
allow for inner widgets, and furthermore widgets that are in specific areas,
such as the LayoutPanel or DockPanel do (with g:layer for example).

I've seen that the GWT code has XSD files inside it to allow for such
elements, but I can't see how it all binds together. Can anyone help with
this?

Thanks!

On Fri, Sep 9, 2011 at 4:49 PM, John LaBanca jlaba...@google.com wrote:

 You're best bet is to email Google-Web-Toolkit@googlegroups.com after
 joining https://groups.google.com/group/google-web-toolkit.  You can cc me
 on the email, but hopefully one of our other users will be able to answer
 your questions.

 If you haven't already seen it, the UiBinder Dev 
 Guidehttp://code.google.com/webtoolkit/doc/latest/DevGuideUiBinder.htmlis a 
 good resource, and there are a bunch of UiBinder examples in GWT
 samples.
  John LaBanca | GWT Software Engineer | jlaba...@google.com




 On Fri, Sep 9, 2011 at 1:42 AM, Aviad Ben Dov aviad.ben...@gmail.comwrote:

 Hello!

 My name is Aviad, and I'm emailing you quite randomly because I have no
 idea who to turn to with questions regarding UiBinder other than the
 developers themselves. I hope you're the right pick, I was just amused by
 the Scott's Soul page so I decided to mail you.

 I read the GWT pages, documentation, even some of the code, and still I
 have a few questions. Would it be alright if I asked a few questions? Or is
 there someone else you could refer me to if you don't want to be bothered?

 Thanks!
 Aviad.




-- 
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: UiHandler and how to do it right?

2011-09-08 Thread Ben Munge
Do you have a corresponding field in your UIBinder ui.xml with the
same ui:field property?

For example, in your ui.xml you should have:

g:Button ui:field=buttonClick Me/g:Button

In the corresponding Java class you should have:

@UiField
Button button;

@UiHandler(button)
void clickButton(ClickEvent e) {
Window.alert(Hello World);
}


As Steve said, the method name on the UiHandler can be anything. The
parameter to the method determines the event being handled. As long as
your ui:field property, the variable name on the UIField, and the
quoted text on the @UiHandler annotation match everything should work
fine.


On Sep 8, 6:55 am, Volker volker.kinderm...@googlemail.com wrote:
 I try to get a button working using UiBinder with UiHandler.
 Unfortunately the screen shows up fine but the button does not react
 on any clicks. While searching for some good examples how to use the
 UiHandler annotation I got confused.

 The tutorial on the official gwt site says:
 @UiHandler(button)
 void handleClick(ClickEvent e) {
     Window.alert(Hello, AJAX);}

 http://code.google.com/intl/de-DE/webtoolkit/doc/latest/DevGuideUiBin...

 The UiHandler Java doc point to some test code telling me:
 @UiHandler({buttonClick, labelClick})
 void doClick(ClickEvent event) {
     eventMessage(event);

 }

 http://code.google.com/p/google-web-toolkit/source/browse/releases/2

 Searching this group I got totaly lost, because it looks like some
 implicit naming convention:
 @UiHandler(lastName)
 void onLastNameBlur(BlurEvent event) {
   // code from UpperCase goes here}

 http://groups.google.com/group/google-web-toolkit/browse_thread/threa...

 Thanks in advance for any clarification.

-- 
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: is there a Naming conventions of gwt?

2011-09-08 Thread Ben Munge
Could you be more specific? GWT does utilize convention over
configuration in several aspects. This is especially apparent in the
UIBinder model where naming conventions allow you to easily associate
Java elements and methods with the defined elements in your ui.xml.

On Sep 8, 5:26 am, wahaha il...@yahoo.com.cn wrote:
 is there a Naming conventions of 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-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: Is there a GWT book covering version = 2.1.1?

2011-09-08 Thread Ben Munge
There does seem to be a lack of valuable GWT books covering some of
the newer aspects of the language. Have you gone through all the
tutorials on the main site? I found the large scale application
development and MVP pattern w/ UIBinder tutorial extremely valuable
when learning the framework:

http://code.google.com/webtoolkit/articles/mvp-architecture-2.html

On Sep 8, 8:18 am, tom majortom...@gmail.com wrote:
 Hello,

 Does anybody know if there's a book (about to be published?) that covers the
 new features since 2.1.1 (RequestFactory, Editor framework, ...)?

 I'm working with GWT (v2.3) for a couple of weeks now, and I'm still getting
 stuck for hours on simple problems day by day. I think it's mainly because
 of a lack of thorough documentation/explanation of the mechanisms the
 framework is built upon. The Getting started guides on the project page were
 helpful to get some code together at first, but it turned out a lot of
 things aren't just working as simple.

 I have no doubt that the framework's great and that you can build great apps
 with it, but learning how to use it is so frustrating at times...

 Regards

 Tom

-- 
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: Conditional CSS Updates

2011-09-08 Thread Ben Munge
I don't think you can do this with conditional styles. I think you'd
be better off firing an event on the event bus when they orientation
changes and just change class/style through an event handler.

On Aug 29, 12:39 am, rth rthol...@gmail.com wrote:
 Hi,

 I have a Conditional CSS block that calls isPortrait() at runtime and
 correctly renders the right rule based on its return value. My problem
 is that I cannot figure out how to get the condition to be reevaluated
 in the future (e.g., when the orientation changes, I would like to
 have the conditional CSS evaluated again and the page rendered with
 the new CSS). My sample CSS is below.

 @if (org.foo.Application.isPortrait()) {
         .stats {
                 border: 3px solid red;
         }} @else {

         .stats {
                 border: 3px solid blue;
         }

 }

 The docs (http://code.google.com/webtoolkit/doc/latest/
 DevGuideClientBundle.html#Conditional_CSS) states that these
 conditions are evaluated at runtime (which I can confirm), so I am
 hoping I can somehow force the re-evaluation to happen again.

 Any pointers would be greatly appreciated.

 --rth

-- 
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: Is there a GWT book covering version = 2.1.1?

2011-09-08 Thread Ben Munge
Thanks for the tip BM!

On Sep 8, 9:57 am, BM bhushan.ma...@gmail.com wrote:
 Have you checked the Manning's GWT in Action Second Edition book? They
 have it on MEAP program. This book is awesome. They cover the latest
 2.3 version with extensive coverage on UIBinder, RPC, MVP, Activities
 and Places, RequestBuilder. They are in fact going to add chapter on
 RequestFactory also.

 This book is a must buy.

 On Sep 8, 8:18 am, tom majortom...@gmail.com wrote:







  Hello,

  Does anybody know if there's a book (about to be published?) that covers the
  new features since 2.1.1 (RequestFactory, Editor framework, ...)?

  I'm working with GWT (v2.3) for a couple of weeks now, and I'm still getting
  stuck for hours on simple problems day by day. I think it's mainly because
  of a lack of thorough documentation/explanation of the mechanisms the
  framework is built upon. The Getting started guides on the project page were
  helpful to get some code together at first, but it turned out a lot of
  things aren't just working as simple.

  I have no doubt that the framework's great and that you can build great apps
  with it, but learning how to use it is so frustrating at times...

  Regards

  Tom

-- 
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: SuggestBox popup Z-Index issue (appears behind everything)

2011-08-15 Thread Ben Imp
One of the SuggestBox constructors lets you pass in a custom 
SuggestionDisplay.  You should be able to just extend the 
DefaultSuggestionDisplay, override the decorateSuggestionList method, and 
set the z-index of the widget it makes.

-Ben

-- 
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/-/ZS9bvxltQIMJ.
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: SuggestBox popup Z-Index issue (appears behind everything)

2011-08-15 Thread Ben Imp
I suppose you could also use CSS, too.  That would seem to be a bit less 
hacky.

-Ben

-- 
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/-/0xAyuDytVzkJ.
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: RequestFactory Best Practices: How to share object between client and server

2011-08-04 Thread Ben Munge
You create a Proxy object on the client for your corresponding server
object.

http://code.google.com/webtoolkit/doc/latest/DevGuideRequestFactory.html


On Aug 4, 5:46 am, br22 g22...@gmail.com wrote:
 Sometimes you want the same Java code to run on the client and server.
 With RPC it is easy to share the same object, what is the best way to
 do this with RF?
 Thank You.

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



Re: RequestFactory Best Practices: How to share object between client and server

2011-08-04 Thread Ben Munge
You generally shouldn't be doing this from a design standpoint. If you
want to share some simple objects or utilities you could use the
shared package, but beyond that would break encapsulation. If you
could explain your requirements in a bit more detail I might be able
to provide better assistance.

On Aug 4, 11:24 am, br22 g22...@gmail.com wrote:
 Great, but how you make the SAME Java code (that runs both on the
 client and the server) share the SAME object (not 2 objects like Obj1
 and Obj1Proxy)?

 On Aug 4, 11:34 am, Ben Munge ben.mu...@gmail.com wrote:







  You create a Proxy object on the client for your corresponding server
  object.

 http://code.google.com/webtoolkit/doc/latest/DevGuideRequestFactory.html

  On Aug 4, 5:46 am, br22 g22...@gmail.com wrote:

   Sometimes you want the same Java code to run on the client and server.
   With RPC it is easy to share the same object, what is the best way to
   do this with RF?
   Thank You.

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



Re: Does GWT has any framework or class or something for accessibility (especially for client side )

2011-08-02 Thread Ben Munge
I'm not sure what you mean exactly. Accessibility is driven much more
by the content and construction of your pages. A framework cannot make
assumptions about accessibility because it doesn't know what your site
is trying to express. If you follow the UI Binder approach, just
construct your elements in the most accessible way that fits your site
(tab indexing, alt comments, descriptive links, etc).

On Aug 2, 12:38 am, mmb birada...@gmail.com wrote:
 Hi Everyone ,
 I just started learning GWT  ,is there any kind of framework or API's
 for client side accessibility for GWT,i know there is a library for
 provider side i.e com.google...ui.accessibility,but i want framework
 or class at the client side
 thanks in advance for those who reply..

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



Dynamically convert between TextBox and PasswordTextBox

2011-07-29 Thread Ben Munge
I have a requirement to turn some financial fields into masked fields
and I wanted to use the password input type to simplify the logic. I
need to be able to change a TextBox to a PasswordTextBox and have it
change the value in the box to circles without affecting the value or
style of the element. I'm having trouble finding a good way to do this
as TextBox does not let you modify the type property. Any advice/help
would be greatly appreciated.

Thanks!

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



Re: Dynamically convert between TextBox and PasswordTextBox

2011-07-29 Thread Ben Munge
Yes you should be able to, however you are not. There is no
constructor for PasswordTextBox that takes in a TextBox. I ended up
just using getElement and setting the attribute directly.

textBox.getElement().setAttribute(type, password);

On Jul 29, 3:17 pm, Gal Dolber gal.dol...@gmail.com wrote:
 From a code and css points of view they are exactly the same. You should be
 able to change from TextBox to PasswordTextBox without changing anything.









 On Fri, Jul 29, 2011 at 5:05 PM, Ben Munge ben.mu...@gmail.com wrote:
  I have a requirement to turn some financial fields into masked fields
  and I wanted to use the password input type to simplify the logic. I
  need to be able to change a TextBox to a PasswordTextBox and have it
  change the value in the box to circles without affecting the value or
  style of the element. I'm having trouble finding a good way to do this
  as TextBox does not let you modify the type property. Any advice/help
  would be greatly appreciated.

  Thanks!

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

 --
 Guit: Elegant, beautiful, modular and *production ready* gwt applications.

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

-- 
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: Dynamically convert between TextBox and PasswordTextBox

2011-07-29 Thread Ben Imp
An resourceful user could probably still watch the value, via a javascript 
debugging tool like Firebug, as its being set into those input fields.  
Assuming you are still sending the financial data to the client from the 
server, of course.

This is also assuming the reason you want to use a password field is to hide 
the value from the user.  If that isn't the use case, then ignore my 
ramblings.

-Ben

-- 
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/-/Qkq0CiNTQtUJ.
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: Applying CSS to Grid

2011-07-27 Thread Ben Imp
You appear to be missing a period in your CSS, in front of headerRow.

-Ben

-- 
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/-/2eNxTmFTIRMJ.
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: Multiple dialog boxes

2011-07-26 Thread Ben Imp
You can tell the dialogs to be non-modal (ie. setModal(false)).  That should 
allow you to have multiple dialogs up and interact with all of them.

-Ben

-- 
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/-/RnKMcbz-vtkJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: History and search field

2011-07-18 Thread Ben Imp
You could store the value in some kind of persistent application model.  
That model would be passed into your presenter on creation, and it could 
check to see if an existing value has been saved there.  Alternatively, you 
could hang onto your presenters for re-use later.  I usually opt for the 
former, as I find its easier to make throwaway presenters.

I suppose you could also chuck it into a cookie.

-Ben

-- 
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/-/qgADOB5kUhAJ.
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: A newbie's question on the bufferedImage

2011-06-29 Thread Ben Imp
GWT only emulates a subset of the JRE.  AWT is not part of that subset.

http://code.google.com/webtoolkit/doc/latest/RefJreEmulation.html

-Ben

-- 
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/-/kcBL5vw4VgQJ.
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: hyperlinks/html

2011-06-24 Thread Ben Imp
Check out the Anchor widget.  That should let you navigate anywhere you 
want.

-Ben

-- 
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/-/nmJKvypcdzEJ.
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: Log file

2011-06-24 Thread Ben Imp
The answer to that depends on which server you are using.  If its Tomcat, 
there should be a conf subdirectory with a catalina.out file in there, 
unless yours is configured differently.

-Ben

-- 
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/-/1meAumx3XkIJ.
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: HTML ids for widgets generated in a celltable

2011-06-22 Thread Ben Munge
Just curious, but why do you need ID's? Xelibrety's solution should
work but you should be able to add any behavior you want to the
objects through GWT without the need for an ID. If you have JavaScript
that needs IDs to access them, you might as well just port Xelibrety's
code over the JavaScript in question.

On Jun 22, 6:50 am, nirav patani nirav...@gmail.com wrote:
 Hi,

     Is there a way to add html ids to widgets generated in a
 celltable. for instance i have cell table whose one column contains
 only buttons. i wantto set HTML ids for those buttons.

 Thanks.

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



Re: Unable to load module entry point class

2011-06-21 Thread Ben Munge
Can you post your code for WelcomePage?

On Jun 20, 11:42 am, SCK guyedj...@gmail.com wrote:
 Hi,

 I'm new developer in GWT. I try somthing and when I want to Run the
 application, I get error Failed to load Module.
 See error in below:

 [ERROR] Unable to load module entry point class
 com.Habou.client.WelcomePage (see associated exception for details)
 com.google.gwt.core.client.JavaScriptException: (TypeError):
 '$wnd.Ext.StatusBar' a la valeur Null ou n'est pas un objet.
  number: -2146823281
  description: '$wnd.Ext.StatusBar' a la valeur Null ou n'est pas un
 objet.
         at com.gwtext.client.widgets.Component.checkExtVer(Native Method)
         at com.gwtext.client.widgets.Component.clinit(Component.java:108)
         at com.Habou.client.WelcomePage.createComponents(WelcomePage.java:31)
         at com.Habou.client.WelcomePage.onModuleLoad(WelcomePage.java:24)

 Thank you for your Help

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



Re: No source code is available for type java.lang.NoSuchFieldError

2011-06-21 Thread Ben Munge
In your GWT console double click the individual errors and you should
get a more detailed stack trace. It likely is something wrong with
your code rather then a missing import/resource. I've gotten a similar
error in the past and it's not overly intuitive.

On Jun 20, 1:59 pm, Nathan Klatt n8kl...@gmail.com wrote:
 I've inherited a GWT project and I'm receiving the following compiler error
 (more info below):

 [java] [ERROR] Line 51: No source code is available for type
 java.lang.NoSuchFieldError; did you forget to inherit a required module?

 It's complaining about a core part of the language here, right? Why is it
 looking for source code for it at all? Is it not finding one of the core jar
 files? Do I need to point it at something in the ant build.xml file?

 For testing purposes, I followed all the GWT 
 instructionshttp://code.google.com/webtoolkit/gettingstarted.html,
 used webAppCreator to generate a Hello, world. app, and that builds and
 runs just fine. I added a simple try...catch(NoSuchFieldError err) - and an
 import java.lang.NoSuchFieldError line - and it gave me the error.

 I'm new to this Java/GWT stuff so I suspect I'm missing something obvious -
 I'd love it if you could point out exactly what! :)

 Thanks.

 =

 $ ant build
 Buildfile: build.xml

 libs:

 javac:
     [javac] Compiling 1 source file to
 /home/nklatt/gwt-2.3.0/MyWebApp/war/WEB-INF/classes

 gwtc:
      [java] Compiling module com.mycompany.mywebapp.MyWebApp
      [java]    Validating newly compiled units
      [java]       [ERROR] Errors in
 'file:/home/nklatt/gwt-2.3.0/MyWebApp/src/com/mycompany/mywebapp/client/MyW 
 ebApp.java'
      [java]          [ERROR] Line 51: No source code is available for type
 java.lang.NoSuchFieldError; did you forget to inherit a required module?
      [java]    Finding entry point classes
      [java]       [ERROR] Unable to find type
 'com.mycompany.mywebapp.client.MyWebApp'
      [java]          [ERROR] Hint: Previous compiler errors may have made
 this type unavailable
      [java]          [ERROR] Hint: Check the inheritance chain from your
 module; it may not be inheriting a required module or a module may not be
 adding its source path entries properly

 BUILD FAILED

-- 
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: GMail like selection combobox

2011-06-21 Thread Ben Munge
It's a pretty simple Widget. The checkbox itself is simply a standard
check box. The event would check all if clicked and unchecked all if
unchecked. The box around it is simply a div styled as a button with a
click event. The click event shows the dropdown which is simply
another collection of divs, each with their own click event to check
the checkboxes of the appropriate type. There's nothing overly unique
about the widget as a whole. Take a look at the Gmail html of the
option and it should be pretty easy to build.

On Jun 17, 4:09 pm, joel jtrun...@gmail.com wrote:
 In GMail there is a combobox that shows a checkbox, you can drop-down
 the box and get the selections such as all/none... If you click
 the checkbox it will checkmark all your emails...

 How can I make that widget with GWT?

 J

-- 
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: Maintaining application state

2011-06-10 Thread Ben Imp
I use an object called ApplicationModel, that is passed to every presenter 
on creation.  It stores application state, as its name might suggest.  It 
also fires off events whenever any of the presenters modifies one of its 
values, which helps keep the application in sync.  Things like user roles 
and what the user has currently selected are stored in there.

I should also mention that the ApplicationModel is actually handed off to 
the presenter as part of an ApplicationBundle, which is basically just a 
parameter object.  It holds the model, the ApplicationNavigationControl, 
ApplicationEventBus, ApplicationFactory, etc.  Wrapping it all up in the 
parameter object makes it really easy to add new application-wide bits.

-Ben

-- 
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/-/51lt6kbjjoQJ.
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.



Immediate Need of SAP MM Need Consultant

2011-06-10 Thread ben smith
*Dear Professional,
Hope your doing great,
I have a good oportunity for you can you please see the below job
description, if your interested  please reply me back with your updated
resume.Please send me youre resume on* *b...@panzersolutions.com*

*Title:SAP MM Need Consultant
Location :Nashville, TN
Duration:3+ months contract
Pay Rate:$32/corp to corp *


*Credentials:
SAP ECC, MM, IM, WM (Which is required on this position)
SAP BW (Good to have on this position).
Functional SAP BA

Business Analyst that can complete research in order to accurately and
timely document assigned functional specs, containing business requirements,
business rules  data mapping.  This includes SAP  system integration in
the following areas:
Logistics (SAP integration with TMS  WMS)
MDD/TDD (Master  Transactional data movements)
Material Master
They want heavy reporting and inventory mgmt
ECC 6.0*

   

*Thanks
Ben Smith | Technical Recruiter
Panzer Solutions LLC
45 Stuart  Ave, K
Norwalk CT 06850 USA
b...@panzersolutions.co*m

-- 
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: Maintaining application state

2011-06-10 Thread Ben Imp
The bundle is presenter-agnostic.  It only contains application-wide state 
and control objects.

I do have two classes of presenters in my application, however.  Those that 
get passed the ApplicationBundle are page presenters, and control the whole 
screen (or at least the central content portion of it anyway).  They are 
created in response to navigation events.  These, in turn, may create 
component presenters and pass them specific bits of information, like an 
instance of their view that was retrieved from somewhere in the main page 
view interface, or a specific implementation of their model interface that 
will play well with the rest of the page.

Something like this:

public XxxPagePresenter(ApplicationBundle bundle, XxxPageView view) {
this.bundle = bundle;
this.view = view;
this.model = new XxxPageModelImpl();
this.yyyComponentPresenter1 = new 
YyyComponentPresenter(model.getYyyComponentModel(), 
view.getYyyComponentView());
...
}

-Ben

-- 
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/-/aZpqp1HwcwwJ.
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-earth sample - question

2011-06-10 Thread Ben
I'm trying to learn and work with the gwt-earth project.. started with
the sort of hello earth program available at:
http://code.google.com/p/earth-api-samples/source/browse/#svn%2Ftrunk%2Fdemos%2Fgwt-earth%2Fsrc%2Fcom%2Fgoogle%253Fstate%253Dclosed

While the GEPlugin concept is fairly tricky - there is a GEWrapper
class that encapsulates a GEPlugin class, which in turn talks to a
class with native communication to the GEPlugin (GEPluginNative). In
that latter class i find native methods like:

public static native JavaScriptObject getFeatures(JavaScriptObject
ge)/*-{
return ge.getFeatures();
}-*/;

and i'm trying to add a new one that sets up zoom controllers (etc),
but can't seem to make it work. I've tried adding this:

public static native void setControlsVisible(JavaScriptObject ge)/*-{

ge.getNavigationControl().setControlType(ge.NAVIGATION_CONTROL_LARGE);
ge.getNavigationControl().setVisibility(ge.VISIBILITY_SHOW);
}-*/;

and then call it via GEPlugin class:

public void setControlsVisible()
{GEPluginNative.setControlsVisible(ge);}

but i end up with a runtime JS error (this.d.b is null)..

Is it possible to add controls to the gwt-earth example program? what
am i missing?

Thanks for insight.

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



cannot be cast to javax.servlet.Servlet

2011-05-29 Thread Hedi Ben Said
Hi everybody,

when I deploy my ear file I got the following error
the GlobalServiceImpl is the service that extends RemoteServiceServlet

13:08:41,625 INFO  [org.apache.catalina.core.ContainerBase.[jboss.web].
[localhost].[/Manager]] Marking servlet globalServlet as unavailable
13:08:41,625 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].
[localhost].[/Manager].[globalServlet]] Allocate exception for servlet
globalServlet: java.
lang.ClassCastException:
com.tdiinc.manager.server.communication.GlobalServiceImpl cannot be
cast to javax.servlet.Servlet

it looks like there is an incompatibility between or something like
this

I'm using
gwt 2.2
gxt 2.2.3

java 1.6.025
jboss 6

thanks a lot for your help

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



Re: cannot be cast to javax.servlet.Servlet

2011-05-29 Thread Hedi Ben Said
Think I found the problem, I removed the gwt-user.jar from my ear and
the exception disappeared

On May 29, 1:13 pm, Hedi Ben Said hedi.bens...@gmail.com wrote:
 Hi everybody,

 when I deploy my ear file I got the following error
 the GlobalServiceImpl is the service that extends RemoteServiceServlet

 13:08:41,625 INFO  [org.apache.catalina.core.ContainerBase.[jboss.web].
 [localhost].[/Manager]] Marking servlet globalServlet as unavailable
 13:08:41,625 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].
 [localhost].[/Manager].[globalServlet]] Allocate exception for servlet
 globalServlet: java.
 lang.ClassCastException:
 com.tdiinc.manager.server.communication.GlobalServiceImpl cannot be
 cast to javax.servlet.Servlet

 it looks like there is an incompatibility between or something like
 this

 I'm using
 gwt 2.2
 gxt 2.2.3

 java 1.6.025
 jboss 6

 thanks a lot for your help

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



Re: Error when obfuscating a gwt jar

2011-05-29 Thread Hedi Ben Said
In my application besides the javascript that have been generated as a
result for the gwt compilation, there is also a jar file that contains
the classes of my gwt application. These classes are necessary to make
the server and client part communicate via rpc

On May 27, 11:24 am, Martin Trummer ds.martin.trum...@gmail.com
wrote:
 I guess, that your extra obfuscation step changes the names of all
 classes and thus the GWT serialization mechanism will not find the
 correct classes. I don't think you need toobfuscateanything, because
 GWT already obfuscates the java-script 
 code:http://code.google.com/webtoolkit/doc/1.6/FAQ_DebuggingAndCompiling.h...

 that means, all GWT code, that the client will ever see is already
 obfuscated:
 so why would you want toobfuscatethe class files again?

 On May 26, 7:17 pm, Hedi Ben Said hedi.bens...@gmail.com wrote:







  When Iobfuscatea jar of a gwt application I got the following error
  The response could not be deserialized.
  By obfuscating I do not mean the compiler option of gwt. I mean
  obfuscating the .class files contained in the jar file

  Do you have any idea?

  Thanks a lot

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



Error when obfuscating a gwt jar

2011-05-26 Thread Hedi Ben Said
When I obfuscate a jar of a gwt application I got the following error
The response could not be deserialized.
By obfuscating I do not mean the compiler option of gwt. I mean
obfuscating the .class files contained in the jar file

Do you have any idea?

Thanks a lot

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



Re: Detect panel remove call

2011-05-25 Thread Ben Imp
I believe if you can add a handler (via addAttachHandler) that will fire 
when it is removed.  However, at that point I'm not sure you can really 
prevent the panel from being removed, if that is your goal.

-Ben

-- 
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 unit test case on GWT server side class methods and how mock up the session inside the methods.

2011-05-23 Thread Ben Imp
I do all of my server side work in little action objects.  This allows you 
to remove your dependency on RemoteServiceServlet, and test only your code.

So basically all of your server methods would look like:

return new MyAction(getThreadLocalRequest(), 
clientArgumentBundle).perform();

Then you can mock out the request, session, etc, in your unit test, since 
they will just be arguments instead of class methods.

-Ben

-- 
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: HTML rendering in GWT

2011-05-23 Thread Ben Imp
Yes, it is possible.  However, you should probably be using CSS and a span 
tag.

Why not take a tour through the samples and see what GWT can do.

http://code.google.com/webtoolkit/examples/

-Ben

-- 
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: Development mode cross site RPC requests

2011-05-20 Thread Ben Imp
You could create a server side component for your GWT app, and delegate 
fetching the XML data to that.

-Ben

-- 
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: Development mode cross site RPC requests

2011-05-20 Thread Ben Imp
I would think that the servlet would increase the performance of the 
application by a bit.  XML parsing in JS can't be fun, or fast, for that 
matter.  This assumes the latency between wherever you would run your 
application server and the target C++ backend isn't too high, though.  
Otherwise you are making a big triangle of a route, as opposed to simply 
back and forth.  Probably still worth it, since then you can leverage 
awesome java XML parsing libraries.

You may see some performance penalty for switching servers, I suppose.  I 
seem to recall that Tomcat wasn't quite as zippy as Apache.

-Ben

-- 
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 reposition the popup when window gets resized

2011-05-02 Thread Ben Imp
I believe the center() method on the dialog will re-center a dialog even if 
its already visible.  Stick that into a resize handler and you should be 
good to go.

-Ben

-- 
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: using SuggestBox with special Oracle and Suggestion - how to keep view humble

2011-04-26 Thread Ben Imp
Most of the GWT widgets have predefined interfaces that will work just 
fine.  HasValue, HasText, HasClickHandlers, etc.  I rarely bother to extend 
these.  Ideally, you wont need to generate too many of these extra 
interfaces.  I think the only additional interface I have created is 
HasClickHandlersAndEnableable, which lets me have greater control over 
buttons without adding more methods to the main view interface.

-Ben

-- 
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 update specific area

2011-04-25 Thread Ben Imp
There should be plenty of this kind of behavior for you to look at in the 
examples section.

http://code.google.com/webtoolkit/examples/

-Ben

-- 
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: Have each element have its own unique id automatically

2011-04-25 Thread Ben Imp
While it would cut down on the amount of line noise in the code, I see this 
as being somewhat fragile and I would avoid it in my code.  Introducing a 
dependency between your code structure and your CSS would make it much more 
difficult to change things and refactor without breaking.  I tend to hate 
anything that makes refactoring difficult, as I find the maintenance phase 
of an application is by far the lengthiest part.

We actually did something similar to this in our codebase.  We had CSS names 
auto-generating from the class name of the view/widget.  While it did reduce 
some line noise, I found out that it made refactoring break all of the CSS.  
This made me not want to refactor things, which is evil.  I've almost gotten 
rid of all of it by now, and will never go back.

My current way of reducing this overhead is a simple Widget factory object.

VerticalPanel mainPanel = new 
WidgetUtility().createVerticalPanel(cssClassOne);

Not really auto-generated or anything, but it cleans up the code, and 
doesn't rely on any magic.

-Ben

-- 
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: Internet Explorer

2011-04-25 Thread Ben Imp
IE has a built-in JS debugger.  Tools-Developer Tools.  The Script tab 
should have your debugging controls.

There is also Firebug Lite, although I think the built-in tools do a better 
job for most things.

I have noticed IE being generally slower to process JS than most other 
browsers, but not to the degree that you are describing.

-Ben

-- 
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: Loading thumbnails of images as links in gwt

2011-04-22 Thread Ben Imp
The Image class implements HasClickHandlers, so you can just tie into that 
and do whatever you need to do when your handler gets called.

-Ben

-- 
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: Which widget to use

2011-04-22 Thread Ben Imp
These examples will probably be helpful.  As the other person mentioned in 
this thread, the Cell Widgets will probably be what you are looking for.

http://code.google.com/webtoolkit/examples/

-Ben

-- 
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: Ajax loader locked screen

2011-04-20 Thread Ben Imp
You could use a modal DialogBox and not offer the user a way to close it.

-Ben

-- 
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: using SuggestBox with special Oracle and Suggestion - how to keep view humble

2011-04-19 Thread Ben Imp
I ran into this issue as well - knowledge of the domain in the view.  I 
ended up getting around it by creating a delegate for the suggest oracle.

public class SuggestOracleDelegator extends SuggestOracle {

private SuggestOracle delegate = null;

public SuggestOracleDelegator() {}


public void requestSuggestions(Request request, Callback callback) {
if(this.delegate != null){
this.delegate.requestSuggestions(request, callback);
}
}

public void setDelegate(SuggestOracle delegate) {
this.delegate = delegate;
}
}

Then I wrap this in a HasSuggestions interface that lets you set the 
delegate oracle from outside, and attach listeners and so forth.  Seems to 
work quite well.

-Ben

-- 
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: KeyPressevent is being called twice for suggest box - Please help!!!!!

2011-04-19 Thread Ben Imp
I believe you are hitting this.

http://code.google.com/p/google-web-toolkit/issues/detail?id=3533

There's a few suggestions in there for how to go about fixing it.  I ended 
up creating a de-duping Handler that wont fire its delegate when it gets 
called for the duplicate event.

-Ben

-- 
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: KeyPressevent is being called twice for suggest box - Please help!!!!!

2011-04-19 Thread Ben Imp
That seems a lot simpler than what I did.  Awesome.

-Ben

-- 
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: gwtapi (createfile, redfilecontent, createpdf) etc

2011-04-13 Thread Ben Imp
As far as I am aware, the browser wont let you read/write local files
like that.

-Ben

On Apr 13, 9:53 am, Diego Lovison diegolovi...@gmail.com wrote:
 hello,
 each browser have your api for create and read files or to access data
 on disk storage
 So I would like to create an api to make 
 this...http://code.google.com/p/gwtapi/

 Will have an interface that will be create by deffered binding, and an
 implementation for each browser...

 for example
 ReadFile read = GWT.create(ReadFile.class);
 String[] lines = read.thisFile();

 make sense create this api?

 thanks

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



Re: Is validation on client side enough or do I need both?

2011-04-08 Thread Ben Imp
Never trust a client.

-Ben

On Apr 8, 6:52 am, Stephan T stephan.tern...@gmail.com wrote:
 The scenario:
 I have a form where you can create a new person by entering name in a
 textbox and click a button. When the user clicks the button I grab the
 value from the textbox and sets it on the Person object. The Person
 object validates the value and makes sure the name on the object only
 contains a-z. If not execution stops and an error is presented to the
 user. If all is good I send the Person object via an RPC call to the
 server.

 The question:
 When continuing execution on the server, can I be sure that the name
 only contains a-z or do I have to do server validation as well for
 protection from attackers?

-- 
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   3   4   5   >