Need Help to develop a Shop Management System

2012-09-14 Thread aby paul
Hi Friends

I plan to develop a Shop Management System using GWT and My SQL. Any
one can give a guidance for me. My Skype ID is aby_paul _varghese

Regards
Aby Paul


On 9/13/12, google-web-toolkit@googlegroups.com
 wrote:
> =
> Today's Topic Summary
> =
>
> Group: google-web-toolkit@googlegroups.com
> Url: http://groups.google.com/group/google-web-toolkit/topics
>
>   - Problem acessing [1 Update]
> http://groups.google.com/group/google-web-toolkit/t/cf85e946a4821cc4
>   - Editor with ListBox in UiBinder [1 Update]
> http://groups.google.com/group/google-web-toolkit/t/f86d3dfc369f3f4
>   - Large memory leak in IE8 when GWT runs on a new Window [1 Update]
> http://groups.google.com/group/google-web-toolkit/t/a0a3d902692474ec
>   - Web workers [1 Update]
> http://groups.google.com/group/google-web-toolkit/t/c70bb14fa3b468ad
>   - Something other than a double was returned [1 Update]
> http://groups.google.com/group/google-web-toolkit/t/e4b60025eac5ec95
>   - GWT 2.5 RC1 Is Here! [3 Updates]
> http://groups.google.com/group/google-web-toolkit/t/790b56620914074e
>   - Absolute positioning images [1 Update]
> http://groups.google.com/group/google-web-toolkit/t/2c3e1feaf5b42319
>   - Development Mode in  Eclipse stopped working - no errors, nothing on
> console [5 Updates]
> http://groups.google.com/group/google-web-toolkit/t/41ee85ef50ad03ee
>   - How to see Runtime Exceptions in SuperDevMode? [1 Update]
> http://groups.google.com/group/google-web-toolkit/t/5d98e76f73952c86
>   - need help in calling servlet on gwt +gae [2 Updates]
> http://groups.google.com/group/google-web-toolkit/t/8e0b5979b602411a
>   - RadioCell? [2 Updates]
> http://groups.google.com/group/google-web-toolkit/t/62293f117bbfc14d
>   - Using same HTML Page several times [1 Update]
> http://groups.google.com/group/google-web-toolkit/t/ca2ece58eab3743
>   - Table with horizontal header [1 Update]
> http://groups.google.com/group/google-web-toolkit/t/af3941e858305f69
>   - highlight mouse-overed row in CellList? [1 Update]
> http://groups.google.com/group/google-web-toolkit/t/22f767f3cf5b690a
>   - add two pagers to cellTable widget [1 Update]
> http://groups.google.com/group/google-web-toolkit/t/d4d2c51bd34eaa72
>   - multiple views [1 Update]
> http://groups.google.com/group/google-web-toolkit/t/2295f4f92d487904
>   - Date and time pickers in any timezone [1 Update]
> http://groups.google.com/group/google-web-toolkit/t/92bc094af91dc4aa
>
>
> =
> Topic: Problem acessing
> Url: http://groups.google.com/group/google-web-toolkit/t/cf85e946a4821cc4
> =
>
> -- 1 of 1 --
> From: Alberto Mancini 
> Date: Sep 13 11:45AM +0200
> Url: http://groups.google.com/group/google-web-toolkit/msg/8000fd5dcf8aafa7
>
> Hi,
> did you noticed that you are accessing
> /com.interbookerappl.interbookerappl/EntityService
> but in web.xml you mapped the servlet on /interbookappl/EntityService ?
>
> Don't know why the full package name is there but i suppose that
> changing the url-pattern should
> solve the problem (note that there is also a typo in the xml file,
> interbookappl instead of interbookerappl).
>
>
> Ciao,
>Alberto.
>
>
>
>
>
> =
> Topic: Editor with ListBox in UiBinder
> Url: http://groups.google.com/group/google-web-toolkit/t/f86d3dfc369f3f4
> =
>
> -- 1 of 1 --
> From: Drew Spencer 
> Date: Sep 13 02:38AM -0700
> Url: http://groups.google.com/group/google-web-toolkit/msg/e31ec1241e13db9
>
> Thanks for the reply. So, I guess I will wait until 2.5 comes out and see
> whether there are any changes made in the near future.
>
> I can live with a null value there for a while as it's only in development
> stage.
>
> You guys are great.
>
> Drew
>
> On Wednesday, 5 September 2012 16:18:24 UTC+1, Jens wrote:
>
>
>
> =
> Topic: Large memory leak in IE8 when GWT runs on a new Window
> Url: http://groups.google.com/group/google-web-toolkit/t/a0a3d902692474ec
> =
>
> -- 1 of 1 --
> From: stuckagain 
> Date: Sep 13 02:33AM -0700
> Url: http://groups.google.com/group/google-web-toolkit/msg/b6ff35d7020bd690
>
> Hey,
>
> I seem to be seing similar issues when putting a GWT application in an
> IFrame and then removing the IFrame. It looks like the entire GWT
> application leaks.
>
> I saw your bug report in the bug tracker of GWT. I added my comment there
> 

Integer and int are not equal... Especially if received via JSNI

2012-09-14 Thread pash7ka
I've spent a huge amount of time trying to find the source of one strange 
bug in my app, so I want to share what I've found.
First I should say I'm using GWT 2.3 currently, so i don't know if the 
described behavior changed in latest version.

My app is receiving some data from my server, displays it and after some 
user actions send something from this data back to the server.
I’ve used standart GWT RPC for this data exchange and everything was fine.
Then we decided to receive that data via JSON requests and here my trubles 
started: trying to send data back to the server (with the old GWT RPC 
method) throwed the com.google.gwt.user.client.rpc.SerializationException: 
undefined at Unknown.anonymous(Unknown Source).

Well, I’m not going to tell all the steps how I’ve found the problem, just 
the result.
My data class looks like this: 
public final class MyDataObj  extends JavaScriptObject {
//… NoArgs constructor and other stuff
public final native Ineger getMyDataVal() /*-{ return this.myDataVal; }-*/;
}

I’ve used Integer and not int here because null value is perfectly valid 
here and has its own meaning.
But in JSON this was a normal JavaScript integer or the absence of the 
property.
It was fine. Just until GWT had to serialize this Integer for RPC. Or until 
I’ve tried to use toString() or intValue() on it. That fails, since this 
was not an Integer.

-- 
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/-/qMjpqA8NryEJ.
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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Nasty overlay types restrinction : Only one JavaScriptObject type may implement the methods of an interface

2012-09-14 Thread Sebastián Gurin
nino: thank you very much! I have my two question responded in your code 
snippet. My last question: I notice you perform most of the job in 
javascript / jsni, nice. How is your experience using  eclipse+google Java 
code refactoring tools ? in particular, method and class renames ? Thank 
you again.- 

On Thursday, September 13, 2012 5:51:30 PM UTC-3, nino wrote:
>
> In one our our project we have a base which goes something like 
>
> public class ProxyObject {
>
> protected JavaScriptObject jsObj;
>
> protected ProxyObject() {
>
> }
>
> }
>
>
> The we do 
>
> public class View extends ProxyObject {
>
> public View() {
>
> createPeer();
>
> }
>
>
> View(JavaScriptObject obj) {
>
> jsObj = obj;
>
> }
>
>
> private List children = new ArrayList();
>
> @Override
>
> public native Point getAnchorPoint() /*-{
>
>  var jso = 
> th...@com.emitrom.gwt4.ti.mobile.client.core.ProxyObject::getJsObj()();
>
>  var obj = jso.anchorPoint;
>
>  var toReturn = 
> @com.emitrom.gwt4.ti.mobile.client.ui.Point::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);
>
>  return toReturn;
>
> }-*/;
>
> }
>
> We create the wrapped JSO in the  constructor and delegation is done using 
> JSNI which save the need of the explicit cast.
>
> To call methods on the wrapped JSO we use JSNI
>
>
> Hope this could help
>
>
>
> 2012/9/13 Sebastián Gurin >
>
>> Hi nino, i'm making a second Java API for my yuigwt project, on top of my 
>> JSO based Java API, wrapping JSO objects and delegating methods to it. I 
>> have a couple of questions for you about this. I'm not sure, perhaps the 
>> best is to create another thread for this questions, but here they go: 
>>
>> I have a rich class hierarchy for example, ClassC extends ClassB extends 
>> ClassA
>>
>> Now for ClassA I'm writing: 
>>
>> public class ClassA {
>> protected JSOClassA _wrapped; 
>> }
>>
>> The problem is that in ClassB and ClassC I must cast _wrapped to 
>> JSOClassB and JSOClassC for implementing method delegation, so I ended with 
>> something like
>>
>> public class ClassB extends ClassA {
>>   protected JSOClassB _wrappedClassB() {
>> return _wrapped.cast(); 
>>   }
>> }
>> public class ClassC extends ClassB {
>>   protected JSOClassC _wrappedClassC() {
>> return _wrapped.cast(); 
>>   }
>> }
>>
>> can you think of another more simpler way to solve this ? 
>>
>> And the other question is, how or where should I initialize the _wrapped 
>> field ? at constructor ? 
>>
>> Regards and thanks in advance. 
>>
>> On Tuesday, September 11, 2012 7:24:56 AM UTC-3, nino wrote:
>>
>>> Answer below in Bold.
>>>
>>> Cheers
>>>
>>> 2012/9/11 Sebastián Gurin 
>>>
>>> Nino; I very like your thoughts and I agree with them. My reply between 
 lines: 

 On Monday, September 10, 2012 5:05:25 PM UTC-3, nino wrote:
>
> The main Question is do you want YUI users to use Java or do you want 
>  to bring Java Devs to YUI ? 
> I think you will get more traction by choosing the latter.
>
>
 I also thought of that. I started learning how to port JavaScript 
 libraries to GWT  with my project http://code.google.com/p/**
 raphael4gwt/  , a vector 
 drawing library. As such, performance was a requirement, and then a Java 
 API using  GWT overlays directly was a requirement. But now for YUIGWT I 
 wonder if that is true. Some notes: 

>>>
>>>
>>> *Yeah overlay type can be inherited but there is not much u can 
>>> do with that.Plus the methods beeing all finals one cant override them. Not 
>>> really flexible imho*. 
>>>

 1) overlay types CAN be inherited, but I agre that is very 
 unconfortable for end GWT/Java users to do this... this is a very 
 important  "issue" in my project I think...
 2) I very liked your question: "do you want YUI users to use Java or do 
 you want  to bring Java Devs to YUI ? " and it is making me reflect a lot. 
 thanks. 
  

> While a zero overhead API gives you the ability to  easely write YUI 
> code in java soon you will get users request  like "Why cant i extends 
> class X to add my own functions". Overlay types dont give you.
>
> We had this problems while implementing our libraries. We started 
> first with 1:1 match of the JS API. Until our users start complaining 
> about 
> the API not beeing extensible. What you would expect  when using an OO 
> language like Java. 
>

 Well, but tell me, do you write a second Java API, with real java 
 classes that wrapp the Js objects ? and if so, do you use your previous 
 1:1 
 Java API for writing the this second more-java-confortable API?  (I sould 
 do that) and if so, do you use some Java code generator tool for 
 artificial 
 create the second Java API form the first 1:1 - overlays Java API ? can 
 this be mechanized at all? 

 

need help on layout design

2012-09-14 Thread Vik
Hie

Can someone help on
http://stackoverflow.com/questions/12397288/automatic-resize-of-the-tab-panel-based-on-contentsplease?

Thankx and Regards

Vik
Founder
http://www.sakshum.org
http://blog.sakshum.org

-- 
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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Properties file with GWT

2012-09-14 Thread Deepak Singh
Hi,

I have some div id's in my host html page. Which might change regularly,
based on that we will show / hide some content.
I need to manage this requirement.

I thought to update the id's in a properties file on client side and the
file will be read on client side and shows / hides the content based on
id's found in properties file.

Is it a good approach ?

If yes, how to use properties file ?

Regards
Deepak Singh

-- 
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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Date and time pickers in any timezone

2012-09-14 Thread Andy
Got it. I saw that file 
-- user/src/com/google/gwt/i18n/client/constants/TimeZoneConstants.properties 
-- and wasn't sure if that was the approach you were taking. Thanks.


On Friday, September 14, 2012 10:25:55 AM UTC-4, Andrei wrote:
>
> GWT has a file with JSON strings for all time zones they support (more 
> than enough). I copied it to my server resources.

-- 
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/-/yifyMezy2AoJ.
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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Struts2 and GWT Intgration

2012-09-14 Thread Joseph Lust
Struts is principally concerned with marshaling/un marshaling "actions" 
from HTTP requests to action classes and back. This is achieved in a rather 
verbose manner with various XML files.

With GWT, if you use things like GWT-RPC, you don't really need Struts. You 
just use the gwt-servlet to handle those GWT calls. So, it can live with 
Struts. If you are experiencing issues, let the forum know so we may assist.


Sincerely,
Joseph

-- 
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/-/QqT7QWT-XVMJ.
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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: GWT MVP Architecture

2012-09-14 Thread Aryan






On 14 Sep, 14:21, stuckagain  wrote:
> Why does the view need to be a singleton ?

I guess why I am having view as singleton is having better performance
as I see views are expensive to create.
Not creating em everytime saves operation deep down like
"Document.create -> appendChild. and so the DOM manipulation
that saves time.

>
> Anyway, when you are done with the presenter, then you need to tell it so.
> In that case it can unregister any installed handlers.
>
> David
>
>
>
> On Thursday, September 13, 2012 8:09:30 PM UTC+2, Aryan wrote:
> > Hi all,
>
> > lets look at the code:
>
> > public class MyView implements IMyView {
>
> >     Button click;
> > .
> >     public HasClickHandlers getClick(){
> >               return click;
> >      }
>
> > }
>
> > public class MyPresenter {
>
> >    public interface IMyView {
> >           public HasClickHandlers getClick();
> >     }
>
> >     private IMyView view;
>
> >     public MyPresenter(IMyView view){
> >       this.view = view;
> >       bind();
> >     }
>
> >     private void bind(){
> >        view.addClickHandler(new ClickHandler(){
> >             public void onClick(ClickEvent e){
> >                 Window.alert("heeo");
>
> >             }
> >     }//binds end
>
> >  }// class ends
>
> > //(We are not using Activities or any MVP framework)
>
> > ok tats it. Now in applicaton the view is singleton. but the presenter are
> > not, so they are made as and when needed like :
>
> > MyPresenter p = new MyPresenter(view); //view is singleton throughout the
> > application; assume getting it by some factory
>
> > Now suppose after a while if I have created *10 MyPresenter *instance
> > that will add *10 clickHandler *to button "c*lick" . So one click event
> > will be handled 10 times by 10 different handlers.*
> > **
> > I can see here it as happening when click the button I get 10 times alert
> > window.
>
> > So where I misunderstood the MVP architecture, what I am missing.
> > please help
> > **
> > Thanks in advance.- Hide quoted text -
>
> - Show quoted text -

-- 
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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Validating RPC Serialization at Compile Time?

2012-09-14 Thread Joseph Lust
A number of times we've run into serialization exceptions with GWT-RPC. Of 
course following the serialization policies for GWT-RPC to the letter can 
prevent this, but not all of our devs are keen on these.

Since the compiler sees every RPC async interface, and is compiling those 
objects passed via the interface, is it possible to detect RPC 
serialization issues at compile time rather than runtime when it is first 
used? Seems like the compiler should be able to do this but I've not been 
able to find a setting for it. That would save folks time and make using 
GWT-RPC less error prone. Heck, adding it to the GWT Eclipse Plugin for 
automated error checking would be even more useful.

Thanks for any tips or tricks you may be able to provide. :)



Sincerely,
Joseph

-- 
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/-/xDXk_IhmZyoJ.
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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: How to send images with image map to client and create widget with it

2012-09-14 Thread Jens

>
> So for each image to server requests are necessary: 
>
> 1 to get the dto and create html with image-url 
> 2 to get the image from servlet
>

Yes, although the second request is done by the browser and not by your GWT 
app. To remove the browser request, you would need to use data uris 
(base64) and use the data uri instead of the server url. But as you said, 
you don't want that.

Just be aware of XSS attacks. A possible man in the middle attack could 
probably modify the raw html while its send from server to client. The html 
would then contain some evil javascript that will be executed by the 
browser in your app's context as soon as you render the html.

-- J.

-- 
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/-/sS0o72BbqN4J.
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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: How to send images with image map to client and create widget with it

2012-09-14 Thread tanteanni
thx jens

So for each image to server requests are necessary: 

1 to get the dto and create html with image-url 
2 to get the image from servlet

my hope was/is there is a way with one request/response? And indeed i get 
the image map as html. so my dto would be very simple: 2 Strings (url + 
map).

On Friday, 14 September 2012 16:25:35 UTC+2, Jens wrote:
>
> Create a DTO that describes the image map, something like:
>
> ImageMap
> - String: imageUrl (would point to your png-image servlet)
> - List: areas (calculated on server using your lib)
>
> ImageMap.Area:
> - ShapeTypeEnum: shape (RECT, CIRCLE, POLY)
> - List: coords
> - String: href
> - String: title
>
> Then create a custom widget that can render an image map using , 
>  and  and use the DTO information to configure the widget.
>
> If your lib creates raw HTML for the image map then you probably only need 
> the imageUrl and the raw HTML in your DTO and render the raw HTML directly 
> using GWT's HTML widget. But you have to do some sanity checks on the raw 
> HTML to prevent cross site scripting attacks. 
> So if you can, build the HTML on the client side and only transfer the 
> needed data from server to client.
>
> -- J.
>

-- 
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/-/q_BMSp0qzCcJ.
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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: transitioning from flex to gwt

2012-09-14 Thread Jens
The documentation of GWT gives a pretty good overview about UI / server 
communication: https://developers.google.com/web-toolkit/doc/latest/DevGuide

For a widget overview you can take a look at the 
Showcase: http://gwt.google.com/samples/Showcase/Showcase.html#!CwCheckBox

-- J.

-- 
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/-/vYOIv0IF7BoJ.
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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Date and time pickers in any timezone

2012-09-14 Thread Andrei
GWT has a file with JSON strings for all time zones they support (more than 
enough). I copied it to my server resources.

-- 
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/-/sMaot5gvxmQJ.
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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: How to send images with image map to client and create widget with it

2012-09-14 Thread Jens
Create a DTO that describes the image map, something like:

ImageMap
- String: imageUrl (would point to your png-image servlet)
- List: areas (calculated on server using your lib)

ImageMap.Area:
- ShapeTypeEnum: shape (RECT, CIRCLE, POLY)
- List: coords
- String: href
- String: title

Then create a custom widget that can render an image map using ,  
and  and use the DTO information to configure the widget.

If your lib creates raw HTML for the image map then you probably only need 
the imageUrl and the raw HTML in your DTO and render the raw HTML directly 
using GWT's HTML widget. But you have to do some sanity checks on the raw 
HTML to prevent cross site scripting attacks. 
So if you can, build the HTML on the client side and only transfer the 
needed data from server to client.

-- J.

-- 
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/-/YHhETqfWYDgJ.
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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: RequestFactory + ejb3

2012-09-14 Thread marlondom
https://gist.github.com/807082

Em sexta-feira, 2 de setembro de 2011 14h02min15s UTC-3, thiago borges 
martins escreveu:
>
> Good afternoon staff, 
>
> I am developing a system and adopted the gwt + smart for the 
> presentation layer and the back end I work with ejb3. The project is 
> all in maven and modularized. 
>
> My problem is that GWT can not make conversation with my ejb3, I use 
> the specification requestfactory, Could someone help me?

-- 
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/-/9ral7qesrukJ.
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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



How to send images with image map to client and create widget with it

2012-09-14 Thread tanteanni
On server side i have a lib (can be modified) that produces png images and 
corresponding imagemap for mouse hover titles. But how to use them with 
gwt? I already have a little servlet that could png-images to client (on 
client side gwt Image objects are created and added to widgets).
Due to compatibility concerns and user friendliness i don't want to use 
embedded images (base64) . So how to send image and map to client and how 
to plug it together into a widget?

-- 
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/-/ZeoK_RJMXccJ.
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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



transitioning from flex to gwt

2012-09-14 Thread Jaggernat
hi guys

I have been working in adobe flex for the last 3 years and serverside
java for the last 10 years.
Now i have to work with GWT on the UI with java server side.
I want to know the transition process from flex to gwt(if anyone can
help me).

In flex we had datagrids, advanced datagrids, item renderers, event
listeners,
remote calls to java server side(using Bindable,RemoteAlias) which are
some of the features i have used.
Are there equivalent features in gwt?

Any responses will be greatly apprecaited.
thanks.

-- 
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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: GWT MVP Architecture

2012-09-14 Thread stuckagain
Why does the view need to be a singleton ?
 
Anyway, when you are done with the presenter, then you need to tell it so.
In that case it can unregister any installed handlers.
 
David

On Thursday, September 13, 2012 8:09:30 PM UTC+2, Aryan wrote:

> Hi all,
>  
> lets look at the code:
>  
> public class MyView implements IMyView {
>  
> Button click;
> .
> public HasClickHandlers getClick(){
>   return click;
>  }
>  
> }
>  
>  
> public class MyPresenter {
>  
>public interface IMyView {
>   public HasClickHandlers getClick();
> }
>  
> private IMyView view; 
>  
> public MyPresenter(IMyView view){
>   this.view = view;
>   bind();
> }
>  
> private void bind(){
>view.addClickHandler(new ClickHandler(){
> public void onClick(ClickEvent e){
> Window.alert("heeo");
>  
> }
> }//binds end
>  
>  }// class ends
>  
> //(We are not using Activities or any MVP framework)
>  
> ok tats it. Now in applicaton the view is singleton. but the presenter are 
> not, so they are made as and when needed like :
>  
> MyPresenter p = new MyPresenter(view); //view is singleton throughout the 
> application; assume getting it by some factory 
>  
> Now suppose after a while if I have created *10 MyPresenter *instance 
> that will add *10 clickHandler *to button "c*lick" . So one click event 
> will be handled 10 times by 10 different handlers.*
> ** 
> I can see here it as happening when click the button I get 10 times alert 
> window. 
>  
> So where I misunderstood the MVP architecture, what I am missing. 
> please help
> ** 
> Thanks in advance.
>  
>  
>  
>

-- 
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/-/kqPCgpq2N1IJ.
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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Nested Grid in GWT

2012-09-14 Thread Saritha


I need to develop a control which is similar to the Nested 
Grid
 (http://www.smartclient.com/smartgwt/showcase/#grid_nested_grid) in the 
Smart GWT.

User will be having a column for expansion images, when user clicking on 
the image in a particular row, a sub grid has to be opened there itself. 
Here all remaining rows needs to move down.

How can i achieve that functionality? Can anybody give me some clues so 
that i can proceed.

I have already a grid which is a celltable with custom header(with search 
functionality implemented).

Thanks, 

Saritha.

-- 
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/-/yEJPut2MWpgJ.
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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.