Re: gwt-log-3.0.4 available for download

2010-10-19 Thread Harald Pehl
Is this version part of GWT 2.1, as described in
http://code.google.com/intl/de-DE/webtoolkit/doc/trunk/DevGuideLogging.html?

- Harald

On Oct 19, 10:50 pm, Fred Sauer  wrote:
> Hi,
>
> There's a new version of gwt-log for your to try out.
>
> Downloads:
>  http://code.google.com/p/gwt-log/downloads/list
>
> Compatibility information and Getting Started guide:
>  http://code.google.com/p/gwt-log/wiki/GettingStarted
>
> Enjoy--
> Fred Sauer
> Developer Advocate
> Google Inc.
> 1600 Amphitheatre Parkway
> Mountain View, CA 94043
> fre...@google.com
>
> --
> Fred Sauer
> Developer Advocate
> Google Inc.
> 1600 Amphitheatre Parkway
> Mountain View, CA 94043
> fre...@google.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: Client Vs Server and Google app engine

2010-10-19 Thread Fendy Tjin
Hi,

Well, I've made gwt app as well. What I do is creating two models, one in the 
server and another in the client package. 

You may want to look into spring roo framework. If you do not want to have 2 
models.

Best regards,
Fendy Tjin

On Oct 19, 2010, at 2:25 PM, Michel Uncini  wrote:

> Hello everybody
> 
> I'm developing a GWT project.
> I have two packets one .client and the other .server
> in my .gwt.xml I specified only the .client packet because in
> the .server I use google app engine.
> Let consider the class "Company" which has to be stored in the
> database I can't use it in the .client packet because it "use
> com.google.appengine" and is impossible to inherit right?
> So the only way if I want have a similar class in the .client packet
> is to create a new class similar to "Company" but without appengine
> fields??
> 
> Thank you!
> 
> 
> 
> -- 
> 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: downloading file from servlet

2010-10-19 Thread Jim Douglas
This is what I'm doing.  YMMV and assorted disclaimers; it's quite
likely that this can be improved upon.

(1) I generate this place-holder for the file download in my GWT web
pages:

out.println("");

(2) To initiate a download from the client side, I do this:

public static void download(String p_uuid, String p_filename)
{
String fileDownloadURL = "/fileDownloadServlet"
   + "?id=" + p_uuid
   + "&filename=" +
URL.encode(p_filename);
Frame fileDownloadFrame = new Frame(fileDownloadURL);
fileDownloadFrame.setSize("0px", "0px");
fileDownloadFrame.setVisible(false);
RootPanel panel = RootPanel.get("__gwt_downloadFrame");
while (panel.getWidgetCount() > 0)
panel.remove(0);
panel.add(fileDownloadFrame);
}

(3) The corresponding FileDownloadServlet does this (with unimportant
details omitted):

@Override
protected void doGet(HttpServletRequest p_request,
 HttpServletResponse p_response)
throws ServletException, IOException
{
String filename = p_request.getParameter("filename");
if (filename == null)
{
p_response.sendError(SC_BAD_REQUEST, "Missing filename");
return;
}

File file = /* however you choose to go about resolving
filename */

long length = file.length();
FileInputStream fis = new FileInputStream(file);
p_response.addHeader("Content-Disposition",
 "attachment; filename=\"" + filename +
"\"");
p_response.setContentType("application/octet-stream");
if (length > 0 && length <= Integer.MAX_VALUE);
p_response.setContentLength((int)length);
ServletOutputStream out = p_response.getOutputStream();
p_response.setBufferSize(32768);
int bufSize = p_response.getBufferSize();
byte[] buffer = new byte[bufSize];
BufferedInputStream bis = new BufferedInputStream(fis,
bufSize);
int bytes;
while ((bytes = bis.read(buffer, 0, bufSize)) >= 0)
out.write(buffer, 0, bytes);
bis.close();
fis.close();
out.flush();
out.close();
}

That all causes the selected file to be downloaded to the client
browser in whatever way the browser chooses to handle downloads.

On Oct 19, 8:49 pm, mike b  wrote:
> I have read all the other posts about downloading Excel files and how
> to do it w/ an IFRAME, with RequestBuilder, and Window.open().
> However, none of them actually work.  Luckily, I have a working
> servlet which executes and returns successfully with javascript.
> However, we'd like to do it all in GWT.  The error message from IE is
> below.  The Window.open() DOES work with FF, but not with IE.
> Unfortunately, we must deploy to IE, no options there.
>
> Situation:
> GWT 2.0.4  mvp4g 1.2.0
> Need to download a file to open in Excel.  At this point, its actually
> a text file, but the MIME type is setup for Excel.
>
> The servlet has been tested w/ straight java script using
> "document.body.appendChild(iframe);".  This works like a champ in IE
> and FF.
>
> However, when I do "Window.open(url, "_self",null);" in GWT, IE can't
> download the file.  It throws an error saying...
>
> "
> Internet Exploroer cannot download MyFile from localhost
>
> IE was not able to open this Internet site.  The requests site is
> either unavailable or cannot be found.  Please try again later.
> "
>
> In GWT, I have also tried just using a Frame, adding it to a Panel,
> and then calling myFrame.setUrl("myUrl");
>
> This also successfully gets to the servlet, but fails w/ the above
> error message while trying to "open" the file.
>
> It seems as if GWT is telling the browser to cancel the download when
> it pops up.
>
> Any suggestions?  Any guesses?
>
> Thanks,
> mikeb

-- 
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: Adding HTML / Label to flowPanel

2010-10-19 Thread Yau
Thanks Thomas, you're the man!

On Oct 19, 9:24 pm, Thomas Broyer  wrote:
> On 19 oct, 12:13, "Kevin (Yau) Leung"  wrote:
>
> > I would like to use a flowPanel to contain a list of tags.  The tag contain
> > a name and a close button.
>
> > However, when I add HTML / Label to flowPanel, it will create a new line
> > because it's a DIV element.
>
> > If the HTML / Label is a span element, there is no new line.  However, I
> > can't create spanElement on demand.
>
> > Does anyone has any suggestion?  Thanks in advance.
>
> InlineHTML / InlineLabel.

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



downloading file from servlet

2010-10-19 Thread mike b
I have read all the other posts about downloading Excel files and how
to do it w/ an IFRAME, with RequestBuilder, and Window.open().
However, none of them actually work.  Luckily, I have a working
servlet which executes and returns successfully with javascript.
However, we'd like to do it all in GWT.  The error message from IE is
below.  The Window.open() DOES work with FF, but not with IE.
Unfortunately, we must deploy to IE, no options there.

Situation:
GWT 2.0.4  mvp4g 1.2.0
Need to download a file to open in Excel.  At this point, its actually
a text file, but the MIME type is setup for Excel.

The servlet has been tested w/ straight java script using
"document.body.appendChild(iframe);".  This works like a champ in IE
and FF.

However, when I do "Window.open(url, "_self",null);" in GWT, IE can't
download the file.  It throws an error saying...

"
Internet Exploroer cannot download MyFile from localhost

IE was not able to open this Internet site.  The requests site is
either unavailable or cannot be found.  Please try again later.
"

In GWT, I have also tried just using a Frame, adding it to a Panel,
and then calling myFrame.setUrl("myUrl");

This also successfully gets to the servlet, but fails w/ the above
error message while trying to "open" the file.

It seems as if GWT is telling the browser to cancel the download when
it pops up.

Any suggestions?  Any guesses?

Thanks,
mikeb

-- 
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: java.lang.ClassCastException .. but why?

2010-10-19 Thread Prashant
you can typecast *MyMenuBar *to *MenuBar *but not the other way round. Here
you are trying to typecast *MenuBar* to *MyMenuBar*.

On 19 October 2010 21:28, alexoffspring  wrote:

> Thanks guys.
>
> Ok, i got the error in the constructor. Now it sounds like this:
>
> > public class MyMenuBar extends MenuBar {
>
> // super constructor
> public MyMenuBar(boolean bool) {
>  super(bool);
> } ;
>
>
>
> But still i got the same ClassCastException.
>
> rootis a MenuItem   androot.getSubMenu() return a MenuBar
> object.
>
>
>
>
> On 19 Ott, 17:39, ep  wrote:
> > where do you make new MyMenuBar() and how do you provide it to the
> > "root" member? and what type is root actually?
> >
> > On 19 Okt., 17:14, alexoffspring  wrote:
> >
> >
> >
> > > I created a public class MyMenuBar   just to use the getItems()
> > > method, which is protected in MenuBar:
> > > 
> > > public class MyMenuBar extends MenuBar {
> >
> > > // super constructor
> > > public MyMenuBar(boolean bool) {
> > > new MenuBar(bool);
> > > }
> >
> > > // the super.getItems() is protected
> > > public List getItems() {
> > > return super.getItems();
> > > }
> >
> > > };
> >
> > > 
> >
> > > I don't understand why a get a   java.lang.ClassCastException  when i
> > > try to cast a MenuBar into a MyMenuBar:
> >
> > > .
> > > MenuBar menuBar = root.getSubMenu();
> > > local_mmb = ((MyMenuBar) menuBar).getItems();
> > > 
> >
> > > Where am i wrong?- Nascondi testo citato
> >
> > - Mostra testo citato -
>
> --
> 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.
>
>


-- 
Prashant
www.claymus.com
code.google.com/p/claymus/

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



Avoid Use of Browser Detect

2010-10-19 Thread Fredsome
After reading 
http://groups.google.com/group/google-web-toolkit/browse_thread/thread/f58d7ab3f162711e/109b3c8e1b380982,
I understand that the Browser Detect code is output into the
JavaScript code GWT compiles for you. Unfortunately, Browser Detect's
license is not acceptable for the application that I am working on
(http://code.google.com/webtoolkit/terms.html#licenses). Is there any
way to avoid the output of Browser Detect code, so that any product we
create with GWT will only be affected by the Apache License, v. 2.0?
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.



importing 3rd party class on client side - RPC implementation

2010-10-19 Thread mo
I just need to use a class "Provider" in client package. The class
"Provider" is in different package.
Can you please let me know what do I need to include in gwt.xml file?

I get following error.
[INFO]   [ERROR] Errors in 'file:/C:/MYCOMPUTER/WORKSPACES/SC/SC/
web/gwtAdmi
n/src/main/java/com/fxall/scadmin/client/manager/
SearchProviderManager.java'
[INFO]  [ERROR] Line 10: No source code is available for type
com.fxall.
common.entity.Provider; did you forget to inherit a required
module?
(Line 10 is public List providerSearch(String provider)
throws Exception;  )



My code:

package com.fxall.scadmin.client.manager;

import java.util.List;
import com.fxall.common.entity.Provider;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

@RemoteServiceRelativePath("searchProviderManager")
public interface SearchProviderManager {

public List providerSearch(String provider) throws
Exception;
}

-- 
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: EntityProxy Returns Null for Collection Properties

2010-10-19 Thread keyvez
Here's a workaround, if you have collections in your entity then
before returning the collection from a data access method like findAll
or something, just access each collection property somehow.

For eg.

List users = Query.execute().getReturnList();
for(User user : users) user.getAddresses().size();
return users;

That should ensure that the collection properties are included in the
proxy object that is returned.

I think it's some kinda optimization on JPA's part to reduce lookups
until they are needed. Heh, lazy!

Cheers and thanks for everyone's help.

Gaurav
On Oct 19, 1:29 pm, keyvez  wrote:
> I will try to write a small app from scratch which tries this feature
> so I can be sure that I am doing it the right way.
>
> On Oct 19, 9:40 am, keyvez  wrote:
>
>
>
> > Hi,
>
> > Thanks for the suggestions, my addresses are a set of strings so I
> > tried calling like so:
>
> > Request createReq =
> > request.authenticate().using(user).with("addresses");
>
> > createReq.fire(new Receiver() {
>
> >             @Override
> >             public void onSuccess( UserProxy authenticatedUser ) {
>
> > System.out.println(authenticatedUser.getFirstname()); //
> > prints "First name of Person" as expected
>
> > System.out.println(authenticatedUser.getAddresses().size()); //
> > prints
> > 0 instead of the no. of addresses, which is more than 0 for this user
> >             }
>
> > }
>
> > But it's the same result as before, maybe I am missing another piece
> > of the equation. Thanks for your help.
>
> > Gaurav
>
> > On Oct 19, 6:18 am, Thomas Broyer  wrote:
>
> > > On 19 oct, 14:47, agi  wrote:
>
> > > > Does it work recurential?
> > > > so lets say I have  classes:
> > > > Person
> > > > {
> > > >   List adresses;
>
> > > > }
>
> > > > Address
> > > > {
> > > >      Telephone telephone;
>
> > > > }
>
> > > > I should write
> > > > personRequest.findAll().with("adresses", "telephone").fire(...)
> > > > ?
>
> > > with("adresses.telephone")

-- 
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: Simulate low bandwith

2010-10-19 Thread Professor Vagner
Hello,

I did this by creating a private network and using the the Linux
*tc*command. In
my case, I emulate a network of 15k.

I used:

O.S => *Slackware Linux*
Command => *tc*

-- 
*Vagner Araujo

PureGWT Showcase Preview 

O PLANETA É O MEU PAÍS, E A CIÊNCIA É A MINHA RELIGIÃO ! INDO AO INFINITO E
ALÉM... !!*

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



Simulate low bandwith

2010-10-19 Thread Fernando Barbat
Are there any tools which allow us to test our GWT application in low
bandwith or high latency environments?

I've read this post:
http://stackoverflow.com/questions/473465/firefox-plugin-to-simulate-slow-internet-connection-or-limit-bandwidth

Anyway, I want to know if there is any tool or methodology which works
with GWT apps nicely, having in mind the code server and other GWT
stuff.

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.



Re: Firefox gwt dev plugin

2010-10-19 Thread Craig
Are you on Linux? If so then the solutions outlined here will do the
trick:

http://groups.google.com/group/google-web-toolkit/browse_thread/thread/3aa568ed50974f88

On Oct 18, 10:39 am, FireSnake  wrote:
>  it was! I can see it in the plugins 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: Want to do synchronous things with asynchronous elements

2010-10-19 Thread Frédéric MINATCHY
It's a good idea to use a START and END event in the RPC method... But I
won't have the time to implement it...
I will think about it when I will have the time.

Thank you Jeff... I implemented it by interlinking anonymous classes...it
works. I don't like it but I won't have time to think more about it.

Fred


2010/10/19 gaill...@audemat.com 

> Search for AbstractAsyncCallback on Google
> You can have a strict queue of AsyncCallback
>
> --
> 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: Type of data in fields

2010-10-19 Thread A. Stevko
Yes, your custom onValueChange() code will be called when the value of the
textbox changes.
Do with it what you will...

If that doesn't quite work for your purposes, there is a handler for most UI
events like
addDoubleClickHandler( new DoubleClickHandler() onDoubleClick()... )

They are listed at
http://google-web-toolkit.googlecode.com/svn/javadoc/2.0/com/google/gwt/event/shared/EventHandler.html



On Tue, Oct 19, 2010 at 1:29 PM, Diego Venuzka  wrote:

> hmm, i understand that part, but how i put the values? inside the
> OnValueChange?
> Regards! :D
>
> 2010/10/19 A. Stevko 
>
>> Every control has a number of xxxHandlers interfaces that you can hang
>> code off of.
>> Try something like this using old style (pre-binder) code
>>
>> // create a text box & add it to a Panel
>> myTextBox = new TextBox();
>> // add a handler to the text box control
>> myTextBox.addValueChangeHandler( new ValueChangeHandler() {
>>
>> @Override
>>  public void onValueChange(ValueChangeEvent event) {
>> Boolean isChar = (null == Integer.getInteger( myTextBox.getValue() ));
>>  }
>> });
>>
>>
>>
>> On Tue, Oct 19, 2010 at 12:40 PM, Diego Venuzka wrote:
>>
>>> but how i do this ?
>>>
>>> 2010/10/17, A. Stevko :
>>> > Which UI control and API are you referring to?
>>> > I cannot seem to find a setValidator() method in the
>>> > *com.google.gwt.user.client.ui.TextBox
>>> > *class heirarchy.
>>> >
>>> > You might want to use the
>>> > Interface HasValueChangeHandlers
>>> > to add a handler that will be able to parse it via Integer.getInteger(
>>> > myControl.getValue() )
>>> >
>>> >
>>> > On Sat, Oct 16, 2010 at 4:45 AM, Diego Venuzka 
>>> wrote:
>>> >
>>> >> Anyone?
>>> >>
>>> >> 2010/10/14, Diego Venuzka :
>>> >> > Hello!
>>> >> > Somebody know how i can make a test in field, to know if the data is
>>> >> string
>>> >> > or integer? i'm tryng to use the setValidator(), but i don't know
>>> how i
>>> >> set
>>> >> > the parameters someone can help this rookie? =P
>>> >> >
>>> >> > Thanks!!
>>> >> >
>>> >> > --
>>> >> > Diego Venuzka
>>> >> >
>>> >>
>>> >>
>>> >> --
>>> >> Diego Venuzka
>>> >>
>>> >> --
>>> >> 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.
>>> >
>>> >
>>>
>>>
>>> --
>>> Diego Venuzka
>>>
>>> --
>>> 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-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.
>>
>
>
>
> --
> Diego Venuzka
>
> --
> 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.



gwt-log-3.0.4 available for download

2010-10-19 Thread Fred Sauer
Hi,

There's a new version of gwt-log for your to try out.

Downloads:
  http://code.google.com/p/gwt-log/downloads/list

Compatibility information and Getting Started guide:
  http://code.google.com/p/gwt-log/wiki/GettingStarted


Enjoy--
Fred Sauer
Developer Advocate
Google Inc.
1600 Amphitheatre Parkway
Mountain View, CA 94043
fre...@google.com





-- 
Fred Sauer
Developer Advocate
Google Inc.
1600 Amphitheatre Parkway
Mountain View, CA 94043
fre...@google.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: EntityProxy Returns Null for Collection Properties

2010-10-19 Thread keyvez
I will try to write a small app from scratch which tries this feature
so I can be sure that I am doing it the right way.

On Oct 19, 9:40 am, keyvez  wrote:
> Hi,
>
> Thanks for the suggestions, my addresses are a set of strings so I
> tried calling like so:
>
> Request createReq =
> request.authenticate().using(user).with("addresses");
>
> createReq.fire(new Receiver() {
>
>             @Override
>             public void onSuccess( UserProxy authenticatedUser ) {
>
> System.out.println(authenticatedUser.getFirstname()); //
> prints "First name of Person" as expected
>
> System.out.println(authenticatedUser.getAddresses().size()); //
> prints
> 0 instead of the no. of addresses, which is more than 0 for this user
>             }
>
> }
>
> But it's the same result as before, maybe I am missing another piece
> of the equation. Thanks for your help.
>
> Gaurav
>
> On Oct 19, 6:18 am, Thomas Broyer  wrote:
>
>
>
>
>
>
>
> > On 19 oct, 14:47, agi  wrote:
>
> > > Does it work recurential?
> > > so lets say I have  classes:
> > > Person
> > > {
> > >   List adresses;
>
> > > }
>
> > > Address
> > > {
> > >      Telephone telephone;
>
> > > }
>
> > > I should write
> > > personRequest.findAll().with("adresses", "telephone").fire(...)
> > > ?
>
> > with("adresses.telephone")

-- 
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: Type of data in fields

2010-10-19 Thread Diego Venuzka
hmm, i understand that part, but how i put the values? inside the
OnValueChange?
Regards! :D

2010/10/19 A. Stevko 

> Every control has a number of xxxHandlers interfaces that you can hang code
> off of.
> Try something like this using old style (pre-binder) code
>
> // create a text box & add it to a Panel
> myTextBox = new TextBox();
> // add a handler to the text box control
> myTextBox.addValueChangeHandler( new ValueChangeHandler() {
>
> @Override
>  public void onValueChange(ValueChangeEvent event) {
> Boolean isChar = (null == Integer.getInteger( myTextBox.getValue() ));
>  }
> });
>
>
>
> On Tue, Oct 19, 2010 at 12:40 PM, Diego Venuzka wrote:
>
>> but how i do this ?
>>
>> 2010/10/17, A. Stevko :
>> > Which UI control and API are you referring to?
>> > I cannot seem to find a setValidator() method in the
>> > *com.google.gwt.user.client.ui.TextBox
>> > *class heirarchy.
>> >
>> > You might want to use the
>> > Interface HasValueChangeHandlers
>> > to add a handler that will be able to parse it via Integer.getInteger(
>> > myControl.getValue() )
>> >
>> >
>> > On Sat, Oct 16, 2010 at 4:45 AM, Diego Venuzka 
>> wrote:
>> >
>> >> Anyone?
>> >>
>> >> 2010/10/14, Diego Venuzka :
>> >> > Hello!
>> >> > Somebody know how i can make a test in field, to know if the data is
>> >> string
>> >> > or integer? i'm tryng to use the setValidator(), but i don't know how
>> i
>> >> set
>> >> > the parameters someone can help this rookie? =P
>> >> >
>> >> > Thanks!!
>> >> >
>> >> > --
>> >> > Diego Venuzka
>> >> >
>> >>
>> >>
>> >> --
>> >> Diego Venuzka
>> >>
>> >> --
>> >> 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.
>> >
>> >
>>
>>
>> --
>> Diego Venuzka
>>
>> --
>> 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.
>



-- 
Diego Venuzka

-- 
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: Type of data in fields

2010-10-19 Thread A. Stevko
Every control has a number of xxxHandlers interfaces that you can hang code
off of.
Try something like this using old style (pre-binder) code

// create a text box & add it to a Panel
myTextBox = new TextBox();
// add a handler to the text box control
myTextBox.addValueChangeHandler( new ValueChangeHandler() {

@Override
public void onValueChange(ValueChangeEvent event) {
Boolean isChar = (null == Integer.getInteger( myTextBox.getValue() ));
}
});



On Tue, Oct 19, 2010 at 12:40 PM, Diego Venuzka  wrote:

> but how i do this ?
>
> 2010/10/17, A. Stevko :
> > Which UI control and API are you referring to?
> > I cannot seem to find a setValidator() method in the
> > *com.google.gwt.user.client.ui.TextBox
> > *class heirarchy.
> >
> > You might want to use the
> > Interface HasValueChangeHandlers
> > to add a handler that will be able to parse it via Integer.getInteger(
> > myControl.getValue() )
> >
> >
> > On Sat, Oct 16, 2010 at 4:45 AM, Diego Venuzka 
> wrote:
> >
> >> Anyone?
> >>
> >> 2010/10/14, Diego Venuzka :
> >> > Hello!
> >> > Somebody know how i can make a test in field, to know if the data is
> >> string
> >> > or integer? i'm tryng to use the setValidator(), but i don't know how
> i
> >> set
> >> > the parameters someone can help this rookie? =P
> >> >
> >> > Thanks!!
> >> >
> >> > --
> >> > Diego Venuzka
> >> >
> >>
> >>
> >> --
> >> Diego Venuzka
> >>
> >> --
> >> 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-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.
> >
> >
>
>
> --
> Diego Venuzka
>
> --
> 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.



CellList - Alignment

2010-10-19 Thread Will
Hi,

I am having difficulty aligning my cell list correctly

I have used the GWT show case and tutorials as base...

I create my own cell classextends AbstractCell 

I am using DockLayout.
WestPanel is plain ScrollPanel

I create the CellList.
I add this as a widget to the ScrollPanel.
I then add this scrollpanel to the dock...

The elements in my Cell List however (similar to old version which was
a tree) are not 'correctly' aligned and the appearance is quite poor.I
think this is controlled by Parent Panels but despite numerous
attempts ...how do I get my cell List left aligned ?


Thanks,
W

private void createWestPanelCellList(DockPanel dock2) {



//Tree tree = createTree();
CellList cList = createCellList();



 westPanelScrollPane = WestPanelScrollPanel.getInstance();
 //((HasHorizontalAlignment)
westPanelScrollPane).setHorizontalAlignment(dock.ALIGN_LEFT);
westPanelScrollPane.setWidget(cList);
westPanelScrollPane.setSize("175px", "450px");
dock.add(westPanelScrollPane, DockPanel.WEST);
//System.out.println("alignment:???
>>>"+dock.getHorizontalAlignment());

//dock.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_LEFT);


}




public class UserCell extends AbstractCell {


 Resources IMAGEHANDLER = GWT.create(Resources.class);

private String imageHtml=null;

@Override
public void render(User value, Object key, SafeHtmlBuilder sb) {
// TODO Auto-generated method stub
// Value can be null, so do a null check..
  if (value == null) {
return;
  }

  //ImageResource image = new ImageResource("war/resources/icons/
user.png");


 ImageResource image =IMAGEHANDLER.femaleUser();
 imageHtml = AbstractImagePrototype.create(image).getHTML();

  sb.appendHtmlConstant("");

  // Add the contact image.
  sb.appendHtmlConstant("");
  sb.appendHtmlConstant(imageHtml);
  sb.appendHtmlConstant("");

   // Add the name and address.
  sb.appendHtmlConstant("");
  sb.appendEscaped(value.getFirstName());
  sb.appendHtmlConstant("");
  sb.appendEscaped(" "+value.getLastName());
  sb.appendHtmlConstant("");

}

-- 
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: EntityProxy + JDO enum handling

2010-10-19 Thread David Chandler (Google)
Hi BB,

This is the correct way to define an enum type as of 2.1 RC (in the
EntityProxy, not the entity), and I am able to reproduce the behavior
with the setter. Please file in the issue tracker:
http://code.google.com/p/google-web-toolkit/issues/list and label as
Milestone-2_1_RC1

Thanks!
David Chandler
Developer Programs Engineer, GWT
http://googlewebtoolkit.blogspot.com

On Oct 18, 5:11 pm, BB  wrote:
> Hi,
>
> I have an enum delcalred in my EntityProxy wich should be stored at
> the backend but if I try to load an Entity from the backend I get this
> error:
> [ERROR] [...] Parameter 0 of method UserProxy.setType does not match
> method de.server.db.User.setType
> [ERROR] [...] Parameter 0 of UserProxy.setType doesn't match method
> de.server.db.User.setType
>
> Here is the source code:http://gist.github.com/633065
>
> The problem is with the setType(Type type) method.
>
> Thanks for your help.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-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 + java.io.file

2010-10-19 Thread Feldman, Nir (48Upper)
When using REST you may think of supporting multipart request to your REST 
servlet.

-Original Message-
From: google-web-toolkit@googlegroups.com 
[mailto:google-web-tool...@googlegroups.com] On Behalf Of Jim Douglas
Sent: Tuesday, October 19, 2010 9:00 PM
To: Google Web Toolkit
Subject: Re: GWT + java.io.file

What is your ultimate goal, to generate a chunk of Base64-encoded
text, then do what with it?  Stash it somewhere on the server?  Do
something more with it on the client?  It's impossible to write to a
local (client) file using GWT/JavaScript (I'm disregarding additional
plugins here).

On *some bleeding-edge browsers*, it is now possible to read (not
write) a client-side file after the user has selected it in the
FileUpload.  But if you write code that depends on FileAPI, it won't
work in all current browsers.  OTOH, a server-centric approach is
pretty much guaranteed to work with any browser.

http://dev.w3.org/2006/webapi/FileAPI/

On Oct 19, 11:48 am, Ignasi  wrote:
> First of all, thanks a lot for your answer. You understand perfectly
> my problem and i have understood your answer.
> I can assume that what i want is imposible from client side.
> I would prefer dont write an independent servlet because on my server
> side i have a REST server, so i guess use it is better.
> If i never can write a local file from javascript, the only way that i
> have is upload the file (i guess i would can get the path or file to
> do it) and transform on the server side.
> What would be the better way to do it? FormPanel with submit button
> (and fileupload of course)? Use JQuery? Flash component?
>
> Thanks a lot!!
> Ignasi
>
> 2010/10/19 Jim Douglas :
>
>
>
> > Let's see if I understand your requirements:
>
> > You want to have the user select a file using a FileUpload on a
> > FormPanel.
> > You then want to perform some transformations on that file, including
> > generating a Base64 string.
> > You want the final result of those transformations to reside on the
> > server?
>
> > First, eliminate the impossible:
>
> > * You cannot write a file on the client.  This isn't a GWT
> > restriction, it's a core browser restriction.  This restriction is why
> > it's impossible for GWT to emulate java.io.File (http://
> > code.google.com/webtoolkit/doc/latest/RefJreEmulation.html).
> > * You cannot access the path of the file (but this is rarely a
> > concern).
>
> > What you want to do is:
>
> > * Write a FileUploadServlet that resides on your server.
> > * Receive the uploaded file in the doPost method of that servlet.
> > * Do all of your transformations there on the server.
>
> > Make your life easy -- grab the Apache FileUpload package from
> >http://commons.apache.org/fileupload/, add it to your server
> > classpath, and use it to manage the file upload process in
> > FileUploadServlet.
>
> > On Oct 19, 4:36 am, null  wrote:
> >> Hi all,
> >> there some way to use java.io.file in client side of my GWT Project?
> >> I need convert a file to string and then to base64.
> >> -I have a javascript code which can convert a string to base64
> >> -I have a DialogPanel with a FileUpload which get the path and name of
> >> the file that i want upload
>
> >> So i just need a way to manipule a file in Gwt.
>
> >> Thanks all!
>
> > --
> > 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.

-- 
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: Type of data in fields

2010-10-19 Thread Diego Venuzka
but how i do this ?

2010/10/17, A. Stevko :
> Which UI control and API are you referring to?
> I cannot seem to find a setValidator() method in the
> *com.google.gwt.user.client.ui.TextBox
> *class heirarchy.
>
> You might want to use the
> Interface HasValueChangeHandlers
> to add a handler that will be able to parse it via Integer.getInteger(
> myControl.getValue() )
>
>
> On Sat, Oct 16, 2010 at 4:45 AM, Diego Venuzka  wrote:
>
>> Anyone?
>>
>> 2010/10/14, Diego Venuzka :
>> > Hello!
>> > Somebody know how i can make a test in field, to know if the data is
>> string
>> > or integer? i'm tryng to use the setValidator(), but i don't know how i
>> set
>> > the parameters someone can help this rookie? =P
>> >
>> > Thanks!!
>> >
>> > --
>> > Diego Venuzka
>> >
>>
>>
>> --
>> Diego Venuzka
>>
>> --
>> 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.
>
>


-- 
Diego Venuzka

-- 
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: Maps App: PopupDialog strange behavior / sync

2010-10-19 Thread Eric Ayers
To get a better handle on why things are taking so long, go grab the
SpeedTracer extension for chrome at http://code.google.com/speedtracer

After you take a quick peek at your app, you can modify your app and
annotate the timeline by making a JSNI call to $wnd.console.markTimeline()
as described here:

http://code.google.com/webtoolkit/speedtracer/logging-api.html

It will give you some insight as to what is going on in the browser while
you are waiting for that popup.

On Tue, Oct 19, 2010 at 2:02 PM, Ben  wrote:

> Hi - I have created a Maps App with GWT involving PopupPanel's in
> various roles - particularly i'd like to use one for a 'Please wait'
> window while the Map gets updated. So, what i'm doing in p-code is:
>
> - define a PopupPanel P saying 'Please Wait'
> - define a button B to do something
> - in B's onclick() method do the following steps:
>  1. immediately call B.show();
>  2. then go ahead and process many Map elements, setting them
> visible(false), etc.
>  3. then return.
>
> The issue is that popup P is NOT showing immediately when B is
> clicked.. sometimes it shows only after a few moments as if it is
> struggling to compete with the subsequent map operations (there are
> *many* elements being manipulated in step 2, but only after step 1, i
> thought!).  The FIRST TIME I click the popup seems to be rendered
> promptly. AFter that the popup doesnt render in time to really serve
> as a 'please wait' popup..!
>
> Am i missing something with regard to sync'ing, or with the show()
> method or .setVisible(true)? (i've tried that too).
> Code snippet below:
>
> REDRAWING_DIALOG = new DialogBox(false);
> REDRAWING_DIALOG.setStyleName("gwt-PopupPanel");
> HTML message4 = new HTML(".. html here ");
> REDRAWING_DIALOG.setPixelSize(280, 100);//w,h
> REDRAWING_DIALOG.setAnimationEnabled(true);
> REDRAWING_DIALOG.setPopupPosition(400,250);
> REDRAWING_DIALOG.setWidget(message4);
> REDRAWING_DIALOG.hide();
>
> ...
>
> key_ok_button.addClickListener(new ClickListener() {
>  public void onClick(Widget sender) {
>
>  //show the 'Please wait' dialog
>  /*  THIS SEEMS TO LAG AND THE DIALOG DOES NOT SHOW PROMPTLY! */
>  REDRAWING_DIALOG.show();
>
>  if(MY CONDITIONS){
>if(showLS.isChecked())for(int i=0;i ((Marker)LS.elementAt(i)).setVisible(true);
>
>  //now hide the dialog after a timeout
>  /* NO PROBLEMS WITH HIDING IT */
>  timeoutTimer = new Timer() {
>public void run() {
>REDRAWING_DIALOG.hide(); //hide the 'please wait' dialog
>timeoutTimer = null;
>}//run
>};
>   timeoutTimer.schedule(3 * 1000); // timeout is in milliseconds
>   return;
> }//no systems selected
>
> --
> 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.
>
>


-- 
Eric Z. Ayers
Google Web Toolkit, Atlanta, GA USA

-- 
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: Want to do synchronous things with asynchronous elements

2010-10-19 Thread gaill...@audemat.com
Search for AbstractAsyncCallback on Google
You can have a strict queue of AsyncCallback

-- 
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: Invoking of clicking on html link (Thickbox integration)

2010-10-19 Thread Jirka Kr.
Thank you for your help, I tried the first solution.



On Oct 19, 2:28 pm, bconoly  wrote:
> First off I'd recommend not using a 3rd party js library as it
> bypasses the benefits of the gwt compiler.  GWT does have a
> DecoratedPopupPanel in its main library.  If you need to call an
> external anchor from your app you can use a native JS call to do it.
>
> public static native void clickThickBoxLink(String id) /*-{
>    $(id).click();
>
> }-*/
>
> Hope this helps
>
> On Oct 18, 1:41 pm, "Jirka Kr."  wrote:
>
>
>
> > How can I invoke a click or simulate clicking on plain old  > href="path to image" class="thickbox"> . In my application I want
> > to use jquery library ThickBox (http://jquery.com/demo/thickbox/). But
> > all my html content is dynamic. With Hyperlink class I can change only
> > text after anchor. I want to show preview of image, when user double
> > cliks on its thumbnail and I don't know how to invoke it from a
> > listener.
>
> > Or is there any alternative solution? I saw glass panel from gwt-
> > incubator, but I think it is rather difficult, I want simple
> > functionality like thick box.
>
> > Thanks in advance, JK

-- 
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: Invoking of clicking on html link (Thickbox integration)

2010-10-19 Thread Jirka Kr.
Thank you for your help, I tried the first solution.



On Oct 19, 2:28 pm, bconoly  wrote:
> First off I'd recommend not using a 3rd party js library as it
> bypasses the benefits of the gwt compiler.  GWT does have a
> DecoratedPopupPanel in its main library.  If you need to call an
> external anchor from your app you can use a native JS call to do it.
>
> public static native void clickThickBoxLink(String id) /*-{
>    $(id).click();
>
> }-*/
>
> Hope this helps
>
> On Oct 18, 1:41 pm, "Jirka Kr."  wrote:
>
>
>
> > How can I invoke a click or simulate clicking on plain old  > href="path to image" class="thickbox"> . In my application I want
> > to use jquery library ThickBox (http://jquery.com/demo/thickbox/). But
> > all my html content is dynamic. With Hyperlink class I can change only
> > text after anchor. I want to show preview of image, when user double
> > cliks on its thumbnail and I don't know how to invoke it from a
> > listener.
>
> > Or is there any alternative solution? I saw glass panel from gwt-
> > incubator, but I think it is rather difficult, I want simple
> > functionality like thick box.
>
> > Thanks in advance, JK

-- 
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: Supported browser statement

2010-10-19 Thread Dan Dumont
Thank you all!

On Tue, Oct 19, 2010 at 2:49 PM, Jim Douglas  wrote:

> That looks a bit out of date; it should also show Firefox 3.6, Safari
> 5, and Opera 10.
>
> On Oct 19, 11:40 am, Jeff Chimene  wrote:
> > On 10/19/2010 11:19 AM, Dan Dumont wrote:
> >
> > > That's not what I asked.   I'm looking for a support statement on
> > > browser support for GWT core.
> >
> > http://code.google.com/webtoolkit/doc/latest/FAQ_GettingStarted.html#...
>
> --
> 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.



Does Roo GWT support the --inheritanceType flag?

2010-10-19 Thread simonwhela...@hotmail.com
Hi

Does Roo GWT support --inheritanceType flag?
This works fine without using gwt setup.
Is it planned on the road map if its not supported?


project --topLevelPackage com.example

persistence setup --provider HIBERNATE --database MYSQL
database properties set --key database.password --value password
database properties set --key database.username --value username
database properties set --key database.url --value jdbc:mysql://
localhost:3306/testinheritance


entity --class ~.server.domain.Shape --inheritanceType TABLE_PER_CLASS
entity --class ~.server.domain.Square --extends ~.server.domain.Shape
--testAutomatically
entity --class ~.server.domain.Circle--extends ~.server.domain.Shape --
testAutomatically

field number --fieldName area --class ~.server.domain.Shape
field number --fieldName volumn

gwt setup

logging setup --level INFO

perform eclipse



It creates the correct domain classes with all the correct annotations
@RooJavaBean
@RooToString
@RooEntity
@Entity
@Inheritance(strategy = InheritanceType.TABLE_PER_CLASS)
public class Shape {
.
}

When I try to save a Square, I get this exception...any help is
appreciated.

[INFO] 2010-10-19 08:09:04,656 [main] INFO
org.springframework.web.servlet.handler.SimpleUrlH andlerMapping -
Root mapping to handler of type [class org.springframework.web.serv
let.mvc.ParameterizableViewController]
[INFO] 2010-10-19 08:09:04,734 [main] INFO
org.springframework.web.servlet.DispatcherServlet - FrameworkServlet
'example': initialization completed in 1047 ms
[ERROR] Oct 19, 2010 8:12:45 AM
com.google.gwt.requestfactory.server.RequestFactor yServlet doPost
[ERROR] SEVERE: Unexpected error
[ERROR] com.google.gwt.requestfactory.server.RequestProces
singException: Unexpected exception
[ERROR] at com.google.gwt.requestfactory.server.JsonRequestPr
ocessor.decodeAndInvokeRequest(JsonRequestProcesso r.java:242)
[ERROR] at com.google.gwt.requestfactory.server.JsonRequestPr
ocessor.decodeAndInvokeRequest(JsonRequestProcesso r.java:62)
[ERROR] at com.google.gwt.requestfactory.server.RequestFactor
yServlet.doPost(RequestFactoryServlet.java:122)
[ERROR] at javax.servlet.http.HttpServlet.service(HttpServlet .java:
727)
[ERROR] at javax.servlet.http.HttpServlet.service(HttpServlet .java:
820)
[ERROR] at org.mortbay.jetty.servlet.ServletHolder.handle(Ser
vletHolder.java:487)
[ERROR] at org.mortbay.jetty.servlet.ServletHandler$CachedCha
in.doFilter(ServletHandler.java:1097)
[ERROR] at org.springframework.web.filter.HiddenHttpMethodFil
ter.doFilterInternal(HiddenHttpMethodFilter.java:7 7)
[ERROR] at org.springframework.web.filter.OncePerRequestFilte
r.doFilter(OncePerRequestFilter.java:76)
[ERROR] at org.mortbay.jetty.servlet.ServletHandler$CachedCha
in.doFilter(ServletHandler.java:1088)
[ERROR] at org.springframework.web.filter.CharacterEncodingFi
lter.doFilterInternal(CharacterEncodingFilter.java :88)
[ERROR] at org.springframework.web.filter.OncePerRequestFilte
r.doFilter(OncePerRequestFilter.java:76)
[ERROR] at org.mortbay.jetty.servlet.ServletHandler$CachedCha
in.doFilter(ServletHandler.java:1088)
[ERROR] at org.springframework.orm.jpa.support.OpenEntityMana
gerInViewFilter.doFilterInternal(OpenEntityManager InViewFilter.java:
113)
[ERROR] at org.springframework.web.filter.OncePerRequestFilte
r.doFilter(OncePerRequestFilter.java:76)
[ERROR] at org.mortbay.jetty.servlet.ServletHandler$CachedCha
in.doFilter(ServletHandler.java:1088)
[ERROR] at org.mortbay.jetty.servlet.ServletHandler.handle(Se
rvletHandler.java:360)
[ERROR] at
org.mortbay.jetty.security.SecurityHandler.handle( SecurityHandler.java:
216)
[ERROR] at org.mortbay.jetty.servlet.SessionHandler.handle(Se
ssionHandler.java:181)
[ERROR] at org.mortbay.jetty.handler.ContextHandler.handle(Co
ntextHandler.java:729)
[ERROR] at org.mortbay.jetty.webapp.WebAppContext.handle(WebA
ppContext.java:405)
[ERROR] at org.mortbay.jetty.handler.HandlerWrapper.handle(Ha
ndlerWrapper.java:152)
[ERROR] at org.mortbay.jetty.handler.RequestLogHandler.handle
(RequestLogHandler.java:49)
[ERROR] at org.mortbay.jetty.handler.HandlerWrapper.handle(Ha
ndlerWrapper.java:152)
[ERROR] at org.mortbay.jetty.Server.handle(Server.java:324)
[ERROR] at org.mortbay.jetty.HttpConnection.handleRequest(Htt
pConnection.java:505)
[ERROR] at org.mortbay.jetty.HttpConnection$RequestHandler.co
ntent(HttpConnection.java:843)
[ERROR] at org.mortbay.jetty.HttpParser.parseNext(HttpParser. java:
647)
[ERROR] at org.mortbay.jetty.HttpParser.parseAvailable(HttpPa
rser.java:211)
[ERROR] at org.mortbay.jetty.HttpConnection.handle(HttpConnec
tion.java:380)
[ERROR] at org.mortbay.io.nio.SelectChannelEndPoint.run(Selec
tChannelEndPoint.java:395)
[ERROR] at org.mortbay.thread.QueuedThreadPool$PoolThread.run
(QueuedThreadPool.java:488)
[ERROR] Caused by: java.lang.IllegalArgumentException: Unknown
operation com.example.client.managed.request.SquareRequest:: persist
[ERROR] at com.google.gwt.requestfactory.server.JsonRequestPr
ocessor.getOperation(JsonRequestProcessor.java:702 )

DnD Idea - management tool

2010-10-19 Thread Dawid Dziewulski
Hi all

I'm looking for idea how to build something like palette (like dnd
interface builders).
For instance I have on the right, some boxes and on the left side,
place where I could put them.

In addition I add that I'm trying to build something like above as a
extension for gwt-cal.

Of course I have one problem how to deliver one dnd item (any box)
from one boundaryPanel to another (Is this possible ?)

Every help is welcome

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.



Maps App: PopupDialog strange behavior / sync

2010-10-19 Thread Ben
Hi - I have created a Maps App with GWT involving PopupPanel's in
various roles - particularly i'd like to use one for a 'Please wait'
window while the Map gets updated. So, what i'm doing in p-code is:

- define a PopupPanel P saying 'Please Wait'
- define a button B to do something
- in B's onclick() method do the following steps:
  1. immediately call B.show();
  2. then go ahead and process many Map elements, setting them
visible(false), etc.
  3. then return.

The issue is that popup P is NOT showing immediately when B is
clicked.. sometimes it shows only after a few moments as if it is
struggling to compete with the subsequent map operations (there are
*many* elements being manipulated in step 2, but only after step 1, i
thought!).  The FIRST TIME I click the popup seems to be rendered
promptly. AFter that the popup doesnt render in time to really serve
as a 'please wait' popup..!

Am i missing something with regard to sync'ing, or with the show()
method or .setVisible(true)? (i've tried that too).
Code snippet below:

REDRAWING_DIALOG = new DialogBox(false);
REDRAWING_DIALOG.setStyleName("gwt-PopupPanel");
HTML message4 = new HTML(".. html here ");
REDRAWING_DIALOG.setPixelSize(280, 100);//w,h
REDRAWING_DIALOG.setAnimationEnabled(true);
REDRAWING_DIALOG.setPopupPosition(400,250);
REDRAWING_DIALOG.setWidget(message4);
REDRAWING_DIALOG.hide();

...

key_ok_button.addClickListener(new ClickListener() {
  public void onClick(Widget sender) {

  //show the 'Please wait' dialog
  /*  THIS SEEMS TO LAG AND THE DIALOG DOES NOT SHOW PROMPTLY! */
  REDRAWING_DIALOG.show();

  if(MY CONDITIONS){
if(showLS.isChecked())for(int i=0;ihttp://groups.google.com/group/google-web-toolkit?hl=en.



Re: GWT and WebGL

2010-10-19 Thread Ferney
look this:

http://code.google.com/p/gwt-g3d/

-- 
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 + java.io.file

2010-10-19 Thread Jim Douglas
What is your ultimate goal, to generate a chunk of Base64-encoded
text, then do what with it?  Stash it somewhere on the server?  Do
something more with it on the client?  It's impossible to write to a
local (client) file using GWT/JavaScript (I'm disregarding additional
plugins here).

On *some bleeding-edge browsers*, it is now possible to read (not
write) a client-side file after the user has selected it in the
FileUpload.  But if you write code that depends on FileAPI, it won't
work in all current browsers.  OTOH, a server-centric approach is
pretty much guaranteed to work with any browser.

http://dev.w3.org/2006/webapi/FileAPI/

On Oct 19, 11:48 am, Ignasi  wrote:
> First of all, thanks a lot for your answer. You understand perfectly
> my problem and i have understood your answer.
> I can assume that what i want is imposible from client side.
> I would prefer dont write an independent servlet because on my server
> side i have a REST server, so i guess use it is better.
> If i never can write a local file from javascript, the only way that i
> have is upload the file (i guess i would can get the path or file to
> do it) and transform on the server side.
> What would be the better way to do it? FormPanel with submit button
> (and fileupload of course)? Use JQuery? Flash component?
>
> Thanks a lot!!
> Ignasi
>
> 2010/10/19 Jim Douglas :
>
>
>
> > Let's see if I understand your requirements:
>
> > You want to have the user select a file using a FileUpload on a
> > FormPanel.
> > You then want to perform some transformations on that file, including
> > generating a Base64 string.
> > You want the final result of those transformations to reside on the
> > server?
>
> > First, eliminate the impossible:
>
> > * You cannot write a file on the client.  This isn't a GWT
> > restriction, it's a core browser restriction.  This restriction is why
> > it's impossible for GWT to emulate java.io.File (http://
> > code.google.com/webtoolkit/doc/latest/RefJreEmulation.html).
> > * You cannot access the path of the file (but this is rarely a
> > concern).
>
> > What you want to do is:
>
> > * Write a FileUploadServlet that resides on your server.
> > * Receive the uploaded file in the doPost method of that servlet.
> > * Do all of your transformations there on the server.
>
> > Make your life easy -- grab the Apache FileUpload package from
> >http://commons.apache.org/fileupload/, add it to your server
> > classpath, and use it to manage the file upload process in
> > FileUploadServlet.
>
> > On Oct 19, 4:36 am, null  wrote:
> >> Hi all,
> >> there some way to use java.io.file in client side of my GWT Project?
> >> I need convert a file to string and then to base64.
> >> -I have a javascript code which can convert a string to base64
> >> -I have a DialogPanel with a FileUpload which get the path and name of
> >> the file that i want upload
>
> >> So i just need a way to manipule a file in Gwt.
>
> >> Thanks all!
>
> > --
> > 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: Supported browser statement

2010-10-19 Thread Jim Douglas
That looks a bit out of date; it should also show Firefox 3.6, Safari
5, and Opera 10.

On Oct 19, 11:40 am, Jeff Chimene  wrote:
> On 10/19/2010 11:19 AM, Dan Dumont wrote:
>
> > That's not what I asked.   I'm looking for a support statement on
> > browser support for GWT core.
>
> http://code.google.com/webtoolkit/doc/latest/FAQ_GettingStarted.html#...

-- 
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 + java.io.file

2010-10-19 Thread Ignasi
First of all, thanks a lot for your answer. You understand perfectly
my problem and i have understood your answer.
I can assume that what i want is imposible from client side.
I would prefer dont write an independent servlet because on my server
side i have a REST server, so i guess use it is better.
If i never can write a local file from javascript, the only way that i
have is upload the file (i guess i would can get the path or file to
do it) and transform on the server side.
What would be the better way to do it? FormPanel with submit button
(and fileupload of course)? Use JQuery? Flash component?

Thanks a lot!!
Ignasi

2010/10/19 Jim Douglas :
> Let's see if I understand your requirements:
>
> You want to have the user select a file using a FileUpload on a
> FormPanel.
> You then want to perform some transformations on that file, including
> generating a Base64 string.
> You want the final result of those transformations to reside on the
> server?
>
> First, eliminate the impossible:
>
> * You cannot write a file on the client.  This isn't a GWT
> restriction, it's a core browser restriction.  This restriction is why
> it's impossible for GWT to emulate java.io.File (http://
> code.google.com/webtoolkit/doc/latest/RefJreEmulation.html).
> * You cannot access the path of the file (but this is rarely a
> concern).
>
> What you want to do is:
>
> * Write a FileUploadServlet that resides on your server.
> * Receive the uploaded file in the doPost method of that servlet.
> * Do all of your transformations there on the server.
>
> Make your life easy -- grab the Apache FileUpload package from
> http://commons.apache.org/fileupload/, add it to your server
> classpath, and use it to manage the file upload process in
> FileUploadServlet.
>
> On Oct 19, 4:36 am, null  wrote:
>> Hi all,
>> there some way to use java.io.file in client side of my GWT Project?
>> I need convert a file to string and then to base64.
>> -I have a javascript code which can convert a string to base64
>> -I have a DialogPanel with a FileUpload which get the path and name of
>> the file that i want upload
>>
>> So i just need a way to manipule a file in Gwt.
>>
>> Thanks all!
>
> --
> 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: Supported browser statement

2010-10-19 Thread Jeff Chimene
On 10/19/2010 11:19 AM, Dan Dumont wrote:
> That's not what I asked.   I'm looking for a support statement on
> browser support for GWT core.

http://code.google.com/webtoolkit/doc/latest/FAQ_GettingStarted.html#What_browsers_does_GWT_support?

-- 
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: Supported browser statement

2010-10-19 Thread Dan Dumont
That's not what I asked.   I'm looking for a support statement on browser
support for GWT core.

On Tue, Oct 19, 2010 at 11:36 AM, ep  wrote:

> the com.google.gwt.dom.client.Document class provides low level DOM
> access, it returns an Element which corresponds to a DOM element, if
> its not low-level enough you can also write native methods and access
> DOM directly
>
> On 19 Okt., 17:21, Dan  wrote:
> > Does GWT have a supported browser statement?
> >
> > One that would reflect the core javascript/DOM compat and not anything
> > widgets specifically might do.
>
> --
> 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: A new gwt-tetris implementation

2010-10-19 Thread Tan Duy
Great!
Love it :)

On Oct 18, 9:40 am, Yotam  wrote:
> Hi, I've created a new and improved tetris game based on gwt-tetris.
> I made the control more comfortable and added a high score table to
> it.
>
> http://gwttetris.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-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: HandlerManager / (Simple)EventBus

2010-10-19 Thread dingwa
So maybe I'm embracing (/ misusing) the HandlerManager a bit too much
here. But I am trying to show the login progress (via a progressBar)
in my app.  I have a LoginAppController that fires off a LoginEvent
for which various AppControllers are listening for.  When each of
these AppControllers receive the LoginEvent they then perform what
they have to do to login their part of the application.  Once each
AppController finishes their respective login function, a
LoggedOnEvent is fired back into the HandlerManager for which my
LoginAppController is listening for.  And as you can see, if I can get
number of AppControllers listening for the LoginEvent, I am able to
work out exactly my progress of the login routine as the
LoginAppController receives the LoggedOnEvents.

Now with this out of the way, how could I now potentially do this in
2.1.0.RC1?

thanks


On Oct 19, 10:26 am, Thomas Broyer  wrote:
> On 19 oct, 10:22, dmen  wrote:
>
> > - I am having problem X while doing Y ...
> > - Why are you doing Y ?
>
> > I am guilty of that too, though I think it is so annoying.
>
> By understanding the "why" of Y, you can try to find another way of
> answering the "why" without doing Y, so that you don't face problem X.

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

2010-10-19 Thread Michael W
During the last two years, I have been working on high traffic (over
millions hits a day) , high volume, consumer based (B2C) application
with GWT.

Went through all phrases: prototype, architecture, design, implement,
test and performance tune up.

I would like to share my experiences of using GWT, including but not
limit to:

  -- Navigation (token) configuration, much like Struts’ structs-
config.xml and Spring spring-servlet.xml
  -- SEO: dynamic set title, meta description, meta keywords, Google
GWT search engine parsing implementation etc.
  -- Spring: integrate with Spring MVC for loading GWT and RPC.
  -- Map: integrate with Google map.
  -- Performance tune up: remove nocache.js, reorder the call order
etc.
  -- uiBInding, MVP integration.

In current release:
   Navigation (token) configuration is in the current release.
 gogwtarch_1.0.jar is framework extend to GWT and gogwtdemo is the
sample of using gogwtarch


   The navigation configuration file would be like:


   
  
  
   

   
  
 
  

  
  
 
 
  

  
  
  



Where global-forwards for the global forward. And forward defined
inside page only forward locally.

Java file would like:
 Button toInfo = new Button("To Info Page");
   toInfo.addClickHandler(new ClickHandler() {
  public void onClick(ClickEvent arg0) {
 
ActionForward.forward("success");
  }
   });

 Anchor toHome = new Anchor("Global forward: Back To home");
 toHome.addClickHandler(new ClickHandler() {
public void onClick(ClickEvent arg0) {
 ActionForward.forward("gToHome");
}
 });

Document:
http://code.google.com/p/gogwtrelease/wiki/gogwtdemo10

Download:
http://code.google.com/p/gogwtrelease/downloads/detail?name=gogwtarch_1.0.jar
http://code.google.com/p/gogwtrelease/downloads/detail?name=gogwtdemo_1.0.zip

-- 
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: communication between two frames

2010-10-19 Thread aditya sanas
 thanks for ur reply and kind help.
i am still searching for the right solution.
I have implemented what u have specified in the la st thread as -
 $wnd.myBus.fire("myModule","initState")
 this works fine  when i m opening both  the modules in different (seperate)
windows of the same browser. but whenever i try this using inner frame it
doesn't work as it should be.

so for guiding purpose if you can  share a code snippet that might help me
for better understand.

And yes,we had thought of  code splitting but we couldn't implemented it.

thanks.
--
Aditya


On Mon, Oct 18, 2010 at 5:28 PM, ep  wrote:

> ah ok got your point, well, if you write:
>
> @com.verisona.bridge.client.CandidateMainView::alertWindow();
>
> for the GWT compiler is pretty same as a pure Java call - because that
> code is not actually "native" where as
>
> $wnd.alert("foo")
>
> is a real native code which is not handled by GWT compiler. the first
> line would not work cross anonymous modules (such as those which are
> not compiled within same compilation process) since the obfuscator
> will rename all the types/method names. when I've written "native" i
> really meant pure Java-Code which is not compiled by GWT compiler, but
> rather is supplied from a separate codeBase.js (javascript) file.
> because that code you always can use cross-modules like
> $wnd.myBus.fire("myModule","initState").
>
> The issue is that you have to compile all available modules in same
> compile process to get them working with each other via compile time
> binding (such as calling ModuleA.refresh() from ModuleB), after
> compilation (with obfuscation) there is no way to reach the code via
> API.
>
> Have you already tried code splitting feature to minimize the initial
> bootstrap? so that codebase from "moduleX" is loaded on demand?
>
>
> On 18 Okt., 12:25, aditya sanas <007aditya.b...@gmail.com> wrote:
> > yeah you are right my each of the module is compilable each is having
> > entryPoint class associated with it but
> > this is how we use to design a GWT module or is it possible to have GWT
> > module without EntryPoint class associated with it...?
> >
> > actually we were having a single enrty point class for this module before
> > but it was making page very heavy.And it was taking more than 10seconds
> each
> > time to load when we deploy project online.
> > So for this we had decided to split modules and each page will have
> > different module associate with it.
> >
> > but still we are not able find a solution for communication between two
> > modules.
> > and i didn't get your last line.
> >
> > I m trying this as
> > following method is from master class as
> >
> > CandidateMainView.java implements EntryPoint
> > //...
> > public static native void alertWindow()/*-{
> >  $wnd.alert('hello there i m in main...');
> >
> > }-*/;
> >
> > and i m trying to access this method from some other class which is
> getting
> > loaded into the inner frame.
> > CandidateAccountSetting.java implements EntryPoint
> >
> > //..
> > private native void registerAFunction() /*-{
> > @com.verisona.bridge.client.CandidateMainView::alertWindow();
> >
> > }-*/;
> >
> > this should give an alert but it doesn't work.
> > is this what u r suggesting ?
> >
> > --
> > Aditya
> >
> > On Mon, Oct 18, 2010 at 3:26 PM, ep  wrote:
> > > actually, you could be using HandlerManager as an event bus between
> > > all your modules, but I guess you trying to treat each of your modules
> > > as separate "gwt applications", each having an entry point and also
> > > each independently compilable / runnable? therefore you cannot just
> > > reference classes cross-wise?
> >
> > > in this case you could create a small API allowing message interchange
> > > or you follow observer pattern and the host page (being a master) can
> > > provide the implementation as a native JS code.
> >
> > > On 18 Okt., 11:20, aditya sanas <007aditya.b...@gmail.com> wrote:
> > > > yes those are from same host in the same window.
> >
> > > > I have somewhere about 10 modules in my project out of which 1 is
> main
> > > > modules which contains a Frame(GWT).
> > > > and in this frame i m loading other 9 modules in the same window.
> > > > So i want main window and frame should communicate with each other.
> > > > that is there is should be some kind of message passing between these
> two
> > > > modules but i m finding it little difficult to do it as both are
> > > > from different modules and so the objects in one module is not
> accessible
> > > to
> > > > the other.
> >
> > > > --
> > > > Aditya
> >
> > > > On Mon, Oct 18, 2010 at 2:03 PM, ep 
> wrote:
> > > > > hi, a small question, do you open contents from same host (as
> parent
> > > > > window) within your innerframe?
> >
> > > > > On 18 Okt., 09:26, Aditya <007aditya.b...@gmail.com> wrote:
> > > > > > Hello Guys,
> >
> > > > > >   I am designing a web application using GWT which
> has
> > > one
> > > > > > inner frame which loads different modules

Re: EntityProxy Returns Null for Collection Properties

2010-10-19 Thread keyvez
Hi,

Thanks for the suggestions, my addresses are a set of strings so I
tried calling like so:

Request createReq =
request.authenticate().using(user).with("addresses");

createReq.fire(new Receiver() {

@Override
public void onSuccess( UserProxy authenticatedUser ) {
 
System.out.println(authenticatedUser.getFirstname()); //
prints "First name of Person" as expected
 
System.out.println(authenticatedUser.getAddresses().size()); //
prints
0 instead of the no. of addresses, which is more than 0 for this user
}
}

But it's the same result as before, maybe I am missing another piece
of the equation. Thanks for your help.

Gaurav

On Oct 19, 6:18 am, Thomas Broyer  wrote:
> On 19 oct, 14:47, agi  wrote:
>
>
>
>
>
> > Does it work recurential?
> > so lets say I have  classes:
> > Person
> > {
> >   List adresses;
>
> > }
>
> > Address
> > {
> >      Telephone telephone;
>
> > }
>
> > I should write
> > personRequest.findAll().with("adresses", "telephone").fire(...)
> > ?
>
> with("adresses.telephone")

-- 
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: java.lang.ClassCastException .. but why?

2010-10-19 Thread alexoffspring
Thanks guys.

Ok, i got the error in the constructor. Now it sounds like this:

> public class MyMenuBar extends MenuBar {

// super constructor
public MyMenuBar(boolean bool) {
 super(bool);
} ;



But still i got the same ClassCastException.

rootis a MenuItem   androot.getSubMenu() return a MenuBar
object.




On 19 Ott, 17:39, ep  wrote:
> where do you make new MyMenuBar() and how do you provide it to the
> "root" member? and what type is root actually?
>
> On 19 Okt., 17:14, alexoffspring  wrote:
>
>
>
> > I created a public class MyMenuBar   just to use the getItems()
> > method, which is protected in MenuBar:
> > 
> > public class MyMenuBar extends MenuBar {
>
> >         // super constructor
> >         public MyMenuBar(boolean bool) {
> >                 new MenuBar(bool);
> >         }
>
> >         // the super.getItems() is protected
> >         public List getItems() {
> >                 return super.getItems();
> >         }
>
> > };
>
> > 
>
> > I don't understand why a get a   java.lang.ClassCastException  when i
> > try to cast a MenuBar into a MyMenuBar:
>
> > .
> > MenuBar menuBar = root.getSubMenu();
> > local_mmb = ((MyMenuBar) menuBar).getItems();
> > 
>
> > Where am i wrong?- Nascondi testo citato
>
> - Mostra testo citato -

-- 
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 + java.io.file

2010-10-19 Thread Jim Douglas
Let's see if I understand your requirements:

You want to have the user select a file using a FileUpload on a
FormPanel.
You then want to perform some transformations on that file, including
generating a Base64 string.
You want the final result of those transformations to reside on the
server?

First, eliminate the impossible:

* You cannot write a file on the client.  This isn't a GWT
restriction, it's a core browser restriction.  This restriction is why
it's impossible for GWT to emulate java.io.File (http://
code.google.com/webtoolkit/doc/latest/RefJreEmulation.html).
* You cannot access the path of the file (but this is rarely a
concern).

What you want to do is:

* Write a FileUploadServlet that resides on your server.
* Receive the uploaded file in the doPost method of that servlet.
* Do all of your transformations there on the server.

Make your life easy -- grab the Apache FileUpload package from
http://commons.apache.org/fileupload/, add it to your server
classpath, and use it to manage the file upload process in
FileUploadServlet.

On Oct 19, 4:36 am, null  wrote:
> Hi all,
> there some way to use java.io.file in client side of my GWT Project?
> I need convert a file to string and then to base64.
> -I have a javascript code which can convert a string to base64
> -I have a DialogPanel with a FileUpload which get the path and name of
> the file that i want upload
>
> So i just need a way to manipule a file in Gwt.
>
> Thanks all!

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



help:Serialize/Deserialize a gwt gui to/from an XML (template)

2010-10-19 Thread MAM
Hi, briefly, the tool will be able to serialize a GUI written in GWT
(in
input) into XML/JSON (preferably XML) file , and perform the reverse:
read the created XML file (template) and reconstruct the GUI.
I'm newbie with GWT , so any idea will be welcome concerning the type
of tool i can develop  and  tools, tutorials, library that seem
useful
need help for the first stage of the project: generating an xml
template from GUI written in GWT
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.



Re: How to implement UserAuth / Login in GWT2.1

2010-10-19 Thread Patrick Hilsbos
Thanks.
There is something like a fake userinformation and login service, when
you create projects with roo and gwt 2.1 and i want to use that
pattern.
For sure its really easy. I just dont know axtually how to subclass
and wire that things up.
Cheers Patrick

On Oct 19, 3:55 pm, nacho  wrote:
> Are you looking something like this?
>
> http://code.google.com/intl/es-AR/webtoolkit/articles/dynamic_host_pa...
>
> On 19 oct, 08:41, Patrick Hilsbos 
> wrote:
>
>
>
> > Hi,
> > can someone tell me how to implement an user auth - using
> > userinformation in gwt2.1?
>
> > i already got, that i should subclass UserInformationSimpleImpl - but
> > what to do next / how to wire up?
>
> > thx

-- 
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: java.lang.ClassCastException .. but why?

2010-10-19 Thread ep
where do you make new MyMenuBar() and how do you provide it to the
"root" member? and what type is root actually?

On 19 Okt., 17:14, alexoffspring  wrote:
> I created a public class MyMenuBar   just to use the getItems()
> method, which is protected in MenuBar:
> 
> public class MyMenuBar extends MenuBar {
>
>         // super constructor
>         public MyMenuBar(boolean bool) {
>                 new MenuBar(bool);
>         }
>
>         // the super.getItems() is protected
>         public List getItems() {
>                 return super.getItems();
>         }
>
> };
>
> 
>
> I don't understand why a get a   java.lang.ClassCastException  when i
> try to cast a MenuBar into a MyMenuBar:
>
> .
> MenuBar menuBar = root.getSubMenu();
> local_mmb = ((MyMenuBar) menuBar).getItems();
> 
>
> Where am i 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.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Strange compilation errors on linux platform

2010-10-19 Thread Chris Conroy
It looks like something about your images/system is causing ImageIO.write to
fail. My best guess is that it's returning that there are no available
ImageWriters, but the compiler incorrectly does not read the return value.

Any time the compiler dies with an NPE, we consider that a compiler bug. I
should have a patch later today to fail on this condition a bit more
gracefully. That said, the root cause will still mean your build won't
complete.

On Fri, Oct 15, 2010 at 10:44 AM, bananos wrote:

> We have a pretty heterogeneous team which works with GWT on Mac,
> Windows & linux machines.
> One of our latest commit crashed the automatic build which runs on
> linux box.
> The problem is that GWT java source generator fails with
> NullPointerException at different places with the same configuration
> inputs, therefore it is very hard to reproduce bug or nail it down.
>
> The only regularity we've found is that it fails at some point when
> trying to generate client bundles from PNG files.
> Here are few examples:
>
> Case #1
>
>[java]Scanning for additional dependencies: file:/home/bear-z/
> work/client/Application/src/com/project/client/common/bundles/
> CommonResources.java
> [java]   Computing all possible rebind results for
> 'com.project.client.common.bundles.CommonResources'
> [java]  Rebinding
> com.project.client.common.bundles.CommonResources
> [java] Invoking
> com.google.gwt.dev.javac.standardgeneratorcont...@72af7016
> [java][ERROR] Generator
> 'com.google.gwt.resources.rebind.context.InlineClientBundleGenerator'
> threw threw an exception while rebinding
> 'com.project.client.common.bundles.CommonResources'
> [java] java.lang.NullPointerException
> [java] at
>
> com.google.gwt.resources.rebind.context.InlineResourceContext.deploy(InlineResourceContext.java:
> 40)
> [java] at
>
> com.google.gwt.resources.rebind.context.AbstractResourceContext.deploy(AbstractResourceContext.java:
> 97)
> [java] at
>
> com.google.gwt.resources.rg.ImageResourceGenerator.maybeDeploy(ImageResourceGenerator.java:
> 369)
> [java] at
>
> com.google.gwt.resources.rg.ImageResourceGenerator.createFields(ImageResourceGenerator.java:
> 176)
> [java] at
>
> com.google.gwt.resources.rebind.context.AbstractClientBundleGenerator.createFieldsAndAssignments(AbstractClientBundleGenerator.java:
> 328)
> [java] at
>
> com.google.gwt.resources.rebind.context.AbstractClientBundleGenerator.createFieldsAndAssignments(AbstractClientBundleGenerator.java:
> 385)
> [java] at
>
> com.google.gwt.resources.rebind.context.AbstractClientBundleGenerator.generate(AbstractClientBundleGenerator.java:
> 245)
> [java] at
>
> com.google.gwt.dev.javac.StandardGeneratorContext.runGenerator(StandardGeneratorContext.java:
> 418)
> [java] at
> com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java:
> 38)
> [java] at com.google.gwt.dev.shell.StandardRebindOracle
> $Rebinder.tryRebind(StandardRebindOracle.java:108)
> [java] at com.google.gwt.dev.shell.StandardRebindOracle
> $Rebinder.rebind(StandardRebindOracle.java:54)
> [java] at
>
> com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:
> 154)
> [java] at
>
> com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:
> 143)
> [java] at com.google.gwt.dev.Precompile
>
> $DistillerRebindPermutationOracle.getAllPossibleRebindAnswers(Precompile.java:
> 317)
> [java] at
>
> com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.doFindAdditionalTypesUsingRebinds(WebModeCompilerFrontEnd.java:
> 95)
> [java] at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox
> $CompilerImpl.process(AbstractCompiler.java:200)
> [java] at
> org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:444)
> [java] at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox
> $CompilerImpl.compile(AbstractCompiler.java:123)
> [java] at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox
> $CompilerImpl.compile(AbstractCompiler.java:234)
> [java] at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox
> $CompilerImpl.access$200(AbstractCompiler.java:109)
> [java] at
> com.google.gwt.dev.jdt.AbstractCompiler.compile(AbstractCompiler.java:
> 522)
> [java] at
>
> com.google.gwt.dev.jdt.BasicWebModeCompiler.getCompilationUnitDeclarations(BasicWebModeCompiler.java:
> 112)
> [java] at
>
> com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.getCompilationUnitDeclarations(WebModeCompilerFrontEnd.java:
> 47)
> [java] at
>
> com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScriptCompiler.java:
> 430)
> [java] at
>
> com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.java:
> 32)
> [java] at
> com.google.gwt.dev.Precompile.precompile(Precompile.java:522)
> [java] at
> com.google.gwt.dev.Precompile

Re: Supported browser statement

2010-10-19 Thread ep
the com.google.gwt.dom.client.Document class provides low level DOM
access, it returns an Element which corresponds to a DOM element, if
its not low-level enough you can also write native methods and access
DOM directly

On 19 Okt., 17:21, Dan  wrote:
> Does GWT have a supported browser statement?
>
> One that would reflect the core javascript/DOM compat and not anything
> widgets specifically might do.

-- 
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: Does GWT designer currently work with UIBinder?

2010-10-19 Thread Jeff Larsen
Also, it looks like provided=true fields cause designer to not work. I
understand why that would be hard, any chance of allowing us to pick
some kind of stub for those provided=true fields when working in the
designer?


On Oct 19, 10:13 am, Jeff Larsen  wrote:
> Sorry, but it isn't working for me.
>
> Tried opening up a UI binder file, and crash.
>
> Made a new ui binder file with generated sample content. That opened,
> but then WindowBuilder  crashed when I clicked on the button and hit
> delete.
>
> winxp 32
> Running on STS 2.5.0-RC1
> GWT 2.1-RC1
>
> On Oct 19, 8:33 am, Eric Clayberg - Instantiations
>
>  wrote:
> > Yes. UiBinder works with GWT Designer.
>
> > Make sure that you are using the latest GWT Designer build...
>
> >http://code.google.com/webtoolkit/tools/download-gwtdesigner-beta.html
>
> > On Oct 18, 10:16 am, WillSpecht  wrote:
>
> > > I recently learned about GWT Designer and I am trying to use it in one
> > > of my projects.  When I tried to open myView.java I got a message that
> > > this view is associated with a UIBinder file and that I should open
> > > the UIBinder file.  When I open the UIBinder file I am told that I
> > > need version 2.1 M4 for UIBinder to work.  I then install 2.1RC1 and I
> > > get an internal error when I try and open a UI file with
> > > windowBuilder.  So does UIBinder work with GWT Designer? If it does,
> > > 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.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: java.lang.ClassCastException .. but why?

2010-10-19 Thread Lothar Kimmeringer
Am 19.10.2010 17:14, schrieb alexoffspring:
> public class MyMenuBar extends MenuBar {
> 
>   // super constructor
>   public MyMenuBar(boolean bool) {
>   new MenuBar(bool);
>   }

What's the purpose of the instantiation without assigning it
to a variable?

>   // the super.getItems() is protected
>   public List getItems() {
>   return super.getItems();
>   }
[...]

> I don't understand why a get a   java.lang.ClassCastException  when i
> try to cast a MenuBar into a MyMenuBar:

Most likely the element returned by root.getSubMenu is not
an instance of MyMenuBar.


Regards, Lothar

-- 
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: java.lang.ClassCastException .. but why?

2010-10-19 Thread Prashant
i think you should use "super(bool);" instead of "new MenuBar(bool);" in
public constructor of MyMenuBar class

-- 
Prashant
www.claymus.com
code.google.com/p/claymus/

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



Supported browser statement

2010-10-19 Thread Dan
Does GWT have a supported browser statement?

One that would reflect the core javascript/DOM compat and not anything
widgets specifically might do.

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



java.lang.ClassCastException .. but why?

2010-10-19 Thread alexoffspring
I created a public class MyMenuBar   just to use the getItems()
method, which is protected in MenuBar:

public class MyMenuBar extends MenuBar {

// super constructor
public MyMenuBar(boolean bool) {
new MenuBar(bool);
}

// the super.getItems() is protected
public List getItems() {
return super.getItems();
}

};




I don't understand why a get a   java.lang.ClassCastException  when i
try to cast a MenuBar into a MyMenuBar:


.
MenuBar menuBar = root.getSubMenu();
local_mmb = ((MyMenuBar) menuBar).getItems();



Where am i 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.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Does GWT designer currently work with UIBinder?

2010-10-19 Thread Jeff Larsen
Sorry, but it isn't working for me.

Tried opening up a UI binder file, and crash.

Made a new ui binder file with generated sample content. That opened,
but then WindowBuilder  crashed when I clicked on the button and hit
delete.

winxp 32
Running on STS 2.5.0-RC1
GWT 2.1-RC1



On Oct 19, 8:33 am, Eric Clayberg - Instantiations
 wrote:
> Yes. UiBinder works with GWT Designer.
>
> Make sure that you are using the latest GWT Designer build...
>
> http://code.google.com/webtoolkit/tools/download-gwtdesigner-beta.html
>
> On Oct 18, 10:16 am, WillSpecht  wrote:
>
> > I recently learned about GWT Designer and I am trying to use it in one
> > of my projects.  When I tried to open myView.java I got a message that
> > this view is associated with a UIBinder file and that I should open
> > the UIBinder file.  When I open the UIBinder file I am told that I
> > need version 2.1 M4 for UIBinder to work.  I then install 2.1RC1 and I
> > get an internal error when I try and open a UI file with
> > windowBuilder.  So does UIBinder work with GWT Designer? If it does,
> > 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.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: EntityProxy Returns Null for Collection Properties

2010-10-19 Thread agi
Thanks Thomas,

that helped:)


On Oct 19, 3:18 pm, Thomas Broyer  wrote:
> On 19 oct, 14:47, agi  wrote:
>
>
>
>
>
> > Does it work recurential?
> > so lets say I have  classes:
> > Person
> > {
> >   List adresses;
>
> > }
>
> > Address
> > {
> >      Telephone telephone;
>
> > }
>
> > I should write
> > personRequest.findAll().with("adresses", "telephone").fire(...)
> > ?
>
> with("adresses.telephone")

-- 
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: Strange compilation errors on linux platform

2010-10-19 Thread Jeff Chimene
Alright. I don't have a good answer for you other than to create an app from
scratch and see if it compiles.

On Tue, Oct 19, 2010 at 3:43 AM, bananos  wrote:

> Yep, there was no problem for almost a year (we were having Hudson
> linux box for deployment from the very start),
> and suddenly after small reorganizing of resources (actually only
> paths to image resources were changed)  -- it crashed
>
> As for the env, I tried to play a bit with gwtc settings, but no
> luck.
> Currently, our project consists of 2 applications, and here is come
> details from ant build:
>
>
>
>
>
>
>
>
> Increasing/decreasing Xmx didn't help at all, changing Java from
> OpenJDK to Sun java didn't help either
>
>
>
> On Oct 18, 8:03 pm, Jeff Chimene  wrote:
> > At first glance, it seems there is a problem with the environment
> settings.
> >
> > Have you successfully built other projects on the Linux box?
> >
> > FWIW, I do 99% of my GWT work on Debian.
>
> --
> 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.



uibinder widget add child fail

2010-10-19 Thread asianCoolz


i try to add child in uibinder

i get error

in a text-only context. Perhaps you are trying to use unescaped HTML
where text is required, as in a HasText widget? Element
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Why can't see progress bar?

2010-10-19 Thread Elienan


On Oct 16, 11:15 am, Hendrik T  wrote:
> Not sure, but maybe you forgot to add the style? It sounds like you
> are using the ProgressBar from the incubator. It needs a style to be
> displayed properly. A working css style definition can be found in the
> java doc, iirc.

Hi,

Yes, indeed it was missing the style configurations in css file.

Thanks for your help.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-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 implement UserAuth / Login in GWT2.1

2010-10-19 Thread nacho
Are you looking something like this?

http://code.google.com/intl/es-AR/webtoolkit/articles/dynamic_host_page.html

On 19 oct, 08:41, Patrick Hilsbos 
wrote:
> Hi,
> can someone tell me how to implement an user auth - using
> userinformation in gwt2.1?
>
> i already got, that i should subclass UserInformationSimpleImpl - but
> what to do next / how to wire up?
>
> thx

-- 
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 with PopUp Panel

2010-10-19 Thread choxy
Maybe after browser resize previously set popup position is out of
window. You could create custom PopupPanel, which on window resize
events re-positions itself in center again.

inside custom PopupPanel:
   Window.addResizeHandler(new ResizeHandler() {
  public void onResize(ResizeEvent event) {
 center();
  }
   });

-- 
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.1.0.RC1 Problem

2010-10-19 Thread nikhil nishchal
We are trying to implement our project with GWT 2.1.0.RC1.
When we use 2.1.0.RC1 in our maven project through below given POM
configuration .
We in our Project it will be able to import all of the required
classes but at the time of execution it didn't bind with the classes
(all basic classes og GWT like GWT, UI  package class etc. ).
Is their we are missing any configuration?
Please suggest the way to come out from this problem :.
POM:

org.codehaus.mojo
gwt-maven-plugin
1.3.2.google



resources
compile
generateAsync
test






gwt-repo

http://google-web-toolkit.googlecode.com/svn/2.1.0/gwt/maven
Google Web Toolkit Repository





gwt-repo

http://google-web-toolkit.googlecode.com/svn/2.1.0/gwt/maven
Google Web Toolkit Plugin Repository





   com.google.gwt
   gwt-servlet
   2.1.0.RC1
   runtime


   com.google.gwt
   gwt-user
   2.1.0.RC1
   provided


   com.google.gwt
   gwt-dev
   2.1.0.RC1
   provided





>>Compilation error we are getting as :
[INFO]

[ERROR] BUILD FAILURE
[INFO]

[INFO] Compilation failure

e:\workspace\places\src\main\java\com\places\client\ClientFactory.java:
[3,34] pa
ckage com.google.gwt.event.shared does not exist

e:\workspace\places\src\main\java\com\places\client\ClientFactory.java:
[4,34] pa
ckage com.google.gwt.place.shared does not exist

e:\workspace\places\src\main\java\com\places\client\ClientFactory.java:
[10,1] ca
nnot find symbol
symbol  : class EventBus
location: interface com.places.client.ClientFactory

e:\workspace\places\src\main\java\com\places\client\ClientFactory.java:
[11,1] ca
nnot find symbol
symbol  : class PlaceController
location: interface com.places.client.ClientFactory

e:\workspace\places\src\main\java\com\places\client\ui\MyView.java:
[3,34] packag
e com.google.gwt.place.shared does not exist

e:\workspace\places\src\main\java\com\places\client\ui\MyView.java:
[4,36] packag
e com.google.gwt.user.client.ui does not exist

e:\workspace\places\src\main\java\com\places\client\ui\MyView.java:
[6,32] cannot
 find symbol
symbol: class IsWidget
public interface MyView extends IsWidget

e:\workspace\places\src\main\java\com\places\client\ui\MyView.java:
[13,12] canno
t find symbol
symbol  : class Place
location: interface com.places.client.ui.MyView.Presenter

e:\workspace\places\src\main\java\com\places\client
\ClientFactoryImpl.java:[3,34
] package com.google.gwt.event.shared does not exist

e:\workspace\places\src\main\java\com\places\client
\ClientFactoryImpl.java:[4,34
] package com.google.gwt.event.shared does not exist

e:\workspace\places\src\main\java\com\places\client
\ClientFactoryImpl.java:[5,34
] package com.google.gwt.place.shared does not exist

e:\workspace\places\src\main\java\com\places\client
\ClientFactoryImpl.java:[11,2
2] cannot find symbol
symbol  : class EventBus
location: class com.places.client.ClientFactoryImpl

e:\workspace\places\src\main\java\com\places\client
\ClientFactoryImpl.java:[12,2
2] cannot find symbol
symbol  : class PlaceController
location: class com.places.client.ClientFactoryImpl

e:\workspace\places\src\main\java\com\places\client
\ClientFactoryImpl.java:[17,8
] cannot find symbol
symbol  : class EventBus
location: class com.places.client.ClientFactoryImpl

-- 
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: update a single widget lead to the whole page refresh?

2010-10-19 Thread choxy
If it is large table, resizing, restyling and redrawing it can be very
consuming (maybe some automatic resize checks, because of changing
size of label). Is it fixed size table? You should try using Grid
instead of FlexTable with fixed size (table-layout:fixed with set
width for columns).

Another guess is that access to label element because of large dom
table is consuming (only if in each update element is searched in DOM
table).

-- 
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: Adding HTML / Label to flowPanel

2010-10-19 Thread choxy

I do not understand why you cannot create spanElement.

In my project I have created custom widget class Span, which extends
HTML and calls super(Document.get().createSpanElement()); in
constructor. Then you can use it the same way as HTML widget, but it
will be created as  element.

-- 
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 + java.io.file

2010-10-19 Thread null
Hi all,
there some way to use java.io.file in client side of my GWT Project?
I need convert a file to string and then to base64.
-I have a javascript code which can convert a string to base64
-I have a DialogPanel with a FileUpload which get the path and name of
the file that i want upload

So i just need a way to manipule a file in Gwt.

Thanks all!

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



Client Vs Server and Google app engine

2010-10-19 Thread Michel Uncini
Hello everybody

I'm developing a GWT project.
I have two packets one .client and the other .server
in my .gwt.xml I specified only the .client packet because in
the .server I use google app engine.
Let consider the class "Company" which has to be stored in the
database I can't use it in the .client packet because it "use
com.google.appengine" and is impossible to inherit right?
So the only way if I want have a similar class in the .client packet
is to create a new class similar to "Company" but without appengine
fields??

Thank you!



-- 
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: Does GWT designer currently work with UIBinder?

2010-10-19 Thread Eric Clayberg - Instantiations
Yes. UiBinder works with GWT Designer.

Make sure that you are using the latest GWT Designer build...

http://code.google.com/webtoolkit/tools/download-gwtdesigner-beta.html

On Oct 18, 10:16 am, WillSpecht  wrote:
> I recently learned about GWT Designer and I am trying to use it in one
> of my projects.  When I tried to open myView.java I got a message that
> this view is associated with a UIBinder file and that I should open
> the UIBinder file.  When I open the UIBinder file I am told that I
> need version 2.1 M4 for UIBinder to work.  I then install 2.1RC1 and I
> get an internal error when I try and open a UI file with
> windowBuilder.  So does UIBinder work with GWT Designer? If it does,
> 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.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Adding HTML / Label to flowPanel

2010-10-19 Thread Thomas Broyer

On 19 oct, 12:13, "Kevin (Yau) Leung"  wrote:
> I would like to use a flowPanel to contain a list of tags.  The tag contain
> a name and a close button.
>
> However, when I add HTML / Label to flowPanel, it will create a new line
> because it's a DIV element.
>
> If the HTML / Label is a span element, there is no new line.  However, I
> can't create spanElement on demand.
>
> Does anyone has any suggestion?  Thanks in advance.

InlineHTML / InlineLabel.

-- 
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: EntityProxy Returns Null for Collection Properties

2010-10-19 Thread Thomas Broyer


On 19 oct, 14:47, agi  wrote:
> Does it work recurential?
> so lets say I have  classes:
> Person
> {
>   List adresses;
>
> }
>
> Address
> {
>      Telephone telephone;
>
> }
>
> I should write
> personRequest.findAll().with("adresses", "telephone").fire(...)
> ?

with("adresses.telephone")

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



Firing a tab event

2010-10-19 Thread lalit
Hi,

I am trying to mock a tab event. The requirement is  that whenever an
enter is pressed, the focus should move to next input box, similar to
tab. For that I have written a widget which handles key press handler
and on key press method i catch the enter event and raise a tab event.
However the raised tab event has no effect.

The handler looks like

public void onKeyPress(KeyPressEvent event) {
int keyCode = event.getNativeEvent().getKeyCode();

if (keyCode == KeyCodes.KEY_ENTER) {
event.stopPropagation();
NativeEvent nativeEvent =
Document.get().createKeyPressEvent(false,false,false,false,KeyCodes.KEY_TAB);
DomEvent.fireNativeEvent(nativeEvent, this, 
this.getElement());

}

}

-- 
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: EntityProxy Returns Null for Collection Properties

2010-10-19 Thread agi
Does it work recurential?
so lets say I have  classes:
Person
{
  List adresses;
}

Address
{
 Telephone telephone;
}

I should write
personRequest.findAll().with("adresses", "telephone").fire(...)
?
greetings,
agi

On Oct 19, 11:29 am, Thomas Broyer  wrote:
> On 19 oct, 09:56, keyvez  wrote:
>
>
>
>
>
> > My EntityProxy looks like this
>
> > @ProxyFor ( User.class )
> > public interface UserProxy extends EntityProxy {
>
> >     Long getId();
>
> >     String getFirstname();
>
> >     String getLastname();
>
> >     Set getAddresses();
>
> >     void setAddresses( Set addresses );
>
> > }
>
> > And my Entity class look like this:
>
> > @Entity
> > public class User {
>
> >     @Id
> >     @GeneratedValue ( strategy = GenerationType.IDENTITY )
> >     private Long id;
>
> >     @NotNull
> >     private String firstname;
>
> >     @NotNull
> >     private String lastname;
>
> >     private Set addresses;
>
> >     public void setAddresses( Set addresses ) {
>
> >         this.addresses = addresses;
> >     }
>
> >     public Set getAddresses() {
>
> >         if ( addresses == null ) {
> >             addresses = new HashSet();
> >         }
> >         return addresses;
> >     }
>
> > }
>
> > When I make a request using RequestFactory like so:
>
> > Request createReq = request.authenticate().using(user);
>
> > createReq.fire(new Receiver() {
>
> >     @Override
> >     public void onSuccess( UserProxy authenticatedUser ) {
>
> >         System.out.println(authenticatedUser.getFirstname()); //
> > prints "First name of Person" as expected
>
> > System.out.println(authenticatedUser.getAddresses().size()); // prints
> > 0 instead of the no. of addresses, which is more than 0 for this user
>
> >     }
>
> > });
>
> > I am using JPA on app engine.
>
> > It look like RequestFactoryServlet is not able to properly serialize
> > collection properties of datastore objects. Any help in this regard
> > would be greatly appreciated.
>
> You have to explicitly ask for relationships to be populated.
>
> """When querying the server, RequestFactory does not automatically
> populate relations in the object graph. To do this, use the with()
> method on a request and specify the related property name as a
> String"""http://code.google.com/webtoolkit/doc/trunk/DevGuideRequestFactory.ht...

-- 
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: EntityProxy Returns Null for Collection Properties

2010-10-19 Thread agi
Does it work recurential?

so lets say I have  classes:

Person
{
  List adresses;
}

Address
{
 Telephone telephone;
}

I should write
.findAll().with("adresses", "telephone").fire(...)

?

greetings,
agi

On Oct 19, 11:29 am, Thomas Broyer  wrote:
> On 19 oct, 09:56, keyvez  wrote:
>
>
>
>
>
> > My EntityProxy looks like this
>
> > @ProxyFor ( User.class )
> > public interface UserProxy extends EntityProxy {
>
> >     Long getId();
>
> >     String getFirstname();
>
> >     String getLastname();
>
> >     Set getAddresses();
>
> >     void setAddresses( Set addresses );
>
> > }
>
> > And my Entity class look like this:
>
> > @Entity
> > public class User {
>
> >     @Id
> >     @GeneratedValue ( strategy = GenerationType.IDENTITY )
> >     private Long id;
>
> >     @NotNull
> >     private String firstname;
>
> >     @NotNull
> >     private String lastname;
>
> >     private Set addresses;
>
> >     public void setAddresses( Set addresses ) {
>
> >         this.addresses = addresses;
> >     }
>
> >     public Set getAddresses() {
>
> >         if ( addresses == null ) {
> >             addresses = new HashSet();
> >         }
> >         return addresses;
> >     }
>
> > }
>
> > When I make a request using RequestFactory like so:
>
> > Request createReq = request.authenticate().using(user);
>
> > createReq.fire(new Receiver() {
>
> >     @Override
> >     public void onSuccess( UserProxy authenticatedUser ) {
>
> >         System.out.println(authenticatedUser.getFirstname()); //
> > prints "First name of Person" as expected
>
> > System.out.println(authenticatedUser.getAddresses().size()); // prints
> > 0 instead of the no. of addresses, which is more than 0 for this user
>
> >     }
>
> > });
>
> > I am using JPA on app engine.
>
> > It look like RequestFactoryServlet is not able to properly serialize
> > collection properties of datastore objects. Any help in this regard
> > would be greatly appreciated.
>
> You have to explicitly ask for relationships to be populated.
>
> """When querying the server, RequestFactory does not automatically
> populate relations in the object graph. To do this, use the with()
> method on a request and specify the related property name as a
> String"""http://code.google.com/webtoolkit/doc/trunk/DevGuideRequestFactory.ht...

-- 
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: Using java mail api from gwt rpc

2010-10-19 Thread Sean
I do that using JAVA RPCs. The one thing to make sure is to remove all
App Engine jars, they have their own mail libraries that conflict with
Java Mail. But you can Google "Send Email from JAVA Tutorial" to find
how to do the actual code part.

On Oct 17, 8:07 am, Suresh G Kumar  wrote:
> Hi
> Can someone please help me to use java mail API from within a GWT
> service to send emails.
> I am building a web application using GWT, and requires emailing
> feature for my application.
>
> thanks & regards
> --suresh

-- 
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: Invoking of clicking on html link (Thickbox integration)

2010-10-19 Thread bconoly
First off I'd recommend not using a 3rd party js library as it
bypasses the benefits of the gwt compiler.  GWT does have a
DecoratedPopupPanel in its main library.  If you need to call an
external anchor from your app you can use a native JS call to do it.

public static native void clickThickBoxLink(String id) /*-{
   $(id).click();
}-*/

Hope this helps

On Oct 18, 1:41 pm, "Jirka Kr."  wrote:
> How can I invoke a click or simulate clicking on plain old  href="path to image" class="thickbox"> . In my application I want
> to use jquery library ThickBox (http://jquery.com/demo/thickbox/). But
> all my html content is dynamic. With Hyperlink class I can change only
> text after anchor. I want to show preview of image, when user double
> cliks on its thumbnail and I don't know how to invoke it from a
> listener.
>
> Or is there any alternative solution? I saw glass panel from gwt-
> incubator, but I think it is rather difficult, I want simple
> functionality like thick box.
>
> Thanks in advance, JK

-- 
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: update a single widget lead to the whole page refresh?

2010-10-19 Thread Didier DURAND
Hi Jason,

Did you check for any traffic with the server (via a Firefox plugin
like Firebug or equiv)

Do you see requests from client to server ?

regards
didier

On Oct 19, 11:20 am, Jason  wrote:
> Any idea? Many Thanks!
>
> On Oct 14, 4:46 am, Jason  wrote:
>
> > Hi All,
> > I am debugging a GWT application which is very slow. I tried to
> > isloate the problem and get below result:
>
> > A simple panel with a label and a flextable.
> > The label is updated with current time every 300 ms.
> > The flextable is filled with static data but never update.
>
> > When the flextable become bigger, the cpu usage increase
> > significantly.
> > For example, with 3600 grids, the cpu usage is 9.9%
> > with 36000 grids, the cpu usage is 80%.
>
> > If I stop the label updating, the cpu usage is zero.
>
> > I dont understand why the size of the flextable will affect the cpu
> > usage. It should only consume time when create. After creation is
> > complete, it should take no cpu resource at all.
>
> > Does it means updating the label will lead to the flextable refresh
> > too?
>
> > GWT version: 2.0.3
> > Browser: Firefox
> > CPU: ARM, 400Mhz

-- 
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 implement UserAuth / Login in GWT2.1

2010-10-19 Thread Patrick Hilsbos
Hi,
can someone tell me how to implement an user auth - using
userinformation in gwt2.1?

i already got, that i should subclass UserInformationSimpleImpl - but
what to do next / how to wire up?

thx

-- 
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: Maven dependency for GWT 2.1 RC1 ?

2010-10-19 Thread Gaurav Jain
Thanks for your reply Thomas,

I also used the same configuration as provided by you, but getting
strange problems:

.
projectRoot\src\main\java\com\places\client\ClientFactory.java:[3,34]
pa
ckage com.google.gwt.event.shared does not exist

projectRoot\src\main\java\com\places\client\ClientFactory.java:[4,34]
pa
ckage com.google.gwt.place.shared does not exist

projectRoot\src\main\java\com\places\client\ClientFactory.java:[10,1]
ca
nnot find symbol
symbol  : class EventBus
location: interface com.places.client.ClientFactory

projectRoot\src\main\java\com\places\client\ClientFactory.java:[11,1]
ca
nnot find symbol
symbol  : class PlaceController
location: interface com.places.client.ClientFactory

projectRoot\src\main\java\com\places\client\ui\MyView.java:[3,34]
packag
e com.google.gwt.place.shared does not exist

projectRoot\src\main\java\com\places\client\ui\MyView.java:[4,36]
packag
e com.google.gwt.user.client.ui does not exist

projectRoot\src\main\java\com\places\client\ui\MyView.java:[6,32]
cannot
 find symbol
symbol: class IsWidget
public interface MyView extends IsWidget

projectRoot\src\main\java\com\places\client\ui\MyView.java:[13,12]
canno
t find symbol
symbol  : class Place
location: interface com.places.client.ui.MyView.Presenter

projectRoot\src\main\java\com\places\client\ClientFactoryImpl.java:
[3,34
] package com.google.gwt.event.shared does not exist

projectRoot\src\main\java\com\places\client\ClientFactoryImpl.java:
[4,34
] package com.google.gwt.event.shared does not exist

projectRoot\src\main\java\com\places\client\ClientFactoryImpl.java:
[5,34
] package com.google.gwt.place.shared does not exist

projectRoot\src\main\java\com\places\client\ClientFactoryImpl.java:
[12,2
2] cannot find symbol
symbol  : class PlaceController
location: class com.places.client.ClientFactoryImpl
.

Actually in Eclipse IDE, I am able to import and use all gwt classes,
but during mvn package or mvn jetty:run or gwt:run, it gives above
errors.

And in Intellij idea IDE, ide gives errors on classes itself, saying
that the GWT classes need some different module to be inherited in
Application.gwt.xml file.

For example for class com.google.gwt.core.GWT  it says that inherit
module 'com.google.gwt.core.CompilerParameters'
and for class UIBinder it says to inherit
'com.google.gwt.uibinder.UiBinder', but even on inheriting these
modules, the error remains both in IDE and during mvn commands.

On Oct 19, 1:21 am, Thomas Broyer  wrote:
> On 18 oct, 15:54, Gaurav Jain  wrote:
>
> > Can anybody please tell the maven dependency for 2.1rc1and its
> > repository?
>
> We're using (from memory)
> 
>    gwt-repo
>    http://google-web-toolkit.googlecode.com/svn/2.1.0/gwt/maven url>
>    Google Web Toolkit Repository
> 
> ...
> 
>    gwt-repo
>    http://google-web-toolkit.googlecode.com/svn/2.1.0/gwt/maven url>
>    Google Web Toolkit Plugin Repository
> 
> ...
> 
>    com.google.gwt
>    gwt-servlet
>    2.1.0.RC1
>    runtime
> 
> 
>    com.google.gwt
>    gwt-user
>    2.1.0.RC1
>    provided
> 
> 
>    com.google.gwt
>    gwt-dev
>    2.1.0.RC1
>    provided
> 
> ...
> 
>    org.codehaus.mojo
>    gwt-maven-plugin
>    1.3.2.google
>    
> ...
> Sorry, can't remember off hand what we really do have here. We're
> running "mvn compile war:exploded -Dgwt.compiler.skip=true" to pre-
> package the app without the gwt:compile step, and we run the DevMode
> from Eclipse using the target/ as the
> "war" directory
> ...
>       2.1.0.RC1
>       /index.html
>       
>          ${project.groupId}.MyApp
>       
>    
>    
>       
>          gwtcompile
>          prepare-package
>          
>             compile
>          
>       
>    
> 
>
> You can also use 2.1-SNAPSHOT from the sonatype google-snapshots
> repository or google code 2.1.0.RC1repository (in the GWT SVN repo,
> same as above, just replace 2.1.0 with 2.1.0.RC1)

-- 
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: Strange compilation errors on linux platform

2010-10-19 Thread bananos
Yep, there was no problem for almost a year (we were having Hudson
linux box for deployment from the very start),
and suddenly after small reorganizing of resources (actually only
paths to image resources were changed)  -- it crashed

As for the env, I tried to play a bit with gwtc settings, but no
luck.
Currently, our project consists of 2 applications, and here is come
details from ant build:








Increasing/decreasing Xmx didn't help at all, changing Java from
OpenJDK to Sun java didn't help either



On Oct 18, 8:03 pm, Jeff Chimene  wrote:
> At first glance, it seems there is a problem with the environment settings.
>
> Have you successfully built other projects on the Linux box?
>
> FWIW, I do 99% of my GWT work on Debian.

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



Adding HTML / Label to flowPanel

2010-10-19 Thread Kevin (Yau) Leung
I would like to use a flowPanel to contain a list of tags.  The tag contain
a name and a close button.

However, when I add HTML / Label to flowPanel, it will create a new line
because it's a DIV element.

If the HTML / Label is a span element, there is no new line.  However, I
can't create spanElement on demand.

Does anyone has any suggestion?  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: EntityProxy Returns Null for Collection Properties

2010-10-19 Thread Thomas Broyer


On 19 oct, 09:56, keyvez  wrote:
> My EntityProxy looks like this
>
> @ProxyFor ( User.class )
> public interface UserProxy extends EntityProxy {
>
>     Long getId();
>
>     String getFirstname();
>
>     String getLastname();
>
>     Set getAddresses();
>
>     void setAddresses( Set addresses );
>
> }
>
> And my Entity class look like this:
>
> @Entity
> public class User {
>
>     @Id
>     @GeneratedValue ( strategy = GenerationType.IDENTITY )
>     private Long id;
>
>     @NotNull
>     private String firstname;
>
>     @NotNull
>     private String lastname;
>
>     private Set addresses;
>
>     public void setAddresses( Set addresses ) {
>
>         this.addresses = addresses;
>     }
>
>     public Set getAddresses() {
>
>         if ( addresses == null ) {
>             addresses = new HashSet();
>         }
>         return addresses;
>     }
>
> }
>
> When I make a request using RequestFactory like so:
>
> Request createReq = request.authenticate().using(user);
>
> createReq.fire(new Receiver() {
>
>     @Override
>     public void onSuccess( UserProxy authenticatedUser ) {
>
>         System.out.println(authenticatedUser.getFirstname()); //
> prints "First name of Person" as expected
>
> System.out.println(authenticatedUser.getAddresses().size()); // prints
> 0 instead of the no. of addresses, which is more than 0 for this user
>
>     }
>
> });
>
> I am using JPA on app engine.
>
> It look like RequestFactoryServlet is not able to properly serialize
> collection properties of datastore objects. Any help in this regard
> would be greatly appreciated.

You have to explicitly ask for relationships to be populated.

"""When querying the server, RequestFactory does not automatically
populate relations in the object graph. To do this, use the with()
method on a request and specify the related property name as a
String"""
http://code.google.com/webtoolkit/doc/trunk/DevGuideRequestFactory.html#relationships

-- 
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: HandlerManager / (Simple)EventBus

2010-10-19 Thread Thomas Broyer


On 19 oct, 10:22, dmen  wrote:
> - I am having problem X while doing Y ...
> - Why are you doing Y ?
>
> I am guilty of that too, though I think it is so annoying.

By understanding the "why" of Y, you can try to find another way of
answering the "why" without doing Y, so that you don't face problem X.

-- 
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: update a single widget lead to the whole page refresh?

2010-10-19 Thread Jason
Any idea? Many Thanks!

On Oct 14, 4:46 am, Jason  wrote:
> Hi All,
> I am debugging a GWT application which is very slow. I tried to
> isloate the problem and get below result:
>
> A simple panel with a label and a flextable.
> The label is updated with current time every 300 ms.
> The flextable is filled with static data but never update.
>
> When the flextable become bigger, the cpu usage increase
> significantly.
> For example, with 3600 grids, the cpu usage is 9.9%
> with 36000 grids, the cpu usage is 80%.
>
> If I stop the label updating, the cpu usage is zero.
>
> I dont understand why the size of the flextable will affect the cpu
> usage. It should only consume time when create. After creation is
> complete, it should take no cpu resource at all.
>
> Does it means updating the label will lead to the flextable refresh
> too?
>
> GWT version: 2.0.3
> Browser: Firefox
> CPU: ARM, 400Mhz

-- 
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: Slow AsynCallBack method

2010-10-19 Thread BurstUser
Hi George,

thanks for your suggestions!
I opted to change the list to an array and this brought about a huge
increase in performance - down to 30 seconds from 3 minutes!


On Oct 18, 5:09 pm, George Georgovassilis 
wrote:
> Hello BurstUser,
>
> You need to keep in mind that the returned code is not parsed into
> javascript object by some mechanism that is native to the browser. The
> returned string is parsed in javascript, so it is not uncommon that
> complex objects take several seconds to parse. I've run into this
> problem on several occasions and depending on the severity found two
> solutions that worked for me:
>
> 1. change the list into an array and see if that gets parsetimes into
> an acceptable range
> 2. return a single, delimited string and split it appart on the client
> with a regular expression.
>
> On Oct 18, 2:46 pm, BurstUser  wrote:
>
>
>
> > Hi all,
>
> > I'm having issues with a very slow AsyncCallback method.
>
> > My set up is as follows:
>
> > // CLIENT CODE:
>
> > System.out.println("ONE:  "+System.currentTimeMillis()/1000F);
> > final AsyncCallback callback  = new AsyncCallback(){
> >     public void onSuccess(Object result){
>
> >         System.out.println("THREE:  "+System.currentTimeMillis()/
> > 1000F);
>
> >         dataList = (List) result;
> >         createTable(dataList);
> >     }
> >     public void onFailure(Throwable caught){
> >         Window.alert(caught.toString());
> >     }
> >     //Call to openFile service on server
> >     fileService.openFile(fileType,fileName,callback)
>
> > }
>
> > // SERVER SIDE CODE:
> > public List openFile(int fileType, String fileName){
> >     File file = new File(fileName);
> >     FileInputStream fin = null;
> >     byte[] bytes = new byte[(int) file.length()];
> >     try{
> >         fin = new FileInputStream(file);
> >         fin.read(bytes);
> >         String s = new String(bytes);
> >         doStuff(s);
> >         fin.close();
> >     }catch(FileNotFoundException fnfe){
> >         fnfe.printStackTrace();
> >     }catch(IOException ioe){
> >         ioe.printStackTrace();
> >     }
>
> >     System.out.println("TWO:  "+System.currentTimeMillis()/1000F);
>
> >     return dataStringList;
>
> > }
>
> > I'm running the application in development mode.
> > The openFile() method on the server returns an ArrayList
> > called dataStringList, which has 57217 String objects within it.
>
> > My console output is:
> > ONE:    1287402660233
> > TWO:    1287402660597
> > THREE:  1287402836619
>
> > The elapsed time between the System.out.print statements, ONE and TWO
> > is 0.364 seconds.
> > In contrast, the elapsed time between TWO and THREE is 176 seconds
> > (close to 3 minutes), which is far too long for simply processing a
> > file of 164kb in size.
>
> > When I run the application with a smaller data set - with a file size
> > of 4kb - the elapsed time between TWO and THREE is 1.03 seconds.
>
> > Any pointers or suggestions as to where the time lag could be would be
> > much appreciated.
> > Thanks!

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-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 serialization

2010-10-19 Thread MAM
no answer since 1 week!!!
need help for the first stage of the project namely generation an xml
template from GUI written in GWT

Thanks

On 13 oct, 10:18, MAM  wrote:
> hi, i have to develop a tool based on GWT using the same mechanism
> that you have already mention (serialize/deserialize) GWT objects from/
> toXMLfile:
> briefly, the tool will be able to serialize a GUI written in GWT (in
> input) intoXML/JSON (preferablyXML) file , and perform the reverse:
> read the createdXMLfile (template) and reconstruct the GUI.
> I'm newbie with GWT , so any idea will be welcome concerning the type
> of tool i can develop  and  tools, tutorials, library that seem
> useful
>
> Thanks
>
> On 17 août, 13:30, Ciarán  wrote:
>
>
>
> > Hi, I am currently working on a GWT app that requires me  to
> > serializes an object client side into maybeXML/JSON or anything
> > really. Then save that serialized object as axml/json/.ser file. Then
> > at a later date read that file and reconstruct my object from it.
>
> > I have been searching for days for an answer to this, used several
> > external library, read tutorials, GWT documentation and I still not
> > closer to a solution. Am I totally missing something here? It was very
> > easy to do this in plan Java, but GWT I just can seem to get it
> > working.
>
> > 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.



Re: GWT and WebGL

2010-10-19 Thread Matías Costa
Well, Look what these guys did:

http://code.google.com/p/quake2-gwt-port/

If they could... why don't you?

El 18 de octubre de 2010 18:38, Matías Costa escribió:

> I think you can't. It should be a massive work. I have no idea about how
> bullet works, but tricking it to use a webgl context must be hard, next to
> imposible.
>
> GWT is a Java to Javascript compiler. It is no magic java in a webpage. The
> java code must comply various constraint to be able to translate to
> javascript. Something as simple as awt.Color doesn't work.
>
> 2010/10/16 Alon Gubkin 
>
> I'm planning on writing a 3D game for the Game On 
> contestwith 
> WebGL. Because of the huge third party libraries wrriten in Java (like
>> JBullet ), I thought it'd be a good idea to
>> write it with GWT and not in plain JavaScript.
>>
>>- What is the most active WebGL module for GWT?
>>- Are there any graphics engine ported to WebGL/GWT? If not, should I
>>port an existing graphics engine to GWT before writing the game? Is the
>>WebGL API similar to the OpenGL API?
>>
>> 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.



Re: Using Rome in a GWT application

2010-10-19 Thread Boris Lenzinger
Hi,

I have "reworked" your classpath :
src
test-classes
classes
appengine-local-runtime-shared.jar
geronimo-el_1.0_spec-1.0.1.jar
geronimo-jsp_2.1_spec-1.0.1.jar
geronimo-servlet_2.5_spec-1.2.jar
repackaged-appengine-ant-1.7.1.jar
repackaged-appengine-ant-launcher-1.7.1.jar
repackaged-appengine-commons-el-1.0.jar
repackaged-appengine-commons-logging-1.1.1.jar
repackaged-appengine-jasper-compiler-5.0.28.jar
repackaged-appengine-jasper-runtime-5.0.28.jar
appengine-api-1.0-sdk-1.3.7.jar
appengine-api-labs-1.3.7.jar
appengine-jsr107cache-1.3.7.jar
jsr107cache-1.1.jar
datanucleus-appengine-1.0.7.final.jar
datanucleus-core-1.1.5.jar
datanucleus-jpa-1.1.5.jar
geronimo-jpa_3.0_spec-1.1.1.jar
geronimo-jta_1.1_spec-1.1.1.jar
jdo2-api-2.3-eb.jar
appengine-tools-api.jar
gwt-user.jar
gwt-dev.jar
jdom-1.1.jar
rome-1.0.jar
appengine-agent.jar

Seems ok.

The class XmlReader is contained in Rome. May be you need to put rome first
in your Eclipse classpath. How is it configured ? xerces is first or rome is
first ?


Boris

2010/10/18 Eyal 

> Hi Boris,
>
> Thank you for your reply. I am running my app on Eclipse (Galileo) on
> Windows 7. The installed JRE is jdk1.6.0_17. I feel bad about giving
> you my classpath (below) because it's so long but maybe you see
> something in it? If so, many many thanks!!!
>
> Eyal
>
>
> C:\Users\Eyal\workspace\BooksApp\src;C:\Users\Eyal\workspace\BooksApp
> \test-classes;C:\Users\Eyal\workspace\BooksApp\war\WEB-INF\classes;C:
> \installers\software development\eclipse-jee-galileo-SR1-win32\eclipse
> \plugins\com.google.appengine.eclipse.sdkbundle.
> 1.3.7_1.3.7.v201008311405\appengine-java-sdk-1.3.7\lib\shared
> \appengine-local-runtime-shared.jar;C:\installers\software development
> \eclipse-jee-galileo-SR1-win32\eclipse\plugins
> \com.google.appengine.eclipse.sdkbundle.
> 1.3.7_1.3.7.v201008311405\appengine-java-sdk-1.3.7\lib\shared\geronimo-
> el_1.0_spec-1.0.1.jar;C:\installers\software development\eclipse-jee-
> galileo-SR1-win32\eclipse\plugins
> \com.google.appengine.eclipse.sdkbundle.
> 1.3.7_1.3.7.v201008311405\appengine-java-sdk-1.3.7\lib\shared\geronimo-
> jsp_2.1_spec-1.0.1.jar;C:\installers\software development\eclipse-jee-
> galileo-SR1-win32\eclipse\plugins
> \com.google.appengine.eclipse.sdkbundle.
> 1.3.7_1.3.7.v201008311405\appengine-java-sdk-1.3.7\lib\shared\geronimo-
> servlet_2.5_spec-1.2.jar;C:\installers\software development\eclipse-
> jee-galileo-SR1-win32\eclipse\plugins
> \com.google.appengine.eclipse.sdkbundle.
> 1.3.7_1.3.7.v201008311405\appengine-java-sdk-1.3.7\lib\shared\jsp
> \repackaged-appengine-ant-1.7.1.jar;C:\installers\software development
> \eclipse-jee-galileo-SR1-win32\eclipse\plugins
> \com.google.appengine.eclipse.sdkbundle.
> 1.3.7_1.3.7.v201008311405\appengine-java-sdk-1.3.7\lib\shared\jsp
> \repackaged-appengine-ant-launcher-1.7.1.jar;C:\installers\software
> development\eclipse-jee-galileo-SR1-win32\eclipse\plugins
> \com.google.appengine.eclipse.sdkbundle.
> 1.3.7_1.3.7.v201008311405\appengine-java-sdk-1.3.7\lib\shared\jsp
> \repackaged-appengine-commons-el-1.0.jar;C:\installers\software
> development\eclipse-jee-galileo-SR1-win32\eclipse\plugins
> \com.google.appengine.eclipse.sdkbundle.
> 1.3.7_1.3.7.v201008311405\appengine-java-sdk-1.3.7\lib\shared\jsp
> \repackaged-appengine-commons-logging-1.1.1.jar;C:\installers\software
> development\eclipse-jee-galileo-SR1-win32\eclipse\plugins
> \com.google.appengine.eclipse.sdkbundle.
> 1.3.7_1.3.7.v201008311405\appengine-java-sdk-1.3.7\lib\shared\jsp
> \repackaged-appengine-jasper-compiler-5.0.28.jar;C:\installers
> \software development\eclipse-jee-galileo-SR1-win32\eclipse\plugins
> \com.google.appengine.eclipse.sdkbundle.
> 1.3.7_1.3.7.v201008311405\appengine-java-sdk-1.3.7\lib\shared\jsp
> \repackaged-appengine-jasper-runtime-5.0.28.jar;C:\installers\software
> development\eclipse-jee-galileo-SR1-win32\eclipse\plugins
> \com.google.appengine.eclipse.sdkbundle.
> 1.3.7_1.3.7.v201008311405\appengine-java-sdk-1.3.7\lib\user\appengine-
> api-1.0-sdk-1.3.7.jar;C:\installers\software development\eclipse-jee-
> galileo-SR1-win32\eclipse\plugins
> \com.google.appengine.eclipse.sdkbundle.
> 1.3.7_1.3.7.v201008311405\appengine-java-sdk-1.3.7\lib\user\appengine-
> api-labs-1.3.7.jar;C:\installers\software development\eclipse-jee-
> galileo-SR1-win32\eclipse\plugins
> \com.google.appengine.eclipse.sdkbundle.
> 1.3.7_1.3.7.v201008311405\appengine-java-sdk-1.3.7\lib\user\appengine-
> jsr107cache-1.3.7.jar;C:\installers\software development\eclipse-jee-
> galileo-SR1-win32\eclipse\plugins
> \com.google.appengine.eclipse.sdkbundle.
> 1.3.7_1.3.7.v201008311405\appengine-java-sdk-1.3.7\lib\user
> \jsr107cache-1.1.jar;C:\installers\software development\eclipse-jee-
> galileo-SR1-win32\eclipse\plugins
> \com.google.appengine.eclipse.sdkbundle.
> 1.3.7_1.3.7.v201008311405\appengine-java-sdk-1.3.7\lib\user\orm
> \datanucleus-appengine-1.0.7.final.jar;C:\installers\software
> development\eclipse-jee-galileo-SR1-win32\

Re: HandlerManager / (Simple)EventBus

2010-10-19 Thread dmen
- I am having problem X while doing Y ...
- Why are you doing Y ?

I am guilty of that too, though I think it is so annoying.


On Oct 19, 5:30 am, Jeff Larsen  wrote:
> Why do you need to know how many handlers are listening for a specific
> type of event?
>
> On Oct 18, 4:22 pm, dingwa  wrote:
>
> > Hi all,
>
> > I have just upgraded to 2.1.0.RC1 and I have found that the
> > HandlerManager.getHandlerCount() method has been deprecated and made
> > package private.  I currently use this method to find out how many
> > handlers are listening for a specific type of event.  How am I able to
> > retain this functionality with the 2.1.0.RC1 release?
>
> > Cheers!

-- 
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: Want to do synchronous things with asynchronous elements

2010-10-19 Thread Frédéric MINATCHY
Thank you for your reply

but with this solution it seems that I am forced to interlink several
anonymous classes... For example :

saveButton.addClickHandler(new ClickHandler(){

public void onClick(ClickEvent event){


  someAsyncService.*checkData*(valueToCheck, new
AsyncCallback(){

   public void onSuccess(ObjectToCheck checkedObject){
   if(checkedObject){

someAsyncService.*save*(createObjectToSave(),
new

AsyncCallback(){

 public void
onSuccess(ObjectSavedToDatabase savedObject){

 ///Now do your
screen change logic

  }

public void onFailure(Throwable
throwable){
 //handle exception
  }
 });
}

   }
public void onFailure(Throwable throwable){
//handle exception
}
 });


Interlinking anonymous classes is the only avalaible solution?

Thanks for your answers




2010/10/19 Jeff Larsen 

> You have to setup your "change of screen" code to listen for the
> onSuccess method inside you're AsynCallback.
>
> For example
>
>
> saveButton.addClickHandler(new ClickHandler(){
>
> public void onClick(ClickEvent event){
>
>
>   someAsyncService.save(createObjectToSave(), new
> AsyncCallback(){
>
>public void onSuccess(ObjectSavedToDatabase savedObject){
>  ///Now do your screen change logic
> }
> public void onFailure(Throwable throwable){
> //handle exception
> }
>  });
>
>
> }
>
> }
>
>
>
>
> On Oct 18, 5:33 pm, Frédéric  wrote:
> > Hello everybody
> >
> > I need your help.
> >
> > Before to insert values in a database I have to check if some values
> > are not in the DB.
> > So I have to count the number of time this value appears in the DB.
> >
> > If the number of value is greater than 0, I am supposed to stay on the
> > same screen But as we work in an asynchrone system GWT does not
> > wait for the RPC response. So it goes on the next screen without
> > waiting for the asynchronous result. (and the value who shall not be
> > inserted in the DB is inserted).
> >
> > So is there someone with an idea to resolve my problem?
> >
> > 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.
>
>

-- 
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: EntityProxy Returns Null for Collection Properties

2010-10-19 Thread keyvez
I also tried List addresses instead of Set addresses
but it still returns an empty list despite the datastore having values
in the addresses field for that user.

On Oct 19, 12:56 am, keyvez  wrote:
> My EntityProxy looks like this
>
> @ProxyFor ( User.class )
> public interface UserProxy extends EntityProxy {
>
>     Long getId();
>
>     String getFirstname();
>
>     String getLastname();
>
>     Set getAddresses();
>
>     void setAddresses( Set addresses );
>
> }
>
> And my Entity class look like this:
>
> @Entity
> public class User {
>
>     @Id
>     @GeneratedValue ( strategy = GenerationType.IDENTITY )
>     private Long id;
>
>     @NotNull
>     private String firstname;
>
>     @NotNull
>     private String lastname;
>
>     private Set addresses;
>
>     public void setAddresses( Set addresses ) {
>
>         this.addresses = addresses;
>     }
>
>     public Set getAddresses() {
>
>         if ( addresses == null ) {
>             addresses = new HashSet();
>         }
>         return addresses;
>     }
>
> }
>
> When I make a request using RequestFactory like so:
>
> Request createReq = request.authenticate().using(user);
>
> createReq.fire(new Receiver() {
>
>     @Override
>     public void onSuccess( UserProxy authenticatedUser ) {
>
>         System.out.println(authenticatedUser.getFirstname()); //
> prints "First name of Person" as expected
>
> System.out.println(authenticatedUser.getAddresses().size()); // prints
> 0 instead of the no. of addresses, which is more than 0 for this user
>
>     }
>
> });
>
> I am using JPA on app engine.
>
> It look like RequestFactoryServlet is not able to properly serialize
> collection properties of datastore objects. Any help in this regard
> would be greatly appreciated.
>
> Thanks,
> Gaurav

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



EntityProxy Returns Null for Collection Properties

2010-10-19 Thread keyvez
My EntityProxy looks like this

@ProxyFor ( User.class )
public interface UserProxy extends EntityProxy {

Long getId();

String getFirstname();

String getLastname();

Set getAddresses();

void setAddresses( Set addresses );
}

And my Entity class look like this:

@Entity
public class User {

@Id
@GeneratedValue ( strategy = GenerationType.IDENTITY )
private Long id;

@NotNull
private String firstname;

@NotNull
private String lastname;

private Set addresses;

public void setAddresses( Set addresses ) {

this.addresses = addresses;
}

public Set getAddresses() {

if ( addresses == null ) {
addresses = new HashSet();
}
return addresses;
}

}

When I make a request using RequestFactory like so:

Request createReq = request.authenticate().using(user);

createReq.fire(new Receiver() {

@Override
public void onSuccess( UserProxy authenticatedUser ) {

System.out.println(authenticatedUser.getFirstname()); //
prints "First name of Person" as expected
 
System.out.println(authenticatedUser.getAddresses().size()); // prints
0 instead of the no. of addresses, which is more than 0 for this user

}
});

I am using JPA on app engine.

It look like RequestFactoryServlet is not able to properly serialize
collection properties of datastore objects. Any help in this regard
would be greatly appreciated.

Thanks,
Gaurav

-- 
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: Trasform a Menu() object structure into a Tree()

2010-10-19 Thread alexoffspring
Thanks for the help Jeff. I did what you proposed.

Now i got a List which contains my MenuBars and MenuItems.
(i saw it from the Debug)
But now how can i get the information? All the fields and methods
which have the informations i need are private!


And what about the DOM manipulation?

Thanks
alex


On 19 Ott, 01:40, Jeff Larsen  wrote:
> You could extend MenuBar and then override getItems() and make it
> public. Then you would have access to all of the MenuBar's Items.
>
> That is really the only way I can see doing it without getting into
> DOM manipulation. This probably has more pitfalls down the road, but
> it is the only place I can see to start.
>
> On Oct 18, 5:49 pm, Patrick Hilsbos 
> wrote:
>
>
>
> > ...also looking for a solution- Nascondi testo citato
>
> - Mostra testo citato -

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