Eclipse "Analyzing sources" process takes ages

2010-05-02 Thread mably
Hi everybody,

Every time I change some dependencies in my GWT project, Eclipse
lauches an "Analyzing sources" process which takes ages (several
minutes).  Next goes  the compilation process which goes a lot
faster.

Does anyone have the same problem ?
Why does this "Analyzing sources" process takes so long ?
Is there anything to do to shorten building times ?

Thanx a lot for your help.

François

PS:

I'm on Eclipse 3.5.2, Google Plugin 1.3.2, GWT 2.0.3 and JDK 1.6.0_13.

-- 
You received 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: Scroll techniques for mobile phones

2010-04-05 Thread mably
Did you try two fingers scrolling ?

http://stackoverflow.com/questions/615357/scrollable-div-on-iphone-without-using-2-fingers

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

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



Safari Windows takes 100% on example page

2010-03-29 Thread mably
Hi everybody,

Does anyone know why Safari on Windows takes 100% CPU when displaying
this simpe example page :

http://gwt.google.com/samples/Showcase/Showcase.html

I've the same problem on my GWT 2.0 application, it's quite annoying
for my Safari users.

Is Safari on Windows not fully compatible with GWT ?

Thanx for your help.

François
Bordeaux, FRANCE

-- 
You received 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: SubmitCompleteEvent.getResults on File upload

2010-01-27 Thread mably
It works, thanx for your answer.

François

On 27 jan, 01:38, Thomas Broyer  wrote:
> On 27 jan, 00:43, mably  wrote:
>
> > A solution to this problem anyone ?
>
> The JavaDoc says "send back text/html". Follow this advice, really
> (just pay attention to "<" and "&" chars that might appear in your
> output).
>
>
>
> > On 28 déc 2009, 14:58, Peter Ondruska wrote:
>
> > >                 response.setContentType("text/plain");

-- 
You received 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: SubmitCompleteEvent.getResults on File upload

2010-01-26 Thread mably
A solution to this problem anyone ?

On 28 déc 2009, 14:58, Peter Ondruska 
wrote:
> public class Upload extends HttpServlet {
>
>         private static final long serialVersionUID = -7859156850837921885L;
>         private final Logger logger = Logger.getLogger(getClass().getName());
>
>         @SuppressWarnings("unchecked")
>         @Override
>         protected void doPost(final HttpServletRequest request, final
> HttpServletResponse response) throws ServletException,
>                         IOException {
>
>                 response.setContentType("text/plain");
>
>                 if (!ServletFileUpload.isMultipartContent(request))
>                         return;
>
>                 final PersistenceManager pm = 
> PMF.get().getPersistenceManager();
>                 final ServletFileUpload upload = new ServletFileUpload();
>                 upload.setSizeMax(1024*1024-256);
>                 try {
>                         final FileItemIterator iterator = 
> upload.getItemIterator(request);
>                         while (iterator.hasNext()) {
>                                 final FileItemStream fis = iterator.next();
>                                 if (!fis.isFormField()) {
>                                         final String name = fis.getName();
>                                         final String mimeType = 
> fis.getContentType();
>                                         // TODO overwrite existing if owner 
> matches
>                                         final InputStream is = 
> fis.openStream();
>                                         final Blob blob = new 
> Blob(IOUtils.toByteArray(is));
>                                         final Document document = new 
> Document(name, mimeType, blob);
>                                         final UserService us = 
> UserServiceFactory.getUserService();
>                                         final User user = us.getCurrentUser();
>                                         document.setOwner(user);
>                                         pm.makePersistent(document);
>
>                                         Cache cache = null;
>                                         try {
>                                                 CacheFactory cacheFactory = 
> CacheManager.getInstance
> ().getCacheFactory();
>                                                 cache = 
> cacheFactory.createCache(Collections.emptyMap());
>                                                 cache.put("docname~" + name, 
> blob.getBytes());
>                                                 cache.put("doctype~" + name, 
> mimeType);
>                                         } catch (CacheException e) {
>                                                 logger.log(Level.SEVERE, 
> "failed to configure cache", e);
>                                         }
>
>                                 }
>                         }
>                         response.getWriter().write("OK");
>                 } catch (SizeLimitExceededException e) {
>                         response.getWriter().write("Too big");
>                 } catch (FileUploadException e) {
>                         logger.log(Level.SEVERE, null, e);
>                 } finally {
>                         pm.close();
>                 }
>
>         }
>
> }
>
> On 28 pro, 10:56, Andrés Cerezo  wrote:
>
>
>
> > I need more information, can yoyu sen the source code of the program.java ?
>
> > Thanks.
>
> > 2009/12/26 Peter Ondruska 
>
> > > My upload servlet successfully accepts data however the response sent
> > > is not what I expect:
>
> > > OK
>
> > > instead of just:
>
> > > OK
>
> > > The servlet basically responds with:
>
> > > response.setContentType("text/plain");
> > > response.getWriter().write("OK");
>
> > > I have tried with curl to post something and servlet (GAE/J SDK) sends
> > > only "OK" but in GWT application I see *OK* when calling event.getResults
> > > ().
>
> > > Any clue what am I doing wrong?
>
> > > --
>
> > > You received 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.–Skrýt citovaný 
> > >text –
>
> > – Zobrazit citovaný text –

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



Re: GWT 2.0 runAsync code works fine in development mode but fails in normal mode

2010-01-15 Thread mably
Ok, you're certainly right, thanx for the answer.

On 15 jan, 15:45, Matt Moriarity  wrote:
> I'm not sure about this, but I would guess that GWT doesn't actually
> do any code-splitting when in development mode because there isn't
> much point. It's really only useful when you compile.
>
> On Jan 14, 12:07 pm, mably  wrote:
>
>
>
> > Oops, sorry...  It's asynchronous, so my list object is most probably
> > always null when I read it.
>
> > What is strange is why it's not null in development mode
>
> > Is runAsync running synchronously in dev mode ?
>
> > On 14 jan, 13:29, mably  wrote:
>
> > > Hi everybody,
>
> > > I have some GWT 2.0 runAsync code that works perfectly fine in dev
> > > mode but fails in normal mode.
>
> > > Is it a GWT bug or am I doing something wrong ?
>
> > > Is there some way to identify where the probleme comes from exactly ?
>
> > > The only information I have is a Chrome Developer Tools javascript
> > > error that says : "Uncaught TypeError: Cannot call method 'Lc' of
> > > null".  And nothing in Eclipse while running in dev mode.
>
> > > Here is my java code using runAsync :
>
> > > public class GwtListHelper {
>
> > >         private Map lists = new HashMap > > GwtList>();
>
> > >         public GwtList getList(String type) {
> > >                 GwtList list = lists.get(type);
> > >                 if (list == null) {
> > >                         ListWrapper lw = new ListWrapper();
> > >                         getListAsync(type, lw);
> > >                         list = lw.getList();
> > >                         lists.put(type, list);
> > >                 }
> > >                 return list;
> > >         }
>
> > >         private void getListAsync(final String type, final ListWrapper 
> > > lw) {
> > >                 if ("user".equals(type)) {
> > >                         GWT.runAsync(new RunAsyncCallback() {
> > >                                 public void onSuccess() {
> > >                                         lw.setList(new UserList());
> > >                                 }
> > >                                 public void onFailure(Throwable reason) {
> > >                                         Window.alert(type + " list not 
> > > loaded !");
> > >                                 }
> > >                         });
> > >                 }
> > >         }
>
> > >         private class ListWrapper {
> > >                 GwtList list;
> > >                 public void setList(GwtList list) {
> > >                         this.list = list;
> > >                 }
> > >                 public GwtList getList() {
> > >                         return this.list;
> > >                 }
> > >         }
>
> > > }
-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




Re: GWT 2.0 runAsync code works fine in development mode but fails in normal mode

2010-01-14 Thread mably
Oops, sorry...  It's asynchronous, so my list object is most probably
always null when I read it.

What is strange is why it's not null in development mode

Is runAsync running synchronously in dev mode ?

On 14 jan, 13:29, mably  wrote:
> Hi everybody,
>
> I have some GWT 2.0 runAsync code that works perfectly fine in dev
> mode but fails in normal mode.
>
> Is it a GWT bug or am I doing something wrong ?
>
> Is there some way to identify where the probleme comes from exactly ?
>
> The only information I have is a Chrome Developer Tools javascript
> error that says : "Uncaught TypeError: Cannot call method 'Lc' of
> null".  And nothing in Eclipse while running in dev mode.
>
> Here is my java code using runAsync :
>
> public class GwtListHelper {
>
>         private Map lists = new HashMap();
>
>         public GwtList getList(String type) {
>                 GwtList list = lists.get(type);
>                 if (list == null) {
>                         ListWrapper lw = new ListWrapper();
>                         getListAsync(type, lw);
>                         list = lw.getList();
>                         lists.put(type, list);
>                 }
>                 return list;
>         }
>
>         private void getListAsync(final String type, final ListWrapper lw) {
>                 if ("user".equals(type)) {
>                         GWT.runAsync(new RunAsyncCallback() {
>                                 public void onSuccess() {
>                                         lw.setList(new UserList());
>                                 }
>                                 public void onFailure(Throwable reason) {
>                                         Window.alert(type + " list not loaded 
> !");
>                                 }
>                         });
>                 }
>         }
>
>         private class ListWrapper {
>                 GwtList list;
>                 public void setList(GwtList list) {
>                         this.list = list;
>                 }
>                 public GwtList getList() {
>                         return this.list;
>                 }
>         }
>
>
>
> }
-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




GWT 2.0 runAsync code works fine in development mode but fails in normal mode

2010-01-14 Thread mably
Hi everybody,

I have some GWT 2.0 runAsync code that works perfectly fine in dev
mode but fails in normal mode.

Is it a GWT bug or am I doing something wrong ?

Is there some way to identify where the probleme comes from exactly ?

The only information I have is a Chrome Developer Tools javascript
error that says : "Uncaught TypeError: Cannot call method 'Lc' of
null".  And nothing in Eclipse while running in dev mode.

Here is my java code using runAsync :

public class GwtListHelper {

private Map lists = new HashMap();

public GwtList getList(String type) {
GwtList list = lists.get(type);
if (list == null) {
ListWrapper lw = new ListWrapper();
getListAsync(type, lw);
list = lw.getList();
lists.put(type, list);
}
return list;
}

private void getListAsync(final String type, final ListWrapper lw) {
if ("user".equals(type)) {
GWT.runAsync(new RunAsyncCallback() {
public void onSuccess() {
lw.setList(new UserList());
}
public void onFailure(Throwable reason) {
Window.alert(type + " list not loaded 
!");
}
});
}
}

private class ListWrapper {
GwtList list;
public void setList(GwtList list) {
this.list = list;
}
public GwtList getList() {
return this.list;
}
}
}
-- 
You received 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.