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

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


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.


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.


Extending DialogBox to include a footer w/ ui:binder

2015-03-14 Thread Sam Edge
I'm looking at extending the DialogBox 
widget
 
that allows for a  child in the ui:binder template, similar to 
that of the .

I've has success using a @UiChild 

 annotated 
method, ie:

*UiBinder:*


  

  Okay
  Cancel

  


*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  like this. They 
seem to pass the Caption 

 
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  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:*

  
Okay
Cancel
  


*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:  (: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

ArrayList 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 Comparator() {

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  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 List elements);
> >
> > }
> >
> > //Adam
> >
> > On 15 Dec, 00:43, Luiz Mineo  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 List elements);
> >
> > > }
> >
> > > In my module.gwt.xml, I have:
> >
> > > 
> > > 
> > > 
> >
> > > 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



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
-



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:
>
> 
> imageReceiver
> xxx.ImageReceiver
> 
> 
> imagePath
> /the/place
> 
> 
>
> 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.



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



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



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



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.



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.



Re: GWT 2.1 MVP with DockLayoutPanel

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

On Jan 13, 8:52 pm, zixzigma  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.



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.



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



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



Rootpanel.get able to add to a different iframe or page?

2010-01-25 Thread Sam
I have an application that loads the gwt nocache file to my main
page.  My main page has 2 iframes.  Is there a way from the main page
to write output to each of the iframes?  I have tried using
RootPanel.get(top.iframe-a.tableId).

-- 
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-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 ; 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  wrote:
> Two changes will be needed:
> .
> Collection defaults = new ArrayList();
> .
> .
> 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



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

Collection defaults = new ArrayList();
String ht = "Something1 ";
defaults.add(ht);
oracle.setDefaultSuggestionsFromText(defaults);



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.(ZipFile.java:114)  at
java.util.jar.JarFile.(JarFile.java:133)  at
java.util.jar.JarFile.(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.
(ResourceOracleImpl.java:293)   at
com.google.gwt.dev.resource.impl.ResourceOracleImpl.
(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  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.(ZipFile.java:114)
>         at java.util.jar.JarFile.(JarFile.java:133)
>         at java.util.jar.JarFile.(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.
> (ResourceOracleImpl.java:293)
>         at com.google.gwt.dev.resource.impl.ResourceOracleImpl.
> (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.(ZipFile.java:114)
>         at java.util.jar.JarFile.(JarFile.java:133)
>         at java.util.jar.JarFile.(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.
> (ResourceOracleImpl.java:293)
>         at com.google.gwt.dev.resource.impl.ResourceOracleImpl.
> (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)
>      

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"  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:
>  
>         
>
> 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  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.Map 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.OrderedConstantSet
> keys' will not be serialized because it is final
> 
> [DEBUG] com.extjs.gxt.ui.client.data.BaseListLoadResult java.lang.Object>
> [DEBUG] Checking parameters of
> 'com.extjs.gxt.ui.client.data.BaseListLoadResult java.lang.Object>'
> [DEBUG] Checking type argument 0 of type
> 'com.extjs.gxt.ui.client.data.BaseListLoadResult' 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
> [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
> UniversalC

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



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.





















?

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: rpc serialization problem

2009-10-16 Thread Sam

@christian

I would like to see your Serialization enhancement/workaround code
please!
--~--~-~--~~~---~--~~
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: 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  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  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
-~--~~~~--~~--~--~---



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  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  wrote:
>
>
>
> > Hey Peter,
>
> > Could you try changing your  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'>
> > 
> > 
> > 
> > 
>
> > If this works, give thanks to Rajeev for pointing this out :)
>
> > jason
>
> > On Mon, Aug 3, 2009 at 1:07 PM, otismo  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:
> > > 
> > > 
> > > 
> > >  > > src='com.seekspeak.SeekSpeakWeb.nocache.js'>
> > > 
> > > 
> > > 
> > > 
>
> > > 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:
> > > ...
> > > 
> > > 
> > > 
> > > ...
> > > 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
-~--~~~~--~~--~--~---



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=5&can=1

On Jul 7, 4:58 pm, Sam Brodkin  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  wrote:
>
> > On 26 Jun., 10:38, strindberg  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
-~--~~~~--~~--~--~---



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  wrote:
> On 26 Jun., 10:38, strindberg  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
-~--~~~~--~~--~--~---



Import Module from another GWT project in Eclipse workspace

2009-06-07 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
-~--~~~~--~~--~--~---



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  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 image&css
> 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

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

On Jun 4, 8:46 am, Jamie  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 image&css
> 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 ==


Builds, tests, and runs the project Muckraker.






































 














































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



build.xml for Netbeans and GWT 1.6

2009-05-02 Thread Sam Halliday

Dear all,

I use NetBeans and the build.xml at the end of this post (based on one
by Jason Morris from this group). This worked great for 1.5 but I hear
there have been structural changes since then. Can anybody advise on
what might need to be changed? I have a project that I am going to
spend some time upgrading today... so expect a reply to this post if I
discover anything that affects the buildfile.

== build.xml ==


Builds, tests, and runs the project.


































 


















































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



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



Re: Star project and RSS feed of releases

2009-04-09 Thread Sam Halliday

hurrah! Thanks for finding this.

On Apr 8, 11:21 pm, daniel  wrote:
> http://code.google.com/p/google-web-toolkit/
>
> On 8 Apr., 23:15, Sam Halliday  wrote:
>
>
>
> > 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
-~--~~~~--~~--~--~---



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



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

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.  Get it
now

On Mon, Jan 26, 2009 at 11:16 PM, mgrouch  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  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  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.Http11Base

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



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

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



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 Map
serializationPolicyCache = new HashMap();

private final ThreadLocal perThreadRequest =
new ThreadLocal();

private final ThreadLocal perThreadResponse =
new ThreadLocal();

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);

}

}

/**
 *
 * @param moduleBaseURL
 * @param strongName
 * @param serializationPolicy
 */
private vo

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



Re: JSP in pop p window

2008-10-17 Thread Sam


Hi Obesga
Thanks for the prompt reply. Can you please explain me with sample
code for the same
Any link , white paper will greatly be appriciated
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
-~--~~~~--~~--~--~---



Integration of JSP page in GWT

2008-10-17 Thread Sam

Hi all,
Is it possible to open a JSP page as popup window. ? Is there any API
avilable to which if I send the URL of the JSP it will open that JSP
inside the popup window ?
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


Can you please share that code to me ? That will be a great 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



JSP in pop p window

2008-10-17 Thread Sam

Hi ,
I am trying to open an exsisting JSP page inside the pop up window. Is
it possible to do so in GWT .Is there any way I can open a new pop up
thereby using the URL to the JSP as one of the parameter which will
open the JSP in the new pop up window.
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-16 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-16 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
-~--~~~~--~~--~--~---



GWT Serialization problem !!!!

2008-10-15 Thread Sam

Hello all,
I have written a code which will integrate the GWT with spring . For
this purpose I have overridden the
public String processCall(String payload)
methode.
 This works fine if any class which needs to be serilized is
implementing isSerilizabel interface. However if I implement the
serilizabel interface insted of isSerilizabel , I get serilization
exception.
Error occours when I try to decode the request by using following
code.

RPCRequest rpcRequest =
RPC.decodeRequest(payload,this.remoteServiceClass);

Is there any way by which my code will run there by implementing
Serilizabel interface ONLY.
Any white paper , any link will greatly be appriciated.
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: How to refresh a component or page in GWT

2008-10-08 Thread Sam

Hello Alex,
Thanks for the prompt reply. I am not using FlexTabel and Grid. I am
using GWT-EXT API for table. I have used  GridPanel for the table. In
my case the scenerio that you have mentioned is not happening
properly. The row gets deleted from the database but not from the
table . Can you please let me know what needs to be done to make this
happen
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
-~--~~~~--~~--~--~---



How to refresh a component or page in GWT

2008-10-07 Thread Sam

Hello all,
I have created a table with checkboxes in GWT and on click of a button
I am trying to delete the selected row there by using RPC . I managed
to delete the row from the database but the actual table contents are
not getting updated . Can anyone please tell me the way by which I can
refresh my table or atleast the page on which this table is. Any white
paper , any link will greatly be appreciated.
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
-~--~~~~--~~--~--~---



How to change the default behaviour of RPC ?

2008-08-31 Thread Sam

Hi ,
We are trying to make the use of GWT along with the spring. We are
going to follow STATE full URL approch in which depending upon the
request URL , the appropriate controller is suppose to get the request
so as to generate the model.
Thus in short I want to use the service class internally and don’t
need all the RPC stuff .I want to pass a request from GWT to the
server there by bypassing the GWT's RPC structure. Is it possible to
do so ?
Any white paper , any link will be greatly appriciated
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: GWT.create problem with GWT 1.5

2008-08-29 Thread Sam Taha

I found a way around the exception by having not initializing the
class/classloader like:

 xyxClazz.forName(someName, false, clazzLoader); //using false instead
of true like I was using

This allows me to perform the reflection I need without invoking the
static calls (that what is true/false initialization is supposed  to
do) that trigger the GWT.create() calls on the server-side.

-Sam

On Aug 29, 10:52 pm, Sam Taha <[EMAIL PROTECTED]> wrote:
> I am doing some reflection on GWT client UI code. I do the reflection
> (like checking if a client class is of an "isAssignableForm" on the
> server side. I do not want to instantiate the GWT client UI classes on
> the server I only want to check some meta/reflection information about
> the superclass ...etc and I get this exception:
>
> Caused by: java.lang.UnsupportedOperationException: ERROR:
> GWT.create() is only usable in client code!  It cannot be called, for
> example, from server code.  If you are running a unit test, check that
> your test case extends GWTTestCase and that GWT.create() is not called
> from within an initializer or constructor.
>   at com.google.gwt.core.client.GWT.create(GWT.java:91)
>   at com.google.gwt.user.client.ui.UIObject.(UIObject.java:
> 139)
>
> This used to work just fine with GWT 1.4. Why is it necessary to
> prevent any reflection calls of client code on the server side. Seems
> like overkill. I can see the need to prevent the client UI classes
> from being accidentally used on the server side but this prevents my
> ability to do reflection.
>
> -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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



GWT.create problem with GWT 1.5

2008-08-29 Thread Sam Taha

I am doing some reflection on GWT client UI code. I do the reflection
(like checking if a client class is of an "isAssignableForm" on the
server side. I do not want to instantiate the GWT client UI classes on
the server I only want to check some meta/reflection information about
the superclass ...etc and I get this exception:

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


This used to work just fine with GWT 1.4. Why is it necessary to
prevent any reflection calls of client code on the server side. Seems
like overkill. I can see the need to prevent the client UI classes
from being accidentally used on the server side but this prevents my
ability to do reflection.

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



Problem when default package structure changed !!

2008-08-28 Thread Sam

Hi
I wanna change the location of the .html file in my GWT application
when I actuallu deploy(Web mode) . I have changed the path of nocache.js file  and its getting loaded successfully(I haev seen
it through DOM inspector) . However the application is not getting
loaded successfully.What I have observed through the DOM inspector
is , in case of deployed mode , .nocache.js gets loaded
properly but the iframe with src=.cache.html is not getting loaded properly . It is there when I
try to access the .html page through the same directory. Can anyone
plese let me know the reason for the same. Is the .nocache.js is the only file path that needs to be changed when
we change the default loaction of .html file and put it somewher else
or do we need to change any otehr things. I am using GWT 1.4.
Any white paper any link will be greatly appriciated.
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: How to make an Emd to End application in GWT ?

2008-08-26 Thread Sam



Hello all,
Thanks a lot for your valuabel help. What are all the options that you
said sounds quite appealing if I am going to create my product rt from
scratch. But in my case , we do have a stabel product and we are
planning to use GWT for some of the widely used pages as well as for
the forthcoming enhancements. So if we are planning to go for using
GWT with the exsisting web pages which are legacy web pages, we have
to go for either DOM manupulation or we can write a class for each web
page as per above discusion , rt ?
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   >