Re: GWT and Objectify

2010-05-09 Thread Dalla
: Do you have javax.persistence.Id in your gwtc classpath? --Sri On 9 May 2010 11:37, Dalla dalla_man...@hotmail.com wrote: But I can´t get this to work. If I put an @Id annotation in my GWT-class, the compiler tells me [INFO]          [ERROR] Line 6: The import javax.persistence

GWT and Objectify

2010-05-08 Thread Dalla
Hi all I´m trying to understand how to use Objectify with GWT. In the features list you can read Objectify entities can be used in GWT without the need for Data Transfer Objects. Sounds really good, problem is I don´t understand how. It seems like Objectify needs the @Id annotation to persist

Re: FlowPanel inside DockLayoutPanel center element

2010-02-28 Thread Dalla
Thanks, works like a charm :-) On 27 Feb, 17:57, kozura koz...@gmail.com wrote: Throw a float:left style on all the labels and they'll flow left to right, this lets you sortof replace Horizontal and Vertical panels with this div-based approach.  

FlowPanel inside DockLayoutPanel center element

2010-02-27 Thread Dalla
Hi all I´m having an issue using FlowPanel inside the center element of a DockLayoutPanel when using UiBinder. I expected the widgets to flow from left to right, but instead they flow from top to bottom. That is, given the following UiBinder code: g:center g:FlowPanel

EasyMock async methods?

2010-02-03 Thread Dalla
Hi all I´m currently testing EasyMock for my GWT non widget unit tests. Was wondering if there are any good approaches to testing async methods? Found http://googletesting.blogspot.com/2009/08/tott-testing-gwt-without-gwttest.html, but that´s about 6 months old. Is this still the best way to go?

Handle events in both controller and presenters?

2010-01-30 Thread Dalla
Would it be good practice to handle an event in both the controller aswell as in a presenter? For example, let´s say that I want to respond to an event when a row in a table is clicked. I want to add a history token, aswell as update a second table based on what row was clicked in the first

Re: Handle events in both controller and presenters?

2010-01-30 Thread Dalla
Mmm yeah I guess you´re right. I´m probably trying a little to hard to mimic the Contacts example... On 31 Jan, 04:04, Thomas Broyer t.bro...@gmail.com wrote: On Jan 30, 11:22 pm, Dalla dalla_man...@hotmail.com wrote: Would it be good practice to handle an event in both the controller

Re: GWT 2.0 UI BINDER MVP

2010-01-27 Thread Dalla
and Gamestats are child widgets here, they are injected into their presenters as usual. MainPresenter is the presenter responsible for the parent view, MainPanel. Beside this, I pretty much used code similar to the one suggested by jarrod above. On 26 Jan, 16:46, Dalla dalla_man...@hotmail.com

Re: GWT 2.0 UI BINDER MVP

2010-01-26 Thread Dalla
To clarify what I´m looking for, let´s assume that I´m working with Googles MVP Contacts example. Instead of having EditContactView and ContactsView as completly separate views, I want to add them to a DockLayoutPanel, showing both views at the same time. Let´s assume that I want to put the

Re: GWT 2.0 UI BINDER MVP

2010-01-25 Thread Dalla
And what would you do, if the AppController does not contain both the presenter and the view (which should be the case IMHO). How would that code look? On 25 Jan, 18:35, jarrod jarrod.carl...@gmail.com wrote: The constructors in the last post should have been as follows:   public

XML to POJO library, any ideas?

2009-12-29 Thread Dalla
active? Regards Dalla -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com

Re: MVP Article... Source Code?

2009-12-29 Thread Dalla
+1 On 29 Dec, 23:42, fvisticot fvisti...@gmail.com wrote: +1 On 29 déc, 20:51, Yaakov yaakov.chai...@gmail.com wrote: Yes, +1 here! Great article, but please post the source code. Thanks, Yaakov. On Dec 29, 1:00 pm, jpnet jprichard...@gmail.com wrote: I really like this

Re: XML to POJO library, any ideas?

2009-12-29 Thread Dalla
-web-tool...@googlegroups.com] På vegne av Dalla Envoyé le: 29. desember 2009 12:32 Til: Google Web Toolkit Emne: XML à la bibliothèque de POJO, des idées? Salut tous! Ce n'est pas vraiment un pur GWT question ... mais ... J'ai utilisé la bibliothèque Xstream avant de convertir XML à

MVP Architecture source code?

2009-12-22 Thread Dalla
Don´t know if it´s been there for some time now, but I noticed that a section named MVP Architecture has been added to the GWT Tutorial section. It looks a lot like the best practice example that Ray Ryan used in hos GWT Best practice session on Google I/O 2009. It there any chance of the

Re: Problem using UiBinder with extended DockLayoutPanel

2009-12-07 Thread Dalla
One what line do you get this error? On 6 Dec, 14:34, lemaiol lema...@gmail.com wrote: Hi guys, I have started trying the new features in GWT 2.0 (awesome ones, congrats! :) but I found some behavior that I cannot completely understand. I want to extend the DockLayoutPanel API in a class of

GWT + GAE best practice?

2009-12-06 Thread Dalla
Hi all I´m just now getting started with using GWT and GAE. Curious about best practices when it comes to JDOs, and how to handle them client side. Let´s say I want to store a String and a User object that would be picked up from the UserService. Since the GWT compiler doesn´t emulate

Re: No source code is available error for RemoteServiceServlet

2009-12-06 Thread Dalla
This error message usually means that you have imported a non emulated class in your client package. Make sure that you are only using RemoteServiceServlet (and extentions thereof) in the server sub package. Client side you should use RemoteService. On 6 Dec, 23:29, Joseph

Re: No source code is available error for RemoteServiceServlet

2009-12-06 Thread Dalla
-web-toolkit-incubator/wiki/PathsHandlingFAQ And what parts of the JRE the GWT compilier emulates here: http://code.google.com/intl/sv-SE/webtoolkit/doc/1.6/RefJreEmulation.html On 7 Dec, 07:00, Dalla dalla_man...@hotmail.com wrote: This error message usually means that you have imported a non

Re: GWT + GAE best practice?

2009-12-06 Thread Dalla
Think I´ll probably just go with DTOs then, using a third party lib for this seems a bit overkill if you ask me :-) On 6 Dec, 13:51, Jonas Huckestein jonas.huckest...@me.com wrote: Hi Dalla, in our team we create an interface for each model object which the JDO objects and client objects

Re: MVP + UiBinder, thoughts?

2009-12-01 Thread Dalla
It´s pretty much a one man team (me), so maybe I won´t benefit very much from using the UiBinder then... On 1 Dec, 09:48, mariyan nenchev nenchev.mari...@gmail.com wrote: Yes, it has nothing to do with MVP. If your team is small and none of them are designers i don't see a reason to use

Re: MVP + UiBinder, thoughts?

2009-12-01 Thread Dalla
Lots of good thoughts. Cleaning up the code inside the view sounds really nice, so I guess I´ll be sticking with UiBinder after all :-) Does anyone know any good resources for testing examples using GWT? I would be interested in examples using plain JUnit aswell as GWTTestCase. On 1 Dec, 17:12,

MVP + UiBinder, thoughts?

2009-11-30 Thread Dalla
I´ve been working on some small projects using GWT 1.6.4 and 1.7.1. I know alot of people tried their best to pick up on Ray Ryans GWT Best practice from Google IO 2009, where using MVP was one of the main guidelines. I recently started looking at GWT RC1 and the new UiBinder. Using the UiBinder

Re: MVP + UiBinder, thoughts?

2009-11-30 Thread Dalla
OK, so if I understand you correctly, you´re not using the @UiHandler annotation at all? Sounds like a good approach which won´t affect the MVP pattern as we know it at all. On 30 Nov, 23:31, Thomas Broyer t.bro...@gmail.com wrote: On 30 nov, 22:39, Dalla dalla_man...@hotmail.com wrote: I´ve

Re: How create an EAR with GWT and other jars?

2009-11-19 Thread Dalla
I guess you could do it with maven somehow, but I´m not that good with maven, and tbh I have been asking myself this exact same question. Let´s hope someone can help :-) On 19 Nov, 17:47, iaio81 stefano.taurie...@gmail.com wrote: Hi all, Iìve deployed GWT as WAR in JBOSS and EJBS as jars, I

Trouble installing Google Eclipse Plugin 1.2 RC1

2009-11-17 Thread Dalla
I´m having issues getting the Plugin version 1.2 RC1 to work correctly in Eclipse. I followed the instructions found here: http://code.google.com/p/google-web-toolkit/wiki/GWT_2_0_RC I´m using Eclipse Galileo 3.5 and downloaded the following archive:

Trouble installing Google Eclipse Plugin 1.2 RC1

2009-11-17 Thread Dalla
I´m having issues getting the Plugin version 1.2 RC1 to work correctly in Eclipse. I followed the instructions found here: http://code.google.com/p/google-web-toolkit/wiki/GWT_2_0_RC I´m using Eclipse Galileo 3.5 and downloaded the following archive:

Re: Trouble installing Google Eclipse Plugin 1.2 RC1

2009-11-17 Thread Dalla
1. Yep, several times now :) 2. No, no parent Google folder 3. Might explain it, tons of errors refering to invalid menu extensions and the likes for GWT, see attachment On 17 Nov, 22:58, Chris Ramsdale cramsd...@google.com wrote: Dalla, Couple of investigative questions: 1. Did you

Re: Trouble installing Google Eclipse Plugin 1.2 RC1

2009-11-17 Thread Dalla
23:11:13.187 !MESSAGE Plug-in 'com.google.gwt.eclipse.core' contributed an invalid Menu Extension (Path: 'com.google.gdt.eclipse.suite.popupMenu.project' is invalid): com.google.gwt.eclipse.core.actions.GWTCompilePojectAction On 17 Nov, 23:16, Dalla dalla_man...@hotmail.com wrote: 1. Yep, several

Re: Trouble installing Google Eclipse Plugin 1.2 RC1

2009-11-17 Thread Dalla
PM, Dalla dalla_man...@hotmail.comwrote: I´m having issues getting the Plugin version 1.2 RC1 to work correctly in Eclipse. However only selecting New from the file menu there´s a Google Web Toolkit directory containing options to create ClientBundle and UiBinder among other things So

Re: GWT-StockWatcher: German translation of parameterized messages appears as English

2009-11-09 Thread Dalla
You cheated ;-) In the tutorial, you create two separate properties files; StockWatcherConstants_de.properties and StockWatcherMessages_de.properties But you have only created StockWatcherConstants_de.properties, and in there you put both your static and generalized strings. Try creating a

Re: how to use a server class in client code

2009-11-09 Thread Dalla
I´m not sure you can solve this particular problem the way DaveS suggested, not without modifying the class anyway. Even if you created a separate .jar and referenced that from your client project, the GWT compiler wouldn´t understand the annotations. My problem was similar to yours, and would

Re: how to use a server class in client code

2009-11-08 Thread Dalla
I guess it depends on what your server side object looks like. I´ve been using a mapping framework called Dozer in a couple of projects where I needed to use EJB-classes on the client side. What you do in that case is basically create a POJO that is a mirror of your EJB, but without all the

Re: Trying to make a dialog box

2009-11-01 Thread Dalla
Do like Ian suggested and you should be fine. The dialog.center(); both centers the dialogbox and shows it, if it´s not showing already, On 1 Nov, 20:07, tedpottel tedpot...@gmail.com wrote: Hi, I'm trying to have a dialog box that would pop up when a edit button is press.  When my dialog box

Re: Downloading image

2009-10-24 Thread Dalla
Wouldn´t you need to flush/close the stream aswell? On 24 Okt, 03:52, hou0175 kajita...@gmail.com wrote: Hello experts, I'm trying to create a page where I can display images stored in a database. I've writen the server code as follows. public void doGet(HttpServletRequest request,

Re: How to strip formating on paste? (rich text box)

2009-09-05 Thread Dalla
RichTextArea extends FocusWidget, which has a number of handlers for keyboard events. This snippet will let you catch a paste, assuming that the users paste using CTRL+V RichTextArea area = new RichTextArea(); area.addKeyDownHandler(new KeyDownHandler() {

Re: GWT EJB

2009-09-04 Thread Dalla
I´m not sure I completly understand your question, but this I know: You cannot use an EJB with annotations on the GWT client side, since GWT does not emulate javax.persistence.* To reuse existing EJBs, you´ll have to map them to a POJO DTO and then transfer it to the client side. A mapping

Re: javax.persistence package

2009-09-03 Thread Dalla
- it seems it does not guarantee writing less config files? is it a security issue that we do not to put DTOs in client side in dozer project? Thanks, Tolga On Wed, Sep 2, 2009 at 4:54 PM, Dalla dalla_man...@hotmail.com wrote: Yes, exactly. This is pretty much it: DozerBeanMapper

Re: javax.persistence package

2009-09-02 Thread Dalla
Correct, not on the client side anyway. GWT does not emulate javax.persistence.*, importing that package on the client side would cause errors when compiling. However you COULD use EJB3, if you keep the mappings in a separate file. But´s that´s not very flexible. I use EJB3 myself on the server

Re: javax.persistence package

2009-09-02 Thread Dalla
and by using dozer.. you automatically translate them and use in client side, right? On Wed, Sep 2, 2009 at 3:03 PM, Dalla dalla_man...@hotmail.com wrote: Correct, not on the client side anyway. GWT does not emulate  javax.persistence.*, importing that package on the client side would cause

Async testing?

2009-08-31 Thread Dalla
Hi all So we´ve all learnt that MVP is *for the win* when working with GWT, since we can easily switch our GUI widgets to mock widgets, enabling us to use regular jUnit tests for our code. But how do you handle the async calls made to a server when testing? Can we use jUnit at all?

Re: Async testing?

2009-08-31 Thread Dalla
Kimmeringer j...@kimmeringer.de wrote: Dalla schrieb: So we´ve all learnt that MVP is *for the win* when working with GWT, since we can easily switch our GUI widgets to mock widgets, enabling us to use regular jUnit tests for our code. But how do you handle the async calls made

Re: Plain OO question

2009-08-25 Thread Dalla
course amount. Any condition evaluates itself in a course context, and you can implement the apply() method as a Visitor. The EvaluationResult can be a new price or saving. Regards. -- From: Dalla dalla_man...@hotmail.com Sent: Monday, August

Plain OO question

2009-08-24 Thread Dalla
Hi all This is probably a pretty basic OO question, but here goes: I have a simple Course class, containing a course ID, course name, course price etc. I´m looking for a good way to implement different types of special offers on these courses, like buy five courses, get 10% off or from

Re: XML Schema or DTD for GWT configuration files

2009-08-23 Thread Dalla
How do you install it to the IDE ? Sounds like a nice idea :-) On 22 Aug, 08:03, George Georgovassilis g.georgovassi...@gmail.com wrote: Sure, it's gwt-module.dtd in the root directory when you unzip the installation archive. On Aug 21, 10:54 pm, Eric erjab...@gmail.com wrote: Is there

Re: What is Google App Engine?

2009-08-23 Thread Dalla
(right?) On Aug 21, 2:43 pm, Dalla dalla_man...@hotmail.com wrote: Google App Engine is Googles cloud platform, which allows you to use Googles existing infrustructure for your own projects. You don´t need to use it at all if you don´t want to. Read more athttp://code.google.com/intl/sv-SE

Re: Server Side: Writting a File on Disk

2009-08-23 Thread Dalla
You have to put this code in the *.server sub-package of your project. The GWT complier has got nothing to do with the server side code. On 23 Aug, 04:39, Robert Lang rmlan...@gmail.com wrote: Hello, I need to write a file on server's disk, but FileOutputStream, FileWriter, etc, but isn't

Re: What is Google App Engine?

2009-08-21 Thread Dalla
Google App Engine is Googles cloud platform, which allows you to use Googles existing infrustructure for your own projects. You don´t need to use it at all if you don´t want to. Read more at http://code.google.com/intl/sv-SE/appengine/ On 21 Aug, 19:14, GTM gigakabuteri...@gmail.com wrote: I

Re: MVP question

2009-08-20 Thread Dalla
I think maybe Ian had other ideas than what I suggested above. Implementering the HasInternationalContactDetails on the ContactDetails model, and then returning it from the ContactDetailsInterface would somehow make the widget aware of the model... Which I think would break the MVP pattern...?

Re: MVP question

2009-08-20 Thread Dalla
I´m still not sure I´m following :-/ Could you please post a short example? On 20 Aug, 13:15, Ian Bambury ianbamb...@gmail.com wrote: The widget isn't aware of the model, it's just a widget for user input. Ian http://examples.roughian.com 2009/8/20 Dalla dalla_man...@hotmail.com I

Re: MVP question

2009-08-19 Thread Dalla
I recall getting this error aswell. The exception Caused by: java.lang.ClassNotFoundException:com.google.gwt.core.client.GWTBridge is thrown if you try to invoke GWTMockUtilities.disarm(); GWTMockUtilities.restore(); without having gwt-dev.jar in your classpath. On 19 Aug, 17:52, Davis Ford

Re: MVP question

2009-08-19 Thread Dalla
I remember testing this approach when playing around with the GWT Maps API, (the GWT specific API for Google Maps), and it didn´t work very well. It seems like you run into trouble when testing complex Widgets that make calls to other widgets. I was using Jmock, not EasyMock, but it should be

Re: MVP question

2009-08-19 Thread Dalla
I think I can see where you´re getting at, but I´m a bit confused here so I need to ask a couple of more questions :-) Let´s say we return an interface as in your example, our interface would then look something like interface ContactDetailsInterface { HasInternationalContactDetails

MVP design issue - any work around?

2009-08-18 Thread Dalla
Hi all A design question for everyone using MVP for their GWT implementations :-) I have a simple interface like so: interface ArrivalWidgetInterface { HasText getSlotText(); } Let´s say that I want to set the SlotText in my widget implementing

MVP design issue - any work around?

2009-08-18 Thread Dalla
Hi all A design question for everyone using MVP for their GWT implementations :-) I have a simple interface like so: interface ArrivalWidgetInterface { HasText getSlotText(); } Let´s say that I want to set the SlotText in my widget implementing

Re: MVP design issue - any work around?

2009-08-18 Thread Dalla
wrote: How about void setEnabled(boolean enabled); It's really up to the view how it indicates whether something is disabled or not. Different views for the same interface might do different things. Ian http://examples.roughian.com 2009/8/18 Dalla dalla_man...@hotmail.com Hi all

How to test FlexTable click?

2009-07-27 Thread Dalla
Hi all I have a click handler method like this in my presenter widget.getTable().addClickHandler(new ClickHandler() { @Override public void onClick(ClickEvent event) { FlexTable table = (FlexTable) event.getSource(); Cell cell =

Re: How to test GWT MapWidget?

2009-07-22 Thread Dalla
Help pl :-) On 21 Juli, 19:17, Dalla dalla_man...@hotmail.com wrote: Hi all I´m trying my best to implement the MVP pattern to be able to create fast unit tests, using JUnit4 only instead of using GWTTestCase. I´ve trying to create a simple application using the GWTGoogleMaps API

How to test GWT MapWidget?

2009-07-21 Thread Dalla
of writing tests here without using GWTTestCase? Are there any better ways of implementing my own interface that doesn ´t involve exposing the entire MapWidget? Would Selenium (which I have never used) be a better idea? --Dalla http://date-time.appspot.com

Re: What is the best way to enable save/apply button on TextBox edit

2009-07-20 Thread Dalla
); } else { button.setEnabled(false); } } }); --Dalla http://date-time.appspot.com/ On 20 Juli, 18:48, Sean slough...@gmail.com wrote: You can put on a keyboard listener, and before you enable the Save button, make sure

Re: how to inherit external module jxl ? Problems working with excel sheets

2009-07-19 Thread Dalla
You could do this using a file upload to the server, do the excel work on the server side and then serialize the data and send it back to the client, displaying it in any way you want using GWT. --Dalla http://date-time.appspot.com/ On 17 Juli, 03:19, sly sly.wicker...@gmail.com wrote: So

How to center root panel?

2009-07-18 Thread Dalla
Hi! I have trouble getting my root panel centered in the host page. I´ve looked at the posts here and tried things like CSS body { margin: 0 auto 0 auto; padding: 0; width: 792px; } But my page is still not centered vertically, only horizontally. Posting my onModuleLoad() below public

Re: UnsatisfiedLinkError

2009-07-17 Thread Dalla
class inside the client package or a sub package of client? --Dalla http://date-time.appspot.com/ On 17 Juli, 09:50, lumo lumo2...@gmail.com wrote: right click on the project - properties - google - web toolkit yes, there i selected use google web toolkit with specific sdk gwt 1.7.0

Re: UnsatisfiedLinkError

2009-07-16 Thread Dalla
Hi Lumo, Are you doing this on the server side? You cannot use any Maps API functions or types on the server side, they are client side only. --Dalla http://date-time.appspot.com/ On 15 Juli, 10:25, lumo lumo2...@gmail.com wrote: Hi NG! i wrote a class where i create a new marker and want

Re: UnsatisfiedLinkError

2009-07-16 Thread Dalla
Can you please post the entire funcion so we can have a look at it? --Dalla http://date-time.appspot.com/ On 16 Juli, 08:18, lumo lumo2...@gmail.com wrote: no, i do not have any code running on the server. all i got is a google map and some javascripts in the browser (all written in google

Re: sort incubator PagingScrollTable

2009-07-15 Thread Dalla
I haven´t used PagingScrollTable myself, but I used ScrollTable which is also avalible in incubator. Have a look at that one --Dalla http://date-time.appspot.com/ On 14 Juli, 15:22, DAVID PACHECO dpachec...@gmail.com wrote: I need sort PagingScrollTable , who can help me? The version

Re: Local Data Error

2009-07-15 Thread Dalla
I really think we would need to see some code to figure out what´s going on here --Dalla http://date-time.appspot.com/ On 14 Juli, 14:36, mugathur mugat...@gmail.com wrote: I'm experiencing a strange set of behaviors and was wondering if anyone had any ideas.  I'm using the datastore to write

Re: java.lang.UnsatisfiedLinkError

2009-07-15 Thread Dalla
on the server side --Dalla http://date-time.appspot.com/ On 13 Juli, 11:12, jlc488 jlc...@gmail.com wrote: Hi, I am a newbie here. Please understand if my question is stupid. Ok, I am thingking about implementing simple test code like GWT + S3. I use GWT 1.6.4 and to work with S3, I use

Using MVP + Google Maps for GWT API

2009-07-15 Thread Dalla
someone can help me out :-) --Dalla http://date-time.appspot.com/ --~--~-~--~~~---~--~~ 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

Using MVP + Google Maps for GWT API

2009-07-15 Thread Dalla
someone can help me out :-) --Dalla http://date-time.appspot.com/ --~--~-~--~~~---~--~~ 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

Re: javascript in war folder not included after building war file

2009-07-15 Thread Dalla
folder on compile. You can read more about the public directory here: http://code.google.com/intl/sv-SE/webtoolkit/doc/1.6/DevGuideOrganizingProjects.html#DevGuideModules --Dalla http://date-time.appspot.com/ On 15 Juli, 09:06, Marko Vuksanovic markovuksano...@gmail.com wrote: Aren't

Re: Using MVP + Google Maps for GWT API

2009-07-15 Thread Dalla
based on Ray's presentation. It's here: http://code.google.com/p/gwt-presenter Would also love to hear if you have any suggestions for improvements. David On Jul 15, 11:29 pm, Dalla dalla_man...@hotmail.com wrote: Hi all! Looking at the Google I/O 2009 best practices, we learn

Re: How to create my own Event for Composite Widgets ?

2009-07-14 Thread Dalla
I can also recommend you looking at Chris Musings blog entry on event handling, very good examples there that got med started: http://www.itsolut.com/chrismusings/2009/04/28/business-events-with-gwt-16/ --Dalla http://date-time.appspot.com

Re: PHP programmer - is GWT for me?

2009-07-14 Thread Dalla
it would be a good idea for other reasons. I would start with GWT if I was you, but like I said, I was a java developer before, and also you´re asking your question on a GWT forum, so what´s to expect? :-) --Dalla http://date-time.appspot.com/ On 14 Juli, 13:20, pappfer papp...@gmail.com wrote

Re: New GWT and Java programmer having trouble with RequestBuilder

2009-07-13 Thread Dalla
Happy to help :-) --Dalla http://date-time.appspot.com/ On 13 Juli, 16:19, tedpottel tedpot...@gmail.com wrote: Thank you, it runs now! On Jul 12, 9:00 am, tedpottel tedpot...@gmail.com wrote: I am trying to send a http request to my webserver using GWT. I keep on getting a error

Re: How to show the PopupPanel on the top?

2009-07-12 Thread Dalla
Can you please post the code you´re using to create the PopUp panel? --Dalla http://date-time.appspot.com/ On 12 Juli, 18:48, 任胜韦 slayersxi...@gmail.com wrote: I create a simple PopupPanel and let it show().But it's awalys under the element(such as a label ,a html,etc) already on the page.I

Re: new event handling problem

2009-07-12 Thread Dalla
something creative here } } }); --Dalla http://date-time.appspot.com/ On 12 Juli, 14:31, stymie jamesty...@gmail.com wrote: I am used to 1.5 way of handling events.I am trying to figure out what button sent the event. In 1.5 it was something along the lines of widget/sender

Re: Programmatic click event

2009-07-12 Thread Dalla
I haven´t been working with GWT 1.5 myself, only 1.6. But it sounds like you should take a look at the HandlerManager class. Obviously it managers handler (previously listeners), and it also has methods like manager.addHandler(type, handler) manager.fireEvent(event) --Dalla http://date

How to get GWT site indexed?

2009-07-09 Thread Dalla
Hi I´m wondering if someone has a tip or two to give about SEO when it comes to GWT apps. I have a very basic site at http://date-time.appspot.com/ which has not even been indexed. Considering it´s a very simple site I wouldn´t expect it to be very high on the rankings, but I should be able to

Re: Getting Problem in adding Panel to the content Pane

2009-07-07 Thread Dalla
You say that you have a class named HPanel, yet your error seems to reference a class named VPanel1. Are you sure you added a HPanel to the Root? On 7 Juli, 07:15, BhaveshShah dakbhav...@gmail.com wrote: Hi all, I have created one class HPanel extends HorizontalPanel now if I try to add

Re: Newbie question re returning persisted objects via RPC to client

2009-06-28 Thread Dalla
You would have to do it either like you suggested; create two separate classes, one persistence class, and then one DTO class. Or you could create just a POJO and keep the persistence info in a separate mapping file. From what I understand, most tend to go with the first option. On 28 Juni,

Handling events in child widgets

2009-06-28 Thread Dalla
Hi all This is probably not that difficult, but I´d like to hear how you would solve this problem. Let´s say I have a widget that extends composite, using a Decorator Panel as a base panel. This is my base panel where I´ll create a controller and some models. In the decorator panel I put

Re: MVC question

2009-06-16 Thread Dalla
Thanks alot for all your answers :-) Will have a good read here when I have the time to check all the links etc. I actually watched Ray Ryans presentation from Google IO 2009, and the MVP pattern looks very similar to the MVC pattern that Struts 2 claims to implement: A controller between the

Re: gwt1.6 sample dynamic table

2009-06-16 Thread Dalla
Check the gwt incubator, there´s a scrolltable example here. Don´t be fooled by the name, it includes sorting too! ScrollTable demo here: http://collectionofdemos.appspot.com/demo/index.html Source here:

Re: DialogBox Width Problem in v.1.6.4

2009-06-15 Thread Dalla
Hi Ed, Are you building you´re project from a Google Web Application Project? If this is the case, check your .css in the \war folder. There is a setting in there which affects the Dialog Box width if I recall correctly. On 15 Juni, 05:30, Ed edgam...@gmail.com wrote: Hi, After upgrading to

MVC question

2009-06-14 Thread Dalla
Hi all! I´ve been working pretty much with MVC in Struts 2, but it´s a pretty different story using MVC, so I have a question. From what I´ve read, It´s pretty much: On user input, View calls Controller. Controller updates Model. Model fires event, which is observed by the View. View updates

Re: Event handler for model ?

2009-06-13 Thread Dalla
I thinkt I´m getting the hang of things now, using your examples and the ones from the link I posted On 12 Juni, 09:39, mnenchev nenchev.mari...@gmail.com wrote: Well what exactly you want to do? Dalla wrote: Could you please post some examples will? Or maybe send me some code

Where to put static content?

2009-06-11 Thread Dalla
On http://code.google.com/intl/sv/webtoolkit/doc/1.6/DevGuideOrganizingProjects.html we can read the following about static content, specifically in the example an image called logo.gif An image file available to the application code. You might load this file programmatically using this URL:

Re: Where to put static content?

2009-06-11 Thread Dalla
Oh... guess you just create a folder rather than a package for the resources... On 11 Juni, 11:23, Dalla dalla_man...@hotmail.com wrote: So if I get you right, I should have com/example/app/arrivaljournal/client,  Sub-package containing all the client-side source code. com/example/app

Re: Event handler for model ?

2009-06-11 Thread Dalla
No clues anyone? On 10 Juni, 14:40, Dalla dalla_man...@hotmail.com wrote: Hi I´m having trouble understanding how to implement an event handler for my custom objects with the new event handler system. Let´s pretend I have a very simple model class like this one: public class ArrivalData

Re: Event handler for model ?

2009-06-11 Thread Dalla
didn't seem overweight but we'll see how it performs once I get the project into a perf test. On Jun 10, 8:40 am, Dalla dalla_man...@hotmail.com wrote: Hi I´m having trouble understanding how to implement an event handler for my custom objects with the new event handler system. Let´s

Event handler for model ?

2009-06-10 Thread Dalla
Hi I´m having trouble understanding how to implement an event handler for my custom objects with the new event handler system. Let´s pretend I have a very simple model class like this one: public class ArrivalData { private Date date; private boolean processing = false;

Re: Return type of AsyncCallback methods

2009-06-10 Thread Dalla
Simply put, you don´t, because the call itself won´t return anything. The return type is defined inside the AsyncCallback. If you have an interface like so: public interface GreetingServiceAsync { void greetServer(String input, AsyncCallbackString callback); } String will be your

Re: Handle events from separate class?

2009-05-22 Thread Dalla
Handler implementsClickHandler{     private TextBox textBox = null;     public Handler(TextBox textBox ) {          this.textBox = textBox;     }     } Jimhttp://www.gwtorm.com- GWT ORMhttp://code.google.com/p/dreamsource-orm/ On May 21, 11:18 am, Dalla dalla_man...@hotmail.com

Handle events from separate class?

2009-05-21 Thread Dalla
I guess this question is not really GWT specific, but I haven´t been working much with handlers at all when developing web applications earlier. I´ll make a very simple example: public class EventManagerTest implements EntryPoint { public void onModuleLoad() { final

Re: Handle events from separate class?

2009-05-21 Thread Dalla
jim.p...@gmail.com wrote: Using GwtEvent.getSource() retrieves the source that last fired this event so you can differentiate event source widgets. Jimhttp://www.gwtorm.com- GWT ORM On May 21, 4:44 am, Dalla dalla_man...@hotmail.com wrote: I guess this question is not really GWT specific

Re: Handle events from separate class?

2009-05-21 Thread Dalla
them              }              else {//some other widget that fires the same event              }         } } Jimhttp://www.gwtorm.com- GWT ORM On May 21, 9:43 am, Dalla dalla_man...@hotmail.com wrote: Yes, this I know. In this example the source would be the sendButton, right

Re: Design best practice

2009-05-20 Thread Dalla
Oh forgot to mention something important... I have to be able to add/subtract dates aswell... Back to using Calendar object I guess? On 19 Maj, 20:29, Dalla dalla_man...@hotmail.com wrote: Thanks, that seems like a better solution :-) On 19 Maj, 17:26, Salvador Diaz diaz.salva

Design best practice

2009-05-19 Thread Dalla
I´m building an application where I need to print the day of the week and the current date, like so: Tuesday, 2009-05-19 This would be very easy using the Calender class. But since this isn´t part of the JRE emulation, I guess I have to solve it another way. What would be the best way to do

Re: Design best practice

2009-05-19 Thread Dalla
antonio.diaz@gmail.com wrote: You can (a) call to the server and receive a string formatted date or (b) build the string using Date.getDay( ), Date.getMonth( ), ... and an array with Sunday, Monday, ... On May 19, 4:57 pm, Dalla dalla_man...@hotmail.com wrote: I´m building

Use GWT with existing EJBs

2009-05-18 Thread Dalla
Hi all Been searching these groups and the web in general to find an answer to my question, but haven´t been able to wrap my head around what I´ve found so far. I´m playing around a bit trying to figure out how to make use of my existing EJBs. For example I have an existing EJB like this:

  1   2   >