Re: Best practice GWT development with Glassfish

2010-10-11 Thread jocke eriksson
This is how I do it, but it requires that you use maven. If you don't use maven ignore this post. Create a maven pom project Create a ear module Create a ejb module Create a web module Create a client module also web add the client as an web overlay to the web module. Deploy the ear to

Re: Client Server Communication - Best practice

2010-10-07 Thread jocke eriksson
well you can't send a ObjectOutputstream to the client :). gwt does not run in a jvm. 2010/10/7 Will shatner.will...@gmail.com Hi, I have a question about using serializable objects vs JSON. The tutorials demonstrate the use of JSON for client server communication as well as serialized

Re: Client Server Communication - Best practice

2010-10-07 Thread jocke eriksson
So you have to send it in some other format GWT rpc or JSON. JSON has the advantage that it's not dependent on GWT. 2010/10/7 jocke eriksson jock...@gmail.com well you can't send a ObjectOutputstream to the client :). gwt does not run in a jvm. 2010/10/7 Will shatner.will...@gmail.com Hi

Re: Client Server Communication - Best practice

2010-10-07 Thread jocke eriksson
interface. On Oct 7, 11:59 am, jocke eriksson jock...@gmail.com wrote: So you have to send it in some other format GWT rpc or JSON. JSON has the advantage that it's not dependent on GWT. 2010/10/7 jocke eriksson jock...@gmail.com well you can't send a ObjectOutputstream

Re: MenuBar and EventBus

2010-09-22 Thread jocke eriksson
just delegate the event from the command class psudo code menuBar.addItem(name, new Command(){ @Override public void execute() { eventBus.fireEvent(new MyEvent()); } }); 2010/9/22 taldos mwamuf...@gmail.com I'm am looking to use the basic GWT MenuBar class in

Re: GWT Complier OutOfMemory issue

2010-09-17 Thread jocke eriksson
I had this trouble but my project was very small, but my solution was to divide my clientbundles to smaller ones. processing lots of images can consume very much memory. 2010/9/17 Chris Conroy con...@google.com That should be more than enough memory to run your compile. Do you have a stack

Re: GWT war file inside a EAR file

2010-09-08 Thread jocke eriksson
Well I hardly think this is GWT related. You should seek advice from your EJB server support, FAQ or mailing list. 2010/9/8 Marcelo Balloni marceloball...@gmail.com I made a thousand testes and nothing is working here =/ As an war file it works pretty fine, but i really need a ear package =/

CellTable and CeckboxCell

2010-08-27 Thread jocke eriksson
I having trouble with a CheckboxCell, the problem is that if a user clicks on the checkbox the event bubbles up to the row element. This behaver is not what I want, what is the best way to cancel the event from bubbling up. -- You received this message because you are subscribed to the Google

Re: CellTable and CeckboxCell

2010-08-27 Thread jocke eriksson
2010/8/27 Thomas Broyer t.bro...@gmail.com On 27 août, 10:45, jocke eriksson jock...@gmail.com wrote: I having trouble with a CheckboxCell, the problem is that if a user clicks on the checkbox the event bubbles up to the row element. This behaver is not what I want, what is the best way

Re: CellTable and CeckboxCell

2010-08-27 Thread jocke eriksson
, jocke eriksson jock...@gmail.com wrote: That's correct I don't want the click to update the selectionModel. Creating the Cell like new CheckboxCell(true); makes the SelectionModel to get no events at all. On the other hand if I pass in false all events gets pass. I guess I will have

Re: What are some of the most valuable frameworks in your project?

2010-08-27 Thread jocke eriksson
Gin :) love it 2010/8/27 Jeff Larsen larse...@gmail.com I'm about to embark on a new GWT app and am curious what you all think about some of the following utilities. I don't think I will be able to use Roo, but I am looking into 2.1. I must admit that I do not fully understand how all the

Re: GWT hosted mode is extremly slow

2010-08-26 Thread jocke eriksson
I found out that if you split your ClientBundles, memory consumptions goes down. So if you have large ClientBundles with many images try to divide them. Worked for me. 2010/8/26 haimke haim.schind...@gmail.com I am using GWT 2.0.3, firefox 3.6.8, gwt plugin, Eclipse Galileo, embedded Jetty

NegativeArraySizeException

2010-08-24 Thread jocke eriksson
Hello group I have a problem with this jvm bug http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4690476 I can't compile my project is there a workaround. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email

Re: NegativeArraySizeException

2010-08-24 Thread jocke eriksson
Yes but I have very little knowledge in how to patch the compiler. But the solution was to split the client bundle into several bundles. Jocke 2010/8/24 Lothar Kimmeringer j...@kimmeringer.de jocke eriksson schrieb: Hello group I have a problem with this jvm bug http://bugs.sun.com

Re: a and i instead of span style=... in RichTextAreaImplStandard

2010-08-16 Thread jocke eriksson
it. Best wishes, Ali On Aug 14, 4:53 pm, jocke eriksson jock...@gmail.com wrote: I looked in to this months ago and i think the generated markup is browser specific. For firefox I think you can send a command to it so it only uses valid xhtml markup. I know that tiny MCE uses this approach

Re: a and i instead of span style=... in RichTextAreaImplStandard

2010-08-16 Thread jocke eriksson
https://developer.mozilla.org/en/rich-text_editing_in_mozilla Now it should work 2010/8/16 jocke eriksson jock...@gmail.com https://developer.mozilla.org/en/rich-text_editing_in_mozillahttps://developer.mozilla.org/en/rich-text_editing_in_mozillaLook https://developer.mozilla.org/en/rich

Re: instance of Servlet in web.xml

2010-08-05 Thread jocke eriksson
I would say RMI is your only option to call methods directly. But to fill the queue you could use any transfer protocol. 2010/8/5 lam lama.gh...@gmail.com Hi, Thank you for answereing Currently google app engine. Does it matter? On Aug 4, 6:00 pm, igor mejia igorme...@gmail.com wrote:

Re: i18n translations

2010-08-05 Thread jocke eriksson
I can help you with swedish 2010/8/5 aditya sanas 007aditya.b...@gmail.com i can help u for marathi and hindi. -- Aditya On Thu, Aug 5, 2010 at 5:40 AM, igor mejia igorme...@gmail.com wrote: if you can i can help you with spanish 2010/8/4 ale aleee...@gmail.com Hi everybody, I'm

Re: servercontext and GWT

2010-08-05 Thread jocke eriksson
I think you are on the wrong track here. Create a URLConnection to the servlet and send your data as a string, then convert that string to objects or use a MVC framework like struts or stripes that will do that for you. 2010/8/5 lam lama.gh...@gmail.com Hi, Can you use server context with

Re: Filter and Sorting in new Data presentation widget

2010-08-04 Thread jocke eriksson
Have you tried change the list and refresh the celltable. 2010/8/4 Chris Conroy con...@google.com Please do not bump threads like this. It's rude, adds noise to the list, and it won't get your question answered any faster. On Wed, Aug 4, 2010 at 2:35 PM, Deepak Singh

Re: Filter and Sorting in new Data presentation widget

2010-08-04 Thread jocke eriksson
); adapter.refresh(); } }); 2010/8/4 Deepak Singh deepaksingh...@gmail.com **I tried by changing the list and table.redraw(). Even refresh did not work. Regards Deepak On Thu, Aug 5, 2010 at 1:17 AM, jocke eriksson jock...@gmail.com wrote: Have you tried change the list

Re: GWT applications in clustered environment

2010-08-02 Thread jocke eriksson
Well it has nothing to do with GWT, look on the faq for your container. 2010/8/2 Ameya Kulkarni amey...@gmail.com We have a GWT application that needs to be deployed on a clustered environment with 2 nodes with session persistence. We are seeing an issue: when node 1 sets something in the

Re: User management in GWT

2010-07-04 Thread jocke eriksson
If you will deploy to a servlet container, have a look on the security it has to offer. Then solve the problem at the client side. 2010/7/2 Paul Schwarz paulsschw...@gmail.com Acegi is now called Spring Security, and with that they have greatly reduced the xml configuration files required get

Re: UIBinder Benefits?

2010-06-23 Thread jocke eriksson
Great post! Jocke 2010/6/23 Blessed Geek blessedg...@gmail.com Looking at your annotation, I find that I have to learn yet another language. I mean learning the annotation style as a language. UiBinder is in XML and if you are familiar with XML, it's a breeze to understand what's going

Re: Personalized table using thead / tfoot / tbody

2010-06-01 Thread jocke eriksson
Well I thought more like a normal HTMLPanel and a table in it, and you could declare the table as an ui:field and keep your TableElement. 2010/6/1 Rizen vianney.dep...@gmail.com I created my table with TableElement and for the moment it seems to be the best way. The code is a little long and

Re: Feedback on Large scale app development MVP article

2010-06-01 Thread jocke eriksson
Am I stupid or isn't EventBus an implementation of observer/observable. 2010/6/1 Sripathi Krishnan sripathi.krish...@gmail.com There are a few things that you should keep in mind before you try to understand the MVP pattern 1. You don't have reflection or observer/observable pattern on

Re: Feedback on Large scale app development MVP article

2010-06-01 Thread jocke eriksson
I will answer my own question here, yes I am !! Thank god for the power of google. 2010/6/1 jocke eriksson jock...@gmail.com Am I stupid or isn't EventBus an implementation of observer/observable. 2010/6/1 Sripathi Krishnan sripathi.krish...@gmail.com There are a few things that you should

Re: Personalized table using thead / tfoot / tbody

2010-05-31 Thread jocke eriksson
Sounds like something the ui binder and html panel can solve. 2010/5/31 Stefan Bachert stefanbach...@yahoo.de Hi, when you are trying to re-use existing css, you need to create exactly the same structure. This means: either a GWT-widget supports this structure, or you have to build one of

Re: Custom component with DIV markup?

2010-04-30 Thread jocke eriksson
Use the ui binder and create an HTMLPanel. Thats what it's for. 2010/4/29 d95sld95 steen.laur...@gmail.com How do I create a custom component or composite that creates HTML markup like this? div class=footer_topimg src=images/pixel.gif alt= //div div class=footer_content div

Re: new GWT MVP article (part 2)

2010-04-23 Thread jocke eriksson
I think it's a very good explanation on MVP. But one thing that comes to mind is that they should explain why they check for nulls all the time. I think the if statements should be followed by else, at lest empty ones! explaining why it is ok to ignore the call. ex. if (presenter != null) {

Re: Develop UiBinder widgets??

2010-04-18 Thread jocke eriksson
Some questions: Do you import the namespace where the widget is. Is your widget a container meaning does it implement has widgets. 2010/4/16 Toni tonin...@gmail.com Hi there, I'm trying to make my new composite widget work with UiBinder. It is a widget intended to contain, for instance, a

Re: Irony: GWT Showcase demo does not work with Chrome

2010-04-09 Thread jocke eriksson
Ubuntu chrome 4.0.249.30 works for me. 2010/4/9 Russ 10wattmindt...@gmail.com The showcase does not work for me either. Chromium version 5.0.371.0 (43913) Ubuntu. If I change themes it seems to sort of work. However, I can't select things (check box, buttons, calender). On page load,

Re: RPC call in onModuleLoad()? Is it good approach??

2010-03-26 Thread jocke eriksson
Well I am no expert on the subject but I have also seen that video. I think the best solution is to download the data with your hostpage. But for that scenario I think your objects needs to be overlays so you can do an eval. 2010/3/25 kozura koz...@gmail.com I see no reason why making RPC calls

Re: working with a freelancer designer on a gwt project

2010-03-24 Thread jocke eriksson
Well we let the designer team do the design in photoshop then we implement it. Because a designer should not have to learn all does tools. 2010/3/24 dk dkberk...@gmail.com Hello everyone, I have been developing a gwt+grails application but I am not happy with the default widget styles and

Re: UI Binder and MVP

2010-03-24 Thread jocke eriksson
RootPanel is a singleton so that should not be the case. Could you share some code thats shows how the view is created and attached to the RootPanel. 2010/3/24 skippy a...@2lehmans.com I am using the UI Binder to build a site. I like the MVP design pattern shown in the contacts example.

Re: GWT and java mail api

2010-01-31 Thread jocke eriksson
Remove appengine-api-1.0-sdk-1.2.6.jar from class path if you do not use it. 2010/1/31 loucat lou...@gmail.com Maybe I wasn't clear... I'm NOT using AppEngine, it's disabled and I don't want to use it... So I don't know if this is the right place to ask help but my mail method works outside

Re: GWT - cache.html

2010-01-24 Thread jocke eriksson
.htm is used because you want the request to go to a controller, which is fine. Then you redirect or forward to your jsp or html file. 2010/1/23 rimple sidhu rimple.si...@gmail.com I am using GWT in springframework and I cannnot use *cache.html in my set up. So I am trying to use

Re: HostedMode/Dev Mode, 2.0 and Javascript Overlay Types

2010-01-24 Thread jocke eriksson
How do you create an instance of JSMyInterface. If you are doing eval then i think you have to first create an JsArray and copy the elements to the ArrayList. This is beacuse there is now way to now that it is an ArrayList when you using eval. But I could be wrong. 2010/1/24 Roger Studner

Re: how to automate gwt applications

2010-01-23 Thread jocke eriksson
Web Driver should work. 2010/1/23 vamsi vamsipra...@gmail.com Can I know how to automate the gwt application using opensource automation tools. I have tried selenium but that doesnt seem to work fine, Any idea on opensource tools for automating GWT Applications. Thanks in advance

Re: MVP example on Wiki, completing the thought.

2010-01-05 Thread jocke eriksson
I think a better solution would be setModel(TableModel model) where TableModel is an iterface, like the Swing TableModel. This way you will have a table that can display all sorts of domain objects. 2010/1/5 Benju b...@fastcastmedia.com On the GWT wiki there is a new article

Re: Java Server-side responses to GWT

2009-12-28 Thread jocke eriksson
Well you should have a look on overlay types. This is how i would do it. 1) Create a JSON string on the server representing your ArrayList with Strings when a request comes in. 2) Return that string as an Http response. 3) Create a JSNI method that can convert that JSON String, like this