GWT and DefinitelyTyped

2016-01-26 Thread Martin Trummer
are there any plans/thoughts of using DefinitelyTyped with GWT - maybe in 
GWT 3.x?
http://definitelytyped.org/ 

i.e. it would be great to generate GWT js-interop code from the 
DefinitelyTyped type-script definitions.
then GWT would immediately have type-safe access to all the DefinitelyTyped 
supported libs 

is this technically possible at all?

-- 
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: Teavm

2015-12-03 Thread Martin Trummer
there is an old group post 

 
that already discusses the byte-code vs. source code issue - maybe it is 
still helpful 

I think the http://www.gwtproject.org/makinggwtbetter.html page should be 
updated for GWT 3.0.
As I understood all the talks, info etc. about GWT 3.x (e.g. 
GWT-3.0-Sencha-GXT-and-the-future-of-the-widget-eco-system 
)
 
we will lose some of the GWT 2.x benefits - please anybody correct my when 
I got things wrong

   - "Key facilities out of the box: history, RPC, localization, and unit 
   testing": History, RPC and localization will only be available as 3rd party 
   add-ons
   - "Discourage unoptimizable patterns": 
   - the GWT compiler cannot optimize js-GUIs (Webcomponents, Polymer, ..) 
  per browser: so we must always send all the css-prefix bloat and js for 
  feature-detection, browser quirks etc. to the client (no matter which 
  browser it is)
  - code-splitting worked great for GWT-widgets - I don't see how this 
  could work for js-widgets
   
I've always seen the biggest benefits of GWT like this:

   - you can build fast, big, reliable, rock-solid web-apps
   - you can get perfectly optimized js code - so that you can also build a 
   great mobile-experience, where smallest code size (and minimal initial 
   download size) is of most importance
   - you can use the the same statically typed language (Java, or 
   compile-to-Java languages, e.g. xtend) on the client/server (now even for 
   Web/Android/iOS like Google Inbox 
   )

On Wednesday, 2 December 2015 16:00:46 UTC+1, Thomas Broyer wrote:

>
>
> On Wednesday, December 2, 2015 at 2:06:24 PM UTC+1, Adam M wrote:
>>
>> Call me old school but for me direction in which GWT 3.0 is going is 
>> strange - if I'm forced to use HTML5/JavaScript libraries instead GWT 
>> widgets why I should do anything in Java in the first place - just grab 
>> Angular or Ember and be done - GWT doesn't help me too much with server 
>> side code anyway. The whole purpose of using GWT/GWTP was to avoid to deal 
>> with JavaScript, at least in my case.
>>
>
> You fooled yourself (but you're not alone). The whole purpose of GWT has 
> always been about tooling: http://www.gwtproject.org/makinggwtbetter.html
> Now that tooling is quite good in the JS world, GWT is turning to… 
> tooling, still (because tooling for a statically-typed language is 
> different from / can go farther than for a dynamically-typed one), and 
> sharing code.
>
>  
>
>> For me TeaVM has completely different approach to the problem than GWT - 
>> it allows language agnostic web application development (I never liked GWT 
>> no prisoners taken approach - Java or nothing - but as you know there was 
>> nothing better in "dark ages" of web application development)  - even that 
>> end result is very similar - JavaScript code running in the browser.
>> I wonder if something similar like Java Byte Code to JavaScript could be 
>> done with Microsoft CLI to JavScript (just wild shot - I'm not too familiar 
>> with the whole .Net infrastructure - different programming environment)
>>
>
> Not only can it be done, but has been done, many times, including by 
> Microsoft themselves: 
> https://en.wikipedia.org/wiki/Microsoft_Live_Labs_Volta 
> 
>  
> http://jscriptsuite.com/ http://jsil.org/ http://jsc.sourceforge.net/ 
> https://github.com/Reactive-Extensions/IL2JS 
> https://github.com/mtenpow/xaeios
> BTW, there are / has been also many source-to-source compilers using C# as 
> input: http://bridge.net/ http://duoco.de/ http://sharpkit.net/ and the 
> pioneer of them all and now apparently defunct: 
> https://github.com/nikhilk/scriptsharp
>

-- 
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: Teavm

2015-12-03 Thread Martin Trummer
> That said, browser-specific permutations has IMO reached a dead-end:
> Microsoft will stop support IE<11 in 40 days or so (except IE9 on Vista),
> which means that we'll have (hopefully) almost everyone using a "modern
> browser" where discrepancies aren't that many and can be dealt with at
> runtime without too much overhead.


Why should browser specific permutations ever reach a dead-end?
just take a look at any of the items at http://caniuse.com/?
whenever a new feature is being introduced, we have the same problems.
i.e. WebComponents: in Chrome they work, for Firefox HTML import does not
work, for Safari only the Templates work, ...
--> this looks like a perfect match for browser specific permutations,
doesn't it?

-- 
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: Mojo's maven-gwt-plugin or Thomas's maven-gwt-plugin?

2015-11-20 Thread Martin Trummer
@Thomas: I am surprised, that you make a maven plugin.
I can remember one of your blog posts was like "Maven is broken by design"
Then, why do you write a maven plugin? 
Did Maven improve with version 3.x, or is there just no other alternative 
for some reason?
What build system would you recommend for a new gwt project?

On Tuesday, 17 November 2015 11:15:47 UTC+1, Thomas Broyer wrote:
>
>
>
> On Tuesday, November 17, 2015 at 10:11:36 AM UTC+1, Michael Zhou wrote:
>>
>> I'm trying to build a Java application with GWT, using maven as the build 
>> system. I'm trying to decide which maven-gwt-plugin to use.
>>
>
> Major differences are:
>
>- Mojo's one is tied to a specific version of GWT. To get a fix for 
>the plugin, you possibly need to update your GWT too (it's a good idea 
>anyway, but there could be timing conflicts); and to update your GWT you 
>might have to wait for a release of the plugin. I completely stopped 
>maintaining Mojo's plugin and following its development so I have no idea 
>whether there'll be a new release and when (I'm absolutely not trying to 
>throw FUD here); all I can say is it hasn't been updated for 4 months 
>whereas they has been some changes to GWT and more changes to come (e.g. 
>disableCastChecking was deprecated in September, jsInteropMode default was 
>recently changed from NONE to JS_RC, there's a patch in review that 
> removes 
>jsInteropMode=JS and the jsInteropMode argument will be removed entirely 
>before 2.8.0, and there's a new generateJsInteropExports).
>- Mojo's plugin gwt:run and gwt:run-codeserver don't play well with 
>multi-module builds. You can make them work but they need really nasty 
>hacks in your POMs (BTW, this is a similar situation to the Jetty Maven 
>Plugin).
>- My plugin brings in new packagings, so you have fewer things to 
>configure.
>
>  
>
>> The project's directory structure doesn't follow Maven convention, so I 
>> guess I will run into some problems with Thomas' plugin?
>>
>
> No you shouldn't.
> All paths are configurable, and many goals (e.g. generateModule) can be 
> skipped.
> And you can also use the goals without using the gwt-lib/gwt-app 
> packagings, just like with Mojo's plugin.
>
> In any case, it's not hard to switch from one plugin to the other, so just 
> pick the one you'd prefer working with.
>

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


Is GWT 3.0 alpha already available?

2015-10-06 Thread Martin Trummer
is there already a GWT 3.0 alpha branch available somewhere?
i.e. github, etc?
if not: any coarse time-estimate: i.e. Q1 2016

-- 
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: Web app launch view activator

2013-10-23 Thread Martin Trummer
same for me.
the problem is that I cannot even tell if this is the way it should be or 
not.

another thing I've noticed is, that it takes very long if I refresh the 
browser when the application is in dev-mode.
i.e. nothing is running - I start the debug mode in eclipse - takes about 
10 secs until the application is usable
but when I now refresh the browser, it takes about 40secs until I can use 
the app again! so it's much faster for me to stop debugging and restart 
from scratch.
that's not the expected behaviour, is it?


On Monday, 2 September 2013 12:43:23 UTC+2, Estelle Dumas wrote:

 hello, did you find an answer for your problem?
 I have the same :-(

 Le lundi 20 août 2012 15:00:42 UTC+2, James a écrit :

 Once I use GWT 2.4 in development mode, Web app launch view activator is 
 always running in background. It displays a few line of messages every 
 couple of seconds and gains focus in IDE. It is so distracting during 
 debug. Is there some way to get rid of this problem?


 James



-- 
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: Future of GWT survey

2012-11-16 Thread Martin Trummer
where can we see the results?

On Wednesday, 19 September 2012 15:23:24 UTC+2, Joonas Lehtinen wrote:

 What is your opinion on the future of GWT?
 How should GWT develop?
 What technologies should it better support?
 ...

 We all would like to get answers to these questions, right? To do so, we 
 created survey with help of Ray Cromwell, Artur Signell, Mike Brock, David 
 Chandler, Daniel Kurka and Bhaskar Janakiraman.

 If you want to help finding the best direction for GWT, please fill the 
 survey at: http://bit.ly/GWT2012
 (it will take just 10 minutes)

 When the results are collected, the will share the information with you.

 - Joonas @ Vaadin


-- 
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/-/lv1ldSnyHS4J.
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: URGENT-Generating gwt web pages

2012-04-24 Thread Martin Trummer
I have a model which contains data(an xmile file) which i've 
already converted to a model object.
and why don't you use this existing generation process to also generate the 
packages, that you mention?

-- 
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/-/CdVeBm8VFgoJ.
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-27 Thread Martin Trummer
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 to obfuscate anything, because
GWT already obfuscates the java-script code:
http://code.google.com/webtoolkit/doc/1.6/FAQ_DebuggingAndCompiling.html#Why_is_my_GWT-generated_JavaScript_gibberish

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

On May 26, 7:17 pm, Hedi Ben Said hedi.bens...@gmail.com wrote:
 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: Is there a way to generate i18n property from Constants?

2011-04-13 Thread Martin Trummer
? try to delete the line that says 'on'
if this doesn't help: what's the compiler error-message?

for more info on java-annotations see:
http://download.oracle.com/javase/1.5.0/docs/guide/language/annotations.html

On Apr 12, 3:23 pm, Soon Fatt Hoo sf...@sfhoo.com wrote:
 I used the -extra extras when I compile gwt project but it does not
 generate the properties file for me.  The only properties generated
 was UI binding properties.  I think I don't quite understand how I use
 the @generate annotation.  I try to use @Generate as following code
 but it fail compile.  Thanks

 @Generate(format = com.google.gwt.i18n.rebind.format.Properties)
 on
 public interface ExampleConstants extends ConstantsWithLookup {
         @DefaultStringValue(Address Line 2)
         String addressLine2();

 }

 On Apr 12, 4:24 am, Thomas Broyer t.bro...@gmail.com wrote:







  When you compile your project, pass the -extra argument with a folder path
  (e.g. -extra extras), GWT will generate the *.properties there.
  You might have to add a few annotations to your interface though, such as @
  Generatehttp://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/googl...
  .
  See 
  alsohttp://code.google.com/webtoolkit/doc/latest/DevGuideI18n.html#DevGui...

-- 
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: Visibility problems when using css.InterfaceGenerator

2011-03-30 Thread Martin Trummer
+1 from me:
see http://code.google.com/p/google-web-toolkit/issues/detail?id=4599

On Mar 22, 4:46 pm, Raphael André Bauer
raphael.andre.ba...@gmail.com wrote:
 Hi,

 we are using InterfaceGenerator quite heavily to generate interfaces
 from our css files. Works quite nice.

 But there is one thing I do not really understand.
 If you generate an interface the default modifier is not set - meaning
 that the modifier is via default protected.

 Therefore I am getting visibility problems, when I want to access this
 interface from other modules / packages.

 What I do in my ResourceBundle is:

 public interface MyResourceBundle extends ClientBundle {
 @Source(Reset.css)
 public Reset reset();

 }

 Error message is:
 Reset is defined in an inaccessible class or interface

 Well. Makes total sense as Reset is without visibility modifier.

 My workaround currently is to use another interface that extends the
 automatically generated interface:
 public interface MyResourceBundle extends ClientBundle {
 @Source(Reset.css)
 public ResetPublic reset();
 public interface ResetPublic extends Reset {}

 }

 Imho the workaround is not nice. And my question is: Why are generated
 interfaces always without visibility modifier?
 Or is there any other way to omit that problem?

 Thanks!

 Raphael

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



where to put my Module.css file

2011-03-29 Thread Martin Trummer
most GWT doc says, I should put it in the public dir:
e.g. src/main/java/com/mydomain/prj/public/Module.css
the module file would be here:
src/main/java/com/mydomain/prj/Module.gwt.xml

but now when I want to use this in a ClientBundle, say in:
src/main/java/com/mydomain/prj/client/HtmlResources.java
the relative path gives me an errormarker  (in eclipse):
@Source(../public/Dsm.css)
Style style();
Resource file Dsm.css is missing (expected at ../public)

what is wrong here?
where should the css file be stored instead?

TIA, martin

-- 
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: ORM or JDBC?

2011-03-24 Thread Martin Trummer
note, that you can mix JPA and JDBC - there's no need to decide for
only one of them.

I try to use JPA 2.0 as much as possible with Hibernate as persistence
provider.
For special cases , I fall back to native SQL commands or even plain
JDBC.

what I like with JPA/Hibernate:
 * it's easier to use objects than mess with the basic data types
 * you get a lot of type checking out of the box
 * JPA 2.0 has type-safe queries
 * Hibernate can generate the DB-create scripts for you (and also
update scripts to a certain degree)

another note: you cannot use Entities directly on the GWT client side,
but there are different ways to handle this:
e.g. DTOs or GWT-Request Factory, or tools like GILEAD, etc..
see:
  * http://code.google.com/webtoolkit/articles/using_gwt_with_hibernate.html
  * http://code.google.com/webtoolkit/doc/latest/DevGuideRequestFactory.html

On Mar 24, 10:13 am, Subhrajyoti Moitra subhrajyo...@gmail.com
wrote:
 JDBC rocks. so does hand written finely tuned sql statements. presence of a
 DBA helps a lot.

 my 2 cents.

 Thanks,
 Subhro.







 On Thu, Mar 24, 2011 at 2:22 PM, csaffi csaff...@gmail.com wrote:
  Hi everybody,
  I would like your opinion regarding the use of ORM in web applications
  built with GWT. I'm a little reconsider about the ORM, and I wonder
  whether it is worth to use in web applications built with GWT. What
  would be real advantages in addition to greater independence and
  portability?

  Waiting for your comments :)

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



Re: Need Feedback on charts frameworks for GWT

2011-03-23 Thread Martin Trummer
another important question is if you GWT application has access to the
internet or not.

e.g. the Google Visualization API is great, but will not work offline

I think chronoscope (an interactive time series chart) can also be
used offline:
a nice offline time-chart is: http://timepedia.org/chronoscope/

regards

On Mar 23, 8:41 am, rjcarr rjc...@gmail.com wrote:
 Not exactly client-side, but I generate charts on my server using
 JFreeChart and it's pretty nice.  I do this because there's a lot of
 data in my charts and it doesn't make sense to send it all client-side
 first.

 At some point I want to do some client rendering and for this I've
 been looking at canvas based tools like flot.

 Good luck!

 On Mar 21, 5:08 pm, Romain BIARD biard.rom...@gmail.com wrote:

  Hi everybody,

  I'm looking for different feedback about frameworks which provides
  client-side charts, especially well integrated with GWT MVP
  Architecture (I managed to persuade my client to migrate to GWT
  2.2.0 :p ) . I don't know which solution fit the best and the
  community didn't discuss about it for a while...

  What about your XP ? JS wrapper, clientsidegchart, GXT ?

  Thanks for your feedback !

-- 
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: External Tomcat in hosted mode

2011-03-09 Thread Martin Trummer
here's a good description:
http://code.google.com/eclipse/docs/faq.html#gwt_with_maven

On Mar 9, 3:34 pm, Eduardo Palma eduardo.palma...@gmail.com wrote:
 I'm working on a project that's currently using:
   GWT - 2.0.4
   Spring - 3.0.5
   Hibernate - 3.3.1
   Maven - 2.2.1
   Google Plug in for Eclipse 3.6(HELIOS) - 2.2.0

 I'm having a lot of troubles using the embedded jetty on this project.
 I already tried many workarounds but nothing worked. So now I'm trying
 to use an external Tomcat in hosted mode but I'm also facing some
 issues. The GWT documentation about this is not very clear, and it
 talks about using ant to build the project, which we do not currently
 use.

 Is it possible to do this, while maintaining the ability to debug the
 code in Eclipse? If so, how can I do it?

-- 
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 eclipse GPE and WTP

2011-03-08 Thread Martin Trummer
Thank you Thomas - I think, now I found the problem.

It seems, I've selected the wrong war directory when I first started
my launch config.
Now I have just fixed the -war parameter in the launch config to point
into the WTP tomcat server instance.
in my case: -war D:\_development\_eclipse_workspace\dsm\.metadata
\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps\appGwtDsm
(before it was set to src/main/webapp and thus neither eclipse, nor
the tomcat server recognised the new/changed files)

another question related to the -war path:
I tried to use a local path instead, but eclipse keeps telling me that
this dir does not exist:
${workspace_loc:/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/
wtpwebapps/appGwtDsm}
Any ideas what the problem could be?

On 22 Feb., 11:37, Thomas Broyer t.bro...@gmail.com wrote:
 On Tuesday, February 22, 2011 11:30:28 AM UTC+1, Martin Trummer wrote:

  Thanks for the reply - it is actually what I used to setup the project
  (almost - I used the maven entry below)

  So, does it work for you, if you start the server first (from a clean
  project) and then start the GWT development mode?
  (if so, then I have made some mistake in my setup)

 Yes, I confirm it works for us (5 developers, using Jetty-WTP, and using
 Maven too, with m2eclipse-WTP).

 I'm looking towards using the jetty-maven-plugin though, as we're having
 issues with WTP (classes not deployed to the server, sometimes even
 dependencies' JARs)

-- 
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 eclipse GPE and WTP

2011-02-22 Thread Martin Trummer
Thanks for the reply - it is actually what I used to setup the project
(almost - I used the maven entry below)

So, does it work for you, if you start the server first (from a clean
project) and then start the GWT development mode?
(if so, then I have made some mistake in my setup)


On Feb 18, 3:12 pm, Thomas Broyer t.bro...@gmail.com wrote:
 Seehttp://code.google.com/eclipse/docs/faq.html#gwt_in_eclipse_for_java_eefor
 the official recommended way.

 This is what we're using too, works quite well.

-- 
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 eclipse GPE and WTP

2011-02-18 Thread Martin Trummer
hi,

I am using google plugin for eclipse and start my tomcat server
instance via the eclipse-WTP servers view.
Basically it works, but the first start is quite inconvenient and I
wonder, if anyone knows a better way to do this.

so here is what I need do to start the gwt-app.

when I checkout a clean version of my project, the war folder includes
only the web.xml and WEB-INF folder.
now I start my 'Web Application' run-configuration which has the -war
attribute set to the war folder.
when this starts up, it will create the MODULE directory in my war
folder (which inlcudes hosted.html, etc.)

but eclipse does not see these files yet: I have to manuall refresh my
project.

when I now start the browser (by dbl-clicking the entry in the
Development Mode view, the .gwt.rpc files will be created in my
MODULE directory.
again I have to manually refresh the project in eclipse Package
Explorer view

now I can start my server and then I need to refresh the browser and
everything will work.

*
when I start the server first and then the development, the files will
automatically be copied to the web-servers exploded war directory, but
the client-server communication will not work: I get
SerializationExceptions

cheers, martin


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



Re: RPC and MapString, Object serialization problem

2010-03-12 Thread Martin Trummer
I strongly recommend to use DTO's because then you
have all the benefits of type-safety which is one of the
most compelling reasons to use GWT.

however, if you really don't care about that, you
could use a HashMapString, String and
simply call the toString() method on the serverside
for every value you want to put into the map.

On 12 Mrz., 09:38, kriswpl kris...@gmail.com wrote:
 Thank you Paul for your reply.

 FYI - I use Map not to use DTO - I put all properties (Long, Date) to
 this Map.

 So I have another question --- is it any way to define what kind of
 objects (Date, Long, Double, etc.) can show in Map. I found
 information @gwt.typeArgs something.
 I mean - is it possible to add to the remote interface information
 about all serializaed types which can be in Map? - to solve this
 problem

 Thanks,
 Krisw

 On 11 Mar, 17:55, Paul Robinson ukcue...@gmail.com wrote:

  kriswpl wrote:
   Interface method is:
   public MapString, Object test();

   and in implementation I put into returned map, object java.util.Long
   (which is serializable:) ):
   map.put(long, new Long(1));

   Where do I do it wrong?

  GWT does a great job of putting as little into the javascript as
  possible. In the above case, there's nothing to tell it that you're
  going to send a Long, so it doesn't generate the RPC code into the
  javascript that knows how to deserialize a Long. Add another method that
  references Long, and then your first method might work because the Long
  code is now going to be included.

  On a related note, using Map in the API is not a good idea because it
  means GWT must look through all your code for every implementation of
  Map to see whether it's used. At the very least, it will make compiles
  take longer. At worst, it will generate longer code. It goes against the
  grain for java programming, but you need to make GWT RPC APIs as
  specific as possible. That means declaring that you're returning a
  HashMap, not a Map, in the interface.

  This also means you can't declare Object as a type in an RPC interface.

  Paul

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



Re: FileUpload widget trouble

2010-03-08 Thread Martin Trummer
I guess you must add the fileupload to the form - not to the panel
so call: form.add(fuAppSrcZip);

On 7 Mrz., 20:19, Víctor Llorens Vilella victor.llor...@gmail.com
wrote:
 Thanks Bimbo.

 I have tried it with no luck.
 I'm working with Chrome.

 For testing, I have tried with Firefox and ,well..., submit button is doing
 anything.

 Maybe is this widget buggy? I'm working, and may work with GWT 2.0.0.

 On 7 March 2010 16:51, BimboJones bimbojone...@gmail.com wrote:



  Hi,

  Have you tried do the add(panel) after you assign the handlers?

  On 6 Mar, 19:20, Victor Llorens victor.llor...@gmail.com wrote:
   Hi all,

   I have a FileUpload and a Button in a GridPanel.
   Once Button is clicked I submit the form.

   Analyzing HTTP Traffic, I can see that Post data is void... no file is
   sent.

   Does some body know what could be the reason?

   I attach some info:

   POST /TFC_Server_unstable/AppReceiver HTTP/1.1
   Host: localhost:8080
   Connection: keep-alive
   User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US)
   AppleWebKit/532.5 (KHTML, like Gecko) Chrome/4.0.249.89 Safari/532.5
   Referer:
 http://localhost:8080/TFC_Server_unstable/?gwt.codesvr=127.0.0.1:9997
   Content-Length: 44
   Cache-Control: max-age=0
   Origin:http://localhost:8080
   Content-Type: multipart/form-data; boundary=
   WebKitFormBoundary1I85m0l32DvdcUiI
   Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/
   plain;q=0.8,image/png,*/*;q=0.5
   Accept-Encoding: gzip,deflate,sdch
   Cookie: JSESSIONID=E576D094A24EE9FEF71DA7EF0FDC7801
   Accept-Language: es-ES,es;q=0.8
   Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3

   --WebKitFormBoundary1I85m0l32DvdcUiI--

   Code:

           Grid panel = new Grid(5,2);
           final FormPanel form = new FormPanel();
           form.setWidget(panel);

           form.setEncoding(FormPanel.ENCODING_MULTIPART);
           form.setMethod(FormPanel.METHOD_POST);
           form.setAction(/TFC_Server_unstable/AppReceiver);

           // Create a FileUpload widget.
           FileUpload fuAppSrcZip = new FileUpload();
           fuAppSrcZip.setName(uploadFile);
           panel.setWidget(0,1,fuAppSrcZip);

           btnPreviousStep = new Button(Previous Step);
           btnNextStep     = new Button(Upload and save everything);
           btnNextStep.setEnabled(false);
           panel.setWidget(1,0,btnPreviousStep);
           panel.setWidget(1,1,btnNextStep);

   add(panel);

           // handlers

           fuAppSrcZip.addChangeHandler(new ChangeHandler() {

               @Override
               public void onChange(ChangeEvent event) {
                   btnNextStep.setEnabled(true);
               }
           });

           btnNextStep.addClickHandler(new ClickHandler() {

               @Override
               public void onClick(ClickEvent event) {
                   System.out.println(form.getAction());

                   form.submit();
               }
           });
           btnPreviousStep.addClickHandler(new ClickHandler() {
               @Override
               public void onClick(ClickEvent event) {
                   controller.previousStep();
               }
           });

           // Add an event handler to the form.
           form.addSubmitHandler(new SubmitHandler() {
               @Override
               public void onSubmit(SubmitEvent event) {
                   controller.aplicationSubmitStart();
               }
           });
           form.addSubmitCompleteHandler(new
   FormPanel.SubmitCompleteHandler() {
               @Override
               public void onSubmitComplete(SubmitCompleteEvent event) {
                   controller.applicationSubmitComplete();
               }
           });

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

 --
 Victor Llorens Vilella

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



Re: fire event when user clicks on specific part of Label text

2010-03-04 Thread Martin Trummer
oh yeah - that's great
 * beg for help
 * and if someone comes up with a a viable idea: call it stupid

I bet you won't get too many answers that way..

On 4 Mrz., 14:33, mariyan nenchev nenchev.mari...@gmail.com wrote:
 Well i do it in java, but to construct the text using many labels(hrml)
 seems stupid, and also how am i going to layout (order) them?

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



Re: how to embed flash in gwt?

2010-02-24 Thread Martin Trummer
or simply build your html fragment and use the html-widget
http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/gwt/user/client/ui/HTML.html

if you don't want to use 3rd party libs

On 23 Feb., 20:14, Anoop John anoopjoh...@gmail.com wrote:
 See the code below. You have to download gwt2swf.jar file and import
 pl.rmalinowski.gwt2swf.client.ui.SWFWidget;

 SWFWidget frame=new SWFWidget(flash/sample.swf);
 frame.setHeight(200px);
 frame.setWidth(200px);
 new FlexTable().setWidget(0, 0,frame);

 On Feb 23, 11:58 pm, mariyan nenchev nenchev.mari...@gmail.com
 wrote:

  Hi,

     i have been given some flash clips that i must embed in my gwt
  application. I have no idea from flash, any suggestions?

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



Re: Applet to Javascript in GWT

2010-02-24 Thread Martin Trummer
you'll need JSNI and a bridge method

the ' bridge method' part of this article may help
http://timepedia.blogspot.com/2007/06/gwt-demystified-generators-part-deux.html


On 23 Feb., 22:10, Stanley Wong wong.stan...@gmail.com wrote:
 Specially, this call fails here:

                          String s = getValue();
                          try {
                                  applet.getAppletContext().showDocument(
                                                  new 
  URL(javascript:doAlert(\ + id + \,\ +  s + \ )));
                          } catch (MalformedURLException e) {
                                  // TODO Auto-generated catch block
                                  e.printStackTrace();
                          }

 in which this script function is not called.

   script
         function doAlert( id, message ){
                 alert(message);
         }

         function setValue2(msg){
                 setValue2(msg);
         }
   /script

 How do I fix the URL? Or other methods can help?

 Stanley

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



Re: Why does GWT use UserAgent Sniffing?

2010-02-23 Thread Martin Trummer
Dave: Pauls last post is the correct answer for your question

On 23 Feb., 13:41, DaveC david.andrew.chap...@googlemail.com wrote:
  So perhaps your question ought to be why GWT uses the user agent to put
  the browser into its 6 categories rather than using browser capability
  detection to put them into the same 6 categories.

 E... isn't that what I asked?

 So my question is NOT- why do we have deferred binding or why does
 gwt
 test for different browser platforms BUT:

 Why does gwt parse the useragent string rather than using object/
 feature detection - due to the fragility of sniffing the ua string? 

 On Feb 23, 11:00 am, Paul Robinson ukcue...@gmail.com wrote:

  DaveC wrote:
   Gal, I'm not sure what you mean by this:

   You can write your own properties detection to do it.
   But can't you see the what you are telling means compile 100+ different
   versions of the page if you evaluate individual properties?
   The way gwt do it give you 6 versions only, one for each browser...

  If GWT were to check for browser capabilities instead of the user agent,
  it would have many variables, in terms of all the things the browser
  does and does not support. You can't implement deferred binding for each
  of them because you'd end up with an awful lot of permutations in your
  compile, making it take much, much longer.

  So even if GWT were to do it this way, it would have to use the
  detection to identify the type of browser into the same (or similar) 6
  categories it does now with user agent so it can keep the number of
  permutations small.

  So perhaps your question ought to be why GWT uses the user agent to put
  the browser into its 6 categories rather than using browser capability
  detection to put them into the same 6 categories.

  Paul

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



Re: Why does GWT use UserAgent Sniffing?

2010-02-22 Thread Martin Trummer
because it's much better:
http://code.google.com/intl/de-DE/webtoolkit/doc/latest/DevGuideCodingBasicsDeferred.html#benefits

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



Re: Directory Selector

2010-02-18 Thread Martin Trummer
AFAIK it is not possible with HTML and js to do what you want (yet?)

anyway - there are some upload applets out there
some for free (e.g. http://jupload.sourceforge.net/index.html)
and some you have to pay for

another alternative would be to embedd some flash-object

On 17 Feb., 18:25, Stanley Wong wong.stan...@gmail.com wrote:
 Hi, all,

 I realize other people may have asked this question. I just ask the
 question again and see where there would be a solution.

 Is there any way to open a directory dialog from a browser that
 enables a user to select a directory?

 Here is what I find:
 1. A file upload dialog is available in GWT, however, the directory
 upload dialog is not present.
 2. It is impossible to list files from a client directory, due to the
 violation of a same-site policy.
 3. Use the applet approach, an applet containing an AWT file dialog
 can be started.  However, the AWT file dialog is just a FileUpload
 gui.
 4. Use the applet approach, try to write an applet containing a
 JFileChooser (swing component), but failed. It sounds a JFileChooser
 is not compatible with an applet/japplet object.

 Do you have any ideas?

 Thank you,

 Stanley

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



Re: Fileupload question

2010-02-18 Thread Martin Trummer
as a first step, I'd recommend to check what is actually
sent to the server.
you could use e.g. firebug (a firefox plugin)

then you will at leas know if the problem is on your client
code or on your server code

On 17 Feb., 15:59, Ravi raveend...@yahoo.com wrote:
 Hi,

 I am new to GWT and facing problem with Fileupload.

 I have a form which has multiple rails.

 In one of the rail, there is a form which has Fileupload widget.

 The form has button, which on click is supposed to send the file
 details to the servlet.

 In the servlet code, multipart is false , even the the encoding is set
 to  -
 -- importFileUploadForm.setEncoding(FormPanel.ENCODING_MULTIPART);

 But in the servlet the multipart is shown as false.

 Servlet code

   public String Importfile(String fileName)
    {
           HttpServletResponse response = this.getThreadLocalResponse();
           HttpServletRequest request = this.getThreadLocalRequest();
           HttpSession session = request.getSession();
          boolean isMultipart =
 ServletFileUpload.isMultipartContent(request);
       long uploadFileSize = 0;

         response.setContentType(text/plain);

         if (isMultipart)
         {
                 // do the processing on file.
         }
         else
         {
                 // do something else
         }
           return null;
   }

 Form code.

                 //Import file upload Form

                 importFileUploadForm = new FormPanel();

                 importFileUploadForm.setAction(IMPORT_ACTION);
  // null value
                 
 importFileUploadForm.setEncoding(FormPanel.ENCODING_MULTIPART);

                 importFileUploadForm.setMethod(FormPanel.METHOD_POST);

                 DOM.setElementAttribute(importFileUploadForm.getElement(), 
 name,
 importFileUploadForm);

                 DOM.setElementAttribute(importFileUploadForm.getElement(), 
 id,
 importFileUploadForm);

                 //Import file upload form submit and submit completed event 
 handlers

                 importFileUploadForm.addFormHandler(new FormHandler()

                 {

                         public void onSubmit(FormSubmitEvent event)

                         {

                                 String filename = 
 importFileField.getFilename();

                                 if (filename.trim().length() == 0)

                                 {

                                         Window.alert(Please select a file to 
 upload);

                                         event.setCancelled(true);

                                 }

                                 else

                                 {

                                         Object objArr[] = {this,filename};
                                         // get event manager
                                         colMgr.DispatchEvent(impEvent);

                                 }

                     }

                         @Override

                         public void onSubmitComplete(FormSubmitCompleteEvent 
 arg0) {

                                 // TODO Auto-generated method stub

                                 //arg0.getSource().  
 .equals(obj)event.setCancelled(true);

                         }

                 });

                 //File upload widget

                 importFileField = new FileUpload();

                 importFile.setStyleName(gwt-TextBox);

                 importFileField.setName(importFile);

                 DOM.setElementAttribute(importFileField.getElement(), id,
 importFile);

                 final Button importClear = new Button(Clear);

                 //submits the file import upload form

                 importUpload.addClickHandler(new ClickHandler()

                 {

                         public void onClick(ClickEvent event)

                         {

                                 importFileUploadForm.submit();

                         }

             });

                 //clears the file upload widget by replacing it with a new 
 copy

                 importClear.addClickHandler(new ClickHandler()

                 {

                         public void onClick(ClickEvent event)

                         {

                                 //RootPanel rootPanel = 
 RootPanel.get(importFileUploadForm); //
 get container div

                                 
 DOM.removeChild(importFileUploadForm.getElement(),
 importFileField.getElement()); //remove input

                                 importFileField = new FileUpload(); //create 
 replacement widget

                                 importFileField.setStyleName(gwt-TextBox); 
 //add style info

                                 
 DOM.setElementAttribute(importFileField.getElement(), id,
 importFile); //set id

                                 
 DOM.setElementAttribute(importFileField.getElement(), size,
 75);//set size

                                 importFileUploadForm.add(importFileField); 
 //add 

Re: editor for utf-8 properties files

2010-02-17 Thread Martin Trummer
well, yes you can do that in eclipse

but in our case, we also use the very same properties files for
our translations of the server side
and java requires the .properties files to be ISO 8859-1 encoded.

and thus, we need the file-encoding to be ISO 8859-1
and the editor automatically replaces all other characters
with their UTF encoded representation (e.g. 'ä' becomes '\u00E4')

@]matmat[
to get a list of all changed/new/deleted texts between our
release versions we simply make an SVN-diff of the corresponding
versions
since we usually have only a few changes, this works well for us

On 16 Feb., 19:58, Jim Douglas jdoug...@basis.com wrote:
 You can edit those files directly in Eclipse, no special plugin
 required.  Right-click on the file, select Properties at the bottom
 of the menu, and set Text File Encoding to UTF-8.

 On Feb 16, 9:43 am, ]matmat[ matthias.buch...@gmail.com wrote:

  Martin,
  Thanks for your reply. This tool is working really well.

  However, we ended up not using it. The main reason is it does not let
  us identify the status of the text entries. While our product is
  evolving from version to version, some texts are deleted, some are
  updated or created.
  As we are outsourcing the translation, we need to mark which text has
  been modified so the translator can update the translation. One option
  would have been to add a tag in the text; but then it will be shown on
  the UI.

  Our solution for this issue is to maintain an XLS sheet with our
  texts. We highlight the cells with different colors depending on their
  status. A tool parse the XLS sheet and generate the properties file.

  Christian,
  If this kind of editor is integrated in the google eclipse plugin, it
  would be great to add this missing feature.

  Matthias

  On Feb 9, 9:03 am, Christian Goudreau goudreau.christ...@gmail.com
  wrote:

   Would be great if that was pre-installed within google eclipse plugin.

   You should write an issue for that.

   On Tue, Feb 9, 2010 at 9:59 AM, Martin Trummer 
   martin.trum...@24act.atwrote:

I'm using:http://sourceforge.net/projects/eclipse-rbe/
and like it

On 8 Feb., 21:34, ]matmat[ matthias.buch...@gmail.com wrote:
 Hello,

 I am looking for a properties file editor for my GWT i18n-ed
 resources. As the application I am working on supports several
 languages (en, fr, ja), it would be very handy to be able to edit the
 different languages on the same window.

 I found this tool:http://zaval.org/products/jrc-editor/index.html. I
 like it because:
 - I can see all the languages on the same window and it will dispatch
 the data in the different properties files
 - the resources are organized in a tree
 - it is standalone so the tranlator won't have to install a complex
 editor
 Its looks great but the non-ASCII characters are not displayed
 properly.

 I also tried Eclipse I18N Properties File Editor
   http://sourceforge.net/projects/epfe/
 but it nicely fail with a NullPointerException when I open a UTF-8
 properties file.

 As explained in this pagehttp://
code.google.com/p/google-web-toolkit-doc-1-5/wiki/GettingStart...,
 unlike standard Java .properties files, GWT .properties files may
 contain Unicode characters directly and should therefore be encoded as
 UTF-8.
 Since GWT does not follow the Java standard, I understand why most
 editors I tried fail.

 Is there any editor that fill my requirements? If not, I plan to edit
 my texts in a XLS file and write a tool to convert it into properties
 files.

 Thanks,
 Matthias

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



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



Re: Facebook

2010-02-15 Thread Martin Trummer
there's another lib for the client-side that may help
http://code.google.com/p/facebook4gwt/

I use it in a 3rd party website on the client side,
to log the user in and then on the server-side I
user facebook-java-api.

On 12 Feb., 20:36, Jeff Schnitzer j...@infohazard.org wrote:
 Yes, I have.  You can play with it:  http://www.mobca.st/

 There are two sides to a facebook webapp, the client and the server.
 On the GWT side you will not be using facebook-java-api or any other
 java http-based client.  You will use the facebook connect library
 through JSNI.  The new api library is quite easy to use from GWT:

 http://github.com/facebook/connect-js

 On the server side, throw facebook-java-api in the trash.  It's
 horrid.  The Facebook API, while kludgy as hell, is actually pretty
 straightforward.  Just make HTTP requests and parse the results with
 your favorite JSON or XML parser (I use Jackson).

 Jeff

 On Thu, Feb 11, 2010 at 5:46 PM, Manny manster...@gmail.com wrote:
  Has anyone succeded in building a facebook app using gwt?
  I have spent 50+ hours trying to just get the facebook-java-api to
  work with my halfway done gwt app.
  but to no avail. My project is at a stand still untill i can figure
  this out.
  PLEASE help if you know how to do this. the current code examples
  do not take the gwt into account. and please if you just google a
  solution for me i've probably already
  seen it. I need someone who has actually done this or knows for sure
  how to.please.
  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-tool...@googlegroups.com.
  To unsubscribe from this group, send email to 
  google-web-toolkit+unsubscr...@googlegroups.com.
  For more options, visit this group 
  athttp://groups.google.com/group/google-web-toolkit?hl=en.



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



Re: Blog/ Email TextArea like widget

2010-02-15 Thread Martin Trummer
just search this group or google for 'gwt rich text editor'

you can of course also use any java-scropt richt-text editor
you like and integrate with gwt
e.g. TinyMce, ckeditor.com (http://code.google.com/p/gwt-
ckeditor/), ..

On 12 Feb., 18:12, Ahmad Bdair bdair2...@gmail.com wrote:
 Hello, Is there a widget that provides a similar functionality to what
 text area in emails / blog / forums provides? Where the user can write
 text, change its color, bold..etc

 Ahmad.

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



Re: editor for utf-8 properties files

2010-02-09 Thread Martin Trummer
I'm using: http://sourceforge.net/projects/eclipse-rbe/
and like it


On 8 Feb., 21:34, ]matmat[ matthias.buch...@gmail.com wrote:
 Hello,

 I am looking for a properties file editor for my GWT i18n-ed
 resources. As the application I am working on supports several
 languages (en, fr, ja), it would be very handy to be able to edit the
 different languages on the same window.

 I found this tool:http://zaval.org/products/jrc-editor/index.html. I
 like it because:
 - I can see all the languages on the same window and it will dispatch
 the data in the different properties files
 - the resources are organized in a tree
 - it is standalone so the tranlator won't have to install a complex
 editor
 Its looks great but the non-ASCII characters are not displayed
 properly.

 I also tried Eclipse I18N Properties File 
 Editorhttp://sourceforge.net/projects/epfe/
 but it nicely fail with a NullPointerException when I open a UTF-8
 properties file.

 As explained in this 
 pagehttp://code.google.com/p/google-web-toolkit-doc-1-5/wiki/GettingStart...,
 unlike standard Java .properties files, GWT .properties files may
 contain Unicode characters directly and should therefore be encoded as
 UTF-8.
 Since GWT does not follow the Java standard, I understand why most
 editors I tried fail.

 Is there any editor that fill my requirements? If not, I plan to edit
 my texts in a XLS file and write a tool to convert it into properties
 files.

 Thanks,
 Matthias

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



Re: GWT and applets

2010-02-03 Thread Martin Trummer
http://code.google.com/p/gwtai/
may be helpful

On 2 Feb., 22:20, K.WA chd...@gmail.com wrote:
 Hi

 I'd like to write an applet that would allow to paste an image (+ a
 few other thing like croping) inside a rich text area form. To be able
 to paste and crop, I think I will write a small applet that will send
 the image to my server (which saves it and returns its URL).

 There is no predefined GWT widget for applets. how could I do that ,
 ie

 1/ have an applet appear in the middle of my GWT GUI
 2/ have the applet notify the rich text area that an image is
 available at a given URL (the one my server would have returned...)

 Regards

 --
 cd

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



Re: how to control that a FileUpload has been filled properly

2010-02-03 Thread Martin Trummer
you could check the filenames in the SubmitHandler of the form

or you could use the onChange event FileUpload to show an error
message

On 2 Feb., 21:48, K.WA chd...@gmail.com wrote:
 Hi

 I would like to allow file upload of images. I'm using the FileUpload
 object in a Form object. I'd like allow the form submit if the
 FileUpload object do have a file selected, and if the file name has
 appropriate extension.

 I did not see how to catch the event saying that a file has been
 selected in the FileUpload object. Is there any way to do that ?

 thanks in advance

 --
 cd

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



Re: Can't remove 0 index in ArrayList

2010-02-01 Thread Martin Trummer
seems to work for me - here's a little test:

  ListInteger list = new ArrayListInteger();
  list.add(6);
  list.add(7);

  list.remove(0);
  list.remove(0);

after that the list is empty again.
tested in development mode with gwt 2.0.0

just a guess: make sure, you call the right function
remove is overloaded.

so if you would call:
  list.remove(new Integer(0));
then nothing would be removed, because there's no integer
object 0 in the list.

On 29 Jan., 20:04, Christian Goudreau goudreau.christ...@gmail.com
wrote:
  protected void removeFacultySucceeded() {
 display.removeItemFromFacultyList(display.getFacultyListSelectedIndex());
 faculties.remove(faculty);
  if (!faculties.isEmpty()) {
 faculty = faculties.get(display.getFacultyListSelectedIndex());
 refreshDisplay();}

  modification = true;

 }

 I was using the selected index instead of object faculty. While debugging I
 confirmed that the first position was 0 ans was an integer... Every other
 position was working fine.

 I don't understand that bug either, I've worked around by using an object.

 Anyway it's not that important, but I wanna know it's just me or it's
 something that should be corrected.

 Christian

 On Fri, Jan 29, 2010 at 4:23 AM, Martin Trummer 
 martin.trum...@24act.atwrote:

  show some code or a small test case

  On 28 Jan., 18:16, Christian Goudreau goudreau.christ...@gmail.com
  wrote:
   Does anyone had that same problem ? Everything works fine when it comes
  to
   other indexes, but when I do ArrayList.remove(0), the object is still in
   here ! But When I try : ArrayList.remove(object), it work again.

   Everything was working well prior to GWT 2.0.

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



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



Re: How do I make the server RPC to client?

2010-02-01 Thread Martin Trummer
more generally speaking, you want server push
http://en.wikipedia.org/wiki/Server_push

On 31 Jan., 21:27, Paul Robinson ukcue...@gmail.com wrote:
 Search for comet. It's the closest technique to what you want.

 JA wrote:
  Might be a silly question, but how do you make this scenario work
  efficiently:

  The client sends a message to the server, then displays the server
  status.  Now I'm expecting some other client to respond to my message
  at a later time, but I don't want to keep polling to see whether the
  server status has changed.  Is there a way for the server to call a
  procedure on the client when the second client has clicked?

  Thx.



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



Re: Can't remove 0 index in ArrayList

2010-02-01 Thread Martin Trummer
I think you should take some time to find out what the problem is/was.

it's quite unlikely that something in the GWT code changed, so that
such a simple thing would stop working.
Maybe you just had different data before.
Thus it may be an indication that you got something wrong in your
code - difficult to say what when you can't reproduce it.

maybe you got some of your hashCode/equals functions wrong which
could lead to strange behaviour like this.

however, if it's a project that's not critical or if you
just feel fine with this, don't waste your time :)

On 1 Feb., 13:11, Christian Goudreau goudreau.christ...@gmail.com
wrote:
 Yeah, but the thing is that code was working fine prior to gwt 2.0, so I
 just don't understand why lol

 Anyway I also tried a simple example like yours and it was working fine, so
 I just gave up finding a solution to a problem that I alreay resolved by
 doing the alternative way.

 Thanks

 Christian

 On Mon, Feb 1, 2010 at 5:03 AM, Martin Trummer martin.trum...@24act.atwrote:

  seems to work for me - here's a little test:

   ListInteger list = new ArrayListInteger();
   list.add(6);
   list.add(7);

   list.remove(0);
   list.remove(0);

  after that the list is empty again.
  tested in development mode with gwt 2.0.0

  just a guess: make sure, you call the right function
  remove is overloaded.

  so if you would call:
   list.remove(new Integer(0));
  then nothing would be removed, because there's no integer
  object 0 in the list.

  On 29 Jan., 20:04, Christian Goudreau goudreau.christ...@gmail.com
  wrote:
    protected void removeFacultySucceeded() {
   display.removeItemFromFacultyList(display.getFacultyListSelectedIndex());
   faculties.remove(faculty);
    if (!faculties.isEmpty()) {
   faculty = faculties.get(display.getFacultyListSelectedIndex());
   refreshDisplay();}

    modification = true;

   }

   I was using the selected index instead of object faculty. While debugging
  I
   confirmed that the first position was 0 ans was an integer... Every other
   position was working fine.

   I don't understand that bug either, I've worked around by using an
  object.

   Anyway it's not that important, but I wanna know it's just me or it's
   something that should be corrected.

   Christian

   On Fri, Jan 29, 2010 at 4:23 AM, Martin Trummer martin.trum...@24act.at
  wrote:

show some code or a small test case

On 28 Jan., 18:16, Christian Goudreau goudreau.christ...@gmail.com
wrote:
 Does anyone had that same problem ? Everything works fine when it
  comes
to
 other indexes, but when I do ArrayList.remove(0), the object is still
  in
 here ! But When I try : ArrayList.remove(object), it work again.

 Everything was working well prior to GWT 2.0.

--
You received this message because you are subscribed to the Google
  Groups
Google Web Toolkit group.
To post to this group, send email to
  google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to
google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
  google-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%252bunsubscr...@googlegroups.com

.
For more options, visit this group at
   http://groups.google.com/group/google-web-toolkit?hl=en.

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



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



Re: Can't remove 0 index in ArrayList

2010-01-29 Thread Martin Trummer
show some code or a small test case

On 28 Jan., 18:16, Christian Goudreau goudreau.christ...@gmail.com
wrote:
 Does anyone had that same problem ? Everything works fine when it comes to
 other indexes, but when I do ArrayList.remove(0), the object is still in
 here ! But When I try : ArrayList.remove(object), it work again.

 Everything was working well prior to GWT 2.0.

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



Re: How future proof are GWT permutations?

2010-01-27 Thread Martin Trummer
I didn't know about the callback error function.

How/where can I register such a callback?


On 27 Jan., 12:34, Thomas Broyer t.bro...@gmail.com wrote:
 On Jan 27, 2:22 am, dmen dmenou...@gmail.com wrote:

  How future proof are GWT compilations? For example, if I compile my
  app today with 2.0:

  1. How it will react in a couple of years to lets say IE 9, Firefox 4,
  etc.?

  2. How it will react to a yet unknown, however standards compatible,
  browser?

 It all depend how these browsers get detected by the GWT bootstrap
 code (*.nocache.js; particularly the property-provider
 name=user.agent code).
 New versions should be detected as the highest version supported by
 GWT (IE9 detected as user.agent=ie8 –well, depending on the X-UA-
 Compatible of course–, and Firefox 4 as user.agent=gecko1_8), so
 unless there are breaking changes in their JS API and/or they break
 workarounds, your app should run OK.
 As for new browsers, same as above, it depends how they are detected.
 If they're detected as an already supported browser *and* they are
 compatible with it, then all is OK (this wass the case for Chrome,
 which is detected as user.agent=safari; sure it uses the same WebKit
 rendering engine, but a different JS engine, which could have
 introduced incompatibilities, but that's not the case AFAICT),
 otherwise the app won't load at all (you can define a callback error
 function though to have some JavaScript run in this eventuality)

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



Re: RFC 1867-compatibe File Upload

2010-01-26 Thread Martin Trummer
I'm not sure, what you mean with non-UI and on the other hand
you want to display a progressbar.
maybe you want a pure-GWT implementation without any 3rd party stuff
like flash or applets?

if so, this may be what you are looking 4:
http://code.google.com/p/gwtupload/

On 25 Jan., 17:43, Lothar Kimmeringer j...@kimmeringer.de wrote:
 CI-CUBE schrieb:

  I'm looking for an RFC 1867-compatible, pure (non-UI) file upload
  functionality to be used at [Smart]GWT's client side.

 FormPanel.setEncoding(FormPanel.ENCODING_MULTIPART)
 should provide that kind of functionality.

  It would be
  perfect if the code could provide a callback to render a progress bar.

 I'm not aware of such a thing but defining a function in a
 RemoteServiceServlet returning the currently received bytes
 of the parallel running upload, shouldn't be that hard to
 be implemented by yourself.

 Regards, Lothar

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



Re: Saving page and running it locally breaks the functionality

2010-01-25 Thread Martin Trummer
I've never done this before, and I'm not sure it will work, but
these things come to my mind:
 * you have to take a look at what other files your html file
   refers to - also copy them to the correct place and adopt the
   links (if neccessary)
   also take care of other dependencies:
   the main html page will load a *.nocache.js file that in turn
   will load a *.cache.js file
   so maybe you should copy over all the files from your
   server to the client, where you want to run it
 * I would not use a directory that includes spaces in the name
   to test it: so use e.g. C:\test\ to store your files

good luck

On 22 Jan., 13:09, baris cel...@gmail.com wrote:
 Hello Everyone!

 I have successfully created a simple application using GWT. It works
 as expected via my local host via address:http://localhost:/Sample.html

 I need something more :) I wish when I save the web page to my local
 disk via Save page as from browser, I would like it to be running if
 I open it with it with a browser (with internet access) via file:///
 C:/Documents%20and%20Settings/User.Name/Desktop/Sample.html

 Unfortunately, it does not work. What can you suggest? There is this
 generated JS file I noticed, how can emulate this one working?

 Thanks in advance

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



Re: Image Rotates Itself

2010-01-20 Thread Martin Trummer
what happens if you copy the URL of that image and
open it in a new browser window/tab?

maybe you should also clear all cache/s,
restart the webserver/s to avoid any old data to confuse you.

On 19 Jan., 16:25, Deerman deermang...@gmail.com wrote:
 Thank you for your reply.

 The thing is I am actually not rotating anything. I am simply adding
 the image to the Image object and it is rotating itself.
 I checked the war folder, (that is where the image resides) and it is
 not rotated. But when it is displayed, it is rotated.

 Could it be a pixel issue or length width issue perhaps? I am totally
 stumped.

 On Jan 19, 10:09 am, Ashar Lohmar asharloh...@gmail.com wrote:

  Hi
  just a hint ... for example picasa if you say to rotate a image by
  clicking the round arrow it shows it rotated, but the image isn't
  really rotated picasa only makes an configuration file (hidden) that
  will be read every time u go there and it says in it that the image
  should be presented rotated, I saw the same thing on other picture
  managers to.
  maybe that's your problem or something similar to that.

  to check that this is the case, open the image with paint for example.

  I don't see another reason why this could happen, or maybe I'm wrong.

  Good luck

  On Jan 18, 5:10 pm, Deerman deermang...@gmail.com wrote:

   I am reading in an image from the user on the server side and copying
   it to the war folder. This process works fine.

   Then, through an RPC call, I get the location of the image and display
   the image to my Image object (which is placed in a VerticalPanel).

   The image is visibly, but the problem is for some images they are
   either rotated 90 degrees or -90 degrees. Am I missing something?

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




Re: Charset Problem

2010-01-14 Thread Martin Trummer
it's not enough to change the value of the content-type meta tag
your editor must also save the file in the corresponding content-type
in eclipse you can change the encoding of the file under File -
Properties - Resource

On 13 Jan., 21:41, nacho vela.igna...@gmail.com wrote:
 Hi, i want to put a link like this:

 Hyperlink lnkBackToInbox = new Hyperlink(« Back to Inbox, #);

 And in my hosted page i have the following line:

 meta http-equiv=Content-Type content=text/html;
 charset=iso-8859-1 /

 also i tried with

 meta http-equiv=Content-Type content=text/html; charset=UTF-8 /

 but when i put the link in the hosted page i get the following:

 Back to Inbox

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




Re: RichTextArea Entities

2010-01-12 Thread Martin Trummer
I just wonder, why you would want to do that?
what's wrong with the unicode chars?

On 11 Jan., 20:03, DCYorke d...@yorkemail.org wrote:
 When setting HTML to a RichTextArea, some HTML entities are converted
 to unicode. For instance, laquo; is converted to «, copy; is
 converted to © and so forth. The problem seems to originate in the
 innerHTML property that is used by RichTextArea. Anyone know of a
 workaround such that when I call getHTML() on the RichTextArea the
 HTML entities are included instead of the unicode? Thanks in advance.

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




Re: RichTextArea Entities

2010-01-12 Thread Martin Trummer
I'd just check, if the encoding of the mail is set correctly.

If the client does not support unicode at all, you're out of
luck anyway, because users could include all other sorts of
unicode chars (for which no html-entity exists)

you could of course implement a way to convert the chars to
their html-entities (XSLT?), but since would only be a partial
solution it may not be worth the effort.

maybe you could use another editor that can keep the entites.

these links might be helpful for you:
 * http://sourceforge.net/projects/xmlchar/
 * http://martin-trummer.blogspot.com/2009/11/wysiwyg-gotchas.html

On 12 Jan., 16:13, DCYorke d...@yorkemail.org wrote:
 We're using RichTextArea to compose emails. The problem seems to be
 that some email clients aren't seeing the characters correctly. So ©
 shows up as a ?, but copy; shows up correctly.

 On Jan 12, 3:50 am, Martin Trummer martin.trum...@24act.at wrote:

  I just wonder, why you would want to do that?
  what's wrong with the unicode chars?

  On 11 Jan., 20:03, DCYorke d...@yorkemail.org wrote:

   When setting HTML to a RichTextArea, some HTML entities are converted
   to unicode. For instance, laquo; is converted to «, copy; is
   converted to © and so forth. The problem seems to originate in the
   innerHTML property that is used by RichTextArea. Anyone know of a
   workaround such that when I call getHTML() on the RichTextArea the
   HTML entities are included instead of the unicode? Thanks in advance.

   DCYorke


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




Re: Form + servlet + Firefox does not work

2009-12-04 Thread Martin Trummer
so does your applet actually get called
i mean: when you upload a file in FF, is the doPost
method called?

maybe you should throw in some log statements and
maybe try to catch all Exceptions in the do post
just to log it

you could also use firebug to check what the client
actually sends to the server

On 3 Dez., 20:21, Lena lena.he...@gmail.com wrote:
 I'm writing a gwt site with a form using components from both gwt and
 gwt-ext. Since I need to send a file I can't use gwt's RPC services
 (GWTServletService), so I use a java servlet. I tried it in hosted
 mode and with IE6 and I recieve data properly. However, using firefox
 the servlet does not recieve anything.

 This is the gwt code corresponding to the form:

             final FormPanel uploadForm = new FormPanel();
             uploadForm.setAction(GWT.getModuleBaseURL() +
 UploadFileServlet1);
             uploadForm.setEncoding(FormPanel.ENCODING_MULTIPART);
             uploadForm.setMethod(FormPanel.METHOD_POST);
             uploadForm.addFormHandler(new FormHandler(){
                 public void onSubmit(FormSubmitEvent event){

                 }

                 public void onSubmitComplete(FormSubmitCompleteEvent event){
                         //getExistBD();
                         //wait.hide();
                         //MessageBox.alert(event.getResults());
                 }
           });

             // Create a FormPanel and point it at a service.
             final com.gwtext.client.widgets.form.FormPanel inUploadForm = new
 com.gwtext.client.widgets.form.FormPanel();
             inUploadForm.setPaddings(10);
             inUploadForm.setLabelWidth(150);

             FileUpload file = new FileUpload();
             file.setName(file);
             file.addStyleName(margin);

             FieldSet fsBD = new FieldSet(Guardar en);
             fsBD.addStyleName(fieldSet);

             final Store statesStore = new SimpleStore(new String[]{en,
 es}, getStates());
             statesStore.load();

             ComboBox cbSaveMode = new ComboBox(Tipo de base de datos,
 saveMode, 200);
             cbSaveMode.setEmptyText(Seleccionar...);
             cbSaveMode.setStore(statesStore);
             cbSaveMode.setDisplayField(es);
             cbSaveMode.setValueField(en);
             cbSaveMode.setReadOnly(true);
             cbSaveMode.setForceSelection(true);
             cbSaveMode.setMode(ComboBox.LOCAL);
             cbSaveMode.setTriggerAction(ComboBox.ALL);
             cbSaveMode.setBlankText(Este campo es obligatorio);
             cbSaveMode.addListener(new ComboBoxListenerAdapter(){
                 public void onSelect(ComboBox comboBox, Record record, int 
 index)
 {
                         cbBD.setValue();
                         existBDStore.filter(en, comboBox.getValue());

                         //if(comboBox.getValue().equals(public)){
                         //      cbBD.setStore(existPublicBDStore);
                         //}else if(comboBox.getValue().equals(private)){
                         //      cbBD.setStore(existPrivateBDStore);
                         //}
                 }
             });

             cbBD = new ComboBox(, nameExistBD, 200);
             cbBD.setEmptyText(Seleccionar...);
             cbBD.setDisplayField(name);
             cbBD.setValueField(id);
             cbBD.setLinked(true);
             cbBD.setMode(ComboBox.LOCAL);
             cbBD.setTriggerAction(ComboBox.ALL);
             cbBD.setReadOnly(true);
             cbBD.setForceSelection(true);

             final TextField nameField = new TextField(, nameNewBD, 200);
             nameField.disable();

             final Radio rExist = new Radio(Base de datos existente, bd);
             rExist.setChecked(true);
             rExist.setHideLabel(true);

             final Radio rNew = new Radio(Nueva base de datos, bd);
             rNew.setChecked(false);
             rNew.setHideLabel(true);

             rExist.addListener(new CheckboxListenerAdapter(){
                 public void onCheck(Checkbox field, boolean checked){
                         if(checked == true){
                                 cbBD.enable();
                                 nameField.disable();
                         }
                 }
             });

             rNew.addListener(new CheckboxListenerAdapter(){
                 public void onCheck(Checkbox field, boolean checked){
                         if(checked == true){
                                 cbBD.disable();
                                 nameField.enable();
                         }
                 }
             });

             fsBD.add(cbSaveMode);
             fsBD.add(rExist);
             fsBD.add(cbBD);
             fsBD.add(rNew);
             fsBD.add(nameField);

             Button uploadSubmitButton = new Button(Submit, new
 ButtonListenerAdapter(){
                 public void onClick(Button button, EventObject e) {
                         

how about compressing css?

2009-12-03 Thread Martin Trummer
when using GWT together with 3rd party libs, you sometimes get really
huge css files.

would it be possible to use some mechanism like the i18n constants for
css classes and styles, so that the css-classnames could be shortened/
obfuscated?
Not only would it decrease filesize (like zipping the response), we
could use interfaces to refer to the css-style names and thus gain
compile time checks.

any thoughts?

--

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




Re: Tomcat security + GWT = misery

2009-12-02 Thread Martin Trummer
if I understood the tomcat security-manager right, it would
be no problem to turn it off, if your app runs on your own
dedicated server.
on the other hand, if you host serveral apps that you have no
control over, you should not turn it off.

On 1 Dez., 21:57, bradrover brk...@gmail.com wrote:
 I have a GWT application that makes some server side web service calls
 to a Spring web service on the same machine (Ubuntu 9.04 and Tomcat
 6).

 I've spent countless hours trying to get security to allow these calls
 to go through in my GWT application. Finally, after all of that, I now
 have gwt rpc serialization errors for types I am not even trying to
 serialize:

 SEVERE: Exception while dispatching incoming RPC call
 com.google.gwt.user.client.rpc.SerializationException: Type
 'java.util.PropertyPermission' was not included in the set of types
 which can be serialized by this SerializationPolicy or its Class
 object could not be loaded. For security purposes, this type will not
 be serialized.

 I had already added a similar class to my gwt.rpc file for a previous
 error. Why do I have to do this? At this point I I am tempted to just
 turn off tomcat security. All I want to do is have my GWT application
 be able to make a server side web service call, which works perfectly
 on my local Windows XP machine.

--

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




Re: Default language

2009-11-30 Thread Martin Trummer
I thought GWT 1.6. would do this automatically - anyway an alternative
to the serverside detection is to do it in js on the clientside in
your html file - example:

I'm sure this f** forum will completely mess up my source code
again...
why can't we have [code] tags in a developer(!) forum?

script type=text/javascript
/* ![CDATA[ */
lang=en;
var navLang = navigator.language;
if (navLang == null) {
/* note: in IE the language attribute is named browserLanguage
 * see: 
http://de.selfhtml.org/javascript/objekte/navigator.htm#language
 */
navLang = navigator.browserLanguage;
}

if (navLang.indexOf(en)  -1) {
  lang=en;
} else if (navLang.indexOf(de)  -1) {
  lang=de;
}
}
document.write(meta name='gwt:property' content='locale=+lang
+');
/* ]] */
/script


On 30 Nov., 11:35, Jan Ehrhardt jan.ehrha...@googlemail.com wrote:
 We do it in a Java / Spring application by server side detection. The
 HttpServletRequest object knows about the preferred language of the
 requesting browser. Instead of a plain HTML page we return a JSP, that
 allows us to set the language property as a meta tag. GWT's i18n mechanism
 reads the property and choses automatically the correct language.
 Of cause, i18n is done by GWT's mechanism.

 Regards
 Jan Ehhrhardt

 On Mon, Nov 30, 2009 at 10:15 AM, Zé Vicente josevicentec...@gmail.comwrote:

  Hello all,

  I have some users of my application that are not happy about the fact
  that my application is not displayed by default using the language of
  their browsers.

  How is that possible? Do you have some tips about this topic? What can
  i do to make sure that gwt will download the version corresponding to
  their language?

  Before you ask, their language is available!

  Regards,
  José Vicente

  --

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



--

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




Re: Verification Email Process

2009-11-27 Thread Martin Trummer
If it works for you it must be right :)

another aproach would be to write a small servlet that
does the verification job:

In this case the URL in the mail would point to the
verification servlet.
the servlet could check if everything is correct and
the redirect to your application (or to an errorpage,
or send back an errorpage directly, ..)

this would have the benefit, that the servlets reaction
time is instantaneous - no need to load your whole
application before doing the verification.


On 26 Nov., 13:02, Henry enricrequ...@gmail.com wrote:
 Hi guys,

 I have my GWT application and I need to implement a process to verify
 the email address when someone creates a new account.
 I've the URL (www.XX.com) which give me the whole application
 every time I hit it.
 In my process I'll send an email after the successful creation of the
 account, this email will have a link inside like that (www.XX.com?
 method=verifyusername=FFF), by hitting this URL the server will give
 me the application again like the first time, then on the onModule()
 of my entryPoint class, I'll take the parameters of this URL, and in
 that case, I'll make and asyncronohus call to the server to verify the
 email and wait for the callback to show a panel to the user saying
 that the email has been verify. Before getting that callback I can
 show something saying that the email has being verified while I'm
 waiting for the callback.
 Is it the right way to go?

 Thanks in advance.

--

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




Re: Verification Email Process

2009-11-27 Thread Martin Trummer
another benefit is, that you don't have the
username in the url as a parameter when the app is started

On 27 Nov., 10:37, Martin Trummer martin.trum...@24act.at wrote:
 If it works for you it must be right :)

 another aproach would be to write a small servlet that
 does the verification job:

 In this case the URL in the mail would point to the
 verification servlet.
 the servlet could check if everything is correct and
 the redirect to your application (or to an errorpage,
 or send back an errorpage directly, ..)

 this would have the benefit, that the servlets reaction
 time is instantaneous - no need to load your whole
 application before doing the verification.

 On 26 Nov., 13:02, Henry enricrequ...@gmail.com wrote:

  Hi guys,

  I have my GWT application and I need to implement a process to verify
  the email address when someone creates a new account.
  I've the URL (www.XX.com) which give me the whole application
  every time I hit it.
  In my process I'll send an email after the successful creation of the
  account, this email will have a link inside like that (www.XX.com?
  method=verifyusername=FFF), by hitting this URL the server will give
  me the application again like the first time, then on the onModule()
  of my entryPoint class, I'll take the parameters of this URL, and in
  that case, I'll make and asyncronohus call to the server to verify the
  email and wait for the callback to show a panel to the user saying
  that the email has been verify. Before getting that callback I can
  show something saying that the email has being verified while I'm
  waiting for the callback.
  Is it the right way to go?

  Thanks in advance.



--

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




Re: Controlling desktop windows size and position.

2009-11-23 Thread Martin Trummer
you can't do that with html/javascript, so GWT can't help you

On 19 Nov., 18:35, PatrickJ patrickjsim...@gmail.com wrote:
 Is there and equivalent functional in GWT to VB's FindWindow,
 ShowWindow and MoveWindow?

 I would like to write a simple GWT application that would list all
 applications running on a Windows PC and have the ability to control
 the window's position attributes.

 Patrick

--

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




Re: Design Patterns

2009-11-23 Thread Martin Trummer
maybe you should ask a more detailed question

the GWT stuff is just an implementation of the corresponding pattern
with the same name
you'll find plenty of explanations for the patterns when you google
for them
or look it up in wiki
http://en.wikipedia.org/wiki/Command_pattern

I don't know what more one could say about this..

On 21 Nov., 23:58, Lúcio Camilo luciocam...@gmail.com wrote:
 But someone can xplain what?

 2009/11/20 Martin Trummer martin.trum...@24act.at

  yes

  On 19 Nov., 21:08, Lúcio Camilo luciocam...@gmail.com wrote:
   The component Composite and the object Command have something in common
  with
   the design patterns with same name?

  --

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



--

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




Re: How to handle image/gif response

2009-11-20 Thread Martin Trummer
Image img = new Image (GWT.getHostPageBaseURL() +serviceexample/
ImgRetrieve);
that's the way to go

ImgRetrieve should be a servlet that sends back the image
if it receives a get request

that's explained in the link of my last post

On 20 Nov., 12:40, zhangj5 jianzhan...@gmail.com wrote:
 Maybe I did not explain my question correctly.
 Actually, my application is to create a registered user login
 interface. Registered user has photo stored in DB (uploaded when
 registration ), and once user login successfully, his/her photo will
 be retrieved from DB and displayed, so using the combination of form
 submit and GWT is the only solution I have found, just wondering if
 there are any other techniques can be used in this case, as this is my
 fist GWT application.
 I had tried to display image by using
 preImage img = new Image( “google.com/intl/en_AL/images/
 logo.gif” );/pre
 ,which is working as expected.
 Since my image is stored in ServletOutputStream,
 I tried to usepreImage img = new Image (GWT.getHostPageBaseURL() +
 serviceexample/ImgRetrieve); /pre
 But image is not displayed.

 On Nov 19, 7:33 pm, Martin Trummer martin.trum...@24act.at wrote:

  if you only want to display an image there's no need for a form

  this might be useful:http://bit.ly/2Wgvtm

  On 19 Nov., 20:22, Martin Trummer martin.trum...@24act.at wrote:

   what are you trying to do?

   what is the form good for?
   does it upload the image and afterwards you want to display this
   uploaded image?

   On 19 Nov., 13:01, zhangj5 jianzhan...@gmail.com wrote:

Hi all,
I have a question about how to handle image/gif type response on
client side, any suggestion will be great.
There is a service which responds for retrieving image (only one each
time at the moment) from database. The code is something like,

JDBC Connection
Construct MYSQL query.
Execute query
If has ResultSet, retrieve first one {
image = rs.getBlob(img); //save image into Blob image, “img” is the
only entity in the image table.

}

Then,
response.setContentType(image/gif); //set response type
InputStream in = image.getBinaryStream();       //output Blob image to
InputStream
int bufferSize = 1024;  //buffer size
byte[] buffer = new byte[bufferSize];           //initial buffer
int length =0;
while ((length = in.read(buffer)) != -1) {//read length data from
inputstream and store into buffer
        out.write(buffer, 0, length);           //write into
ServletOutputStream}

in.close();
out.flush();            //write out

The code on client side

imgform.setAction(GWT.getModuleBaseURL() + serviceexample/
ImgRetrieve);

ClickListener {
OnClick, then imgform.submit();

}

formHandler {

        onSubmit, form validation

        onSubmitComplete
            ??? //handle response, and display image
        Here is my question, i had tried
        Image img = new Image(GWT.getHostPageBaseURL()
+serviceexample/ImgRetrieve);
        mg.setSize(300, 300);
        imgpanel.add(img);
        but i only got a non-displayed image with 300X300 size.

}

So, how should i handle the responde in this case?

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




Re: How to handle image/gif response

2009-11-19 Thread Martin Trummer
what are you trying to do?

what is the form good for?
does it upload the image and afterwards you want to display this
uploaded image?

On 19 Nov., 13:01, zhangj5 jianzhan...@gmail.com wrote:
 Hi all,
 I have a question about how to handle image/gif type response on
 client side, any suggestion will be great.
 There is a service which responds for retrieving image (only one each
 time at the moment) from database. The code is something like,

 JDBC Connection
 Construct MYSQL query.
 Execute query
 If has ResultSet, retrieve first one {
 image = rs.getBlob(img); //save image into Blob image, “img” is the
 only entity in the image table.

 }

 Then,
 response.setContentType(image/gif); //set response type
 InputStream in = image.getBinaryStream();       //output Blob image to
 InputStream
 int bufferSize = 1024;  //buffer size
 byte[] buffer = new byte[bufferSize];           //initial buffer
 int length =0;
 while ((length = in.read(buffer)) != -1) {//read length data from
 inputstream and store into buffer
         out.write(buffer, 0, length);           //write into
 ServletOutputStream}

 in.close();
 out.flush();            //write out

 The code on client side
 
 imgform.setAction(GWT.getModuleBaseURL() + serviceexample/
 ImgRetrieve);
 
 ClickListener {
 OnClick, then imgform.submit();

 }

 formHandler {

         onSubmit, form validation

         onSubmitComplete
             ??? //handle response, and display image
         Here is my question, i had tried
         Image img = new Image(GWT.getHostPageBaseURL()
 +serviceexample/ImgRetrieve);
         mg.setSize(300, 300);
         imgpanel.add(img);
         but i only got a non-displayed image with 300X300 size.

 }

 So, how should i handle the responde in this case?

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




Re: How to handle image/gif response

2009-11-19 Thread Martin Trummer
if you only want to display an image there's no need for a form

this might be useful:
http://bit.ly/2Wgvtm

On 19 Nov., 20:22, Martin Trummer martin.trum...@24act.at wrote:
 what are you trying to do?

 what is the form good for?
 does it upload the image and afterwards you want to display this
 uploaded image?

 On 19 Nov., 13:01, zhangj5 jianzhan...@gmail.com wrote:

  Hi all,
  I have a question about how to handle image/gif type response on
  client side, any suggestion will be great.
  There is a service which responds for retrieving image (only one each
  time at the moment) from database. The code is something like,

  JDBC Connection
  Construct MYSQL query.
  Execute query
  If has ResultSet, retrieve first one {
  image = rs.getBlob(img); //save image into Blob image, “img” is the
  only entity in the image table.

  }

  Then,
  response.setContentType(image/gif); //set response type
  InputStream in = image.getBinaryStream();       //output Blob image to
  InputStream
  int bufferSize = 1024;  //buffer size
  byte[] buffer = new byte[bufferSize];           //initial buffer
  int length =0;
  while ((length = in.read(buffer)) != -1) {//read length data from
  inputstream and store into buffer
          out.write(buffer, 0, length);           //write into
  ServletOutputStream}

  in.close();
  out.flush();            //write out

  The code on client side
  
  imgform.setAction(GWT.getModuleBaseURL() + serviceexample/
  ImgRetrieve);
  
  ClickListener {
  OnClick, then imgform.submit();

  }

  formHandler {

          onSubmit, form validation

          onSubmitComplete
              ??? //handle response, and display image
          Here is my question, i had tried
          Image img = new Image(GWT.getHostPageBaseURL()
  +serviceexample/ImgRetrieve);
          mg.setSize(300, 300);
          imgpanel.add(img);
          but i only got a non-displayed image with 300X300 size.

  }

  So, how should i handle the responde in this case?

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




Re: Problem: FormPanel / FileUpload - special characters and german umlauts

2009-11-18 Thread Martin Trummer
what does request.getCharacterEncoding() show?

if you use commons-file upload, you could try to manually set the
encoding
upload.setHeaderEncoding(encoding) -- to the same value you use in
your meta tag


On 18 Nov., 10:18, GWT-Newbie manuel.krann...@fun.de wrote:
 Thanks for your answer!

 My html file has the correct type and I am using the correct method on
 your form.
 In the Client, the special chars of the FormPanel items are still ok,
 before it's submitted. (e.g. Grüße)
 If I get the Strings of the submitted items in the servlet
 (item.getString()), the special chars are wrong. (Grüße - GrüÃ?e)

 I have no more idea to solve my problem...

 On 17 Nov., 15:31, Martin Trummer martin.trum...@24act.at wrote:

  check that your html file has the correct content type:
  meta http-equiv=content-type content=text/html; charset=UTF-8

  then put a breakpoint in your servlet and check if the special chars
  are still ok

  and make sure, to use the correct method on your form
  setMethod(FormPanel.METHOD_POST)

  On 13 Nov., 10:46, GWT-Newbie manuel.krann...@fun.de wrote:

   Hey there,

   using the FormPanel with the FileUpload widget, the strings from the
   TextBoxes and TextAreas of my FormPanel don't support some special
   characters and german umlauts.
   On the client-side everything is okay, but arriving at the server, the
   characters and umlauts (like ä ü ö) were replaced e.g. with s.th. like
   ü � ä ö ü and so on.
   My server-side will send eMails with those Strings and I would like to
   have them correctly.
   Can anyone of you guys help me? Would be great!

   Cheers!



--

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




Re: Problem: FormPanel / FileUpload - special characters and german umlauts

2009-11-18 Thread Martin Trummer
hm - works for me

maybe you should make a simple testapplication and post the
entry point class and a minimal version of your servlet

On 18 Nov., 13:20, GWT-Newbie manuel.krann...@fun.de wrote:
 Yes, I'm using commons-file upload.

 My meta tag is: meta http-equiv=content-type content=text/html;
 charset=UTF-8
 request.getCharacterEncoding() shows UTF-8
 upload.getHeaderEncoding() now also shows UTF-8

 But still getting the wrong result. -.-

 On 18 Nov., 11:40, Martin Trummer martin.trum...@24act.at wrote:

  what does request.getCharacterEncoding() show?

  if you use commons-file upload, you could try to manually set the
  encoding
  upload.setHeaderEncoding(encoding) -- to the same value you use in
  your meta tag

  On 18 Nov., 10:18, GWT-Newbie manuel.krann...@fun.de wrote:

   Thanks for your answer!

   My html file has the correct type and I am using the correct method on
   your form.
   In the Client, the special chars of the FormPanel items are still ok,
   before it's submitted. (e.g. Grüße)
   If I get the Strings of the submitted items in the servlet
   (item.getString()), the special chars are wrong. (Grüße - GrüÃ?e)

   I have no more idea to solve my problem...

   On 17 Nov., 15:31, Martin Trummer martin.trum...@24act.at wrote:

check that your html file has the correct content type:
meta http-equiv=content-type content=text/html; charset=UTF-8

then put a breakpoint in your servlet and check if the special chars
are still ok

and make sure, to use the correct method on your form
setMethod(FormPanel.METHOD_POST)

On 13 Nov., 10:46, GWT-Newbie manuel.krann...@fun.de wrote:

 Hey there,

 using the FormPanel with the FileUpload widget, the strings from the
 TextBoxes and TextAreas of my FormPanel don't support some special
 characters and german umlauts.
 On the client-side everything is okay, but arriving at the server, the
 characters and umlauts (like ä ü ö) were replaced e.g. with s.th. like
 ü � ä ö ü and so on.
 My server-side will send eMails with those Strings and I would like to
 have them correctly.
 Can anyone of you guys help me? Would be great!

 Cheers!



--

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




Re: Problem: FormPanel / FileUpload - special characters and german umlauts

2009-11-17 Thread Martin Trummer
check that your html file has the correct content type:
meta http-equiv=content-type content=text/html; charset=UTF-8

then put a breakpoint in your servlet and check if the special chars
are still ok

and make sure, to use the correct method on your form
setMethod(FormPanel.METHOD_POST)

On 13 Nov., 10:46, GWT-Newbie manuel.krann...@fun.de wrote:
 Hey there,

 using the FormPanel with the FileUpload widget, the strings from the
 TextBoxes and TextAreas of my FormPanel don't support some special
 characters and german umlauts.
 On the client-side everything is okay, but arriving at the server, the
 characters and umlauts (like ä ü ö) were replaced e.g. with s.th. like
 ü � ä ö ü and so on.
 My server-side will send eMails with those Strings and I would like to
 have them correctly.
 Can anyone of you guys help me? Would be great!

 Cheers!

--

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




Re: Starting a new thread result in AccessControlException

2009-11-13 Thread Martin Trummer
that is not related to GWT
it depends on what webserver/servicecontainer your application is
running on
e.g. Google App Engine won't let you create new threads

On 12 Nov., 10:42, y y...@cs.washington.edu wrote:
 When I try to start a new thread in a servlet, I get:
 java.security.AccessControlException: access denied
 (java.lang.RuntimePermission modifyThreadGroup)

 Any idea why is that and how can I fix it?

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




Re: MyClass is not a generic type; only generic types can be parameterized

2009-11-09 Thread Martin Trummer

just a guess: maybe somewhere else in the code you use
MyClassSomething someVar;

On Nov 6, 10:19 am, dinosaurus dinosau...@inbox.lv wrote:
 Hello,

 I have the following class which has not methods at all:

 public class MyClass extends LinkedListMyAnotherClass {

 }

 In GWT console and during GWT compilation I'm getting warnings like it
 is shown below.
 Could anybody comment what's the cause of the warnings and how to
 eliminate them?

 - GWT 1.7.1
 - Java   1.6

 Thanks in advance

 [WARN] 'mypackage.MyClass' is not a generic type; only generic types
 can be parameterized
 com.google.gwt.core.ext.typeinfo.BadTypeArgsException:
 'mypackage.MyClass' is not a generic type; only generic types can be
 parameterized
         at com.google.gwt.core.ext.typeinfo.TypeOracle.parseImpl
 (TypeOracle.java:835)
         at com.google.gwt.core.ext.typeinfo.TypeOracle.parse(TypeOracle.java:
 526)
         at com.google.gwt.core.ext.typeinfo.TypeOracle.parseTypeArgTokens
 (TypeOracle.java:934)
         at com.google.gwt.core.ext.typeinfo.TypeOracle.determineActualType
 (TypeOracle.java:784)
         at com.google.gwt.core.ext.typeinfo.TypeOracle.consumeTypeArgMetaData
 (TypeOracle.java:725)
         at com.google.gwt.core.ext.typeinfo.TypeOracle.consumeTypeArgMetaData
 (TypeOracle.java:637)
         at com.google.gwt.core.ext.typeinfo.TypeOracle.finish(TypeOracle.java:
 256)
         at com.google.gwt.dev.javac.TypeOracleMediator.addNewUnits
 (TypeOracleMediator.java:403)
         at com.google.gwt.dev.javac.TypeOracleMediator.refresh
 (TypeOracleMediator.java:417)
         at com.google.gwt.dev.javac.CompilationState.refresh
 (CompilationState.java:179)
         at com.google.gwt.dev.javac.CompilationState.init
 (CompilationState.java:93)
         at com.google.gwt.dev.cfg.ModuleDef.getCompilationState
 (ModuleDef.java:264)
         at com.google.gwt.dev.cfg.ModuleDef.getTypeOracle(ModuleDef.java:325)
         at com.google.gwt.dev.SwtHostedModeBase
 $SwtBrowserWidgetHostImpl.createModuleSpaceHost(SwtHostedModeBase.java:
 66)
         at com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.gwtOnLoad
 (BrowserWidgetIE6.java:73)
         at com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.invoke
 (BrowserWidgetIE6.java:161)
         at com.google.gwt.dev.shell.ie.IDispatchImpl.Invoke
 (IDispatchImpl.java:294)
         at com.google.gwt.dev.shell.ie.IDispatchImpl.method6
 (IDispatchImpl.java:194)
         at org.eclipse.swt.internal.ole.win32.COMObject.callback6
 (COMObject.java:117)
         at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
         at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1925)
         at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2966)
         at com.google.gwt.dev.SwtHostedModeBase.processEvents
 (SwtHostedModeBase.java:264)
         at com.google.gwt.dev.HostedModeBase.pumpEventLoop
 (HostedModeBase.java:557)
         at com.google.gwt.dev.HostedModeBase.run(HostedModeBase.java:405)
         at com.google.gwt.dev.GWTShell.main(GWTShell.java:140)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke
 (NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke
 (DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
--~--~-~--~~~---~--~~
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: Resize image

2009-11-09 Thread Martin Trummer

yes, that's a good idea

I use this aproach too
when the user uploads an image I create a small
thumbnail version  I also store the image dimensions.

wehn I then need to display an image on the clientside,
I will get the imagename and the dimensions from the
RPC call and then let the client side code decide
which version of the image to use (dependant on the
desired display size)

On Nov 7, 9:26 am, Dariusz darius...@gmail.com wrote:
 Thanks Martin for the hint! Now it's working. As usual, the devil is
 in the details...

 Using the loadHandler, the image (in my case my thumb) is being
 resized if image is not in the cache. If you refresh the site, the
 loadHandler won't be executed. That means, resizing the image has to
 be in two places.

 1. inside the loadHandler
 2. outside the loadHandler, in case it's reading from cache...

 Now, I'm thinking if this approach is the appropriate one... maybe I
 should shrink the images already when saving to the database for
 performance reason.

 On Nov 6, 10:50 am, Martin Trummer martin.trum...@24act.at wrote:

  well and one alternative, that might sometimes be usefull is,
  to transfer the imagename and the imagesize to the client
  then you already know the dimensions when you create the image

  On Nov 6, 10:49 am, Martin Trummer martin.trum...@24act.at wrote:

   try to use a load handler

   the getWidth() methods comment says:
     Gets the width of the image. When the image is in the unclipped
   state,
     the width of the image is not known until the image has been loaded
     (i.e. load event has been fired for the image).

   if you just create the Image object and call getWidth() immediately,
   it cannot know it's width - because the browser has not even loaded it
   yet

   It might sometimes work, for images, that the browser already has
   in it's cache.

   I didn't actually try it, but it sounds reasonable.

   On Nov 5, 1:38 pm, Dariusz darius...@gmail.com wrote:

I have an image lets say 600x800 pixel. Now I want to resize downit to
60x80 pixel.

If I use setWidth or setPixelSize( width, height ), then it sometimes
it does it correctly and sometimes not. I've got this problem in both
IE  FF.

Do I need to do it within a  loadHandler()? Or does anyone has a
better solution for it?

My approach:

Image thumb = new Image( C:\path\to\image.jpg );
int w = thumb.getWidth();
int h = thumb.getHeight();

int newH = 60;
int newW = ( w * newH ) / h;
if( h  newH ) {
   thumb.setPixelSize( newW, newH );

}

Thanks in advance!


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



RichTextArea gotchas

2009-11-03 Thread Martin Trummer

If you are using or are planing to use GWTs RichTextArea (or GXTs,
which is basically the same), then the following blog post may be
interessting for you
http://martin-trummer.blogspot.com/2009/11/wysiwyg-gotchas.html

I am already keen to get to know your point of view about
 * this topic
 * the problems, that I've outlined
 * any proposals, improvements or
 * or better solutions than mine
--~--~-~--~~~---~--~~
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: RichTextArea gotchas

2009-11-03 Thread Martin Trummer

yes, this would eliminate the unification-step

but some of the problems of integrating an external editor
(like my example of using TinyMce) will remain:
 * not the native GXT look and feel
   e.g. changing the GXT theme will not change the editors look
 * integrating an editor to work nicely with GXT-Form-Layouts
   is tricky and sometimes the layout is completely messed up
 * the communication between GXT-Form-Fields needs do be done

I guess most of these problems can be solved (or worked around)
if you dig deep enough into GXT

however, it is of course a nice alternative for anyone who is
using plain GWT


On Nov 3, 12:53 pm, Thomas Broyer t.bro...@gmail.com wrote:
 On 3 nov, 12:25, Martin Trummer martin.trum...@24act.at wrote:

  If you are using or are planing to use GWTs RichTextArea (or GXTs,
  which is basically the same), then the following blog post may be
  interessting for 
  youhttp://martin-trummer.blogspot.com/2009/11/wysiwyg-gotchas.html

  I am already keen to get to know your point of view about
   * this topic
   * the problems, that I've outlined
   * any proposals, improvements or
   * or better solutions than mine

 Use CKEditor? from what I've read (haven't used it yet), you have a
 total control over the serialization (at the expense of not relying
 on the browser's innerHTML) and it already unifies the HTML produced
 by the rich text area.
--~--~-~--~~~---~--~~
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: RichTextArea gotchas

2009-11-03 Thread Martin Trummer

yes, this would eliminate the unification-step

but some of the problems of integrating an external editor
(like my example of using TinyMce) will remain:
 * not the native GXT look and feel
   e.g. changing the GXT theme will not change the editors look
 * integrating an editor to work nicely with GXT-Form-Layouts
   is tricky and sometimes the layout is completely messed up
 * the communication between GXT-Form-Fields needs do be done

I guess most of these problems can be solved (or worked around)
if you dig deep enough into GXT

however, it is of course a nice alternative for anyone who is
using plain GWT


On Nov 3, 12:53 pm, Thomas Broyer t.bro...@gmail.com wrote:
 On 3 nov, 12:25, Martin Trummer martin.trum...@24act.at wrote:

  If you are using or are planing to use GWTs RichTextArea (or GXTs,
  which is basically the same), then the following blog post may be
  interessting for 
  youhttp://martin-trummer.blogspot.com/2009/11/wysiwyg-gotchas.html

  I am already keen to get to know your point of view about
   * this topic
   * the problems, that I've outlined
   * any proposals, improvements or
   * or better solutions than mine

 Use CKEditor? from what I've read (haven't used it yet), you have a
 total control over the serialization (at the expense of not relying
 on the browser's innerHTML) and it already unifies the HTML produced
 by the rich text area.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Compiler: Why Lazy loading in the Client-Package?

2009-10-29 Thread Martin Trummer

you should read DevGuideSerializableTypes to understand what's going
on:
http://tinyurl.com/yk6cfnn

when you somehow refer to the class in the client-app, GWT compiler
does (must) include it:  your problem is the serialization of the
class

On Oct 28, 12:19 pm, gwtfanb0y siegfried.b...@googlemail.com wrote:
 I have encountered an annoying issue with the GWT-Compiler. It seems
 that there is some kind of lazy loading of classes which have
 'IsSerializable' implemented.
 I have a Model-Class - implementing 'IsSerializable' - like this:

 -
 package com.xxx.client.model;

 import com.google.gwt.user.client.rpc.IsSerializable;

 public class MyLazyTestModel implements IsSerializable {

   private String test = test;

   private static final long serialVersionUID = 2249512603071211875L;

   public MyLazyTestModel(String str) {
     test = str;
   }

   public MyLazyTestModel() {
   }

   public String getTest() {
     return test;
   }}

 -

 When i am now in the ServiceImpl-Class, and i want to add
 'MyLazyTestModel ' to a Map included in an other Model, i get errors
 like this:

 -
 Caused by: com.google.gwt.user.client.rpc.SerializationException: Type
 'com.xxx.client.model.MyTestModel' was not included in the set of
 types which can be serialized by this SerializationPolicy or its Class
 object could not be loaded. For security purposes, this type will not
 be serialized.
         at
 com.google.gwt.user.server.rpc.impl.StandardSerializationPolicy.validateSerialize
 (StandardSerializationPolicy.java:83)
         at
 com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize
 (ServerSerializationStreamWriter.java:591)
         at
 com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject
 (AbstractSerializationStreamWriter.java:129)
         at com.extjs.gxt.ui.client.data.RpcMap_CustomFieldSerializer.serialize
 (RpcMap_CustomFieldSerializer.java:37)
         ... 72 more
 

 ---
 SCHWERWIEGEND: dispatcher: ERROR: The serialization policy file '/
 myportal/68EC899B83CE3F6734F2C89A84927232.gwt.rpc' was not found;
 did you forget to include it in this deployment?

 SCHWERWIEGEND: dispatcher: WARNING: Failed to get the
 SerializationPolicy '68EC899B83CE3F6734F2C89A84927232' for
 module 'http://localhost/myportal/';a legacy, 1.3.3 compatible,
 serialization policy will be used.
 You may experience SerializationExceptions as a result.
 ---

 Ok, when i add a dummy RPC with MyLazyTestModel as the returntype, the
 application is working.

 -
 void getMyLazyTestModel(AsyncCallbackMyLazyTestModel async);
 -

 So i think the compiler is throwing away classes which implements
 'IsSerializable' when they are not really visible for it. Storing
 MyLazyTestModel into a Map makes it 'invisible' to the compiler
 because the compiler can (or is) not analyze the map correctly. In my
 opinion this is wrong, the compiler should add ALL files inside the
 Client-Package into the SerializationPolicy, and not only these who
 are visible while they are used.
--~--~-~--~~~---~--~~
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 Unlock Locked iPod

2009-10-13 Thread Martin Trummer

AFAIK, GWT can't do that

Forum wrote:
 How To Unlock Locked iPod http://bit.ly/hddpp http://bit.ly/hddpp How
 To Unlock Locked iPod
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



RichText: inconsistent output on different browsers

2009-10-08 Thread Martin Trummer

I just noticed, that the RichtText editor produces different output
for the same actions in different browsers:
you can try it at: http://examples.roughian.com/index.htm#Widgets~RichTextArea

Example: write a word, select it, click 'Toglle Bold' button, will
produce:
* Firefox 3.5.2, Chrome 3.x
  span style=font-weight: bold;test/span
* Opera 10.00
  STRONGtest/STRONG
* Iron 2.0.178, Chrome 4.x
  btest/b

This makes it very difficult to implement consitent logic for checking
the richt-text content (e.g. XSS check, custom transormations, ..)
So: Is there a way to configure the RichText Area to always produce
the same output (e.g. b?)

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



how to reset the values of a formpanel in GWT1.5?

2009-08-13 Thread Martin Trummer

I want to clear all input that the user has already made in a form
panel.
How can I do that in GWT1.5?

I'm sure it's very simple, but I just can't find the proper function...
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



ClassCastException only in Chrome and OBF mode

2009-07-21 Thread Martin Trummer

I get a ClassCastException on some of my RPC only, when the
application runs in Chrome and only when it's compiled in (OBF)
obfuscated mode.

When I compile it in DETAILED mode, everything works fine.
The same RPCs in other browsers also work fine (even in OBF mode).

Now I'm quite stuck, because I have no idea where to start searching:
 * the log files of the backend and the webserver-logs do not show any
exceptions/errors when this happens: this is what I excepted, because
the exception only occurs in chrome - so it's a client side issue
 * the only information I have is, what I can see on the Java-Script
Console of Chrome - thowable.toString() prints:
   java.lang.ClassCastException: null

so, unfortunaltely the class-cast-exception has no message telling me
which class it tries to cast or which one is expected

any ideas where to look / what to do?

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



IE: history token lost on http -- https redirect

2009-06-03 Thread Martin Trummer

we have some public (plain HTML) pages, that are not ssl encrypted
these pages have (relative) links to a GWT application
some of those links in the public area use history tokens, to open
certain views of the GWT application: so you click the link, then
http:///secure/GWTApp.html#sometoken is called
the webserver notices that this resource is secured an sends a
redirect to https
then the browser requests https:///secure/GWTApp.html#sometoken

that works fine in all browsers, except...
you'll never guess it
...here it comes:
Internet Explorer (tested in IE6 and IE7)

the only workarounds I can think of:
 * use absolute URLs in the public pages:
   a href=https://my.domain.com/.../secure/GWTApp.html#sometoken
   I don't like that, because the domain is different for the
development/test/productiontest servers
 * I could use a special URL parameters to wrap the historytoken
  a href=./secure/GWTApp.html?historyToken=sometoken
  and when the application starts I could implement some magic to
update the history

maybe anyone knows a more elegant way to solve this?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to 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: Hosted Mode crashes when embedding applet

2009-02-19 Thread Martin Trummer

I found some related tickets some time ago:
* gwt ticket: 
http://code.google.com/p/google-web-toolkit/issues/detail?id=283
* swt ticket: https://bugs.eclipse.org/bugs/show_bug.cgi?id=59506
* java ticket: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6587166

On Feb 18, 9:56 pm, DAve smith.davi...@gmail.com wrote:
 Thanks!

 Is there a bug filed with Sun or Google that I can track?

 El Mentecato Mayor wrote:
  Yes, this is a known problem. Hosted mode doesn't support applets (not
  running a real html/javascript page), so you'll have to test your
  applet integration on web-mode only.

  I do something like this:

  if (GWT.isScript()) {   // running on web mode
              applet = new AppletPanel();
  }
  else {  // running on hosted mode
             applet = // new Dummy panel such as SimplePanel();
  }

  so that you can test evrything else in hosted mode, and only go to web
  mode when you really need to test something on the applet or its
  interactions with your other widgets.

  On Feb 16, 8:54 am, DAve smith.davi...@gmail.com wrote:
   I'm writing a GWT app that embeds a Java applet (for legacy reasons).
   Whenever I try to run it in Hosted Mode, the host browser crashes, so
   I have to compile it and load it in a real browser, slowing down my
   development process and preventing me from using the step-through
   debugger.

   Is this a known problem? Is there a workaround?

   Thanks,
   Dave
--~--~-~--~~~---~--~~
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: Microsoft Picture Manager

2009-02-02 Thread Martin Trummer

 So things related to Javascript and HTML have nothing to do with GWT?
AFAIK: If you can do it with HTML and JS, you can also do it with GWT.

 I insist, how do I open a, for example MS Word, from a GWT
 instruction?
If you can get this to work, using HTML and JS only, it will also work
with GWT.

But your Problem is not GWT specific at all. It's more a general
Problem:
How to open an Application on the Clientside in a Webbrowser?
So you should try to get an answer to this in an appropriate forum or
user group.
If you have the answer for this, people here will surely help you if
you have problemes implementing it in GWT.

my 2 cents to your original question:
How to open an Application on the Clientside in a Webbrowser?
I don't think that you can force a browser to open a file in an
application of your choice.
e.g. in Firefox I can select which application to use dependant on the
filetype: e.g. open .mp3 with quicktime, ..
--~--~-~--~~~---~--~~
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: Clear all html tags from a page

2009-02-02 Thread Martin Trummer

here's what I do:
I put all stuff that I want to hide after the app. start into a div:
e.g. called loadingdiv (because I use it to show a loading message).
the first thing I do in my entrypoint, is to hide the loading div:
e.g.
RootPanel.get(loadingdiv).setVisible(false);
then I build my components and widgets and add this to the rootPanel:
   RootPanel.get().add(viewport);

hope it helps..

On Feb 2, 11:51 am, bond daniele.re...@gmail.com wrote:
 Sorry but it doesn't work.

 This is the page .html:

 body
 script language=javascript src=Main.nocache.js/script
 !--iframe id=__gwt_historyFrame style=width:0;height:0;border:
 0/iframe--
 div id=bannercenterimg src=it.pianetatecno.pianetabarche.Main/
 img/sfondo.png alt= width=950 height=130 //center/div
 div id=menu
         ul id=ulmenu
         /ul
         div id=search
         /div
 /div
 hr /

 !-- start page --
 div id=page
         !-- start content --
         div id=content
         /div
         !-- end content --
         !-- start sidebar --
         div id=sidebar
                 ul
                         li
                                 h2 id=titlebox1/h2
                 div id=box1/div
                         /li
                         li
                                 h2 id=titlebox2/h2
                 div id=box2/div
                         /li
             lidiv id=box3/div/li
             lidiv id=box4/div/li
                 /ul
         /div
         !-- end sidebar --
         div style=clear: both;nbsp;/div
 /div
 !-- end page --
 div id=footer
         p class=legal id=legal/p
         p class=credit id=credit/p
 /div
 /body

 I'd like to remove ALL HTML CODE inside body (exception tag script).
 Maybe I've to use DOM.removeChild() or something similar?

 Thanks

 On 2 Feb, 11:43, rudolf michael roud...@gmail.com wrote:

  RootPanel.get(id).removeFromParent();

  On Mon, Feb 2, 2009 at 12:41 PM, bond daniele.re...@gmail.com wrote:

   Thanks for your reply. The problem is that RootPanel.get(Id).clear
   (); doesn't not delete the tag from the page but only remove widgets
   inside the tag.
   The problem is that I've not widget inside the tag but other tag with
   css style attached.

   Any ideas?

   Thanks

   On 2 Feb, 11:32, rudolf michael roud...@gmail.com wrote:
RootPanel.get().clear();
you can always get any div Id also and clear it. by using
RootPanel.get(Id).clear();

On Mon, Feb 2, 2009 at 12:31 PM, rudolf michael roud...@gmail.com
   wrote:
 RootPanel.get().celar();

 On Mon, Feb 2, 2009 at 12:29 PM, bond daniele.re...@gmail.com wrote:

 Hi,
 I've a simple problem. I've mi page.html where there are some tags:

 div id=tag1div id=tag2div id=tag3/div/div/div

 and so on. I'd like to remove ALL tags inside the body so that I 
 can
 clear the page and then add my widget.

 Thanks for any suggestion

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



Re: how to set signature for JSNI?

2009-02-02 Thread Martin Trummer

I guess you want to call the static method A.checkDup() from your java
code.
if this is true, in your java code, you would simply call the method,
as if it were a normal java-method:
e.g.
class A {
  private static native Boolean checkDup(String id, int index)/*-{
..
  }-*/;

  private someJavaFunctionCallingThePrivateStaticJSNIMethod() {
Boolean result = A.checkDup(myString, 1);
// since this is in the same class, you could omit the classname
// Boolean result = checkDup(myString, 1);
...
  }
}

On Jan 30, 4:19 pm, Alex Luya alexander.l...@gmail.com wrote:
 I hava a JSNI method within Class A:
 --
 private static native Boolean checkDup(String id, int index)/*-{
         ..}-*/;

 --

 when I call this method in another method in the same Class(Class A):
 --
 if(this.UserSelector.checkDup(Ljava/lang/String;I)Z(id, index)== true)
                         }

 --

 I got an error message:

 [ERROR] file:/D:/workspace/gwt-windows-1.5.3/samples/C3CRM-Statistic/
 src/com/tsolution/c3crm/client/UserSelector.java(108, 49): missing )
 after argument list
 com.google.gwt.dev.js.JsParserException: missing ) after argument list
 --

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



Re: GWT Remember username and password

2009-01-09 Thread Martin Trummer

what I do is: have a hidden html-form in my html page:
div id=hiddenLoginDiv style=display:none 
form id=hiddenLoginForm  method=post action=dummy.html
onsubmit=javascript:return false;
input id=username name=username type=text size=20
maxlength=100 /
input id=password name=password type=password size=20
maxlength=100 /
input id=hiddenLoginFormSubmitButton type=submit /
/form
/div

in my entry-point I simply read those values and set them into my gwt-
text and gwt-password fields.
if the html values are empty, my gwt-fields will also be empty (this
is always the case when the user enters the site for the first time).
when the user then clicks my login-button:
 * I copy the values from my gwt-fields back to the html-fields in the
hidden form
 * then I call click on the hidden form's submit button (which will
NOT submit the form, see onsubmit())
   this triggers the browsers passwordmanager
 * then I proceed with my own login-routine on the server

NOTES:
 * I am not sure, that this will work in all browsers password
managers - I think some browsers require the form to really be
submitted
   anyway: it works well in firefox 3
 * 
http://code.google.com/docreader/#p=google-web-toolkit-incubators=google-web-toolkit-incubatort=LoginSecurityFAQ
 * to trigger the form submit:
/**
 * will trigger the submit action of the dummy login form for
password managers
 * the form will not be submitted, because the onSubmit function will
always return false.
 * note: calling form.submit() instead of calling button.click() will
not call the onSubmit
 *   function but submit the form immediately.
 */
public static native void submitHiddenLoginForm() /*-{
$doc.getElementById('hiddenLoginFormSubmitButton').click();
}-*/;


On Jan 8, 12:28 pm, Ice13ill andrei.fifi...@gmail.com wrote:
 I'm trying to remember the username and password in a gwt login
 applicaion.
 I found this:
 1. adding a textbox and passwordbox in the html file

 input type=text id=1 name=text/
 input type=password id=2 name=password/

 (i read that if i add those in the html file, the browser will
 automatically remember the values).

 2. DOM.getElementById for each of them

                 m_tbUsername = TextBox.wrap(DOM.getElementById(1));
                 m_tbUsername.addKeyboardListener(this);

                 m_tbPassword = PasswordTextBox.wrap(DOM.getElementById(2));
                 m_tbPassword.addKeyboardListener(this);
 I also added a Login button with a ClickListener

 Problem:
 neither of those above (textbox, passwordbox, button) will respond to
 key or click actions

 So...
 public void onClick(Widget sender) {
                 Window.alert(b);}

 does nothing

 What's the problem ?
 Can somebody tell me another method in gwt for remembering username
 and password ? (a link or tip )
--~--~-~--~~~---~--~~
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: Internationalization not working for all strings

2008-12-16 Thread Martin Trummer

just some thoughts:
 * maybe there are some hidden characters, that your editor does not
show
 * maybe the translation has been copied from the default and it just
seems not to translate
 * you could post some of those random strings here - maybe this helps
anyone to get a better idea about the problem

On Dec 16, 5:33 pm, Owz d.owainwilli...@gmail.com wrote:
 I'm doing some localization within my application written with GWT
 1.5.3  GWT-Ext 2.0.5. I have around 6 different properties files and
 I use the i18nCreator command-line tool to create the interfaces. I've
 got 2 locales, English as default in the original properties files and
 French in fr_FR.properties files.

 All text is shown fine when using the default properties files and
 most are shown fine when running in the French locale except for a few
 random strings. These strings continue to show in english for no
 apparent reason. It's not any single properties file that's causing
 problems as some stings in a single properties file display fine but
 others don't. These strings don't have any odd characters and eclipse
 has been set to use uft-8.

 Does anyone have any suggestions as to why these random strings could
 be reverting back to the default string? I can't seem to fins much by
 searching (mainly because I'm not sure what to search for!).

 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: Annoying issue, integrating with Hibernate

2008-12-09 Thread Martin Trummer

you should take a look at:
http://noon.gilead.free.fr/gilead (formerly known as hibernate4gwt)


On Dec 7, 10:54 am, LoneWolf [EMAIL PROTECTED] wrote:
 Hey,
 Our application is using Hibernate 3 as the persistence mechanism, and
 of course we have one-to-many relationship.
 The problem is when trying to pass a domain object that has a list of
 lazy initialized objects back to the browser, I got this exception:
 
 Caused by: com.google.gwt.user.client.rpc.SerializationException: Type
 'org.hibernate.collection.PersistentSet' was not included in the set
 of types which can be serialized by this SerializationPolicy or its
 Class object could not be loaded. For security purposes, this type
 will not be serialized.
 
 Yes, I understand this exception but to overcome this issue?
 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: How to run signed applet in hosted mode and other inside

2008-12-01 Thread Martin Trummer

ad 1) http://code.google.com/p/google-web-toolkit/issues/detail?id=283

On Nov 28, 10:20 am, avd [EMAIL PROTECTED] wrote:
 hello sir,
 I have two problem in gwt:
 1..How to run signed applet in hosted mode.i put all class files of
 applets in public folder and change the html file that exist in public
 folder by putting these lines applet code=class name name=applet
 name archive=jar file name /applet and i also make a javascript
 file in that i wrote a function that function called the java function
 that lives in applet class files,when i run applet through html file
 by simple clicking in www folder then it works fine but when i run
 through hosted mode it gives error:cannot load class sun/plugin/
 JavaRunTime.the bridge was installed at c:\PROGRA~1\JAVA\JRE1.6.0
 but the class is not there modify the registry key to reflect the new
 bridge location.something like this...
                    how can i resolved this problem??

 2..Actually my project has some programs that stored images three
 folders named redim, scaled, and temp that stroed the images after
 features calculation,when i run it in hosted mode it works fine but
 when i create a war file through eclipse and deploy it at tomcat in
 webapps,then i find that in project folder there is no such folder i.e
 redin, scaled and temp and my program does not work properly.
      so please suggest me where i make these three folder in webapps.

 please give me solution i am highly thankful to you...

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



Re: Pass an applicationSessionId in each rpc request

2008-12-01 Thread Martin Trummer

isn't this very insecure (passing the sessionId via URL)?
AFAIK: the URL is always readable (even if you use SSL) and thus it
would be very easy to intrude the users session

On Nov 29, 3:52 am, Joe Cole [EMAIL PROTECTED] wrote:
 You could just change the request urls:

 target.setServiceEntryPoint(GWT.getModuleBaseURL() + / + service
 +;sessionid=+sessionId);

 I haven't tried it, but assume it would work. You would have to pull
 out the appropriate information on the server side.
 Joe

 On Nov 28, 5:35 am, seb2nim [EMAIL PROTECTED] wrote:

  Hi everyone.

  I was playing with cookie and session and i found i cant open two
  different tabs on firefox with twice the same app... so i think i'm
  doing something wrong : I was thinking there would be two different
  httpSessions but apparently not.

  the problem is i actually keep some user information in httpsession...
  So two apps shares the same information wich is, really bad.

  I decided to generate a unique 'application level session id' at login
  so that i can manage multiple in one httpsession.

  Drawback is that once passed to client-side code, i need to pass it on
  every rpc call... and i'm a lazy guy... I dont want to refactor each
  method signature...

  As RPC mecanism is now improved in GWT1.5 :
  The first is that asynchronous interface methods can now return the
  underlying HTTP request object (http.client.Request) so you can access
  and tweak it as necessary for your application needs before sending it
  off through RPC. Asynchronous interface methods can now also return
  void or http.client.RequestBuilder objects.

  I think i can tweak my calls to append the appSessId in header or
  something like that. Did anyone already do this?

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



Re: Dynamically generating meta-tag for specifying locale

2008-11-05 Thread Martin Trummer

here's what we do:
very simple java script (in the header section of the .html file)
of course the accept-language approach is much better and I also
consider implementing that approach: some day when I have some spare
time :)

...
script type=text/javascript
var lang=en;
if (navigator.language.indexOf(en)  -1) {
  lang=en;
} else if (navigator.language.indexOf(de)  -1) {
  lang=de;
}
document.write(meta name='gwt:property' content='locale=+lang
+');
/script
script type=text/javascript language=javascript
src=com.tfact.TFAct.nocache.js/script
/head

On Nov 4, 8:29 pm, prody [EMAIL PROTECTED] wrote:
 Thank you all for your reply.
 I'm trying to use GWT incubator code. I could not find a working
 example.

 The documentation says-

   // Per-request code for the host html page
   String locale =
 localeMatcher.findBestMatch(request.getHeader(Accept-language));
   // Store the selected locale in the host html page to be served, via
   // meta name='gwt:property' content='locale=locale'
   // Be sure to include a Vary: Accept-language header in the
 response.

 Just by adding  meta name='gwt:property' content='locale=locale'
 into html host page and then setting locale =es on server side
 doesn't seem to work.

 Has anyone been able to resolve this issue? Could you please provide a
 working example(using jsp in host page or gwt incubator??

 Thanks !

 On Nov 4, 5:53 am, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

  I think that jsp is the better way. Just rename gwt html file to a jsp
  file in which add some java code. And on client you should access the
  jsp file.

  rashmi wrote:
   Hi all,
   I'm new to GWT and I'm trying to implement GWT static string
   internationalization
   I understand that in order to specify a locale at run time you need to
   use meta tag or rewrite URL.

   If I add locale=xx in the meta tag or in the URL as below, I can see
   the string internationalization working in my application.
   meta name=gwt:property content=locale=de
   or
  http://www.example.org/myapp.html?locale=de

   But, I would like to dynamically generate the meta tag to set locale
   at run time based on the client's browser locale. How to I change the
   meta tag dynamically to use client's locale settings? Most browsers
   send an Accept-Language header - is there any way in GWT to use that
   information to dynamically generate the meta-tag?

   I would really appreciate any reply.

   Regards,
   Rashmi- Hide quoted text -

  - Show quoted text -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Image LoadListener: onError not called for HttpServletResponse.SC_NOT_FOUND

2008-10-23 Thread Martin Trummer

this happens in hosted mode and webmode (FF3.0.3)

On Oct 22, 7:00 pm, Martin Trummer [EMAIL PROTECTED] wrote:
 hi,

 I have an imageServlet that returns HttpServletResponse.SC_NOT_FOUND
 if it cannot find the requested image.
 On the client side I use an Image element with an attached
 LoadListener.
 But even when the servlet returns HttpServletResponse.SC_NOT_FOUND,
 the onLoad() method will be called and not the onError() method.

 What is my servlet expected to return, so that the onError() method
 will be invoked?

 note: I tried the same with an image file; that means: an URL to the
 servers file system (and not to my servlet)
 in this case it works as expected: when the image exists, onLoad() is
 called, when it doesn't exist onError() is called.

 cheers, martin
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Image LoadListener: onError not called for HttpServletResponse.SC_NOT_FOUND

2008-10-22 Thread Martin Trummer

hi,

I have an imageServlet that returns HttpServletResponse.SC_NOT_FOUND
if it cannot find the requested image.
On the client side I use an Image element with an attached
LoadListener.
But even when the servlet returns HttpServletResponse.SC_NOT_FOUND,
the onLoad() method will be called and not the onError() method.

What is my servlet expected to return, so that the onError() method
will be invoked?

note: I tried the same with an image file; that means: an URL to the
servers file system (and not to my servlet)
in this case it works as expected: when the image exists, onLoad() is
called, when it doesn't exist onError() is called.

cheers, martin
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Norton 360 slows GWT app?

2008-10-16 Thread Martin Trummer

FYI: I found those 2 interessting sites:
http://mail.google.com/support/bin/answer.py?answer=80446topic=12780
http://shaunmccarthy.wordpress.com/2007/02/14/symmantec-virus-definitions-slow-websites-with-javascript-significantly/

On Oct 15, 11:45 am, Joe Cole [EMAIL PROTECTED] wrote:
 We had huge issues with Norton at one installation.
 I think there is a setting to tell it to stop real time scanning of
 javascript output - that's probably what's causing the issue. We found
 the best explanation of these problems was in gmails troubleshooting,
 where it tells you how to disable and add exceptions for most
 popupblockers/security suites.
 Also, use firebug + ethereal to check it isn't doing things to your
 html/js. It added some code to ours that we could use to detect if
 norton was installed, and then asked them to add the exceptions.

 Joe

 On Oct 15, 3:32 pm, makoki [EMAIL PROTECTED] wrote:

  Can't find an explanation about it and hope anyone can tell me
  something, using Norton 360 in a Windows Vista environment seems to be
  slowing down GWT app incredibly.
  The app has been tested in different OS and browsers (MAC/WinXP/Vista/
  FF3/Safari/ie6/ie7) but it seems to slow down when Vista/Norton 360 is
  activated.
  Did anyone found the same problem?
  Thx
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Norton 360 slows GWT app?

2008-10-15 Thread Martin Trummer

what exactly is slow?
* the time it needs to load the app
* the app itself during execution?


On Oct 15, 4:32 am, makoki [EMAIL PROTECTED] wrote:
 Can't find an explanation about it and hope anyone can tell me
 something, using Norton 360 in a Windows Vista environment seems to be
 slowing down GWT app incredibly.
 The app has been tested in different OS and browsers (MAC/WinXP/Vista/
 FF3/Safari/ie6/ie7) but it seems to slow down when Vista/Norton 360 is
 activated.
 Did anyone found the same problem?
 Thx
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



confusion about gwt-tmp

2008-09-29 Thread Martin Trummer

when I start the gwt-compiler I can specify the -out parameter.
This output directory also contains following dirs:
* .gwt-tmp
* myModule
* myModule-aux

I could not find the purpose of the .gwt-tmp directory in the docs.
However, I think it's only needed by the gwt-compiler during the
compilation process, because all files in this directory also show up
in the myModule directory
(except for the files in compilations, but I think those relate to the
ALPHA.cach.html files in the myModule dir)

If the above is true, I'd like to specify a separate location for .gwt-
tmp much like the -gen switch spedifies a separate location for
the .generated directory.
Is this possible?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: problem with multiple fileupload in GWT 1.5

2008-09-24 Thread Martin Trummer

seems, that you are setting the name twice for fileUploadDataset.
the second one should be fileUploadMetadata .

On Sep 23, 6:11 pm, Erik van Ingen [EMAIL PROTECTED] wrote:
 In GWT 1.5 I have an implementation 
 like:http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/g...

 The difference is that I have 2 FileUpload entries, instead of 1:
 final FileUpload fileUploadDataset = new FileUpload();
 fileUploadDataset.setName(fileUploadDataset);
 verticalPanel.add(fileUploadDataset);

 final FileUpload fileUploadMetadata = new FileUpload();
 fileUploadDataset.setName(fileUploadMetadata);
 verticalPanel.add(fileUploadMetadata);

 On the server I only receive 1 file (the first). This was working fine
 in GWT 1.4 but not in GWT 1.5.

 Any idea what could be my mistake? Or is this simply just a bug in GWT
 1.5?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Sharing the localization code between client and server

2008-09-23 Thread Martin Trummer

Hi,

I am also interested in this.

Our approach is to write the texts into the properties files and then
use the GWT-i18n tool to generate the interface-files.
Of course this is not the best thing to do, because all the arguments
will be strings...

Maybe another approach would be to extend the GWT-i18n tool, which
already does the properties file parsing and creates the interface
file.
I have not looked at this tool yet, but maybe it can be extended to
generate another file for the backend, that implements the interface
methods and builds the messages from the ResourceBundle.

regards, martin

On Sep 22, 12:02 pm, Lothar Kimmeringer [EMAIL PROTECTED] wrote:
 Dobes schrieb:

  Hm, I see.  But would I be able to use GWT.create(...) to create the
  Constants subclass, and have it honor my @DefaultStringValue()
  annotations?

 I'm using GWT 1.4 here and haven't migrated to 1.5, yet.
 Using GWT.create will be difficult on the server-side, because
 the Locale can be different for every request, so you need
 a second parameter. Using ResourceBundle on the other side allows
 a similar call:

 ResourceBundle rb = 
 ResourceBundle.getBundle(AdminToolsI18NConstants.class.getName(), loc);

  I suppose not, so maybe I'd have to come up with some kind of clever
  factory scheme which uses GWT.create in client code and whatever my
  own implementation is in server code.

 You can implement your own version of ResourceBundle, that is
 reading in the property-files and use reflection on the interface
 to get the annotations. With Proxy-classes it should also be possible
 to create something similar to GWT.create.

 If I have very much time, I'd might be able to program something
 like this, but you shouldn't wait for that, at the moment my spare
 time is about zero ;-)

 Regards, Lothar
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: RichTextToolbar

2008-09-19 Thread Martin Trummer

+1 from me

On Sep 19, 4:52 am, Michael Neale [EMAIL PROTECTED] wrote:
 Is there any reason why RichTextToolbar is not including as part of
 GWT but is only as a sample ? (in the Showcase project)?

 Shouldn't this really be part of GWT itself, I mean the text area is
 not terribly helpful without it, and it seems a bit odd to create it
 each time (it is a bit tedious).
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: JSNI method '@com.google.gwt.dom.client.OptionElement::setLabel(Ljava/lang/String;)'

2008-09-16 Thread Martin Trummer

looks like a bug to me

On Sep 15, 6:33 pm, jchimene [EMAIL PROTECTED] wrote:
 Hi,

 I'm seeing the following message:
 [WARN] JSNI method
 '[EMAIL PROTECTED]::setLabel(Ljava/lang/
 String;)' returned a value of type string but was declared void; it
 should not have returned a value at all

 Is this a known issue or should I file a bug?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: HTML-Widget ignoring some tags?

2008-08-29 Thread Martin Trummer

this should explain why the ext guys reset the styles:
http://extjs.com/forum/showthread.php?t=8907

BTW: does anyone know how to format links in this fourm or where to
find help on formatting?

On Aug 14, 5:16 pm, Ian Bambury [EMAIL PROTECTED] wrote:
 Also, you have to ask yourself what right GWT-EXT thinks it has to do
 something as drastic as this to the whole of your site. Or even parts of it.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---