Re: gwt refresh

2011-06-12 Thread lemaiol
Maybe the answer to your question is this:
Scheduler.scheduleFixedDelay()

Anyway, try to be more specific :)

cheers,
Berto

On Jun 12, 5:32 am, Navindian navind...@gmail.com wrote:
 I have a google map embedded from a javascript. I need to call refresh the
 markers status method of javascript for every x seconds.

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



Re: how to pass hash map to native java script method

2011-06-12 Thread rsutton
My Apologies and thank you Thomas. This is perfect. I failed to see
that you had added the alternate code to the quote.

Thanks again.

Robert.

On Jun 11, 1:32 am, Thomas Broyer t.bro...@gmail.com wrote:
 Wouldn't it be easier to rewrite your openReportWindow in Java rather than
 JSNI?

 On Thursday, June 9, 2011 3:19:05 AM UTC+2, rsutton wrote:

    var form = document.createElement(form);

 FormElement form = Document.get().createFormElement();

    form.setAttribute(method, post);

 form.setAttribute(method, post);
 or
 form.setMethod(post); (would be the equivalent of form.method='post' in
 JS)

    form.setAttribute(action, action);
      // setting form target to a window named
  'formresult'
    form.setAttribute(target, _blank);
      for (var i=0; ivalues.length; i++) {

 for (Map.EntryString, String entry : values) {

         var hiddenField = document.createElement(input);

 InputElement hiddenField = Document.get().createHiddenInputElement();

                  hiddenField.setAttribute(name, values[i].name);

 input.setName(entry.getKey());

               hiddenField.setAttribute(value, values[i].value);

 input.setValue(entry.getValue());

                  form.appendChild(hiddenField);

 form.appendChild(hiddenField);

    }
    document.body.appendChild(form);

 Document.get().getBody().appendChild(form);

    form.submit();

 form.submit();

    document.body.removeChild(form);

 form.removeFromParent(); // this is a very handy shortcut provided by GWT!   
 }-*/;

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



Re: Basic Strategies for Using GWT Outside of GAE

2011-06-12 Thread Ed
Migration Complete!
Customer's are very Happy.
Google Team - Thanks for all the support and this great resource.

e

On Fri, Jan 21, 2011 at 3:05 PM, Ed ej19...@gmail.com wrote:


 On Fri, Jan 21, 2011 at 2:17 PM, Jeff Chimene jchim...@gmail.com wrote:

 On 01/21/2011 11:28 AM, Ed wrote:
 
  Hi Jeff,
 
  Good question.
 
  We are looking for a look and feel that GWT provides, also it keeps us
  from developing js libraries that are custom for delivering the
  presentation layer which GWT does very well.
 
  We are migrating from html template's  to a more modern architecture
  to give our users a new face. I guese we could of used jQuery to ajax
  things up.

 So there are two selection criteria: AJAX and widgets?

 Yea, our back-end is java so we have some experience.


 
  I think we are wondering if it would be best to stick to plain ol GWT
  or use something like GWTEXT or some of the other widget libraries.

 If you search the list archives, you'll find plenty of opinions on that
 criterion.


 Just did, thanks based on what i have found, looks like we will stay away
 from third party implementations since the release intervals are so close
 for GWT.


 
  The ext libs provide alot of widget functionality, but there has to be
  some compatibility issues lurking around the corner.



 Ibid.



 
  We have  a working interface now using a combination of GWT and html
  loaded into an iFrame, which is a worker area for user entry into the
  db.
 
  While we have concentrated on a staged implementation migrating the UI
  first then we can concentrate on the backend.



 Agreed. I think you'll also find the MVP path a useful upgrade. I ported
 an app to GWT from Perl. Splitting out the view implementation proved a
 worthwhile refactoring. You should also investigate Gin. It will prove
 quite helpful when it comes time to mock certain behavior before it's
 ported/rewritten.


 That is very helpful information,  we were looking at MVP and Gin.
 We will  mavenize, we are using ant now.


 
  Your comment is appreciated, surprising but welcome.  When we
  investigated migration plans and an update to the legacy system we got
  stuck on GWT.



 It sounds like you've already made the decision to move to GWT. You
 should also consider the development benefits that GWT provides
 (leverage Java to provide a development/testing platform). This means
 installing Eclipse and the Google Plugin for Eclipse.

 IMNSHO, you should discard the JS prohibition. It will only prove an
 impediment. Although there is an argument to be made for graceful
 degradation in the absence of JS, it looks as though your app will not
 work as intended in the absence of JS. On that note, you should consider
 the effect this decision will have on your customers who don't/won't
 upgrade their browsers. You may be in for some annoying surprises when
 you discover that your app doesn't function as intended in your
 Important Customer's IE6 browser.


 The school systems are current version for IE in most cases, not many macs
 in k-12, the off-site users are on their own, if an off-site user needs to
 access the app a suitable browser is required.



 Cheers,
 jec


 Jeff, you pointed us in the right direction:

 GWT
 MVP
 GIN
 MAVEN

 Now the fun begins.

 Take care and Thanks for your comments,
 e


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




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



Re: Some GWT source samples from Google IO 2011?

2011-06-12 Thread Cristiano
well,
I've found the answer ;-)
both the two demos have been merged inside a single application, of
which a live version is available here: http://gwt-cloudtasks.appspot.com/
(open it with a regular browser to see John Labanca demo, open it with
and Android to see the ones from Chris Ramsdale) and the sources seems
to be included into the GWT trunk for version 2.4 as mobilewebapp
sample (I'm not sure because I've not been able to compile it yet, but
here it seems to be the funny help video of John:
http://google-web-toolkit.googlecode.com/svn/trunk/samples/mobilewebapp/src/main/webapp/video/tutorial.ogv
)





On 10 Giu, 13:51, Cristiano cristiano.costant...@gmail.com wrote:
 Hello all,
 I'm struggling to finde some source code from the examples shown by
 Chris Ramsdale in his Using GWT and Eclipse to Build Great Mobile Web
 Apps presentation, and from John Labanca  on his GWT + HTML5: A web
 developers dream!.

 Anyone can suggest me where to find them?
 It exists something somewhere?

 (to Chris and John, thank you for your presentations!!!)

 Cristiano

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



Displaying only part of an image using GWT Image Widget

2011-06-12 Thread Noor
I want to display only part of image using the GWT Image widget;
for e.g. for an image of 400X400, I want to use an image widget to
display only the top left 100x100 px. I want to do this for a puzzle,
check this http://i.stack.imgur.com/4BVoi.png

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



MVP pattern problem with singletons views

2011-06-12 Thread Juan Pablo Gardella
Hi,

Recently I have a problem and discover that the cause is about presenters
(activities non singletons) and views singleton. My code is similar to this:

private void bind() {
 myView.getButton1().addClickHandler(new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
...
});
 myView.getButton2().addClickHandler(new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
...
});
}

This method is invoque in start() method of the Activity.


BUT have a problem this code. Add multiple handlers (one each time an
activity start). Then, when I click the botton, the event execute n times (n
times execute start method in activity). So I think this bind() method is
dangerous, the presenter must know if the view is singleton or not.

There are a manner to use bind() method in activity and singletons view?

Juan

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



Re: Displaying only part of an image using GWT Image Widget

2011-06-12 Thread Jim Douglas
http://google-web-toolkit.googlecode.com/svn/javadoc/2.3/com/google/gwt/user/client/ui/Image.html#setVisibleRect(int,%20int,%20int,%20int)

On Jun 12, 12:19 pm, Noor baken...@gmail.com wrote:
 I want to display only part of image using the GWT Image widget;
 for e.g. for an image of 400X400, I want to use an image widget to
 display only the top left 100x100 px. I want to do this for a puzzle,
 check thishttp://i.stack.imgur.com/4BVoi.png

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



Re: MVP pattern problem with singletons views

2011-06-12 Thread Juan Pablo Gardella
I can fix with static variables to store like this:

//static variables
private static HandlerRegistration handlerBoton1;
,,,

start(..){
...
bind();
}
...
bind() method:

//Esto lo hacemos para borrar el handler el presenter anterior.
if (handlerBoton1!=null)
handlerBoton1.removeHandler();

handlerBoton1= vista.getBoton1().addClickHandler(
new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
...
}
});


I don't like much, but it works. Is there are other way? Use eventBus
and @UiHandler don't have this problem, but I must have event
+eventHandler.

Juan


On 12 jun, 12:31, Juan Pablo Gardella gardellajuanpa...@gmail.com
wrote:
 Hi,

 Recently I have a problem and discover that the cause is about presenters
 (activities non singletons) and views singleton. My code is similar to this:

 private void bind() {
  myView.getButton1().addClickHandler(new ClickHandler() {
 @Override
 public void onClick(ClickEvent event) {
 ...});

  myView.getButton2().addClickHandler(new ClickHandler() {
 @Override
 public void onClick(ClickEvent event) {
 ...

 });
 }

 This method is invoque in start() method of the Activity.

 BUT have a problem this code. Add multiple handlers (one each time an
 activity start). Then, when I click the botton, the event execute n times (n
 times execute start method in activity). So I think this bind() method is
 dangerous, the presenter must know if the view is singleton or not.

 There are a manner to use bind() method in activity and singletons view?

 Juan

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



Re: MVP pattern problem with singletons views

2011-06-12 Thread Raphael André Bauer
On Sun, Jun 12, 2011 at 9:50 PM, Juan Pablo Gardella
gardellajuanpa...@gmail.com wrote:
 I can fix with static variables to store like this:


There is an onStop() method in activities that is called when
activities are stopped... call a unbind() there and everything is nice
and clean..

Cheers,


Raphael


 //static variables
 private static HandlerRegistration handlerBoton1;
 ,,,

 start(..){
 ...
 bind();
 }
 ...
 bind() method:

                //Esto lo hacemos para borrar el handler el presenter anterior.
                if (handlerBoton1!=null)
                        handlerBoton1.removeHandler();

                handlerBoton1= vista.getBoton1().addClickHandler(
                                new ClickHandler() {
                                        @Override
                                        public void onClick(ClickEvent event) {
                                                ...
                                        }
                                });


 I don't like much, but it works. Is there are other way? Use eventBus
 and @UiHandler don't have this problem, but I must have event
 +eventHandler.

 Juan


 On 12 jun, 12:31, Juan Pablo Gardella gardellajuanpa...@gmail.com
 wrote:
 Hi,

 Recently I have a problem and discover that the cause is about presenters
 (activities non singletons) and views singleton. My code is similar to this:

 private void bind() {
  myView.getButton1().addClickHandler(new ClickHandler() {
 @Override
 public void onClick(ClickEvent event) {
 ...});

  myView.getButton2().addClickHandler(new ClickHandler() {
 @Override
 public void onClick(ClickEvent event) {
 ...

 });
 }

 This method is invoque in start() method of the Activity.

 BUT have a problem this code. Add multiple handlers (one each time an
 activity start). Then, when I click the botton, the event execute n times (n
 times execute start method in activity). So I think this bind() method is
 dangerous, the presenter must know if the view is singleton or not.

 There are a manner to use bind() method in activity and singletons view?

 Juan

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



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



Re: MVP pattern problem with singletons views

2011-06-12 Thread Juan Pablo Gardella
Thanks Raphael!! I test this and works!! (and find a bug in my code, at
first didn't work becouse bind() method there is in constructor, not in
start)

In this way I can remove static variable.

Thanks a lot
Juan

2011/6/12 Raphael André Bauer raphael.andre.ba...@gmail.com

 On Sun, Jun 12, 2011 at 9:50 PM, Juan Pablo Gardella
 gardellajuanpa...@gmail.com wrote:
  I can fix with static variables to store like this:


 There is an onStop() method in activities that is called when
 activities are stopped... call a unbind() there and everything is nice
 and clean..

 Cheers,


 Raphael

 
  //static variables
  private static HandlerRegistration handlerBoton1;
  ,,,
 
  start(..){
  ...
  bind();
  }
  ...
  bind() method:
 
 //Esto lo hacemos para borrar el handler el presenter
 anterior.
 if (handlerBoton1!=null)
 handlerBoton1.removeHandler();
 
 handlerBoton1= vista.getBoton1().addClickHandler(
 new ClickHandler() {
 @Override
 public void onClick(ClickEvent
 event) {
 ...
 }
 });
 
 
  I don't like much, but it works. Is there are other way? Use eventBus
  and @UiHandler don't have this problem, but I must have event
  +eventHandler.
 
  Juan
 
 
  On 12 jun, 12:31, Juan Pablo Gardella gardellajuanpa...@gmail.com
  wrote:
  Hi,
 
  Recently I have a problem and discover that the cause is about
 presenters
  (activities non singletons) and views singleton. My code is similar to
 this:
 
  private void bind() {
   myView.getButton1().addClickHandler(new ClickHandler() {
  @Override
  public void onClick(ClickEvent event) {
  ...});
 
   myView.getButton2().addClickHandler(new ClickHandler() {
  @Override
  public void onClick(ClickEvent event) {
  ...
 
  });
  }
 
  This method is invoque in start() method of the Activity.
 
  BUT have a problem this code. Add multiple handlers (one each time an
  activity start). Then, when I click the botton, the event execute n
 times (n
  times execute start method in activity). So I think this bind() method
 is
  dangerous, the presenter must know if the view is singleton or not.
 
  There are a manner to use bind() method in activity and singletons view?
 
  Juan
 
  --
  You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
  To post to this group, send email to google-web-toolkit@googlegroups.com
 .
  To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.com.
  For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.
 
 

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



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



Clientside file generation with GWT

2011-06-12 Thread Alain Ekambi
Beeing able to generate files on the client is a common requirement  and a
usefull  feature for a webapplication .
In one of our applications for example we have users generating reports
every 30-45 seconds. By beeing able to do that on the client we do not need
to scale our servers when the number of users grows.

Gwt4Air (http://code.google.com/p/gwt4air/)  introduced in version 2.1 a
File API that uses Flex and let u create files(PDF , Excel, Text, PNG,
JPEG...) on the client by adding a Flex widget into your GWT application.
The problem with that approach is that you needed to load  an entire
instance of the Flex framework just to be able to read/write files on the
client

Gwt4air 2.2 will introcude a more lightweigt solution that does not require
Flex(Flash is still needed dough).  Please take a minute to visit:

http://gwt4air.googlecode.com/svn/trunk/exporter/GwtAir.html

to see the preview in action

I m lookig forward to hearing your feedback.

Regards,

Alain

-- 

GWT API for  non Java based platforms
http://code.google.com/p/gwt4air/
http://www.gwt4air.appspot.com/

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



Re: Clientside file generation with GWT

2011-06-12 Thread Juan Pablo Gardella
Great work Alain!! Thanks for share it

2011/6/12 Alain Ekambi jazzmatad...@googlemail.com

 Beeing able to generate files on the client is a common requirement  and a
 usefull  feature for a webapplication .
 In one of our applications for example we have users generating reports
 every 30-45 seconds. By beeing able to do that on the client we do not need
 to scale our servers when the number of users grows.

 Gwt4Air (http://code.google.com/p/gwt4air/)  introduced in version 2.1 a
 File API that uses Flex and let u create files(PDF , Excel, Text, PNG,
 JPEG...) on the client by adding a Flex widget into your GWT application.
 The problem with that approach is that you needed to load  an entire
 instance of the Flex framework just to be able to read/write files on the
 client

 Gwt4air 2.2 will introcude a more lightweigt solution that does not require
 Flex(Flash is still needed dough).  Please take a minute to visit:

 http://gwt4air.googlecode.com/svn/trunk/exporter/GwtAir.html

 to see the preview in action

 I m lookig forward to hearing your feedback.

 Regards,

 Alain

 --

 GWT API for  non Java based platforms
 http://code.google.com/p/gwt4air/
 http://www.gwt4air.appspot.com/


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


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



Re: Test hosted mode speed : GWT 2.2 vs GWT trunk 9.6.2011

2011-06-12 Thread Juan Pablo Gardella
Great news!!

2011/6/11 maticpetek maticpe...@gmail.com

 Hello,
About one month ago I stared discussion about how to speed up hosted
 mode (How to speed up Hosted mode -
 https://groups.google.com/d/topic/google-web-toolkit/RNZujzt_LpE/discussion).
 Some of suggestions were very useful for use - check story of my compiler,
 RPC methods without Object classes, etc. Then I watch Google IO chat with
 GWT team and they mantion bug push up of work on speeding up hosted mode.
 The result is now probably persistent unit cache is turn on by default in
 trunk version of GWT (http://gwt-code-reviews.appspot.com/1448801/)
Ok, but what all this mean for our application? All values are avarage
 couple of measurments and I always done a small code change.

 GWT 2.2 :
 - run cold start : 45.9s
 - run reload : 14s
 - debug cold start : 54.9s
 - debug reload : 14.7s

 GWT trunk 9.6.2011 :
 - run cold start : 25.3s (first time is left out because 'gwt-unitCache' is
 generated)
 - run reload : 11.8s
 - debug cold start : 26.8s
 - debug reload : 13.3s

 Conclusion : 45% faster run startup time (52% for debug mode). 16% faster
 reload time (10% for debug mode). Thank you GWT team  contributiors. It
 means a lot for us.

 Regards,
Matic
 --
 GWT stuff twitter  - http://twitter.com/#!/gwtstuff

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


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



Re: Re: Re: problem with crawler

2011-06-12 Thread Qiang Ma
Hi, Ale,

How is your progress? I got further on the topic...

Now if I deploy the war file and manually copy the app.war file under ROOT
file (I had to change the path to the app.nocache.js ). The filter seems to
take the query string just fine.  (However, I don't remember any changes in
the servlet code, it must be some configuration change from last time.)
For some reason, if I ran HtmlUnit offline, it can snapshot the content, but
it doesn't work inside the servlet. So I had to ran it offline and save the
contents into files. In the filter servlet I just read out from the file.

You can check this:
http://goscopia.com/?_escaped_fragment_=
http://goscopia.com/

http://goscopia.com/?_escaped_fragment_=info.about
http://goscopia.com/#!info.about


Right now I only have a few pages to crawl, So I plan to update the SiteMap
links file so Google crawler will crawl them individually.

QUESTION: what is the correct or better way than update sitemap, if the
application can generate a lot of pages , how to make these pages known to
the crawler?

Any suggestion is appreciated.

-maq


On Fri, Jun 10, 2011 at 5:53 AM, ale aleee...@gmail.com wrote:

 Thank you maq!
 I didn't tought about the war name in the url
 so I try to add to my url the war name and:
 1) if I use the crawler url

 h*tp://www.youtrail.com/youtrail/?_escaped_fragment_=trailentityId=579101

 in my servlet I see the queryString not null (now there is an other
 problem, but this is an other story, I simply forget  to include the
 httpclient-4.1.1.jar... this evening I deploy a new version)

 2) if I use the normal url  with the war name:

 http://www.youtrail.com/youtrail#trailentityId=579101

 I'll recive a  FORBIDDEN error...

 Is this strange? (it is strange for me ok... but it is really strange?)

 For now I think I put some hidden links dedicated to crawlers, but I don't
 know if it is  a good idea...


 keep working too... thanks again!

 Ale





  --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/google-web-toolkit/-/qx4zBlgFIQAJ.

 To post to this group, send email to google-web-toolkit@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.


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



Re: MVP pattern problem with singletons views

2011-06-12 Thread Thomas Broyer
Don't forget the onCancel() method too: if your activity starts 
asynchronously, it can be cancelled before you set the view in the 
AcceptsOneWidget passed in argument to the start() method; in this case, 
onCancel() is called rather than onStop().

You'll find out that it's much easier to handle using a presenter 
interface to talk from your view back to your presenter (see 
http://code.google.com/webtoolkit/articles/mvp-architecture-2.html and 
http://code.google.com/webtoolkit/doc/latest/DevGuideMvpActivitiesAndPlaces.html
 ): 
all your activity has to do is getView().setPresenter(this) in start(), and 
getView().setPresenter(null) in onStop() and onCancel(). You can use 
@UiHandlers in your view, and if you don't, you don't have to manage event 
handler's lifecycle either.

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



Re: Serialization error

2011-06-12 Thread Henry
The solution was to comment in Empleado, this

//@OneToMany(mappedBy = empleado)
//private ListPedido pedidoList;


And in the rest

//public ListPedido getPedidoList() {
//return pedidoList;
//}

//public void setPedidoList(ListPedido pedidoList) {
//this.pedidoList = pedidoList;
//}

But why do I had to do this? Whats wrong with List? Why List
(org.eclipse.persistence.indirection.IndirectList) was not included in
the set of types which can be serialized by this SerializationPolicy

Greetings

On 12 jun, 14:25, Henry ubuntu henryubu...@gmail.com wrote:
 I have a project working with GWT 2.1.1, EclipseLink JPA 2.0 and DB Derby,

 Restaurante2.rarhttps://docs.google.com/leaf?id=0B3NEfBIdzv4XNzJjNWIxMjYtMmE4Yy00YThh...

 the problem is that when I push the button Buscar empleado and the error
 is the following

 12/06/2011 02:20:32 PM org.apache.catalina.core.ApplicationContext log
 GRAVE: Exception while dispatching incoming RPC call
 com.google.gwt.user.client.rpc.SerializationException: Type
 'org.eclipse.persistence.indirection.IndirectList' was not included in the
 set of types which can be serialized by this SerializationPolicy or its
 Class object could not be loaded. For security purposes, this type will not
 be serialized.: instance = {IndirectList: not instantiated}
         at
 com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize(ServerSerializationStreamWriter.java:614)
         at
 com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java:126)
         at
 com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter$ValueWriter$8.write(ServerSerializationStreamWriter.java:152)
         at
 com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeValue(ServerSerializationStreamWriter.java:534)
         at
 com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeClass(ServerSerializationStreamWriter.java:704)
         at
 com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeImpl(ServerSerializationStreamWriter.java:734)
         at
 com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize(ServerSerializationStreamWriter.java:616)
         at
 com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java:126)
         at
 com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter$ValueWriter$8.write(ServerSerializationStreamWriter.java:152)
         at
 com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeValue(ServerSerializationStreamWriter.java:534)
         at com.google.gwt.user.server.rpc.RPC.encodeResponse(RPC.java:609)
         at
 com.google.gwt.user.server.rpc.RPC.encodeResponseForSuccess(RPC.java:467)
         at
 com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:564)
         at
 com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:207)
         at
 com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:243)
         at
 com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
         at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
         at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
         at
 org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:393)
         at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
         at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
         at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
         at
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
         at
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
         at
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
         at
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
         at
 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
         at
 org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:859)
         at
 org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:579)
         at
 org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1555)
         at java.lang.Thread.run(Thread.java:662)

 Vista.java is the main EntryPoint.

 The Entities are Alimento, AlimentoMenu, AlimentoMenuPK, Cliente, Empleado,
 

Re: MVP pattern problem with singletons views

2011-06-12 Thread Juan Pablo Gardella
Hi Thomas!!

Thanks for the info. I fixed my code.

Juan

On 12 jun, 15:47, Thomas Broyer t.bro...@gmail.com wrote:
 Don't forget the onCancel() method too: if your activity starts
 asynchronously, it can be cancelled before you set the view in the
 AcceptsOneWidget passed in argument to the start() method; in this case,
 onCancel() is called rather than onStop().

 You'll find out that it's much easier to handle using a presenter
 interface to talk from your view back to your presenter 
 (seehttp://code.google.com/webtoolkit/articles/mvp-architecture-2.htmlandhttp://code.google.com/webtoolkit/doc/latest/DevGuideMvpActivitiesAnd...):
 all your activity has to do is getView().setPresenter(this) in start(), and
 getView().setPresenter(null) in onStop() and onCancel(). You can use
 @UiHandlers in your view, and if you don't, you don't have to manage event
 handler's lifecycle either.

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



Is it required to update Eclipse to update GWT ??

2011-06-12 Thread mohit
Hi all,

I need to upgate GWT.
Currently I am using GWT 2.1.1 and I want to go for GWT 2.3.0.

I am using Eclipse 3.3.2.

Every time I try to update GWT plugins from Eclipse--Help--Find and
Install
It fails saying :
   No features found on selected site(s).Choose a
different site or site category.

I have set the following link as my remote site :
  http://dl.google.com/eclipse/plugin/3.3

Do I need to use higher version of eclipse like Eclipse 3.6
(Helios) ???

Thanks

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



Re: [gwt-contrib] Re: inline imgs with safeuri

2011-06-12 Thread Stephen Haberman

 See http://code.google.com/p/google-web-toolkit/issues/detail?id=6145

Eesh; thanks for linking to the issue. SafeUri was new enough (trunk)
that I never even thought to look in the bug tracker for the issue.
Makes sense in retrospect.

- Stephen

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


Re: [gwt-contrib] Re: inline imgs with safeuri

2011-06-12 Thread Thomas Broyer
That's because it's actually not an issue with SafeUri, but with SafeHtml 
(that SafeUri attempts to solve, it just needs a little more plumbing with 
UiBinder)

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