Re: IE Script error... Urgent help needed

2009-10-01 Thread mars1412
count of components with their respective values from database. Because, Clean-up Re-Draw are independent events. Is this approach wrong? On Sep 30, 8:21 pm, mars1412 martin.trum...@24act.at wrote: why do you call clear so often? calling it once should be enough, shouldn't

Re: Image loadlistener doesn't always get called?

2009-10-01 Thread mars1412
maybe this project can help: http://code.google.com/p/gwt-image-loader/ (I haven't used it yet - but it looks interessting) some other things that come to my mind: * make sure, the image is somehow attached to the dom - otherwise it will not be loaded (has been discussed in the group) * set

Re: Character.isWhitespace alternative? (whitespace check)

2009-09-30 Thread mars1412
if performance is really that critical you should test several alternatives and check which one is really the best for your case (and don't forget to test cross-browser; especially IE) On Sep 30, 10:32 am, Ed post2edb...@hotmail.com wrote: H Interesting Dominik. Thanks for the

Re: IE Script error... Urgent help needed

2009-09-30 Thread mars1412
why do you call clear so often? calling it once should be enough, shouldn't it? and if the clear() call takes too long, you have to split it up: so don't call clear, but instead copy and adjust the code in the clear function, os that e.g. only 20 of the fields of the form are cleared at once.

Re: JavaScriptException with method Label.setInnerText(String s) but works good with FireFox

2009-09-30 Thread mars1412
strange :-| On 29 sep, 06:39, Ben benzhe...@gmail.com wrote: Need more information to answer the question. -Ben On Sep 28, 11:10 am, mars1412 martin.trum...@24act.at wrote: show more code what is the var 'g'? in which class is it - what's the parent class? On Sep 28, 2:17

Re: JavaScriptException with method Label.setInnerText(String s) but works good with FireFox

2009-09-28 Thread mars1412
show more code what is the var 'g'? in which class is it - what's the parent class? On Sep 28, 2:17 pm, kristo christophe.aze...@gmail.com wrote: Hi all, Today i restart my eclipse and when i launch my application on Hosted mode, i have the following problem : [ERROR] Unable to load module

Re: Subclass or member variable?

2009-09-25 Thread mars1412
B.class, or C.class, etc is sent/ received. I also like the fact that the code becomes more type checked etc. On Sep 24, 11:18 am, mars1412 martin.trum...@24act.at wrote: this looks very strange - what is your use case for this? anyway - if you really want/need this: I don't think, that example

Re: Refresh is not working on Hosted mode and in IE

2009-09-25 Thread mars1412
so first your app is loaded in IE - everything's fine then you press the browsers refresh button and get a blank page? On Sep 24, 7:31 pm, Rahul bhatt rahul.anubh...@googlemail.com wrote: HI I am using GWT and GXT to develop a rich application. I get blank page while refreshing home page in

Re: Subclass or member variable?

2009-09-24 Thread mars1412
this looks very strange - what is your use case for this? anyway - if you really want/need this: I don't think, that example 1 will produce larger JS than 2, because in both cases you need to know MyType.class, don't you? On Sep 24, 3:23 pm, Lemao yde...@gmail.com wrote: Based on how JS is

Re: Seriously getting beyond my capabilities with GWT....

2009-09-11 Thread mars1412
to me it's no surprise, that you don't get answers to a post like this here's my very personal opinion and I assure you, it's meant to help and not to offend you my opinion after reading your post is 1st impression: your not looking for answers to your questions, but for someone who will write

Re: Translate localised messages in GWT app

2009-09-10 Thread mars1412
We adandoned google static i18n because of compile time -  we have huge app, and having 6 languages * 5 browsers = 30 different bundles was killer shot. I don't get that point: * during development you use hosted mode * and if you wish to test something specific, you only need to compile

Re: Translate localised messages in GWT app

2009-09-09 Thread mars1412
sure it is, but I would not recommend it you could store the translations in a databasetable and on startup read all translations for the current language, tranfer them to the client and then have a client-side mapping from your multilang keys to the actual translation then you could simply

Re: Change the text for FileUpload widget

2009-09-09 Thread mars1412
I don't think HTML allows you to set this. AFAIK this text is always in the language, that the browser is run in. On 9 Sep., 12:00, hockie hockiec...@gmail.com wrote: How can I change the text for FileUpload? I want to the text browse in other languages.

Re: FlowPanel

2009-09-09 Thread mars1412
I think you'll need 'inline-block' for IE On Sep 9, 2:20 pm, Rami Alkhalyleh rkhaly...@gmail.com wrote: Thanks a lot Ian with display=inline, it's working fine thanks On Wed, Sep 9, 2009 at 2:24 PM, Ian Bambury ianbamb...@gmail.com wrote: Set the VP's 'display' property to 'inline'.

Re: FlowPanel

2009-09-09 Thread mars1412
upps: inline for IE inline-block for everything else On Sep 9, 6:52 pm, mars1412 martin.trum...@24act.at wrote: I think you'll need 'inline-block' for IE On Sep 9, 2:20 pm, Rami Alkhalyleh rkhaly...@gmail.com wrote: Thanks a lot Ian with display=inline, it's working fine thanks

Re: gwt compiler replace-with for classes that aren't client-side compliant

2009-09-08 Thread mars1412
I'm not sure, if I got your problem right - but I had a similar problem and think this could help: If we need different implementations on the client and serverside this is the way we go: * create an interface for all common functions. e.g. ICommonStuff with function: doSmth() * have a

Re: File Downloads not working with firefox and Opera

2009-09-08 Thread mars1412
maybe you could provide additional info, what's happening? maybe use firebug to anlyse the response you get On Sep 8, 7:02 am, Ryan cher...@ensarm.com wrote: Isn't anyone else having a similar problem to the one I have --~--~-~--~~~---~--~~ You received this

Re: FileUpload

2009-09-01 Thread mars1412
you could assingn names to the upload fields (file1, file2, ..) On Sep 1, 4:59 pm, huy viet...@gmail.com wrote: how does the back-end differentiate the files? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google

Re: Making a fancy GWT Chart

2009-08-31 Thread mars1412
maybe you could use 3rd party libs: http://code.google.com/p/gchart/ On Aug 30, 2:47 am, Nether mirr...@gmail.com wrote: My goal is to make a chart which shows standard deviations as a gradient on the vertical axis.  I don't think it is easy to do this in the browser, so what I plan on doing

Re: FormPanel submit() displays popup

2009-08-31 Thread mars1412
hmm.. * not sure, if that's your problem, but I think the hosted-mode browser will warn you, if you try to access URLs on different sites so it might help, if you build an absolute URL for the forms action (use com.google.gwt.core.client.GWT.getModuleBaseURL()) * you should use

Re: Image in server side

2009-08-28 Thread mars1412
yes, but you won't be happy with the binary data in the client side :) the way to go is: * create the image on the server side - store it in a cache (or somewhere else) * tranfer the image path/name to the client * let the client crete an image with this name/path * and then the

Re: Server communicating with Client

2009-08-27 Thread mars1412
I think you mean some kind of server push: http://code.google.com/p/google-web-toolkit-incubator/wiki/ServerPushFAQ On Aug 27, 4:26 am, Arun vaddepalli.a...@gmail.com wrote: I have this situation where I want to make a RPC call when new data is inserted into the database. I do not want to make

Re: Photo album

2009-08-25 Thread mars1412
something I do, is to use a Java-Applet that rescales the users images on the client side. pros: * rescaling is done on the client side: so you only transfer the smaller rescaled version * but if you also want thumbnails you have to compute them on the server again * the applet offers

Re: Complex response after submit a FormPanel - How to

2009-08-25 Thread mars1412
just an alternative, if you don't want to go the clean, sophisticated way: you could simply return the id and then start an RPC to get the Image object for this id this is of course nasty, because you need another roundtrip to the server - but if you need a quick and easy way. well.. On Aug 25,

Re: how to customize brows window (i want to show only specific file formats to select)

2009-08-24 Thread mars1412
you could at least attach an onChange listener to the file-input field and show an errormessage immediately when the user has selected a file with wrong extension On Aug 24, 12:39 am, Thomas Broyer t.bro...@gmail.com wrote: On 22 août, 08:41, Rishi prateek2...@gmail.com wrote: i am new to

Re: How can I get Image from ImageBundle by String?

2009-08-24 Thread mars1412
but, be aware, that you'll loose compile time checking in this case What would be the use case for this anyway? Can the user select an image and you store it in the database? On Aug 24, 6:36 am, 李静 lijing0...@gmail.com wrote: hi, maybe you can use Reflection ; just like: Class target =

Re: How can I get Image from ImageBundle by String?

2009-08-24 Thread mars1412
but there are 3rd party apis to do this On Aug 24, 10:55 am, Paul Robinson ukcue...@gmail.com wrote: Reflection is not supported in GWT. 李静 wrote: hi, maybe you can use Reflection ; just like: Class target = ICONS.getClass(); Method m = target.getMethod(methodName, String.class);

Re: how can capture screenshot for active dialog box without background?

2009-08-24 Thread mars1412
maybe you should ask on a Selemium list On Aug 24, 4:11 pm, keven trekker@gmail.com wrote: is there any idea? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group,

Re: Formatting parts of typed text

2009-08-20 Thread mars1412
I'd like to know something similar: can I somehow configure/extend RichtTextArea to produce BB-Code instead of HTML? On Aug 19, 11:24 am, Pradeep pradeep...@gmail.com wrote: +1 i have a similar requirement, color coding text based on the current context. I tried using RichTextArea , but it

Re: Qustion - com.google.gwt.user.client.rpc.SerializationException

2009-08-20 Thread mars1412
it seems that the compiler is complainint, that BigDecimal cannot be serialized this is because GWT does not emulate this class (http:// code.google.com/intl/de-DE/webtoolkit/doc/1.6/RefJreEmulation.html) you may use http://code.google.com/p/gwt-math/ to work around this problem On Aug 20, 5:40 

Re: a new article on gwthibernate

2009-08-20 Thread mars1412
well, that example is just too simple the real fun starts when you have assiciations between entities I think this is a real great article: http://code.google.com/intl/fr/webtoolkit/articles/using_gwt_with_hibernate.html On Aug 20, 8:54 am, tolga ozdemir tka...@gmail.com wrote: Hi folks, I

Re: a new article on gwthibernate

2009-08-20 Thread mars1412
don't get me wrong: your article is a very good basic example I just think, that you should at least mention the problems that will occur in real applications and maybe linkt to the article about GILEAD, etc. On Aug 20, 12:32 pm, tolga ozdemir tka...@gmail.com wrote: yea you are right, it is

Re: user roles for GWT applications

2009-08-19 Thread mars1412
just my 2 cents: 1) Even though users cannot execute, for example, administrative RPC methods, by reverse engineering the JavaScript they may still be able to read sensitive information regarding the format or nature of the available administrative requests. Careful developers may be able to

Re: formating ListBox text

2009-08-17 Thread mars1412
why don't you use a table or the like? http://code.google.com/intl/de-DE/docreader/#p=google-web-toolkit-doc-1-5s=google-web-toolkit-doc-1-5t=DevGuideWidgetGallery On Aug 16, 11:52 pm, BobM bmar...@bcscomputers.com wrote: I have a ListBox with a heading that looks like this:

Re: GXT widgets vs GWT widgets

2009-08-14 Thread mars1412
I also think the GWT widgets are more lightweight but usually I try to use GXT widgets only, because then I have a consistent lookfeel. of course there are some exceptions to the rule :) On Aug 13, 8:02 pm, Mike michaeljr...@gmail.com wrote: I agree with your thinking.  I see the GWT widgets

Re: Display image stored in database

2009-08-10 Thread mars1412
your servlet code looks quite similar to mine - the only differences I can se: * I explicitly set the response code: response.setStatus (HttpServletResponse.SC_OK); * I explicitly flush the stream after writing the data: response.getOutputStream().flush() If this does not help, I recommend: *

Re: StaticStringInternationalization

2009-08-07 Thread mars1412
hm.. the steps above work for me maybe read these articles: * http://code.google.com/intl/de-DE/webtoolkit/doc/1.6/DevGuideI18nAndA11y.html#DevGuideDynamicStringInternationalization * http://code.google.com/intl/de-DE/webtoolkit/tutorials/1.6/i18n.html#local it says, you can also append

Re: Home Page is Loading very slow in GWT

2009-08-06 Thread mars1412
http://code.google.com/intl/de-DE/webtoolkit/doc/1.6/FAQ_DebuggingAndCompiling.html#Can_I_speed_up_the_GWT_compiler? On Aug 6, 6:46 am, JavaTech vesangiti...@gmail.com wrote: Hello All-  I am using GWT 1.5.3 More over home page loading is very slow. I checked with all things fine . When

Re: Home Page is Loading very slow in GWT

2009-08-06 Thread mars1412
upps: I wanted to post this: http://code.google.com/intl/de-DE/webtoolkit/doc/1.6/FAQ_DebuggingAndCompiling.html#Why_is_my_GWT-generated_JavaScript_gibberish? try the OBF mode On Aug 6, 11:30 am, mars1412 martin.trum...@24act.at wrote: http://code.google.com/intl/de-DE/webtoolkit/doc/1.6

Re: Type chars in image to authorize?

2009-08-06 Thread mars1412
this is called CAPTCHA there are several libs: e.g. JCAPTCHA On Aug 6, 4:04 pm, Krysgian k.vantass...@gmail.com wrote: Could someone point me in the right direction to an implementation in Java (or gwt, ext, etc.) where a box is displayed showing an image of characters which must be typed

Re: StaticStringInternationalization

2009-08-06 Thread mars1412
* use this content type in the HTML page: meta http-equiv=content-type content=text/html; charset=UTF-8 * make sure, your .properties files are saved using UTF-8 encoding (file-properties in eclipse) * set the language using: meta name='gwt:property' content='locale=de' On Aug 6, 1:48�pm,

Re: Eexception handling in non-hosted mode?

2009-08-04 Thread mars1412
try/catch over the entire application sounds scary :) maybe you should use GWT.setUncaughtExceptionHandler() to set your own exception handler, that would then (maybe) transfer the errors to the server, if you wish. in this exception handler you could also use http://code.google.com/p/gwt-log/

Re: GWT App Runs Everywhere but on 1 computer

2009-08-03 Thread mars1412
just a guess: I think, that an exception is thrown in this case if you don't explicitly handle it anywhere, GWT's uncaught-exception handler will get it and AFAIK, the default UEH will only write the exception to the hosted mode console so maybe this will get you a step further: set a custom

Re: JPA with GWT

2009-07-25 Thread mars1412
tx 4 the link a great impartial article, that everyone who considers to use GWT and Hibernate should read On Jul 25, 11:57 am, bruno bruno.marches...@gmail.com wrote: There is an official GWT article about that :http://code.google.com/intl/fr/webtoolkit/articles/using_gwt_with_hib...

Re: GWT page reload according to login

2009-07-24 Thread mars1412
maybe this: com.google.gwt.user.client.Window.Location.reload() On Jul 24, 12:24 am, Bhayat baki.hayat.c...@gmail.com wrote: Hi How can i reload my page after one button is clicked like enter with new username --~--~-~--~~~---~--~~ You received this

Re: write html into a text field

2009-07-23 Thread mars1412
what do you mean with text fields written in GWT? is it a textbox, a textarea or something you wrote? however, maybe RichTextArea is what you are looking for: http://code.google.com/intl/de-DE/webtoolkit/doc/1.6/RefWidgetGallery.html On Jul 23, 8:44 am, bhomass bhom...@gmail.com wrote: I have

Re: ClassCastException only in Chrome and OBF mode

2009-07-22 Thread mars1412
back to an earlier version of your code to see if the problem goes away? If so, which change made the problem arise? You could try it in safari 3.x, but that may not tell you much. mars1412 wrote: it doesn't occur in hosted mode - my hosted mode browser is IE6 - unfortunately we must still use

Re: ClassCastException only in Chrome and OBF mode

2009-07-21 Thread mars1412
it doesn't occur in hosted mode - my hosted mode browser is IE6 - unfortunately we must still use GWT 1.5.2 and there's no OOPHM available ah - yeah - maybe I should mention some versions: * GWT 1.5.2 (I'll try to upgrade to 1.5.3 soon) * Chrome 2.0.172.37 * app does not work in safari 4.0.2

Re: How to control or catch the action when the user click the reload button browser in web mode

2009-07-16 Thread mars1412
maybe Window.addWindowCloseListener() is what you are looking for. On Jul 15, 10:07 pm, ayo...@gmail.com ayo...@gmail.com wrote: Hi, Anybody know how can I control or catch the action when a user makes click in the reload button browser in web mode. Thanks.

Re: declarative way to build/layout UI

2009-07-13 Thread mars1412
maybe UI-binder is what you are looking for: http://code.google.com/p/google-web-toolkit-incubator/wiki/UiBinder On Jul 12, 4:38 pm, Ainata-Leb kassem.alsayed@gmail.com wrote: Is the GWT team working on a declarative way to build/layout UI? Some XML based way similar to Flex MXML. Or does

Re: Auto-login

2009-06-19 Thread mars1412
the contents of those fields currently I am only using this as default-values for our login form but it would be no problem to auto-login the users On Jun 18, 11:40 pm, Thomas Broyer t.bro...@gmail.com wrote: On 18 juin, 18:02, mars1412 martin.trum...@24act.at wrote: Isn't that insecure regarding

Re: Auto-login

2009-06-18 Thread mars1412
Isn't that insecure regarding CSFR? http://www.openajax.org/whitepapers/Ajax%20and%20Mashup%20Security.php#CSRF I must admit that I am a noob regarding security of Web-Apps, so please anyone correct me, if I misunderstood. Another question is: why don't you try to use the passwordmanager of the

Re: Auto-login

2009-06-18 Thread mars1412
, generally, keep you logged in, just remember your password. Ian http://examples.roughian.com 2009/6/18 mars1412 martin.trum...@24act.at Isn't that insecure regarding CSFR? http://www.openajax.org/whitepapers/Ajax%20and%20Mashup%20Security.ph... I must admit that I am a noob regarding security

Re: LoginSecurityFAQ and sessionID/tokens

2009-06-12 Thread mars1412
as I interpret this article: http://groups.google.com/group/Google-Web-Toolkit/web/security-for-gwt-applications then you should do 2 things: store the session-id in a cookie on the client side + include the session-id in every RPC call (to prevent XSFR) and if you call a custom servlet from

Re: Preventing JavaScript Injection cient/server side solutions

2009-06-12 Thread mars1412
on the client side, we simply use a html-editor and only enable simple functions like bold, italics, list... however, as already pointed out the user may easily work around this - and if he does, all tags/attributes that we do not allow will silently be filtered out on the serverside: we use

Re: detect browser window closing

2009-06-09 Thread mars1412
Window.addWindowCloseListener() On Jun 9, 8:44 am, bhomass bhom...@gmail.com wrote: which event should I capture to detect that the user is closing the browser window? this is issue warning if there are any dirty documents in one of the editors.

Re: A big GWT splash made by Wave

2009-06-08 Thread mars1412
they then use runAsync() to fix the problem As I understood, Adam says that SingleJsoImpl fixes the problem that arises from their message objects (not runAsync()) (at about 30:00 of the talk) On Jun 6, 5:56 am, Dean S. Jones deansjo...@gmail.com wrote: nice talk, and how the used some of the

Re: IE: history token lost on http -- https redirect

2009-06-04 Thread mars1412
thanks for the detailed answer * let your server send an HTML page doing a JavaScript redirect to the HTTPS URL, passing the hash along: I like that idea, but I couldn't find an easy way to teach my tomcat doing this so I do something similar: in the HTML page of my application I insert some

Re: Application out of Date error

2009-05-12 Thread mars1412
*This application is out of date, please click the refresh button on your browser.* we also had problems with this and in our case it turned out, that an old backend-application was still acitve under tomcat/webapps. then the gui-application always connected to this one instead of the

Re: GWT + Applet

2009-05-11 Thread mars1412
first you should try to get your applet run in a plain html-file if this works: * pay attention to this: http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/5e01d0b31b58083a?hl=en * and if you still think, it doesn't work: provide more details, about what's happening BTW:

Re: inline Hyperlink as part of a sentence -- spacing is getting battered by IE 6

2009-04-16 Thread mars1412
a non-breaking space might work: nbsp; On Apr 16, 3:51 pm, Jeoff Wilks jeoffwi...@gmail.com wrote: I'm trying to get a simple inline Hyperlink as part of a sentence, using the display: inline hack. In Firefox I get what I expect: You may view Item 1now if you like. But IE 6 swallows the space

Re: Performance of history handling with IE - The larger the app the worse the performance

2009-03-20 Thread mars1412
So, if I got you right, the benefit of using the workaround with the deferred command, is just, that the user is presented with the new page first: and then she has to wait for the 4.5 sec. I'd rather disable the history tokens at all and present the users with a 'set current-URL' button or

Re: Drang/drop files to GWT app - any progress?

2009-02-24 Thread mars1412
GWT can only do what javascript and html are capable of to work around this, you could embedd a java applet, flash, etc. I'm sure you'll find a lot of infos about this in the group On Feb 24, 11:16 am, dduck anders.johansen.a...@gmail.com wrote: Hi, I have searched the archives and the web,