Re: How to share data ?

2010-03-31 Thread Subhrajyoti Moitra
Hello,

if u are using MVP pattern u must be having a AppController class to control
the application flow and listen to history events (if required).
The shared data can be stored as static objects on the AppController. On
successful login you can set this static field. From any other "view" u can
ask the AppController for the object.
This data can be any GWT compatible object.

How are other folks on the list solving this problem?

Thanks,
Subhro.

On Thu, Apr 1, 2010 at 11:39 AM, Abdullah Shaikh <
abdullah.shaik...@gmail.com> wrote:

> Hi All,
>
> After the user logins, I get some data from the server and takes him to the
> home page, and I want to have access to this data over all the pages on
> which the user navigates, I dont want to pass this data throughout all the
> pages, is there any to way to share this data, I thought of using
> Dictionary, is it ok to use it for this purspose or is there any other way ?
>
> Thanks,
> Abdullah
>
> --
> 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
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>

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



How to share data ?

2010-03-31 Thread Abdullah Shaikh
Hi All,

After the user logins, I get some data from the server and takes him to the
home page, and I want to have access to this data over all the pages on
which the user navigates, I dont want to pass this data throughout all the
pages, is there any to way to share this data, I thought of using
Dictionary, is it ok to use it for this purspose or is there any other way ?

Thanks,
Abdullah

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



Re: Serialization Error with own class while compiling

2010-03-31 Thread Johannes Stein
Hey folks,

thank you for your help.
I got it fixed. I missed to implement a zero-argument constructor in
Kontakt...
Damn... im so blind! But sometimes you need to have a night to rethink
on it again.

Okay, but there´s one new question.
In my database (dont know why it was designed this way) the date is
splitted into three integer-columns: day, month, year.
Okay, for my comparison i need to transform this into a Date-Object.
But this does not work, if im using the DateTimeFormat-Class of GWT.
It uses GWT.Create() in his code, what´s prohibeted on server-side
code, so that this error occurs:

Caused by: java.lang.UnsupportedOperationException: ERROR:
GWT.create() is only usable in client code!  It cannot be called, for
example, from server code.  If you are running a unit test, check that
your test case extends GWTTestCase and that GWT.create() is not called
from within an initializer or constructor.[...]

I use this Domain-Construtor for this:

public Domain(String adresse, String tld, int tag, int monat, int
jahr, Kontakt kontakt) {

DateTimeFormat fmt = DateTimeFormat.getFormat("dd.MM.yyy");

this.setRegistrar(new Kontakt("Keine Angabe"));
this.adresse=adresse;
this.tld=tld;
this.owner=kontakt;
this.next=fmt.parse((tag+"."+monat+"."+jahr));

return;

}

Do you may have an idea, how it could work?
Thank you for your recent help!

johannes

p.s.: greetings from germany.I hope my English is not as bad as I
think. :P


On 31 Mrz., 20:46, Katharina Probst  wrote:
> I think it's fine to have constructors with arguments (so long as you also
> have a zero-argument constructor), but, yes, Kontakt needs to be
> serializable too.
>
> kathrin
>
> On Wed, Mar 31, 2010 at 2:41 PM, Sean  wrote:
> > Don't have a constructor with arguments, only use Set/Gets.
>
> > What's a Kontakt? Is that serializable?
>
> > Fix the constructor and verify Kontakt is serializable and it should
> > work.
>
> > On Mar 31, 10:43 am, Johannes Stein 
> > wrote:
> > > Hey,
>
> > > ive got a problem and im searching for hours to find a solution.
> > > My problem is the following:
>
> > > I have a little RPC-Service which returns as a result a "Domain"-
> > > Object (Own custom-class).
> > > But this Domain-Object could not be serialized, though i have made
> > > this "Domain"-class serializable with
> > > com.google.gwt.user.client.rpc.IsSerializable.
>
> > > Im using GWT SDK 2.01 and getting the following compiling error:
>
> > > [ERROR] com.google.gwt.core.client.JavaScriptObject is not assignable
> > > to 'com.google.gwt.user.client.rpc.IsSerializable' or
> > > 'java.io.Serializable' nor does it have a custom field serializer
> > > (reached via com.vostokdomains.kis.client.objetcs.Domain)
>
> > >  [ERROR] com.google.gwt.core.client.JavaScriptObject has no available
> > > instantiable subtypes. (reached via
> > > com.vostokdomains.kis.client.objetcs.Domain)
>
> > > I hope you can help me out!!
> > > 
> > > Enclosed some code-snippets:
>
> > > package com.vostokdomains.kis.client.objetcs;
>
> > > import java.util.Date;
>
> > > import com.google.gwt.i18n.client.DateTimeFormat;
> > > import com.google.gwt.user.client.rpc.IsSerializable;
>
> > > == Domain-Object
>
> > > public class Domain implements Comparable, IsSerializable{
>
> > >         private String adresse;
> > >         private String tld;
> > >         private Date create;
> > >         private Date next;
> > >         private int laufzeit;
> > >         private double preis;
>
> > >         private Kontakt registrar;
> > >         private Kontakt admin;
> > >         private Kontakt tech;
> > >         private Kontakt owner;
>
> > >         private String namesever1;
> > >         private String nameserver2;
> > >         private String records;
>
> > >         Domain(){
>
> > >         }
>
> > >         public Domain(String adresse, String tld, int tag, int monat, int
> > > jahr, Kontakt kontakt) {
>
> > >                 DateTimeFormat fmt =
> > DateTimeFormat.getFormat("dd.MM.yyy");
>
> > >                 this.setRegistrar(new Kontakt("Keine Angabe"));
> > >                 this.adresse=adresse;
> > >                 this.tld=tld;
> > >                 this.owner=kontakt;
> > >                         this.next=fmt.parse((tag+"."+monat+"."+jahr));
>
> > >                 return;
>
> > >         }
>
> > >         public Domain(String adresse, String tld, Kontakt kontakt){
> > >                 this.setRegistrar(new Kontakt("Keine Angabe"));
> > >                 this.adresse=adresse;
> > >                 this.tld=tld;
> > >                 this.owner=kontakt;
> > >                 this.next=new Date();
> > >         }
>
> > > []
>
> > > = DatabaseService 
>
> > > public class DatabaseServiceImpl extends RemoteServiceServlet
> > > implements
> > >    

Re: Scroll techniques for mobile phones

2010-03-31 Thread Sekhar
David, I do have the zoom disabled with metatag - is this what you
meant?


Vasen, not sure what this calibration event is...could  you clarify?

On Mar 30, 11:41 am, davidroe  wrote:
> If you disable the zooming capabilities of the viewport, very tall
> panels should be scrolled by the OS.
>
> On Mar 24, 11:18 pm, Sekhar  wrote:
>
>
>
> > How are folks (or is anyone) doing page scrolls for GWT apps on mobile
> > phones? I'm having a bad time getting things going on say Android.
> > E.g., the scroll bar doesn't appear at all (either with ScrollPanel or
> > with a overflow: scroll CSS setting). Similarly, the handlers are just
> > not picking up mouse events like mouse-move consistently. Ideal would
> > be to simulate the native app behavior like the page scrolls up/down
> > with gestures or mouse drags, but anything similar would help too.
>
> > Please share your experiences and workarounds. As web based apps
> > become popular on Android/iPhone/etc., we have to make GWT work
> > reliably on mobile. I'm building a web version of an Android with GWT,
> > and it's working well otherwise, and I'm pretty excited. I'd
> > appreciate any help/direction you can give to fix the scrolling issue.

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



Re: Stop a nuclear disaster

2010-03-31 Thread Blessed Geek
Hi and lo and behold,
 lend me your tears,
programmers, young and old,
 or, send me your kegs of beer,
Thousands apologies for as so bold
 as off-topic I am to veer,

Google is churning out one hazardous technology after another, like
GWT. Their technology is so hazardous to competitors that competitors
run the risk of being extinctified. We call on world citizens to
petition their respective governments take appropriate measures to
fund development of alternatives to Google. Otherwise, companies like
Microsoft and Apple could hit the dust by 2020 following the footsteps
of Yahoo - given that the year 2012 would not be as disastrous as pro-
Mayan- technology enthusiasts tout it will be.

Or perhaps, world citizens should petition their respective
governments to take appropriate measures as a contingency that
apocalypse on 2012-12-21:12:21:12.02 (wow gematrists, look at all the
coincidences of 1 and 2 numerals!)  could really come true.

Happy April Fools'!

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



Re: Give GWT Text box a value with Div tag in jsp page

2010-03-31 Thread Muhammad Saifullah
if you try to apply value on textbox it is simple but if you use fully GWT
textbox component then there are two solutions

1. 
   Constant.TextBoxValue is located in your server side Java Model and JSP
file has the above two html lines.

   But in GWT onModuleLoad() method you need to write the following three
lines.

   a) Hidden hidden  =  Hidden.wrap(DOM.getElementById("textBoxValue"));

   b) TextBox t = new TextBox(hidden.getText());

   c) RootPanel.get("textBox").add(t);

2. in Jsp there are no hidden field concepts.all you have only  tag.
In this case your GWT onModuleLoad() have the following lines.

   public function AAA implements EntryPoint {
TextBox t = new TextBox();

function onModuleLoad() {
  Call gwt-rpc to connect to server side model to retrieve the
default value.
   if results arrive in Browser then render that default textvalue
to the html.

   // this is ajax method i did not write details
   function onSuccess() {
   // render the textbox default value
   t.setText = retrieved gwt-rpc default textbox value;
   }


   RootPanel.get("textBox").add(t);
}
  }

On Wed, Mar 31, 2010 at 6:38 PM, warrior  wrote:

> Hi to all,
>
>  I am Trying to integrate GWT component in existing where i need to
> replace all html componenet with GWT componenet.I am starting with
> Login page where i need to replace Text box.
>
> I can show text box with the code
>  but what i suppose to do to give this textbox
> a value on jsp page?
> Value is coming somewhere from request.
>
> --
> 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
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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



Re: Give GWT Text box a value with Div tag in jsp page

2010-03-31 Thread Muhammad Saifullah
if you try to apply value on textbox it is simple but if you use fully GWT
textbox component then there are two solutions

1. 
   Constant.TextBoxValue is located in your server side Java Model and JSP
file has the above two html lines.

   But in GWT onModuleLoad() method you need to write the following three
lines.

   a) Hidden hidden  =  Hidden.wrap(DOM.getElementById("textBoxValue"));

   b) TextBox t = new TextBox(hidden.getText());

   c) RootPanel.get("textBox").add(t);

2. in Jsp there are no hidden field concepts.all you have only  tag.
In this case your GWT onModuleLoad() have the following lines.

   public function AAA implements EntryPoint {
TextBox t = new TextBox();

function onModuleLoad() {
  Call gwt-rpc to connect to server side model to retrieve the
default value.
   if results arrive in Browser then render that default textvalue
to the html.

   // this is ajax method i did not write details
   function onSuccess() {
   // render the textbox default value
   t.setText = retrieved gwt-rpc default textbox value;
   }


   RootPanel.get("textBox").add(t);
}
  }


On Wed, Mar 31, 2010 at 6:38 PM, warrior  wrote:

> Hi to all,
>
>  I am Trying to integrate GWT component in existing where i need to
> replace all html componenet with GWT componenet.I am starting with
> Login page where i need to replace Text box.
>
> I can show text box with the code
>  but what i suppose to do to give this textbox
> a value on jsp page?
> Value is coming somewhere from request.
>
> --
> 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
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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



Re: Give GWT Text box a value with Div tag in jsp page

2010-03-31 Thread Muhammad Saifullah
if you try to apply value on textbox it is simple but if you use fully GWT
textbox component then there are two solutions

1. 
   Constant.TextBoxValue is located in your server side Java Model and JSP
file has the above two html lines.

   But in GWT onModuleLoad() method you need to write the following three
lines.

   a) Hidden hidden  =  Hidden.wrap(DOM.getElementById("textBoxValue"));

   b) TextBox t = new TextBox(hidden.getText());

   c) RootPanel.get("textBox").add(t);

2. in Jsp there are no hidden field concepts.all you have only  tag.
In this case your GWT onModuleLoad() have the following lines.

   public function AAA implements EntryPoint {
TextBox t = new TextBox();

function onModuleLoad() {
  Call gwt-rpc to connect to server side model to retrieve the
default value.
   if results arrive in Browser then render that default textvalue
to the html.

   // this is ajax method i did not write details
   function onSuccess() {
   // render the textbox default value
   t.setText = retrieved gwt-rpc default textbox value;
   }


   RootPanel.get("textBox").add(t);
}
  }
   Call






On Wed, Mar 31, 2010 at 6:38 PM, warrior  wrote:

> Hi to all,
>
>  I am Trying to integrate GWT component in existing where i need to
> replace all html componenet with GWT componenet.I am starting with
> Login page where i need to replace Text box.
>
> I can show text box with the code
>  but what i suppose to do to give this textbox
> a value on jsp page?
> Value is coming somewhere from request.
>
> --
> 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
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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



Re: New GWT widget resource, of sorts: vaadin.com/directory

2010-03-31 Thread fonghuangyee
After i study Vaadin, it is really good.
By the way,it is too bad because Vaadin not support code splitting.
Anyway i will keep a look at Vaadin, thanks for your sharing.

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



Re: Menu Item and MVP

2010-03-31 Thread Ian Bambury
That first button should say "Save" - It's late here :-)

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



Re: Menu Item and MVP

2010-03-31 Thread Ian Bambury
I've been looking into this for a chapter in the new edition of GWT In
Action, here's where I'm at.

The Google I/O approach to MVP has never sat well with me because, apart
from the fact that the interface can get out of hand, it just seems wrong
that the interface specifies that the view must, say, have something
clickable and not leave the implementation to the view.

So what I'm playing about with right now is (for the example you gave).

There would be a couple of interfaces HasClose and HasSave which would be
along the lines of

public interface HasSave
{
void save();
}

There would be a couple of corresponding CloseHandler and SaveHandler
classes e.g.

class SaveHandler implements ClickHandler
{
private HasSave presenter;

public SaveHandler(HasSave presenter)
{
this.presenter = presenter;
}
@Override
public void onClick(ClickEvent event)
{
presenter.save();
}
}

The presenter looks like this
class Presenter implements HasSave, HasClose
{
View view;

public Presenter(View view)
{
   this.view = view;
}
@Override
public void save()
{
view.setText("Save");
}

@Override
public void close()
{
view.setText("Close");
}
}

and the view like this

class View extends FlowPanel implements HasText
{
Label label = new Label();
public View()
{
Presenter presenter = new Presenter(this);
add(new Button("Open", new SaveHandler(presenter)));
add(new Button("Close", new CloseHandler(presenter)));
add(label);
}
@Override
public String getText()
{
return label.getText();
}
@Override
public void setText(String text)
{
label.setText(text);
}
}

in the AppController or onModuleLoad method, you'd just have the line

RootPanel.get().add(new View());

Does that make sense? Feel free to ask but I'm still not too far forward
with this approach yet.

For a tiny project, it's a bit of work (unless you have already written the
interfaces and handler classes for some other project) but it does keep
everything well organised in larger projects.

Ian

http://examples.roughian.com


On 1 April 2010 00:15, Nathan Wells  wrote:

> Thomas,
>
> I've heard of your approach before, but I'm not clear on the
> implementation... are you passing the presenter itself into the view?
> or are you passing instances of event handlers? The difference seems
> trivial, but in practice (as I imagine it, anyway) seems large:
>
> http://etherpad.com/sIAaiCfuiG
>
> Let me know what you think. I would assume the first way is what your
> referring to in your comment above, which implies that it is a View
> layer responsibility to deal with HandlerRegistrations and the like.
> Is that correct?
>
> On Mar 31, 8:14 am, Thomas Broyer  wrote:
> > On Mar 31, 8:07 am, mic  wrote:
> >
> > > Just sharing some thoughts
> >
> > > Would the MenuItem class need to implement HasClickHandler  so that
> > > when a MenuItem is clicked, the action can be handled in the
> > > presenter. At this time, the MenuItem needs an object that implements
> > > the Command interface, so the view seems to know about the presenter.
> >
> > > I would like to know what others think about this.
> >
> > I've recently migrated from views with many HasXxxHandlers getters to
> > views with a setListener method that the presenter "injects" into its
> > view. The listener defines "callback methods" such as save(), close(),
> > italicize(), bold(), delete(), etc.
> > It makes unit tests waaay easier to write (you don't have to mock each
> > HasXxxHandlers, capturing each added XxxHandler, eventually mocking
> > the XxxEvent, etc.) and in your case would make things easier: the
> > Command is an implementation detail of the view.
>
> --
> 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
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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



Re: UIBinder and IE6

2010-03-31 Thread Russ
I believe Google has begun to transition away from IE6 support, though, I
don't think UiBinder is incompatible with IE6 at all. If you read the
documentation it explains quite well what doctypes to use.

>From what I gather, GWT is for eliminating inconsistencies between browsers
in a way that the developer doesn't have to worry about whether or not their
app will run on IE6/7/8, among other things.

On Wed, Mar 31, 2010 at 10:47 PM, michael  wrote:

> Hello.
>
> Sorry for posting the question 3 times, but I got a message from
> groups that my message could not be posted. Looks like this was not
> the case.
>
>
> Sorry,
> Michael
>
> On Mar 31, 11:43 pm, michael  wrote:
> > Hello.
> >
> > I would like to use UIBinder to define the layouts for my next
> > application. Problem is, that the client site still use IE6 as their
> > main browser.
> >
> > Since I did not find it explicitly statet in the docs of GWT, I'd like
> > to ask if there are any limitations when using UIBinder regarding IE6
> > compatibility.
> >
> > Thanks in advance,
> > Michael Vogt
>
> --
> 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
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>


-- 
Which would you rather believe in: A God that never answers you or a society
that embraces you?

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



Re: Serialization Error with own class while compiling

2010-03-31 Thread Katharina Probst
I think it's fine to have constructors with arguments (so long as you also
have a zero-argument constructor), but, yes, Kontakt needs to be
serializable too.

kathrin

On Wed, Mar 31, 2010 at 2:41 PM, Sean  wrote:

> Don't have a constructor with arguments, only use Set/Gets.
>
> What's a Kontakt? Is that serializable?
>
> Fix the constructor and verify Kontakt is serializable and it should
> work.
>
>
>
>
>
> On Mar 31, 10:43 am, Johannes Stein 
> wrote:
> > Hey,
> >
> > ive got a problem and im searching for hours to find a solution.
> > My problem is the following:
> >
> > I have a little RPC-Service which returns as a result a "Domain"-
> > Object (Own custom-class).
> > But this Domain-Object could not be serialized, though i have made
> > this "Domain"-class serializable with
> > com.google.gwt.user.client.rpc.IsSerializable.
> >
> > Im using GWT SDK 2.01 and getting the following compiling error:
> >
> > [ERROR] com.google.gwt.core.client.JavaScriptObject is not assignable
> > to 'com.google.gwt.user.client.rpc.IsSerializable' or
> > 'java.io.Serializable' nor does it have a custom field serializer
> > (reached via com.vostokdomains.kis.client.objetcs.Domain)
> >
> >  [ERROR] com.google.gwt.core.client.JavaScriptObject has no available
> > instantiable subtypes. (reached via
> > com.vostokdomains.kis.client.objetcs.Domain)
> >
> > I hope you can help me out!!
> > 
> > Enclosed some code-snippets:
> >
> > package com.vostokdomains.kis.client.objetcs;
> >
> > import java.util.Date;
> >
> > import com.google.gwt.i18n.client.DateTimeFormat;
> > import com.google.gwt.user.client.rpc.IsSerializable;
> >
> > == Domain-Object
> >
> > public class Domain implements Comparable, IsSerializable{
> >
> > private String adresse;
> > private String tld;
> > private Date create;
> > private Date next;
> > private int laufzeit;
> > private double preis;
> >
> > private Kontakt registrar;
> > private Kontakt admin;
> > private Kontakt tech;
> > private Kontakt owner;
> >
> > private String namesever1;
> > private String nameserver2;
> > private String records;
> >
> > Domain(){
> >
> > }
> >
> > public Domain(String adresse, String tld, int tag, int monat, int
> > jahr, Kontakt kontakt) {
> >
> > DateTimeFormat fmt =
> DateTimeFormat.getFormat("dd.MM.yyy");
> >
> > this.setRegistrar(new Kontakt("Keine Angabe"));
> > this.adresse=adresse;
> > this.tld=tld;
> > this.owner=kontakt;
> > this.next=fmt.parse((tag+"."+monat+"."+jahr));
> >
> > return;
> >
> > }
> >
> > public Domain(String adresse, String tld, Kontakt kontakt){
> > this.setRegistrar(new Kontakt("Keine Angabe"));
> > this.adresse=adresse;
> > this.tld=tld;
> > this.owner=kontakt;
> > this.next=new Date();
> > }
> >
> > []
> >
> > = DatabaseService 
> >
> > public class DatabaseServiceImpl extends RemoteServiceServlet
> > implements
> > DatabaseService {
> >
> > /**
> >  *
> >  */
> > private static final long serialVersionUID = 1L;
> >
> > public Domain getDomains() {
> >
> > DBConnection conn = new DBConnection();
> > conn.connect();
> > Connection dbconn = conn.getConnection();
> > System.out.print("TEST");
> > Domain d = null;
> >
> > try {
> > ResultSet rs = null;
> > Statement stm = dbconn.createStatement();
> > System.out.print("STATEMENT");
> > stm.execute("SELECT * FROM domains");
> > rs = stm.getResultSet();
> >
> > rs.next() ;
> > Kontakt k = new Kontakt(rs.getString(2));
> > d = new Domain(rs.getString(3), "tld",
> k);
> >
> > } catch (SQLException e) {
> > // TODO Auto-generated catch block
> > e.printStackTrace();
> > }
> > return d;
> >
> > }
> >
> > }
> >
> >  RPC Call 
> >
> > public class Kis implements EntryPoint {
> >
> > @Override
> > public void onModuleLoad() {
> >
> > DatabaseServiceAsync rpc;
> > rpc = (DatabaseServiceAsync)
> GWT.create(DatabaseService.class);
> > ServiceDefTarget target = (ServiceDefTarget) rpc;
> > String moduleRelativeURL = GWT.getModuleBaseURL() +
> > "DatabaseServiceImpl";
> >

New JSON Serializer client side implementation (supports GWT 2.0+)

2010-03-31 Thread kfuntak
GWT Professional JSON Serializer
http://code.google.com/p/gwtprojsonserializer/

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



Problem with module ! It compiles but it does not run!

2010-03-31 Thread Rafael Xavier Valente

Hello,

In my project I'm trying to use the visualization API.
So I put in the module file the following line:



Like I've done so far with all projects.
Then it compiles perferct!
But, when I try to run it doesn't work.
in the hosted mode I receive the message:

Line 77: No code source is avaiable for type
com.google.gwt.visualization.client.visualization.PieChart; did you
forget to inherit a required module?

So, it seems to me that the module is not there.
But it's there, because I can compile it with no problem!

Can someone help me?
Thanks!

--
Rafael XAVIER VALENTE
Quatrième Année en Informatique - ESIEE Engineering
Graduando em Engenharia Elétrica - 9º Período
LITC - Laboratório de Inteligência Computacional
UFMG - Brasil

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



Please help in Displaying SSRS Reports in GWT Application

2010-03-31 Thread Sagar Samag
We have GWT Application that communicates with Dot Net Web Services.
For obvious reasons it is required to use POST method instead of GET
method. We have managed the Same Origin Policy issue by deploying the
GWT Application in the same IIS server that has the Web Services.

The problem is with the MS SSRS reports. The reports are on a separate
server. We naturally are getting issues related to SOP.

Can anyone help me by providing some information regarding how to do
it?
1. How to write GWT code for retrieving data from MS SSRS?
2. How to display the received data?
3. How to use the functionality to export data in different formats?

Thanks in advance.
Sagar

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



Quick question on GWT Print

2010-03-31 Thread abhiram
Hi all,

   I am trying to use Print class for printing the contents of a
particular Popup Panel.

I believe, i need to use the

  Print.it(DOM.getElementById("myId"));

  code for this functionality. But I am not able to set the Id for
the panel. Can someone please send me the code to set the id for a
particular element?

Thanks and regards,
Abhiram

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



include an external file when deploy

2010-03-31 Thread andrew19881123
I have a problem with an external file when i deploy my application:
in the source code at the server side i have inserted a File (File
fileXml = new File("wine.xml"); ), when i debug it works good, i can
see all the elements, but after i make the GWT Compile, put all files
in a war archive and then uploaded it in tomcat i can't see the
elements, like as the path of the XML is wrong.. i can't figure out
why.. the file wine.xml is in this folder MyApp/war

thanks, Andrew

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



Upgarde project to GWT 2.0 issue

2010-03-31 Thread Alemao
Hi, i have a project using GWT 1.7.1 + GAE 1.2.6 + GILEAD
Adapter4appengine
to use my JDO classes on gwt client side.
The issue is that upgrading the project to GWT 2.0 and GAE 1.3.2
raises an error while i try to compile it for the GWT 2.0 library.

Anyone can help?
Regards!


Compiling module voting.Admin
   Scanning for additional dependencies: file:/C:/Workspace/GAE/
Voting_/src/voting/client/admin/Admin.java
  Adding '17' new generated units
 Validating newly compiled units
[ERROR] Errors in 'generated://
752FD903838E9878B64C34CDFFC0D4D5/voting/model/
Voter_FieldSerializer.java'
   [ERROR] Line 45: No source code is available for type
voting.model.Voting; did you forget to inherit a required module?
[ERROR] Errors in 'generated://
A3BB1B4E629AB56BB62CB96810D83888/voting/client/admin/
AdminService_Proxy.java'
   [ERROR] Line 80: No source code is available for type
voting.model.Voting; did you forget to inherit a required module?
[ERROR] Errors in 'generated://
2B4A9FA3F89BAFB5A0E30D7E0989332D/voting/model/
Voting_FieldSerializer.java'
   [ERROR] Line 5: No source code is available for type
voting.model.Voting; did you forget to inherit a required module?
[ERROR] Errors in 'generated://
83C74C108C27B9F496D3E6ABF2C65630/voting/model/
Voting_Array_Rank_1_FieldSerializer.java'
   [ERROR] Line 5: No source code is available for type
voting.model.Voting; did you forget to inherit a required module?
[ERROR] Errors in 'generated://
95764A7D7AFC9ECB88DD1BF00D832EEE/voting/model/
Option_FieldSerializer.java'
   [ERROR] Line 29: No source code is available for type
voting.model.Voting; did you forget to inherit a required module?
  [ERROR] Unable to find recently-generated type
'voting.client.admin.AdminService_TypeSerializer
   [ERROR] Errors in 'file:/C:/Workspace/GAE/Voting_/src/voting/client/
admin/Admin.java'
  [ERROR]  Internal compiler error
java.lang.RuntimeException: Unable to commit generated files
at
com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.doFindAdditionalTypesUsingRebinds(WebModeCompilerFrontEnd.java:
131)
at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox
$CompilerImpl.process(AbstractCompiler.java:200)
at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:
444)
at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox
$CompilerImpl.compile(AbstractCompiler.java:123)
at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox
$CompilerImpl.compile(AbstractCompiler.java:234)
at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.access
$200(AbstractCompiler.java:109)
at
com.google.gwt.dev.jdt.AbstractCompiler.compile(AbstractCompiler.java:
522)
at
com.google.gwt.dev.jdt.BasicWebModeCompiler.getCompilationUnitDeclarations(BasicWebModeCompiler.java:
112)
at
com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.getCompilationUnitDeclarations(WebModeCompilerFrontEnd.java:
47)
at
com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScriptCompiler.java:
422)
at
com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.java:
32)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:522)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:414)
at com.google.gwt.dev.Compiler.run(Compiler.java:201)
at com.google.gwt.dev.Compiler$1.run(Compiler.java:152)
at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:
87)
at
com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:
81)
at com.google.gwt.dev.Compiler.main(Compiler.java:159)
Caused by: com.google.gwt.core.ext.UnableToCompleteException: (see
previous log entries)
at
com.google.gwt.dev.javac.StandardGeneratorContext.finish(StandardGeneratorContext.java:
358)
at
com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.doFindAdditionalTypesUsingRebinds(WebModeCompilerFrontEnd.java:
129)
... 17 more

[ERROR] Unexpected
java.lang.RuntimeException: Unable to commit generated files
at
com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.doFindAdditionalTypesUsingRebinds(WebModeCompilerFrontEnd.java:
131)
at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox
$CompilerImpl.process(AbstractCompiler.java:200)
at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:
444)
at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox
$CompilerImpl.compile(AbstractCompiler.java:123)
at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox
$CompilerImpl.compile(AbstractCompiler.java:234)
at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.access
$200(AbstractCompiler.java:109)
at
com.google.gwt.dev.jdt.AbstractCompiler.compile(AbstractCompiler.java:
522)
at
com.google.gwt.dev.jdt.BasicWebModeCompiler.getCompilationUnitDeclarati

Re: UIBinder and IE6

2010-03-31 Thread michael
Hello.

Sorry for posting the question 3 times, but I got a message from
groups that my message could not be posted. Looks like this was not
the case.


Sorry,
Michael

On Mar 31, 11:43 pm, michael  wrote:
> Hello.
>
> I would like to use UIBinder to define the layouts for my next
> application. Problem is, that the client site still use IE6 as their
> main browser.
>
> Since I did not find it explicitly statet in the docs of GWT, I'd like
> to ask if there are any limitations when using UIBinder regarding IE6
> compatibility.
>
> Thanks in advance,
> Michael Vogt

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



Diagnosing serializable class compilation issues.

2010-03-31 Thread sreque
Imagine  your favorite statically compiled language's compiler treated
certain classes of statically determinable semantic errors differently
than normal. Instead of erroring out with a useful message, the
compiler simply injects code in the offending location that will cause
an error at runtime. The runtime error will not provide a useful stack
trace, nor will it provide any information to the cause of the error.
Now imagine that your compiler take several minutes to compile your
program, so that when you encounter the error at runtime you have to
guess what went wrong at compile time, modify your code, recompile,
and after several minutes re-run your application to see if the error
is still present.

Such a compiler would be ludicrous, yet this appears to be exactly
what the GWT compiler does. It knows that I as a user marked a
particular class as IsSerializable. It knows that I am using this
class as part of an RPC interface. It knows that it will not or cannot
actually compile code to serialize the object at runtime. And yet, the
compiler moves on and compiles the code in such a way that a useless
error message will display at runtime when the RPC is invoked. Even if
I set the log level to ALL, I get no information from the compiler's
output that I couldn't get by inspecting the produced gwt.rpc
whitelist file manually.

Why does the gwt 2.0 compiler not error out automatically with a
useful message in this scenario? I can't think of any situation where
the current behavior is desirable. Also, why is no useful diagnostic
information ever given when the scenario occurs even with full logging
enabled?

I have searched the Internet for a long time for an answer to this and
have not found an answer. I have also wasted a significant number of
hours playing a guessing game when my classes aren't serializable. I
feel like every time I create a new RPC, after potentially hours of
painful debugging I find a new reason for the gwt compiler to fail
silently.

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



Re: GWT/Hibernate/Oracle/Eclipse

2010-03-31 Thread Katharina Probst
It sounds like you're using a class that is not supported by AppEngine.  But
it also sounds like you don't want to use AppEngine (
http://code.google.com/appengine/) in the first place, because you have your
own oracle database.

I don't know what you mean by "start the Google App Engine" in eclipse, but
what you probably want is to do debug/run as -> Web Application, which
starts development mode, which lets you debug a GWT application.  Then, when
you want to deploy it, you have to compile the GWT application (from Java to
JavaScript), which you can do in eclipse under Google-> GWT Compile.  (Note
that you then have to put the resulting js files from the war directory into
the correct place on your server to be able to see them in the browser).

If you *are* trying to use AppEngine, it's a different story.  It doesn't
look like you can make Hibernate work in AppEngine right now (from
http://groups.google.com/group/google-appengine-java/web/will-it-play-in-app-engine
):

*Hibernate*
Versions: All
Status: *INCOMPATIBLE*

   - You cannot currently use Hibernate directly. The differences between
   the App Engine datastore and SQL were too great to get the standard
   Hibernate up and running under App Engine. App Engine does support JDO and
   JPA, so you may be able to convert your Hibernate code to use one of these
   ORM interfaces.


kathrin


On Wed, Mar 31, 2010 at 6:19 AM, bebauer1200  wrote:

> Hello,
>
> please, can anyone help me?
>
> I use GWT as Client and Hibernate as Database Interface and as
> Database Oracle.
> I installed eclipse with the hibernate and the GWT plugin. Then I
> implemented hibernate in server side of GWT.
> Then I start the Google App Engine in eclipse and it works. Then I
> start a Web Browser and try to get data from GWT, but i get an error
> on the eclipse web server: "java.net.InetAddress is a restricted
> class. Please see the Google  App Engine developer's guide for more
> details.".
>
> Has anyone an idea what I can do?
>
> 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-tool...@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.
>
>

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



Re: Is client side Javascript code always visible?

2010-03-31 Thread Katharina Probst
No, it's not.  The browser will see it, and so will your users if they do
view->source.  As the previous answers have noted, GWT optionally obfuscates
JS code (i.e., makes it smaller, less readable), but that is done largely
for performance purposes (the smaller your JS code, the less you have to
download, the faster your app will be), not for hiding it from the user.
There are tools that undo obfuscation.  In other words, anything
secret/prorietary should run on the *server*-side of your application.
This, by the way, goes for all JS/AJAX apps and is not particular to GWT.

kathrin

On Wed, Mar 31, 2010 at 1:58 PM, NeuroPulse  wrote:

> What I mean is, is it compiled like C++ is compiled into a program?
>
> On Mar 31, 12:52 pm, Chris Lercher  wrote:
> > If the JavaScript should be executed in the browser (as usual), then
> > it will have to be downloaded to the browser. This means, that it can
> > also be copied. GWT offers an option to obfuscate the generated code,
> > and one of the effects of this is, that it's harder for someone to
> > read the code. But it could still be copied. So, if you have some
> > proprietary algorithms, you might want to run them on the server.
> >
> > Chris
> >
> > On Mar 31, 2:46 pm, NeuroPulse  wrote:
> >
> > > Greetings,
> >
> > > Before I start writing Javascript, I am trying to find out if anyone
> > > can see and copy it like HTML?
> >
> > > Every page with Javascript I have seen so far has a link to the code
> > > in the HTML.
> >
> > > 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-tool...@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.
>
>

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



Re: How to implement hashCode() and equals() for a point in 2D-space (x,y) in GWT?

2010-03-31 Thread Paul Robinson
jchimene wrote:
> On Mar 31, 9:36 am, Luis Fernando Planella Gonzalez
>  wrote:
>   
>>> Anyone has a better idea?
>>>   
>> public boolean equals(Object obj) {
>> if (!(obj instanceof Point)) {
>> return false;
>> }
>> Point p = (Point) obj;
>> return fX == p.fY && fY == p.fY;
>>
>> }
>>
>> public int hashCode() {
>> return (int) (pX + pY);
>> 
>
> Does this say that Point(2.0,0.0) and Point(0.0,2.0) have the same
> hashCode()?
>
>   
Yes, but this sort of thing is inevitable. You can't map two doubles
onto one integer without some duplication.

But that doesn't matter. Consider this hashCode() implementation:

public int hashCode() { return 0; }

This will work in all circumstances. It fulfills the hashCode contract,
it just doesn't make a HashMap with Point keys perform very well. Even
then, if you only have very small maps, this won't matter. My point is
that you shouldn't get too hung up on how this is implemented - just use
something fast and simple.

Paul

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



Re: GEP 1.3 : com.google.gdt.eclipse.suite.* packages not exported

2010-03-31 Thread Fred
actually I fail to see how not exporting the whole thing would give
you more flexibility. It sure looks less flexible for my purposes.
But since I'm not an eclipse developper, I believe you :-)

On Mar 31, 9:47 pm, Miguel Méndez  wrote:
> Hi Fred,
>
> Could you file a bug for this?  Currently, they are not exported because we
> wanted maximum flexibility.
>
>
>
> On Tue, Mar 30, 2010 at 7:54 AM, Fred  wrote:
> > Hi,
>
> > I'm trying to set up a m2eclipse project configurator for GEP during
> > my spare time (I'll open source the code eventually, it's just I
> > haven't setup any SCM yet).
> > So far, I've been able to add the GWT nature to maven projects, set
> > the war source directory using the GEP API.
>
> > I'd like to create/tweak LaunchConfigurations using
> > com.google.gdt.eclipse.suite.WebAppLaunchUtil.
> > But I can't use any of the classes in the com.google.gdt.eclipse.suite
> > plugin, since no packages are exported. This is quite unfortunate,
> > since I don't want to get sued for reverse engineering these classes.
>
> > Can Google reconsider this design choice to help 3rd party plugins
> > better integrate with GEP? I'll file an issue if you think it's
> > doable.
>
> > Thanks in advance. Regards,
>
> > Fred Bricon
>
> > --
> > 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
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.
>
> --
> Miguel

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



Re: Menu Item and MVP

2010-03-31 Thread Nathan Wells
Thomas,

I've heard of your approach before, but I'm not clear on the
implementation... are you passing the presenter itself into the view?
or are you passing instances of event handlers? The difference seems
trivial, but in practice (as I imagine it, anyway) seems large:

http://etherpad.com/sIAaiCfuiG

Let me know what you think. I would assume the first way is what your
referring to in your comment above, which implies that it is a View
layer responsibility to deal with HandlerRegistrations and the like.
Is that correct?

On Mar 31, 8:14 am, Thomas Broyer  wrote:
> On Mar 31, 8:07 am, mic  wrote:
>
> > Just sharing some thoughts
>
> > Would the MenuItem class need to implement HasClickHandler  so that
> > when a MenuItem is clicked, the action can be handled in the
> > presenter. At this time, the MenuItem needs an object that implements
> > the Command interface, so the view seems to know about the presenter.
>
> > I would like to know what others think about this.
>
> I've recently migrated from views with many HasXxxHandlers getters to
> views with a setListener method that the presenter "injects" into its
> view. The listener defines "callback methods" such as save(), close(),
> italicize(), bold(), delete(), etc.
> It makes unit tests waaay easier to write (you don't have to mock each
> HasXxxHandlers, capturing each added XxxHandler, eventually mocking
> the XxxEvent, etc.) and in your case would make things easier: the
> Command is an implementation detail of the view.

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



Re: GEP 1.3 : com.google.gdt.eclipse.suite.* packages not exported

2010-03-31 Thread Fred
Hi Miguel, it's here : 
http://code.google.com/p/google-web-toolkit/issues/detail?id=4802

regards,

Fred Bricon

On Mar 31, 9:47 pm, Miguel Méndez  wrote:
> Hi Fred,
>
> Could you file a bug for this?  Currently, they are not exported because we
> wanted maximum flexibility.
>
>
>
> On Tue, Mar 30, 2010 at 7:54 AM, Fred  wrote:
> > Hi,
>
> > I'm trying to set up a m2eclipse project configurator for GEP during
> > my spare time (I'll open source the code eventually, it's just I
> > haven't setup any SCM yet).
> > So far, I've been able to add the GWT nature to maven projects, set
> > the war source directory using the GEP API.
>
> > I'd like to create/tweak LaunchConfigurations using
> > com.google.gdt.eclipse.suite.WebAppLaunchUtil.
> > But I can't use any of the classes in the com.google.gdt.eclipse.suite
> > plugin, since no packages are exported. This is quite unfortunate,
> > since I don't want to get sued for reverse engineering these classes.
>
> > Can Google reconsider this design choice to help 3rd party plugins
> > better integrate with GEP? I'll file an issue if you think it's
> > doable.
>
> > Thanks in advance. Regards,
>
> > Fred Bricon
>
> > --
> > 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
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.
>
> --
> Miguel

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



Compiling against Gin in Repository fails

2010-03-31 Thread Chris
Hi

I'm having a strange issue here... If I use the Gin jar from the
central maven repository, my GWT compilation fails. However, if I use
a version that I downloaded previously (unfortunately not marked as
far as I could see! :( ), then everything works fine. Obviously, I'd
quite like to be using the maven repository version...

If it can help, the file of the sizes are:
gin-1.0.jar -  97,838 bytes (from Maven central repository)
gin.jar  -  99,470 bytes (previous gin which I had downloaded from
Google Code I believe)

The error trace follows. Do you reckon this is a bug with Gin/GWT
compile? Or perhaps I'm missing something? Any ideas how I can go
forward? Switching my previous gin jar for the one downloaded in my
local maven repository is rather hacky!

[INFO] Compiling module com.tyndalehouse.step.web.stepwebapp
[INFO]Scanning for additional dependencies: file:/D:/TyndaleStep/
step-web-app/src/main/java/com/tyndalehouse/step/web/client/
StepEntryPoint.java
[INFO]   Adding '1' new generated units
[INFO]  Validating newly compiled units
[INFO] [ERROR] Errors in 'D:\TyndaleStep\step-web-app
\target\.generated\com\tyndalehouse\step\web\client\gin
\StepInjectorImpl.java'
[INFO][ERROR] Line 57: The nested type
com.tyndalehouse.step.web.client.presenter.StepModulePresenter$Display
cannot be referenced using its bin
ary name
[INFO][ERROR] Line 61: The nested type
com.tyndalehouse.step.web.client.presenter.StepModulePresenter$Display
cannot be referenced using its bin
ary name
[INFO][ERROR] Line 62: The method create_Key$type$com
$tyndalehouse$step$web$client$presenter$StepModulePresenter$
$_extends_com$tyndalehouse$step
$web$client$presenter$StepModulePresenter$Display$$_annotation$$none$$
() is undefined for the type StepInjectorImpl
[INFO][ERROR] Line 323: The method get_Key$type$com
$tyndalehouse$step$web$client$presenter$StepModulePresenter$
$_extends_com$tyndalehouse$step$w
eb$client$presenter$StepModulePresenter$Display$$_annotation$$none$$()
is undefined for the type StepInjectorImpl
[INFO]   [ERROR] Unable to find recently-generated type
'com.tyndalehouse.step.web.client.gin.StepInjectorImpl
[INFO][ERROR] Errors in 'file:/D:/TyndaleStep/step-web-app/src/
main/java/com/tyndalehouse/step/web/client/StepEntryPoint.java'
[INFO]   [ERROR]  Internal compiler error
[INFO] java.lang.RuntimeException: Unable to commit generated files
[INFO]  at
com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.doFindAdditionalTypesUsingRebinds(WebModeCompilerFrontEnd.java:
131)
[INFO]  at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox
$CompilerImpl.process(AbstractCompiler.java:200)
[INFO]  at
org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:444)
[INFO]  at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox
$CompilerImpl.compile(AbstractCompiler.java:123)
[INFO]  at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox
$CompilerImpl.compile(AbstractCompiler.java:234)
[INFO]  at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox
$CompilerImpl.access$200(AbstractCompiler.java:109)
[INFO]  at
com.google.gwt.dev.jdt.AbstractCompiler.compile(AbstractCompiler.java:
522)
[INFO]  at
com.google.gwt.dev.jdt.BasicWebModeCompiler.getCompilationUnitDeclarations(BasicWebModeCompiler.java:
112)
[INFO]  at
com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.getCompilationUnitDeclarations(WebModeCompilerFrontEnd.java:
47)
[INFO]  at
com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScriptCompiler.java:
422)
[INFO]  at
com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.java:
32)
[INFO]  at com.google.gwt.dev.Precompile.precompile(Precompile.java:
522)
[INFO]  at com.google.gwt.dev.Precompile.precompile(Precompile.java:
414)
[INFO]  at com.google.gwt.dev.Compiler.run(Compiler.java:201)
[INFO]  at com.google.gwt.dev.Compiler$1.run(Compiler.java:152)
[INFO]  at
com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:87)
[INFO]  at
com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:
81)
[INFO]  at com.google.gwt.dev.Compiler.main(Compiler.java:159)
[INFO] Caused by: com.google.gwt.core.ext.UnableToCompleteException:
(see previous log entries)
[INFO]  at
com.google.gwt.dev.javac.StandardGeneratorContext.finish(StandardGeneratorContext.java:
358)
[INFO]  at
com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.doFindAdditionalTypesUsingRebinds(WebModeCompilerFrontEnd.java:
129)
[INFO]  ... 17 more
[INFO]
[INFO] [ERROR] Unexpected
[INFO] java.lang.RuntimeException: Unable to commit generated files
[INFO]  at
com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.doFindAdditionalTypesUsingRebinds(WebModeCompilerFrontEnd.java:
131)
[INFO]  at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox
$CompilerImpl.process(AbstractCompiler.java:200)
[INFO]  at
org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:444)
[INFO]  at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox
$Compile

Re: Problem using java projects in GWT

2010-03-31 Thread lineman78
I think the 2 of us are answering different questions.  I believe the
problem he is having is that the GWT compiler is not allowing him to
use objects from a previous Java project he had done(I am assuming it
has some algorithms or POJOs that he doesn't want to replicate).  The
GWT compiler won't allow you to reference these objects even if they
are in the classpath because they are not part of an included module.
Your responses assume his problem is a classpath problem, but eclipse
would be yelling at you for that one, not just the compiler.  Also,
Lucas I forgot to mention, my approach will still not work if the
source(*.java) files are not in your classpath as the GWT compiler
requires the uncompiled source.

On Mar 30, 9:33 pm, Neil  wrote:
> In our projects, we just use our source code path directly.
>
> When launching the project in DevMode from within Eclipse, the launch
> config's classpath contains both the "default classpath" plus the /src
> directory.
>
> When compiling the project in Ant, we reference the source path
> directly in the gwt Compiler call:
>        maxmemory="512M" failonerror="true" >
>          
>          
>          
>             
>             
>          
>       
>
> Basically, the GWT Compiler needs both the compiled code and the
> source code to successfully compile the module.
>
> Hope that helps.
>
> Neil Olsonhttp://www.intertech.com/blog
>
> On Mar 30, 8:23 pm, lineman78  wrote:
>
> > You cannot use source code from a java project in GWT directly.  All
> > GWT code must be in the client path of a module.  i.e.
> > sura.ticketcheck.bo.Instancia is not part of a GWT module.  There is
> > one workaround I have gotten to work(only once, so no guarantee).
>
> > 1) Create a file BoModule.gwt.xml in your source folder under the
> > following path: sura/ticketcheck
> > 2) Put the following text into the file:
> >     
> >      > 2.0.3//EN" "http://google-web-toolkit.googlecode.com/svn/tags/2.0.3/
> > distro-source/core/src/gwt-module.dtd">
> >     
> >         
> >         
> >     
> > 3) In your src/ticketcheckGWT/xxx.gwt.xml put  > name="sura.ticketcheck.BoModule"/>
>
> > Essentially what you are doing is tricking the GWT compiler into
> > thinking that sura.ticketcheck has a module who's source is in the
> > folder 'bo'.  This should work as long as all files within package
> > sura.ticketcheck.bo don't import outside of that package except
> > standard java objects that are available through the
> > com.google.gwt.user.User module.  I have run into this several times
> > and sometimes you just have to rewrite(copy and paste) stuff into a
> > GWT project.
>
> > On Mar 30, 1:25 pm, Lucas Rios  wrote:
>
> > > Hi everybody
>
> > > I'm trying to use a Java project in GWT but I have had some problems 
> > > because
> > > I can't compile the GWT project.
>
> > > I have done this:
>
> > > 1.Make a xxx.gwt.xml in the java project.
> > > 2. Add a external JAR (java project) in the java build path of the GWT
> > > project. In Projects and libraries tabs.
> > > 3. Reference a xxx.gwt.xml in GWT projects (gwt.xml)
> > > 4. And last compile the GWT project... showing me those errors
>
> > > Compiling module ticketcheckGWT.Ticketcheck_GWT
> > >    Validating newly compiled units
> > >       [ERROR] Errors in
> > > 'file:/D:/Sura_desarrollo/Ticketcheck%20GWT/src/ticketcheckGWT/client/Ticketcheck_GWT.java'
> > >          [ERROR] Line 488: No source code is available for type
> > > sura.ticketcheck.bo.Instancia; did you forget to inherit a required 
> > > module?
> > >       [ERROR] Errors in
> > > 'file:/D:/Sura_desarrollo/Ticketcheck%20GWT/src/ticketcheckGWT/client/ServiciosTicketcheck.java'
> > >          [ERROR] Line 13: No source code is available for type
> > > sura.ticketcheck.bo.Instancia; did you forget to inherit a required 
> > > module?
> > >       [ERROR] Errors in
> > > 'file:/D:/Sura_desarrollo/Ticketcheck%20GWT/src/ticketcheckGWT/client/ServiciosTicketcheckAsync.java'
> > >          [ERROR] Line 12: No source code is available for type
> > > sura.ticketcheck.bo.Instancia; did you forget to inherit a required 
> > > module?
> > >       [ERROR] Errors in
> > > 'jar:file:/D:/Lucas%20Ríos/GWT/gwanted/gwanted-core.jar!/org/gwanted/gwt/core/client/logger/TimeLoggerImpl.java'
> > >          [ERROR] Line 92: Parameter 'widgetLoadTime': type 'long' is not
> > > safe to access in JSNI code
> > >          For additional info see:
> > > file:/D:/Escritorio/eclipse-jee-galileo-win32/eclipse/plugins/com.google.gwt.eclipse.sdkbundle.2.0.1_2.0.1.v201002021445/gwt-2.0.1/doc/helpInfo/longJsniRestriction.html
> > >    Finding entry point classes
> > >       [ERROR] Unable to find type 'ticketcheckGWT.client.Ticketcheck_GWT'
> > >          [ERROR] Hint: Previous compiler errors may have made this type
> > > unavailable
> > >          [ERROR] Hint: Check the inheritance chain from your module; it 
> > > may
> > > not be inheriting a required module or a module may not be adding its 
> > > sou

Re: Dynamic Module Loading

2010-03-31 Thread lineman78
I agree with everything you have said and this is the approach I am
experimenting with except for one problem.  Since 2.0 it is not
possible to load modules dynamically.  I have written a jsp that will
add all the installed plug-ins' scripts to the head when the page is
loaded, but unfortunately this causes a lot of unnecessary start-up
loading.  I am going to look into putting the entire instantiation
under a runAsync and that should hopefully fix the problem.  It would
still be nice to load the modules dynamically, but i guess it isn't a
huge deal to make them reload after installing a plug-in.

On Mar 31, 12:12 pm, Sripathi Krishnan 
wrote:
> GWT's architecture is orthogonal to your requirement of dynamic module
> loading / pluggable sub-modules, so whatever solution you find will be a
> hack and not maintainable.
>
> One of the core philosophies of GWT - *If something can be done at compile
> time, do it*. The key benefit of such a philosophy is performance. GWT
> scores over a lot of other frameworks because of its monolithic,
> closed-world compile. Any framework for dynamic module loading needs to
> defer a few operations to runtime, and that is a cost GWT core is unwilling
> to pay (thats what I understand).
>
> Having said that, you can still achieve what you want. Define an API (in
> terms of javascript methods) for your module, and use GWT
> Exporterto export the methods.
> That way, your GWT modules can inter-operate with
> hand-written javascript or with other pre-compiled GWT code. You can also
> dynamically add new modules to a page if you wish to do so. Any
> shared/common will however get download multiple times as part of each
> modules nocache.js + guid.cache.html, and there is nothing you can do about
> it.
>
> --Sri
>
> On 31 March 2010 21:48, lineman78  wrote:
>
> > Yeah, there is 1 problem I have with your solution and a separate
> > issue your solution doesn't address.  The problem I have with your
> > solution is that iFrames can't inherit size.  One behavior I like is
> > that you can stack the modules and they will fit tightly against the
> > other and the one below will move if the upper one's height changes,
> > i.e. a disclosure panel.  The issue that your issue doesn't seem to
> > resolve is that I would like to dynamically add the modules to the
> > page as they are added and would like the main module to not know
> > anything about them other than the fact that they extend an abstract
> > sub module and the location of the module's nocache.js.
>
> > On Mar 31, 2:14 am, Olivier Monaco  wrote:
> > > Hi,
>
> > > I don't know if I'll answer your question but we working on a main GWT-
> > > module with pluggable sub-modules. Each sub-modules is an ui-
> > > independant part of the whole application. To avoid interferences,
> > > each module loads into its own iframe. I wrote a messaging system that
> > > allow each module to communicate with each other (JSON serialization,
> > > auto-discovery of other modules...).
>
> > > Olivier
>
> > > On 31 mar, 03:10, lineman78  wrote:
>
> > > > I know this is a common request of people trying to make pluggable
> > > > applications.  It seems that every time someone comes up with a
> > > > solution to this problem the GWT team changes the way the core linkers
> > > > work and break the solution.  I was wondering if anyone knows a way to
> > > > dynamically load a module either with a new linker, or a different
> > > > method than the traditional appending a new script element to the end
> > > > of the body.  I try to append a script element to the end of the body
> > > > and it completely blows the document away and freezes the page in a
> > > > loading mode.  I found an email exchange between members of the GWT
> > > > contributors group in December where they discuss new methods for the
> > > > default linkers using dynamic iframes.  I have been exploring this
> > > > capability since 1.5 and every time I revisit it the method(hack job)
> > > > I used the last time will not work.  I would really like a more
> > > > consistent method.
>
> > > > Every forum I have seen where someone asks this someone inevitably
> > > > asks why, so let me head off this question by explaining.  I have run
> > > > into this in a few different situations, one when trying to integrate
> > > > GWT "portlets" into Liferay(Java portlet).  The second situation is in
> > > > trying to create a dynamic binding of sorts.  I have been trying to
> > > > figure out a way to create a GWT portal where you could install
> > > > modules and they could be added and removed dynamically without having
> > > > to recompile the core, creating something similar to iGoogle or
> > > > Liferay in a GWT/J2EE implementation.
>
> > --
> > 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

UIBinder and IE6

2010-03-31 Thread michael
Hello.

I would like to use UIBinder to define the layouts for my next
application. Problem is, that the client site still use IE6 as their
main browser.

Since I did not find it explicitly statet in the docs of GWT, I'd like
to ask if there are any limitations when using UIBinder regarding IE6
compatibility.


Thanks in advance,
Michael Vogt

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



Re: UIBinder and IE6

2010-03-31 Thread Michael Vogt
Hello.

I would like to use UIBinder to define the layouts for my next
application. Problem is, that the client site still use IE6 as their
main browser.

Since I did not find it explicitly statet in the docs of GWT, I'd like
to ask if there are any limitations when using UIBinder regarding IE6
compatibility.


Thanks in advance,
Michael Vogt

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



Re: I need to test the onError method of RequestCallback

2010-03-31 Thread jayaprasad vishwanathan
Thanks
Thomas, I managed to do it already, with the same way, given a sleep in the
servlet.
Now another issue , I am trying to crack is I have to use this mode for
running test in production mode

-runStyle Manual:1
when I run it , get the url , past in browser getting disconnected ,
The problem is there is a servlet generate a picture and return
ind devmode url is this - http://127.0.0.1:/test/NVM_hover_bg.png
but in test mode it is searching a servlet By this url
http://192.168.1.3:1627/com.test.client.test.JUnit/pic.png
and getting disconnected since its not able to get this servlet.
Could u please help me in this issue,
Thanks
JP




On Thu, Apr 1, 2010 at 2:50 AM, Thomas Broyer  wrote:

>
>
> On 31 mar, 13:39, jp  wrote:
> > Hi all ,
> > In gwt test case I have to make an an ajax call using RequestBuilder ,
> > Need to test the onError method on RequestCallback
> > is executed or not if we provide a wrong URL, I tried setting the
> > status or response,
> > tried many ways the onError method is not executed
> > Please help me
>
> There are very few cases when onError would be called, the most common
> one being a timeout if you call setTimeoutMillis with a non-0 value.
>
> The easy way to reliably have it is to Thread.sleep() on the server
> side with a long value while having a short timeout on the client
> side. Maybe GWT's own unit tests could inspire you?
>
> http://code.google.com/p/google-web-toolkit/source/browse/trunk/user/test/com/google/gwt/http/client/RequestBuilderTest.java#389
>
> http://code.google.com/p/google-web-toolkit/source/browse/trunk/user/test/com/google/gwt/http/server/RequestBuilderTestServlet.java#66
> (note that it won't run reliably in -runStyle:HtmlUnit due to a but in
> HtmlUnit)
>
> --
> 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
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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



UIBinder and IE6

2010-03-31 Thread Michael Vogt
Hello.

I would like to use UIBinder to define the layouts for my next
application. Problem is, that the client site still use IE6 as their
main browser.

Since I did not find it explicitly statet in the docs of GWT, I'd like
to ask if there are any limitations when using UIBinder regarding IE6
compatibility.


Thanks in advance,
Michael Vogt

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



Re: I need to test the onError method of RequestCallback

2010-03-31 Thread Thomas Broyer


On 31 mar, 13:39, jp  wrote:
> Hi all ,
> In gwt test case I have to make an an ajax call using RequestBuilder ,
> Need to test the onError method on RequestCallback
> is executed or not if we provide a wrong URL, I tried setting the
> status or response,
> tried many ways the onError method is not executed
> Please help me

There are very few cases when onError would be called, the most common
one being a timeout if you call setTimeoutMillis with a non-0 value.

The easy way to reliably have it is to Thread.sleep() on the server
side with a long value while having a short timeout on the client
side. Maybe GWT's own unit tests could inspire you?
http://code.google.com/p/google-web-toolkit/source/browse/trunk/user/test/com/google/gwt/http/client/RequestBuilderTest.java#389
http://code.google.com/p/google-web-toolkit/source/browse/trunk/user/test/com/google/gwt/http/server/RequestBuilderTestServlet.java#66
(note that it won't run reliably in -runStyle:HtmlUnit due to a but in
HtmlUnit)

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



Re: GWT/Hibernate/Oracle/Eclipse

2010-03-31 Thread Jas
Sorry for the double reply.  I got a email saying it was rejected.  It
lied I guess.

On Mar 31, 5:19 am, bebauer1200  wrote:
> Hello,
>
> please, can anyone help me?
>
> I use GWT as Client and Hibernate as Database Interface and as
> Database Oracle.
> I installed eclipse with the hibernate and the GWT plugin. Then I
> implemented hibernate in server side of GWT.
> Then I start the Google App Engine in eclipse and it works. Then I
> start a Web Browser and try to get data from GWT, but i get an error
> on the eclipse web server: "java.net.InetAddress is a restricted
> class. Please see the Google  App Engine developer's guide for more
> details.".
>
> Has anyone an idea what I can do?
>
> 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-tool...@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.



GWT/Hibernate/Oracle/Eclipse

2010-03-31 Thread Jason Hatton
Read the developer's guide :).

There is a white list of classes for both Google App Engine and Web Tool
Kit.  You have run into that restriction.   You will probably have issues
with trying to use Hibernate.  If you are using Google App Engine you will
have to you use App Engine's JDO or JPA implementations.  If you want to use
Hibernate then remove the App Engine from the design.

Jas

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



Re: GEP 1.3 : com.google.gdt.eclipse.suite.* packages not exported

2010-03-31 Thread Miguel Méndez
Hi Fred,

Could you file a bug for this?  Currently, they are not exported because we
wanted maximum flexibility.

On Tue, Mar 30, 2010 at 7:54 AM, Fred  wrote:

> Hi,
>
> I'm trying to set up a m2eclipse project configurator for GEP during
> my spare time (I'll open source the code eventually, it's just I
> haven't setup any SCM yet).
> So far, I've been able to add the GWT nature to maven projects, set
> the war source directory using the GEP API.
>
> I'd like to create/tweak LaunchConfigurations using
> com.google.gdt.eclipse.suite.WebAppLaunchUtil.
> But I can't use any of the classes in the com.google.gdt.eclipse.suite
> plugin, since no packages are exported. This is quite unfortunate,
> since I don't want to get sued for reverse engineering these classes.
>
> Can Google reconsider this design choice to help 3rd party plugins
> better integrate with GEP? I'll file an issue if you think it's
> doable.
>
> Thanks in advance. Regards,
>
> Fred Bricon
>
> --
> 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
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>


-- 
Miguel

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



Re: GWT/Hibernate/Oracle/Eclipse

2010-03-31 Thread Jason Hatton
Read the developer's guide :).

There is a white list of classes for both Google App Engine and Web Tool
Kit.  You have run into that restriction.   You will probably have issues
with trying to use Hibernate.  If you are using Google App Engine you will
have to you use App Engine's JDO or JPA implementations.  If you want to use
Hibernate then remove the App Engine from the design.

Jas

On Wed, Mar 31, 2010 at 5:19 AM, bebauer1200  wrote:

> Hello,
>
> please, can anyone help me?
>
> I use GWT as Client and Hibernate as Database Interface and as
> Database Oracle.
> I installed eclipse with the hibernate and the GWT plugin. Then I
> implemented hibernate in server side of GWT.
> Then I start the Google App Engine in eclipse and it works. Then I
> start a Web Browser and try to get data from GWT, but i get an error
> on the eclipse web server: "java.net.InetAddress is a restricted
> class. Please see the Google  App Engine developer's guide for more
> details.".
>
> Has anyone an idea what I can do?
>
> 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-tool...@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.
>
>

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



Re: help integrating GWT project to an existing Web Project (on Tomcat) within Eclipse

2010-03-31 Thread aish sundar
Thanks Keith. The steps seemed a lot clearer now and I followed it to
set uo my workspace exactly as yours. Now when I start the Tomcat
server, launch the client in DEV mode and go to http://localhost:8080/TestWeb,
everything loads up fine and I get to the client HTML page alright.
However when I click a button, which is tied to an Asynchronous RPC
call, I get the following exception :

SEVERE: Allocate exception for servlet greetServlet
java.lang.ClassNotFoundException: com.foo.client.GreetingService
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$000(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:
1275)
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:
1206)
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:
1083)
at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:
806)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:
129)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:
175)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:
128)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:
102)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:
109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:
286)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:
844)
at org.apache.coyote.http11.Http11Protocol
$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:
447)
at java.lang.Thread.run(Unknown Source)

The synchronous version of the GreetingService is in com.foo.client
package within the FooShared project(just as you have mentioned). I
have also added FooShared as a proj dependancy of FooClient and a
module dependency of FooServer.

NOTE: I did not do Step 15 in your instructions i.e., haven't really
created a WAR file for deployment yet. Its all running locally.

The error message is not very helpful as well, in terms of when and
where was the exception thrown. any idea what could have caused it.

Thanks,
aish

On Mar 30, 1:51 pm, Keith Platfoot  wrote:
> Hi aish,
>
> 1) Yes, FooServer would be your existing Dynamic Web project (TestWeb).
>  This project should include anything in the .server package of your GWT app
> (e.g. GreetingServerImpl) as well as any existing server-side code.
>
> Your WAR directory (you'll have just one) will be the WebContent directory
> of TestWeb.  Dynamic Web projects are configured to use the configuration
> and resource files (web.xml, HTML, CSS, JS, etc.) from this directory to
> build your WAR when debugging locally or creating a .war file for
> deployment.  BTW, the default name is "WebContent", but this can be
> customized during the New Dynamic Web project wizard.
>
> Your GWT code (in TestUI) will need to integrate into TestWeb's WAR
> directory when you run/debug locally and when you build a .war file.  For
> running locally, you just need to tell GWT DevMode to run within the context
> of TestWeb's staging WAR directory (see steps 11 and 12 in my checklist).
>  You don't need to copy any files manually, because GWT will pick up all the
> .java and .gwt.xml source files it needs directly from the launch classpath.
>  So there really is no explicit link to TestWeb from TestUI.  The only link
> from TestWeb back to TestUI is that your HTML host page in TestWeb's
> WebContent directory will need to reference your GWT module's bootstrap
> script (the TestUI.nocache.js file, which GWT will automatically insert into
> your staging WAR directory when you launch dev mode).
>
> Creating a .war for deployment, on the other hand, doe

Re: Scrollbar Widget

2010-03-31 Thread Ewald Pankratz
On Mar 31, 4:11 pm, Thomas Jackson 
wrote:
> I know this question has probably been asked many times but I was
> wondering if anyone has encountered a way to do a ScrollBar in GWT.  I
> am looking to build a widget which will show a file and do not want to
> load the whole file but want the ScrollBars to represent the whole file
> and moving the scrollbar would load different parts of the file.
>
> Does anyone know of such a beast?
>
> Thanks
> Thomas


You probably find here
http://code.google.com/docreader/#p=google-web-toolkit-incubator&s=google-web-toolkit-incubator&t=google-web-toolkit-incubator
what you are searching for.

EP

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



Re: Serialization Error with own class while compiling

2010-03-31 Thread kozura
What are the fields of the Kontakt class?  Based on the error, one of
the fields under Domain is a JavaScriptObject, but nothing in your
Domain class above seems to be.

Also, you should just use the java.io.Serializable interface, not
gwt's IsSerializable.

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



Re: Serialization Error with own class while compiling

2010-03-31 Thread Sean
Don't have a constructor with arguments, only use Set/Gets.

What's a Kontakt? Is that serializable?

Fix the constructor and verify Kontakt is serializable and it should
work.





On Mar 31, 10:43 am, Johannes Stein 
wrote:
> Hey,
>
> ive got a problem and im searching for hours to find a solution.
> My problem is the following:
>
> I have a little RPC-Service which returns as a result a "Domain"-
> Object (Own custom-class).
> But this Domain-Object could not be serialized, though i have made
> this "Domain"-class serializable with
> com.google.gwt.user.client.rpc.IsSerializable.
>
> Im using GWT SDK 2.01 and getting the following compiling error:
>
> [ERROR] com.google.gwt.core.client.JavaScriptObject is not assignable
> to 'com.google.gwt.user.client.rpc.IsSerializable' or
> 'java.io.Serializable' nor does it have a custom field serializer
> (reached via com.vostokdomains.kis.client.objetcs.Domain)
>
>  [ERROR] com.google.gwt.core.client.JavaScriptObject has no available
> instantiable subtypes. (reached via
> com.vostokdomains.kis.client.objetcs.Domain)
>
> I hope you can help me out!!
> 
> Enclosed some code-snippets:
>
> package com.vostokdomains.kis.client.objetcs;
>
> import java.util.Date;
>
> import com.google.gwt.i18n.client.DateTimeFormat;
> import com.google.gwt.user.client.rpc.IsSerializable;
>
> == Domain-Object
>
> public class Domain implements Comparable, IsSerializable{
>
>         private String adresse;
>         private String tld;
>         private Date create;
>         private Date next;
>         private int laufzeit;
>         private double preis;
>
>         private Kontakt registrar;
>         private Kontakt admin;
>         private Kontakt tech;
>         private Kontakt owner;
>
>         private String namesever1;
>         private String nameserver2;
>         private String records;
>
>         Domain(){
>
>         }
>
>         public Domain(String adresse, String tld, int tag, int monat, int
> jahr, Kontakt kontakt) {
>
>                 DateTimeFormat fmt = DateTimeFormat.getFormat("dd.MM.yyy");
>
>                 this.setRegistrar(new Kontakt("Keine Angabe"));
>                 this.adresse=adresse;
>                 this.tld=tld;
>                 this.owner=kontakt;
>                         this.next=fmt.parse((tag+"."+monat+"."+jahr));
>
>                 return;
>
>         }
>
>         public Domain(String adresse, String tld, Kontakt kontakt){
>                 this.setRegistrar(new Kontakt("Keine Angabe"));
>                 this.adresse=adresse;
>                 this.tld=tld;
>                 this.owner=kontakt;
>                 this.next=new Date();
>         }
>
> []
>
> = DatabaseService 
>
> public class DatabaseServiceImpl extends RemoteServiceServlet
> implements
>                 DatabaseService {
>
>         /**
>          *
>          */
>         private static final long serialVersionUID = 1L;
>
>         public Domain getDomains() {
>
>                 DBConnection conn = new DBConnection();
>                 conn.connect();
>                 Connection dbconn = conn.getConnection();
>                 System.out.print("TEST");
>                 Domain d = null;
>
>                 try {
>                         ResultSet rs = null;
>                         Statement stm = dbconn.createStatement();
>                         System.out.print("STATEMENT");
>                         stm.execute("SELECT * FROM domains");
>                         rs = stm.getResultSet();
>
>                         rs.next() ;
>                                 Kontakt k = new Kontakt(rs.getString(2));
>                                 d = new Domain(rs.getString(3), "tld", k);
>
>                 } catch (SQLException e) {
>                         // TODO Auto-generated catch block
>                         e.printStackTrace();
>                 }
>                         return d;
>
>         }
>
> }
>
>  RPC Call 
>
> public class Kis implements EntryPoint {
>
>         @Override
>         public void onModuleLoad() {
>
>                 DatabaseServiceAsync rpc;
>                 rpc = (DatabaseServiceAsync) 
> GWT.create(DatabaseService.class);
>                 ServiceDefTarget target = (ServiceDefTarget) rpc;
>                 String moduleRelativeURL = GWT.getModuleBaseURL() +
> "DatabaseServiceImpl";
>                 target.setServiceEntryPoint(moduleRelativeURL);
>                 /*
>                 test.add();
>                 RootPanel.get().add(test.vpanel);*/
>
>                 rpc.getDomains(new AsyncCallback() {
>
>                 public void onFailure(Throwable caught) {
>
>                   Window.alert("Übertragung fehlgeschlagen!" );
>                 }
>
>                 public void onSuccess(Domain rs) {
>
>                         //Expiration ex = new Expiration();
>          

Scrollbar Widget

2010-03-31 Thread Thomas Jackson
I know this question has probably been asked many times but I was 
wondering if anyone has encountered a way to do a ScrollBar in GWT.  I 
am looking to build a widget which will show a file and do not want to 
load the whole file but want the ScrollBars to represent the whole file 
and moving the scrollbar would load different parts of the file.


Does anyone know of such a beast?

Thanks
Thomas

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



Serialization Error with own class while compiling

2010-03-31 Thread Johannes Stein
Hey,

ive got a problem and im searching for hours to find a solution.
My problem is the following:

I have a little RPC-Service which returns as a result a "Domain"-
Object (Own custom-class).
But this Domain-Object could not be serialized, though i have made
this "Domain"-class serializable with
com.google.gwt.user.client.rpc.IsSerializable.

Im using GWT SDK 2.01 and getting the following compiling error:

[ERROR] com.google.gwt.core.client.JavaScriptObject is not assignable
to 'com.google.gwt.user.client.rpc.IsSerializable' or
'java.io.Serializable' nor does it have a custom field serializer
(reached via com.vostokdomains.kis.client.objetcs.Domain)

 [ERROR] com.google.gwt.core.client.JavaScriptObject has no available
instantiable subtypes. (reached via
com.vostokdomains.kis.client.objetcs.Domain)

I hope you can help me out!!

Enclosed some code-snippets:

package com.vostokdomains.kis.client.objetcs;

import java.util.Date;

import com.google.gwt.i18n.client.DateTimeFormat;
import com.google.gwt.user.client.rpc.IsSerializable;

== Domain-Object

public class Domain implements Comparable, IsSerializable{

private String adresse;
private String tld;
private Date create;
private Date next;
private int laufzeit;
private double preis;

private Kontakt registrar;
private Kontakt admin;
private Kontakt tech;
private Kontakt owner;

private String namesever1;
private String nameserver2;
private String records;

Domain(){

}

public Domain(String adresse, String tld, int tag, int monat, int
jahr, Kontakt kontakt) {

DateTimeFormat fmt = DateTimeFormat.getFormat("dd.MM.yyy");

this.setRegistrar(new Kontakt("Keine Angabe"));
this.adresse=adresse;
this.tld=tld;
this.owner=kontakt;
this.next=fmt.parse((tag+"."+monat+"."+jahr));

return;

}

public Domain(String adresse, String tld, Kontakt kontakt){
this.setRegistrar(new Kontakt("Keine Angabe"));
this.adresse=adresse;
this.tld=tld;
this.owner=kontakt;
this.next=new Date();
}

[]

= DatabaseService 

public class DatabaseServiceImpl extends RemoteServiceServlet
implements
DatabaseService {

/**
 *
 */
private static final long serialVersionUID = 1L;

public Domain getDomains() {

DBConnection conn = new DBConnection();
conn.connect();
Connection dbconn = conn.getConnection();
System.out.print("TEST");
Domain d = null;

try {
ResultSet rs = null;
Statement stm = dbconn.createStatement();
System.out.print("STATEMENT");
stm.execute("SELECT * FROM domains");
rs = stm.getResultSet();

rs.next() ;
Kontakt k = new Kontakt(rs.getString(2));
d = new Domain(rs.getString(3), "tld", k);


} catch (SQLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
return d;


}

}


 RPC Call 

public class Kis implements EntryPoint {

@Override
public void onModuleLoad() {

DatabaseServiceAsync rpc;
rpc = (DatabaseServiceAsync) GWT.create(DatabaseService.class);
ServiceDefTarget target = (ServiceDefTarget) rpc;
String moduleRelativeURL = GWT.getModuleBaseURL() +
"DatabaseServiceImpl";
target.setServiceEntryPoint(moduleRelativeURL);
/*
test.add();
RootPanel.get().add(test.vpanel);*/

rpc.getDomains(new AsyncCallback() {

public void onFailure(Throwable caught) {

  Window.alert("Übertragung fehlgeschlagen!" );
}

public void onSuccess(Domain rs) {


//Expiration ex = new Expiration();
//ex.create(rs,0);
System.out.print(rs.getAdresse());
//RootPanel.get().add(ex.vpanel);

}
}
);


}

}

-- 
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-toolk

Re: How to implement hashCode() and equals() for a point in 2D-space (x,y) in GWT?

2010-03-31 Thread kozura
Posted issue http://code.google.com/p/google-web-toolkit/issues/detail?id=4805.

As for equals, why not just compare the double values directly, vs
bitwise equality?  Unless you're concerned with the various versions
of NaN and infinity this should work fine; in fact you might even want
to allow a bit of a margin to deal with rounding.

jchimene, you'd want to do something like the original poster to avoid
that, 31*hashOfpX + hashOfpY.

On Mar 31, 11:46 am, kozura  wrote:
> Ach, you're right, I hadn't bothered to check in deployed mode,
> assumed GWT did the right thing!  This should be posted as an issue,
> as hashCode() is listed as implemented, but it should be done
> correctly.  So I guess toString is the best way to go in the
> meantime..
>
> On Mar 31, 10:34 am, Thomas Broyer  wrote:
>
> > On Mar 31, 5:30 pm, kozura  wrote:
>
> > > ((Double)fX).hashCode() seems to work fine.
>
> > It's no more than a "return (int) value" (i.e. equivalent to "(int)
> > fX") which is probably not "accurate" enough for a Point where you
> > chose to use doubles to store the coordinates...

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



Re: Is client side Javascript code always visible?

2010-03-31 Thread Ian Bambury
No

Ian

http://examples.roughian.com


On 31 March 2010 18:58, NeuroPulse  wrote:

> What I mean is, is it compiled like C++ is compiled into a program?
>
> On Mar 31, 12:52 pm, Chris Lercher  wrote:
> > If the JavaScript should be executed in the browser (as usual), then
> > it will have to be downloaded to the browser. This means, that it can
> > also be copied. GWT offers an option to obfuscate the generated code,
> > and one of the effects of this is, that it's harder for someone to
> > read the code. But it could still be copied. So, if you have some
> > proprietary algorithms, you might want to run them on the server.
> >
> > Chris
> >
> > On Mar 31, 2:46 pm, NeuroPulse  wrote:
> >
> > > Greetings,
> >
> > > Before I start writing Javascript, I am trying to find out if anyone
> > > can see and copy it like HTML?
> >
> > > Every page with Javascript I have seen so far has a link to the code
> > > in the HTML.
> >
> > > 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-tool...@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.
>
>

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



Re: Dynamic Module Loading

2010-03-31 Thread Sripathi Krishnan
GWT's architecture is orthogonal to your requirement of dynamic module
loading / pluggable sub-modules, so whatever solution you find will be a
hack and not maintainable.

One of the core philosophies of GWT - *If something can be done at compile
time, do it*. The key benefit of such a philosophy is performance. GWT
scores over a lot of other frameworks because of its monolithic,
closed-world compile. Any framework for dynamic module loading needs to
defer a few operations to runtime, and that is a cost GWT core is unwilling
to pay (thats what I understand).

Having said that, you can still achieve what you want. Define an API (in
terms of javascript methods) for your module, and use GWT
Exporterto export the methods.
That way, your GWT modules can inter-operate with
hand-written javascript or with other pre-compiled GWT code. You can also
dynamically add new modules to a page if you wish to do so. Any
shared/common will however get download multiple times as part of each
modules nocache.js + guid.cache.html, and there is nothing you can do about
it.


--Sri



On 31 March 2010 21:48, lineman78  wrote:

> Yeah, there is 1 problem I have with your solution and a separate
> issue your solution doesn't address.  The problem I have with your
> solution is that iFrames can't inherit size.  One behavior I like is
> that you can stack the modules and they will fit tightly against the
> other and the one below will move if the upper one's height changes,
> i.e. a disclosure panel.  The issue that your issue doesn't seem to
> resolve is that I would like to dynamically add the modules to the
> page as they are added and would like the main module to not know
> anything about them other than the fact that they extend an abstract
> sub module and the location of the module's nocache.js.
>
> On Mar 31, 2:14 am, Olivier Monaco  wrote:
> > Hi,
> >
> > I don't know if I'll answer your question but we working on a main GWT-
> > module with pluggable sub-modules. Each sub-modules is an ui-
> > independant part of the whole application. To avoid interferences,
> > each module loads into its own iframe. I wrote a messaging system that
> > allow each module to communicate with each other (JSON serialization,
> > auto-discovery of other modules...).
> >
> > Olivier
> >
> > On 31 mar, 03:10, lineman78  wrote:
> >
> > > I know this is a common request of people trying to make pluggable
> > > applications.  It seems that every time someone comes up with a
> > > solution to this problem the GWT team changes the way the core linkers
> > > work and break the solution.  I was wondering if anyone knows a way to
> > > dynamically load a module either with a new linker, or a different
> > > method than the traditional appending a new script element to the end
> > > of the body.  I try to append a script element to the end of the body
> > > and it completely blows the document away and freezes the page in a
> > > loading mode.  I found an email exchange between members of the GWT
> > > contributors group in December where they discuss new methods for the
> > > default linkers using dynamic iframes.  I have been exploring this
> > > capability since 1.5 and every time I revisit it the method(hack job)
> > > I used the last time will not work.  I would really like a more
> > > consistent method.
> >
> > > Every forum I have seen where someone asks this someone inevitably
> > > asks why, so let me head off this question by explaining.  I have run
> > > into this in a few different situations, one when trying to integrate
> > > GWT "portlets" into Liferay(Java portlet).  The second situation is in
> > > trying to create a dynamic binding of sorts.  I have been trying to
> > > figure out a way to create a GWT portal where you could install
> > > modules and they could be added and removed dynamically without having
> > > to recompile the core, creating something similar to iGoogle or
> > > Liferay in a GWT/J2EE implementation.
>
> --
> 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
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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



Re: GWT 2.03 add Ssl conector

2010-03-31 Thread sergio vonknorring
> Hi Guys
>
> for our Company We need add a Ssl connector to the Embebed Jetty
> Server of GWT Eclipse Plugin for galileo , But until now has been
> unsuccessfully.
>
> Somebody had any Idea or Tip how do that
>
> Regards,Sergio

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



Re: How to implement hashCode() and equals() for a point in 2D-space (x,y) in GWT?

2010-03-31 Thread jchimene


On Mar 31, 9:36 am, Luis Fernando Planella Gonzalez
 wrote:
> > Anyone has a better idea?
>
> public boolean equals(Object obj) {
>     if (!(obj instanceof Point)) {
>         return false;
>     }
>     Point p = (Point) obj;
>     return fX == p.fY && fY == p.fY;
>
> }
>
> public int hashCode() {
>     return (int) (pX + pY);

Does this say that Point(2.0,0.0) and Point(0.0,2.0) have the same
hashCode()?

>
> }

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



Re: Is client side Javascript code always visible?

2010-03-31 Thread NeuroPulse
What I mean is, is it compiled like C++ is compiled into a program?

On Mar 31, 12:52 pm, Chris Lercher  wrote:
> If the JavaScript should be executed in the browser (as usual), then
> it will have to be downloaded to the browser. This means, that it can
> also be copied. GWT offers an option to obfuscate the generated code,
> and one of the effects of this is, that it's harder for someone to
> read the code. But it could still be copied. So, if you have some
> proprietary algorithms, you might want to run them on the server.
>
> Chris
>
> On Mar 31, 2:46 pm, NeuroPulse  wrote:
>
> > Greetings,
>
> > Before I start writing Javascript, I am trying to find out if anyone
> > can see and copy it like HTML?
>
> > Every page with Javascript I have seen so far has a link to the code
> > in the HTML.
>
> > 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-tool...@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: Is client side Javascript code always visible?

2010-03-31 Thread Chris Lercher
If the JavaScript should be executed in the browser (as usual), then
it will have to be downloaded to the browser. This means, that it can
also be copied. GWT offers an option to obfuscate the generated code,
and one of the effects of this is, that it's harder for someone to
read the code. But it could still be copied. So, if you have some
proprietary algorithms, you might want to run them on the server.

Chris



On Mar 31, 2:46 pm, NeuroPulse  wrote:
> Greetings,
>
> Before I start writing Javascript, I am trying to find out if anyone
> can see and copy it like HTML?
>
> Every page with Javascript I have seen so far has a link to the code
> in the HTML.
>
> 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-tool...@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: Is client side Javascript code always visible?

2010-03-31 Thread Sripathi Krishnan
Yes. JS can be copied easily. You can obfuscate to make it difficult to
understand, but it still isn't impossible.

--Sri




On 31 March 2010 18:16, NeuroPulse  wrote:

> Greetings,
>
> Before I start writing Javascript, I am trying to find out if anyone
> can see and copy it like HTML?
>
> Every page with Javascript I have seen so far has a link to the code
> in the HTML.
>
> 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-tool...@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.
>
>

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



Re: Is client side Javascript code always visible?

2010-03-31 Thread kozura
Of course, anything sent to and rendered/run by the client's browser
can be retrieved by the user.  Note that GWT does greatly obfuscate
the code - everything gets optimized and turned into 2-3 letter names,
etc, but even that can be reverse engineered.

On Mar 31, 6:46 am, NeuroPulse  wrote:
> Greetings,
>
> Before I start writing Javascript, I am trying to find out if anyone
> can see and copy it like HTML?
>
> Every page with Javascript I have seen so far has a link to the code
> in the HTML.
>
> 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-tool...@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.



Is client side Javascript code always visible?

2010-03-31 Thread NeuroPulse
Greetings,

New to Javascript.

Is everyone able to see and copy Javascript a web page uses like HTML?

Is there a way to hide it?

Every page with Javascript I have seen so far has a link to the code
in the HTML.

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-tool...@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: Eclipse JavaEE tools + GWT Development mode

2010-03-31 Thread Chris Lercher
Hi David,

I haven't tried the same setup with Tomcat yet, but I expect it should
be the same procedure: In the "Servers" view in Eclipse, select the
server you deployed the EAR to. Right-click it and choose "Debug".
This allows you to set breakpoints in your server side code.

To debug the client side code, you can additionally start your GWT
code server (the one that's usually on port 9997) in Debug mode
(Select your GWT project, then "Debug As... > Web Application"). You
should actually modify that debug configuration to uncheck the
checkbox "Run built-in server"! (Because you're using Tomcat instead
of the built-in Jetty). Now you'll only start the code server, without
Jetty. Then, if you're using default values for your ports, you can
browse your application with something like:

http://127.0.0.1:8080/MyProject.html?gwt.codesvr=127.0.0.1:9997

(instead of http://127.0.0.1:/MyProject.html?gwt.codesvr=127.0.0.1:9997)

HTH
Chris

PS I'd really be interested, if it works with Tomcat, too - please
report back.


On Mar 31, 8:14 am, David  wrote:
> Cris, your notes were really helpfully.
>
> However I would like to know how you manage to debug your application
> using your Glassfish (tomcat in my case) in order to use breakpoints
> and those stuff.
>
> Thanks you so much

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



Re: How to implement hashCode() and equals() for a point in 2D-space (x,y) in GWT?

2010-03-31 Thread kozura
Ach, you're right, I hadn't bothered to check in deployed mode,
assumed GWT did the right thing!  This should be posted as an issue,
as hashCode() is listed as implemented, but it should be done
correctly.  So I guess toString is the best way to go in the
meantime..

On Mar 31, 10:34 am, Thomas Broyer  wrote:
> On Mar 31, 5:30 pm, kozura  wrote:
>
> > ((Double)fX).hashCode() seems to work fine.
>
> It's no more than a "return (int) value" (i.e. equivalent to "(int)
> fX") which is probably not "accurate" enough for a Point where you
> chose to use doubles to store the coordinates...

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



I need to test the onError method of RequestCallback

2010-03-31 Thread jp
Hi all ,
In gwt test case I have to make an an ajax call using RequestBuilder ,
Need to test the onError method on RequestCallback
is executed or not if we provide a wrong URL, I tried setting the
status or response,
tried many ways the onError method is not executed
Please help me
thanks
JP

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



Give GWT Text box a value with Div tag in jsp page

2010-03-31 Thread warrior
Hi to all,

  I am Trying to integrate GWT component in existing where i need to
replace all html componenet with GWT componenet.I am starting with
Login page where i need to replace Text box.

I can show text box with the code
 but what i suppose to do to give this textbox
a value on jsp page?
Value is coming somewhere from request.

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



Re: Problem using java projects in GWT

2010-03-31 Thread Neil
In our projects, we just use our source code path directly.

When launching the project in DevMode from within Eclipse, the launch
config's classpath contains both the "default classpath" plus the /src
directory.

When compiling the project in Ant, we reference the source path
directly in the gwt Compiler call:
  
 
 
 


 
  

Basically, the GWT Compiler needs both the compiled code and the
source code to successfully compile the module.

Hope that helps.

Neil Olson
http://www.intertech.com/blog


On Mar 30, 8:23 pm, lineman78  wrote:
> You cannot use source code from a java project in GWT directly.  All
> GWT code must be in the client path of a module.  i.e.
> sura.ticketcheck.bo.Instancia is not part of a GWT module.  There is
> one workaround I have gotten to work(only once, so no guarantee).
>
> 1) Create a file BoModule.gwt.xml in your source folder under the
> following path: sura/ticketcheck
> 2) Put the following text into the file:
>     
>      2.0.3//EN" "http://google-web-toolkit.googlecode.com/svn/tags/2.0.3/
> distro-source/core/src/gwt-module.dtd">
>     
>         
>         
>     
> 3) In your src/ticketcheckGWT/xxx.gwt.xml put  name="sura.ticketcheck.BoModule"/>
>
> Essentially what you are doing is tricking the GWT compiler into
> thinking that sura.ticketcheck has a module who's source is in the
> folder 'bo'.  This should work as long as all files within package
> sura.ticketcheck.bo don't import outside of that package except
> standard java objects that are available through the
> com.google.gwt.user.User module.  I have run into this several times
> and sometimes you just have to rewrite(copy and paste) stuff into a
> GWT project.
>
> On Mar 30, 1:25 pm, Lucas Rios  wrote:
>
> > Hi everybody
>
> > I'm trying to use a Java project in GWT but I have had some problems because
> > I can't compile the GWT project.
>
> > I have done this:
>
> > 1.Make a xxx.gwt.xml in the java project.
> > 2. Add a external JAR (java project) in the java build path of the GWT
> > project. In Projects and libraries tabs.
> > 3. Reference a xxx.gwt.xml in GWT projects (gwt.xml)
> > 4. And last compile the GWT project... showing me those errors
>
> > Compiling module ticketcheckGWT.Ticketcheck_GWT
> >    Validating newly compiled units
> >       [ERROR] Errors in
> > 'file:/D:/Sura_desarrollo/Ticketcheck%20GWT/src/ticketcheckGWT/client/Ticketcheck_GWT.java'
> >          [ERROR] Line 488: No source code is available for type
> > sura.ticketcheck.bo.Instancia; did you forget to inherit a required module?
> >       [ERROR] Errors in
> > 'file:/D:/Sura_desarrollo/Ticketcheck%20GWT/src/ticketcheckGWT/client/ServiciosTicketcheck.java'
> >          [ERROR] Line 13: No source code is available for type
> > sura.ticketcheck.bo.Instancia; did you forget to inherit a required module?
> >       [ERROR] Errors in
> > 'file:/D:/Sura_desarrollo/Ticketcheck%20GWT/src/ticketcheckGWT/client/ServiciosTicketcheckAsync.java'
> >          [ERROR] Line 12: No source code is available for type
> > sura.ticketcheck.bo.Instancia; did you forget to inherit a required module?
> >       [ERROR] Errors in
> > 'jar:file:/D:/Lucas%20Ríos/GWT/gwanted/gwanted-core.jar!/org/gwanted/gwt/core/client/logger/TimeLoggerImpl.java'
> >          [ERROR] Line 92: Parameter 'widgetLoadTime': type 'long' is not
> > safe to access in JSNI code
> >          For additional info see:
> > file:/D:/Escritorio/eclipse-jee-galileo-win32/eclipse/plugins/com.google.gwt.eclipse.sdkbundle.2.0.1_2.0.1.v201002021445/gwt-2.0.1/doc/helpInfo/longJsniRestriction.html
> >    Finding entry point classes
> >       [ERROR] Unable to find type 'ticketcheckGWT.client.Ticketcheck_GWT'
> >          [ERROR] Hint: Previous compiler errors may have made this type
> > unavailable
> >          [ERROR] Hint: Check the inheritance chain from your module; it may
> > not be inheriting a required module or a module may not be adding its source
> > path entries properly
>
> > If somebody know how I can solve it please help me
>
> > Thank for all
>
> > Regards
>
> > LucasRR

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



GWT 2.03 add Ssl conector

2010-03-31 Thread svonknorr...@gmail.com
Hi Guys

for our Company We need add a Ssl connector to the Embebed Jetty
Server of GWT Eclipse Plugin for galileo , But until now has been
unsuccessfully.

Somebody had any Idea or Tip to do that

Regards,Sergio

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



changing Module Base Url

2010-03-31 Thread Shahab
Hi,
I want to change the module base url
plz,don't ask me why
for example:
my project's name is : testProject
and my base url is :
/testproject/
can anyone help me how to change the base url to
/somethingelse/
???
Best Regards

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



Is client side Javascript code always visible?

2010-03-31 Thread NeuroPulse
Greetings,

Before I start writing Javascript, I am trying to find out if anyone
can see and copy it like HTML?

Every page with Javascript I have seen so far has a link to the code
in the HTML.

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-tool...@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.



any idea when the onError method of requestcallback get called in GWTTestCase environment

2010-03-31 Thread jayaprasad vishwanathan
On Wed, Mar 31, 2010 at 12:56 AM, jayaprasad vishwanathan <
jpforj...@gmail.com> wrote:

> Hi All,
> Any idea,  I need to test from GWTTestCase whether onError method of
> RequestCallbackget called or not,
> On which scenario the onError method get called in testing environment.
> Thanks
> JP
>
>
>

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



Exception in DriverManager.getConnection

2010-03-31 Thread arnefarin
Hello, i am using most recent version of GWT. I want to connect via
RPC to hibernate- mysql.
I encounter the same error messages as the mentioned in thread

http://www.mail-archive.com/google-web-toolkit@googlegroups.com/msg15320.html

I have solved the problem the same way as in the thread (i.e. by
unchecking of Project->Properties->Google->Use Google App Engine), but
now I am unable to run, debug application in hosted mode.
How should it be started?
Please help me, i am stuck!
Thanks
Arne

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



Exception in DriverManager.getConnection

2010-03-31 Thread adf asdf
Hello, i am using most recent version of GWT. I want to connect via
RPC to hibernate- mysql.
I encounter the same error messages as the mentioned in thread

http://www.mail-archive.com/google-web-toolkit@googlegroups.com/msg15320.html

I have solved the problem the same way as in the thread (i.e. by
unchecking of Project->Properties->Google->Use Google App Engine), but
now I am unable to run, debug application in hosted mode.
How should it be started?
Please help me, i am stuck!
Thanks
Arne

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



Re: Eclipse JavaEE tools + GWT Development mode

2010-03-31 Thread David

Cris, your notes were really helpfully.

However I would like to know how you manage to debug your application
using your Glassfish (tomcat in my case) in order to use breakpoints
and those stuff.

Thanks you so much

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



GWT/Hibernate/Oracle/Eclipse

2010-03-31 Thread bebauer1200
Hello,

please, can anyone help me?

I use GWT as Client and Hibernate as Database Interface and as
Database Oracle.
I installed eclipse with the hibernate and the GWT plugin. Then I
implemented hibernate in server side of GWT.
Then I start the Google App Engine in eclipse and it works. Then I
start a Web Browser and try to get data from GWT, but i get an error
on the eclipse web server: "java.net.InetAddress is a restricted
class. Please see the Google  App Engine developer's guide for more
details.".

Has anyone an idea what I can do?

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-tool...@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 implement hashCode() and equals() for a point in 2D-space (x,y) in GWT?

2010-03-31 Thread Luis Fernando Planella Gonzalez
> Anyone has a better idea?

public boolean equals(Object obj) {
if (!(obj instanceof Point)) {
return false;
}
Point p = (Point) obj;
return fX == p.fY && fY == p.fY;
}

public int hashCode() {
return (int) (pX + pY);
}

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



Re: How to implement hashCode() and equals() for a point in 2D-space (x,y) in GWT?

2010-03-31 Thread Thomas Broyer


On Mar 31, 5:30 pm, kozura  wrote:
> ((Double)fX).hashCode() seems to work fine.

It's no more than a "return (int) value" (i.e. equivalent to "(int)
fX") which is probably not "accurate" enough for a Point where you
chose to use doubles to store the coordinates...

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



Re: Dynamic Module Loading

2010-03-31 Thread lineman78
Yeah, there is 1 problem I have with your solution and a separate
issue your solution doesn't address.  The problem I have with your
solution is that iFrames can't inherit size.  One behavior I like is
that you can stack the modules and they will fit tightly against the
other and the one below will move if the upper one's height changes,
i.e. a disclosure panel.  The issue that your issue doesn't seem to
resolve is that I would like to dynamically add the modules to the
page as they are added and would like the main module to not know
anything about them other than the fact that they extend an abstract
sub module and the location of the module's nocache.js.

On Mar 31, 2:14 am, Olivier Monaco  wrote:
> Hi,
>
> I don't know if I'll answer your question but we working on a main GWT-
> module with pluggable sub-modules. Each sub-modules is an ui-
> independant part of the whole application. To avoid interferences,
> each module loads into its own iframe. I wrote a messaging system that
> allow each module to communicate with each other (JSON serialization,
> auto-discovery of other modules...).
>
> Olivier
>
> On 31 mar, 03:10, lineman78  wrote:
>
> > I know this is a common request of people trying to make pluggable
> > applications.  It seems that every time someone comes up with a
> > solution to this problem the GWT team changes the way the core linkers
> > work and break the solution.  I was wondering if anyone knows a way to
> > dynamically load a module either with a new linker, or a different
> > method than the traditional appending a new script element to the end
> > of the body.  I try to append a script element to the end of the body
> > and it completely blows the document away and freezes the page in a
> > loading mode.  I found an email exchange between members of the GWT
> > contributors group in December where they discuss new methods for the
> > default linkers using dynamic iframes.  I have been exploring this
> > capability since 1.5 and every time I revisit it the method(hack job)
> > I used the last time will not work.  I would really like a more
> > consistent method.
>
> > Every forum I have seen where someone asks this someone inevitably
> > asks why, so let me head off this question by explaining.  I have run
> > into this in a few different situations, one when trying to integrate
> > GWT "portlets" into Liferay(Java portlet).  The second situation is in
> > trying to create a dynamic binding of sorts.  I have been trying to
> > figure out a way to create a GWT portal where you could install
> > modules and they could be added and removed dynamically without having
> > to recompile the core, creating something similar to iGoogle or
> > Liferay in a GWT/J2EE implementation.

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



Re: Blank screen in IE7 but normal in IE6, IE8, FF

2010-03-31 Thread tankesz
Hi,

Thanks for the reply, but I put into my html file the following line,
and the screen goes blank in IE6, IE7 and IE8 too. It works in FF.



Tankesz

On márc. 30, 09:06, Peter Simun  wrote:
> Did you tried to switch compatibility mode inIE7?
>
> It should help you.
> -p-
>
> On 17. Mar., 12:38 h., tankesz  wrote:
>
>
>
> > Hi,
>
> > I am new in GWT and I have a problem with LayoutPanel.
> > Adding LayoutPanel to the north side of a DockLayoutPanel works
> > correctly.
> > But when I put DeckPanel into the center of the DockLayoutPanel, and
> > into the DeckPanel I put LayoutPanel, thescreengoesblank.
> > It happens only inIE7. In IE6, IE8 and FF it works correctly as in
> > the north side.
> > Could anyone help me, what is the reason of that?
>
> > Thanks,
>
> > Tankesz- Idézett szöveg elrejtése -
>
> - Idézett szöveg megjelenítése -

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



Re: image help

2010-03-31 Thread Sripathi Krishnan
You can use any image manipulation software in batch mode to process all
images at one go. Alternatively, if you are serving images via servlet, you
can use the java image libraries to add the watermark. If you google around,
you should find a lot of ways to add a watermark to multiple images in one
go.


--Sri



On 31 March 2010 20:36, Chris  wrote:

>
> Is it possible to lay a watermark Image on top of the image I already
> have on my page or do I have to edit each photo in Photoshop or
> something like that to lay a watermark over it?
>
> Thanks!
>
>
>
> On Mar 29, 10:15 pm, abhiram wuntakal  wrote:
> > Hey I have this not-so-technical work around for u.
> >
> >  Apply a Mouse over handler for the image. on a mouse-over, just change
> the
> > image to some other image (probably a smaller one which says "Dude, U
> cant
> > download this!!!") and again on a Mouse-out bring back the original
> image.
> >
> >  Guess that will solve your problem and people will not be able to
> download
> > it...
> >
> >  But as Sripathi says, it would be better to show a smaller size, low
> > resolution image, as people can always do a ScreenPrint and extract
> exactly
> > that image alone!!
> >
> >  Hope a combination of these two things would solve ur problem.
> >
> > ~ Abhi
> >
> > On Tue, Mar 30, 2010 at 3:02 AM, Sripathi Krishnan <
> >
> >
> >
> > sripathikrish...@gmail.com> wrote:
> > > but if they can just right click it and "Save Image As" there isn't any
> > >> point.
> >
> > > Disabling right click is no solution. Its trivial to figure out the
> link of
> > > the image and then download it directly. Div overlays also won't help.
> As
> > > long as the user can see it, there is always going to be a way for him
> to
> > > download it.
> >
> > > You should -
> >
> > >- Only show a smaller size, low resolution image before the user
> > >purchases it
> > >- Apply a watermark/logo on the free image, so that there isn't any
> > >merit in using the image directly.
> >
> > > --Sri
> >
> > > On 30 March 2010 02:42, Sudeep S  wrote:
> >
> > >> i am not sure if this is a right approach...how about placing a
> > >> transparent div over the image.
> > >> would that work.
> >
> > >> On Tue, Mar 30, 2010 at 12:22 AM, Chris 
> wrote:
> >
> > >>> does anyone know if there is a way to disable someone from right
> > >>> clicking on an image and being able to save it?  i am trying to make
> > >>> an application where people can purchase images but if they can just
> > >>> right click it and "Save Image As" there isn't any point.  Any
> > >>> suggestions would be great.
> >
> > >>> 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 cr...@googlegroups.com>
> > >>> .
> > >>> For more options, visit this group at
> > >>>http://groups.google.com/group/google-web-toolkit?hl=en.
> >
> > >>  --
> > >> 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 cr...@googlegroups.com>
> > >> .
> > >> For more options, visit this group at
> > >>http://groups.google.com/group/google-web-toolkit?hl=en.
> >
> > >  --
> > > 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 cr...@googlegroups.com>
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/google-web-toolkit?hl=en.
>
> --
> 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
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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



Re: How to implement hashCode() and equals() for a point in 2D-space (x,y) in GWT?

2010-03-31 Thread kozura
((Double)fX).hashCode() seems to work fine.

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



Re: image help

2010-03-31 Thread Chris

Is it possible to lay a watermark Image on top of the image I already
have on my page or do I have to edit each photo in Photoshop or
something like that to lay a watermark over it?

Thanks!



On Mar 29, 10:15 pm, abhiram wuntakal  wrote:
> Hey I have this not-so-technical work around for u.
>
>  Apply a Mouse over handler for the image. on a mouse-over, just change the
> image to some other image (probably a smaller one which says "Dude, U cant
> download this!!!") and again on a Mouse-out bring back the original image.
>
>  Guess that will solve your problem and people will not be able to download
> it...
>
>  But as Sripathi says, it would be better to show a smaller size, low
> resolution image, as people can always do a ScreenPrint and extract exactly
> that image alone!!
>
>  Hope a combination of these two things would solve ur problem.
>
> ~ Abhi
>
> On Tue, Mar 30, 2010 at 3:02 AM, Sripathi Krishnan <
>
>
>
> sripathikrish...@gmail.com> wrote:
> > but if they can just right click it and "Save Image As" there isn't any
> >> point.
>
> > Disabling right click is no solution. Its trivial to figure out the link of
> > the image and then download it directly. Div overlays also won't help. As
> > long as the user can see it, there is always going to be a way for him to
> > download it.
>
> > You should -
>
> >    - Only show a smaller size, low resolution image before the user
> >    purchases it
> >    - Apply a watermark/logo on the free image, so that there isn't any
> >    merit in using the image directly.
>
> > --Sri
>
> > On 30 March 2010 02:42, Sudeep S  wrote:
>
> >> i am not sure if this is a right approach...how about placing a
> >> transparent div over the image.
> >> would that work.
>
> >> On Tue, Mar 30, 2010 at 12:22 AM, Chris  wrote:
>
> >>> does anyone know if there is a way to disable someone from right
> >>> clicking on an image and being able to save it?  i am trying to make
> >>> an application where people can purchase images but if they can just
> >>> right click it and "Save Image As" there isn't any point.  Any
> >>> suggestions would be great.
>
> >>> 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 >>>  cr...@googlegroups.com>
> >>> .
> >>> For more options, visit this group at
> >>>http://groups.google.com/group/google-web-toolkit?hl=en.
>
> >>  --
> >> 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 >>  cr...@googlegroups.com>
> >> .
> >> For more options, visit this group at
> >>http://groups.google.com/group/google-web-toolkit?hl=en.
>
> >  --
> > 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 > cr...@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.

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



Re: Problem using java projects in GWT

2010-03-31 Thread Lucas Rios
Yes, is Eclipse. and .. Thanks I'm gonna to try it

2010/3/30 kozura 

> This using Eclipse?  Be sure it's actually in the classpath under the
> Run Configurations dialog, as the GWT compiler needs to find it there
> even if Eclipse doesn't.
>
> On Mar 30, 1:28 pm, Lucas Rios  wrote:
> > Hi everybody
> >
> > I'm trying to use a Java project in GWT but I have had some problems
> > because I can't compile the GWT project.
> >
> > I have done this:
> >
> > 1.Make a xxx.gwt.xml in the java project.
> > 2. Add a external JAR (java project) in the java build path of the GWT
> > project. In Projects and libraries tabs.
> > 3. Reference a xxx.gwt.xml in GWT projects (gwt.xml)
> > 4. And last compile the GWT project... showing me those errors
> >
> > Compiling module ticketcheckGWT.Ticketcheck_GWT
> >Validating newly compiled units
> >   [ERROR] Errors in 'file:/D:/Sura_desarrollo/Ticketcheck%20GWT/
> > src/ticketcheckGWT/client/Ticketcheck_GWT.java'
> >  [ERROR] Line 488: No source code is available for type
> > sura.ticketcheck.bo.Instancia; did you forget to inherit a required
> > module?
> >   [ERROR] Errors in 'file:/D:/Sura_desarrollo/Ticketcheck%20GWT/
> > src/ticketcheckGWT/client/ServiciosTicketcheck.java'
> >  [ERROR] Line 13: No source code is available for type
> > sura.ticketcheck.bo.Instancia; did you forget to inherit a required
> > module?
> >   [ERROR] Errors in 'file:/D:/Sura_desarrollo/Ticketcheck%20GWT/
> > src/ticketcheckGWT/client/ServiciosTicketcheckAsync.java'
> >  [ERROR] Line 12: No source code is available for type
> > sura.ticketcheck.bo.Instancia; did you forget to inherit a required
> > module?
> >   [ERROR] Errors in 'jar:file:/D:/Lucas%20Ríos/GWT/gwanted/gwanted-
> > core.jar!/org/gwanted/gwt/core/client/logger/TimeLoggerImpl.java'
> >  [ERROR] Line 92: Parameter 'widgetLoadTime': type 'long' is
> > not safe to access in JSNI code
> >  For additional info see: file:/D:/Escritorio/eclipse-jee-
> > galileo-win32/eclipse/plugins/com.google.gwt.eclipse.sdkbundle.
> > 2.0.1_2.0.1.v201002021445/gwt-2.0.1/doc/helpInfo/
> > longJsniRestriction.html
> >Finding entry point classes
> >   [ERROR] Unable to find type
> > 'ticketcheckGWT.client.Ticketcheck_GWT'
> >  [ERROR] Hint: Previous compiler errors may have made this
> > type unavailable
> >  [ERROR] Hint: Check the inheritance chain from your module;
> > it may not be inheriting a required module or a module may not be
> > adding its source path entries properly
> >
> > If somebody know how I can solve it please help me
> >
> > Thank for all
> >
> > Regards,
> >
> > LucasRR
>
> --
> 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
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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



Re: Problem using java projects in GWT

2010-03-31 Thread Lucas Rios
Thanks I'm gonna to try it

2010/3/30 lineman78 

> You cannot use source code from a java project in GWT directly.  All
> GWT code must be in the client path of a module.  i.e.
> sura.ticketcheck.bo.Instancia is not part of a GWT module.  There is
> one workaround I have gotten to work(only once, so no guarantee).
>
> 1) Create a file BoModule.gwt.xml in your source folder under the
> following path: sura/ticketcheck
> 2) Put the following text into the file:
>
> 2.0.3//EN" "http://google-web-toolkit.googlecode.com/svn/tags/2.0.3/
> distro-source/core/src/gwt-module.dtd">
>
>
>
>
> 3) In your src/ticketcheckGWT/xxx.gwt.xml put  name="sura.ticketcheck.BoModule"/>
>
> Essentially what you are doing is tricking the GWT compiler into
> thinking that sura.ticketcheck has a module who's source is in the
> folder 'bo'.  This should work as long as all files within package
> sura.ticketcheck.bo don't import outside of that package except
> standard java objects that are available through the
> com.google.gwt.user.User module.  I have run into this several times
> and sometimes you just have to rewrite(copy and paste) stuff into a
> GWT project.
>
> On Mar 30, 1:25 pm, Lucas Rios  wrote:
> > Hi everybody
> >
> > I'm trying to use a Java project in GWT but I have had some problems
> because
> > I can't compile the GWT project.
> >
> > I have done this:
> >
> > 1.Make a xxx.gwt.xml in the java project.
> > 2. Add a external JAR (java project) in the java build path of the GWT
> > project. In Projects and libraries tabs.
> > 3. Reference a xxx.gwt.xml in GWT projects (gwt.xml)
> > 4. And last compile the GWT project... showing me those errors
> >
> > Compiling module ticketcheckGWT.Ticketcheck_GWT
> >Validating newly compiled units
> >   [ERROR] Errors in
> >
> 'file:/D:/Sura_desarrollo/Ticketcheck%20GWT/src/ticketcheckGWT/client/Ticketcheck_GWT.java'
> >  [ERROR] Line 488: No source code is available for type
> > sura.ticketcheck.bo.Instancia; did you forget to inherit a required
> module?
> >   [ERROR] Errors in
> >
> 'file:/D:/Sura_desarrollo/Ticketcheck%20GWT/src/ticketcheckGWT/client/ServiciosTicketcheck.java'
> >  [ERROR] Line 13: No source code is available for type
> > sura.ticketcheck.bo.Instancia; did you forget to inherit a required
> module?
> >   [ERROR] Errors in
> >
> 'file:/D:/Sura_desarrollo/Ticketcheck%20GWT/src/ticketcheckGWT/client/ServiciosTicketcheckAsync.java'
> >  [ERROR] Line 12: No source code is available for type
> > sura.ticketcheck.bo.Instancia; did you forget to inherit a required
> module?
> >   [ERROR] Errors in
> >
> 'jar:file:/D:/Lucas%20Ríos/GWT/gwanted/gwanted-core.jar!/org/gwanted/gwt/core/client/logger/TimeLoggerImpl.java'
> >  [ERROR] Line 92: Parameter 'widgetLoadTime': type 'long' is not
> > safe to access in JSNI code
> >  For additional info see:
> >
> file:/D:/Escritorio/eclipse-jee-galileo-win32/eclipse/plugins/com.google.gwt.eclipse.sdkbundle.2.0.1_2.0.1.v201002021445/gwt-2.0.1/doc/helpInfo/longJsniRestriction.html
> >Finding entry point classes
> >   [ERROR] Unable to find type 'ticketcheckGWT.client.Ticketcheck_GWT'
> >  [ERROR] Hint: Previous compiler errors may have made this type
> > unavailable
> >  [ERROR] Hint: Check the inheritance chain from your module; it
> may
> > not be inheriting a required module or a module may not be adding its
> source
> > path entries properly
> >
> > If somebody know how I can solve it please help me
> >
> > Thank for all
> >
> > Regards
> >
> > LucasRR
>
> --
> 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
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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



Re: Newbie question : Problem with GWT RPC when running running through GWT + AppEngine tutorial

2010-03-31 Thread Abdullah Shaikh
I think you are sending an object of type not defined in you rpc file,
delete you rpc file so that a new one is created.

- Abdullah

On Wed, Mar 31, 2010 at 1:58 AM, vijay  wrote:

> hi,
> I am using GWT 2.0.3 version, I am going through the steps mentioned in GWT
> tutorial
>
> http://code.google.com/webtoolkit/doc/latest/tutorial/appengine.html
>
> When trying to integrate login service I get following exception. I tried
> using a normal GWT RPC and it also gave me similar exception.
>
> Mar 30, 2010 6:44:49 PM
> com.google.appengine.tools.development.ApiProxyLocalImpl log
> SEVERE: [1269974689208000] javax.servlet.ServletContext log: loginService:
> ERROR: Failed to parse the policy file
> '/stockwatcher/748E07BA5F0BCE26285053278C0378CB.gwt.rpc'
> java.text.ParseException: Expected: className, [true | false]
>  at
> com.google.gwt.user.server.rpc.SerializationPolicyLoader.loadFromStream(SerializationPolicyLoader.java:116)
> at
> com.google.gwt.user.server.rpc.RemoteServiceServlet.doGetSerializationPolicy(RemoteServiceServlet.java:234)
>  at
> com.google.gwt.user.server.rpc.RemoteServiceServlet.getSerializationPolicy(RemoteServiceServlet.java:117)
> at
> com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.prepareToRead(ServerSerializationStreamReader.java:429)
>  at com.google.gwt.user.server.rpc.RPC.decodeRequest(RPC.java:234)
> at
> com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:164)
>  at
> com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost(RemoteServiceServlet.java:86)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:713)
>  at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
> at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
>  at
> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1093)
> at
> com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java:51)
>  at
> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
> at
> com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:43)
>  at
> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
> at
> com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java:121)
>  at
> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
> at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360)
>  at
> org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
> at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
>  at
> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712)
> at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
>  at
> com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java:70)
> at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
>  at
> com.google.appengine.tools.development.JettyContainerService$ApiProxyHandler.handle(JettyContainerService.java:352)
> at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
>  at org.mortbay.jetty.Server.handle(Server.java:313)
> at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:506)
>  at
> org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:844)
> at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:644)
>  at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
> at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381)
>  at
> org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:396)
> at
> org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442)
>
> Mar 30, 2010 6:44:49 PM
> com.google.appengine.tools.development.ApiProxyLocalImpl log
> SEVERE: [1269974689224000] javax.servlet.ServletContext log: loginService:
> An IncompatibleRemoteServiceException was thrown while processing this call.
> com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException:
> Parameter 0 of is of an unknown type 'java.lang.String/2004016611'
> at com.google.gwt.user.server.rpc.RPC.decodeRequest(RPC.java:277)
>  at
> com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:164)
> at
> com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost(RemoteServiceServlet.java:86)
>  at javax.servlet.http.HttpServlet.service(HttpServlet.java:713)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
>  at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
> at
> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1093)
>  at
> com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java:51)
> at
> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084

Re: Progress indicator

2010-03-31 Thread VladS
google "ajax loading"  there is nice Ajaxload - Ajax loading gif
generator.

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



Re: Progress indicator

2010-03-31 Thread VladS
try this site http://www.ajaxload.info/  it make it in different
colors and types.
google do not allow me to post it to forum because of the info domain

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



Re: Progress indicator

2010-03-31 Thread VladS
This site allows you to create loading gif of your choice.
http://www.ajaxload.info
then you can modify rotation speed in other editor.

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



Re: Menu Item and MVP

2010-03-31 Thread Thomas Broyer

On Mar 31, 8:07 am, mic  wrote:
> Just sharing some thoughts
>
> Would the MenuItem class need to implement HasClickHandler  so that
> when a MenuItem is clicked, the action can be handled in the
> presenter. At this time, the MenuItem needs an object that implements
> the Command interface, so the view seems to know about the presenter.
>
> I would like to know what others think about this.

I've recently migrated from views with many HasXxxHandlers getters to
views with a setListener method that the presenter "injects" into its
view. The listener defines "callback methods" such as save(), close(),
italicize(), bold(), delete(), etc.
It makes unit tests waaay easier to write (you don't have to mock each
HasXxxHandlers, capturing each added XxxHandler, eventually mocking
the XxxEvent, etc.) and in your case would make things easier: the
Command is an implementation detail of the view.

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



Re: How to implement hashCode() and equals() for a point in 2D-space (x,y) in GWT?

2010-03-31 Thread googelybear
Found my answer here:
http://groups.google.com/group/google-web-toolkit/browse_thread/thread/f44e5874eb20b41b/f34caf3a7bf64daa

Simply hash the Double.toString() .

Anyone has a better idea?


On Mar 31, 2:53 pm, googelybear  wrote:
> It seems that this got reverted at some 
> point:http://code.google.com/p/google-web-toolkit/source/diff?spec=svn2434&;...
>
> does anyone know why?
>
> On Mar 31, 2:35 pm, googelybear  wrote:
>
>
>
> > I just found a post in the gwt contributors group but I cannot find it
> > anywhere in gwt, any 
> > ideas?http://groups.google.com/group/google-web-toolkit-contributors/browse...
>
> > On Mar 31, 2:20 pm, googelybear  wrote:
>
> > > Hi,
>
> > > this question might seem stupid but how can one implement hashCode()
> > > and equals() for a simple 2d point class as follows:
>
> > > public class Point {
>
> > >         private double fX;
>
> > >         private double fY;
>
> > >         public double getX() {
> > >                 return fX;
> > >         }
>
> > >         public void setX(double x) {
> > >                 this.fX= x;
> > >         }
>
> > >         public double getY() {
> > >                 return fY;
> > >         }
>
> > >         public void setY(double y) {
> > >                 this.fY= y;
> > >         }
>
> > > }
>
> > > The generated equals() and hashCode() methods from Eclipse do NOT work
> > > with GWT as method Double.doubleToLongBits()  is missing:
>
> > >         @Override
> > >         public int hashCode() {
> > >                 final int prime= 31;
> > >                 int result= 1;
> > >                 long temp;
> > >                 temp= Double.doubleToLongBits(fX);
> > >                 result= prime * result + (int) (temp ^ (temp >>> 32));
> > >                 temp= Double.doubleToLongBits(fY);
> > >                 result= prime * result + (int) (temp ^ (temp >>> 32));
> > >                 return result;
> > >         }
>
> > >         @Override
> > >         public boolean equals(Object obj) {
> > >                 if (this == obj)
> > >                         return true;
> > >                 if (obj == null)
> > >                         return false;
> > >                 if (!(obj instanceof Point))
> > >                         return false;
> > >                 Point other= (Point) obj;
> > >                 if (Double.doubleToLongBits(fX) !=
> > > Double.doubleToLongBits(other.fX))
> > >                         return false;
> > >                 if (Double.doubleToLongBits(fY) !=
> > > Double.doubleToLongBits(other.fY))
> > >                         return false;
> > >                 return true;
> > >         }
>
> > > Does anyone have an idea how to implement this?
>
> > > thanks a bunch,
>
> > > Dennis

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



Re: RequestBuilder and compressed xml file

2010-03-31 Thread bradrover
Thanks Sri! This is excellent.

Brad

On Mar 31, 4:35 am, Sripathi Krishnan 
wrote:
> You don't have to set the Accept-Encoding header yourself. The browser will
> automatically be set the header if it understands gzip. Your client code
> doesn't have to change at all to handle gzip.
>
> On the server side, you do the following  -
>
>    1. Check if the browser understands gzip
>    2. If yes, actually compress the response and set the appropriate header
>    to indicate its a compressed stream
>    3. If no, send uncompressed header
>
> See GWTs Server code that does this logic -
>
>    1.
>    http://code.google.com/p/google-web-toolkit/source/browse/trunk/user/...
>    2.
>    http://code.google.com/p/google-web-toolkit/source/browse/trunk/user/...
>
> --Sri
>
> On 31 March 2010 06:50, bradrover  wrote:
>
>
>
> > Well forget that error message... I'm just trying to figure out now
> > why my RequestBuilder Accept-Enc0ding header is not being used. I add
> > this code:
>
> > requestBuilder.setHeader("Accept-Encoding", "gzip, deflate");
>
> > and I get this result in chrome for request headers:
>
> > Referer:http://localhost:8080/SdssThinClient/sdssthinclient/
> > C72C3F6B8BCFC032CD4680AC42BFDF51.cache.html
> > User-Agent:Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/
> > 533.3 (KHTML, like Gecko) Chrome/5.0.360.4 Safari/533.3
>
> > seems like this is pretty straightforward, so i don't get it
>
> > On Mar 30, 8:18 pm, bradrover  wrote:
> > > I'm probably doing this wrong,but I compressed the xml file to a zip,
> > > when I request the zip file using RequestBiulder in hosted mode
> > > running Chrome it crashes the plug-in.
>
> > > com.google.gwt.dev.shell.BrowserChannel$RemoteDeathError: Remote
> > > connection lost
> > >     at
>
> > com.google.gwt.dev.shell.BrowserChannel.reactToMessagesWhileWaitingForRetur
> > n(BrowserChannel.java:
> > > 1730)
> > >     at
>
> > com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChann
> > elServer.java:
> > > 165)
> > >     at
> > > com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:
> > > 120)
> > >     at
> > > com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:
> > > 507)
> > >     at
> > > com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:
> > > 264)
> > >     at
>
> > com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.j
> > ava:
> > > 91)
> > >     at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
> > >     at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:188)
> > >     at sun.reflect.GeneratedMethodAccessor13.invoke(Unknown Source)
> > >     at
>
> > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp
> > l.java:
> > > 25)
> > >     at java.lang.reflect.Method.invoke(Method.java:597)
> > >     at
> > > com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
> > >     at
> > > com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
> > >     at
>
> > com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.jav
> > a:
> > > 157)
> > >     at
>
> > com.google.gwt.dev.shell.BrowserChannel.reactToMessages(BrowserChannel.java
> > :
> > > 1668)
> > >     at
>
> > com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChan
> > nelServer.java:
> > > 401)
> > >     at
>
> > com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java
> > :
> > > 222)
> > >     at java.lang.Thread.run(Thread.java:619)
> > > Caused by: java.net.SocketException: Connection reset by peer: socket
> > > write error
> > >     at java.net.SocketOutputStream.socketWrite0(Native Method)
> > >     at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:
> > > 92)
> > >     at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
> > >     at
> > > java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65)
> > >     at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:
> > > 123)
> > >     at java.io.DataOutputStream.flush(DataOutputStream.java:106)
> > >     at com.google.gwt.dev.shell.BrowserChannel
> > > $ReturnMessage.send(BrowserChannel.java:1341)
> > >     at com.google.gwt.dev.shell.BrowserChannel
> > > $ReturnMessage.send(BrowserChannel.java:1346)
> > >     at
>
> > com.google.gwt.dev.shell.BrowserChannel.reactToMessagesWhileWaitingForRetur
> > n(BrowserChannel.java:
> > > 1716)
> > >     at
>
> > com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChann
> > elServer.java:
> > > 165)
> > >     at
> > > com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:
> > > 120)
> > >     at
> > > com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:
> > > 507)
> > >     at
> > > com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:
> > > 264)
> > >     at
>
> > com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.j
> > ava:
> > > 91)
> > >  

Re: Progress indicator

2010-03-31 Thread Yogesh
Hi Vik,

Check the comments posted by Srini Marreddy here:
http://groups.google.com/group/google-web-toolkit/browse_thread/thread/e315c7532c2ff111/4767d65461deb9fd?lnk=gst&q=progress+bar#4767d65461deb9fd

I think that is what you are looking for.

Regards,
Yogesh

On Mar 31, 1:30 pm, Vik  wrote:
> hie
>
> yes thats what i want,,, not really a progress but just rotating gif.
> Do you have any example to do so?
>
> Thankx and Regards
>
> Vik
> Founderwww.sakshum.comwww.sakshum.blogspot.com
>
>
>
> On Sun, Mar 28, 2010 at 10:37 PM, Thomas Broyer  wrote:
>
> > On Mar 28, 6:49 pm, Vik  wrote:
> > > Hie
>
> > > In my gwt app when i hit say submit button in a form it takes a while to
> > get
> > > the response from server.
> > > Currently it seems nothing is happened on clicking the button.
>
> > > So how to show some kind of indicator showing its in progress?
>
> > You can show something (a label, a popup, an animated GIF image, etc.)
> > in onSubmit and hide it in onSubmitComplete; but you won't be able to
> > show "progress".
>
> > --
> > 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 > cr...@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.

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



Re: How to implement hashCode() and equals() for a point in 2D-space (x,y) in GWT?

2010-03-31 Thread googelybear
It seems that this got reverted at some point:
http://code.google.com/p/google-web-toolkit/source/diff?spec=svn2434&r=2434&format=side&path=/trunk/user/super/com/google/gwt/emul/java/lang/Double.java

does anyone know why?

On Mar 31, 2:35 pm, googelybear  wrote:
> I just found a post in the gwt contributors group but I cannot find it
> anywhere in gwt, any 
> ideas?http://groups.google.com/group/google-web-toolkit-contributors/browse...
>
> On Mar 31, 2:20 pm, googelybear  wrote:
>
>
>
> > Hi,
>
> > this question might seem stupid but how can one implement hashCode()
> > and equals() for a simple 2d point class as follows:
>
> > public class Point {
>
> >         private double fX;
>
> >         private double fY;
>
> >         public double getX() {
> >                 return fX;
> >         }
>
> >         public void setX(double x) {
> >                 this.fX= x;
> >         }
>
> >         public double getY() {
> >                 return fY;
> >         }
>
> >         public void setY(double y) {
> >                 this.fY= y;
> >         }
>
> > }
>
> > The generated equals() and hashCode() methods from Eclipse do NOT work
> > with GWT as method Double.doubleToLongBits()  is missing:
>
> >         @Override
> >         public int hashCode() {
> >                 final int prime= 31;
> >                 int result= 1;
> >                 long temp;
> >                 temp= Double.doubleToLongBits(fX);
> >                 result= prime * result + (int) (temp ^ (temp >>> 32));
> >                 temp= Double.doubleToLongBits(fY);
> >                 result= prime * result + (int) (temp ^ (temp >>> 32));
> >                 return result;
> >         }
>
> >         @Override
> >         public boolean equals(Object obj) {
> >                 if (this == obj)
> >                         return true;
> >                 if (obj == null)
> >                         return false;
> >                 if (!(obj instanceof Point))
> >                         return false;
> >                 Point other= (Point) obj;
> >                 if (Double.doubleToLongBits(fX) !=
> > Double.doubleToLongBits(other.fX))
> >                         return false;
> >                 if (Double.doubleToLongBits(fY) !=
> > Double.doubleToLongBits(other.fY))
> >                         return false;
> >                 return true;
> >         }
>
> > Does anyone have an idea how to implement this?
>
> > thanks a bunch,
>
> > Dennis

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



Re: GWT 2.0.3 + Maven2 + Eclipse

2010-03-31 Thread Davis Ford
Here's a GWT 2.0 maven-ized project that uses UIBinder, MVP, etc. that
I put together.

http://github.com/davisford/gwt-demo



On Wed, Mar 17, 2010 at 11:06 AM, Bert  wrote:
> I'm also very interested in setting up a Project like this.
> Any sample code from anyone?
>
> On Mar 17, 1:44 am, zggame  wrote:
>> I think the latest gwt-maven-plugin is gwt 1.6.4.  Not 2.0.3
>>
>> On Mar 15, 3:30 pm, Sergio  wrote:
>>
>> > Hello everybody, I'm beginning with GWT development and I have a
>> > problem.
>>
>> >  I've already configured Eclipse 3.5 with gwt plugin and m2eclipse
>> > plugin. I create a new maven project with gwt-maven-plugin archetype,
>> > but I'm not able to communicate client side with server side. I've
>> > read the same problem is happened other people but no solution.
>>
>> > I'm trying to debug the sample application with gwt:debug goal and
>> > then "Run remote java application" in "Debug configuration". I don't
>> > know if I am doing anything wrong. Any idea?
>>
>> > Thank you and sorry for my English.
>
> --
> 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.
> For more options, visit this group at 
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>



-- 
Zeno Consulting, Inc.
home: http://www.zenoconsulting.biz
blog: http://zenoconsulting.wikidot.com
p: 248.894.4922
f: 313.884.2977

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



Re: How to implement hashCode() and equals() for a point in 2D-space (x,y) in GWT?

2010-03-31 Thread googelybear
I just found a post in the gwt contributors group but I cannot find it
anywhere in gwt, any ideas?
http://groups.google.com/group/google-web-toolkit-contributors/browse_thread/thread/a5193c6a82eddb5e/b400204dddcc8c64

On Mar 31, 2:20 pm, googelybear  wrote:
> Hi,
>
> this question might seem stupid but how can one implement hashCode()
> and equals() for a simple 2d point class as follows:
>
> public class Point {
>
>         private double fX;
>
>         private double fY;
>
>         public double getX() {
>                 return fX;
>         }
>
>         public void setX(double x) {
>                 this.fX= x;
>         }
>
>         public double getY() {
>                 return fY;
>         }
>
>         public void setY(double y) {
>                 this.fY= y;
>         }
>
> }
>
> The generated equals() and hashCode() methods from Eclipse do NOT work
> with GWT as method Double.doubleToLongBits()  is missing:
>
>         @Override
>         public int hashCode() {
>                 final int prime= 31;
>                 int result= 1;
>                 long temp;
>                 temp= Double.doubleToLongBits(fX);
>                 result= prime * result + (int) (temp ^ (temp >>> 32));
>                 temp= Double.doubleToLongBits(fY);
>                 result= prime * result + (int) (temp ^ (temp >>> 32));
>                 return result;
>         }
>
>         @Override
>         public boolean equals(Object obj) {
>                 if (this == obj)
>                         return true;
>                 if (obj == null)
>                         return false;
>                 if (!(obj instanceof Point))
>                         return false;
>                 Point other= (Point) obj;
>                 if (Double.doubleToLongBits(fX) !=
> Double.doubleToLongBits(other.fX))
>                         return false;
>                 if (Double.doubleToLongBits(fY) !=
> Double.doubleToLongBits(other.fY))
>                         return false;
>                 return true;
>         }
>
> Does anyone have an idea how to implement this?
>
> thanks a bunch,
>
> Dennis

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



How to implement hashCode() and equals() for a point in 2D-space (x,y) in GWT?

2010-03-31 Thread googelybear
Hi,

this question might seem stupid but how can one implement hashCode()
and equals() for a simple 2d point class as follows:

public class Point {

private double fX;

private double fY;

public double getX() {
return fX;
}

public void setX(double x) {
this.fX= x;
}

public double getY() {
return fY;
}

public void setY(double y) {
this.fY= y;
}
}

The generated equals() and hashCode() methods from Eclipse do NOT work
with GWT as method Double.doubleToLongBits()  is missing:

@Override
public int hashCode() {
final int prime= 31;
int result= 1;
long temp;
temp= Double.doubleToLongBits(fX);
result= prime * result + (int) (temp ^ (temp >>> 32));
temp= Double.doubleToLongBits(fY);
result= prime * result + (int) (temp ^ (temp >>> 32));
return result;
}

@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (!(obj instanceof Point))
return false;
Point other= (Point) obj;
if (Double.doubleToLongBits(fX) !=
Double.doubleToLongBits(other.fX))
return false;
if (Double.doubleToLongBits(fY) !=
Double.doubleToLongBits(other.fY))
return false;
return true;
}

Does anyone have an idea how to implement this?

thanks a bunch,

Dennis

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



Re: Menu Item and MVP

2010-03-31 Thread Nathan Wells
I created an "EventFiringCommand" class for instances like this.
Basically, you put the event bus and the event to fire (or the code to
generate the event) in the command. The Command should be a presenter-
layer object, since it has no need to know about the view (and should
be easy to unit test).

Theoretically, you could just make inner classes in a Presenter for
each Command you write. It all depends on how you want to organize
your code and the needs of your specific project.

On Mar 31, 12:07 am, mic  wrote:
> Just sharing some thoughts
>
> Would the MenuItem class need to implement HasClickHandler  so that
> when a MenuItem is clicked, the action can be handled in the
> presenter. At this time, the MenuItem needs an object that implements
> the Command interface, so the view seems to know about the presenter.
>
> I would like to know what others think about this.
>
> - mic.

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



Re: Progress indicator

2010-03-31 Thread Vik
hie

yes thats what i want,,, not really a progress but just rotating gif.
Do you have any example to do so?

Thankx and Regards

Vik
Founder
www.sakshum.com
www.sakshum.blogspot.com


On Sun, Mar 28, 2010 at 10:37 PM, Thomas Broyer  wrote:

>
>
> On Mar 28, 6:49 pm, Vik  wrote:
> > Hie
> >
> > In my gwt app when i hit say submit button in a form it takes a while to
> get
> > the response from server.
> > Currently it seems nothing is happened on clicking the button.
> >
> > So how to show some kind of indicator showing its in progress?
>
> You can show something (a label, a popup, an animated GIF image, etc.)
> in onSubmit and hide it in onSubmitComplete; but you won't be able to
> show "progress".
>
> --
> 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
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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



Re: Session management in GWT

2010-03-31 Thread Vik
Hie  Olivier

Can you please guide me on where to look for the example of doing via method
1 and method 2?
I will evaluate the one satisfying my need and will proceed.

Please advise

Thankx and Regards

Vik
Founder
www.sakshum.com
www.sakshum.blogspot.com


On Tue, Mar 30, 2010 at 2:11 PM, olivier nouguier <
olivier.nougu...@gmail.com> wrote:

> hi,
>  If you've change the window location, you can:
>  - give some info if in the url, limited and ugly.
>  - provide a (remote) service to expose user details to the new module (I
> suppose AdminDashboard.jsp is hosting another GWT module).
>  - for the JSP you can access to the servlet api to retrieve users details
> depending of your auth framework.
>
>
> On Tue, Mar 30, 2010 at 5:53 AM, Vik  wrote:
>
>> hie yes gwt (ui)/
>>
>> can u please point me to a bit more details on gwt-rpc/json mechanism on
>> doing so?
>>
>>
>> Thankx and Regards
>>
>> Vik
>> Founder
>> www.sakshum.com
>> www.sakshum.blogspot.com
>>
>>
>> On Mon, Mar 29, 2010 at 2:39 PM, olivier nouguier <
>> olivier.nougu...@gmail.com> wrote:
>>
>>> Hi,
>>> Do you mean I GWT (ui) code when talk in "admindashboard.jsp".
>>> If true:
>>>  provide a service (GWT-RPC/json) to retrieve information from.
>>> else:
>>>  not a GWT question.
>>>
>>> On Mon, Mar 29, 2010 at 6:20 AM, Vik  wrote:
>>>
 Hie

 I have a index.html page with a login module (build in gwt) embedded
 into it.
 Once the user provide authentication details and hit login button
 I am redirecting the user to a new page named AdminDashboard.jsp

 Now, I will be creating and embedding a dashboard using GWT components
 on this page.
 The question I have is how do i pass the user details from the login
 module to admindashboard.jsp?
  Please note that I am
 using Window.Location.replace("/ui/page/AdminDashboard.jsp");  to navigate
 to dashboard page.

 Further, what is used in GWT to store the data in a session and then
 validating it before user actions?

 Thankx and Regards

 Vik
 Founder
 www.sakshum.com
 www.sakshum.blogspot.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-tool...@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.

>>>
>>>
>>>
>>> --
>>> A coward is incapable of exhibiting love; it is the prerogative of the
>>> brave.
>>> --
>>> Mohandas Gandhi
>>>
>>> --
>>> 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.
>>>
>>
>>  --
>> 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
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/google-web-toolkit?hl=en.
>>
>
>
>
> --
> A coward is incapable of exhibiting love; it is the prerogative of the
> brave.
> --
> Mohandas Gandhi
>
> --
> 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
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>

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



Re: New GWT widget resource, of sorts: vaadin.com/directory

2010-03-31 Thread emarc
Yeah, I got some sort of phishing email claiming that my message did
not reach Google Groups, asking me to fill out some form. Nice try, I
bet someone will fall for it. Does anyone know if Google knows about
this, or should it be reported to Google (where)?

On Mar 31, 12:30 pm, Blessed Geek  wrote:
> BTW, every time I make a posting on Google groups, a web hosting
> company harvests my email id by projecting it from my google groups
> avatar.
> I urge anyone who is experiencing this to report that web hosting
> company tohttp://ftc.gov/complaints.
> FTC does no't prosecute per complaint but if enough volume of
> complaints is received, FTC or law enforcement using that database
> would initiate investigations.

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



Re: GWT and GeoTools Servlet problem

2010-03-31 Thread Jon Britton
I've just thought - could it be that Jetty is not loading up properly
in time for my request?  Is there any way to get it to load before the
first request is made?

Cheers,

Jon

On Mar 31, 11:16 am, Jon Britton 
wrote:
> Hi,
>
> I've got a servlet which uses the GeoTools library to contact a remote
> server and parse the XML, it then returns the results to the browser
> client.
>
> I've got a button on the client side which initiates the call to the
> servlet.  When I click this button the first time, I get an
> ClassCastException. However, when I click it a second time everything
> works fine!
>
> I don't think this is a problem with GeoTools as it works perfectly
> fine when I do a similar thing locally.  My first assumption was that
> GWT wasn't finding the necessary classes the first time around, but
> had them ready for the second time.  However I've added all the
> required jars to my WEB-INF/lib folder and I still get the same
> problem.
>
> Something must be happening between the first and second server call
> to make it work, but I don't know what it could be.  Maybe GWT is
> loading some required class or jar and not telling me about it?
>
> I've included my stack trace and servlet code snippet below, although
> I don't know how much use they'll be...
>
> Any help would be appreciated.
>
> Thanks,
>
> Jon
>
> STACK TRACE:
>
> Starting Jetty on port 
>    [WARN] Exception while dispatching incoming RPC call
> com.google.gwt.user.server.rpc.UnexpectedException: Service method
> 'public abstract java.util.ArrayList
> uk.ac.glam.wps.gwtwps.client.OWSRequestService.wpsGetCapabilities(java.lang 
> .String)'
> threw an unexpected exception: java.lang.RuntimeException: Parsing
> failed for ProviderSite: java.lang.RuntimeException: Unable to set
> property: href for eobject: {http://www.opengis.net/ows/1.1}
> OnlineResourceType
>         at
> com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:
> 378)
>         at
> com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:
> 581)
>         at
> com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServi 
> ceServlet.java:
> 188)
>         at
> com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServi 
> ceServlet.java:
> 224)
>         at
> com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(Abstract 
> RemoteServiceServlet.java:
> 62)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:713)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
>         at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
> 487)
>         at
> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:
> 362)
>         at
> org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:
> 216)
>         at
> org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:
> 181)
>         at
> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:
> 729)
>         at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
> 405)
>         at
> org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
> 152)
>         at
> org.mortbay.jetty.handler.RequestLogHandler.handle(RequestLogHandler.java:
> 49)
>         at
> org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
> 152)
>         at org.mortbay.jetty.Server.handle(Server.java:324)
>         at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:
> 505)
>         at org.mortbay.jetty.HttpConnection
> $RequestHandler.content(HttpConnection.java:843)
>         at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:647)
>         at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
>         at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
>         at
> org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:
> 396)
>         at org.mortbay.thread.QueuedThreadPool
> $PoolThread.run(QueuedThreadPool.java:488)
> Caused by: java.lang.RuntimeException: Parsing failed for
> ProviderSite: java.lang.RuntimeException: Unable to set property: href
> for eobject: {http://www.opengis.net/ows/1.1}OnlineResourceType
>         at org.geotools.xml.impl.ParseExecutor.visit(ParseExecutor.java:158)
>         at org.geotools.xml.impl.BindingWalker
> $BindingExecutionChain.execute(BindingWalker.java:212)
>         at org.geotools.xml.impl.BindingWalker.walk(BindingWalker.java:178)
>         at
> org.geotools.xml.impl.ElementHandlerImpl.endElement(ElementHandlerImpl.java :
> 222)
>         at org.geotools.xml.impl.ParserHandler.endElement(ParserHandler.java:
> 607)
>         at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown
> Source)
>         at
> org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown
> Source)
>         at
> org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown
> Source)
>         at org.apache.xer

Re: GWT 2.0.3 + Maven2 + Eclipse

2010-03-31 Thread Bert
Make sure you do a clean install of the google plugin in a clean
eclipse.

I tried updating the google plugin to version 1.3.2 but after the
update,
not all of the features in the plugin were enabled for me.

I've spend a lot of time trying to get a sample project working
without success.

After using a clean eclipse with a clean google plugin installation
(make sure you use version 1.3.2 of the plugin).

The sample app ran without any problem.

On 22 mrt, 21:46, Keith Platfoot  wrote:
> Hi Sergio,
>
> Just wanted to mention that we've just released the 1.3.1 version of the
> Google Plugin for Eclipse, which has much better interoperability with
> GWT+Maven projects.  We even have a new FAQ dedicated to this scenario:
>
> http://code.google.com/eclipse/docs/faq.html#gwt_with_maven
>
> As of 1.3, it is easy to debug your Maven project's GWT code with a regular
> Web Application launch configuration.  If you're using Eclipse for Java EE,
> you can also get automatic refresh when your source code or static resources
> (HTML, CSS, etc.) change.  Unlike previous versions of the Eclipse plugin,
> you can now customize your project's configured WAR directory (e.g. set it
> to 'src/main/webapp') and specify that it should be used as input-only (per
> Maven convention).
>
> Keith
>
> On Mon, Mar 15, 2010 at 4:30 PM, Sergio  wrote:
> > Hello everybody, I'm beginning with GWT development and I have a
> > problem.
>
> >  I've already configured Eclipse 3.5 with gwt plugin and m2eclipse
> > plugin. I create a new maven project with gwt-maven-plugin archetype,
> > but I'm not able to communicate client side with server side. I've
> > read the same problem is happened other people but no solution.
>
> > I'm trying to debug the sample application with gwt:debug goal and
> > then "Run remote java application" in "Debug configuration". I don't
> > know if I am doing anything wrong. Any idea?
>
> > Thank you and sorry for my English.
>
> > --
> > 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
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.

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



GWT and GeoTools Servlet problem

2010-03-31 Thread Jon Britton
Hi,

I've got a servlet which uses the GeoTools library to contact a remote
server and parse the XML, it then returns the results to the browser
client.

I've got a button on the client side which initiates the call to the
servlet.  When I click this button the first time, I get an
ClassCastException. However, when I click it a second time everything
works fine!

I don't think this is a problem with GeoTools as it works perfectly
fine when I do a similar thing locally.  My first assumption was that
GWT wasn't finding the necessary classes the first time around, but
had them ready for the second time.  However I've added all the
required jars to my WEB-INF/lib folder and I still get the same
problem.

Something must be happening between the first and second server call
to make it work, but I don't know what it could be.  Maybe GWT is
loading some required class or jar and not telling me about it?

I've included my stack trace and servlet code snippet below, although
I don't know how much use they'll be...

Any help would be appreciated.

Thanks,

Jon


STACK TRACE:

Starting Jetty on port 
   [WARN] Exception while dispatching incoming RPC call
com.google.gwt.user.server.rpc.UnexpectedException: Service method
'public abstract java.util.ArrayList
uk.ac.glam.wps.gwtwps.client.OWSRequestService.wpsGetCapabilities(java.lang.String)'
threw an unexpected exception: java.lang.RuntimeException: Parsing
failed for ProviderSite: java.lang.RuntimeException: Unable to set
property: href for eobject: {http://www.opengis.net/ows/1.1}
OnlineResourceType
at
com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:
378)
at
com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:
581)
at
com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:
188)
at
com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:
224)
at
com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:
62)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:713)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
487)
at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:
362)
at
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:
216)
at
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:
181)
at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:
729)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
405)
at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
152)
at
org.mortbay.jetty.handler.RequestLogHandler.handle(RequestLogHandler.java:
49)
at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
152)
at org.mortbay.jetty.Server.handle(Server.java:324)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:
505)
at org.mortbay.jetty.HttpConnection
$RequestHandler.content(HttpConnection.java:843)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:647)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
at
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:
396)
at org.mortbay.thread.QueuedThreadPool
$PoolThread.run(QueuedThreadPool.java:488)
Caused by: java.lang.RuntimeException: Parsing failed for
ProviderSite: java.lang.RuntimeException: Unable to set property: href
for eobject: {http://www.opengis.net/ows/1.1}OnlineResourceType
at org.geotools.xml.impl.ParseExecutor.visit(ParseExecutor.java:158)
at org.geotools.xml.impl.BindingWalker
$BindingExecutionChain.execute(BindingWalker.java:212)
at org.geotools.xml.impl.BindingWalker.walk(BindingWalker.java:178)
at
org.geotools.xml.impl.ElementHandlerImpl.endElement(ElementHandlerImpl.java:
222)
at org.geotools.xml.impl.ParserHandler.endElement(ParserHandler.java:
607)
at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown
Source)
at
org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown
Source)
at
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown
Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl
$FragmentContentDispatcher.dispatch(Unknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXPar

Re: New GWT widget resource, of sorts: vaadin.com/directory

2010-03-31 Thread Blessed Geek
BTW, every time I make a posting on Google groups, a web hosting
company harvests my email id by projecting it from my google groups
avatar.
I urge anyone who is experiencing this to report that web hosting
company to
http://ftc.gov/complaints.
FTC does no't prosecute per complaint but if enough volume of
complaints is received, FTC or law enforcement using that database
would initiate investigations.

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



Re: New GWT widget resource, of sorts: vaadin.com/directory

2010-03-31 Thread Blessed Geek

Vaadin is very suitable for many scenarios, if not most scenarios.

The problem is ...

For every web project I have ever built, there are about a few of the
pages of any project where I needed to do something different from the
normal presentation framework. Whatever the framework is.

When I needed to divert out of the vaadin framework I face obstacles
due to:
1. I need to reconstruct the vaadin look and feel to give a unified
look to my app.
2. My pages outside of the vaadin framework is unable to access
variables defined inside the framework unless I place them in memory
cache or session attributes.

It may be just one or two pages in every web app project, but those
one or two pages that I have to create outside the vaadin framework
are very crucial features required by the user. Since vaadin does not
have an API to let non-vaadin components communicate with the
framework, those two pages with crucial features effectively preclude
me from using vaadin. For the same reason, then, vaadin does not play
nice with non-vaadin components by not providing an avenue to
communicate/acquire state changes to non-vaadin components.

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



GWT Theme and dynamic stylesheet inclusion

2010-03-31 Thread Julien Ortega
Hi,
i am trying to create a theme based on the blueprint css framework.
I have several css to include :









Note the [if it IE 8] .. Can I do something similar within a module
(ie bluprint.gwt.xml) using the  
tag and some "conditional" property ?

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



Re: RequestBuilder and compressed xml file

2010-03-31 Thread Sripathi Krishnan
You don't have to set the Accept-Encoding header yourself. The browser will
automatically be set the header if it understands gzip. Your client code
doesn't have to change at all to handle gzip.

On the server side, you do the following  -

   1. Check if the browser understands gzip
   2. If yes, actually compress the response and set the appropriate header
   to indicate its a compressed stream
   3. If no, send uncompressed header

See GWTs Server code that does this logic -

   1.
   
http://code.google.com/p/google-web-toolkit/source/browse/trunk/user/src/com/google/gwt/user/server/rpc/RemoteServiceServlet.java?spec=svn5731&r=5731#306
   2.
   
http://code.google.com/p/google-web-toolkit/source/browse/trunk/user/src/com/google/gwt/user/server/rpc/RPCServletUtils.java?r=1538#178


--Sri


On 31 March 2010 06:50, bradrover  wrote:

> Well forget that error message... I'm just trying to figure out now
> why my RequestBuilder Accept-Enc0ding header is not being used. I add
> this code:
>
> requestBuilder.setHeader("Accept-Encoding", "gzip, deflate");
>
> and I get this result in chrome for request headers:
>
> Referer:http://localhost:8080/SdssThinClient/sdssthinclient/
> C72C3F6B8BCFC032CD4680AC42BFDF51.cache.html
> User-Agent:Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/
> 533.3 (KHTML, like Gecko) Chrome/5.0.360.4 Safari/533.3
>
> seems like this is pretty straightforward, so i don't get it
>
> On Mar 30, 8:18 pm, bradrover  wrote:
> > I'm probably doing this wrong,but I compressed the xml file to a zip,
> > when I request the zip file using RequestBiulder in hosted mode
> > running Chrome it crashes the plug-in.
> >
> > com.google.gwt.dev.shell.BrowserChannel$RemoteDeathError: Remote
> > connection lost
> > at
> >
> com.google.gwt.dev.shell.BrowserChannel.reactToMessagesWhileWaitingForRetur
> n(BrowserChannel.java:
> > 1730)
> > at
> >
> com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChann
> elServer.java:
> > 165)
> > at
> > com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:
> > 120)
> > at
> > com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:
> > 507)
> > at
> > com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:
> > 264)
> > at
> >
> com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.j
> ava:
> > 91)
> > at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
> > at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:188)
> > at sun.reflect.GeneratedMethodAccessor13.invoke(Unknown Source)
> > at
> >
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp
> l.java:
> > 25)
> > at java.lang.reflect.Method.invoke(Method.java:597)
> > at
> > com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
> > at
> > com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
> > at
> >
> com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.jav
> a:
> > 157)
> > at
> >
> com.google.gwt.dev.shell.BrowserChannel.reactToMessages(BrowserChannel.java
> :
> > 1668)
> > at
> >
> com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChan
> nelServer.java:
> > 401)
> > at
> >
> com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java
> :
> > 222)
> > at java.lang.Thread.run(Thread.java:619)
> > Caused by: java.net.SocketException: Connection reset by peer: socket
> > write error
> > at java.net.SocketOutputStream.socketWrite0(Native Method)
> > at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:
> > 92)
> > at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
> > at
> > java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65)
> > at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:
> > 123)
> > at java.io.DataOutputStream.flush(DataOutputStream.java:106)
> > at com.google.gwt.dev.shell.BrowserChannel
> > $ReturnMessage.send(BrowserChannel.java:1341)
> > at com.google.gwt.dev.shell.BrowserChannel
> > $ReturnMessage.send(BrowserChannel.java:1346)
> > at
> >
> com.google.gwt.dev.shell.BrowserChannel.reactToMessagesWhileWaitingForRetur
> n(BrowserChannel.java:
> > 1716)
> > at
> >
> com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChann
> elServer.java:
> > 165)
> > at
> > com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:
> > 120)
> > at
> > com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:
> > 507)
> > at
> > com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:
> > 264)
> > at
> >
> com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.j
> ava:
> > 91)
> > at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
> > at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:188)
> > at sun.reflect.Genera

  1   2   >