Re: DataGrid vs CellTable

2012-12-03 Thread Chris Lercher
The 100% won't help you, because the FlowPanel (which contains your DataGrid as I understand it) has a height of 0 unless you fill it with widgets that mount their own height. In other words, you are creating a cycle: The FlowPanel asks its children for the height they need, and the child

Re: SuperDevMode not so super

2012-11-14 Thread Chris Lercher
In my opinion, Super Dev Mode is an awesome addition to Dev Mode. It fits in my workflow: - For super-fast changes in client-side code (to fine-tune styling etc.), I use Dev Mode, with a Debugger attached, and a simple button on the page that rebuilds just the widget I am tuning. Nothing beats

Re: SuperDevMode not so super

2012-11-14 Thread Chris Lercher
On Thursday, November 15, 2012 2:53:37 AM UTC+1, Thomas Broyer wrote: SourceMaps could then be used by your IDE so you could put breakpoints in your editor window. I can see the potential - it could be big. I do have a few doubts though: 1. Would this also allow me to inspect the internal

Re: GWT 2.5 RC2 EntityProxy Validation

2012-11-06 Thread Chris Lercher
On Tuesday, November 6, 2012 10:13:59 AM UTC+1, Thomas Broyer wrote: Couldn't you simply override the methods and refine the return type? (Java has covariant return types) interface Employee { Employee getBoss(); } interface EmployeeProxy extends Employee, EntityProxy {

RequestFactory and (JPA) transaction concepts

2012-11-01 Thread Chris Lercher
I'd like to discuss how to best use (JPA) transactions with RequestFactory. As a basis, I'm assuming the approach where one user interaction should normally result in one DB transaction, so that the whole interaction can either fail or succeed, atomically. The first thing to consider with

Re: RequestFactory and (JPA) transaction concepts

2012-11-01 Thread Chris Lercher
On Thursday, November 1, 2012 6:36:54 PM UTC+1, Thomas Broyer wrote: Guice Persist's @Transactional works great (of course with a ServiceLayerDecorator to instantiate your services through Guice): http://code.google.com/p/google-guice/wiki/Transactions That's the missing guice-extension

Re: GWT 2.5 Java 5 runtime(!) compatibility

2012-10-30 Thread Chris Lercher
On Tuesday, October 30, 2012 5:42:11 PM UTC+1, Lars Ködderitzsch wrote: Bummer, at least this finally confirms that anyone doomed to still use Java 5 based servers will be unable to user anything newer than GWT 2.4 from this point on. What I find interesting is, that companies who are

[gwt-contrib] Subversion tag for 2.5.0-rc2?

2012-10-14 Thread Chris Lercher
I'd like to check out the code for 2.5.0-rc2. For previous versions I can find a tag, e.g. http://google-web-toolkit.googlecode.com/svn/tags/2.5.0-rc1;, with the svn log entry r11147 | rda...@google.com | 2012-06-27

Re: Googlebot dissing my GWT app

2012-10-12 Thread Chris Lercher
A Google search for site:www.spot...com [replace the ellipsis] just returns www.spot...com. But you don't have that page in your sitemap, and you're not using step 3 Handle pages without hash fragments of the Step-by-step guide: In order to make pages without hash fragments crawlable, you

Re: Saving results from GWT-RPC call on client

2012-10-12 Thread Chris Lercher
One alternative for serialization would be to work with AutoBeans. - Advantage: They can be decoded from/encoded to Strings via AutoBeanCodexhttp://code.google.com/p/google-web-toolkit/wiki/AutoBean#AutoBeanCodex . - Disadvantage: AutoBeans (or the interfaces they represent) can't be used as

Re: Are you happy with GWT?

2012-10-09 Thread Chris Lercher
That's a very interesting situation. Actually, this is a decision between full-ajax site and js-enhanced site, and for that question it doesn't even really matter which JS framework is used. Server-side templating has always been a somewhat crazy idea (a hack, if you want - but then again,

Re: Are you happy with GWT?

2012-10-09 Thread Chris Lercher
On Tuesday, October 9, 2012 4:38:47 PM UTC+2, David wrote: When servlet engines first came on the scene , developers were writing stringified content directly to the HttpResponse. Absolutely, from that point of view (and I remember cgi scripts), template engines are a big enhancement to

Re: Possible RFE: Make UiBinder aware of IsWidget interfaces

2012-10-08 Thread Chris Lercher
On Friday, July 20, 2012 6:42:02 PM UTC+2, Jens wrote: Actually UiBinder special treats addStyleNames for normal widgets (it works with my:MyViewImpl addStyleNames=...) but it stops doing so when it sees something that does not extend Widget I guess. FYI, this is true, the special code is

Re: mp3 resources - can they be played from within GWT?

2012-10-07 Thread Chris Lercher
Yes, GWT includes an Audio class: http://google-web-toolkit.googlecode.com/svn/javadoc/2.5/com/google/gwt/media/client/Audio.html However, not all browsers support all formats, e.g. Firefox doesn't support mp3: http://en.wikipedia.org/wiki/HTML5_Audio So you may have to serve the file in

Re: compiled file ending with *.htm instead of *.html

2012-10-04 Thread Chris Lercher
On Thursday, October 4, 2012 8:32:13 PM UTC+2, James wrote: I extended IFrameLinker to return .cache.htm in getCompilationExtension. GWT compiler generates all js files ending with cache.htm as expected. But nocache.js still has cache.html in one place such as $intern_62 = '.cache.html'.

Re: Scary: GWT Team does not fix serious GWT Compiler Bugs

2012-10-02 Thread Chris Lercher
Sorry, but definitely no. Admittedly, I've never actually encountered such a GWT bug in my own code. But that's irrelevant. Imagine you're changing a method temporarily to debug some code (in a way, that it always returns true), and in compiled mode it will simply not do what you expect -

[gwt-contrib] RemoteServiceServlet + Transactions

2012-09-30 Thread Chris Lercher
In my opinion, it's currently unnecessarily difficult to integrate basic transaction management with GWT-RPC. Usually, in a web application it's best to start a transaction, when a call arrives at the server, and to commit it, when the server has finished processing and created the response.

Documentation of GWT logging (compile out of log levels)

2012-09-29 Thread Chris Lercher
The documentation mentions, that it's possible to make all logging code compile outhttps://developers.google.com/web-toolkit/doc/latest/DevGuideLogging#Making_All_Logging_Code_Compile_Out, but it doesn't mention how to compile out only certain levels. This is however possible: The property

Re: Need a tool to find out client side coverage .

2012-09-26 Thread Chris Lercher
Thanks for the link, Joseph - it's an old version of eclemma, but it works: It shows client side coverage when running in dev mode (not in production mode). Then again, I'm not sure what the patch does exactly. I installed the unpatched v1.3.2 and v1.5.3 from

Re: [Activities Places] How to save and display the criterias again when hitting the back button ?

2012-09-26 Thread Chris Lercher
On Tuesday, September 25, 2012 5:00:28 PM UTC+2, Celinio Fernandes wrote: How can i save them ? If you always only need the previously selected criteria, you don't have to store them in the token: - Either save the values somewhere in your Java objects (wherever you want). When re-creating

Re: [Activities Places] How to save and display the criterias again when hitting the back button ?

2012-09-26 Thread Chris Lercher
On Wednesday, September 26, 2012 1:55:53 PM UTC+2, Chris Lercher wrote: you can use HTML5 Storagehttps://developers.google.com/web-toolkit/doc/latest/DevGuideHtml5Storage (consider browser support). Forgot to mention: You could also save them in a cookie. -- You received this message

Re: Super Dev mode : speed, find source in Chrome, stacktrace of exception

2012-09-25 Thread Chris Lercher
On Tuesday, September 25, 2012 7:59:16 AM UTC+2, maticpetek wrote: 2) When we get exception in client code, Dev mode will print out full stacktrace. Is something like this available in SuperDev mode? For example, the following code : String bla = null; bla.length(); // Exception will

Re: Super Dev Mode general question

2012-09-21 Thread Chris Lercher
I want to add to that list, that running Dev Mode with a debugger can be used to fine-tune user interfaces extremely quickly: What I usually do is to put the unit which I need to optimize in a panel, and add a button that refreshes the panel with a new instance of the unit. This doesn't even

Re: What happened to composite images for ClientBundles?

2012-09-20 Thread Chris Lercher
On Thursday, September 20, 2012 3:54:41 AM UTC+2, Tim wrote: Perhaps you want set some ImageOptions on the resource. Check preventInlining and RepeatStyle Thanks, according to the javadoc, ImageOptions.preventInlining actually seems to disable all kinds of optimizations: Set to {@code

What happened to composite images for ClientBundles?

2012-09-19 Thread Chris Lercher
According to https://developers.google.com/web-toolkit/doc/latest/DevGuideUiImageBundles, multiple images in the same ClientBundle should usually be merged to a composite image, quote: Multiple ImageResources are declared in a single ClientBundle, which is a composition of many images into a

Re: Future of GWT survey

2012-09-19 Thread Chris Lercher
Please excuse me for this negative feedback, but in my opinion, the survey is rather suggestive in that it presupposes that GWT should develop into something that better supports other technologies. It asks a series of questions that point in this direction (and it offers some free text

GWT Bean Validation + Hibernate Validator version?

2012-09-17 Thread Chris Lercher
What is the officially supported Hibernate Validator versionhttp://repository.jboss.org/nexus/content/groups/public-jboss/org/hibernate/hibernate-validator/that should be used in conjunction with GWT JSR 303 Bean Validationhttp://code.google.com/p/google-web-toolkit/wiki/BeanValidation?

Re: GWT Bean Validation + Hibernate Validator version?

2012-09-17 Thread Chris Lercher
Ok, thanks. On Monday, September 17, 2012 3:34:48 PM UTC+2, Thomas Broyer wrote: This has actually been reported a few days ago: http://code.google.com/p/google-web-toolkit/issues/detail?id=7661, and in the comments on the wiki page. GWT is built against 4.1.0 Final and depends on

Re: Properties file with GWT

2012-09-15 Thread Chris Lercher
1. The java.util.Properties class isn't available on the client side. It's possible to get a properties file to the client side (e.g. using com.google.gwt.http.client.RequestBuilder), but you'd have to find a way to parse it. So why not use JSON format instead? Or GWT-RPC (which can contain

[gwt-contrib] Deprecating DeRPC classes

2012-09-12 Thread Chris Lercher
https://developers.google.com/web-toolkit/doc/latest/DevGuideServerCommunication#DevGuideDeRPC says about Direct-Eval RPC: This feature did not work out as planned, and the GWT team strongly discourages its use. However, the classes RpcServlet, RpcService etc. are not marked as

Re: How to obfuscate RequestFactory type name, not only the operations ( GWT 2.4 )

2012-09-06 Thread Chris Lercher
On Thursday, September 6, 2012 3:58:34 PM UTC+2, Thomas Broyer wrote: Would you mind filing an issue in the tracker (if no one already did it) ? I did a few years ago: http://code.google.com/p/google-web-toolkit/issues/detail?id=5729 It was closed as a duplicate of

Re: compiled file ending with *.htm instead of *.html

2012-09-06 Thread Chris Lercher
I assume it should be possible by extending IFrameLinker, and overriding getCompilationExtension(...) to return .cache.htm. Then define and add your linker as in /com/google/gwt/core/Core.gwt.xml I haven't tried it though, so you may encounter some difficulties (?) On Wednesday, September 5,

Re: GWT Compilation Time Performance Improvement

2012-09-04 Thread Chris Lercher
Another possibility would be to replace some classes with stubs (- dependency injection) - only activating the functionality that is currently interesting. The rest doesn't need to be compiled. Of course it depends on the application's architecture, if this can be done easily or not. On

Re: Migrating CSS to GWT 2.4

2012-08-30 Thread Chris Lercher
They're in gwt-user.jar, in subdirectories of package com.google.gwt.user.theme. You can also view them in the subversion browser, e.g. http://code.google.com/p/google-web-toolkit/source/browse/tags/2.4.0/user/src/com/google/gwt/user/theme/standard/public/gwt/standard/standard.css The css

Re: How to set stroke width for Canvas Context2d?

2012-08-30 Thread Chris Lercher
To set the width of the stroke, use ctx.setLineWidth(double) In general, FillStrokeStyle currently has three subclasses: - CanvasGradient - CanvasPattern - CssColor They don't have public constructors. CanvasGradient can be created by using ctx.createLinearGradient() or

Re: FF DevMode plugin + Memory leaks (+ Address already in use)

2012-08-28 Thread Chris Lercher
I analyzed this a bit more (this time on Linux), and I noticed, that the number of Thread also grows: 1 thread per reload. Again, this happens only with Firefox, not with Chrome. So probably the ClassLoader references will be discarded only when the Thread terminates... One more thing that

Re: DART vs. GWT

2012-08-28 Thread Chris Lercher
About Dart: - I really (!) hope that Dart will succeed. - Ideally, Dart would even become the new JavaScript alternative in all browsers (however, AFAIK a few browser vendors have signaled, that this ain't gonna happen). If not, then it could maybe still be successful with dart2js. About GWT:

Re: FF DevMode plugin + Memory leaks (+ Address already in use)

2012-08-28 Thread Chris Lercher
Yes. I disabled all Add-Ons: All Extensions (except for the GWT Extension) and all Plugins, and restarted Firefox. On Wednesday, August 29, 2012 12:12:03 AM UTC+2, Brian Slesinsky wrote: Does the connection leak happen with all plugins (other than GWT) disabled? -- You received this

Re: GwtChosen: make your select boxes much more user-friendly

2012-08-28 Thread Chris Lercher
Very useful. Great widget. On Tuesday, August 28, 2012 10:34:09 PM UTC+2, Julien Dramaix wrote: Dear community, I just released the first version of GwtChosen. GwtChosen is the entire rewritte in Google Web Toolkit of the Chosen component (http://harvesthq.github.com/chosen/) making this

FF DevMode plugin + Memory leaks (+ Address already in use)

2012-08-27 Thread Chris Lercher
When I analyze a DevMode process's memory usage (e.g. using jconsole), it shows that Heap and Non-Heap (PermGen) Memory usage increases, whenever the page is reloaded. This happens both when I run DevMode with Firefox 14, as well as Chrome 21. The difference is however, that - with Chrome,

GWT (lazy) Widget rendering: Comparison of approaches

2012-05-16 Thread Chris Lercher
There are several competing (or complemental) new/experimental (or deprecated) classes around, which deal with rendering Widgets in alternative (often lazy) ways in GWT: - GXT2's lazy

Re: Disable/Enable CSS obfuscating in gwt.xml ?

2011-07-04 Thread Chris Lercher
@karthik: The problem is, that in general you can't simply retain the original names. A very important (probably the most important) feature of CssResources is, that each of them effectively gets its own namespace. If you remove that concept (even just for testing), you will create conflicts,

Re: RequestFactory: Obfuscate traffic/Elide type names

2010-12-08 Thread Chris Lercher
Ok, thanks - opened an enhancement request: http://code.google.com/p/google-web-toolkit/issues/detail?id=5729 On Dec 8, 12:47 pm, Thomas Broyer t.bro...@gmail.com wrote: On 7 déc, 15:30, Chris Lercher cl_for_mail...@gmx.net wrote: Hi, with GWT RPC, it's possible to elide/obfuscate

RequestFactory: Obfuscate traffic/Elide type names

2010-12-07 Thread Chris Lercher
Hi, with GWT RPC, it's possible to elide/obfuscate the type names from the network traffic, by adding: inherits name=com.google.gwt.user.RemoteServiceObfuscateTypeNames/ to the .gwt.xml file. (This effectively sets the property gwt.elideTypeNamesFromRPC to true.) Is something like that also

Re: Flyweight version of Element? Trying to implement find an element by CSS Selector

2010-06-24 Thread Chris Lercher
How about using GWTQuery? It's easy to use (very similar to your Mootols example), and it's highly optimized for speed (individually for different browser). http://code.google.com/p/gwtquery/ On Jun 24, 11:46 am, Paul Schwarz paulsschw...@gmail.com wrote: In Mootools et al. it is really easy to

Re: Flyweight version of Element? Trying to implement find an element by CSS Selector

2010-06-24 Thread Chris Lercher
Don't worry about adding the entire GWTQuery library - the GWT compiler takes care of outputting only the code parts it needs from that library. This often means, that your code size will only increase by a few hundred bytes. On Jun 24, 12:47 pm, Paul Schwarz paulsschw...@gmail.com wrote:

Re: Flyweight version of Element? Trying to implement find an element by CSS Selector

2010-06-24 Thread Chris Lercher
On Jun 24, 1:08 pm, Paul Schwarz paulsschw...@gmail.com wrote: But getting back to GWTQuery, it looks interesting, but now that I've solved my Element selector woes why else should I delve into GWTQuery? No need to do that, but GWTQuery provides the easy selector syntax you mentioned in your

GWT-RPC via JSONP?

2010-06-16 Thread Chris Lercher
Hi, would it be possible to somehow wrap a GWT-RPC in a JSONP call? I mean, at the end of the day, GWT-RPC also just sends a string in an HTTP POST message (along with some headers), so theoretically it should be possible to use that String as a JSON string, maybe alongside the headers to form a

Re: GWT-RPC via JSONP?

2010-06-16 Thread Chris Lercher
Okay, thinking about it, maybe this is a stupid idea. Since I can send only an URL (and not a POST body) with a JSONP call, I guess, the URL probably can't take very long strings... On Jun 16, 9:27 pm, Chris Lercher cl_for_mail...@gmx.net wrote: Hi, would it be possible to somehow wrap a GWT

Re: GWT-RPC via JSONP?

2010-06-16 Thread Chris Lercher
Hi Sri, I mean of course, that there would have to be a component (e.g. Servlet) on the server side, that re-translates the get request, and then calls the RemoteServlet (or something underlying), as if a usual GWT-RPC request had been issued. Se we would basically use JSONP as a tunnel. [The

Re: GWT-RPC via JSONP?

2010-06-16 Thread Chris Lercher
domain issues. --Sri On 17 June 2010 01:21, Chris Lercher cl_for_mail...@gmx.net wrote: Hi Sri, I mean of course, that there would have to be a component (e.g. Servlet) on the server side, that re-translates the get request, and then calls the RemoteServlet (or something underlying

Re: Efficient GWT Client-Server Communication methodology

2010-06-13 Thread Chris Lercher
@Sky: Yeah, compression is very important. Note, that you don't have to do it yourself: Most servers and browsers support HTTP gzip Content- Encoding (usually just a switch in the server config to turn it on). Chris On Jun 13, 4:46 am, Sky myonceinalifet...@gmail.com wrote: Second, I seriously

Re: Application works only in hosted mode

2010-06-12 Thread Chris Lercher
Hi Stefan, did you also enable the Firebug Console tab? Do you see any JavaScript Errors/Warnings there? Also, some quick things to try (probably you've already tried them): - Clearing the browser cache. - Cleaning the project from all generated files, then building again. Chris On Jun 11,

Re: quirks vs. standard mode

2010-06-10 Thread Chris Lercher
Daniel, IE 6 does have something like a standards mode - it's not really standards compliant, but it does behave differently, when putting it into that mode. That's because, when it's in quirks mode, then it behaves like IE 5.5. See http://www.quirksmode.org/css/quirksmode.html for more details.

Re: Managing of connection to JMS server, listening to JMS Topic

2010-06-08 Thread Chris Lercher
Are you looking for this: http://forums.sun.com/thread.jspa?threadID=5397323 Probably, an even cleaner alternative would be to inject a JMS ConnectionFactory using Annotations: http://java.sun.com/javaee/5/docs/tutorial/doc/bnceh.html - I assume, it would clean up itself when undeploying, but

Re: Calculation of widget size during onModuleLoad() = move to DeferredCommand?

2010-06-08 Thread Chris Lercher
Hi Stefan, not sure, if it's only the CSS, or the entire UiBinder - but I had assumed, that it's only the CSS, because the div has the same width as the body (which makes sense, if the CSS selector of the div doesn't find its CSS class). Oh, the code I posted is all there is for this little test

Re: Calculation of widget size during onModuleLoad() = move to DeferredCommand?

2010-06-08 Thread Chris Lercher
[I see, that you replied to the first message in this thread - most of the code is in the second message.] The full thread is here: http://groups.google.com/group/google-web-toolkit/browse_thread/thread/1c632fbbb37f6f66/54b2d8927811fe14 On Jun 8, 7:39 pm, Chris Lercher cl_for_mail...@gmx.net

Re: How to manage with browser cache

2010-06-07 Thread Chris Lercher
You can cache all files that end with .cache.* forever, because they automatically get a new name when the content changes. You shouldn't cache the files that end with .nocache.* at all (Caching them would result in a serious problem!) See

Re: How to manage with browser cache

2010-06-07 Thread Chris Lercher
Also, don't cache other files (like your entry html page, or anything whose content might change without changing its name). On Jun 7, 11:03 am, Chris Lercher cl_for_mail...@gmx.net wrote: You can cache all files that end with .cache.* forever, because they automatically get a new name when

Re: How to manage with browser cache

2010-06-07 Thread Chris Lercher
/mnot_tutorial/how.html On Jun 7, 11:06 am, Chris Lercher cl_for_mail...@gmx.net wrote: Also, don't cache other files (like your entry html page, or anything whose content might change without changing its name). On Jun 7, 11:03 am, Chris Lercher cl_for_mail...@gmx.net wrote: You can cache

Re: Calculation of widget size during onModuleLoad() = move to DeferredCommand?

2010-06-07 Thread Chris Lercher
( + myComposite.getOffsetWidth())); } }); } } The first label shows 987 (or whatever the width of body is), the second label shows 80. On Jun 6, 9:58 pm, Chris Lercher cl_for_mail...@gmx.net wrote: Hi, I want to perform a size calculation on a composite generated

Re: Calculation of widget size during onModuleLoad() = move to DeferredCommand?

2010-06-07 Thread Chris Lercher
final sizing. On Jun 6, 1:58 pm, Chris Lercher cl_for_mail...@gmx.net wrote: Hi, I want to perform a size calculation on a composite generated by UiBinder, using UIObject.getOffsetWidth(). The composite's ui.xml (simplified) looks like this:          ui:style                 .test

Calculation of widget size during onModuleLoad() = move to DeferredCommand?

2010-06-06 Thread Chris Lercher
Hi, I want to perform a size calculation on a composite generated by UiBinder, using UIObject.getOffsetWidth(). The composite's ui.xml (simplified) looks like this: ui:style .test { width: 80px; height: 50px;

Re: How do you share css resources across multiple modules?

2010-06-01 Thread Chris Lercher
Hi Tobias, have you tried to use set-configuration-property name=CssResource.obfuscationPrefix value=empty/ in your gwt.xml files? I haven't tried this with multiple modules yet, but I think it should work, according to this description:

Re: GWT Compiler fails with 'Too many open files' error / internal compiler error

2010-05-31 Thread Chris Lercher
Hi, are you on Linux? There's a limit of open files you can have. Google for Too many open files to find a solution. Here's a good page: http://confluence.atlassian.com/display/CONF29/Fix+'Too+many+open+files'+error+on+Linux+by+increasing+filehandles If your parameters are in a normal range

Status of Joda/Goda time, future of Date handling

2010-05-30 Thread Chris Lercher
Hi, I think, many people (including myself) are a little bit unhappy with the current situation of date and time handling a) due to the use of deprecated methods of java.util.Date and b) due to the general weaknesses of the java Date API This topic crops up repeatedly on different forums, as

Re: Status of Joda/Goda time, future of Date handling

2010-05-30 Thread Chris Lercher
On May 31, 2:26 am, Paul Stockley pstockl...@gmail.com wrote: I am using gwt-time. I haven't had any issues as yet. However, the biggest problem is that it adds 250 - 300 kb to the project js download. That's massive, and it would be way too much for my project. I wonder, why it's that large -

Re: Disable/Enable CSS obfuscating in gwt.xml ?

2010-05-28 Thread Chris Lercher
It can be done: com.gwt.resources.Resources.gwt.xml defines the CssResource.style property. Looking into com.google.gwt.resources.rg.CssResourceGenerator.init() shows, that we can set the property to pretty - so in your .gwt.xml file you would write: set-configuration-property

Re: Fastest way to create lots of similar elements

2010-05-28 Thread Chris Lercher
On May 28, 4:28 pm, Thomas Broyer t.bro...@gmail.com wrote: Use a StringBuilder, it'll optimize dependending on the browser (pushing into an array and then joining the items, or concatenating strings, whichever has been benchmarked the fastest by the GWT team) You're right - I just looked into

Re: Fastest way to create lots of similar elements

2010-05-28 Thread Chris Lercher
Hi Eric, yes, I'm considering using an ImageBundle (actually only the getURL() method from ImageResource) - but that solves a different problem (reducing the number of requests)! I'll still have to create my hundreds of similar elements, and add/remove them dynamically, position them etc. On

Re: Fastest way to create lots of similar elements

2010-05-28 Thread Chris Lercher
stefanbach...@yahoo.de wrote: Hi Chris, this looks as you are going to program mine sweeper. May be you should consider to use HTML5 canvas Stefan Bacherthttp://gwtworld.de On 27 Mai, 21:33, Chris Lercher cl_for_mail...@gmx.net wrote: Hi, I need to create lots (hundreds) of image tags

Re: Fastest way to create lots of similar elements

2010-05-28 Thread Chris Lercher
On May 28, 6:00 pm, Thomas Broyer t.bro...@gmail.com wrote: Messages could help you, even if you don't use its localizable facet: public interface Images extends Messages {   �...@defaultmessage(img src='images/{0}.gif' style='top: {1}em;')    String image(String image, int emTop); }

UiBinder performance: Impacted by Dependency Injection (provided=true)?

2010-05-27 Thread Chris Lercher
Hi, one of the advantages of UiBinder is, that it's building DOM structures by cramming big strings of HTML into innerHTML attributes than by a bunch of API calls (http://code.google.com/webtoolkit/doc/ latest/DevGuideUiBinder.html#Overview). First of all, I want to admit that I don't yet fully

Re: UiBinder performance: Impacted by Dependency Injection (provided=true)?

2010-05-27 Thread Chris Lercher
Thanks. On May 27, 5:53 pm, Thomas Broyer t.bro...@gmail.com wrote: On 27 mai, 13:13, Chris Lercher cl_for_mail...@gmx.net wrote: Hi, one of the advantages of UiBinder is, that it's building DOM structures by cramming big strings of HTML into innerHTML attributes than by a bunch

Fastest way to create lots of similar elements

2010-05-27 Thread Chris Lercher
Hi, I need to create lots (hundreds) of image tags, and attach them dynamically to several plain div class=xy/div elements: div class=xy img src=images/a.gif style=top: 1em;/ img src=images/a.gif style=top: 2em;/ img src=images/b.gif style=top: 3em;/ ... /div ... The img tags can have

Re: Fastest way to create lots of similar elements

2010-05-27 Thread Chris Lercher
with respect to IE, the fastest way is still to construct a string and assign it to div's innerHTML... provided that you can find an intelligent and fast way to create that string, as IE (at least prior to 8) has a notoriously slow string concatenation. On May 27, 9:33 pm, Chris Lercher cl_for_mail

Re: GWT useful for HTML Parsing? Is it fast enough

2010-04-19 Thread Chris Lercher
Thanks, very interesting. I set a bookmark. On Apr 19, 11:05 am, Thomas Broyer t.bro...@gmail.com wrote: Because it implements the HTML5 parsing rules, algorithm that has been written to predictably parse web pages as found in the wild, with results that are as close as possible as what

Re: GWT useful for HTML Parsing? Is it fast enough

2010-04-18 Thread Chris Lercher
Hi Parag, I would use GWT for many things, but in this case, I would probably decide between - Using pure JavaScript (should usually be enough to do this.) - Using jQuery selectors, if it gets more complex. - Or write a quick standalone Java App which parses the HTML (using htmlunit, or NekoHTML

Re: GWT useful for HTML Parsing? Is it fast enough

2010-04-18 Thread Chris Lercher
Hi Thomas, I agree. I just don't see any advantage for GWT in this case. So I'd say, that using it only makes sense, if there are other reasons, which weren't expressed in the question. By the way, GWT uses NekoHTML, too (it's in gwt-dev.jar). Why do you prefer the HTML parser you mentioned?

Re: GWT useful for HTML Parsing? Is it fast enough

2010-04-18 Thread Chris Lercher
BTW, re-reading my original answer, maybe it was mistakable. It was not my intention not suggest, that GWT is slower than the other methods (even if it sounded that way). I just wanted to say, that for the problem it doesn't look like the most natural choice. -- You received this message because

Re: java.util.Calendar

2010-04-16 Thread Chris Lercher
There's an entry in the issue tracker: http://code.google.com/p/google-web-toolkit/issues/detail?id=603 On Apr 14, 11:43 am, marclurr mbarrett.m...@gmail.com wrote: Hello, I'm sure this has been asked somewhere before but I can't seem to find it: Is there likely to be a port of

Re: Immutable object from the business layer

2010-04-16 Thread Chris Lercher
Hi, I don't want to comment on the design decisions (maybe others will). But what you could do in your current situation to keep the web app (your UI's server part) stateless, is probably to just retrieve the object _again_ from the backend by looking it up via its ID. I hope, the business tier

Re: Eclipse JavaEE tools + GWT Development mode

2010-03-31 Thread Chris Lercher
Hi David, I haven't tried the same setup with Tomcat yet, but I expect it should be the same procedure: In the Servers view in Eclipse, select the server you deployed the EAR to. Right-click it and choose Debug. This allows you to set breakpoints in your server side code. To debug the client

Re: Is client side Javascript code always visible?

2010-03-31 Thread Chris Lercher
If the JavaScript should be executed in the browser (as usual), then it will have to be downloaded to the browser. This means, that it can also be copied. GWT offers an option to obfuscate the generated code, and one of the effects of this is, that it's harder for someone to read the code. But it

Re: Dropping IE6 support

2010-03-18 Thread Chris Lercher
IMO, this isn't feasible, because of what's probably the most common scenario for GWT projects: * You want to create a great website (non-corporate), taking advantage of GWT, including its future improvements, and * you also have to support IE6. Most IE6 users have never encountered a website

Re: ALIGN_CENTER problem ?!!!

2010-03-18 Thread Chris Lercher
I also had the same problem, and the only way I found was to do this programmatically, with @UiField(provided=true) VerticalPanel verticalPanel; And instantiating the vertical Panel + setting the horizontal alignment before calling uiBinder.createAndBindUi(this) On Mar 18, 9:27 am, Gecko

Re: Generated widget markup

2010-03-12 Thread Chris Lercher
I think, the new GWT 2.0 Layout Panel address pretty much that - they're designed for standards mode, and you can make do without Tables (VerticalPanel etc). You can still use them for data tables, in which case they're semantically correct. On Mar 12, 2:19 pm, mmoossen mmoos...@gmail.com wrote:

Re: java.io.IOException: error=13, Permission denied

2010-03-12 Thread Chris Lercher
Are you sure, that Eclipse is running on the Sun JVM? (About Eclipse - Installation Details - Configuration) There are lots of problems with Eclipse, when run with GCJ. I don't know, if that's the solution, but I'd check this first. On Mar 12, 3:49 pm, Thomas Holmes thomas.j.hol...@gmail.com

Re: Generated widget markup

2010-03-12 Thread Chris Lercher
On Mar 12, 5:33 pm, Joel Webber j...@google.com wrote: These DOM structures are never serialized into static content, for example. And it's also a fair question to ask what the semantics of a stack of divs are, as opposed to a table -- they're both semantically meaningless. I'm still a little

Re: Extending UI-Binder

2010-03-11 Thread Chris Lercher
Well, you can import any package, and bind it to a namespace prefix as explained here: http://code.google.com/webtoolkit/doc/latest/DevGuideUiBinder.html#Hello_Widget_World I imagine, that it would also be possible to have an addRect(), addCircle() method etc in your SVG class (or maybe some

Re: EJB 3 + Guice2.0 + Tomcat 6 / Glassfish 3

2010-03-11 Thread Chris Lercher
On Mar 11, 3:42 pm, Gianluigi dava...@yahoo.it wrote: ...if you don't want to bind different EJB3TestRemotes to different names. not different names, different IMPLEMENTATIONS. The @Names annotation is a selector to choose with concrete implementation of the local/remote ebj interface

Re: newbie question, problem adding jar library

2010-03-11 Thread Chris Lercher
Hi, adding it to the build path isn't enough in this case. The jar has to be found by the server at runtime. To achieve this, you can put the jar in the directory war/WEB-INF/lib. Chris On Mar 11, 12:25 am, khalid khalid@gmail.com wrote: Hello every one I am making this simple application

Re: serving my app in production

2010-03-10 Thread Chris Lercher
I think he isn't doing cross domain calls (the redirect is just from http://mydomain/ to http://mydomain/MyApp/) There was someone with a very similar question on this forum just a few days ago (I can't find the post anymore, maybe you'll find it). I think the solution may have had something to

Re: GWT + URL Rewriting (Apache)

2010-03-10 Thread Chris Lercher
I think he isn't doing cross domain calls (the redirect is just from http://mydomain/ to http://mydomain/MyApp/) There was someone with a very similar question on this forum just a few days ago (I can't find the post anymore, maybe you'll find it). I think the solution may have had something to

Re: serving my app in production

2010-03-10 Thread Chris Lercher
Sorry, I posted in the wrong topic... On Mar 10, 4:24 pm, Chris Lercher cl_for_mail...@gmx.net wrote: I think he isn't doing cross domain calls (the redirect is just fromhttp://mydomain/tohttp://mydomain/MyApp/) There was someone with a very similar question on this forum just a few days

Re: GWT + URL Rewriting (Apache)

2010-03-10 Thread Chris Lercher
...@gmail.com wrote: hey Chris, You missed out the port 8080. apparently he is using apache on port 80 and tomcat on port 8080.http://mydomain:8080is not the same ashttp://mydomain. those are 2 different domains. On Wed, Mar 10, 2010 at 5:25 PM, Chris Lercher cl_for_mail...@gmx.netwrote: I

Re: Access ejb from ServiceImpl

2010-03-10 Thread Chris Lercher
Hi, 1) Make sure you're using a JavaEE container that works with EJB = 3.0. 2) If you do, you may face the same problem I had some time ago: GWT usually uses a Deployment Descriptor (web.xml) in version 2.3. This basically disables the EJB 3.x functionality. Make sure to change your Deployment

Re: access ejb from gwt ServiceImpl

2010-03-10 Thread Chris Lercher
Hi, just gwt-compile the GWT parts using gwtc (In Eclipse, use the red GWT Compile Project icon. Or alternatively use the ant target gwtc or war from the build.xml that webAppCreator created for you.) You can basically treat the compiled result as if it were static HTML content in a web project -

Re: EJB 3 + Guice2.0 + Tomcat 6 / Glassfish 3

2010-03-10 Thread Chris Lercher
Hi, you're probably looking for the portable JNDI syntax, as explained here: http://java.sun.com/javaee/6/docs/tutorial/doc/gipjf.html And one last question, in the end the author mentions that the @Named annotation is not useful. How would it look like without it? I think he probably means

Re: GWT Eclipse Hosting mode relative path issue

2010-03-09 Thread Chris Lercher
Hi, you should be able to use GWT.getModuleBaseURL() or maybe in your case GWT.getHostPageBaseURL() Chris On Mar 9, 3:29 am, San sarav...@gmail.com wrote: Hello, I use Eclipse 3.5 (Galileo) and google plugin to develop my project. I'm having an issue while accessing static files from

  1   2   3   >