Re: onBrowserEvent change Cell colour

2016-03-14 Thread Sam Wootton
Indeed it does help Gilerto.  I'm indebted, thank you.  You can see I
"think in Java" mode (not being a 'web developer') - missed the obvious,
apologies.

Although my Cell looks like

interface Template extends SafeHtmlTemplates {
@Template("" +
"" +
"" +
"{1}" +
"" +
"")
SafeHtml showTrack(String Image, String name);
}


...and what I wanted was the whole row to be highlighted, but right now it
just highlights the background of the text area (not the whole cell browser
cell)

Regards Sam

On 13 March 2016 at 23:49, Gilberto <gilberto.torre...@gmail.com> wrote:

> You just want to change the color on mouse over or need something else?
>
> I ask that because if the problem is only about changing the color of the
> cell, you can do that with plain CSS.
>
> Something like that:
>
> Java code:
> yourTable.addStyleName("myNiceTable");
>
> CSS:
>
> .myNiceTable td:hover {
> color: red; /* or something else */
> }
>
> Generally speaking, developers usually change the background color of the
> hovered table row. For that, you can use a similar CSS:
>
> .myNiceTable tr:hover {
> background-color: #f2f2f2;
> }
>
> Hope that helps ;-)
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "GWT Users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/google-web-toolkit/Hrn-Wv7imSo/unsubscribe
> .
> To unsubscribe from this group and all its topics, send an email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at https://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


onBrowserEvent change Cell colour

2016-03-12 Thread Sam Wootton
Dear GWT Users,

Thanks in advance for help.  Ive searched the mail archives and had a good 
google, but cant find what im after.

I'd like to change the colour of my Cell when the user rolls over it.  I 
thought it would be as simple as saving a class level / scope variable of 
SafeHtmlBuilder (when redner is called) and appending to it when 
onBrowserEvent is executed - but that doesnt seem to work.

public void onBrowserEvent(Context context, Element parent, Track value, 
NativeEvent event, ValueUpdater valueUpdater) {
 
super.onBrowserEvent(context, parent, value, event, valueUpdater);
if("mouseover".equals(event.getType())) {
// change colour



public void render(Context context, Track track, SafeHtmlBuilder 
safeHtmlBuilder) {
if (track != null) {

safeHtmlBuilder.append(template.showTrack("images/someImg.png",track.getName()));
    }
}

Regards, Sam


-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: UIBinder & Materials

2016-03-07 Thread Sam Wootton
Stefan,

Already did - thanks! If you look at the chat room history, you'll see me
being a nuisance there too :)

Regards, Sam

On 7 March 2016 at 10:36, Stefan Falk <stefan.r.f...@gmail.com> wrote:

> You can visit the guys on Gitter:
> https://gitter.im/GwtMaterialDesign/gwt-material
>
> :)
>
> BR; Stefan
>
>
> On Sunday, 6 March 2016 15:46:45 UTC+1, Sam Wootton wrote:
>>
>> Dear GWT Users,
>>
>> As ever, thanks for any help.
>>
>> Quick (possibly stupid) question.  I'd like to start investigating GWT
>> Materials
>>
>> http://gwtmaterialdesign.github.io/gwt-material-demo/#!gettingstarted
>>
>> ... states "*Assuming that you're using UIBinder, add the following
>> namespace to the  element*".
>>
>> My current gwt application does not use UIBinder framework (just
>> traditional Java).  Do I *have* to switch to UIBinder if I want to use
>> GWT Materials?
>>
>> Regards, Sam
>>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "GWT Users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/google-web-toolkit/AEO4jZeujTo/unsubscribe
> .
> To unsubscribe from this group and all its topics, send an email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at https://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: UIBinder & Materials

2016-03-06 Thread Sam Wootton
Thanks Jens,

Many thanks.  Yes, I see I can just instantiate Material objects directly

MaterialButton popupBtn = new MaterialButton();
// Button popupBtn = new Button();

Can I continue the same approach 'converting' each instance to Material
versions?  I'd stil like to use some of my existing styling / css.

What, in your opinion, is the best way to Materialise a gwt project?

Regards, Sam




On 6 March 2016 at 14:52, Jens <jens.nehlme...@gmail.com> wrote:

>
> My current gwt application does not use UIBinder framework (just
>> traditional Java).  Do I *have* to switch to UIBinder if I want to use
>> GWT Materials?
>>
>
> No, of course not.
>
> -- J.
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "GWT Users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/google-web-toolkit/AEO4jZeujTo/unsubscribe
> .
> To unsubscribe from this group and all its topics, send an email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at https://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


UIBinder & Materials

2016-03-06 Thread Sam Wootton
Dear GWT Users,

As ever, thanks for any help.

Quick (possibly stupid) question.  I'd like to start investigating GWT 
Materials

http://gwtmaterialdesign.github.io/gwt-material-demo/#!gettingstarted

... states "*Assuming that you're using UIBinder, add the following 
namespace to the  element*".

My current gwt application does not use UIBinder framework (just 
traditional Java).  Do I *have* to switch to UIBinder if I want to use GWT 
Materials?

Regards, Sam

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Cell Browser External Listener

2016-02-26 Thread Sam Wootton
Hello Jens,

Thanks for your help.  I managed to add

cellBrowser.addDomHandler(new ClickHandler() {
@Override
public void onClick(ClickEvent clickEvent) {
GWT.log("DownloadPanel.onClick
"+clickEvent.getNativeEvent().toString());
}
}, ClickEvent.getType());


But that doesn't get me the domain / model data I need (logical event data
I guess).  So i ended up being a bit hacky and firing event from within the
Cell

TreeViewModelListener listenerObj = (TreeViewModelListener) listeners.get(i);
DownloadSelectedEvent downloadSelectedEvent = new
DownloadSelectedEvent(param1, param2, param3...);
listenerObj.onDownloadSelected(downloadSelectedEvent);

and implemented listener interface and implemented

public void onDownloadSelected(DownloadSelectedEvent event){}

well it worked :]

Regards, Sam





On 26 February 2016 at 13:38, Jens <jens.nehlme...@gmail.com> wrote:

> Since "click" is a browser event you would need to use addDomHandler()
> instead of addHandler().
>
> If that does not work either then I would let the Cell publish a custom
> Event on the EventBus. Maybe using custom events via EventBus is more
> readable anyways.
>
> -- J.
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "GWT Users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/google-web-toolkit/6eUspwFcq0g/unsubscribe
> .
> To unsubscribe from this group and all its topics, send an email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at https://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Cell Browser External Listener

2016-02-26 Thread Sam Wootton
Dear GWT Users,

Thanks in advance for any help.

I have working CellBrowser that I want to add an external listener to (so 
that I can display data clicked on... but outside and in another panel).  I 
see CellBrowser implements HasClickHandlers (and addClickHandler).

http://www.gwtproject.org/javadoc/latest/com/google/gwt/user/cellview/client/CellBrowser.html

I can successfully handle an event internally in my Cell i.e.

public void onBrowserEvent(Context context, Element parent, Track value, 
NativeEvent event, ValueUpdater valueUpdater) {
   
super.onBrowserEvent(context, parent, value, event, valueUpdater);

if ("click".equals(event.getType())) {
 
EventTarget eventTarget = event.getEventTarget();
GWT.log("You selected " + value.getName() + " by " + value.getArtist());
}
}


I thought (given the interfaces it implements) I could do something like

CellBrowser cellBrowser = cbb.build();


cellBrowser.addHandler(new ClickHandler() {
@Override
public void onClick(ClickEvent clickEvent) {

}
});


But it appears not.  What and how is the best way to externally listen to 
CellBrowser and Cell events, so that I can display the event info "outside" in 
another e.g. Panel?

Regards, Sam




-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Eclipse setup, javax.validation missing and jsp syntax highlighting

2016-02-25 Thread sam jones
I just created a new workspace in Spring STS AFTER importing all my jars 
with a gradle build and it worked. Without the new workspace created, it 
did not work.


On Saturday, November 13, 2010 at 7:55:39 AM UTC-5, Stephen Buergler wrote:
>
> I see in the RequestFactory example (http://code.google.com/p/google- 
> web-toolkit/source/browse/trunk/samples/expenses/src/main/java/com/ 
> google/gwt/#gwt/sample/expenses/shared 
> ),
>  
> the Entity has properties 
> that have constraint annotations like 
> javax.validation.constraints.Size. Unfortunately when I try to use 
> them Eclipse just gives me red lines.. I think the package is missing. 
> How can I fix this? I'm on Ubuntu Linux with as little changed as is 
> required to get the Google Web Toolkit Plugin working. 
>
> Also .jsp files in my war directory are not getting highlighted and 
> can only be opened with a Text Editor. Is there a thing from one of 
> the eclipse software repositories that I need to download? I tried 
> installing a bunch of Java related stuff but it hasn't helped.

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: ProjectStruture

2016-02-21 Thread Sam Wootton
Thank you all for your prompt, and very helpful responses.  It's very much
appreciated!

Thanks for explaining not just the "how", but the "why" too. Hopefully it's
saved me lots of blood, sweat and tears. If I get stuck, ill be sure to ask.

Regards, Sam

On 20 February 2016 at 17:08, Kirill Prazdnikov <pkir...@gmail.com> wrote:

> Hi Sam,
>
> Think of it differently.
> GWT is a java compiler at first. You live in a HTML5 system.
> This system supports String operations (so that JSON+XML).
> It supports File Download\Uploads (and binary).
> It supports HTTP requests.
> It supports DOM, Canvas rendering, WebGL + 3D VR + Web 3d Audio, e,t,c.
>
> As a result all of that is supported in GWT.
>
> Right ?
>
> On Saturday, February 20, 2016 at 7:48:06 PM UTC+3, Sam Wootton wrote:
>>
>> Thanks Jens... perfect. Exactly what I was after (before I disappeared
>> down a dead-end of rpc calls and tons of re-writing, which I'd probably
>> give up on).
>>
>> Loads to look in to, and get going on.  Thank you. I'll see how far I get
>> and post any questions I have.  Hopefully my only remaining concern is the
>> file upload and download functionality.
>>
>> Thanks again, much appreciated.
>>
>> Regards, Sam
>>
>> On 20 February 2016 at 15:46, Jens <jens.ne...@gmail.com> wrote:
>>
>>> GWT-RPC is just one convenient way to communicate with a server using
>>> GWT. However GWT-RPC uses its own serialization format that is based on
>>> JSON. While convenient to use GWT-RPC also has some pain points that are
>>> often discovered later.
>>>
>>> If you just want to make a POST / GET to an URL and transfer some
>>> serialized data (JSON, XML, custom) you can use GWT's RequestBuilder class
>>> (which is actually used internally by GWT-RPC as well). In order to get
>>> your XML going you can use GWT's XML API
>>> http://www.gwtproject.org/doc/latest/DevGuideCodingBasicsXML.html or
>>> use a library that maps from Java POJOs to/from XML. As example of such a
>>> library take a look at https://github.com/hpehl/piriti
>>>
>>> The above should allow you to not rewrite all the server side code.
>>>
>>
>
>>
>>>
>> --
> You received this message because you are subscribed to a topic in the
> Google Groups "GWT Users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/google-web-toolkit/rR0liCZDSl4/unsubscribe
> .
> To unsubscribe from this group and all its topics, send an email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at https://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: ProjectStruture

2016-02-20 Thread Sam Wootton
Thanks Jens... perfect. Exactly what I was after (before I disappeared down
a dead-end of rpc calls and tons of re-writing, which I'd probably give up
on).

Loads to look in to, and get going on.  Thank you. I'll see how far I get
and post any questions I have.  Hopefully my only remaining concern is the
file upload and download functionality.

Thanks again, much appreciated.

Regards, Sam

On 20 February 2016 at 15:46, Jens <jens.nehlme...@gmail.com> wrote:

> GWT-RPC is just one convenient way to communicate with a server using GWT.
> However GWT-RPC uses its own serialization format that is based on JSON.
> While convenient to use GWT-RPC also has some pain points that are often
> discovered later.
>
> If you just want to make a POST / GET to an URL and transfer some
> serialized data (JSON, XML, custom) you can use GWT's RequestBuilder class
> (which is actually used internally by GWT-RPC as well). In order to get
> your XML going you can use GWT's XML API
> http://www.gwtproject.org/doc/latest/DevGuideCodingBasicsXML.html or use
> a library that maps from Java POJOs to/from XML. As example of such a
> library take a look at https://github.com/hpehl/piriti
>
> The above should allow you to not rewrite all the server side code.
>
> -- J.
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "GWT Users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/google-web-toolkit/rR0liCZDSl4/unsubscribe
> .
> To unsubscribe from this group and all its topics, send an email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at https://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: ProjectStruture

2016-02-20 Thread Sam Wootton
Hi Kirill,

​It was my understanding that GWT used rpc as its protocol.  Additionally,
as im constrained to JS libraries, I dont have access to any of the
Document / XML modelling and parsing libraries that I use in core Java, so
thought that XML based HTTP communication was not an option.

How can a GWT front-end, make standard requests and parse responses of
plain http based XML?
Can it also handle file uploads to servlets?

Apologies... perhaps i've got a huge gap in my understanding.  I went
through "GWT In Action" book, and didnt see anything that suited my project.

Regards, Sam​


On 20 February 2016 at 12:13, Kirill Prazdnikov <pkir...@gmail.com> wrote:

> Sorry, I did not get you question.
>
> You server uses HTTP protocol.
> You are able to sent HTTP requests form a GWT application to you server.
>
> What prevents you from doing that ?
>
> -Kirill
>
> On Saturday, February 20, 2016 at 11:29:05 AM UTC+3, Sam Wootton wrote:
>>
>> Hello Kirill,
>>
>> That's *exactly* what I want to aim for, that would be ideal. Hence my
>> original post. But given that my communication between my java swing client
>> and my servlets was xml based e.g.
>>
>> 
>> 
>> 
>> 
>> 
>>
>> 
>> 
>> 
>> 
>> 
>>
>> now looks like (from the front-end)
>>
>> server.loginUser(userName, password, repo);
>>
>>
>> then all the xml modelling is no longer applicable, and org.w3c.dom.*
>> libraries used in the swing client to parse the XML arent available in gwt.
>> on my server I use Document Builder and sax libraries. As mentioned in my
>> previous post, I had a front-controller pattern e.g.
>>
>> ControllerServlet
>> > LoginServlet
>> > UploadServlet
>> > UpdateServlet
>>  etc
>>
>> which Im finding hard to model in gwt's rpc world.  If i could just use a
>> new gwt client with my old xml / servlet based server - then great! id be
>> very happy indeed. I should also mention that my application uses
>> multi-part file uploads too.
>>
>> Regards, Sam
>>
>>
>> On 20 February 2016 at 06:22, Kirill Prazdnikov <pki...@gmail.com> wrote:
>>
>>> Can you avoid rewriting the server code at all ?
>>> It might be possible to just rewrite a client in GWT and leave the
>>> protocol as is.
>>>
>>>
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "GWT Users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/google-web-toolkit/rR0liCZDSl4/unsubscribe
> .
> To unsubscribe from this group and all its topics, send an email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at https://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: ProjectStruture

2016-02-20 Thread Sam Wootton
Hello Kirill,

That's *exactly* what I want to aim for, that would be ideal. Hence my
original post. But given that my communication between my java swing client
and my servlets was xml based e.g.













now looks like (from the front-end)

server.loginUser(userName, password, repo);


then all the xml modelling is no longer applicable, and org.w3c.dom.*
libraries used in the swing client to parse the XML arent available in gwt.
on my server I use Document Builder and sax libraries. As mentioned in my
previous post, I had a front-controller pattern e.g.

ControllerServlet
> LoginServlet
> UploadServlet
> UpdateServlet
 etc

which Im finding hard to model in gwt's rpc world.  If i could just use a
new gwt client with my old xml / servlet based server - then great! id be
very happy indeed. I should also mention that my application uses
multi-part file uploads too.

Regards, Sam


On 20 February 2016 at 06:22, Kirill Prazdnikov <pkir...@gmail.com> wrote:

> Can you avoid rewriting the server code at all ?
> It might be possible to just rewrite a client in GWT and leave the
> protocol as is.
>
> On Friday, February 19, 2016 at 10:17:36 PM UTC+3, Sam Wootton wrote:
>>
>> Thank you Gilberto, good advice. Im not sure it will reduce work or
>> achieve the 'minimal' server rewrite (or rather maximal legacy reuse), but
>> at least it will be done properly.  I hadnt heard of RestyGWTbefore, so
>> thanks.  I'll give your advice a go, and see where it takes me.
>>
>> Regards, Sam
>>
>> --
> You received this message because you are subscribed to a topic in the
> Google Groups "GWT Users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/google-web-toolkit/rR0liCZDSl4/unsubscribe
> .
> To unsubscribe from this group and all its topics, send an email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at https://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: ProjectStruture

2016-02-19 Thread Sam Wootton
Thank you Gilberto, good advice. Im not sure it will reduce work or achieve
the 'minimal' server rewrite (or rather maximal legacy reuse), but at least
it will be done properly.  I hadnt heard of RestyGWTbefore, so thanks.
I'll give your advice a go, and see where it takes me.

Regards, Sam

On 19 February 2016 at 18:35, Gilberto <gilberto.torre...@gmail.com> wrote:

> I don't think my comment will help you out, but in my opinion you
> shouldn't go to GWT RPC if you're rewriting the communication with the
> server. Go RESTful. Given the nature of your application, a pure RESTful
> structure can not be achieved, but at least you can start using REST
> frameworks, such as Jersey (on the server) and RestyGWT (on the client).
>
> I say that because I'm currently working on a project where I have to
> convert GWT RPC calls to REST calls, to enable the server to be called from
> native mobile apps. Trust me: I'd be happier if I had started RESTful since
> day 1.
>
> About the XML stuff: were you using SOAP? Or something else? Is the XML
> just the transport for the entity data? If so, you could replace it with
> JSON... without having to write the parsers for it. You get it for free
> when using Jersey or any other REST framework for Java.
>
>
> On Friday, February 19, 2016 at 3:18:44 PM UTC-2, Sam Wootton wrote:
>>
>> I guess one of the main problems is jumping from RemoteServiceServlet
>> (setting session data), then handing control over to a 'standard' Servlet
>> (which does db work, business logic, sets new session data and attempts to
>> write, a now redundant?, response)... then jumping back in to the original
>> RemoteServiceServlet and returning the original rpc call.
>>
>> Btw - Im having problems formatting my posts here (using Firefox 42.0b9),
>> I cant put spaces in between words in my post titles, apologies :]
>>
>> Regards, Sam
>>
>>
>>
>>
>> On Friday, 19 February 2016 13:54:25 UTC, Sam Wootton wrote:
>>>
>>> ​
>>> ​Dear GWT Users,
>>>
>>> Many thanks in advance for any help and advice. Very much appreciated!
>>>
>>> I have a legacy application: java Swing client with XML based Servlet
>>> communication (request and response).
>>>
>>> The server comprised of aro
>>> ​​
>>> und 10 Servlets, one 'Front Controller' that forwarded (RequestDispatcher
>>> ​ ) to other Servlets depending on the initial XML request from client.
>>> These delegated Servlets did everything (parsed XML, db queries, session
>>> data, etc).​
>>>
>>> I decided move java swing client to gwt. Also move from XML to gwt rpc.
>>> Ideally I dont want to rewrite the whole server again (even thought it just
>>> talks in XML / Strings).
>>>
>>> I thought I could just forward my request from my main
>>> RemoteServiceServlet class, on to my 'legacy' XML servlets.
>>>
>>> What do I have so far?
>>>
>>> A working GWT client, making RPC calls to my RemoteServiceServlet.
>>> Successfully set session data and forward on to a e.g. LoginServlet.
>>> LoginServlet queries db and updates session data.
>>> Read updated session data in RemoteServiceServlet.
>>>
>>> For example:
>>>
>>> *RemoteServiceServlet*
>>> getThreadLocalRequest().getSession().setAttribute("username", username);
>>> requestDispatcher = 
>>> getThreadLocalRequest().getRequestDispatcher("/LoginServlet");
>>> requestDispatcher.forward(getThreadLocalRequest(), 
>>> getThreadLocalResponse());
>>>
>>> *LoginServlet*
>>> String username = (String) session.getAttribute("username");
>>> // do some db stuff & set new session data
>>> session.setAttribute("userEmail", userEmail);
>>>
>>> *RemoteServiceServlet*
>>> getThreadLocalRequest().getSession().getAttribute("userEmail")
>>>
>>>
>>> This seems very convoluted and hacky, and not scalable for the amount of
>>> work done in my 'legacy' servlets.  Is there a better way?
>>>
>>> Can I have multiple servlets extend RemoteServiceServlet?
>>> Whats the best way to implement a 'front controller' style architecture
>>> with gwt?
>>> Whats the best way to integrated multiple legacy XML servlets with a GWT
>>> facade / front controller?
>>> My legacy servlets just read and write a lot of XML, for example
>>>
>>> 
>>> 
>>> >> password_pref='no'/>
>>> 
>>>
>>>

Re: ProjectStruture

2016-02-19 Thread Sam Wootton
I guess one of the main problems is jumping from RemoteServiceServlet 
(setting session data), then handing control over to a 'standard' Servlet 
(which does db work, business logic, sets new session data and attempts to 
write, a now redundant?, response)... then jumping back in to the original 
RemoteServiceServlet and returning the original rpc call.

Btw - Im having problems formatting my posts here (using Firefox 42.0b9), I 
cant put spaces in between words in my post titles, apologies :]

Regards, Sam




On Friday, 19 February 2016 13:54:25 UTC, Sam Wootton wrote:
>
> ​
> ​Dear GWT Users,
>
> Many thanks in advance for any help and advice. Very much appreciated!
>
> I have a legacy application: java Swing client with XML based Servlet 
> communication (request and response).
>
> The server comprised of aro
> ​​
> und 10 Servlets, one 'Front Controller' that forwarded (RequestDispatcher
> ​ ) to other Servlets depending on the initial XML request from client.  
> These delegated Servlets did everything (parsed XML, db queries, session 
> data, etc).​
>
> I decided move java swing client to gwt. Also move from XML to gwt rpc.  
> Ideally I dont want to rewrite the whole server again (even thought it just 
> talks in XML / Strings).
>
> I thought I could just forward my request from my main 
> RemoteServiceServlet class, on to my 'legacy' XML servlets.
>
> What do I have so far?
>
> A working GWT client, making RPC calls to my RemoteServiceServlet.
> Successfully set session data and forward on to a e.g. LoginServlet.
> LoginServlet queries db and updates session data.
> Read updated session data in RemoteServiceServlet.
>
> For example:
>
> *RemoteServiceServlet*
> getThreadLocalRequest().getSession().setAttribute("username", username);
> requestDispatcher = 
> getThreadLocalRequest().getRequestDispatcher("/LoginServlet");
> requestDispatcher.forward(getThreadLocalRequest(), getThreadLocalResponse());
>
> *LoginServlet*
> String username = (String) session.getAttribute("username");
> // do some db stuff & set new session data
> session.setAttribute("userEmail", userEmail);
>
> *RemoteServiceServlet*
> getThreadLocalRequest().getSession().getAttribute("userEmail")
>
>
> This seems very convoluted and hacky, and not scalable for the amount of 
> work done in my 'legacy' servlets.  Is there a better way?
>
> Can I have multiple servlets extend RemoteServiceServlet?
> Whats the best way to implement a 'front controller' style architecture 
> with gwt?
> Whats the best way to integrated multiple legacy XML servlets with a GWT 
> facade / front controller?
> My legacy servlets just read and write a lot of XML, for example
>
> 
> 
>  password_pref='no'/>
> 
>
>
> This thread was helpful
>
> https://groups.google.com/forum/#!topic/google-web-toolkit/kRmrirPsFC8
>  
> I have a lot of XML data, session data and file upload / download data 
> (hence have these split up in to different servlets).
>
> Anyway-  hope this gives an overall picture of my project / problem(s).
>
> Regards, Sam
>
>
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


ProjectStruture

2016-02-19 Thread Sam Wootton
​
​Dear GWT Users,

Many thanks in advance for any help and advice. Very much appreciated!

I have a legacy application: java Swing client with XML based Servlet 
communication (request and response).

The server comprised of aro
​​
und 10 Servlets, one 'Front Controller' that forwarded (RequestDispatcher
​ ) to other Servlets depending on the initial XML request from client.  
These delegated Servlets did everything (parsed XML, db queries, session 
data, etc).​

I decided move java swing client to gwt. Also move from XML to gwt rpc.  
Ideally I dont want to rewrite the whole server again (even thought it just 
talks in XML / Strings).

I thought I could just forward my request from my main RemoteServiceServlet 
class, on to my 'legacy' XML servlets.

What do I have so far?

A working GWT client, making RPC calls to my RemoteServiceServlet.
Successfully set session data and forward on to a e.g. LoginServlet.
LoginServlet queries db and updates session data.
Read updated session data in RemoteServiceServlet.

For example:

*RemoteServiceServlet*
getThreadLocalRequest().getSession().setAttribute("username", username);
requestDispatcher = 
getThreadLocalRequest().getRequestDispatcher("/LoginServlet");
requestDispatcher.forward(getThreadLocalRequest(), getThreadLocalResponse());

*LoginServlet*
String username = (String) session.getAttribute("username");
// do some db stuff & set new session data
session.setAttribute("userEmail", userEmail);

*RemoteServiceServlet*
getThreadLocalRequest().getSession().getAttribute("userEmail")


This seems very convoluted and hacky, and not scalable for the amount of 
work done in my 'legacy' servlets.  Is there a better way?

Can I have multiple servlets extend RemoteServiceServlet?
Whats the best way to implement a 'front controller' style architecture 
with gwt?
Whats the best way to integrated multiple legacy XML servlets with a GWT 
facade / front controller?
My legacy servlets just read and write a lot of XML, for example







This thread was helpful

https://groups.google.com/forum/#!topic/google-web-toolkit/kRmrirPsFC8
 
I have a lot of XML data, session data and file upload / download data 
(hence have these split up in to different servlets).

Anyway-  hope this gives an overall picture of my project / problem(s).

Regards, Sam


-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Still active?

2016-02-19 Thread Sam Wootton
Hello Alain & Lothar,

Ah good news.

Thanks for your prompt responses. I have already checked existing posts,
and found something similar in

https://groups.google.com/forum/#!topic/google-web-toolkit/kRmrirPsFC8

.. but it doesn't quite fit my situation.  So i'll investigate a little
further, before posting my question.

Regards, Sam

On 19 February 2016 at 12:40, Lothar Kimmeringer <j...@kimmeringer.de> wrote:

> Am 19.02.2016 um 12:54 schrieb Sam Wootton:
>
> > Before posting my question, I just wanted to check that this
> > group was still active?
>
> it is and before you ask you might check
> https://groups.google.com/forum/#!forum/google-web-toolkit
> if your question isn't already answered. ;-)
>
>
> Cheers, Lothar
>
> --
> You received this message because you are subscribed to the Google Groups
> "GWT Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at https://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Still active?

2016-02-19 Thread Sam Wootton
Hello GWT Users,

Before posting my question, I just wanted to check that this group was 
still active?

Regards, Sam

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: The future of GWT and functional programming on the web

2015-11-02 Thread Sam Edge
How exciting!

On Thursday, October 29, 2015 at 9:04:25 AM UTC+10:30, Thomas Broyer wrote:
>
> We just had a steering committee meeting a few hours ago, and 2.8 RC1 has 
> been scheduled for next week (I was a bit late so I missed the details 
> though)

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Important videos from GWT Meet-up 2015

2015-06-21 Thread Sam Edge


On Monday, June 22, 2015 at 5:28:36 AM UTC+9:30, Jens wrote:


 Yeah I think finalizing JsInterop including all the pieces to make 
 Elemental 2.0 possible is one of the most important point which should 
 actually have higher priority than the new compiler itself. That way other 
 people can figure out how to migrate existing GWT library stuff while the 
 new compiler is being developed.

 -- J.


 Great point

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Cell Widgets in GWT 3.0

2015-06-21 Thread Sam Edge
Given the upcoming changes in GWT 3.0 and in particular the gwt.user 
package being removed; I have a query regarding future of Cell Widgets.

This is a powerful widget set unique to GWT and it seems there is nothing 
else out there quite like it (perhaps Vaadin and Sencha are the exception, 
although I believe they extend/composite the core cell library anyway).

I believe this is one gwt.user component worth salvaging as a drop-in 
replacement (where possible) for us migrating our apps to GWT 3.0 in the 
future. I say this because other widgets are somewhat trivial compared to 
the Cell Widgets that are easily replaced by either plain old HTML or for 
the more exotic, Web Components or your favourite UI library (jQuery UI, 
Bootstrap etc).

I would be curious to understand how this is would be done. Would be 
perhaps scaffold our tables in HTML, append relevant data-cell-table 
attributes and transform the DOM using Elemental?

Is this a valid assertion or are porting the Cell Widgets not the way to 
go? Please discuss

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Extending DialogBox to include a footer w/ ui:binder

2015-03-14 Thread Sam Edge
I'm looking at extending the DialogBox 
http://www.gwtproject.org/javadoc/latest/com/google/gwt/user/client/ui/DialogBox.htmlwidget
 
that allows for a g:footer child in the ui:binder template, similar to 
that of the g:caption.

I've has success using a @UiChild 
http://www.gwtproject.org/javadoc/latest/com/google/gwt/uibinder/client/UiChild.html
 annotated 
method, ie:

*UiBinder:*

g:DialogBox2
  g:footer
g:HTML
  buttonOkay/button
  buttonCancel/button
/g:HTML
  /g:footer
/g:DialogBox2

*Class:*

public class DialogBox2 extends DialboxBox {
  @UiChild
  public void addFooter(Widget widget) {
Element td = getCellElement(2,1); // corresponds to .dialogBottomCenter
DOM.appendChild(td, widget.getElement());
  }
}

However the DialogBox widget did not implement g:caption like this. They 
seem to pass the Caption 
http://www.gwtproject.org/javadoc/latest/com/google/gwt/user/client/ui/DialogBox.Caption.html
 
as a argument constructor(?) On this assumption, I copied the inner Caption 
class renaming it Footer and adding a new constructor with all the 
possible parameter variants. 

Please see my snippet below - I've excluded the g:caption in this 
example, anticipating the my ui:binder template will be invoking the 
constructor with the single Footer parameter. I'm given a compilation 
error, hence is my reason for posting.


*UiBinder:*
g:DialogBox2
  g:footer
buttonOkay/button
buttonCancel/button
  /g:footer
/g:DialogBox2

*Class:*

public class DialogBox2 extends DialboxBox {
  public interface Footer extends HasAllMouseHandlers, HasHTML, HasSafeHtml, 
IsWidget { }

  public static class FooterImpl extends HTML implements Footer {
public FooterImpl() {
  super();
}
  }

  private Footer footer;

  public DialogBox2(Footer footer) {
super();
this.footer = footer;

Element td = getCellElement(2,1); // corresponds to .dialogBottomCenter
DOM.appendChild(td, footer.asWidget()..getElement());
  }

  public DialogBox2() {
super(new FooterImpl);
  }

  public Footer getFooter() {
return footer;
  }
}

*Compiler Output:*

Compile with -strict or with -logLevel set to TRACE or DEBUG to see all 
errors.
   Computing all possible rebind results for 
'com.example.client.core.ExampleDialogView.Binder'
  Rebinding com.example.client.core.ExampleDialogView.Binder
 Invoking generator com.google.gwt.uibinder.rebind.UiBinderGenerator
[ERROR] No class matching footer in urn:import:com.google.gwt.
user.client.ui: g:footer (:60)
   [ERROR] Errors in 
'gen/com/example/client/core/com_gwtplatform_mvp_client_DesktopGinjector_DesktopGinjectorGinjector_fragment.java'
  [ERROR] Line 56: Failed to resolve 
'com.example.client.core.ExampleDialogView.Binder' via deferred binding
   Unification traversed 659 fields and methods and 505 types. 15 are 
considered part of the current module and 15 had all of their fields and 
methods traversed.
   [WARN] Some stale types ([com.example.client.core.
ExampleDialogView_BinderImpl, com.example.client.core.
ExampleDialogView_BinderImpl$Widgets]) were not reprocessed as was expected. 
This is either a compiler bug or a Generator has legitimately stopped 
creating these types.
[ERROR] Compiler returned false

I am using the GWTP/GIN frameworks but should not be an issue.

I prefer the second (broken) solution because I do not need to nest the 
inner content inside another widget.

Any ideas what I've overlooked here? Much appreciated.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Design Decision RPC with AsyncDataProvider

2013-06-16 Thread Sam Radford
This might help you,

this is how I do it, using Jens' suggestion with setDataStoreName() on the 
columns.  This example is for sorting invoices, although I do the sorting 
client side to reduce server requests

ArrayListInvoice dataInRange = 
appData.getInvoiceCacheBetweenDates(startBox.getValue(), endBox.getValue());
final ColumnSortList sortList = cellDataGrid.getColumnSortList();
if(sortList.size()  0) {

final ColumnSortInfo sortInfo = sortList.get(0);
final String dataStoreName = 
sortInfo.getColumn().getDataStoreName();

Collections.sort(dataInRange, new ComparatorInvoice() {

public int compare(Invoice o1, Invoice o2) {
  
if (o1 == o2) {
return 0;
}


// Compare the name columns.
int diff = -1;

if(o1 == null) {

} else if(dataStoreName.equals(ref)) {
diff = (o2 != null) ? 
(INV+o1.getRef()).compareTo(INV+o2.getRef()) : 1;
} else if(dataStoreName.equals(amount)) {
Double amount1 = new Double(o1.getAmount());
Double amount2 = new Double(o2.getAmount());
diff = (amount2 != null) ? 
amount1.compareTo(amount2) : 1;
} else if(dataStoreName.equals(employer)) {
Employer employer1 = 
appData.getEmployersCache().get(o1.getEmployerId());
Employer employer2 = 
appData.getEmployersCache().get(o2.getEmployerId());
diff = (employer2 != null) ? 
(employer1.getEmployerName()).compareTo(employer2.getEmployerName()) : 1;
} else if(dataStoreName.equals(raised)) {
diff = (o2 != null) ? 
o1.getRaisedDate().compareTo(o2.getRaisedDate()) : 1;
} else if(dataStoreName.equals(paid)) {
diff = (o2 != null) ? 
o1.getPaidDate().compareTo(o2.getPaidDate()) : 1;
} else if(dataStoreName.equals(status)) {
diff = (o2 != null) ? 
(o1.getInvoiceStatus().getListItem()).compareTo(o2.getInvoiceStatus().getListItem())
 
: 1;
}

return sortInfo.isAscending() ? diff : -diff;
}
});


}

updateRowData(0, dataInRange);
updateRowCount(dataInRange.size(), true);


On Friday, June 14, 2013 3:21:51 PM UTC+1, Jens wrote:

 You can set a string identifier to your columns by using 
 Column.setDataStoreName(). The easiest identifier would be the raw database 
 column name. Then you can go through the ColumnSortList of your CellTable, 
 read the database column name and sort order of each sorted column and pass 
 this information to the server. This information can then be used to build 
 your ORDER BY clause.

 Then you only need to detect if sort order has been changed so you can 
 switch back to page one in your CellTable. To do so you can add a 
 ColumnSortHandler to each column, which gets notified as soon as sort order 
 changes.

 -- J.


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Formatting lists with GWT i18n API

2013-04-24 Thread Sam Pipes
And if anyone else stumbles across this in the future like myself make sire 
there are no spaces between 0, list and text.

On Thursday, 15 December 2011 13:18:35 UTC, Luiz Mineo wrote:

 Thanks! It works now. :)

 After reading through the GWT doc [1], I thought the third argument
 wasn't necessary. Also, I didn't know that 'text' is a valid value for
 the format argument, since I found examples only for number and date.

 [1]: 
 http://code.google.com/webtoolkit/doc/latest/DevGuideI18nMessages.html#GwtFormats

 On Dec 15, 10:23 am, Adam T adam.t...@gmail.com wrote:
  Hi Luiz,
 
  If you've not stumbled across this already, just add the format marker
  text in your message definitions and it should work, i.e.
 
  @DefaultLocale(pt_BR)
  public interface AppMessages extends Messages {
 
  @DefaultMessage(elementos: {0,list,text})
  @AlternateMessage({one, elemento: {0,list,text}})
  String formatElements(@PluralCount ListString elements);
 
  }
 
  //Adam
 
  On 15 Dec, 00:43, Luiz Mineo luiz.mi...@gmail.com wrote:
 
 
 
 
 
 
 
   Hi,
 
   I'm trying to format a list of Strings using a Messages interface:
 
   @DefaultLocale(pt_BR)
   public interface AppMessages extends Messages {
 
   @DefaultMessage(elementos: {0, list})
   @AlternateMessage({one, elemento: {0, list}})
   String formatElements(@PluralCount ListString elements);
 
   }
 
   In my module.gwt.xml, I have:
 
   !-- languages supported --
   extend-property name=locale values=pt_BR /
   set-property-fallback name=locale value=pt_BR /
 
   But when I try to format a list, for example:
 
   AppMessages appMessages = GWT.create(AppMessages.class);
   appMessages.formatElements(Arrays.asList({A}));
   appMessages.formatElements(Arrays.asList({A,B,C}));
 
   I get:
 
   elemento: 1
   elementos: 3
 
   Instead of:
 
   elemento: A
   elementos: A, B e C
 
   I'm using pt_BR for default locale, since it is the only language my
   app supports for now. Does it only work for en? I tryied to change the
   default locale for en, but it didn't work either :(
 
   So, what I'm doing wrong?



-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




GWT on-the-fly compiler with soafaces

2013-03-27 Thread Sam Taha
Wanted to point folks to the GWT on-the-fly compiler (JSP to servlet like 
compiler) that is used in the soafaces component framework. The Soafaces 
https://code.google.com/p/soafaces/framework allows building GWT 
components (mini GWT apps) that can be compiled on the fly, kind of like 
JSPs.


Thanks
Sam
https://code.google.com/p/soafaces/

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




GWT Designer, throws exception if parent constructor missing call to initWidget

2013-02-14 Thread Sam


https://lh3.googleusercontent.com/-vPKFVLSWeQo/URzFXsUUe7I/AEc/0znePWqow5Y/s1600/installed.png
GWTDesigner will not open a class in design view if its parent components 
constructor does not call initWidget, it chokes with that all too familiar 
this UIObject's element is not set  I need to make this call in the 
child and not the parent. 

public abstract class A extends composite {
public A() {
 // no initWidget call
}
...

public class B extends A {
MyCustomPanel panel
public B() {
...
initWidget(panel); 

Wasn't able to move the image to the bottom

Thanks

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Configuring .properties file into my project

2012-08-12 Thread King Sam
Hi GWT guys,

Good day to all.

I am working on GWT now and trying to learn every corner of the project. At 
this point of time, I am struck up with configuring the .properties file.

I am using a .properties file in my client package. In that I have given a 
server name defined to a variable(ipAddress1).

I have used interface in the client package and used annotations in that to 
get that server name.

This interface i have used in my client application to get the server name 
from .properties file.

1) Now here, If I need to change the server name in future, I need to 
change in .properties file as well as Interface. Its not a good practice. 
How can I handle this situation?

2) How can I configure the .properties file to my whole project?

3) If the above way is the only process to get all the data in .properties 
file, how can I handle that without using the Constants package in the 
interface?

Here is my sample code:

.properties
---

ipAddress1 = dtjhbtibadm;

Const_Interface.java
-

import com.google.gwt.i18n.client.Constants;

public interface Const_Interface extends Constants{
@DefaultStringValue(dtjhbtibadm)
String ipAddress1();

}

Client App:
---

public class MyApp implements EntryPoint{
..
..
public void onModuleLoad() {
.
.
public void onClick(ClickEvent event) {
Const_Interface cons_intr = (Const_Interface) 
GWT.create(Const_Interface.class);
java.lang.String ipAddress1 = cons_intr.ipAddress1();
java.lang.String ipAddress= ipAddress1;

*.gwt.xml
-

inherits name=com.google.gwt.i18n.I18N/

Jars:
--
gwt-user 1.6.4.jar


Thanks in advance,

Sampath Girish M



 

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/NWT0JoLNRgcJ.
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.



logging jobs run by executor service

2012-04-19 Thread Sam W
Hello gwt users,

I can see my usual stderr messages from my default gwt classes. However, if 
I use the Executor Service to run the jobs, the stderr messages seems to 
get lost in limbo.

I am using standard java logging classes.

Is this a limitation of gwt/tomcat, or simply my misconfigurations?

my logging.properties is simply:

 # The following creates two handlers

 handlers = java.util.logging.ConsoleHandler, java.util.logging.FileHandler

 

 # Set the level for the root logger

 .level = INFO

 

 # Set the level for ConsoleHandler

 java.util.logging.ConsoleHandler.level = INFO

 

 # Set the logging level for FileHandler

 java.util.logging.FileHandler.level = INFO

 

 # Set the formatter for ConsoleHandler

 java.util.logging.ConsoleHandler.formatter = 
 java.util.logging.SimpleFormatter


Thank you very much for your help. 

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/JzTspUInM3EJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Fetching images for users: where to put them?

2012-04-06 Thread Sam W
Thanks for your help!

Seems that there isn't a general solution to this...

(Nice tip on checking exist(), I pulled my hair out a few times when I 
forgot to create the folders!)

On Thursday, April 5, 2012 2:35:59 AM UTC+8, Matias Costa wrote:

 In web.xml:

 servlet
 servlet-nameimageReceiver/servlet-name
 servlet-classxxx.ImageReceiver/servlet-class
 
 init-param
 param-nameimagePath/param-name
 param-value/the/place/param-value!-- or C:\the\place --
 /init-param
 /servlet

 And in the servlet:

 public void init(ServletConfig servletConfig) throws ServletException{
 imagePath = servletConfig.getInitParameter(imagePath);
 if (!imagePath.endsWith(File.separator)) imagePath += File.separator
 try {
 File imageFolder = new File(imagePath);
 if (!File.exists()) Util.mkdirRecursive(imagePath);
 } catch ... whatever you want to do if something fails
   }

 El martes 3 de abril de 2012 03:21:06 UTC+2, Sam W escribió:

 Hello, 

 I haven't been able to figure this out after spending 3 hours on 
 Google. 

 I can fetch an image, but I don't know where to put them. 
 If I just use new File(image.jpg), it will end up in my tomcat 
 bin/ folder. 

 Some sugggests to use getServletContext().getRealPath(/); but it 
 would block forever at getServletContext, I don't know why. 

 What should I do so it will be part of the war, thus clients can 
 access it via http://path.to/appname/images/someimage.jpg;? 

 What is the best practice on this? 

 Thank you so much. 
 Sam



-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/LErR8GWTDY4J.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Fetching images for users: where to put them?

2012-04-04 Thread Sam W
Turns out getServletContext returns null.

I am using my own tomcat server, so I'm fine with writing files. Except I 
haven't been able to figure out a proper way to get the path.

Currently I use private static String uglyHardcodedPath = 
../webapps/myproject/, the prepend this to all my filepaths...

Thanks everyone

On Tuesday, April 3, 2012 9:21:06 AM UTC+8, Sam W wrote:

 Hello, 

 I haven't been able to figure this out after spending 3 hours on 
 Google. 

 I can fetch an image, but I don't know where to put them. 
 If I just use new File(image.jpg), it will end up in my tomcat 
 bin/ folder. 

 Some sugggests to use getServletContext().getRealPath(/); but it 
 would block forever at getServletContext, I don't know why. 

 What should I do so it will be part of the war, thus clients can 
 access it via http://path.to/appname/images/someimage.jpg;? 

 What is the best practice on this? 

 Thank you so much. 
 Sam

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/03OtsCQxqRYJ.
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.



Fetching images for users: where to put them?

2012-04-03 Thread Sam W
Hello,

I haven't been able to figure this out after spending 3 hours on
Google.

I can fetch an image, but I don't know where to put them.
If I just use new File(image.jpg), it will end up in my tomcat
bin/ folder.

Some sugggests to use getServletContext().getRealPath(/); but it
would block forever at getServletContext, I don't know why.

What should I do so it will be part of the war, thus clients can
access it via http://path.to/appname/images/someimage.jpg;?

What is the best practice on this?

Thank you so much.
Sam

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



GWT + Maven + NetBeans

2011-10-10 Thread Sam Halliday
Dear all,

I've had a several-year hiatus from GWT (and regular Java coding) and
I'm very pleased to see all the improvements!

I just wanted to say thank you for all the work you've put into GWT
over the last few years. Getting a GWT web application up and running
was as simple as typing:

mvn archetype:generate -DarchetypeRepository=repo1.maven.org -
DarchetypeGroupId=org.codehaus.mojo -DarchetypeArtifactId=gwt-maven-
plugin -DarchetypeVersion=2.4.0

then opening the project in NetBeans and adding various Goals from
http://mojo.codehaus.org/gwt-maven-plugin/plugin-info.html

((It took me about an hour to work out the bit about the Goals,
especially gwt:run, but that was just because I didn't RTFM
properly)). And this is from a guy who has never used Maven before!

The only suggestion I would make at this stage is that, on a mac,
Safari is not supported so it would be useful to have an Open in
Chrome button in the Hosted Mode window.

Thanks again! Sam

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: GWT + Maven + NetBeans

2011-10-10 Thread Sam Halliday
Oh, I've hit an issue - does anyone know how to run the gwt:debug
maven Goal from NetBeans such that the debugger attaches itself and I
get a debugging session in Hosted Mode?

Also, does anyone have a home-brew nbactions.xml file that correctly
defines/associates all the Maven Goals to NetBeans Actions?

On Oct 10, 9:33 pm, Sam Halliday sam.halli...@gmail.com wrote:
 Dear all,

 I've had a several-year hiatus from GWT (and regular Java coding) and
 I'm very pleased to see all the improvements!

 I just wanted to say thank you for all the work you've put into GWT
 over the last few years. Getting a GWT web application up and running
 was as simple as typing:

 mvn archetype:generate -DarchetypeRepository=repo1.maven.org -
 DarchetypeGroupId=org.codehaus.mojo -DarchetypeArtifactId=gwt-maven-
 plugin -DarchetypeVersion=2.4.0

 then opening the project in NetBeans and adding various Goals 
 fromhttp://mojo.codehaus.org/gwt-maven-plugin/plugin-info.html

 ((It took me about an hour to work out the bit about the Goals,
 especially gwt:run, but that was just because I didn't RTFM
 properly)). And this is from a guy who has never used Maven before!

 The only suggestion I would make at this stage is that, on a mac,
 Safari is not supported so it would be useful to have an Open in
 Chrome button in the Hosted Mode window.

 Thanks again! Sam

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



EditorDriver.flush() returns duplicated editor errors on the first call

2011-08-09 Thread Sam J.
I'm seeing EditorDriver.flush() returns duplicated editor errors on
the first call, and I'm not sure what's causing it. I need some help
_

I'm doing:
driver.initialize( my view );
driver.edit( my data );

in my view, I have a sub editor that implements HasEditorDelegate, and
does:
public MyObject getValue() {
  // some checkings and delegate.recordError(...)
}

and the view itself, it implements HasEditorErrors and
public void showErrors(...) {
  // update view to reflect editor errors
}


everything works as expected up to driver.edit. I can see my widgets
displaying the object being edited

some time later, upon a button click, I call
modifiedObject = driver.flush()

in the UI, there are two identical copies of each error. e.g.
showErrors is invoked with arg [error1, error1, error2, error2, etc].
The duplicates have identical values as their originals, except they
are different objects

but if I call
modifiedObject = driver.flush()
modifiedObject = driver.flush()
twice, then the second flush properly generates errors without
duplicates.

any help is appreciated. thanks

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: EditorDriver.flush() returns duplicated editor errors on the first call

2011-08-09 Thread Sam J.
oh and I forgot to mention, I think this problem started to appear
after I upgraded to gwt 2.3 from 2.2. I'm positive, but not 100% sure

On Aug 9, 4:58 pm, Sam J. sam.ji...@karoshealth.com wrote:
 I'm seeing EditorDriver.flush() returns duplicated editor errors on
 the first call, and I'm not sure what's causing it. I need some help

 _

 I'm doing:
 driver.initialize( my view );
 driver.edit( my data );

 in my view, I have a sub editor that implements HasEditorDelegate, and
 does:
 public MyObject getValue() {
       // some checkings and delegate.recordError(...)

 }

 and the view itself, it implements HasEditorErrors and
 public void showErrors(...) {
       // update view to reflect editor errors

 }

 everything works as expected up to driver.edit. I can see my widgets
 displaying the object being edited

 some time later, upon a button click, I call
 modifiedObject = driver.flush()

 in the UI, there are two identical copies of each error. e.g.
 showErrors is invoked with arg [error1, error1, error2, error2, etc].
 The duplicates have identical values as their originals, except they
 are different objects

 but if I call
 modifiedObject = driver.flush()
 modifiedObject = driver.flush()
 twice, then the second flush properly generates errors without
 duplicates.

 any help is appreciated. thanks

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: AutoBeanCodex.decode performance

2011-07-28 Thread Sam J.
As you suspected, the bottleneck is indeed elsewhere, very likely in
object creation.
I swapped safeEval with unsafeEval, and that only saved me about
50-100ms down from 300-400ms.

Are there any fixes / hacks that can speed up the autobean framework?

thanks

On Jul 27, 7:53 pm, Thomas Broyer t.bro...@gmail.com wrote:
 FYI, AutoBeanCodex.decode uses StringQuoter, whose super-source
 implementation (used in compiled code only) uses JsonUtils.safeEval, which
 in turn uses eval() in IE6 to parse the JSON, after checking it with a
 couple regexps. So maybe the regexps are slow with large strings?
 You could try overriding the StringQuoter (put your version earlier on the
 classpath) with a version that uses JsonUtils.unsafeEval to see if it makes
 a difference (at your own risks).

 But AutoBeans do create a lot of objects (an AutoBean and a wrapper
 implementing your interface for each object in the JSON), and that could
 really be the bottleneck in your case.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: AutoBeanCodex.decode performance

2011-07-28 Thread Sam J.
actually, I just did an upgrade from gwt 2.2 to gwt 2.3. I did not
realize the AutoBean decode got reworked. I now see a speedup more
than 50% =D

On Jul 28, 10:29 am, Sam J. sam.ji...@karoshealth.com wrote:
 As you suspected, the bottleneck is indeed elsewhere, very likely in
 object creation.
 I swapped safeEval with unsafeEval, and that only saved me about
 50-100ms down from 300-400ms.

 Are there any fixes / hacks that can speed up the autobean framework?

 thanks

 On Jul 27, 7:53 pm, Thomas Broyer t.bro...@gmail.com wrote:







  FYI, AutoBeanCodex.decode uses StringQuoter, whose super-source
  implementation (used in compiled code only) uses JsonUtils.safeEval, which
  in turn uses eval() in IE6 to parse the JSON, after checking it with a
  couple regexps. So maybe the regexps are slow with large strings?
  You could try overriding the StringQuoter (put your version earlier on the
  classpath) with a version that uses JsonUtils.unsafeEval to see if it makes
  a difference (at your own risks).

  But AutoBeans do create a lot of objects (an AutoBean and a wrapper
  implementing your interface for each object in the JSON), and that could
  really be the bottleneck in your case.

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



AutoBeanCodex.decode performance

2011-07-27 Thread Sam J.
Hi all

I'm seeing some slowness with AutoBeanCodex.decode(...), and I have a
few questions.
In my application, it needs to decode hundreds of json objects. Here
are some rough timings:

FF3 on Mac: 1 second
Safari on Mac: 1 second
Chrome on Mac: seconds, but still reasonable
IE6 on XP: 1 minute+

Is there anything I can do to make the parsing run faster on IE6? I
know the parsing code is slow because when I substitute json parsing
with randomly generated data, IE6 renders within reasonable time. (I
hate IE6, hate IE6, hate IE6... but that doesn't mean I can skip its
support =/)

I'm looking at the AutoBeanCodex.decode code. Does it have any calls
that are known to be slow on IE6? What about builtin function eval? I
heard there are security risks, but say if I mind them (crossing
fingers _), is there a way to tell autobean codex to use eval
instead of the default parser?

many thanks

p.s. I understand that there are other work arounds (like incremental
loading etc) to this issue, for now, I just want to focus on
AutoBeanCodex.decode.

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



Request Factory

2011-06-20 Thread sam
Hi There,


Can i plz get some information regarding how the requestfactory works
and if possible some demo sample would be great.


Thank You in Advanced
Sam

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



RPC and Servlet

2011-06-14 Thread sam
What is the difference between RPC and HTTPServlet. I mean how
differently they work when connecting to a server.

Thank you
Sam

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



Ref: Jdoconfig.xml

2011-06-14 Thread sam
Hi All,

During the build process a copy of jdo-config.xml is created in the
WAR folder, so m question is what is the name of that file.


Thx in Advanced
Sanjay

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



Override docklayoutpanel heights with CSS

2011-01-15 Thread Sam Stephens
Hi all,

I'm trying to change the heights of the various north/south panels in
a dock layout panel using CSS. But I cannot for the life of me figure
out how.

Any help ?

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: GWT 2.1 MVP with DockLayoutPanel

2011-01-15 Thread Sam Stephens
Thanks, that sorted it.

On Jan 13, 8:52 pm, zixzigma zixzi...@gmail.com wrote:
 http://groups.google.com/group/google-web-toolkit/browse_thread/threa...

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



GWT 2.1 MVP with DockLayoutPanel

2011-01-13 Thread Sam Stephens
Hi all,

I'm having problems with the new MVP framework and using
DockLayoutPanel or SplitLayoutPanel. If I switch my code to use
RootPanel and DockPanel then it will work, but if my views are using
a  DLP or a SLP inside a RLP then it simply does not render the centre
pane.

Any tips ?

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



some of the CSS of my project are not working in firefox higher versions

2010-12-09 Thread sam
I Developed a project for marketing.it was deployed into weblogic
server .Everthing is working fine is IE all versions
But CSS are not working in firefox3.5 versions.
Please suggest me what i have to do to make it work in firefox
versions.
Thanks in advance.

-- 
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 page refresh issue

2010-10-25 Thread sam
i created a Gwt prototype,entry point is LOGIN page,once login is
success it will direct to the home page.The
problem is after login successfully if i click on the refresh button
of the Browser its directing to the login page.so that i have to
enter the login details again.

please suggest me to avoid this problem.

-- 
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-contrib] Sub entities not being filled in

2010-10-03 Thread Sam Gross
I also ran into a bug today where sub entities were not always
deserialized.  The problem is in that entries in related objects may
refer to entities that haven't been deserialized yet if the referenced
entities occur later in related objects.

Splitting AbstractRequestContext.processReturnRecord so that it first
creates all the proxies before mutating any of them seemed to fix the
problem.

-Sam

On Sun, Oct 3, 2010 at 9:47 PM, Patrick Julien pjul...@gmail.com wrote:
 I'm still having difficulties even with this syntax, again the
 collections seem to be the problem

 so having offices give me back all my offices.

 but putting offices.address, or offices.office.address or
 office.address still gives me null

 On Sun, Oct 3, 2010 at 9:07 PM, Ray Cromwell cromwell...@gmail.com wrote:

 the syntax of with() is with(property.subProperty.subSubProperty,
 property2.subProperty2.subPropertyProperty2). Bob can answer the question
 as to how to make deeply composited editors do the right thing.

 On Sun, Oct 3, 2010 at 6:02 PM, Patrick Julien pjul...@gmail.com wrote:

 No, it's not just me, anything one level deep doesn't get picked up.

 So my offices also have on address and it's not in the getPath() array
 either.  Even if it was, what's the syntax for sub path elements?

 On Sun, Oct 3, 2010 at 8:38 PM, Patrick Julien pjul...@gmail.com wrote:
  Getting there.  So now getPaths() gets me the data for my offices and
  patients but not the phones inside the offices.
 
  Since offices is using my own composite editor, I'm going to assume
  that's where the problem is
 
  On Sun, Oct 3, 2010 at 8:22 PM, BobV b...@google.com wrote:
  On Sun, Oct 3, 2010 at 7:24 PM, Patrick Julien pjul...@gmail.com
  wrote:
  Yeah, because even with using with().  The problem is the entire
  object graph isn't there
 
  So I have a practice that has offices and each office has phones.
 
  So if I ask for offices.  It fills in the offices but the phones
  inside it are not.  This could get laborious if I need to do this
  manually for each editing activity
 
  Use RequestFactoryEditorDriver.getPaths();
 
 
  interface MyOfficeDriver extends
  RequesFactoryEditorDriverOfficeProxy, OfficeEditor {}
 
  MyOfficeDriver driver = GWT.create(MyOfficeDriver.class);
  driver.initialize(requestFactory, editor);
 
  requestFactory.officeService().fetchOffice(1234).with(driver.getPaths()).to(receiver).fire();
 
 
  --
  Bob Vawter
  Google Web Toolkit Team
 
  --
  http://groups.google.com/group/Google-Web-Toolkit-Contributors
 

 --
 http://groups.google.com/group/Google-Web-Toolkit-Contributors

 --
 http://groups.google.com/group/Google-Web-Toolkit-Contributors

 --
 http://groups.google.com/group/Google-Web-Toolkit-Contributors

-- 
http://groups.google.com/group/Google-Web-Toolkit-Contributors


GWT Spring integration - what is the best method in late 2010?

2010-08-31 Thread Sam
Note: this thread is about using Spring for your service impls in a
GWT app (it's not about integrating Spring MVC or using ROO. It's also
not about Guice)

There are a few posts on this but it's hard to tell what the best
method is today.  The two contenders seem to me to be:

1) http://code.google.com/p/gwt-spring-starter-app/ (my project based
on P.G. Taboada's approach:
http://pgt.de/2009/07/17/non-invasive-gwt-and-spring-integration-reloaded/)

which is as simple as can be, however, the one annoyance is that you
need yet another class for each RPC Service (A wrapper that extends a
spring context injecting RemoteServiceServlet)

2) http://code.google.com/p/gwtrpc-spring/

Just glanced at this.  Looks a lot more complicated and the project
has a lot of unresolved issues.

Am I missing any approaches?  Surely you other GWT devs are using
Spring on the back end if you're writing serious applications.  Don't
be shy, please speak up.

-- 
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: what is the appropriate MVP way of doing this?

2010-08-31 Thread Sam
Joe, in the View interface I would provide:

HasClickHandlers getTextBoxForClickHandler();

HasKeyUpHandlers getTextBoxForKeyUpHandler();

The implementations in the View would both return that same TextBox.
Redundant but clear.

-- 
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.1 M3 is now available

2010-08-26 Thread sam samy
hi

please register to this website and get irancell mobile charge free.

www.malardiha.com/signup.php

malardiha.com


On 8/26/10, Chris Ramsdale cramsd...@google.com wrote:
 That's a great point, and we'll be there with M4. There's a Google snapshot
 repository that we'll be using for the next milestone and subsequent RCs.
 It's a single repo where we'll upload 2.1-BUILD-SNAPSHOT jars. Once we get
 to GA, we'll be in Maven central.

 -- Chris

 On Wed, Aug 25, 2010 at 8:21 AM, jie...@gmail.com jie...@gmail.com wrote:

   Will milestone releases be put into the maven repo? This wasn't
   discussed AFAIK so far. I, for one, would really like to see it.
 
  You meanhttp://google-web-toolkit.googlecode.com/svn/2.1.0.M3/gwt/maven/
  ? ;-)

 That maven layout doesn't actually include the 2.1.0M3 artifacts.
 Also, It's generally less useful to have a separate maven repository
 for every tag.. It would be nicer to users to provide one Maven
 repository format and put all artifacts into it - that way I wouldn't
 have to add a new repository every release of GWT.

 -Jesse

 --
 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.comgoogle-web-toolkit%2bunsubscr...@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.



firefox gwt issues

2010-06-02 Thread Sam Phippen
When I attempt to load my gwt app in firefox (f13, x64) with the
plugin installed I still get the screen telling me to install the
plugin. I also get a drop down at the top saying additional plugins
are required to display all media on this page

-- 
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.xml and JUnit with Google Plugin for Eclipse (GWT 2.0.0 in Eclipse 3.5.1.M20090917-0800 on Mac OS X 10.5.8)

2010-02-16 Thread Sam Kuper
Thanks Jason,

Seems that for some reason I had the method

public String getModuleName()

returning the wrong name for the module. Seems to be OK now!

Cheers,

Sam

-- 
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-contrib] Unified Backend for Optimizing Java and JavaScript

2010-01-18 Thread Sam Gross
Hi GWT team and contributors,

The GWT compiler currently does a good job of dead code elimination
and generating concise, efficient JavaScript.  However, the AST based
representation makes it difficult to perform data-flow based
optimizations.

I've been experimenting with a low-level, strongly-typed, SSA based
backend representation for the GWT backend.  The design of the IR is
heavily influenced by LLVM (http://llvm.org), a BSD-licensed compiler
infrastructure.  Some of the optimizations are adapted from LLVM.

The experimental backend works by flattening/linearizing all Java and
JavaScript code to a low-level IR, in which all non-memory operations
are in SSA form.  Nearly all optimizations occur on the IR, and not on
the Java or JavaScript ASTs.  The JavaScript AST is then generated
from the IR.  We may want to perform syntax based optimizations on the
JS AST, such as removing unnecessary labels or return statements.

This low-level IR has several advantages over GWT's current AST based
representation.  The SSA form makes advanced data flow analysis
easier.  The unified representation means compiler optimizations work
on both Java and JavaScript code.  Since it preserves type
information, we can still perform aggressive dead code elimination.

At this point, the experimental backend correctly compiles the
Showcase and Hello examples and passes most of the CompilerTest suite.
 Most compiler optimizations are not implemented and the generated
JavaScript is pretty verbose.  Long emulation, code-splitting, SOYC,
and probably a few of the other nifty GWT features don't work.

My code is at http://web.mit.edu/sgross/www/gwt/unified-r7422.patch .
For the most part, the only changes to existing classes are to make
some methods public to reduce copy-pasted code.  It also includes a
work around for issue 4512.

The backend is implemented using the x.compiler.class configuration
property.  To compile Showcase, add the following lines to
Showcase.gwt.xml:

  define-configuration-property name=x.compiler.class
is_multi_valued=false /
  set-configuration-property name=x.compiler.class
value=com.google.gwt.dev.jjs.ir.gen.IrCompiler /

Regards,
Sam
-- 
http://groups.google.com/group/Google-Web-Toolkit-Contributors

Re: MultiWordSuggestOracle and HTML display

2010-01-14 Thread Amos Sam
Well, I don't see any way without html tags. And with CSS style I
would have to use at least p/p; correct?
If you have some other ideas, you are welcome to tell them! :))
Also, the problem is also that only left aligned text should be
filtered...

I was hoping that i won't need to recode MultiWordSuggestOracle class,
but it seems that I will need to do it.
For my project I already created one widget, and it seems that there
is no end in modifying GWT to suit it my needs...
I don't like extGWT and similar projects, only 'main branch'...

Thank's anyway, and i will post my progress (if any! ;) ).

P.S. is any difference in GWT 2.0 ? currently i'm using 1.7.
-- 
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: MultiWordSuggestOracle and HTML display

2010-01-12 Thread Amos Sam

On Jan 12, 12:07 pm, Fazeel Kazi fazzze...@gmail.com wrote:
 Two changes will be needed:
 .
 CollectionSuggestion defaults = new ArrayListSuggestion();
 .
 .
 defaults.add(new MultiWordSuggestOracle.MultiWordSuggestion(Something, ht));
 .


Thank's for the answer, but
After the line witch states:
defaults.add(ht);
goes also (what i forgot to wrote in OP):
oracle.add(ht);

And if i don't put oracle.add(ht); i won't get any suggestions when i
start to write inside suggestBox widget!

is this event posible with SuggestBox and MultiWordSuggestOracle?

Conclusion:
When i change the code to match one in Fazeel's post, I get the same
result as with original code.
if I call suggestBox.showSuggestionList() on emtpy suggestBox (i mean
empty suggestBox's textbox), it will show me what i wan't to see (well
formated list).
but as soon as i type in single letter it won't show anything without
oracle.add(ht);, and with it it will show me and filter complete
HTML code.

I hope I didn't make this more complicated more then needed!!

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.




MultiWordSuggestOracle and HTML display

2010-01-11 Thread Amos Sam
I've been searching for solution for my problem, but i'm unable to
find it.

I have SuggestBox and MultiWordSuggestOracle. I populate oracle with
suggestions on page's load time (not that many of them).
Now, i would like to format suggestion popup, so it display's some KEY
values on the left and VALUE on the right side:
__
KEY  |   VALUE
-
Something1
Somewhere  2
.....

If I create default suggestions, and I set it to oracle by

code

public static MultiWordSuggestOracle oracle = new
MultiWordSuggestOracle();
public static SuggestBox sb_suggestBox = new SuggestBox(oracle);

CollectionString defaults = new ArrayListString();
String ht = span style=\display: block; position: absolute; text-
align:left\Something/spanspan style=\display: block; width:
100%; position: relative; text-align:right\1/span ;
defaults.add(ht);
oracle.setDefaultSuggestionsFromText(defaults);

/code

And if I do suggestBox.showSuggestionList(); it shows me correctly
what I want.
but as soon as I type in a letter, it shows complete HTML code, and
select whatever it finds in it!

What I'm doing wrong?

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.




Storing Google Map Markers

2010-01-06 Thread sam
Previously, I stored Google Map points (lat, long) and other info at a
certain location in mysql table from GWT via RPC.

Now, I want to make it independent of external stuff like mysql. What
is the best way to store the data in GWT? Can anyone guide me to the
procedure and means?

thanks,
sam
-- 
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: Unable to run DevMode

2009-12-22 Thread Sam E.
I am having the same issue right now.


00:00:00.684 [WARN] Error processing classpath URL 'file:/Users/
ssaammee/.m2/repository/com/sun/jdmk/jmxtools/1.2.1/
jmxtools-1.2.1.jar'
java.util.zip.ZipException: error in opening zip file   at
java.util.zip.ZipFile.open(Native Method)   at
java.util.zip.ZipFile.init(ZipFile.java:114)  at
java.util.jar.JarFile.init(JarFile.java:133)  at
java.util.jar.JarFile.init(JarFile.java:97)   at
com.google.gwt.dev.resource.impl.ResourceOracleImpl.createEntryForUrl
(ResourceOracleImpl.java:175)   at
com.google.gwt.dev.resource.impl.ResourceOracleImpl.addAllClassPathEntries
(ResourceOracleImpl.java:223)   at
com.google.gwt.dev.resource.impl.ResourceOracleImpl.getAllClassPathEntries
(ResourceOracleImpl.java:249)   at
com.google.gwt.dev.resource.impl.ResourceOracleImpl.init
(ResourceOracleImpl.java:293)   at
com.google.gwt.dev.resource.impl.ResourceOracleImpl.init
(ResourceOracleImpl.java:283)   at
com.google.gwt.dev.cfg.ModuleDef.normalize(ModuleDef.java:449)  at
com.google.gwt.dev.cfg.ModuleDefLoader.doLoadModule
(ModuleDefLoader.java:287)  at
com.google.gwt.dev.cfg.ModuleDefLoader.loadFromClassPath
(ModuleDefLoader.java:141)  at
com.google.gwt.dev.DevModeBase.loadModule(DevModeBase.java:867) at
com.google.gwt.dev.DevMode.loadModule(DevMode.java:425) at
com.google.gwt.dev.DevMode.doSlowStartup(DevMode.java:340)  at
com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:953)at
com.google.gwt.dev.DevModeBase.run(DevModeBase.java:690)at
com.google.gwt.dev.DevMode.main(DevMode.java:251)

On Dec 21, 4:55 pm, Raziel raziel...@gmail.com wrote:
 Hi, I just upgraded my application from 1.7.0 to 2.0, and while
 everything is working fine in production mode, when I try to run
 Development mode I get the following error:

 Loading modules
    com.appiancorp.gwt.appbuilder.ApplicationBuilderDev
       Public resources found in...
          [WARN] Error processing classpath URL 'file:/C:/Documents
 %20and%20Settings/raziel.alvarez/.m2/repository/com/sun/jdmk/jmxtools/
 1.2.1/jmxtools-1.2.1.jar'
 java.util.zip.ZipException: error in opening zip file
         at java.util.zip.ZipFile.open(Native Method)
         at java.util.zip.ZipFile.init(ZipFile.java:114)
         at java.util.jar.JarFile.init(JarFile.java:133)
         at java.util.jar.JarFile.init(JarFile.java:97)
         at
 com.google.gwt.dev.resource.impl.ResourceOracleImpl.createEntryForUrl
 (ResourceOracleImpl.java:175)
         at
 com.google.gwt.dev.resource.impl.ResourceOracleImpl.addAllClassPathEntries
 (ResourceOracleImpl.java:223)
         at
 com.google.gwt.dev.resource.impl.ResourceOracleImpl.getAllClassPathEntries
 (ResourceOracleImpl.java:249)
         at com.google.gwt.dev.resource.impl.ResourceOracleImpl.init
 (ResourceOracleImpl.java:293)
         at com.google.gwt.dev.resource.impl.ResourceOracleImpl.init
 (ResourceOracleImpl.java:283)
         at com.google.gwt.dev.cfg.ModuleDef.normalize(ModuleDef.java:449)
         at com.google.gwt.dev.cfg.ModuleDefLoader.doLoadModule
 (ModuleDefLoader.java:287)
         at com.google.gwt.dev.cfg.ModuleDefLoader.loadFromClassPath
 (ModuleDefLoader.java:141)
         at com.google.gwt.dev.DevModeBase.loadModule(DevModeBase.java:867)
         at com.google.gwt.dev.DevMode.loadModule(DevMode.java:425)
         at com.google.gwt.dev.DevMode.doSlowStartup(DevMode.java:340)
         at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:953)
         at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:690)
         at com.google.gwt.dev.DevMode.main(DevMode.java:251)
          [WARN] Error processing classpath URL 'file:/C:/Documents
 %20and%20Settings/raziel.alvarez/.m2/repository/com/sun/jmx/jmxri/
 1.2.1/jmxri-1.2.1.jar'
 java.util.zip.ZipException: error in opening zip file
         at java.util.zip.ZipFile.open(Native Method)
         at java.util.zip.ZipFile.init(ZipFile.java:114)
         at java.util.jar.JarFile.init(JarFile.java:133)
         at java.util.jar.JarFile.init(JarFile.java:97)
         at
 com.google.gwt.dev.resource.impl.ResourceOracleImpl.createEntryForUrl
 (ResourceOracleImpl.java:175)
         at
 com.google.gwt.dev.resource.impl.ResourceOracleImpl.addAllClassPathEntries
 (ResourceOracleImpl.java:223)
         at
 com.google.gwt.dev.resource.impl.ResourceOracleImpl.getAllClassPathEntries
 (ResourceOracleImpl.java:249)
         at com.google.gwt.dev.resource.impl.ResourceOracleImpl.init
 (ResourceOracleImpl.java:293)
         at com.google.gwt.dev.resource.impl.ResourceOracleImpl.init
 (ResourceOracleImpl.java:283)
         at com.google.gwt.dev.cfg.ModuleDef.normalize(ModuleDef.java:449)
         at com.google.gwt.dev.cfg.ModuleDefLoader.doLoadModule
 (ModuleDefLoader.java:287)
         at com.google.gwt.dev.cfg.ModuleDefLoader.loadFromClassPath
 (ModuleDefLoader.java:141)
         at com.google.gwt.dev.DevModeBase.loadModule(DevModeBase.java:867)
         at 

Re: Anyone using soafaces for client server communication ?

2009-11-22 Thread Sam Taha
Do you only see this problem in hosted mode? Do you see it in web
mode?

What version of soafaces are you using?

Are you getting any servlet errors?

On Nov 12, 4:00 am, R.Domingo raym...@domingo.nl wrote:
 Hi Sam and Mike,

 I'm currently reviewingSoafacesbut:
 - I can't get it 100% to work;
 - I couldnt find asoafacesrelated forum.

 It could be my problem is related to the problem just described.
 Because the object (string) returned by service doesn't seem to be
 received by the client.

 I created a normal gwt (1.5.2) client and added:
 - jettizon
 -soafaces-services-client
 -soafaces-services-servlet-nomule
 - xstream
 - added lines to ...gwt.xml:
  source path=client/
         inherits name='org.soafaces.services.Services'/

 When running my app and invoking the service
 'onUniversalClientSuccess' is triggered. So far so good, but the
 string sended by server  You got it isn't received.
 The result object parameter of onUniversalClientSuccess is null, see
 my code and log output below.

 Any ideas / tips / additional examples ?

 I get number of errors/warnings in my log:
 [DEBUG] Rebinding org.soafaces.services.client.rpc.UniversalClientRPC
 [DEBUG] Invoking generate-with
 class='com.google.gwt.user.rebind.rpc.ServiceInterfaceProxyGenerator'/

 [DEBUG] Generating client proxy for remote service interface
 'org.soafaces.services.client.rpc.UniversalClientRPC'
 [DEBUG] Analyzing
 'org.soafaces.services.client.rpc.UniversalClientRPC' for serializable
 types
 [DEBUG] Analyzing methods:
 [DEBUG] public abstract void dispatchAny(java.lang.String endpointURI,
 org.soafaces.services.client.rpc.GenericDataWrapper payload,
 java.util.Mapjava.lang.String, java.io.Serializable properties)
 throws org.soafaces.services.client.rpc.UniversalClientRemoteException
 [DEBUG] Parameter: org.soafaces.services.client.rpc.GenericDataWrapper
 payload
 [DEBUG] org.soafaces.services.client.rpc.GenericDataWrapper
 [DEBUG] Verifying instantiability
 [DEBUG] org.soafaces.services.client.rpc.GenericDataWrapper
 [DEBUG] Analyzing the fields of type
 'org.soafaces.services.client.rpc.GenericDataWrapper' that qualify for
 serialization
 [DEBUG] public java.io.Serializable _PojoSerial
 [DEBUG] java.io.Serializable
 [DEBUG] Verifying instantiability
 [DEBUG] nl.telecats.web.gwt.common.model.ServiceEvent
 [DEBUG] Analyzing the fields of type
 'nl.telecats.web.gwt.common.model.ServiceEvent' that qualify for
 serialization
 
 [DEBUG] Analyzing the fields of type
 'com.google.gwt.i18n.client.impl.ConstantMap' that qualify for
 serialization
 [WARN] Field 'private final
 com.google.gwt.i18n.client.impl.ConstantMap.OrderedConstantSetjava.lang.String
 keys' will not be serialized because it is final
 
 [DEBUG] com.extjs.gxt.ui.client.data.BaseListLoadResult? extends
 java.lang.Object
 [DEBUG] Checking parameters of
 'com.extjs.gxt.ui.client.data.BaseListLoadResult? extends
 java.lang.Object'
 [DEBUG] Checking type argument 0 of type
 'com.extjs.gxt.ui.client.data.BaseListLoadResultData' because it is
 exposed as an array with a maximum dimension of 1 in this type or one
 of its subtypes
 [DEBUG] java.lang.Object[]
 [DEBUG] Analyzing component type:
 [DEBUG] java.lang.Object
 [WARN] In order to produce smaller client-side code, 'Object' is not
 allowed; consider using a more specific type
 ...
 [DEBUG] java.util.Vector? extends java.lang.Object
 [WARN] Checking all subtypes of Object which qualify for serialization
 [DEBUG] nl.telecats.web.gwt.client.mvc.helper.MVCViewInstanceHolder
 [ERROR] Type
 'nl.telecats.web.gwt.client.mvc.helper.MVCViewInstanceHolder' was not
 serializable and has no concrete serializable subtypes
 [DEBUG] com.extjs.gxt.ui.client.data.BeanModel
 [DEBUG] Verifying instantiability
 [DEBUG] com.extjs.gxt.ui.client.data.BeanModel
 [DEBUG] Analyzing the fields of type
 'com.extjs.gxt.ui.client.data.BeanModel' that qualify for
 serialization
 [DEBUG] protected java.lang.Object bean
 [DEBUG] java.lang.Object
 [WARN] In order to produce smaller client-side code, 'Object' is not
 allowed; consider using a more specific type

 Code I added to my app:
 private static final String UNIVERSAL_CLIENT_SERVLET = /
 gwtMulePoc.Application4HostedBrowser/SOAFacesRPCServlet;
           private UniversalClient _oClient;

         private void testMule() {
                 String stEndpoint1 = soafaces://
 gwtMulePoc.services.HelloWorldService/helloThereEndpoint;
                 //Create the UniversalClient Async Callback
       UniversalClientPOJOCallback oMulePOJOCallback = new
 UniversalClientPOJOCallback() {

         public void onUniversalClientSuccess(Object result) {
           //Serivces returns a String
           String returnVal = (String) result;
           Info.display(Info,Wow this was a success! Return value: 
 + returnVal);
         }

         public void onFailure(Throwable ex) {
           Info.display(Info,Error during UniversalClient call:  +
 ex.getMessage());
         }
       };

       //Simply use

Re: Anyone using soafaces for client server communication ?

2009-11-05 Thread Sam Taha

Hi Mike,

I think I see the problem. In Hosted mode, java is evaluating the
Object[] as instanceof Serializable since per java spec every java
array implements Serializable interface. Production mode must be
letting this slip by. So actually looks like an inconsistency between
compiled javascript mode and java spec.

I will verify, but the fix should be easy in soafaces to move the the
check for instanceof Object[] earlier in the if else chain. I will
work on a bug fix for soafaces.

Thanks,
Sam

On Oct 30, 4:12 pm, mike_mac michael.mac...@gmail.com wrote:
 On further investigation this seems to be a hosted mode issue and
 different behaviour of instanceof between hosted mode and complied
 versions of the code.

 Passing an Object[] called obj that has two objects that implement
 IsSerializable
 results in obj instanceof Serializable returning true in hosted mode
 but false in the compiled Javascript.

 See
 org.soafaces.services.client.rpcGenericDataUtil.createGenericDataWrapper
 (Object obj) in soafaces source.

 Anyone have a logical explanation why hosted mode thinks its a
 Serializable object ? Object is not Serializable right so neither
 should Object[] right ?

 On Oct 30, 7:04 pm, mike_mac michael.mac...@gmail.com wrote:

 http://code.google.com/p/soafaces/

  I've tried to get it working but it seems to be broken ... it claims
  to allow passing of Object[] but when I try to use it (Object[] objs =
  new Object[2]) I get a Serialization exception which seems to be from
  generated code ...

  com.google.gwt.user.client.rpc.SerializationException:
  [Ljava.lang.Object;
  at
  org.soafaces.services.client.rpc.UniversalClientRPC_TypeSerializer.raiseSerializationException
  (transient
  source for
  soafaces.services.client.rpc.UniversalClientRPC_TypeSerializer:3133)
  at
  soafaces.services.client.rpc.UniversalClientRPC_TypeSerializer.serialize
  (Native Method)

  It does work if I pass a single argument, anyone have any experience
  using this ?


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



[gwt-contrib] Re: Single XPI for Dev Mode (OOPHM) Plugin

2009-10-22 Thread Sam Gross

Hi John,

I updated the patch set at http://gwt-code-reviews.appspot.com/56808.

The loader stub.js checks the user agent string for Fedora to
determine whether to load the alternate FF3 libraries.

I've put a built XPI at http://web.mit.edu/sgross/www/gwt/gwt-dmp.xpi.
 I've tested the Hello sample on these platforms:

Fedora 10 (amd64): Firefox 3.0.14
Fedora 10 (i386): Firefox 3.0.4
Ubuntu Jaunty (amd64): Firefox 3.5.3, Firefox 3.0.14
Debian Lenny (i386): Iceweasel 3.0.6
Windows XP: Firefox 3.5.3, Firefox 3.0.14
Mac OS: Firefox 3.5 (x86, ppc), Firefox 3.0.14 (x86), Firefox 2 (x86)

Thanks,
Sam

On Tue, Oct 20, 2009 at 5:17 PM, John Tamplin j...@google.com wrote:
 On Tue, Oct 20, 2009 at 5:08 PM, Sam Gross colesb...@gmail.com wrote:

 Now that MS1 has shipped, are you interested in reviewing patches to
 combine the Firefox plugins into a single XPI?

 Yes, that is on my list to work on for the RC (hopefully in about 2 weeks).
  If you want to do that, it would be great.


 I think we'll be able to package all the platforms together, including
 Fedora 10.

 One complication is that some other Linux distros may need different
 libraries, so you should keep that in mind.  Probably we should talk about
 the basic approach to differentiating the incompatible platforms before
 actually implementing it to make sure everything is covered.

 --
 John A. Tamplin
 Software Engineer (GWT), Google


--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



[gwt-contrib] Single XPI for Dev Mode (OOPHM) Plugin

2009-10-20 Thread Sam Gross

Hi John,

Now that MS1 has shipped, are you interested in reviewing patches to
combine the Firefox plugins into a single XPI?

I think we'll be able to package all the platforms together, including
Fedora 10.

Regards,
Sam

--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



HostedMode -server option - passing arguments to the embedded web server

2009-10-18 Thread Sam

Is there a way to pass arguments to the specified embedded web
server?  If not, I guess I'm stuck with using -noserver mode.

target name=hosted depends=compile, copyResources
description=Run hosted mode
java failonerror=true fork=true
classname=com.google.gwt.dev.HostedMode
classpath
path refid=classpath /
path refid=gwt.classpath /
path refid=tools.class.path /
/classpath
jvmarg value=-Xmx256M /
arg value=-startupUrl /
arg value=SwagSwapGWT.html /
!--use appengine as server--
arg value=-server /
arg
value=com.google.appengine.tools.development.gwt.AppEngineLauncher /

!-- *** I want to tell AppEngineLauncher to use the ${war.dir}
here but can't figure out how *** --
arg value=com.swagswap.web.gwt.SwagSwapGWT /
arg value=-war /
arg file=${war.dir} /
/java
/target

?

Thanks,

Sam

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



[gwt-contrib] Google Plugin for Eclipse Source

2009-10-12 Thread Sam Gross

Any updates on releasing the source for GPE?  I would love to  be able
to start hacking it...

-Sam

--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



[gwt-contrib] Re: Google Plugin for Eclipse Source

2009-10-12 Thread Sam Gross
I opened issue 4124 (
http://code.google.com/p/google-web-toolkit/issues/detail?id=4124).
-Sam

On Mon, Oct 12, 2009 at 2:08 PM, Jason Parekh jasonpar...@gmail.com wrote:

 Hey Sam,
 Unfortunately, there haven't been any recent discussions about open
 sourcing it.  It's not something we're opposed to (quite the opposite, I'd
 love to see it happen), but in reality we haven't had time to even think
 about an open source plan.

 Definitely open a feature request (if there isn't one already) as it helps
 us gauge how many people are interested.

 jason

 On Mon, Oct 12, 2009 at 1:42 PM, Sam Gross colesb...@gmail.com wrote:


 Any updates on releasing the source for GPE?  I would love to  be able
 to start hacking it...

 -Sam




 


--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



Re: how to deploy a GWT Application online?

2009-08-17 Thread sam

Thanks Jason and Lal,

When I run my application in eclipse it works fine.

Then, I compiled the application by clicking the red icon ie 'GWT
Compile Project'. On settings, I picked 'log level'=all, and 'output
style'=detailed.

Finally, I get the message:Compilation succeeded -- 97.258s  after
bunch of other lines.

Then, I took the content inside the 'war' folder and posted it online
using dreamweaver.

Clientside of the application works fine.

However, when I click on something that requires to get data from
server Implementation method, then it fails and I get the error:

com.google.gwt.user.client.rpc.StatusCodeException:

As for hosting server, my server has 'apache 2.2.11.' My computer also
has WAMP with 'apache 2.2.11'.

Is there a way to deploy GWT application online with apache 2.2.11?

I am new to this, thanks for the support.

sam

On Aug 17, 11:13 am, Jason Parekh jasonpar...@gmail.com wrote:
 Hey Sam,
 As Lal explains below, creating the war file and deploying it into Tomcat
 (or another app server) should be enough.

 Could you explain how you tried to deploy it online?  How did you package it
 all, where did you deploy to, etc.?

 Have you tried any other apps on your server that are able to access the
 database?

 jason



 On Mon, Aug 17, 2009 at 1:00 AM, sam sabir...@gmail.com wrote:

  I have been working on my summer GWT Application Project. Finally, I
  have created an application using eclipse. It has uses RPC, and I use
  JDBC MYSQL to access database.

  My application is almost complete; it runs fine in hosted mode and
  accesses database.

  But, today I tried to deploy it online. I could not get my client and
  server side to interact, let alone accessing database.

  Can anyone help me figure out how to deploy GWT application online?
  How do I get my client and server side to interact when deployed.
  Isn't posting the content under 'war' enough?

  Thanks,
  sam
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



how to deploy a GWT Application online?

2009-08-16 Thread sam

I have been working on my summer GWT Application Project. Finally, I
have created an application using eclipse. It has uses RPC, and I use
JDBC MYSQL to access database.

My application is almost complete; it runs fine in hosted mode and
accesses database.

But, today I tried to deploy it online. I could not get my client and
server side to interact, let alone accessing database.

Can anyone help me figure out how to deploy GWT application online?
How do I get my client and server side to interact when deployed.
Isn't posting the content under 'war' enough?


Thanks,
sam

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



[gwt-contrib] Re: Gecko SDKs for Mac

2009-08-09 Thread Sam Gross
 In gecko-1.9.1:
 The prcpucfg.h file differs between platforms.  The version in
 gecko-1.9.1/include causes problems for the mac build.

 D       gecko-sdks/gecko-1.9.1/include/prcpucfg.h
 A  +    gecko-sdks/gecko-1.9.1/Linux_x86_64-gcc3/prcpucfg.h

 Shouldn't it find one in Darwin*/include before the one in include?

One would think so, but it seems to cause problems for the Mac build.
My guess is that the compiler searches for headers in the same
directory when it encounters #include prcpucfg.h before searching
other include directories.

On a related noted:

The jsautocfg.h in gecko-1.9.0/Darwin-gcc3/include is incorrect.  The
correct version can be found in
http://releases.mozilla.org/pub/mozilla.org/xulrunner/releases/1.9.0.13/sdk/xulrunner-1.9.0.13.en-US.mac-powerpc.sdk.tar.bz2
.  I also attached it to this email for your convenience.

There are a few missing files that are marked present in PlatformMatrix.txt:

gecko-1.8/Linux_x86-gcc3/lib/libmozjs.so
gecko-1.8/Linux_x86-gcc3/lib/libxpcomglue_s.a
gecko-1.8/Linux_x86-gcc3/lib/libnspr4.so
gecko-1.8/Linux_x86-gcc3/lib/libxpcom.so

libmozjs.so can be found in
http://releases.mozilla.org/pub/mozilla.org/xulrunner/releases/1.8.0.4/linux-i686/en-US/xulrunner-1.8.0.4.en-US.linux-i686.tar.gz
The other libraries can be found in
http://releases.mozilla.org/pub/mozilla.org/xulrunner/releases/1.8.0.4/sdk/gecko-sdk-i686-pc-linux-gnu-1.8.0.4.tar.bz2

gecko-1.8/Linux_x86_64-gcc3/lib/ is empty
gecko-1.9.1/Linux_x86_64-gcc3/lib/ is empty

The follow libraries don't appear to be used.  (The built liboophm is
bit-for-bit identical with or without these libraries present):
 gecko-sdks/gecko-1.9.0/Linux_x86-gcc3/lib/libxul.so
 gecko-sdks/gecko-1.9.0/Linux_x86-gcc3/lib/libplc4.so
 gecko-sdks/gecko-1.9.0/Linux_x86-gcc3/lib/libplds4.so

-Sam

--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



jsautocfg-1.9.0.patch
Description: Binary data


[gwt-contrib] Gecko SDKs for Mac

2009-08-05 Thread Sam Gross

Hi John,

I'm glad to see the Gecko SDKs landed in SVN.  Here are three sets of
changes so that the plugin can be built for Firefox 2.0, 3.0, and 3.5
on the Mac.

(1)

Here's a patch that adds gecko-1.9.1 for Mac and libxpcomglue_s.a for
gecko-1.8 and gecko-1.9.0.  I also included some files that are needed
for the executable_path in gecko 1.9.0.

http://web.mit.edu/sgross/www/gwt/gecko-sdks-darwin.patch.tar.gz (16.6 MB)

All the libraries are universal containing ppc and x86 binaries.
The 1.9.0 and 1.9.1 libraries were created using the lipo command
using the ppc and x86 binaries from
https://developer.mozilla.org/en/Gecko_SDK.  The 1.8 file was built
from source, since there is no official intel build of the gecko 1.8
sdk.

To apply the patch:

  tar xzf gecko-sdks-darwin.patch.tar.gz
  patch -p0  gecko-sdks-darwin.patch

(2)

There are also three header files that I think should be moved to
gecko-sdks/gecko-1.9.1/Linux_x86_64-gcc3/include:

  gecko-sdks/gecko-1.9.1/include/jsautocfg64.h
  gecko-sdks/gecko-1.9.1/include/jsautocfg.h
  gecko-sdks/gecko-1.9.1/include/prcpucfg.h

(3)

Here's a patch to trunk/plugins to build universal binaries on the Mac:

  http://gwt-code-reviews.appspot.com/56802

I've built and tested plugin on:
 Firefox 2.0.0.16
 Firefox 3.0.11
 Firefox 3.5.2

Thanks,
Sam

Affected files:
A   gecko-sdks/gecko-1.9.0/Darwin-gcc3/lib/libnss3.dylib
A   gecko-sdks/gecko-1.9.0/Darwin-gcc3/lib/libsoftokn3.dylib
A   gecko-sdks/gecko-1.9.0/Darwin-gcc3/lib/libsmime3.dylib
A   gecko-sdks/gecko-1.9.0/Darwin-gcc3/lib/libxpcomglue_s.a
A   gecko-sdks/gecko-1.9.0/Darwin-gcc3/lib/libnssutil3.dylib
A   gecko-sdks/gecko-1.9.0/Darwin-gcc3/lib/libssl3.dylib
A   gecko-sdks/gecko-1.8/Darwin-gcc3/lib/libxpcomglue_s.a
A   gecko-sdks/gecko-1.9.1/Darwin-gcc3
A   gecko-sdks/gecko-1.9.1/Darwin-gcc3/include
A   gecko-sdks/gecko-1.9.1/Darwin-gcc3/include/xpcom-config.h
A   gecko-sdks/gecko-1.9.1/Darwin-gcc3/include/prcpucfg.h
A   gecko-sdks/gecko-1.9.1/Darwin-gcc3/include/mozilla-config.h
A   gecko-sdks/gecko-1.9.1/Darwin-gcc3/include/jsautocfg.h
A   gecko-sdks/gecko-1.9.1/Darwin-gcc3/lib
A   gecko-sdks/gecko-1.9.1/Darwin-gcc3/lib/libnspr4.dylib
A   gecko-sdks/gecko-1.9.1/Darwin-gcc3/lib/libplds4.dylib
A   gecko-sdks/gecko-1.9.1/Darwin-gcc3/lib/libxpcom.dylib
A   gecko-sdks/gecko-1.9.1/Darwin-gcc3/lib/XUL
A   gecko-sdks/gecko-1.9.1/Darwin-gcc3/lib/libmozjs.dylib
A   gecko-sdks/gecko-1.9.1/Darwin-gcc3/lib/libplc4.dylib
A   gecko-sdks/gecko-1.9.1/Darwin-gcc3/lib/libxpcomglue_s.a
A   gecko-sdks/gecko-1.9.1/Darwin-gcc3/bin
A   gecko-sdks/gecko-1.9.1/Darwin-gcc3/bin/xpidl

Moved header files:
D   gecko-sdks/gecko-1.9.1/include/jsautocfg64.h
D   gecko-sdks/gecko-1.9.1/include/jsautocfg.h
D   gecko-sdks/gecko-1.9.1/include/prcpucfg.h
A  +gecko-sdks/gecko-1.9.1/Linux_x86_64-gcc3/include/prcpucfg.h
A  +gecko-sdks/gecko-1.9.1/Linux_x86_64-gcc3/include/jsautocfg64.h
A  +gecko-sdks/gecko-1.9.1/Linux_x86_64-gcc3/include/jsautocfg.h

--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



[gwt-contrib] Re: Gecko SDKs for Mac

2009-08-05 Thread Sam Gross
 I agree with jsautocfg64.h, but the others look platform-independent.  Do
 having them there cause problems for the Mac build?

In gecko-1.9.1:
The prcpucfg.h file differs between platforms.  The version in
gecko-1.9.1/include causes problems for the mac build.

D   gecko-sdks/gecko-1.9.1/include/prcpucfg.h
A  +gecko-sdks/gecko-1.9.1/Linux_x86_64-gcc3/prcpucfg.h


In gecko-1.9.0:
The file gecko-1.9.0/Darwin-gcc3/include/jsautocfg.h needs updating.
I attached a patch that includes the jsautocfg.h file from the gecko
1.9.0 ppc sdk (which works for i386 and ppc).

M   gecko-sdks/gecko-1.9.0/Darwin-gcc3/include/jsautocfg.h


 This file appears to be just i386 (at least according to the Linux file
 command)  -- does it need to be a universal binary or do we need to provide
 a way of running an architecture-dependent xpidl?

The PowerPC xulrunner SDKs don't provide xpidl. The xpt files
generated by xpidl are cross-platform, so it's only a build issue.
The plugin can run on i386 and ppc machines, but can only be built on
an i386 mac.

It may be possible to build a ppc version of xpidl from source, but
I'm not sure it's worth the effort.  (From
http://www.danns.co.uk/HowToBuildUniversalSDK it sound like building a
ppc version of xpidl actually requires access to a ppc macintosh; it
can't be cross-compiled)

-Sam

--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



jsautocfg-1.9.0.patch
Description: Binary data


Re: gwt 1.7 app - blank page in ie7, safari

2009-08-04 Thread sam

I am having similar kinda problem. I am creating a Google Map
Application that has a draggable marker with search option. I am using
GWT and eclipse. My search button works fine in the hosted mode, but
when I compile and run it off the browser, my search button does not
work.  My button seems to be firing other commands like pop ups.

thanks,
sam

On Aug 3, 3:52 pm, otismo pe...@nomad.org wrote:
 It wasn't a syntax issue.  It was a coding problem.  I'm using various
 client-side datastores (i.e. localstorage, userdata, whatwg, etc.).
 The datastores behave differently on store and load and were
 triggering different code paths.  I've got it fixed.

 Thanks for your help!

 On Aug 3, 11:11 am, Jason Parekh jasonpar...@gmail.com wrote:



  Hey Peter,

  Could you try changing your script tag to include the attribute:
  type=text/javascript:

  html
  head
  link rel=stylesheet href=styles.css type=text/css
  script *type=text/javascript* language='javascript'
  src='com.seekspeak.SeekSpeakWeb.nocache.js'/script
  /head
  body
  /body
  /html

  If this works, give thanks to Rajeev for pointing this out :)

  jason

  On Mon, Aug 3, 2009 at 1:07 PM, otismo pe...@nomad.org wrote:

   Thanks for the response, Jason.  Yup, I've tried clearing the cache in
   both browsers -- no help.

   Looking at the source in both browsers shows my html host page code.
   Looking at the DOM though shows that my UI widget never gets added to
   the DOM for ie7 and safari.  The DOM shows the iframe but no ui div
   element.  On the functioning browsers, ff3.5 and ie8, the DOM shows me
   the iframe and the div for my ui element.  So it looks like adding my
   widget to the RootPanel doesn't work for ie7 and safari.

   My host page looks like this:
   html
   head
   link rel=stylesheet href=styles.css type=text/css
   script language='javascript'
   src='com.seekspeak.SeekSpeakWeb.nocache.js'/script
   /head
   body
   /body
   /html

   and I add my widget like this:
   RootPanel.get().add(ui);

   I tried adding a div to my host page and then adding my UI widget to
   that div, but that didn't work either:
   ...
   body
   div id=ui/div
   /body
   ...
   and:
   RootPanel.get(ui).add(ui);

   Any other ideas?
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



GWT Map Application in Eclipse: Search Button problem in Browser mode

2009-08-02 Thread sam

I am designing a Google Map application using GWT in Eclipse.  I have
designed a draggable marker, and it works fine in the hosted mode.

After I compile it in the browser, I can see the map in different
modes like 'hybrid', 'map', and 'satellite'.

But after I type in the address, my search button does not fire.

The button seems to be working fine because other button commands are
working fine.

Do you guys know why my search button does not work in browser mode,
even though it's fine in the hosted mode.

Thanks guys,
sam
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[gwt-contrib] Re: NOTICE - removing all @deprecated code for GWT 2.0

2009-07-31 Thread Sam Gross

Nice! I love house cleaning. :-)

Is there any plan for removing com.google.gwt.user.client.Element in
GWT 2.0 or some time in the future?

-Sam

On Fri, Jul 31, 2009 at 12:22 PM, Fred Sauerfre...@google.com wrote:
 To all GWT contributors-
 As you may know, there many exciting
 things we're working on for GWT 2.0. With all the new features coming
 your way we thought GWT 2.0 would be a good opportunity to clean house and remove previously deprecated methods and classes. In
 many cases an equivalent replacement is suggested in the Javadoc and
 updating your projects should hopefully not be too onerous.
 While different sections of the API have been deprecated in different
 releases we wanted to make things as straightforward as possible for the
 upcoming release. As such, our plan for GWT 2.0 is to remove everything that
 was marked as deprecated in previous releases. We did not introduce any new
 deprecations in GWT 1.7 so you can find the complete list of items we plan
 to remove in this GWT 1.6 document:
   http://google-web-toolkit.googlecode.com/svn/javadoc/1.6/deprecated-list.html


 If you have any serious concerns about the above deprecation list, please
 reply back to indicate how you will be affected. In particular I'm
 interested in any use cases in the GWT 1.6/1.7 API which you feel would not
 be covered in GWT 2.0 once the @deprecated methods and classes have been
 removed.
 Please note that Java compilers are required to warn you when your code uses
 @deprecated methods or classes. Although there are warning suppression
 mechanisms such as the @SuppressWarnings annotation and your IDE's or build
 environment's settings. So, in general, chances are you are probably not
 using any deprecated GWT APIs without knowing about it.
 Thanks--
 Fred Sauer
 Developer Advocate
 Google Inc.
 1600 Amphitheatre Parkway
 Mountain View, CA 94043
 fre...@google.com

 


--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



Connecting GWT with XML or MYSQL... HELP!

2009-07-27 Thread sam

I am trying to create a GWT Google Map Application, in which I collect
the markers in form of (lat, long) and store in XML or MYSQL. After
collection, I read of the data and print out the points.

Do you guys know if I can connect MYSQL with GWT? Or, How do I connect
and store data in XML from GWT.

Thanks,
sam

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: GWT module needs to be (re)compiled

2009-07-20 Thread Sam Brodkin

Fixed.  Summary here: 
http://code.google.com/p/gwt-maven2-starter-app/issues/detail?id=5can=1

On Jul 7, 4:58 pm, Sam Brodkin sambrod...@gmail.com wrote:
 I had the same problem.  I took the error message's advice and ran it
 in hosted mode, clicked compile/Browse, then i took the /war directory
 (or with maven maybe it's in src/main/webapp for you) and copied it to
 the deploy dir of jboss (tomcat).  I renamed it war.war and started
 the server (put an exploded war on the server.  That seemed to do it.
 Now to figure out why the codehaus maven plugin isn't producing an
 artifact with GWTcompiledcode...

 On Jul 1, 8:48 am, Markus88 markus_ran...@web.de wrote:

  On 26 Jun., 10:38, strindberg jesper.holmb...@gmail.com wrote:

   I'm having some problems getting Gwt 1.6.4 to run on my Tomcat 5.5,
   using the codehouse maven-gwt-plugin 1.1.

   I can run my project fine in hosted mode (from Eclipse), but when I
   build a war and deploy it (using the maven plugin), and then go to the
   web page containing the call to my Gwt module, I get a dialog saying
   GWT module se.Interactive needs to be (re)compiled, please run a
   compile or use the Compile/Browse button in hosted mode.

   So obviously something goes wrong in the Maven build, but I can't see
   anything obvious. I have loooked in the war file and can see all the
   expected files there, including the Gwt files.

   I realize this might very well be caused my some strange interaction
   in the maven-gwt-plugin, but I thought I should ask here as well.

   And does anyone have any tips on how I could go about troubleshooting
   this? The above message doesn't really give me any chance to see
   what's going on. I'm fairly new to Gwt, so any debugging tips you
   might have would be welcome.

  I've got exactly the same Problem! Help Please...
  I'm using Smart-Gwt on a Bea Weblogic Server and Maven build
  It works fine with the hosted Mode, but when I start it with the
  explorer
  it says GWT module UserProjekt needs to be (re)compiled, please run a
  compile or use the Compile/Browse button in hosted mode.
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



gwt-maven2-starter-app has been upgraded

2009-07-07 Thread Sam Brodkin

I'm pleased to announce that the gwt-maven2-starter-app has been
upgraded for GWT 1.6.x: http://code.google.com/p/gwt-maven2-starter-app/

It has also been modified to use the codehaus gwt maven plugin (http://
mojo.codehaus.org/gwt-maven-plugin/).  I welcome any feedback to help
polish it up.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: GWT module needs to be (re)compiled

2009-07-07 Thread Sam Brodkin

I had the same problem.  I took the error message's advice and ran it
in hosted mode, clicked compile/Browse, then i took the /war directory
(or with maven maybe it's in src/main/webapp for you) and copied it to
the deploy dir of jboss (tomcat).  I renamed it war.war and started
the server (put an exploded war on the server.  That seemed to do it.
Now to figure out why the codehaus maven plugin isn't producing an
artifact with GWT compiled code...

On Jul 1, 8:48 am, Markus88 markus_ran...@web.de wrote:
 On 26 Jun., 10:38, strindberg jesper.holmb...@gmail.com wrote:



  I'm having some problems getting Gwt 1.6.4 to run on my Tomcat 5.5,
  using the codehouse maven-gwt-plugin 1.1.

  I can run my project fine in hosted mode (from Eclipse), but when I
  build a war and deploy it (using the maven plugin), and then go to the
  web page containing the call to my Gwt module, I get a dialog saying
  GWT module se.Interactive needs to be (re)compiled, please run a
  compile or use the Compile/Browse button in hosted mode.

  So obviously something goes wrong in the Maven build, but I can't see
  anything obvious. I have loooked in the war file and can see all the
  expected files there, including the Gwt files.

  I realize this might very well be caused my some strange interaction
  in the maven-gwt-plugin, but I thought I should ask here as well.

  And does anyone have any tips on how I could go about troubleshooting
  this? The above message doesn't really give me any chance to see
  what's going on. I'm fairly new to Gwt, so any debugging tips you
  might have would be welcome.

 I've got exactly the same Problem! Help Please...
 I'm using Smart-Gwt on a Bea Weblogic Server and Maven build
 It works fine with the hosted Mode, but when I start it with the
 explorer
 it says GWT module UserProjekt needs to be (re)compiled, please run a
 compile or use the Compile/Browse button in hosted mode.
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Import Module from another GWT project in Eclipse workspace

2009-06-08 Thread Sam

Hi all,

I feel like I'm going insane here!

I have a GWT project with a module named UploadWidget. I'd like to
use it from another project in the same workspace for fast and easy
testing purposes. I have added the widget project as a dependency, and
have played around with the run configuration classpath, with no luck.

No matter what I do I get the error:
Line 11: No source code is available for type
com.sambro.uploadwidget.client.UploadWidget; did you forget to inherit
a required module?

According to the run configuration the source code for UploadWidget is
on the classpath of the other project, but I still receive this error.

I am working on a medium sized project and I will be writing a number
of reusable components during development. What I envisaged was
developing these components in separate projects and referencing them
from the main project.

Are there simple steps I can take to achieve this???

Cheers,
Sam

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



[gwt-contrib] Building OOPHM for Firefox

2009-06-07 Thread Sam Gross

I was curious what needed to be changed to build the OOPHM plugin for
Firefox 3.5b4.  The header files from the 1.9.1 gecko-sdk are
necessary, and the OOPHM library has to be linked against the Firefox
3.5b4 libs, but no changes to the OOPHM source code were required.

The makefile in oophm-plugins-trunk references tools/gecko-sdks, but
that directory isn't in the SVN repo.  Is there a plan to put it in
tools?  It would be nice if we all used the same gecko sdks.  I
assembled a version of 1.9.1 gecko sdk and would like to share it.

It looks like Firefox 3.5 and 3.0 will need separate binary
components, but I don't see why we need separate installers.  We
already have the ability to load the correct OOPHM library in
ModuleOOPHM.cpp.  I verified that one installation can work for
Firefox 2, 3, and 3.5 on the Mac.

Regards,
Sam

--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



Re: Multiple modules but deploy common code to common place

2009-06-04 Thread Sam

I am making use of smart gwt as well. Do you know if the same applies?

On Jun 4, 8:46 am, Jamie jamiesharbor-sou...@yahoo.com wrote:
 If you are using GWT 1.6 and the new project layout, put your images
 and css in the war folder of the project, not the source folder(s),
 and reference them from there.

 If you are using the old structure, making use of the 'public' folder
 of the GWT module, you could merge the output of all of your modules
 into the same folder.  The generated filenames will not clash, and
 being in the same deployed folder will make use of the same imagecss
 files.

 Jamie.
 ---
 Search for analog and digital television broadcast antennas in your
 area:http://www.antennamap.com/
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
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: Multiple modules but deploy common code to common place

2009-06-04 Thread Sam

you could merge the output of all of your modules
 into the same folder.

Can you elaborate on this one.  This sound like what I want to do.


On Jun 4, 8:46 am, Jamie jamiesharbor-sou...@yahoo.com wrote:
 If you are using GWT 1.6 and the new project layout, put your images
 and css in the war folder of the project, not the source folder(s),
 and reference them from there.

 If you are using the old structure, making use of the 'public' folder
 of the GWT module, you could merge the output of all of your modules
 into the same folder.  The generated filenames will not clash, and
 being in the same deployed folder will make use of the same imagecss
 files.

 Jamie.
 ---
 Search for analog and digital television broadcast antennas in your
 area:http://www.antennamap.com/
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
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
-~--~~~~--~~--~--~---



Multiple modules but deploy common code to common place

2009-06-03 Thread Sam

I have a very large application that I need to deploy with multiple
module. Our application is made of with smartgwt as well.  When we
compile there seems to be a lot of duplicate common code.  Each
module has the same css and theme information.  So after compiliation
I end up with ...

Module A
 - it's specific files
 - it's common stuff that it could share with other modules like it's
images.
Module B
 - it's specific files
 - it's common stuff that it could share with other modules like it's
images.
Module C
 - it's specific files
 - it's common stuff that it could share with other modules like it's
images.

Is there a way to direct all that common stuff to a common stuff
particularly the images and theme stuff since that takes up the bulk
of the app size.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: build.xml for Netbeans and GWT 1.6

2009-05-02 Thread Sam Halliday

Well, I got stung by 
http://code.google.com/p/google-web-toolkit/issues/detail?id=3491
and updated the build.xml file accordingly to use Java 5.

I was able to update the compiler entrance class, but I still have to
use 'com.google.gwt.dev.GWTShell' because I couldn't get
'com.google.gwt.dev.HostedMode' to work. Advise here would be
appreciated.

I was passing in the war and module names (like the compiler
args)... but it complained that web.xml had a configuration error. My
web.xml doesn't have anything unusual in it and is auto-generated from
NetBeans, so should work in most Containers.

== build.xml ==
?xml version=1.0 encoding=UTF-8?
project name=Muckraker default=default basedir=.
descriptionBuilds, tests, and runs the project Muckraker./
description
import file=nbproject/build-impl.xml/

!--
The remainder of this file provides GWT support. Some targets have
been
copied from the GWT4NB plugin build-gwt.xml file (which is flawed),
and
the remainder from the forum post by Jason Morris on

http://groups.google.com/group/Google-Web-Toolkit/browse_frm/thread/97f28839691de6f2
Edits have also been made to allow the dev jar to be added to the
classpath
automatically.
--
property file=nbproject/gwt.properties/
!--
GWT Hosted mode must run in 32 bit mode (i.e. Java 5) on OS X and
compiler
http://code.google.com/p/google-web-toolkit/issues/detail?id=3491
--
condition property=javabinary value=/System/Library/Frameworks/
JavaVM.framework/Versions/1.5/Home/bin/java else=java 
os family=mac/
/condition
target name=-post-compile
property name=output.js 
location=${build.web.dir}/${gwt.module}/$
{gwt.module}.nocache.js /
/target
target name=-pre-dist
condition property=gwt.compile.needed
or
not
available file=${output.js} /
/not
not
uptodate
srcfiles dir=${src.dir} 
includes=**/client/**/*.java /
mergemapper to=${output.js} 
/
/uptodate
/not
/or
/condition
!-- Could do this in one line if we could access the value
os.family --
condition property=gwt-dev.jar 
value=${gwt.install.dir}/gwt-dev-
mac.jar
os family=mac/
/condition
condition property=gwt-dev.jar 
value=${gwt.install.dir}/gwt-dev-
windows.jar
os family=windows/
/condition
condition property=gwt-dev.jar 
value=${gwt.install.dir}/gwt-dev-
linux.jar
os family=unix/
/condition
antcall target=do-gwt-compile /
/target
target name=do-gwt-compile if=gwt.compile.needed
 !-- You can override this property in the 'gwt.properties' file
--
property name=gwt.compiler.output.style value=OBFUSCATED/
property name=gwt.compiler.logLevel value=WARN/
java classpath=${javac.classpath}:${gwt-dev.jar}:${src.dir}
failonerror=true
   classname=com.google.gwt.dev.Compiler fork=true
maxmemory=512m jvm=${javabinary}
arg value=-war/
arg path=${build.web.dir}//
arg value=-style/
arg value=${gwt.compiler.output.style}/
arg value=-logLevel/
arg value=${gwt.compiler.logLevel}/
arg value=${gwt.module}/
/java
property name=gwt.output.dir value=${gwt.module}/
move todir=${build.web.dir}/${gwt.output.dir}
fileset dir=${build.web.dir}/${gwt.module}/
/move
/target
target name=debug description=Debug project in IDE.
depends=init,compile,compile-jsps,-do-compile-single-jsp,dist
if=netbeans.home
nbdeploy debugmode=true clientUrlPart=${client.urlPart}/
antcall target=connect-debugger/
antcall target=debug-connect-gwt-shell/
/target
target name=debug-connect-gwt-shell if=netbeans.home
depends=init
nbjpdastart transport=dt_socket
addressproperty=jpda.address.gwt name=com.google.gwt.dev.GWTShell
stopclassname=
classpath
path 
path=${javac.classpath}:${gwt-dev.jar}:${src.dir}:$
{build.classes.dir}/
/classpath
/nbjpdastart
property 

Google Chart API Vs Visualization API

2009-04-16 Thread Sam

Can somebody highlight the differences between Chart API and
Visualization API? Which is more powerful in terms of creating bar
graphs and pie charts?
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



How to create GWT Bar Chart from Database data

2009-04-15 Thread Sam

Hi,

Can somebody suggest me how to create a GWT Bar Chart or Pie Chart
which get populated from Database dynamically by querying the
database? The charts should get refreshed every 5 min. Also, which API
to use in this regard.

Any help is highly appreciated!

Thanks,
Sam

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



Star project and RSS feed of releases

2009-04-08 Thread Sam Halliday

Dear all,

All Google Code projects have a Star this button on their front
page, and an RSS feed for files. However, because GWT is not really
on Google Code, it misses these standard features. Where can I get an
RSS feed of releases? (I already subscribe to the blog, which does
this as a ... but I'm looking for RSS on just the files.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: GWT Maven2 - A real how-to?

2009-03-30 Thread Sam Brodkin

jv, try this:

http://code.google.com/p/gwt-maven2-starter-app/

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



[gwt-contrib] gwt-dev-oophm project

2009-03-18 Thread Sam Gross
Hi John,

The gwt-dev-oophm project doesn't immediately build in Eclipse 3.4.1.
Changing the locationURI tag to a location tag in the .project
file seems to fix the problem.  This matches the tag used in the other
.project files.  I'm not familiar enough with Eclipse to know the
significance of the change.

I attached the change for your convenience.

Thanks,
Sam

--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



oophm-project-r5037.patch
Description: Binary data


Re: Unicode problem in GWT

2009-02-06 Thread Sam sem
changing character encoding will help
request.setCharacterEncoding(UTF8);

On Fri, Feb 6, 2009 at 7:56 AM, Machine_Head ikax...@gmail.com wrote:


 Hi, i have a problem in gwt application with unicode,
 when i fill input fields with unicode font (Cyrillic) and then make
 rpc call,
 result is shown as 

 Have anybody solved this problem?

 Thanks

 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Error executing RPC call after updating to GWT 1.5.3

2009-01-27 Thread Sam sem
 Make Sure You are only using Jars of 1.5.3 .remove Gwt-user and
Gwt-servlet jars from your build path and place jars from version 1.5.3
also Update your GWT_HOME ..make sure GWT_HOME points to GWT
Version 1.5.3

Thanks
 Muhammad Ismail
cell (PAK) : +92.322.5100362
e-mail: sam4...@gmail.com
web: http://sam4sem.wordpress.com/ http://www.zigron.com

This message may contain confidential and/or privileged information.  If you
are not the addressee or authorized to receive this for the addressee, you
must not use, copy, disclose or take any action based on this message or any
information herein.  If you have received this message in error, please
advise the sender immediately by reply e-mail and delete this message.
 Thank you for your cooperation.
Chat: Skype: persontation_support


--- @ WiseStamp Signature. http://www.wisestamp.com Get it
nowhttp://www.wisestamp.com

On Mon, Jan 26, 2009 at 11:16 PM, mgrouch mgrushins...@gmail.com wrote:


 We are experiencing same issue. The app build on windows and running
 on windows tomcat work.
 Same application built on linux with gwt 1.5.3 and linux tomcat gives
 this error.
 If you managed to resolve it please be kind and post here how you did
 it.

 Thanks a lot,
 --MG

 On Dec 26 2008, 2:22 am, NItin nitipa...@gmail.com wrote:
  Hi Danny,
 
  I checked gwt-servlet.jar version , its of GWT 1.5.3' s library
 
  In my case, some of the RPC calls are working but, some specific RPC
  calls are getting failed with this exception only in IE ( in case of
  firefox all RPC calls are successful).
 
  Thanks
 
  On Dec 9, 4:57 pm, Danny Goovaerts danny.goovae...@gmail.com wrote:
 
   I've experienced the same problem. Be sure to use the1.5.3version of
   thegwt-servlet.jar in your Tomcat deployment. This fixed the problem
   for me.
   Danny
   a_martinez schreef:
 
Hi,
I developed an application with several services. After updating from
   GWT1.5.2 to1.5.3the RPC calls to the server doesn't work anymore. I
got an error message on server side:
 
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
   at java.util.ArrayList.RangeCheck(ArrayList.java:547)
   at java.util.ArrayList.get(ArrayList.java:322)
   at
   
 com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.extract
(ServerSerializationStreamReader.java:617)
   at
   
 com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.readInt
(ServerSerializationStreamReader.java:432)
   at
   
 com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamReader.prepareToRead
(AbstractSerializationStreamReader.java:38)
   at
   
 com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.prepareToRead
(ServerSerializationStreamReader.java:383)
   at com.google.gwt.user.server.rpc.RPC.decodeRequest(RPC.java:234)
   at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall
(RemoteServiceServlet.java:163)
   at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost
(RemoteServiceServlet.java:86)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
   at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
(ApplicationFilterChain.java:252)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter
(ApplicationFilterChain.java:173)
   at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter
(ReplyHeaderFilter.java:96)
   at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
(ApplicationFilterChain.java:202)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter
(ApplicationFilterChain.java:173)
   at org.apache.catalina.core.StandardWrapperValve.invoke
(StandardWrapperValve.java:213)
   at org.apache.catalina.core.StandardContextValve.invoke
(StandardContextValve.java:178)
   at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke
(SecurityAssociationValve.java:175)
   at org.jboss.web.tomcat.security.JaccContextValve.invoke
(JaccContextValve.java:74)
   at org.apache.catalina.core.StandardHostValve.invoke
(StandardHostValve.java:126)
   at org.apache.catalina.valves.ErrorReportValve.invoke
(ErrorReportValve.java:105)
   at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke
(CachedConnectionValve.java:156)
   at org.apache.catalina.core.StandardEngineValve.invoke
(StandardEngineValve.java:107)
   at org.apache.catalina.connector.CoyoteAdapter.service
(CoyoteAdapter.java:148)
   at org.apache.coyote.http11.Http11Processor.process
(Http11Processor.java:869)
   at org.apache.coyote.http11.Http11BaseProtocol
$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:
664)
   at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket
(PoolTcpEndpoint.java:527)
   at 

Re: form submit new window ... request getparameter not working???

2009-01-05 Thread Sam Wells

Try this . It worked for me
form.setEncoding(FormPanel.ENCODING_URLENCODED);//ENCODING_MULTIPART);

Thanks
Sam

On Dec 31 2008, 8:35 am, bharat.j...@gmail.com
bharat.j...@gmail.com wrote:
 Hi,
  I have a GWT form and Isubmitthe form to a spring controller. The
 formsubmitshould open in new window. I have a hiddenvalue in form
 that Isubmitwith form. My issue is that form opens a new window but
 when i do request.getParameter(...) I dont get my hidden value. Can
 somebody please help?

 finalFormPanelform = newFormPanel(_blank);
     form.setAction( hostPrefix + /someform/ );
     form.setMethod(FormPanel.METHOD_GET );

     Panel rfpMainPanel = new FlowPanel();

     rfpMainPanel.add( form );

     Panel rfpPanel = new VerticalPanel();

     form.setWidget(rfpPanel);

     final Hidden hiddenValue = new Hidden(multiple, testValue);
     rfpPanel.add( hiddenValue );

     form.addFormHandler( new FormHandler() {
       public void onSubmit(FormSubmitEvent event) {
         Window.alert( hiddenValue.getValue() );
       }
       public void  onSubmitComplete(FormSubmitCompleteEvent event) {

       }
     });

     Image goToRfpForm = new Image();

     goToRfpForm.addClickListener( new ClickListener() {
       public void onClick( Widget sender )
       {
         form.submit();
       }
     } );

     rfpPanel.add( goToRfpForm );

 Thanks
 Bharat

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



[gwt-contrib] OOPHM LinkageError in trunk

2009-01-05 Thread Sam Gross
Hi John --

The last merge from releases/1.6 into trunk (r4367) introduced a
LinkageError in OOPHM.  A call to injectJsniFor, which was removed
during the OOPHM merge (r4201) reappeared in
CompilingClassLoader#findClassBytes.

Removing the call from the trunk version of CompilingClassLoader fixes
the LinkageError.

Regards,
Sam

--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



oophm-linkage-r4377.patch
Description: Binary data


[gwt-contrib] Re: RR : A compiler option to disable runAsync sharding

2008-12-16 Thread Sam Gross
What's the reasoning for preferring deferred binding properties?
I would think that a option to disable sharding globally is
more appropriate as a compiler flag than as a module property.  My thinking
is that since a module encapsulates functionality, it should avoid causing
global program changes, such as disabling sharding in other modules.

I understand that linkers, which are configured as module properties, affect
global program changes, but I'm not sure that is sufficient reason for
further breaking encapsulation.

Will adding this as a module property make it more difficult to drop XML
module files in favor of annotations in the future?

Regards,
Sam

On Tue, Dec 16, 2008 at 3:09 PM, Lex Spoon sp...@google.com wrote:


 On Mon, Dec 15, 2008 at 4:09 AM, BobV b...@google.com wrote:
   I was trying to demonstrate the practical difference that runAsync
  would make when compared to a monolithic deployment to someone today,
  and there was no simple way to turn off runAsync that wasn't the
  -disableAggressiveOptimizations flag.
 
  This patch adds an undocumented flag -disableRunAsync that just
  disables code-splitting when compiling an app.

 FWIW, the *implementation*  LGTM.  The open question is about whether
 to keep it as a command-line option or go to a module-file solution.


 Lex

 


--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



[gwt-contrib] OOPHM development branches

2008-12-11 Thread Sam Gross
Hi John and Bob,
In which branch is OOPHM development taking place?  I see trunk/dev/oophm,
but this project seems to cause compile errors for the gwt-user project,
since the version of GWTShell in trunk/dev/oophm is missing some expected
methods.

What are the key things that need to be done before OOPHM is the default
hosted-mode in trunk?

Regards,
Sam

--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



Re: SVG and GWT

2008-11-24 Thread Sam sem
here is example  just implement in your java class


 public static native void testMethod()/*-{
  $wnd.testMethod2 = function() {
return
@com.test.client.TestEntryPoint::testMethod2(Ljava/lang/String;)(null);
}

  }-*/;

  public static void testMethod2(String test){
  Window.alert(Hi there ...);
  }

From your HTML page call testMethod2 function

Thanks
Muhammad Ismail


On Sun, Nov 23, 2008 at 12:17 PM, [EMAIL PROTECTED] 
[EMAIL PROTECTED] wrote:


 Hi I am trying to call a GWT function from a hand written SVG script.
 I was just wondering if anyone has already managed this, and could
 provided an example? 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: GWT serilization policy issue !!

2008-11-12 Thread Sam


Hello Olivier,
Thanks for the reply, I have seen your code and it extends from
RemoteServiceServlet. Thats why you can pass third parameter as
this . In my case , the service does not extend from
RemoteServiceServlet. The actual defination of my class is
   public class GWTHandlerAdapter
implements HandlerAdapter, ServletContextAware
Hence I wont be able to pass third parameter as  this to the API
RPC.decodeRequest().
It works as per expected if I copy the portion of the code from the
RemoteServiceServlet and pasted it into MySerilizationPolicy.java. The
code for the same is as follows.

RPCRequest rpcRequest = RPC.decodeRequest(requestString,
remote_service.getClass(), MySerializationPolicyProvider .getInstance
(servletContext, request, response));

(MySerializationPolicyProvider  implements
SerializationPolicyProvider)
My concern is , is this the best way to deal with the scenerio in
which service class is not extending from RemoteServiceServlet. Or is
there any other way to achive this. Code for
MySerializationPolicyProvider  is given below which is actually a
copied code from RemoteServiceServlet. However problem with this
approch is, if in next build of GWT , google made any change in The
methodes of RemoteServiceServlet then we also need to include that
change in our MySerializationPolicyProvider class .
So m looking for some other alternative if at all possible.



public class MySerializationPolicyProvider implements
SerializationPolicyProvider {

/**
 * A cache of moduleBaseURL and serialization policy strong name
to [EMAIL PROTECTED] SerializationPolicy}.
 */

private ServletContext servletContext;

/** ptcSerializationPolicy is used for getting the serialization
policy once initialized. */
private SerializationPolicy ptcSerializattionPolicy = null;

private final MapString, SerializationPolicy
serializationPolicyCache = new HashMapString, SerializationPolicy();

private final ThreadLocalHttpServletRequest perThreadRequest =
new ThreadLocalHttpServletRequest();

private final ThreadLocalHttpServletResponse perThreadResponse =
new ThreadLocalHttpServletResponse();

private static MySerializationPolicyProvider
MySerializationPolicyProviderInstance;

private static final org.apache.log4j.Logger log =
wt.log4j.LogR.getLogger(MySerializationPolicyProvider.class
.getName());

private MySerializationPolicyProvider() {

}

/**
 * Constructor for making the class Singelton .
 *
 * @param servletContext
 * @param request
 * @return response
 */
private MySerializationPolicyProvider(ServletContext
servletContext, HttpServletRequest request,
HttpServletResponse response) {
this.servletContext = servletContext;
perThreadRequest.set(request);
perThreadResponse.set(response);
}

/**
 * API for getting MySerializationPolicyProvider instance.
 *
 * @param servletContext
 * @param request
 * @return response
 */

public static MySerializationPolicyProvider getInstance
(ServletContext servletContext, HttpServletRequest request,
HttpServletResponse response) {
if (MySerializationPolicyProviderInstance == null)
MySerializationPolicyProviderInstance = new
MySerializationPolicyProvider(servletContext, request,
response);

return MySerializationPolicyProviderInstance;

}

/**
 * API for getting serializationPolicy.
 *
 * @param moduleBaseURL
 * @param strongName
 */

public SerializationPolicy getSerializationPolicy(String
moduleBaseURL, String strongName) {

SerializationPolicy serializationPolicy =
getCachedSerializationPolicy(moduleBaseURL, strongName);

if (serializationPolicy != null) {
this.ptcSerializattionPolicy = serializationPolicy;
return serializationPolicy;

}

serializationPolicy = doGetSerializationPolicy
(getThreadLocalRequest(), moduleBaseURL, strongName);

if (serializationPolicy == null) {

// Failed to get the requested serialization policy; use
the default
serializationPolicy = RPC.getDefaultSerializationPolicy();

}

// This could cache null or an actual instance. Either way we
will not

// attempt to lookup the policy again.

putCachedSerializationPolicy(moduleBaseURL, strongName,
serializationPolicy);

this.ptcSerializattionPolicy = serializationPolicy;
return serializationPolicy;

}

/**
 * get the cached serialization policy.
 *
 * @param moduleBaseURL
 * @param strongName
 * @return
 */
private SerializationPolicy getCachedSerializationPolicy(

String moduleBaseURL, String strongName) {

synchronized (serializationPolicyCache) {

return serializationPolicyCache.get(moduleBaseURL +
strongName);

}

}


Re: GWT serilization policy issue !!

2008-11-12 Thread Sam

Thanks Olivier,
That really helps. Thanks a lot


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



GWT serilization policy issue !!

2008-11-10 Thread Sam

Hi all,
I am trying to integrate GWT with the spring framework and we are able
to implement it successfully. The only question that remains unsolved
is of GWT serilization and deserilization issue. We have several
already exsisting classes which are actually remote and implements
Serilizable interface. However GWT seriliztion policy expects all the
remote classes to implement isSerilizable interface. (Even google's
official blog says we should prefer to implement isSerizable)
Implementing Serilizable interface works when my service class extends
from RemoteServiceServlet . However I don't want to be dependant on
GWT and hence I have removed that dependancy there by using spring
capabilities. (Implementing HandlerAdapter interface) and then after I
do all the stuff which RemoteServiceServlet does manually. (getting
request in the form of String , decoding the request, encoding the
response and so on ) . For this to work properly I have created a new
class (MySerilizationPolicy) which actually have the same code as that
of RemoteServiceServlet and it implements SerializationPolicyProvider
and I invoke the API decodeRequest  as follows

 RPCRequest rpcRequest = RPC.decodeRequest(requestString,
remote_service.getClass(),
 
MySerilizationPolicy.getInstance(servletContext, request, response));
What u guys think of it  ?? Is it the best way to deal with this kinda
situation .Or is there any other alternative. I have observed that if
our service class (the class on server side) extends from
RemoteServiceServlet then even though the remote class implements
Serilizable interface (insted of isSerizable) everthing works fine. So
whats that thing , which the RemoteServiceServlet must be doing so as
to make the class work eventhough it implements Serizable  interface
insted of isSerizable interface.
If I remove the dependancy over GWT there by NOT implementing
RemoteServiceServlet , I get the error message and when I implement
isSerilizabel interface everything works fine as expected.
Any link, white paper will be greatly appriciated ,
Thanks in advance.



--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



[gwt-contrib] Re: OOPHM Gecko 1.8

2008-10-23 Thread Sam Gross
On Thu, Oct 23, 2008 at 2:06 AM, John Tamplin [EMAIL PROTECTED] wrote:

 On Thu, Oct 23, 2008 at 12:22 AM, Sam Gross [EMAIL PROTECTED] wrote:

 I've been working on trying to create a version of oophm-xpcom.xpi that
 runs in both Firefox 2 and Firefox 3.  I also modified some of the makefiles
 in an attempt at getting rid of the separate makefiles for each platform.


 Great!


 Here's what's working:

- OOPHM runs in Firefox 2  3 in Linux and Mac
- Firefox 2 + 3 on Mac can run the same oophm-xpcom.xpi file
- The makefile builds against gecko 1.8 and gecko 1.9
- I trimmed downs the SDKs so that it's ~3 MB for Linux + Mac (x86 +
ppc)

 Here's what's not working:

- On Linux, the liboophm.so for Firefox 2 crashes Firefox 3 and vice
versa

 I realized that most of the libraries that we need to link against are
 always present in the Firefox distribution.  This seems more pleasant than
 having to distribute hundreds of megabytes of libraries to build OOPHM.


 In the past, we have wanted to include the files we need to build so
 someone can guarantee getting exactly the same bits we distribute.  The
 downside is it makes the checkout larger and can run into platform
 compatibility issues, and we aren't going to ship libraries for all the
 possible FireFox platforms anyway.


I think even if we stripped out the unecessary header and idl files, the
libraries to compile OOPHM on the major platforms would be at least 200 Mb.
 Since few people will want to rebuild the plugin - and almost everyone has
Firefox installed - it doesn't seem worthwhile to put full Gecko SDKs in the
tools directory.


 To build OOPHM on Linux if you Firefox installation is at
 /opt/local/firefox (default is /usr/lib/firefox):
 cd plugins/xpcom
  make FIREFOX_LIBS=/opt/local/firefox


 Does this only need the regular Firefox distribution, or are additional
 files needed?


Only the regular Firefox distribution.  The file gecko-sdks.tar.gz (attached
to the previous email) contains the required headers and libraries that
aren't included in the regular Firefox distribution.  We will probably want
to commit these files to tools/ at some point.


 To build only the Firefox 2 libraries:
 cd plugins/xpcom
 make lib BROWSER=ff2
 make xpi

 I'm not sure what's causing the crashes cross-version crashes on Linux.  I
 used the technique that Gears uses to prevent Firefox from loading
 cross-version libraries, which seems to work on Mac.  On Linux, Firefox 3
 crashes when executing ~nsCOMPtr_base and Firefox 2 crashes while checking
 the browser's version.


 It wouldn't be ideal, but I don't think it would be the end of the world to
 have two different XPIs, each of which list the versions they are compatible
 with.


That's probably best for the merge with trunk.

 -Sam

--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



Re: GWT Serialization problem !!!!

2008-10-17 Thread Sam



Hi olivier,
Thanks a lot for prompt reply, The solution you said works fine if we
extend our class from RemoteServiceServlet . However in my case I am
not extending the class from RemoteServiceServlet . I am making the
use of HandlerAdapter class of spring for integrating spring wid GWT.
Is there any way to achive the same kinda functionality there by not
extending from RemoteServiceSerlvet class.
Thanks
Samir


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: GWT Serialization problem !!!!

2008-10-17 Thread Sam



Hi olivier,
Thanks a lot for prompt reply, The solution you said works fine if we
extend our class from RemoteServiceServlet . However in my case I am
not extending the class from RemoteServiceServlet . I am making the
use of HandlerAdapter class of spring for integrating spring wid GWT.
Is there any way to achive the same kinda functionality there by not
extending from RemoteServiceSerlvet class.
Thanks
Samir


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



  1   2   >