Permutation, code splitting and deferred property

2011-09-26 Thread Pierre Coirier
Hi, I got an issue with deferred property and code splitting. In my GWT configuration file, I have defined the following property: and I have a generator with the following code that generates one implementation depending on this deferred property value: public String generat

Re: Isn't the Activities and Places model violating the MVP pattern?

2011-09-26 Thread Behi
Thanks for the response. I shall have a look at those links later tonight. > If you value theory and "purity" more than pragmatism and productivity, then > yes, it probably violates the pattern, as it doesn't use the observer > pattern. My concern is not that passing the presenter to the view is

Re: compile multiple modules commandline

2011-09-26 Thread Thomas Bachmann
in ant you have to add every module as a single xml element and not all modules in one element. ... On 26 Sep., 14:48, Fred wrote: > Hi Folks, > > I am trying to get ant to compile t

Re: Edit an object in a List without a ListEditor

2011-09-26 Thread Maiku
Thanks Thomas, I had no idea that interface existed. It works a charm now (although, now I'm considering from a design perspective whether this sort of manipulation should be done in the editor or the presenter but that's a philosophical problem :) ) -- You received this message because you are

Re: too much code: GWT Development with Activities and Places

2011-09-26 Thread Felipe Martim Vieira
Maybe you should have a look at this: http://code.google.com/p/mvp4g/ I have never used it, but it looks like a great alternative to reduce the amount of work. On Mon, Sep 26, 2011 at 6:14 AM, Aidan O'Kelly wrote: > On Sat, Sep 24, 2011 at 4:53 PM, Thomas Broyer wrote: > >> And BTW, MVP is a

Deferred locale selection/re-selection?

2011-09-26 Thread Transplant
Hi, I need to write a multi-locale app that allows the user to change their locale at runtime. I would like to design the app so that I get the maximum benefits of GWT's deferred binding functionality with respect to locale. I must allow the user to log in to the app in one locale (say de-DE),

Re: too much code: GWT Development with Activities and Places

2011-09-26 Thread camerojo
> I am personally happy with a strong gwt core, and that just keep getting > better with each release. I couldn't agree more Gal. It is the bugs in the GWT core that I feel need to be strongly prioritized. That is where any development resources that Google assigns to GWT are most profitably depl

UIBinder, HTMLPanel, and style interactions

2011-09-26 Thread Mike Dee
I'm noticing something weird. It is my first attempt at using HTMLPanel. The app is laid out with a DockLayoutPanel. The south panel is a footer panel and simply has a piece of text in it, which is always there. I want the text to be right justified with a bit of padding. Some Text Here

Deffered Binding failure when adding

2011-09-26 Thread Nik
I have a working project and tried to internationalize it. Added the Constants-Interface and one transcription file. After adding to gwt.xml of my project i'm always getting Deferred binding failed for "RateExchangeConstants'; expect subsequent failures. My code is here

Re: ie8 problem with gwt 2.4?

2011-09-26 Thread Chi Hoang
If Chrome-frame is not enabled on your page and you have it installed in your browser, you are most likely running into this issue http://code.google.com/p/google-web-toolkit/issues/detail?id=6665 On Sep 26, 10:23 am, Chi Hoang wrote: > Based on your user-agent, it seems like you have chrome fra

Re: sevaral bugs with cssresource (try not to repeat known issues)

2011-09-26 Thread Javier
Thanks Jens, im watching the http://code.google.com/p/google-web-toolkit/source/browse/trunk/user/src/com/google/gwt/user/rebind/UserAgentPropertyGenerator.java... therefore the best solution for me is create a static class, why about this problem? thx! On 26 sep, 16:51, Jens wrote: > I think yo

RF/Backend Code not working after Compiling

2011-09-26 Thread Mark Wengranowski
Hi Everyone, Probably an easy fix but for some reason my project is not working properly after i have compiled it to my application server. Specifically, when i run the project in hosed mode my pages will pull data from a database using request factory and update the text on the screen, everythin

Re: ie8 problem with gwt 2.4?

2011-09-26 Thread Chi Hoang
Based on your user-agent, it seems like you have chrome frame installed. GWT 2.4 added detection of chrome frame, and uses the safari user agent if it is installed and enabled. On Sep 26, 1:53 am, guillaume prime wrote: > We can see the problem on the GWT Showcase : > > Webpage error details >

Re: GWT+hibernate annotations+persisting Enum

2011-09-26 Thread Marko Borges
no... i actually have an enum called BoundType and an entity class called Boundtype. My enum is: public enum BoundType { UPPER, LOWER, REF; } my Boundtype is what i showed u before 2011/9/26 Juan Pablo Gardella > BoundType isn't an enum. It must be: > > enum BoundType { > ... > > } > > > > 2011

Re: GWT+hibernate annotations+persisting Enum

2011-09-26 Thread Juan Pablo Gardella
BoundType isn't an enum. It must be: enum BoundType { ... } 2011/9/26 Marko Borges > -src > --com.nameproject.client.services (where I use Services and ServicesAsync > and my EntryPoint) > --com.nameproject.server (where I have my ServicesImpl) (for example: > hibernateTemplate.save(object))

Re: GWT+hibernate annotations+persisting Enum

2011-09-26 Thread Marko Borges
-src --com.nameproject.client.services (where I use Services and ServicesAsync and my EntryPoint) --com.nameproject.server (where I have my ServicesImpl) (for example: hibernateTemplate.save(object)) --com.nameproject.shared.enums (my enum that i showed u before) --com.nameproject.shared.entities (

How Is the Best way to positions ListBox & textfield?

2011-09-26 Thread Jero
How is the best way to make this: First Name: [_] Last Name: [_] Date of Birth: [] Hi, I have seen many post and I am still in doubt as to what the best practice to position and Forms Labels & textfiefilds. That is doing them and FlexTable Basicpanel (tables) o

How Is the Best way to positions ListBox & textfield?

2011-09-26 Thread Jero
How is the best way to make this: First Name: [_] Last Name: [_] Date of Birth: [] Hi, I have seen many post and I am still in doubt as to what the best practice to position and Forms Labels & textfiefilds. That is doing them and FlexTable Basicpanel (tables) o

Re: Yet another obfuscation question, but related with Java Source Code Obfuscation

2011-09-26 Thread ihsan ciftci
I forgot mentioning the condition that we are creating a library (API) not a web page. The API contains a part of an IP (the gwt-safe Java library), because of that reason it should be at least obfuscated. On Sep 26, 6:48 pm, Jeff Larsen wrote: > you could use the unobfuscated version of the pro

Re: GWT+hibernate annotations+persisting Enum

2011-09-26 Thread Juan Pablo Gardella
Can you share the classpath? In what servlet container are you running or you make a test? Juan 2011/9/26 Marko Borges > I updated to version 3.6.7 final version and it looks that the same happens > :( > > Caused by: java.sql.BatchUpdateException: Batch entry 0 insert into > boundtype (type, na

Re: UiBinder

2011-09-26 Thread Alisson Prestes
You're not using the xml namespace prefix. http://code.google.com/webtoolkit/doc/latest/DevGuideUiBinder.html#Simple_binding Alisson Prestes www.google.com/profiles/javalisson On Mon, Sep 26, 2011 at 12:27 PM, Daniel Gerep wrote: > Hi fellas, > > I have a ui.xml file: > > http://dl.googl

Re: Yet another obfuscation question, but related with Java Source Code Obfuscation

2011-09-26 Thread Jeff Larsen
you could use the unobfuscated version of the project to create the javascript, then post javascript compile you could make sure sources are not included and your obfuscation scheme is implemented. You will probably want to implement a -noserver implementation to really get this going. -- Y

Re: GWT+hibernate annotations+persisting Enum

2011-09-26 Thread Marko Borges
I updated to version 3.6.7 final version and it looks that the same happens :( Caused by: java.sql.BatchUpdateException: Batch entry 0 insert into boundtype (type, name) values ('0', 'name') was aborted. Call getNextException to see the cause. I saw the cause and it is trying to insert integer 0

Yet another obfuscation question, but related with Java Source Code Obfuscation

2011-09-26 Thread ihsan ciftci
There are many topics about obfuscation, but they are about js obfuscation. I'm sure my question was asked before. But I didn't find. We have a java library which is closed source. With some effort, we modified the library as gwt-safe. The problem here is that this library should be closed source.

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

2011-09-26 Thread Rokesh Jankie
No definitely not: This is only with the callback Class (and in combination with a lot of data). Somehow the callback is not garbage collected properly in IE. The GWT team covered this part (of (new ClickHandler)...) See this link https://groups.google.com/forum/#!searchin/google-web-toolkit/cl

UiBinder

2011-09-26 Thread Daniel Gerep
Hi fellas, I have a ui.xml file: http://dl.google.com/gwt/DTD/xhtml.ent";> .important { font-weight: bold; } Texto Imagem I'm trying to use HTMl instead of GWT components. I have this code on Java class @UiField Button button; String firstName = "undefined"; @UiField Image im

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

2011-09-26 Thread Nicolas Antoniazzi
Interresting. But in this case, is not it the same problem for all anonymous classes ? Do not you have this problem with event handler ? myButton.addClickHanler(new ClickHandler() { public void onClick(ClickEvent e) {...} } 2011/9/26 Rokesh Jankie > Almost there... > > > method doSomething ()

Re: Basic CSS question

2011-09-26 Thread Mike Dee
Sorry, was a way for a week. Thanks, I got this working. I started over from scratch and it worked. Must have been something in there that I did (while experimenting) that prevented it from working. Mike On Sep 15, 12:18 pm, Ernesto Oltra wrote: > The documentation you have linked is for vesi

Re: GWT+hibernate annotations+persisting Enum

2011-09-26 Thread Juan Pablo Gardella
Sure, hibernate 3.2.5 not support jpa2 :), yes you must update your hibernate version, for example to 3.6.x. Version 4 I'm not sure if is stable. 2011/9/26 Marko Borges > Guess I have to update my Hibernate. I am using version 3.2.5 and maybe > need at least 3.5 to use JPA2. > > Am I correct? >

Re: GWT+hibernate annotations+persisting Enum

2011-09-26 Thread Marko Borges
Actually i am using hibernate-jpa-2.0-api-1.0.0.Final.jar I think it is supposed to work... 2011/9/26 Marko Borges > Guess I have to update my Hibernate. I am using version 3.2.5 and maybe > need at least 3.5 to use JPA2. > > Am I correct? > > Thanks Juan, really!!! > > > 2011/9/26 Juan Pablo G

Re: Custom cell, not responding to mouse clicks

2011-09-26 Thread Thomas Broyer
The problem is that you use a table in your rendering: http://code.google.com/p/google-web-toolkit/issues/detail?id=6750 Despite the issue status, I believe this is fixed (for 2.5) though: http://code.google.com/p/google-web-toolkit/issues/detail?id=5714 -- You received this message because you

Re: GWT+hibernate annotations+persisting Enum

2011-09-26 Thread Marko Borges
Guess I have to update my Hibernate. I am using version 3.2.5 and maybe need at least 3.5 to use JPA2. Am I correct? Thanks Juan, really!!! 2011/9/26 Juan Pablo Gardella > What jpa providers (and version) are you use? > > > 2011/9/26 Marko Borges > >> Well, thanks... >> >> I tried it and now

Re: GWT+hibernate annotations+persisting Enum

2011-09-26 Thread Juan Pablo Gardella
What jpa providers (and version) are you use? 2011/9/26 Marko Borges > Well, thanks... > > I tried it and now says it tries to insert integer but i dont know why: > public enum BoundType { > UPPER, LOWER, REF; > } > > Im my class i have the attribute: > @Enumerated(EnumType.STRING) > public Bo

Re: sevaral bugs with cssresource (try not to repeat known issues)

2011-09-26 Thread Jens
I think you can only use the user agent values that are defined by GWT which can be found in http://code.google.com/p/google-web-toolkit/source/browse/trunk/user/src/com/google/gwt/user/UserAgent.gwt.xml But the naming scheme is maybe a bit unlucky. Correct my if I am wrong but I think: - "ie6"

Re: GWT + SVN + Eclipse

2011-09-26 Thread lakumc
Hi Raymond, what's the exact error message that your collegues get? On 26 Set, 02:20, Raymond Cidad wrote: > Hello guys > I'm having a hard time setting up a GWT into eclipse to work with a team, > using SVN. > > Where we are: > 1. I created the project. Did some code. Runs fine. > 2. Create the

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

2011-09-26 Thread Rokesh Jankie
Almost there... method doSomething (){ callback c = createCallback(); } static AsyncCallback callback = null; AsyncCallback createCallBack(){ if (callback==null){ callback = new AsyncCallback() { // implement onSuccess // implement onFailure }

RequestFactory error management

2011-09-26 Thread ungarida
Hi all, the scenario is: - I have an ententy with its requestfatory, which manages correctly constraints violations. - I want also to catch an "SQLException" for a duplicate key and send an error message to the client. >From documentation is specified that onFailure callback "receives general f

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

2011-09-26 Thread ben fenster
so just to understand just replace anonymous in call callback with a variable will fix the problem ? instead of: call(new callback(){}); use : callback c = new callback(){}; call(c); ? On Sep 26, 1:29 pm, Rokesh wrote: > Hi All, > > I've been working on GWT for a while now and noticed somethi

Re: Custom cell, not responding to mouse clicks

2011-09-26 Thread Jonas
I just want to make it possible to select the cell by clicking somewhere inside it like a normal TextColumn for example. My cell just displays data using a table with an image and some headers but I can't select a row in the cell table by clicking somewhere on the image for example. If I change

Re: Do I have to use DTO if I use GWT + JPA?

2011-09-26 Thread Warren Tang
Thanks for your suggestions. I'll look into Gilead or something like Hibernate Filter (though I use EclipseLink). -- 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

compile multiple modules commandline

2011-09-26 Thread Fred
Hi Folks, I am trying to get ant to compile two modules (works fine with one) but I can't seem to figure out how to pass the gwt compiler two module names. As per documentation here: http://code.google.com/webtoolkit/doc/latest /DevGuideCompilingAndDebugging.html#DevGuideCompilerOptions I can do

add Handler to RichTextArea elements

2011-09-26 Thread Alesandro Lang
Is it possible to add for example a MouseOverHandler to all my tags inside a RichTextArea? (so far I don't know how I could solve this because these elements are no widgets) -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this

Re: GWT Designer

2011-09-26 Thread sasindran erambra
You can must create a gwt project first and then open the interface file in main window in both source and design mode. -- 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.co

sevaral bugs with cssresource (try not to repeat known issues)

2011-09-26 Thread Javier
Hi, @if user.agent I try to make conditional if with user.agent in cssresources, i make this example and it doesn' work in ie7 : @if user.agent ie7{ .cssname{ font-style: bold; } } however when I write "ie6" before "ie7" (as in this example code), it works properly for ie7: @if

Re: TextCell in Cell Table

2011-09-26 Thread Sudhakar Abraham
Subclass the Column class, and pass the TextCell in super class constructor. Try the below code. public class MyTextCellColumn extends Column { public MyTextCellColumn () { super(new TextCell()); } @Override public String getValue(YourDomainClass object) { return object

Re: Custom cell, not responding to mouse clicks

2011-09-26 Thread Thomas Broyer
On Monday, September 26, 2011 2:36:43 PM UTC+2, Jonas wrote: > > Hmm, I can't get it to work. Here's my full code: > > public class GroupCell extends AbstractCell > { > public GroupCell() > { > super("click"); > } > > @Override > public Set getConsumedEvents() > {

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

2011-09-26 Thread Magno Machado
interesting, Would it be possible to implement this optimization at the compiler level, so that programmers don't have to care about this? I mean, only on the IE permutations, or for all permutations if it doesn't have negative effects on other browsers Not something specific to callback, but for

Re: GWT+hibernate annotations+persisting Enum

2011-09-26 Thread Marko Borges
Well, thanks... I tried it and now says it tries to insert integer but i dont know why: public enum BoundType { UPPER, LOWER, REF; } Im my class i have the attribute: @Enumerated(EnumType.STRING) public BoundType getType() { return this.type; } and then i call it Boundtype bt = new Boundtype(na

smart gwt frame option

2011-09-26 Thread yashujn
hi all, I hope this time i get some rply plz guys help me m using smartgwt, i want to display yahoo home page to display in my portlet, and when i maximized my portlet yahoo page also maxmized In gwt Frame option is available nut in smartgwt no such option is ava

Re: Custom cell, not responding to mouse clicks

2011-09-26 Thread Jonas
Hmm, I can't get it to work. Here's my full code: public class GroupCell extends AbstractCell { public GroupCell() { super("click"); } @Override public Set getConsumedEvents() { return Collections.singleton("click"); } @Override public void onB

Re: GWT+hibernate annotations+persisting Enum

2011-09-26 Thread Juan Pablo Gardella
Use JPA2 if you can, it has native support to enums. See Mapping simple properties in hibernate manual reference, the *Enumerated *annotation. 2011/9/26 Marko Borges > Says that the column is o

Re: Custom cell, not responding to mouse clicks

2011-09-26 Thread Sudhakar Abraham
Override the getConsumedEvents() in AbstractCell, and specify event type as "click". You might also set preventDefault(), stopPropagation() property in NativeEvent. @Override public Set getConsumedEvents() { printNative(" getConsumedEvents() called "); return Collections.si

Re: Edit an object in a List without a ListEditor

2011-09-26 Thread -sowdri-
Thanks, HasRequestContext is in fact the right way to do it! -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/qOAvwhYiyHIJ. To post to this group

Re: GWT+hibernate annotations+persisting Enum

2011-09-26 Thread Marko Borges
Says that the column is of type XXX (my postgres enum) and I am trying to insert varchar... I know its an hibernate problem but i cant make some solutions showed in web cause client side does not support UserType class, for example. I am trying to use Type annotation btw, and it doesnt work... 20

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

2011-09-26 Thread Juan Pablo Gardella
Thanks for share!!! 2011/9/26 Rokesh > Hi All, > > I've been working on GWT for a while now and noticed something important > and peculiar. > In GWT you code in Java and almost automatically assume Java garbage > collection (because that's how you code). > > In this code sample: > http://code.go

Re: GWT+hibernate annotations+persisting Enum

2011-09-26 Thread Juan Pablo Gardella
Can you share the stack trace? 2011/9/26 Marko Borges > Hey everyone! > > I am having a problem in persisting a postgres enum using hibernate and > GWT. > > When i follow some instructions that i found around Web, it says that > client module does not support one class used to trick for persiste

Re: Do I have to use DTO if I use GWT + JPA?

2011-09-26 Thread Juan Pablo Gardella
See this thread 2011/9/25 Warren Tang > Some say transferring entities cross the wire may cause problems, e.g. lazy > loading. > > But I feel reluctant to introduce DTO. It's boilerplate and it's not

Re: Do I have to use DTO if I use GWT + JPA?

2011-09-26 Thread J.Ganesan
You may find DataStoreGwt handy. It has lazy loading and does away with DTO. J.Ganesan www.DataStoreGwt.com On Sep 26, 8:11 am, Warren Tang wrote: > Thanks for your reply. I also read this: > > http://code.google.com/webtoolkit/articles/using_gwt_with_hibernate.html > > It seems that I have to g

UIBinder Internationalization with regular properties file?

2011-09-26 Thread ss.require
What I don't like in the UIBinder Internationalization mechanism: 1)We must place "ui.xml template file" and "localized properties file" in the same folder. 2)"localized properties file" must have a large name like "GenMessages.properties" I need to use UIBinder with regular properties files w

Re: Drag & Drop support and GWT 2.4

2011-09-26 Thread Dimitrijević Ivan
Is there any information regarding GWT 2.4 drag and drop tutorial and documentation? -- 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/-/gpKU4NCRAk

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

2011-09-26 Thread Rokesh
Hi All, I've been working on GWT for a while now and noticed something important and peculiar. In GWT you code in Java and almost automatically assume Java garbage collection (because that's how you code). In this code sample: http://code.google.com/webtoolkit/doc/latest/DevGuideServerCommunic

Re: Edit an object in a List without a ListEditor

2011-09-26 Thread Thomas Broyer
...and use HasRequestContext so that the editor driver passes the RequestContext down to your editor (that's exactly what it was meant for: http://code.google.com/p/google-web-toolkit/issues/detail?id=5892 ). -- You received this message because you are subscribed to the Google Groups "Google

Re: Isn't the Activities and Places model violating the MVP pattern?

2011-09-26 Thread Thomas Broyer
If you value theory and "purity" more than pragmatism and productivity, then yes, it probably violates the pattern, as it doesn't use the observer pattern. But note that even Martin Fowler warns about the "dangers" of the observer pattern: http://martinfowler.com/eaaDev/OrganizingPresentations.

Re: too much code: GWT Development with Activities and Places

2011-09-26 Thread Aidan O'Kelly
On Sat, Sep 24, 2011 at 4:53 PM, Thomas Broyer wrote: > And BTW, MVP is a design pattern, and there's no one single way of > implementing it (the MVP articles in the GWT doc makes it kind of clear). > And the fact that Activities and Places (which people sometimes erroneously > call "MVP framewor

GWT+hibernate annotations+persisting Enum

2011-09-26 Thread Marko Borges
Hey everyone! I am having a problem in persisting a postgres enum using hibernate and GWT. When i follow some instructions that i found around Web, it says that client module does not support one class used to trick for persistence. Does anyone know how to do it? Thanks, Mark -- You received

Re: ie8 problem with gwt 2.4?

2011-09-26 Thread guillaume prime
We can see the problem on the GWT Showcase : Webpage error details User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; chromeframe/14.0.835.186; .NET CLR 1.1.4322; InfoPath.1) Timestamp: Mon, 26 Sep 2011 07:52:05 UTC Message: Object doesn't support this property or met

Re: Random SerializationException

2011-09-26 Thread Maverick
Update: I still don't know why the SerializationException was appearing each time on a different class, but in the end it turned out that a leaf-level class was responsible. Problem solved. On Sep 25, 10:32 pm, Maverick wrote: > Thanks for your reply; I'll try to investigate more. What is > diso

Re: Is there a limitation with GWT2.4 plugin for Eclipse3.4

2011-09-26 Thread Sai
Hi Sudhakar, One observation is, when I have a fresh eclipse which does not know anything about GWT at all, and if try do Project--> Properties -- >Google-->Web Toolkit-->Configure , I will not be able to find Google option. in that case how do we proceed getting GWT2.4 in the environment. Thanks