Re: MVP event generation

2012-02-20 Thread Nitheesh Chandran
Yeah that helped me to display the DialogBox when the user clicks on the cell. i have used like this db.setWidget(new LineView()); Now the DialogBox is displaying but i am creating a chart in the LineView() with database records. That chart is not coming. But when i simply use by passing a token

MVP event generation

2012-02-20 Thread Nitheesh Chandran
Hello , I am working on a MVP project. I want to generate an event when the user clicks on the FlexTable cell. So using the MVP pattern i have created a event class and its corresponding handler interface in the event package. And the following way i fired the event. I want anyone of you to tell m

why hasn't GWT an interface for Node or Element?

2012-02-20 Thread Alex Luya
In some use cases,we do need it. -- 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 unsubscribe from this group, send email to google-web-toolkit+unsubscr...@google

Re: GWT in enterprise systems (SAP, AS/400)

2012-02-20 Thread karim duran
Dear Dominikz*,* * * Ok, i understand that you don't want to use Java and i had a look at your PDF before my last answer. I agree with you : RPG native *pgm are fast. But there's some points i had to consider when i worked on projects i told you about. 1) You can use jt400 without any WebSphere o

Deploy GWT App to Tomcat - Validation Errors

2012-02-20 Thread Henry Crocker
I have a very small sample GWT application that I created as a proof of concept for my company. The goal was to use existing DAOs and Beans along with the RequestFactory to access and display data. It appears I am very close to getting this to work. I see the following in my tomcat log: SEVERE:

Re: MVP and RPC: What makes sense?

2012-02-20 Thread Matias Costa
> why should the View tell the Presenter "get the file" and the Presenter the tell the > view "show this file". Because : 1) Error handling, this complicates the logic. 2) Display independence. Useful if you go mobile or more usual, while you create a new version of the interface, you can have

Re: GWT strange code generation on float numbers

2012-02-20 Thread Andrey Korzhevskiy
.01 can be expressed in JS floating number. The thing is not in IEEE and runtime number representation. The thing is in that literal constant should not be changed. I mean if in Java code I see 'float myNum = 0.01', I expect to see it in generated JS as 'var myNum = 0.01' -- You

No LayoutPanel.onResize() event on panel attach

2012-02-20 Thread Antón Kuranov
Hello, I need a panel that lays out its children manually according it's current size. I did it changing onResize() method of LayoutPanel. The problem is that onResize() is not called initially when the panel is just attached, only when resized, and thus children sizes could not be set: when attac

MVP and RPC: What makes sense?

2012-02-20 Thread Thad
I'm still trying to get my head around this aspect of MVP: Where do I handle my RPC calls? Theory's answer seems to be "in the Activity/ Presenter" while simplicity's answer as often is "in the View". I'm mindful of Thomas Broyer's comment, "My rule of thumb: do what you think is best for you" (htt

Re: GWT.create - why the ? wildcard?

2012-02-20 Thread Chris Price
Thanks, I haven't looked into GWT-RPC since I did the tutorial so I'd forgotten about that use case. On Mon, Feb 20, 2012 at 4:09 PM, Thomas Broyer wrote: > Because of GWT-RPC: MyServiceAsync service = GWT.create(MyService.class); > MyServiceAsync doesn't extend MyService, they technically have n

Re: GWT in enterprise systems (SAP, AS/400)

2012-02-20 Thread dominikz
Dear Karim, I'm very aware of jt400 library. I've done tons of things with that over a couple of past years. One problem with it is that it does not support everything you'd like to do with AS/400. The other is that it's performance is dreadful. Trust me, I checked it, even had lectures about i

Re: GWT strange code generation on float numbers

2012-02-20 Thread Alan Chaney
On 2/20/2012 7:46 AM, Steve wrote: My guess is it's because .01 cannot be expressed exactly as a float. Like base 10 cannot express 1/3, IEEE floats have trouble with 1/10 and derivatives. Steve Yes, that's right, 0.01f is not exactly representable with an IEEE floating point number. I

Re: GWT.create - why the ? wildcard?

2012-02-20 Thread Thomas Broyer
Because of GWT-RPC: MyServiceAsync service = GWT.create(MyService.class); MyServiceAsync doesn't extend MyService, they technically have no relationship at all, they're only tied together by a naming rule. -- You received this message because you are subscribed to the Google Groups "Google Web

Re: GWT in enterprise systems (SAP, AS/400)

2012-02-20 Thread karim duran
Hi Dominik, I read the PDF and i'd like to tell you that i do the same on the AS400. You can embed a JAVA library into your project, containing anything you need to communicate with RPG programs on the iSerie. If you add this library into your GWT project, it's even more easy and fun. You can als

Re: GWT strange code generation on float numbers

2012-02-20 Thread Steve
My guess is it's because .01 cannot be expressed exactly as a float. Like base 10 cannot express 1/3, IEEE floats have trouble with 1/10 and derivatives. Steve On Feb 8, 9:54 am, Andrey Korzhevskiy wrote: > Hello everyone, > > I found interesting issue. Suppose I have this java code: > >

GWT.create - why the ? wildcard?

2012-02-20 Thread Chris Price
I've just been caught out by a ClassCastException from GWT.create, it turned out to be a simple copy/paste fail when writing unit tests but it got me thinking. How come GWT.create is defined like so - public static T create(Class classLiteral) { instead of like so - public static TRet create(

Re: No type for token

2012-02-20 Thread Marco Asteriti
On Monday, February 20, 2012 9:29:54 AM UTC-5, Thomas Broyer wrote: > > Several things: > >- Annotation processing in Eclipse a barely usable. I battled for >hours yesterday to make it refresh the generated DeobfuscatorBuilder. > IIRC, >I refresh the project in eclipse, then restar

Re: No type for token

2012-02-20 Thread Thomas Broyer
Several things: - InstanceRequest vs. Request doesn't matter - Your AddressProxy is obviously referenced from PersonProxy (I suppose you have a getter in addition to the setter?) - The DynaTableRf doesn't use JPA or JDO or whatever, it stores everything in-memory, so it doesn't ne

Re: GWT in enterprise systems (SAP, AS/400)

2012-02-20 Thread Jeff Chimene
Hi Dominik: Very impressive! Good luck w/ these projects. It's great to see how the legacy and current technologies work together. Cheers, jec On 2012-02-19, dominikz wrote: > Dear developers, > > I'm using GWT in combination with SAP and IBM's AS/400 (aka IBM i) systems. > I thought that this

Re: No type for token

2012-02-20 Thread Marco Asteriti
Thanks Brandon, I tied cleaning and GWT compile just in case (it did work for getting request factory validation to work, once) but it didn't have the desired effect. My request context is very similar to the one you linked, the difference is I used only Request for all my method invocations,

Re: No time is shown in Column

2012-02-20 Thread Jens
DateCell uses DateTimeFormat.PredefinedFormat.DATE_FULL as default, see: http://google-web-toolkit.googlecode.com/svn/javadoc/2.4/com/google/gwt/cell/client/DateCell.html#DateCell() If your want a different format string you have to provide one using: http://google-web-toolkit.googlecode.com/s

No time is shown in Column

2012-02-20 Thread tong123123
DateCell dateCell = new DateCell(); Column dateColumn = new Column(dateCell){ public Date getValue(Log log){ return log.getLog_dtm(); } }; the return type is java.util.Date, but when output is UI, only date portion is shown, what is the reason? -- You received this message be

Re: Offline support for mobile devices

2012-02-20 Thread dominikz
Thanks, I was aware of the project, but did not know that it supports the feature we 'alternatively' implemented. I hope they resolved the issue with Opera Mobile and Firefox we had. Will definitely check and compare against our version. Always great to have support from the community. Thanks