Re: How to integrate an open source web app into a GWT application

2010-08-16 Thread Anita
Hello Suersh,

With this solution, ¿How can i solve the problem of catching the
events on one application and doing something on the others?
Thank you very much!!!

Regards,
Anita


On 16 ago, 16:41, suersh babu  wrote:
> use div give id so that each id display differerent different information .
>
>
>
> On Thu, Aug 5, 2010 at 3:19 PM, Anita  wrote:
> > Hi,
>
> > I’m new on GWT and i’m trying to do something but don´t know how…. My
> > app has 2 panels (HorizontalSplitPanel and VerticalSplitPanel), in a
> > way that i have my window divided in 3 parts. In each part i want 3
> > differents app to be runing. One of them is an open source web app,
> > written in Java/JSP(no GWT), but i don´t know how to integrate it, in
> > a way that i can access de events generated by it. I’m a little lost
> > and any help would be very usefull.
> > Thank in advance.
> > Regards,
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google Web Toolkit" group.
> > To post to this group, send email to google-web-tool...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscr...@googlegroups.com
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.
>
> --
> your's truely
>
> suresh babu.g

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



Re: How to integrate an open source web app into a GWT application

2010-08-16 Thread Anita
Hello Suersh,

With this solution, ¿How can i solve the problem of catching the
events on one application and doing something on the others?
Thank you very much!!!

Regards,
Anita


On 16 ago, 16:41, suersh babu  wrote:
> use div give id so that each id display differerent different information .
>
>
>
> On Thu, Aug 5, 2010 at 3:19 PM, Anita  wrote:
> > Hi,
>
> > I’m new on GWT and i’m trying to do something but don´t know how…. My
> > app has 2 panels (HorizontalSplitPanel and VerticalSplitPanel), in a
> > way that i have my window divided in 3 parts. In each part i want 3
> > differents app to be runing. One of them is an open source web app,
> > written in Java/JSP(no GWT), but i don´t know how to integrate it, in
> > a way that i can access de events generated by it. I’m a little lost
> > and any help would be very usefull.
> > Thank in advance.
> > Regards,
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google Web Toolkit" group.
> > To post to this group, send email to google-web-tool...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscr...@googlegroups.com
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.
>
> --
> your's truely
>
> suresh babu.g

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



Re: How to integrate an open source web app into a GWT application

2010-08-16 Thread Anita
Hello Suersh,

With this solution, ¿How can i solve the problem of catching the
events on one application and doing something on the others?
Thank you very much!!!

Regards,
Anita


On 16 ago, 16:41, suersh babu  wrote:
> use div give id so that each id display differerent different information .
>
>
>
> On Thu, Aug 5, 2010 at 3:19 PM, Anita  wrote:
> > Hi,
>
> > I’m new on GWT and i’m trying to do something but don´t know how…. My
> > app has 2 panels (HorizontalSplitPanel and VerticalSplitPanel), in a
> > way that i have my window divided in 3 parts. In each part i want 3
> > differents app to be runing. One of them is an open source web app,
> > written in Java/JSP(no GWT), but i don´t know how to integrate it, in
> > a way that i can access de events generated by it. I’m a little lost
> > and any help would be very usefull.
> > Thank in advance.
> > Regards,
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google Web Toolkit" group.
> > To post to this group, send email to google-web-tool...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscr...@googlegroups.com
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.
>
> --
> your's truely
>
> suresh babu.g

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



Re: How to integrate an open source web app into a GWT application

2010-08-16 Thread Anita
Hello,

First of all, thank you VERY MUCH for your answers!!!
Bakul, i've tried this solution, but i need to catch events from the
existing application. For example, i need that if i click a button on
this application, the second application(on the other frame) have to
do something predefined. ¿How can i do that if i use frames as you're
suggesting me?

Regards,
Anita

On 16 ago, 16:38, Bakul  wrote:
> Create your main HTML/JSP which will have html frame set code like
> this:
>
> 
>
> 
> 
> 
> 
> 
>
> 
> urlOfOpenSourceExistingApp : should Points to your existing open
> source web url
> urlOfGWTApp: should point to your GWT Application
> urlOfThirdApp: should point to third application
>
> -Bakul

-- 
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: Generate Random String

2010-08-16 Thread Jim Douglas
I did this google search:

http://www.google.com/search?q=java+generate+random+alphanumeric+string

That returns more suggestions that you could possibly need; take your
pick.  The first link returned from that search has several
suggestions:

http://stackoverflow.com/questions/41107/how-to-generate-a-random-alpha-numeric-string-in-java

On Aug 16, 9:05 pm, spierce7  wrote:
> What would be the best way to generate a random string in GWT with no
> slashes (/ or \), preferably just capitol letters and numbers. How
> would I do this? I'm surprised I can't turn up any information in
> searches. I'm looking to do this Server Side, meaning in java, rather
> than javascript. Thanks!
>
> ~Scott

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



Generate Random String

2010-08-16 Thread spierce7
What would be the best way to generate a random string in GWT with no
slashes (/ or \), preferably just capitol letters and numbers. How
would I do this? I'm surprised I can't turn up any information in
searches. I'm looking to do this Server Side, meaning in java, rather
than javascript. Thanks!

~Scott

-- 
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: knowing module inheritance

2010-08-16 Thread mooreds
I didn't find any real solution, so I'll have to maintain the
dependent module list in two places (code and xml).

Bummer.

Dan

On Aug 9, 8:54 am, mooreds  wrote:
> Hi folks,
>
> I have a bit of a peculiar need.  I work on a site with a number of
> disparate GWT modules:
>
> moduleA
> moduleB
> moduleC
>
> They all attach to different spans and enhance site functionality.
>
> To load them all when the page loads, I have a loader module
> (loaderModule) which inherits from all modules.
>
> That's all well and good when a page is loaded normally.  However, I'm
> now looking at having the page loaded via XMLHttpRequest aka
> RequestBuilder.  In this case, loaderModule.onModuleLoad() method is
> never called automatically.  When I try to call it, nothing happens.
>
> Here's example code:
> ---
>
> RequestBuilder rb = new RequestBuilder(RequestBuilder.GET,"myurl");
>
> rb.setCallback(new RequestCallback() {
>                 @Override
>                 public void onResponseReceived(Request request, Response 
> response) {
>                         
> DOM.getElementById("container").setInnerHTML(response.getText());
>                         new LoaderModule().onModuleLoad();
>                 }
>
>                 @Override
>                 public void onError(Request request, Throwable exception) {
>                         // TODO Auto-generated method stub
>                 }
>         });
>
> try {
>                 rb.send();} catch (RequestException e) {
> }
>
> ---
>
> Now, if I call moduleA.onModuleLoad() things seem to work fine.  So I
> suppose I could just maintain the module list in two places (in the
> LoaderModule xml file and in the code).  But I was wondering if
> * there was a way to automatically chain the onModuleLoad methods, or,
> barring that,
> * find out what modules the module I'm currently executing has
> inherited from.
>
> I did some searching on the google web toolkit group, but didn't find
> anything that seemed applicable.
>
> Any ideas?
>
> Thanks,
> Dan

-- 
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: Upgrade from 1.5.3 to 2.x

2010-08-16 Thread mooreds
I posted about this.  It's not too detailed, but could be some help.

http://www.mooreds.com/wordpress/archives/572

Let me know if you had specific issues and I'll try to remember what I
did.

We're slowly moving off deprecated code (like ClickListeners), so you
don't have to do it in a big bang.

Dan

On Aug 12, 4:56 am, Rokesh  wrote:
> I would recommend to do this step by step.
>
> Check this 
> link:http://googlewebtoolkit.blogspot.com/2009/04/introducing-gwt-16-and-f...
>
> Most of the work I had back then (1.5->1.6), was the refactoring from
> Listeners to Handlers.
>
> After the 1.6 upgrading was fairly easy (mind the DevMode startup).
>
> On Aug 11, 3:57 pm, Bhaskar  wrote:
>
>
>
> > we have upgraded GWT 1.7 to GWT 2.0.3... just we added new GWT in Google web
> > tool kit in Eclipse IDE..( in preferences).
>
> > On Wed, Aug 11, 2010 at 7:03 PM, Fernando  wrote:
> > > I did the migration from 1.6.x to 2.0.x and it was pretty much
> > > straightforward, just a couple deprecated elements (listeners ->
> > > handlers), but before that, from 1.5.x to 1.6.x, it seems that they
> > > ran into some trouble...
>
> > > On 11 ago, 09:37, cupakob  wrote:
> > > > HI *,
>
> > > > we have an application, which is build with GWT 1.5.3. Is it possible
> > > > to upgrade to the newest GWT version? Is there any howto, how to make
> > > > the upgrade?
>
> > > > Thanks in advance!
> > > > S.
>
> > > --
> > > You received this message because you are subscribed to the Google Groups
> > > "Google Web Toolkit" group.
> > > To post to this group, send email to google-web-tool...@googlegroups.com.
> > > To unsubscribe from this group, send email to
> > > google-web-toolkit+unsubscr...@googlegroups.com > >  cr...@googlegroups.com>
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/google-web-toolkit?hl=en.
>
> > --
> > Keep Smiling
> > Thanks & Regards
> > Bhaskar.
> > Mobile:9866724142

-- 
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: Expose URL as REST service how?

2010-08-16 Thread lineman78
Restlet seems to be the one supporting GAE best right now.  Jersey may
be working now, but I know they were running to security issues for a
while.

On Aug 16, 2:38 am, Harald Pehl  wrote:
> Hi,
>
> the Restlet guys have written a little tutorial which might be
> helpful:http://wiki.restlet.org/docs_2.0/13-restlet/21-restlet/318-restlet/30...
>
> - Harald
>
> On 13 Aug., 20:05, Thamizharasu S  wrote:
>
> > Hi,
>
> > Thanks for the quick answer. I want to deply my GWT app in GAE. is
> > there any document for reference or could you help me on this to
> > achieve?
>
> > - Thamizharasu S
>
> > On Aug 13, 10:51 pm, lineman78  wrote:
>
> > > REST is provided by most app servers in the form of a reference
> > > implementation of JSR-311.  Glassfish uses Jersey, JBoss RESTEasy.
> > > Most app servers bundle support in one way or another now.  Some GWT
> > > people have found RESTlet easy to use also.  The Jersey users manual
> > > is very in-depth and ought to get you going, but the deployment
> > > descriptor will change depending on implementation.
>
> > >https://jersey.dev.java.net/nonav/documentation/latest/user-guide.html
>
> > > On Aug 13, 11:38 am, Thamizharasu S  wrote:
>
> > > > Hi All,
> > > > I am evaluating GWT for my new project which is going to be started
> > > > shortly. I have a requirement with REST support.
>
> > > > For example, I have a list of users. If I click on any one the user,
> > > > the details of the user will be shown in a different view.
>
> > > > I need to expose this URL,http://sample.com/user/123asaREST
> > > > service.
>
> > > > If anyone try to access this URL directly, the particular user details
> > > > should be shown.
>
> > > > I don't know how to achieve this using GWT. I am using RPC service to
> > > > fetch the details of the user from the server.
>
> > > > Can any one help me on this?
>
> > > > - Thamizharasu S

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



Re: Problem using Reflection and Casting objects on GAE

2010-08-16 Thread AlexG
Hi again,

sry but this afternoon, I didn´t have much time. So some want to know,
what I did, and how it works. Ok so you want it ... you get it. :-)

Ok as said before, I wanted a MVP-Framework based dynamically
Module/Transaction/UI App. It´s just like ... 2 Menu Panels and
one Content Panel. Imagine, you have a small bar on top and one on the
bottom of a webpage. Between are the dynamically loaded Modules.

So I implemented a "main"-MVP-App, in which App-Controller, all
Presenters of the Views are controlled. So, the point is, if a user
wants
to do some action, then the "content panel" should change.

Ok, no problem to ths point. But the App seems to become very very
large,
for many many users. .. I hope so :) 

So the point is, I don´t want to have all Views, Presenters, Event-
Handlers etc.
in one GWT-Eclipse-Project. So every "module/UI/transaction" are
single
stnadalone Java-Projects, on my workspace. Just include every
Projects
.gwt.xml you want to use, and extract .jars and include them in the /
war/WEB-INF/lib
directory, for the server-side code.

Ok, so to the problem I had. I want to dynamically load the content
"module".
I just have to say, that not every user can load every module. So I
have something
like rights-profiles. So I implemented a few "jdo-classes", which save
the "modules"
and the user-profiles, and also!! the class, which starts to load the
"modules".

It´s a little late, so I hope it´s clear, what I´m saying. :-)

OK, so I made a service, which gets the name of the moduels-class as a
string.
This service is called, when a user want to perform some transaction
(load a module).
Then I uses java.lang.reflect to get the class. Now I instanciate
the class, as a
instance of an interface (see posts above) and return it to the
client. So now I can
call the method start() on the client, and the desired UI is loading.

The problrm I had was, that I got anoying ClassCastErrors, on the
server, so it didn´t work.
I did it like this:

MyInterface obj = (MyInterface)
Class.forName(string_of_classname).newInstance();

but this doesn´t work. I found a solution, of avoiding this error by
doing this like this:

Constructor myContructor =
Class,forName(string_of_classname).getDeclaredConstructor();
MyInterface obj = (MyInterface) myContructor.newInstance();

This is working, seems like AppEngine had a problem, using the
standard constructor,
don´t know why, but now it´s working.

I hope this answers all yor questons??

Greets Alex



On 16 Aug., 20:16, Rogério Valente  wrote:
> Hi Alex,
>
> How about post the solution here for the entire group? :-)
>
> On 16 ago, 11:12, AlexG  wrote:
>
> > Hi again,
>
> > I solved the problem, and now it works, as intended :)
> > If somebody has any questions, how this works, just
> > eMail me.
>
> > Greets
> > Alex
>
> > On 16 Aug., 15:37, AlexG  wrote:
>
> > > Hi,
>
> > > first thanks for your fast reply.
> > > I think this should work. Perhaps I should just
> > > give more background information.
>
> > > The App is build using the MVP Pattern. I have one
> > > "main"-Page, with 3 Panels (3 div-elements in the .html)
>
> > > Two of the three panels will never change during runtime. These
> > > contains the menu control-widgets. If i select something,
> > > then the "content"-Panel should load the requestet UI (Module).
>
> > > This means, it should load just a new MVP-View via a new MVP
> > > presenter.
> > > The views and presenters are seperated in extra Projects in Eclipse,
> > > just
> > > to make it easy to maintain the App.
>
> > > So I definitely don´t want anything in one Project, or any widget in
> > > one onModuleLoad(). I also don´t want lots of if´s to decide, which
> > > view should be shown, because the app must be highly maintainable,
> > > reusable
> > > and extensable.
>
> > > By-the-way, the way I do it, works, if I code it with many if´s. But I
> > > think
> > > this is a "dirty" solution, and not what I want.
>
> > > Thanks, for your suggestions anyway. Maybe you got asnother idea??
>
> > > Thanks.
>
> > > Greets Alex
>
> > > On 16 Aug., 14:49, André Moraes  wrote:
>
> > > > This aproach will not work, since after compiled GWT generates pure
> > > > JavaScript.
>
> > > > You could do the following:
>
> > > > 1- Create an JSP page (index.jsp) and use this page as your GWT hosted 
> > > > page.
> > > > 2- When rendering the page, check the name of the module (not the name 
> > > > of
> > > > the class) that you want to load.
> > > > 3- Create one Module.gwt.xml file for each of the user interface that 
> > > > you
> > > > want to load.
> > > > 4- When renderinhg the script tag that loads your selection script, 
> > > > change
> > > > the name of your selection script based on the information that you
> > > > retreived from the datastore.
>
> > > > This options generate lots of files in your GAE application, because 
> > > > each UI
> > > > will be compiled independ of another, but its fast.
>
> > > > Another option will be:
>
> > > >

Re: I need a little help with request builder

2010-08-16 Thread nacho
Yes, i thought to do in that way.

But the trouble is that i need to work with 3 files, and i need to
execute more than one method over the file contents, so that was that
i was wondering some how to make sure that the content was loaded and
then work with it.

On 16 ago, 14:45, André Moraes  wrote:
> If i get it correct:
>
> 1- Your file as a file that your server will serve when you make a GET
> request.
> 2- You are using RequestBuilder to open a connection to your server and
> fetch the file
> 3- If all of this is true, you should do:
> 3.1 -> create the requestbuilder and point it to your file
> 3.2 -> you created your request passing a RequestCallback 
> (see:http://google-web-toolkit.googlecode.com/svn/javadoc/1.6/com/google/g...
> )
> 3.3 -> Inside the onResponseReceived of that call, you write the logic to
> load and process your file.
>
> This approach is much more complex but this have the advantage of not
> blocking the browser.
>
> Hope it helps,
>
> --
> André Moraes
> Analista de Desenvolvimento de Sistemas
> andr...@gmail.comhttp://andredevchannel.blogspot.com/

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



Re: and instead of in RichTextAreaImplStandard

2010-08-16 Thread jocke eriksson
https://developer.mozilla.org/en/rich-text_editing_in_mozilla


Now it should work
2010/8/16 jocke eriksson 

> https://developer.mozilla.org/en/rich-text_editing_in_mozilla
>  I see
> that the link was wrong.
>
> 2010/8/16 Ali 
>
> Thank you, I will try to find it.
>>
>> Best wishes,
>> Ali
>>
>> On Aug 14, 4:53 pm, jocke eriksson  wrote:
>> > I looked in to this months ago and i think the generated markup is
>> browser
>> > specific. For firefox I think you can send a command to it so it only
>> uses
>> > valid xhtml markup. I know that tiny MCE uses this approach. Sorry that
>> i
>> > don't have this command at hands now.
>> >
>> > https://developer.mozilla.org/en/rich-text_editing_in_mozillaLook at
>> the
>> > styleWithCss command
>> >
>> > Regards Jocke
>> >
>> > 2010/8/14 Ali 
>> >
>> > > Hi
>> >
>> > > Sorry if already asked, I didn't find it.
>> >
>> > > Is there any way to make RichTextAreaImplStandard to add  and 
>> > > instead of .
>> >
>> > > I looked at RichTextAreaImplStandard but it sends commands deep down
>> > > into JS.
>> >
>> > > Do you have any idea?!
>> >
>> > > Best wishes,
>> > > Ali
>> >
>> > > --
>> > > 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.



Re: and instead of in RichTextAreaImplStandard

2010-08-16 Thread jocke eriksson
https://developer.mozilla.org/en/rich-text_editing_in_mozilla
I see
that the link was wrong.

2010/8/16 Ali 

> Thank you, I will try to find it.
>
> Best wishes,
> Ali
>
> On Aug 14, 4:53 pm, jocke eriksson  wrote:
> > I looked in to this months ago and i think the generated markup is
> browser
> > specific. For firefox I think you can send a command to it so it only
> uses
> > valid xhtml markup. I know that tiny MCE uses this approach. Sorry that i
> > don't have this command at hands now.
> >
> > https://developer.mozilla.org/en/rich-text_editing_in_mozillaLook at the
> > styleWithCss command
> >
> > Regards Jocke
> >
> > 2010/8/14 Ali 
> >
> > > Hi
> >
> > > Sorry if already asked, I didn't find it.
> >
> > > Is there any way to make RichTextAreaImplStandard to add  and 
> > > instead of .
> >
> > > I looked at RichTextAreaImplStandard but it sends commands deep down
> > > into JS.
> >
> > > Do you have any idea?!
> >
> > > Best wishes,
> > > Ali
> >
> > > --
> > > 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.



Reusing GWT Localization in Server Side Code

2010-08-16 Thread Casey
Does anyone know if with Google Web Toolkit there is an easy way to
reuse your client size localization files (constants and messages) in
the server side code? I think in GWT 1.6 or 1.8 you could actually
call the same GWT localization code on the server side that you called
on the client side. I just upgraded from 1.6 to 2.0 and all of a
sudden I'm receiving the following message: ERROR: GWT.create() is
only usable in client code! That makes sense to me but there must be
an easy way to reuse your Constant and Message files on the server.
It's been awhile since I've opened this project but I'm pretty sure
that this was working before. 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.



Re: GWT security

2010-08-16 Thread mig
Greg, do you realize, that there are administration possibilities/
functionalities/menu items  here on google groups too ? No ? It is
because you CAN'T SEE THEM, because you ARE NOT THE ADMIN. I don't
know, what kinds of applications you use, but I just can't possibly
imagine a bank application, where a guest user would see all the menu
items, that admins, brokers, managers and customers see while having
90% of 'em disabled.
And yes, it IS security, because besides the client functionality,
that hides client components according to roles, permission and stuff,
it also addresses the autorization issues regarding calling server
side service methods.

On 16. Aug, 20:34 h., Greg Dougherty 
wrote:
> "why is more acceptable for you, that user will see whole application
> (also the screen which is not allowed to use) rather than ONLY screens
> that he is able to use."
>
> Simple:
> 1: User documentation on how to use the program is consistent.
> Everyone sees the same menus, screens, screen layout, etc.
> 2: Easier tech support: "Go to the 'Edit User Data' screen".  "Where
> is it?"  "It's on the right-most tab on your screen"  "No, it's
> not"  vs.
> "Go to the 'Edit User Data' screen".  "Ok, it says I can't edit the
> data."  "You'll have to talk to  security credentials for that>".
> 3: Easier to keep users up to date.  "Ok, last week, I could see the
> panel, now I can't.  Where the heck did they move it, and why?!?" vs.
> "Oh, the panel says I don't have access.  I guess I have to renew my
> membership to use that."
> 4: Better user experience: Your way: "The documentation says you can
> do  with this app, but I can't figure out how to do it.  I hate
> this program!"
> My way: "Ah, I see I have to get approval before I'll be able to do
> what I want to do." --> User is much less cranky.  (Yes, I've BEEN
> that user.  And not being able to FIND what I want to do is FAR more
> irritating than finding it easily, but being told I don't have
> permission to do it.)
>
> And no, it's NOT "security".  Security is making sure the server is
> set up so that no client program, no matter how malicious, can get a
> hold of information it shouldn't have, or change information it
> shouldn't change.  Your program runs on the client side, so it's about
> making the security rules obvious to the user.
>
> Except, instead of making things obvious, you hide them.  Bad UI, bad
> design, bad idea.
>
> Greg
>
> On Aug 13, 5:23 am, Peter Simun  wrote:
>
> > Hi Greg,
>
> > why is more acceptable for you, that user will see whole application
> > (also the screen which is not allowed to use) rather than ONLY screens
> > that he is able to use.
> > Your argument becomes to me little bit funny: "tech support and UI
> > nightmare". If you have correctly setup user permissions, then no
> > extra support is necessary and I have no idea which UI nightmare you
> > mean.
>
> > Maybe you mean that UI nightmare, that you will have complex
> > application with 50 screen and normal user who is allowed to use only
> > 10 of them will consider your application as UI nightmare - because on
> > 80% of the screen he choose he will gets the message: "You do not have
> > permissions to use this screen, please contact tech support". Ou, and
> > this tech support you mentioned?
>
> > Yes, with your solution, you will need this kind of tech support and
> > hopefully you will work at first line support and you will tell the
> > users that they are not able to use the 80% of the screens because
> > they are only normal users, not super users.
>
> > And hopefully you will enjoy the question: "So, why I can see that
> > screens I cannot use?"
>
> > hmm?
>
> > And - about the "correct name" - it's security! because acris-security
> > project has much more features than "consistent UI", there is complex
> > session handling, synchronize sessionID between client->server in a
> > completly transparent way, ACL data level security, server side
> > security based on spring security for securing the serivces and
> > complex integration of this stuff into one consistent solution.
>
> > Peter
>
> > On 12. Aug, 17:41 h., Greg Dougherty 
> > wrote:
>
> > > "I'm talking about displaying the screens and securing the
> > > components."
>
> > > The problem is that that is a meaningless statement, and to the extent
> > > that it's not meaningless, it's pointless.
>
> > > I suppose you could set up your code so that the JS to display a
> > > screen isn't downloaded unless the user will be able to use that
> > > screen, but why bother?  What is the win by doing that?
>
> > > Speaking for myself, I'd MUCH rather have a screen show up, and tell
> > > me I can't use it, then not be able to find the screen.
>
> > > After all, if I find the "Update Data" screen, and it says "you do not
> > > have permission to use this", then I know I dont' need to look for it
> > > anymore.
>
> > > And, if the server has my security credentials wrong, I can call tech
> > > support, tell them t

setFocus scrolling my app, even though everything fits on screen

2010-08-16 Thread Greg Dougherty
So I'm building the UI for my app.  Everything is inside of a
VerticalPanel, and fits nicely onto my screen.  I decided to call
setFocus at the end of onModuleLoad, to set the focus where it belongs
(the first text field of the document).

Unfortunately, doing that causes the screen to scroll up (so that the
TextBox is at the top of the screen) and to the left, even though
everythign would be visible if this scroll did NOT happen.

Why is it doing this?  How do I keep it from doing 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-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 security

2010-08-16 Thread Greg Dougherty
"why is more acceptable for you, that user will see whole application
(also the screen which is not allowed to use) rather than ONLY screens
that he is able to use."

Simple:
1: User documentation on how to use the program is consistent.
Everyone sees the same menus, screens, screen layout, etc.
2: Easier tech support: "Go to the 'Edit User Data' screen".  "Where
is it?"  "It's on the right-most tab on your screen"  "No, it's
not"  vs.
"Go to the 'Edit User Data' screen".  "Ok, it says I can't edit the
data."  "You'll have to talk to ".
3: Easier to keep users up to date.  "Ok, last week, I could see the
panel, now I can't.  Where the heck did they move it, and why?!?" vs.
"Oh, the panel says I don't have access.  I guess I have to renew my
membership to use that."
4: Better user experience: Your way: "The documentation says you can
do  with this app, but I can't figure out how to do it.  I hate
this program!"
My way: "Ah, I see I have to get approval before I'll be able to do
what I want to do." --> User is much less cranky.  (Yes, I've BEEN
that user.  And not being able to FIND what I want to do is FAR more
irritating than finding it easily, but being told I don't have
permission to do it.)

And no, it's NOT "security".  Security is making sure the server is
set up so that no client program, no matter how malicious, can get a
hold of information it shouldn't have, or change information it
shouldn't change.  Your program runs on the client side, so it's about
making the security rules obvious to the user.

Except, instead of making things obvious, you hide them.  Bad UI, bad
design, bad idea.

Greg

On Aug 13, 5:23 am, Peter Simun  wrote:
> Hi Greg,
>
> why is more acceptable for you, that user will see whole application
> (also the screen which is not allowed to use) rather than ONLY screens
> that he is able to use.
> Your argument becomes to me little bit funny: "tech support and UI
> nightmare". If you have correctly setup user permissions, then no
> extra support is necessary and I have no idea which UI nightmare you
> mean.
>
> Maybe you mean that UI nightmare, that you will have complex
> application with 50 screen and normal user who is allowed to use only
> 10 of them will consider your application as UI nightmare - because on
> 80% of the screen he choose he will gets the message: "You do not have
> permissions to use this screen, please contact tech support". Ou, and
> this tech support you mentioned?
>
> Yes, with your solution, you will need this kind of tech support and
> hopefully you will work at first line support and you will tell the
> users that they are not able to use the 80% of the screens because
> they are only normal users, not super users.
>
> And hopefully you will enjoy the question: "So, why I can see that
> screens I cannot use?"
>
> hmm?
>
> And - about the "correct name" - it's security! because acris-security
> project has much more features than "consistent UI", there is complex
> session handling, synchronize sessionID between client->server in a
> completly transparent way, ACL data level security, server side
> security based on spring security for securing the serivces and
> complex integration of this stuff into one consistent solution.
>
> Peter
>
> On 12. Aug, 17:41 h., Greg Dougherty 
> wrote:
>
> > "I'm talking about displaying the screens and securing the
> > components."
>
> > The problem is that that is a meaningless statement, and to the extent
> > that it's not meaningless, it's pointless.
>
> > I suppose you could set up your code so that the JS to display a
> > screen isn't downloaded unless the user will be able to use that
> > screen, but why bother?  What is the win by doing that?
>
> > Speaking for myself, I'd MUCH rather have a screen show up, and tell
> > me I can't use it, then not be able to find the screen.
>
> > After all, if I find the "Update Data" screen, and it says "you do not
> > have permission to use this", then I know I dont' need to look for it
> > anymore.
>
> > And, if the server has my security credentials wrong, I can call tech
> > support, tell them that, and have them fix it.
>
> > Calling tech support to tell them I can't find a screen at all is a
> > much different, much more aggravating, call.  For both me AND the tech
> > support person.
>
> > It's not security, it's just a tech support and UI nightmare.
>
> > Greg
>
> > On Aug 12, 2:42 am, Peter Simun  wrote:
>
> > > I'm not talking about the data. Secured data, that user is not allowed
> > > to minupulate with, are not sent to client! This logic is done on the
> > > server side security implementation.
> > > I'm talking about displaying the screens and securing the components:
> > > - like if the user is not able to maintain users, he will not see the
> > > menu item "user maintenance" on the application menu
> > > - if the user is able to view users, but not modify the fields, he
> > > will see the readonly form (just for view purposes)
>
> > > Everything just by anno

Re: why we probably won't use GWT for a large UI project

2010-08-16 Thread Stefan Bachert
Hi Steve,

> I guess it depends on what processing you need to do.
>
No, it does not depend on the data.
Vaadin has just the wrong architecture. It is still on the level as
JSP/JSF. Vaadin could never be real responsive.

> Stuff like adding two numbers together can be easily done in
> JavaScript, so pushing that up to the server doesn't make a whole lot
> of sense.

But doing this is a major architectural change.
>From a fat client running on the server to real client-server-
architecture with a minimal efficient communication in between.

> Doing XML
> processing in a GWT client is as ill-advised as performing 3+4 in a
> servlet.

There is too less information to decide this.
When XML manipulation is a presentation affair it belongs to the
client,
when  XML manipulation is a model change it belongs to the server.
I am sure that XML handling is not bad on browsers.

Doing the architecture right is a major issue to succeed a project on
the long run.

I am absolute sure that a good client-server implementation will
always be faster and more responsive.
Just because a slow internet connection will always dominate the
latencies.
In this case only the number of transfered bytes has to be taken into
account.
And there are still many people which MUST use ISDN (128Kbit!)

When doing only projects for internal use, vaadin may be sufficient
but don't try to put it on the internet.

Stefan Bachert
http://gwtworld.de

On 15 Aug., 19:39, Steve Wart  wrote:
> I guess it depends on what processing you need to do.
>
> Stuff like adding two numbers together can be easily done in
> JavaScript, so pushing that up to the server doesn't make a whole lot
> of sense. But the Calc example is a toy, and I wouldn't necessarily
> extrapolate from that.
>
> I think the key is to use the local processing for maintaining a
> responsive user experience and a good looking app. Doing XML
> processing in a GWT client is as ill-advised as performing 3+4 in a
> servlet.
>
> How do vaadin's data tables stack up against the stuff in 2.1? The
> examples I looked at in M2 were awkward to work with and I was
> planning to try some load testing on vaadin later this week.
>
> Maybe someone could save me a few hours work by pointing me at some
> realistic examples.On Sun, Aug 15, 2010 at 10:26 AM, Stefan Bachert 
>  wrote:
> > Hi,
>
> > I would avoid vaadin. Agreed that vaadin looks good out of the box,
> > vaadin falls back into the poor old fat-client architecture.
> > GWT supports a real responsive client-server architecture but vaadin
> > uses GWT like a display server.
>
> > You can test the difference using the sample
> >http://demo.vaadin.com/Calc
>
> > Click a number and it tooks 300ms until the calc will display it.
> > This latency is a direct consequence of choosing the poor old
> > architecture.
>
> > Stefan Bachert
> >http://gwtworld.de
>
> > On 10 Aug., 09:02, Nathan Wells  wrote:
> >> I would look into vaadin. We just looked at it recently, and I think
> >> it's a good alternative to straight GWT, but we can't switch because
> >> it's a pretty significant change.
>
> >> On Aug 10, 5:23 am, Shawn Brown  wrote:
>
> >> > > I'm looking to get this group's feedback before I present my findings
> >> > > to the team. What do you think?
>
> >> > If open source is nice then go for gpl and ExtGWT (GXT).  If you don't
> >> > pay the commercial fee, then you have to open source your project I
> >> > believe.
>
> >> > Shawn
>
> > --
> > 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 
> > athttp://groups.google.com/group/google-web-toolkit?hl=en.

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



Re: Problem using Reflection and Casting objects on GAE

2010-08-16 Thread Rogério Valente
Hi Alex,

How about post the solution here for the entire group? :-)


On 16 ago, 11:12, AlexG  wrote:
> Hi again,
>
> I solved the problem, and now it works, as intended :)
> If somebody has any questions, how this works, just
> eMail me.
>
> Greets
> Alex
>
> On 16 Aug., 15:37, AlexG  wrote:
>
>
>
> > Hi,
>
> > first thanks for your fast reply.
> > I think this should work. Perhaps I should just
> > give more background information.
>
> > The App is build using the MVP Pattern. I have one
> > "main"-Page, with 3 Panels (3 div-elements in the .html)
>
> > Two of the three panels will never change during runtime. These
> > contains the menu control-widgets. If i select something,
> > then the "content"-Panel should load the requestet UI (Module).
>
> > This means, it should load just a new MVP-View via a new MVP
> > presenter.
> > The views and presenters are seperated in extra Projects in Eclipse,
> > just
> > to make it easy to maintain the App.
>
> > So I definitely don´t want anything in one Project, or any widget in
> > one onModuleLoad(). I also don´t want lots of if´s to decide, which
> > view should be shown, because the app must be highly maintainable,
> > reusable
> > and extensable.
>
> > By-the-way, the way I do it, works, if I code it with many if´s. But I
> > think
> > this is a "dirty" solution, and not what I want.
>
> > Thanks, for your suggestions anyway. Maybe you got asnother idea??
>
> > Thanks.
>
> > Greets Alex
>
> > On 16 Aug., 14:49, André Moraes  wrote:
>
> > > This aproach will not work, since after compiled GWT generates pure
> > > JavaScript.
>
> > > You could do the following:
>
> > > 1- Create an JSP page (index.jsp) and use this page as your GWT hosted 
> > > page.
> > > 2- When rendering the page, check the name of the module (not the name of
> > > the class) that you want to load.
> > > 3- Create one Module.gwt.xml file for each of the user interface that you
> > > want to load.
> > > 4- When renderinhg the script tag that loads your selection script, change
> > > the name of your selection script based on the information that you
> > > retreived from the datastore.
>
> > > This options generate lots of files in your GAE application, because each 
> > > UI
> > > will be compiled independ of another, but its fast.
>
> > > Another option will be:
>
> > > 1- Write your GWT application with all the UI and only one entry point
> > > class.
> > > 2- Create an jsp and define a cookie with the name (not the classname, GWT
> > > doesn't have reflection) of the UI that you want to load.
> > > 3- Inside your onModuleLoad function, write a series of if's that will 
> > > check
> > > this cookie and load the UI that you want.
> > > 4- Use the GWT.async (code-splitting) to load the UI that you want, this
> > > will cost another round-trip but will download much less code. If you 
> > > don't
> > > do that, the browser will download all the code for all the UI.
>
> > > Hope it helps.
>
> > > --
> > > André Moraes
> > > Analista de Desenvolvimento de Sistemas
> > > andr...@gmail.comhttp://andredevchannel.blogspot.com/

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



Re: I need a little help with request builder

2010-08-16 Thread André Moraes
If i get it correct:

1- Your file as a file that your server will serve when you make a GET
request.
2- You are using RequestBuilder to open a connection to your server and
fetch the file
3- If all of this is true, you should do:
3.1 -> create the requestbuilder and point it to your file
3.2 -> you created your request passing a RequestCallback (see:
http://google-web-toolkit.googlecode.com/svn/javadoc/1.6/com/google/gwt/http/client/RequestCallback.html
)
3.3 -> Inside the onResponseReceived of that call, you write the logic to
load and process your file.

This approach is much more complex but this have the advantage of not
blocking the browser.

Hope it helps,

-- 
André Moraes
Analista de Desenvolvimento de Sistemas
andr...@gmail.com
http://andredevchannel.blogspot.com/

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



Re: why we probably won't use GWT for a large UI project

2010-08-16 Thread Frank Argueta
Joonas,
This thread cannot be taken seriously and has some terrible advise. It's
like the blind leading the blind. Stefan and lineman78 in particular. I miss
the days that Rienier would lash out when people spread misinformation or
gave incorrect advise on this group. Alteast it kept the quality of the
responses high but right now this forum is running wild and everyone who has
read about GWT dead code elimination thinks they are GWT enterprise
architects.

-Frank

On Mon, Aug 16, 2010 at 10:23 AM, Joonas  wrote:

> Please do not judge by the Calc example - it is just a minimalistic
> "Hello World" type example for quickly showing how events are managed
> in Vaadin. Of course one should do such a trivial application (with no
> server-side needed at all and just a few lines of business logic) in
> just JavaScript - there is no need for any frameworks at all.
>
> For a more sophisticated analysis on communications, please read
>
> http://philipp-baerfuss-magnolia.blogspot.com/2010/08/why-vaadin-line-of-argument.html
> In this article Magnolia team has estimated that real world
> application can expect comparable number of ajax roundtrips both in
> GWT as in Vaadin. (Most of the data have to go back to server in any
> case).
>
> On Aug 15, 8:26 pm, Stefan Bachert  wrote:
> > Hi,
> >
> > I would avoid vaadin. Agreed that vaadin looks good out of the box,
> > vaadin falls back into the poor old fat-client architecture.
> > GWT supports a real responsive client-server architecture but vaadin
> > uses GWT like a display server.
> >
> > You can test the difference using the samplehttp://demo.vaadin.com/Calc
> >
> > Click a number and it tooks 300ms until the calc will display it.
> > This latency is a direct consequence of choosing the poor old
> > architecture.
> >
> > Stefan Bacherthttp://gwtworld.de
>  >
> > On 10 Aug., 09:02, Nathan Wells  wrote:
> >
> >
> >
> > > I would look into vaadin. We just looked at it recently, and I think
> > > it's a good alternative to straight GWT, but we can't switch because
> > > it's a pretty significant change.
> >
> > > On Aug 10, 5:23 am, Shawn Brown  wrote:
> >
> > > > > I'm looking to get this group's feedback before I present my
> findings
> > > > > to the team. What do you think?
> >
> > > > If open source is nice then go for gpl and ExtGWT (GXT).  If you
> don't
> > > > pay the commercial fee, then you have to open source your project I
> > > > believe.
> >
> > > > Shawn
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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



Re: Problem using Reflection and Casting objects on GAE

2010-08-16 Thread André Moraes
You could post here the solution that you used.

I done something like you, but it's wasn't user bound views.

In my case, i just had an History handler that checked what was the current
location and check if the location has any "navigators" (Navigators are
simple interfaces that contains a method navigate).

Then inside each navigator i coded the logic to load my presenter, its view
and event bus.

Then, for each application, i just register the navigators with the location
in the entry point.

Works very well.

Sorry for not telling this before, but I don't saw my approach as an
solution to your problem. :(

Bye,

-- 
André Moraes
Analista de Desenvolvimento de Sistemas
andr...@gmail.com
http://andredevchannel.blogspot.com/

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



Re: How to change the mapping in web.xml

2010-08-16 Thread Bruno Santos
the errors replace '/servlet/some' to '/myproject/some'

I was doing some tests, but did not work

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



Re: How to change the mapping in web.xml

2010-08-16 Thread Bruno Santos
Sorry, the errors are:




Error 404 NOT_FOUND

HTTP ERROR: 404NOT_FOUND
RequestURI=/servlet/somehttp://jetty.mortbay.org/";>Powered by
Jetty://
























[WARN] 404 - POST /servlet/some (127.0.0.1) 1399 bytes
   Request headers
  Host: 127.0.0.1:
  User-Agent: Mozilla/5.0 (X11; U; Linux i686; pt-BR; rv:1.9.2.8)
Gecko/20100722 Firefox/3.6.8
  Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
  Accept-Language: pt-br,pt;q=0.8,en-us;q=0.5,en;q=0.3
  Accept-Encoding: gzip,deflate
  Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
  Keep-Alive: 115
  Connection: keep-alive
  Cookie: JSESSIONID=rluj4i9ancqw
  Referer: http://127.0.0.1:/servlet/hosted.html?servlet
  X-GWT-Permutation: HostedMode
  Content-Type: text/x-gwt-rpc; charset=utf-8
  Content-Length: 126
  Pragma: no-cache
  Cache-Control: no-cache
   Response headers
  Content-Type: text/html; charset=iso-8859-1
  Content-Length: 1399

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

2010-08-16 Thread mig
Luis, the way you see it is completelly wrong. If you are looking only
for a way to encrypt data sent to the server, stop wasting time
researching 3rd party libraries, instead visit www.verisign.com, buy a
certificate and use SSL! There just is NO OTHER WAY to provide better
encryption for the data sent over the net, that could be implemented
on a javascript client. Reason is simple, if you would be able to
implement AES or some other symmetric cipher on the javascript client,
you simply would not be able to exchange the key for the cipher, just
because a secure, man in the middle proof asymmetric cipher CAN NOT be
implemented in pure javascript.
With all that said, you do not need SECURITY, you just need
ENCRYPTION. After you get it (SSL I mean) and get comfortable and
happy about encrypted data being sent to the server, you may run into
a situation, when a non authorized person, called a hacker or an
attacker, starts to execute services on you server via RPC, that he is
not supposed to have access to. Then you will realize, that despite
all the fancy encryption, you gotta start looking for a way to prevent
this. And maybe you will also realize, that security is not just
encryption.
Btw. if you still want to argue about whether acris-security is about
security or not, I suggest, you visit spring security forums and try
it there. Good luck trying to explain to them that Spring Security
actually isn't about security, it's just an "authentication
interface".

P.S.: Acris-Security is mainly about authorization, not
authentication...just to get the facts straight.

On 14. Aug, 17:22 h., Luis Daniel Mesa Velasquez
 wrote:
> The way i see it... i only care for security between the client and
> the server, meaning i don't want others to see what the client is
> doing or what the server is sending. If the user has vulnerabilities,
> it is not my responsability to secure every user's computer, therefore
> i only think having an encryption mean to send sensitive data is
> useful. It doesn't need to be fancy, sending a hash instead of the
> username/password would suffice. A means to make it expensive for an
> intruder to misrepresent someone, but as we all know, users leave
> computer to go to the bathroom and could however leave their computers
> available for eavesdropping. So you need to know nothing would be
> sufficient and choose a limit to what you will provide in terms of
> security. Protect data enough but don't be obsessed with it. Then
> comes the authentication and authorization issue, which deals only
> with validating the user is who he says he is or at least have a means
> to discern who is who and what they can do.
>
> So Acris really is an authentication interface to the authentication
> in the server. It has nothing to do with security. Authorization and
> authentication deals more with data integrity and role policies. It
> has a great way of delivering that interface to the client, and a
> clean programming paradigm.
>
> I don't build whole GWT apps, i add bits and pieces of it to whatever
> i develop in regular multi-page websites. If something is not going to
> be secure, i might as well send it on a regular Http request/response
> in the page, like a login screen and login credentials.
>
> Nothing is secure, just secure enough...
>
> On Aug 13, 5:23 am, Peter Simun  wrote:
>
> > Hi Greg,
>
> > why is more acceptable for you, that user will see whole application
> > (also the screen which is not allowed to use) rather than ONLY screens
> > that he is able to use.
> > Your argument becomes to me little bit funny: "tech support and UI
> > nightmare". If you have correctly setup user permissions, then no
> > extra support is necessary and I have no idea which UI nightmare you
> > mean.
>
> > Maybe you mean that UI nightmare, that you will have complex
> > application with 50 screen and normal user who is allowed to use only
> > 10 of them will consider your application as UI nightmare - because on
> > 80% of the screen he choose he will gets the message: "You do not have
> > permissions to use this screen, please contact tech support". Ou, and
> > this tech support you mentioned?
>
> > Yes, with your solution, you will need this kind of tech support and
> > hopefully you will work at first line support and you will tell the
> > users that they are not able to use the 80% of the screens because
> > they are only normal users, not super users.
>
> > And hopefully you will enjoy the question: "So, why I can see that
> > screens I cannot use?"
>
> > hmm?
>
> > And - about the "correct name" - it's security! because acris-security
> > project has much more features than "consistent UI", there is complex
> > session handling, synchronize sessionID between client->server in a
> > completly transparent way, ACL data level security, server side
> > security based on spring security for securing the serivces and
> > complex integration of this stuff into one consistent solution.
>
> > Peter
>
> > On 12. Aug

I need a little help with request builder

2010-08-16 Thread nacho
Well, the trouble is not exactly with request builder. The thing is
like this.

I have a class BinFileReader that in the constructor receives an url
an read it address file contents. And the class haves some methods,
like readString(), readInt, readByte, etc.

But, obviusly, first at all, to execute those methods, i need to have
the file readed using RequestBuilder, so when i execute this for
example:

BinFileReader fileReader = new BinFileReader("/mytext.txt");
String result = fileReader.readString(0, 10); // 0 = from, 10 = to

Could happen, and it happens, that the file is not allready readed,
and i don't have file contents, so readString method is not usefull.

My question, is, how could i build my BinFileReader so i dont have
this issue? Do i have to check if the file is readed, if don't put a
timer and try again, and over and over again till the file was readed?

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



Re: How to change the mapping in web.xml

2010-08-16 Thread Bruno Santos
The project does not work

-- 
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: Acris Security and App Engine

2010-08-16 Thread Peter Simun
Hello Scott,

first of all, you don't have to have a maven project if you are not
familliar with the maven, but its a good practice for managing all
dependencies and versions, etc.

I can recomends you to start with the really simple example (that is
what you are proposing - Maven, GWT, Eclipse):
http://acris.googlecode.com/svn/trunk/acris-showcase/

Just choose one of them, really simple one is acris-showcase-client-
core (contains also client & server code).

These 2 links will be your best friends for couple of hours:
http://code.google.com/p/acris/wiki/HowTo
http://code.google.com/p/acris/wiki/ProjectQuickStart

Whole building process is described there and if you have any
questions, please address them directly into acris group.

After that you can use acris-security project for handling the session
and for the security.

If you don't want to use maven, just download the jar-s (acris-
security, acris-server-components, acris-callbacks, corpis-dao-impl,
acris-client-core) and use them in your project. All current jars can
be downloaded here: 
http://acris.googlecode.com/svn/snapshot-repository/sk/seges/acris/
(always attach also the sources jar into your GWT project).

And about the App engine support. Yes, currently acris-security cannot
be used in app engine environment but this is taks in progress - we
would like to achieve and security implementation working on app
engine so it will be available soon.

Peter

On 13. Aug, 18:52 h., spierce7  wrote:
> I've been trying to find out more information about sessions in GWT,
> as I couldn't figure out how to get them to work, and something that I
> stumbled across is Acris, which has a Security implementation. I've
> been reading about it and I can't find detailed information on how to
> use maven to setup a gwt project, and I'm so confused as to how maven
> works, or what it's actual purpose is even. However, Acris is
> something I'm very interested in using.
>
> I was searching around trying to figure out how I could do this, and I
> happened across a post of someone telling someone that acris couldn't
> be implemented onto projects hosted with AppEngine. Is this true?
>
> Also, does anyone have some detailed steps as to how I setup Maven
> with GWT and Eclipse? I've installed maven on eclipse, but now (from
> what I gather, I'm taking a leap and concluding this) I have to do
> some setup in my pom.xml file. I don't know if this is before or after
> the creation of the project, but I can't figure out how to create a
> project either, so overall I'm very confused. I'd be thankful for any
> help at all in this area.
>
> ~Scott

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



Re: How to change the mapping in web.xml

2010-08-16 Thread Thomas Broyer

On 16 août, 17:39, Bruno Santos  wrote:
> I have to make the hosting of a project in a place where the mapping
> in the web.xml file in the '' of '' must
> begin with '/servlet', my question is how do this.
>
> For example, this:
>   
>     someservlet
>     myproject.server.SomeServiceImpl
>   
>
>   
>     someservlet
>     /myproject/some
>   
>
> It should look like this:
>   
>     someservlet
>     myproject.server.SomeServiceImpl
>   
>
>   
>     someservlet
>     /servlet/myproject/some
>   

And what happens if you "just do it"? (and of course change, in your
code, "/myproject/some" to "/servlet/myproject/some")

-- 
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: and instead of in RichTextAreaImplStandard

2010-08-16 Thread Ali
Thank you, I will try to find it.

Best wishes,
Ali

On Aug 14, 4:53 pm, jocke eriksson  wrote:
> I looked in to this months ago and i think the generated markup is browser
> specific. For firefox I think you can send a command to it so it only uses
> valid xhtml markup. I know that tiny MCE uses this approach. Sorry that i
> don't have this command at hands now.
>
> https://developer.mozilla.org/en/rich-text_editing_in_mozillaLook at the
> styleWithCss command
>
> Regards Jocke
>
> 2010/8/14 Ali 
>
> > Hi
>
> > Sorry if already asked, I didn't find it.
>
> > Is there any way to make RichTextAreaImplStandard to add  and 
> > instead of .
>
> > I looked at RichTextAreaImplStandard but it sends commands deep down
> > into JS.
>
> > Do you have any idea?!
>
> > Best wishes,
> > Ali
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google Web Toolkit" group.
> > To post to this group, send email to google-web-tool...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscr...@googlegroups.com
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.

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



Re: GWT Maven Plugin + codeServerPort

2010-08-16 Thread Hilco Wijbenga
On 16 August 2010 09:00, Thalles  wrote:
> Does nobody have an answer?

Try putting it in the logLevel field:


org.codehaus.mojo
gwt-maven-plugin

INFO' -codeServerPort  -logLevel 'INFO




This is a hack, of course, but that's how I set the bind address. I've
created a profile that does this because it will break gwt:compile
otherwise (gwt:compile requires a simple INFO).

P.S. Note the quotes!

-- 
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 javac compile error

2010-08-16 Thread brt56
All

When I compile my GWT project in eclipse it compiles. When I use the
command line with the ant build scripts I get a generic error

ant command line error

ant build script.






































Now If I don't call the javac_gwt target the project will compile. It
only errors when I make the call to javac_gwt


Error

HandlerManager.java:192: type parameters of H cannot be determined;
no unique maximal instance exists for type variable H with upper
bounds
H,com.test.web.clearing.client.event.downloader.GwtDownloadEventHander
[javac] return registry.getHandler(classType, index);
[javac]   ^
[javac] 1 error

-- 
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 Maven Plugin + codeServerPort

2010-08-16 Thread Thalles
Does nobody have an answer?

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



How to change the mapping in web.xml

2010-08-16 Thread Bruno Santos
I have to make the hosting of a project in a place where the mapping
in the web.xml file in the '' of '' must
begin with '/servlet', my question is how do this.

For example, this:
  
someservlet
myproject.server.SomeServiceImpl
  

  
someservlet
/myproject/some
  

It should look like this:
  
someservlet
myproject.server.SomeServiceImpl
  

  
someservlet
/servlet/myproject/some
  

-- 
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: Making GWT look good...

2010-08-16 Thread Arthur Kalmenson
> about #2 there is absolutely no documentation on css and uibinder from
> a designer point of view.
> For example any half decent designer nowadays would use div and span
> to create nice layout, while all gwt panels are still using nested
> tables.

You can definitely just do most of your layout with divs and spans and
just put the GWT widgets within those tags. UiBinder makes that much
easier. Also, most of the newer layout widgets, the *Layout widgets,
are now div and CSS based. For example:
http://google-web-toolkit.googlecode.com/svn/javadoc/2.1/com/google/gwt/user/client/ui/DockLayoutPanel.html

I definitely agree that style is subjective. Personally, I don't like
the desktop styles. I prefer a more web based style. There's lots of
great examples of good looking web applications on
http://www.smashingmagazine.com/ and http://net.tutsplus.com/

--
Arthur Kalmenson



On Thu, Aug 12, 2010 at 8:11 AM, Uberto Barbini  wrote:
> We're developing a "web 2.0" style app with gwt.
> I cannot post url here (not yet) but the goal is something like
> basecamp or twitter, nothing to do with desktop style widget (also
> cool ones like vaadin).
>
> Our experience so far:
> 1. UiBinder is much better than try to create our own widget by code.
> 2. it's still much harder to get good looking results with GWT than
> with plain html with Jquery.
> 3. overall gwt is worth the pain 10 times if you add snappiness of
> resulting application, debug, and code reuse.
>
> about #2 there is absolutely no documentation on css and uibinder from
> a designer point of view.
> For example any half decent designer nowadays would use div and span
> to create nice layout, while all gwt panels are still using nested
> tables.
>
>
> cheers
> Uberto
>
> On Wed, Aug 11, 2010 at 7:40 PM, Marcelo Magno  wrote:
>> Worth to mention their debug mode where you can find design problems.
>>
>> Try to click on the "analyse layouts" button:
>> http://demo.vaadin.com/sampler/?debug=true
>>
>> so +1 for Vaadin
>>
>> Marcelo Magno
>>
>>
>>
>> On Wed, Aug 11, 2010 at 1:17 PM, Steve Wart  wrote:
>>>
>>> Vaadin looks good, and it makes sense to keep the client-side load
>>> light, especially with touch devices becoming prevalent.
>>>
>>> But it doesn't seem great (so far) for touch UI work, and I think the
>>> "everything in Java" mantra is sub-optimal. While Vaadin has hooks for
>>> CSS and hand-crafted JavaScript, my ideal toolset would better support
>>> the developers who can make these technologies sing.
>>>
>>> On Wed, Aug 11, 2010 at 7:42 AM, Kevin Qiu 
>>> wrote:
>>> > +1 for Vaadin.
>>> > Their widgets are very polished and professional. GXT and SmartGWT are
>>> > fine
>>> > but they're too desktop-looky, not Web2.0 looky...
>>> >
>>> >
>>> > On Mon, Aug 9, 2010 at 4:03 PM, marius.andreiana
>>> >  wrote:
>>> >>
>>> >> Hi Chi,
>>> >>
>>> >> On Aug 9, 10:23 pm, Chi H  wrote:
>>> >> >  * Pagination is the standard solution to the 'large number of
>>> >> > entities' problem.  However, there is a usability cost to pagination.
>>> >> > It would be really nice to get rid of the pagination and just use a
>>> >> > scrollbar.   If you used the approach of SlickGrid (http://
>>> >> > wiki.github.com/mleibman/SlickGrid/), where you only rendered what
>>> >> > was
>>> >> > visible on the screen, you can render large numbers entities without
>>> >> > the need for pagination.
>>> >>
>>> >> How will search engines index all the content in this case?
>>> >>
>>> >> The SlickGrid widget doesn't work at all if JS is not enabled.
>>> >>
>>> >> Thanks
>>> >>
>>> >> --
>>> >> You received this message because you are subscribed to the Google
>>> >> Groups
>>> >> "Google Web Toolkit" group.
>>> >> To post to this group, send email to
>>> >> google-web-tool...@googlegroups.com.
>>> >> To unsubscribe from this group, send email to
>>> >> google-web-toolkit+unsubscr...@googlegroups.com.
>>> >> For more options, visit this group at
>>> >> http://groups.google.com/group/google-web-toolkit?hl=en.
>>> >>
>>> >
>>> > --
>>> > You received this message because you are subscribed to the Google
>>> > Groups
>>> > "Google Web Toolkit" group.
>>> > To post to this group, send email to
>>> > google-web-tool...@googlegroups.com.
>>> > To unsubscribe from this group, send email to
>>> > google-web-toolkit+unsubscr...@googlegroups.com.
>>> > For more options, visit this group at
>>> > http://groups.google.com/group/google-web-toolkit?hl=en.
>>> >
>>>
>>> --
>>> 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,

Re: How to integrate an open source web app into a GWT application

2010-08-16 Thread suersh babu
use div give id so that each id display differerent different information .



On Thu, Aug 5, 2010 at 3:19 PM, Anita  wrote:

> Hi,
>
> I’m new on GWT and i’m trying to do something but don´t know how…. My
> app has 2 panels (HorizontalSplitPanel and VerticalSplitPanel), in a
> way that i have my window divided in 3 parts. In each part i want 3
> differents app to be runing. One of them is an open source web app,
> written in Java/JSP(no GWT), but i don´t know how to integrate it, in
> a way that i can access de events generated by it. I’m a little lost
> and any help would be very usefull.
> Thank in advance.
> Regards,
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>


-- 
your's truely

suresh babu.g

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



Re: How to integrate an open source web app into a GWT application

2010-08-16 Thread Bakul
Create your main HTML/JSP which will have html frame set code like
this:










urlOfOpenSourceExistingApp : should Points to your existing open
source web url
urlOfGWTApp: should point to your GWT Application
urlOfThirdApp: should point to third application

-Bakul




-- 
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: why we probably won't use GWT for a large UI project

2010-08-16 Thread Joonas
Please do not judge by the Calc example - it is just a minimalistic
"Hello World" type example for quickly showing how events are managed
in Vaadin. Of course one should do such a trivial application (with no
server-side needed at all and just a few lines of business logic) in
just JavaScript - there is no need for any frameworks at all.

For a more sophisticated analysis on communications, please read
http://philipp-baerfuss-magnolia.blogspot.com/2010/08/why-vaadin-line-of-argument.html
In this article Magnolia team has estimated that real world
application can expect comparable number of ajax roundtrips both in
GWT as in Vaadin. (Most of the data have to go back to server in any
case).

On Aug 15, 8:26 pm, Stefan Bachert  wrote:
> Hi,
>
> I would avoid vaadin. Agreed that vaadin looks good out of the box,
> vaadin falls back into the poor old fat-client architecture.
> GWT supports a real responsive client-server architecture but vaadin
> uses GWT like a display server.
>
> You can test the difference using the samplehttp://demo.vaadin.com/Calc
>
> Click a number and it tooks 300ms until the calc will display it.
> This latency is a direct consequence of choosing the poor old
> architecture.
>
> Stefan Bacherthttp://gwtworld.de
>
> On 10 Aug., 09:02, Nathan Wells  wrote:
>
>
>
> > I would look into vaadin. We just looked at it recently, and I think
> > it's a good alternative to straight GWT, but we can't switch because
> > it's a pretty significant change.
>
> > On Aug 10, 5:23 am, Shawn Brown  wrote:
>
> > > > I'm looking to get this group's feedback before I present my findings
> > > > to the team. What do you think?
>
> > > If open source is nice then go for gpl and ExtGWT (GXT).  If you don't
> > > pay the commercial fee, then you have to open source your project I
> > > believe.
>
> > > Shawn

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



RFE: Allow constants defined in classes not residing in a client package to be used

2010-08-16 Thread Lothar Kimmeringer
Hi,

is it possible to extend the GWT-compiler, that you can use constants
being defined in classes that aren't client-classes to be used.

In my client classes I often want to use functionalities on the server
that are configured using magic number (int type, etc.) where a lot
of constants already exist increasing readability and avoid typos.

At the moment I need to use the numbers instead of the constants
because I end up with the famous "No source code is available
for type ...". Maybe the compiler can check if only final static
primitives are accessed (for a start) and just copy the values of
these fields to the client-source while compiling and just forget
about the fact that a class outside the client-package was used.


Best regards

Lothar Kimmeringer

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



Re: Problem using Reflection and Casting objects on GAE

2010-08-16 Thread AlexG
Hi again,

I solved the problem, and now it works, as intended :)
If somebody has any questions, how this works, just
eMail me.

Greets
Alex


On 16 Aug., 15:37, AlexG  wrote:
> Hi,
>
> first thanks for your fast reply.
> I think this should work. Perhaps I should just
> give more background information.
>
> The App is build using the MVP Pattern. I have one
> "main"-Page, with 3 Panels (3 div-elements in the .html)
>
> Two of the three panels will never change during runtime. These
> contains the menu control-widgets. If i select something,
> then the "content"-Panel should load the requestet UI (Module).
>
> This means, it should load just a new MVP-View via a new MVP
> presenter.
> The views and presenters are seperated in extra Projects in Eclipse,
> just
> to make it easy to maintain the App.
>
> So I definitely don´t want anything in one Project, or any widget in
> one onModuleLoad(). I also don´t want lots of if´s to decide, which
> view should be shown, because the app must be highly maintainable,
> reusable
> and extensable.
>
> By-the-way, the way I do it, works, if I code it with many if´s. But I
> think
> this is a "dirty" solution, and not what I want.
>
> Thanks, for your suggestions anyway. Maybe you got asnother idea??
>
> Thanks.
>
> Greets Alex
>
> On 16 Aug., 14:49, André Moraes  wrote:
>
> > This aproach will not work, since after compiled GWT generates pure
> > JavaScript.
>
> > You could do the following:
>
> > 1- Create an JSP page (index.jsp) and use this page as your GWT hosted page.
> > 2- When rendering the page, check the name of the module (not the name of
> > the class) that you want to load.
> > 3- Create one Module.gwt.xml file for each of the user interface that you
> > want to load.
> > 4- When renderinhg the script tag that loads your selection script, change
> > the name of your selection script based on the information that you
> > retreived from the datastore.
>
> > This options generate lots of files in your GAE application, because each UI
> > will be compiled independ of another, but its fast.
>
> > Another option will be:
>
> > 1- Write your GWT application with all the UI and only one entry point
> > class.
> > 2- Create an jsp and define a cookie with the name (not the classname, GWT
> > doesn't have reflection) of the UI that you want to load.
> > 3- Inside your onModuleLoad function, write a series of if's that will check
> > this cookie and load the UI that you want.
> > 4- Use the GWT.async (code-splitting) to load the UI that you want, this
> > will cost another round-trip but will download much less code. If you don't
> > do that, the browser will download all the code for all the UI.
>
> > Hope it helps.
>
> > --
> > André Moraes
> > Analista de Desenvolvimento de Sistemas
> > andr...@gmail.comhttp://andredevchannel.blogspot.com/
>
>

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



Re: Building two war-files with Maven using different web.xml

2010-08-16 Thread Stephan T
I managed to make it work with the assembly plugin. Maybe not a state
of the art maven konfiguration, but it seems to work :)

This produces three war-files. The original which I won't be using
anymore, and two additional war files with the extension int and ext.

added this to the pom:

maven-assembly-plugin


make-assembly-external



assembly-descriptor-external.xml


package

attached



make-assembly-internal



assembly-descriptor-internal.xml


package

attached





and this is the assembly-descriptor-external.xml:
http://maven.apache.org/plugins/maven-assembly-plugin/assembly/
1.1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-
plugin/assembly/1.1.0 http://maven.apache.org/xsd/assembly-1.1.0.xsd";>
ext
false

war




../${project.artifactId}/target/${project.artifactId}-$
{project.version}/

**


WEB-INF/web.xml

/





../${project.artifactId}/src/main/web/ext/web.xml
/WEB-INF





On 12 Aug, 20:17, "dane.molotok"  wrote:
> Have you thought about using themaven-assembly-plugin to generate a
> secondary end-state? Just an idea.
>
> On Aug 12, 6:23 am, Stephan T  wrote:
>
> > I need to build two war files with different web.xml files becuase of
> > different servlet filter configurations depending on which server it
> > will be deployed on.
>
> > It will be deployed on two server simultaneously. I'd rather build two
> > war files during one build, because that will always be the scenario.
> > Feels a bit quirky to fiddle with profiles etc.
>
> > I have successfully managed to get something similar working when
> > building another artifact in the project using "executions", but that
> > artifact is a jar, and I can't seem to get this to work with themaven
> > war plugin.
>
> > This is the error I get now::
> > Error assembling WAR: Deployment descriptor: W:\trunk\web\target
> > \web-2.2.4-SNAPSHOT\WEB-INF\web.xml does not exist.
>
> > And this is a snippet from my pom.xml which produces the error:
> >   
> >         org.apache.maven.plugins
> >         maven-war-plugin
> >         
> >                 
> >                         package-int
> >                         package
> >                         
> >                                 war
> >                         
> >                         
> >                                 war
> >                                 war/WEB-INF/web.xml
> >                         
> >                 
> >                 
> >                         package-ext
> >                         package
> >                         
> >                                 war
> >                         
> >                         
> >                                 war
> >                                 src/main/web/ext/web.xml
> >                         
> >                 
> >     
> >   
>
> > I also realize that this hasn't got anything with GWT to do :) But
> > since this mail list is heavy on webapp/java knowledgable people and
> >mavenis often used to build these kind of products, I guess someone
> > might know...
>
> >  // S
>
> > On 6 Aug, 19:14, andreas  wrote:
>
> > > I don't think you can do that in one build.
>
> > > But you can use profiles to have two different builds. Of course you
> > > will have to build twice, once for each profile but with that you'll
> > > have the different builds. I use profiles to run hosted_mode target
> > > with fake service servlet implementations and web.xml with appropriate
> > > mapping and no security constraints. The normal build will use the
> > > deploy web.xml with real servlet mapped and security constraints.
>
> > > For me this works pretty good and you will not have to alter files
> > > (especially pom.xml) for this or that and hence get messy conflicts
> > > with your version system.
>
> > > Regards,
>
> > > Andreas
>
> > > On 6 Aug., 19:02, "dane.molotok"  wrote:
>
> > > > I've thought

GWT war file doesn't load in IE en Chrome

2010-08-16 Thread Klaas Roobroeck
I builded a war file from my GWT project and deployed it on my Tomcat.
When I load the webpage in Firefox everything works fine...but for IE
en Chrome I just get a blank 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: Problem using Reflection and Casting objects on GAE

2010-08-16 Thread AlexG
Hi,

first thanks for your fast reply.
I think this should work. Perhaps I should just
give more background information.

The App is build using the MVP Pattern. I have one
"main"-Page, with 3 Panels (3 div-elements in the .html)

Two of the three panels will never change during runtime. These
contains the menu control-widgets. If i select something,
then the "content"-Panel should load the requestet UI (Module).

This means, it should load just a new MVP-View via a new MVP
presenter.
The views and presenters are seperated in extra Projects in Eclipse,
just
to make it easy to maintain the App.

So I definitely don´t want anything in one Project, or any widget in
one onModuleLoad(). I also don´t want lots of if´s to decide, which
view should be shown, because the app must be highly maintainable,
reusable
and extensable.

By-the-way, the way I do it, works, if I code it with many if´s. But I
think
this is a "dirty" solution, and not what I want.

Thanks, for your suggestions anyway. Maybe you got asnother idea??

Thanks.

Greets Alex


On 16 Aug., 14:49, André Moraes  wrote:
> This aproach will not work, since after compiled GWT generates pure
> JavaScript.
>
> You could do the following:
>
> 1- Create an JSP page (index.jsp) and use this page as your GWT hosted page.
> 2- When rendering the page, check the name of the module (not the name of
> the class) that you want to load.
> 3- Create one Module.gwt.xml file for each of the user interface that you
> want to load.
> 4- When renderinhg the script tag that loads your selection script, change
> the name of your selection script based on the information that you
> retreived from the datastore.
>
> This options generate lots of files in your GAE application, because each UI
> will be compiled independ of another, but its fast.
>
> Another option will be:
>
> 1- Write your GWT application with all the UI and only one entry point
> class.
> 2- Create an jsp and define a cookie with the name (not the classname, GWT
> doesn't have reflection) of the UI that you want to load.
> 3- Inside your onModuleLoad function, write a series of if's that will check
> this cookie and load the UI that you want.
> 4- Use the GWT.async (code-splitting) to load the UI that you want, this
> will cost another round-trip but will download much less code. If you don't
> do that, the browser will download all the code for all the UI.
>
> Hope it helps.
>
> --
> André Moraes
> Analista de Desenvolvimento de Sistemas
> andr...@gmail.comhttp://andredevchannel.blogspot.com/

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



Re: Problem using Reflection and Casting objects on GAE

2010-08-16 Thread André Moraes
This aproach will not work, since after compiled GWT generates pure
JavaScript.

You could do the following:

1- Create an JSP page (index.jsp) and use this page as your GWT hosted page.
2- When rendering the page, check the name of the module (not the name of
the class) that you want to load.
3- Create one Module.gwt.xml file for each of the user interface that you
want to load.
4- When renderinhg the script tag that loads your selection script, change
the name of your selection script based on the information that you
retreived from the datastore.

This options generate lots of files in your GAE application, because each UI
will be compiled independ of another, but its fast.

Another option will be:

1- Write your GWT application with all the UI and only one entry point
class.
2- Create an jsp and define a cookie with the name (not the classname, GWT
doesn't have reflection) of the UI that you want to load.
3- Inside your onModuleLoad function, write a series of if's that will check
this cookie and load the UI that you want.
4- Use the GWT.async (code-splitting) to load the UI that you want, this
will cost another round-trip but will download much less code. If you don't
do that, the browser will download all the code for all the UI.

Hope it helps.


-- 
André Moraes
Analista de Desenvolvimento de Sistemas
andr...@gmail.com
http://andredevchannel.blogspot.com/

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



Re: How to integrate an open source web app into a GWT application

2010-08-16 Thread Anita
Hello Aditya,

My application uses frames in way that i have my window divided in 3.
In one part, i want to reuse an existing application, that is not a
GWT application. The other parts are also mine, and are GWT. The
application that i want to reuse is a web application, developed with
js (client) and java(server). The point how can i integrate this
existing web application??Is open source, so i have the code, but i'm
not sure how to use it. ¿Is it more clear now?Please, if you need to
know something more, ask me I'm a little lost with it and if you
could just give some advice or something i would appreciate a lot!!!
Thank you very much!!!

On 9 ago, 12:12, aditya sanas <007aditya.b...@gmail.com> wrote:
> hello,
>
> @anita : plz be specific with your requirement first of all and give some
> more information that which type of web app that you wished to integrate
> with GWT
>
> it is possible ofcourse but without giving complete information it is hard
> to explain wht you want...
>
> --
> Aditya
>
> On Mon, Aug 9, 2010 at 1:41 PM, Anita  wrote:
> > Hi Abhiram,
>
> > Thank you very much for your answering!!! but i'm not sure that i
> > understand your suggestion :(
> > The application that already exists has a client side(js) and a server
> > side(java servlets)... So you're suggesting that i should embed the
> > client(js) part in html and make a html widget?
>
> > Thank you very much!
> > An
>
> > On 9 ago, 09:25, abhiram wuntakal  wrote:
> > > Hi,
>
> > >   I am really not sure if this might be totally wrong. But u can take
> > this
> > > as a suggestion from where you can start the solution. Embed the JSP code
> > in
> > > html and make that part of a html widget. You can place this html widget
> > in
> > > one of the panels. Then u can build any other GWT sub application in the
> > > other sub-panels.
>
> > >   Not sure if this is exactly right, but I think this shud work..
>
> > > HTH,
> > > Abhiram
>
> > > On Mon, Aug 9, 2010 at 12:51 PM, Anita  wrote:
> > > > Please, could anyone help me??
> > > > 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-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.



Problem using Reflection and Casting objects on GAE

2010-08-16 Thread AlexG
Hi everybody,

I hope this is right here in the GWT-forum.
OK, what I want to build is a GWT/GAE app, that loads dynamically
different UI´s,
depending on, what the user wants to do. These are not only UI´s these
are Modules, with
there own services and so on. And I want dynamically load these
Modules at runtime!!

So, what I did was the following:

I have datastore-entries, with the different class-names of the
Modules, stored as Stirngs.
Something like this:

public class Module1 implement Serializable, MyModuleInterface{

service xy = new Service .

public void start(){}   starts the Module (similar to
onModuleLoad())
}


public abstract Interface MyModuleInterface extends Serializable{
public abstract void start()
}


So, now what I do on the server is, I read the String from the
Datastore, and use reflection, to get the class of
the module. My Service implementation looks lioke this:

public myServiceImpl{

MyModuleInterface myObject = (MyModuleInterface)
Class.forName(String).newInstance

}

I always get an error at this line, it´s a a java castException. I don
´t know why this doesn´t work ar all.

I hope somebody can help me with this.

Thanks a lot.

Greets Alex

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



404 while accessing a remote service

2010-08-16 Thread MArtin Schumacher
Hello everyone,

I try to setup a project with gwt, tomcat, maven, spring in eclipse.
That's really hard stuff.

At least I got the server running - without syncing all static
contents or libs from the pom.xml. But that's ok right now.

I cannot access my remote service. Everytime I get a 404:


HTTP Status 404 - my-viewer/my.viewer.web.gwt.MyViewer/core

type Status report

message /my-viewer/my.viewer.web.gwt.MyViewer/core

description The requested resource (/my-viewer/
my.viewer.web.gwt.MyViewer/core) is not available.
-

the web.xml looks like this: http://pastebin.org/545314

my remoteservice (with Interface) looks like this: http://pastebin.org/545338

my MyViewer.gwt.xml looks like this: http://pastebin.org/545354

and my my.viewer.web.gwt.client.MyViewer Class looks like this:
http://pastebin.org/545355

I cannot see where the problem is. Does anyone else?

Martin

-- 
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: Making GWT look good...

2010-08-16 Thread ChrLipp
I appreciate the direction the GWT team is heading.

I also would like to see increased support for mobile clients on GWT
too with "native" controls (HTML5) for the major plattforms (android,
iPhone, ..)

Samples could be found under
- http://jquerymobile.com/designs/
- http://www.sencha.com/products/touch/design.php
- http://www.phonegap.com/apps
- http://www.appcelerator.com/products/titanium-mobile-application-development/

HTML5 Development kits are developed everywhere, programming needs in
JavaScript is increasing, I would like to stick to GWT and also being
able to develop HTML5 mobile apps.

Kind regards, CL

On 6 Aug., 14:44, Chris Ramsdale  wrote:
> Hey GWT(ers),
>
> I've heard from many of you that GWT apps simply don't look that good out of
> the box, and styling the default app would go a long way. We couldn't agree
> more. As some of you know, GWT 2.1 (with the help of Spring Roo 1.1) will
> generate a full-fledged scaffolding app that users can then go customize,
> and build on top of. The current incarnation looks like this:
>
> http://gwt-bikeshed.appspot.com/Scaffold.html
>
> And while it's a start, it's long from being...well...good looking. I'm
> working with some UI/UX people back at Google, but in the spirit of openness
> I wanted to get feedback from the real users -- you. Specifically we're
> looking for "business" apps that are a good example of UI and/or UX. Apps
> that allow you to track tasks, expenses, travel, projects, etc.
>
> If you have ideas, simply post a link in a follow-up to this thread.
>
> Cheers,
> -- Chris

-- 
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.04 + Eclipse Galileo

2010-08-16 Thread Abdullah Shaikh
Hi kirtcathey,

Run it as "Web Application" instead of "GWT Application"

- Abdullah

On Mon, Aug 16, 2010 at 3:40 AM, kirtcathey  wrote:

> Tried the new project thing and same result but you lead me in the
> right direction. Obviously not in dev mode since it is trying to
> compile for deployment.
> Thank you.
>
> On Aug 15, 8:14 pm, István Szoboszlai  wrote:
> > Hello!
> >
> > Are you not trying to use an old launch config?
> > Try creating a new GWT project, and see what happens!
> > I don't think though there is a -style argument for devmode.
> > The -style argument I know is used for specifying javascript output style
> > for gwt compiler.
> >
> > Hope that helps.
> >
> > Best Regards
> > - István Szoboszlai
> > istvan.szobosz...@inepex.com | inepex.com
> >
> > On Sun, Aug 15, 2010 at 8:22 AM, kirtcathey 
> wrote:
> > > Hi.
> >
> > > Every time I try to run my application, the server doesn't start and
> > > stops with an error: "Unknown argument: -style"
> >
> > > Have searched, but nothing yet. Any ideas?
> >
> > > --Kirt
> >
> > > --
> > > 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.



Re: Classloader problem

2010-08-16 Thread hbf
Unfortunately, just adding these two libraries (see previous post) did
not do the trick. Tika uses a lot of other libraries (for extraction
from PDF files, etc.) and classes from the latter libraries are not
found due to the class loader configuration.

What did work for me is to add the following line somewhere in the
startup code (in the servlet context listener in my case):

 
Parser.class.isAssignableFrom(Class.forName("org.apache.tika.parser.asm.ClassParser"));

Without this,

  final Iterator it =
ServiceRegistry.lookupProviders(org.apache.tika.parser.Parser.class);
  while (it.hasNext())
  {
System.err.println(it.next().getClass());
  }

produces no results; with the above line, I see all parsers from Tika.
(ClassParser is one such parser. It was not enough to simply define a
ClassParser instance "ClassParser dummy".)

Kaspar

On Aug 13, 2:48 pm, hbf  wrote:
> I added the two libraries to the "Classpath" tab (under "Bootstrap
> Entries") and this works like a charm!
>
> Thanks for your help, cokol and Thomas!
> Kaspar
>
> On Aug 13, 12:40 pm, cokol  wrote:
>
>
>
> > hi, when you put something into WEB-INF/lib folder, the library is
> > loaded to the classpath of the servlet container regardless if its on
> > eclipse classpath or not. if you dont want to roll out the library
> > with the war file or it resides somewhere else than WEB-INF/lib - you
> > can still add the jar to eclipse classpath manually, so just do it.
>
> > you can also put this special jar on servlet container's classpath
> > when starting it, do it from a context menu on the root project ->
> > Run... -> Run As... then ensure "Google Web Toolkit" is selected on
> > the right menu and choose the "Classpath" tab on the right window
> > panel, then add the jar there manually and click "Run"
>
> > On 13 Aug., 12:00, hbf  wrote:
>
> > > Hi everybody,
>
> > > I am using the Apache Tika libraries [1] in my GWT project. All JUnit
> > > test pass fine but in hosted mode, Tika does not find any parsers.
> > > I've checked the source and see that they use the ServiceRegistry [2]
> > > to find parsers, and in hosted mode, none are found.
>
> > > When I put the Tika JARs into project/war/WEB-INF/lib/, Tika finds all
> > > parsers in hosted mode, but I am not so happy with this as I am using
> > > Maven to manage dependencies (and mvn eclipse:eclipse together with
> > > the GWT Eclipse Plugin).
>
> > > Tika offers me to pass a class loader to the ServiceRegistry. Is there
> > > a way I can find a suitable class loader?
> > > I have tried Thread.currentThread().getContextClassLoader() (the
> > > standard one) and its parent without success.
>
> > > Any ideas?
>
> > > Thanks in advance,
> > > Kaspar
>
> > > [1]http://tika.apache.org/download.html, version 0.8-SNAPSHOT
> > > [2]http://download.oracle.com/javase/1.4.2/docs/api/javax/imageio/spi/Se...

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



Multiple interface and their implementation

2010-08-16 Thread Deepak Singh
Hi All,

I have two modules in my project both having seperate client package and
same server package. Module A is having general project structure as client,
server, shared folders. Module B is having one client package and it shares
the same server package of A. I am using 2.1 with uibinder. All
configuration is done and working.
I have one uibinder.ui.xml and its corresponding uibinder.java in module B.
I need to make a server side call from uibinder.java. So wat i did is, i
create another interface, interfaceAsync in client package of module B and
one interfaceImpl in server package.

Now i instantiate interfaceAsync in uibinder.java class and use it to call
method in interfaceImpl, it compiles and run fine but when i click the
button to call server side method then it does not invoke the method in
interfaceImpl. Simply the call does not go to the method in the
interfaceImpl so i always get null result from server.

Any suggestion pls.

Also is there any problem in project architecture ?

-- 
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: Expose URL as REST service how?

2010-08-16 Thread Harald Pehl
Hi,

the Restlet guys have written a little tutorial which might be
helpful:
http://wiki.restlet.org/docs_2.0/13-restlet/21-restlet/318-restlet/303-restlet.html

- Harald

On 13 Aug., 20:05, Thamizharasu S  wrote:
> Hi,
>
> Thanks for the quick answer. I want to deply my GWT app in GAE. is
> there any document for reference or could you help me on this to
> achieve?
>
> - Thamizharasu S
>
> On Aug 13, 10:51 pm, lineman78  wrote:
>
>
>
> > REST is provided by most app servers in the form of a reference
> > implementation of JSR-311.  Glassfish uses Jersey, JBoss RESTEasy.
> > Most app servers bundle support in one way or another now.  Some GWT
> > people have found RESTlet easy to use also.  The Jersey users manual
> > is very in-depth and ought to get you going, but the deployment
> > descriptor will change depending on implementation.
>
> >https://jersey.dev.java.net/nonav/documentation/latest/user-guide.html
>
> > On Aug 13, 11:38 am, Thamizharasu S  wrote:
>
> > > Hi All,
> > > I am evaluating GWT for my new project which is going to be started
> > > shortly. I have a requirement with REST support.
>
> > > For example, I have a list of users. If I click on any one the user,
> > > the details of the user will be shown in a different view.
>
> > > I need to expose this URL,http://sample.com/user/123asaREST
> > > service.
>
> > > If anyone try to access this URL directly, the particular user details
> > > should be shown.
>
> > > I don't know how to achieve this using GWT. I am using RPC service to
> > > fetch the details of the user from the server.
>
> > > Can any one help me on this?
>
> > > - Thamizharasu S

-- 
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: Script tag dynamic loading

2010-08-16 Thread Vincent COROLLEUR
Thx you Cokol for your proposal but my project is confidential.

If you wanna give a try by yourself, you just have to paste this code
in a whatever project.

ScriptElement script1 = Document.get().createScriptElement();
script1.setType("text/javascript");
script1.setSrc("http://maps.google.com/maps?
file=api&v=2&sensor=false&key=ABQIpOR5tulUc5y1R6lOKFkbpRTwM0brOpm-
All5BF6PoaKBxRWWERTqbaRJ6lpQdSlaltvv3tD-fLXwvQ");

Document.get().getElementsByTagName("head").getItem(0).appendChild(script1);

ScriptElement script2 = Document.get().createScriptElement();
script2.setType("text/javascript");

script2.setSrc("http://mapstraction.googlecode.com/svn/trunk/source/
mxn.js?(google)");

Document.get().getElementsByTagName("head").getItem(0).appendChild(script2);

Regards,

Vincent

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