Re: Strange eclipse problem

2011-08-17 Thread Russ Abbott
Thanks. I guess I should have thought of that. It's the only thing that
wasn't deleted.  (I assume you mean the run configuration.)

*-- Russ *



On Wed, Aug 17, 2011 at 7:20 PM, Jeff Larsen  wrote:

> Try deleting your run target and have the GPE rebuild them for 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-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.



did you forget to inherit a required module?.

2011-08-17 Thread Aurita Moya
When I called a service in a panel method

  public void mostrarSorteo(){
   Servicios.getInstance().getAppService().consultar(new
AsyncCallback() {
   ...
   });
  }

  Generates the following errors:
  ERROR: Errors in 'file:/C:/Prototipo/KioskoVista/trunk/src/main/
java/ve/com/kiosko/vista/client/componente/AppTimer.java'.
   ERROR: Line 50: No source code is available for type
ve.com.kiosko.vista.server.servicios.AppService; did you forget to
inherit a required module?.
   ERROR: Unable to load module entry point class
ve.com.kiosko.vista.client.entrypoint.AppEntryPoint (see associated
exception for details). java.lang.NullPointerException: null

AppService.java In class methods are loading a
list and randomly select one member of the
list


  public List cargarListado()  {
   ObjetoTo persona = new ObjetoTo();
   List personas = new ArrayList();
   try{

  persona.setId(100);
  persona.setNombre("Claudia Sanchez");
  personas.add(0,persona);

  persona.setId(200);
  persona.setNombre("Pedro Sanchez");
  personas.add(1,persona);

  persona.setId(300);
  persona.setNombre("Luis Sanchez");
  personas.add(2,persona);

  persona.setId(400);
  persona.setNombre("Maria Sanchez");
  personas.add(3,persona);

  persona.setId(500);
  persona.setNombre("Fernanda Sanchez");
  personas.add(4,persona);

  persona.setId(600);
  persona.setNombre("Juan Sanchez");
  personas.add(5,persona);

  /*for (int i=0; i listado = null;
  int gnd = 0;
  ObjetoTo obj = null;

  try {
  listado = new ArrayList();
  listado = cargarListado();

  Random rdn = new Random(System.currentTimeMillis());
  if (listado!= null && listado.size() > 0){
   gnd = rdn.nextInt(listado.size());
   obj= listado.get(gnd);
  }
  } catch (Throwable e) {
  if (logger.isEnabledFor(Level.ERROR))
logger.error(e.getMessage(), e);
  }
  return  obj;
  }

 En el AppTimer.java se encuentra el llamado del metodo
consultar para
mostrar en un Label listaParticipantes del Panel el Id y Nombre del
Participante seleccionado aleatoriamente

   public void run() {
   Servicios.getInstance().getAppService().consultar(new
AsyncCallback() {
   public void onFailure(Throwable throwable) {
   Window.alert("Error Recuperando la Información");
   if (throwable instanceof InvocationException) {
   Window.alert(Mensajes.mensajes.sinConexion());
   } else if (throwable instanceof
IncompatibleRemoteServiceException) {
   Window.Location.reload();
   }
   }

   public void onSuccess(ObjetoTo objetoTo) {
   AppService appService = new AppService();
   objetoTo = appService.consultar();

   if (objetoTo != null){

AppPanel.listaParticipantes.setText(String.valueOf(objetoTo.getId()) +
objetoTo.getNombre()); }
   }
   });
   }

   I do not know if the problem is the call of the
methods, any parameters are missing or am I wrong methods
instantiating
because when I'm debbuger stops the GWT plugin, stops
the browser, generating an exception falls
java.lang.NullPointerException and
ve.com.kiosko.vista.client.panel.AppPanel_PanelUiBinderImpl @ 149cc16
(null handle)

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



Re: Strange eclipse problem

2011-08-17 Thread Jeff Larsen
Try deleting your run target and have the GPE rebuild them for you. 

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



Re: Using a CellTable with individual Cell selection

2011-08-17 Thread Jeff Larsen
you can always override the CSS and get change 

.dataGridSelectedRowCell {
  border: selectionBorderWidth solid #628cd5;
}

to 
.dataGridSelectedRowCell {

}

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/belx2MfWjIcJ.
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.



Using a CellTable with individual Cell selection

2011-08-17 Thread Sander Smith
I need to create a table of records where each row in the table is
selectable. I'm using a CellTable which works very nice, and allows me
to select and act on rows.

However, there's a cosmetic side-effect that I don't like. When
anything in the table is clicked on, it seems like the cell that was
clicked on is being selected. It does this by highlighting the text in
the cell and putting a frame around that cell.

How do I retain the functionality of this widget, but avoid this
cosmetic behavior?

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



Strange eclipse problem

2011-08-17 Thread Russ Abbott
I'm trying to run the MVP Contacts
example.
(But the same problem occurred in a completely different context.)

I created a Contacts project. But I declared the package as *
com.google.gwt.samples.contacts.*
*
*
I then copied the src and war files onto that project. (Other ways of
creating the project and then using the Tutorial-Contacts.zip file didn't
work.) When I ran it I got this error message in the Console window.

Loading modules
   com.google.gwt.sample*s*.contacts.Contacts
  [ERROR] Unable to find
'com/google/gwt/samples/contacts/Contacts.gwt.xml' on your classpath; could
be a typo, or maybe you forgot to include a classpath entry for source?
[ERROR] shell failed in doStartup method

My mistake was that I wrote *samples *instead of *sample *in the package
name.

So I deleted the project and the code and tried again.  Even though I typed
the name correctly this time, eclipse still tried to load the wrong file. I
even restarted eclipse--and still the same thing happened. Somehow eclipse
seems to have become obsessed with my original wrong spelling of *samples*.
How can I get it to forget that?

(As I said, the same thing happened when I did something similar in a
different project.)

Thanks.

-- Russ

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



Re: Using AbstractImagePrototype

2011-08-17 Thread bryanb
Found a solution on StackOverflow:
http://stackoverflow.com/questions/5188799/gwt-add-filtering-to-celltable

Used this snippet of code:

AbstractImagePrototype proto =
AbstractImagePrototype.create(resource);
return proto.getHTML().replace("style='",
"style='position:absolute;right:0px;top:0px;");

and replaced the style bit with vertical-align I required.

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



Re: Editor returns null values for empty strings after flush?

2011-08-17 Thread P.G.Taboada
Well, the TextBoxBase, on the other hand, transforms any null value
into a empty string.

Not sure if this is good either, but as a matter o fact I do not know
who is turning my empty strings to null.

Flush? It should not.

Or?



On Aug 18, 12:45 am, "P.G.Taboada"  wrote:
> From the ValueBoxBase source:
>
>   /**
>    * Return the parsed value, or null if the field is empty.
>    *
>    * @throws ParseException if the value cannot be parsed
>    */
>   public T getValueOrThrow() throws ParseException {
>     String text = getText();
>
>     T parseResult = parser.parse(text);
>
>     if ("".equals(text)) {
>       return null;
>     }
>
>     return parseResult;
>   }
>
> Bug or feature? I feel very uncomfortable about having my empty
> strings converted to null.
>
> Comments?
>
> On 18 Aug., 00:27, "P.G.Taboada"  wrote:
>
>
>
>
>
>
>
> > hi,
>
> > Not sure what I am doing wrong.
>
> > I did build a form with uibinder and I am populating a few TextBoxes
> > with an editor:
>
> > mydriver.initialize( this );
> > mydriver.edit( somebean );
>
> > ... User edits data ...
>
> > changedBean = myeditor.flush();
>
> > When I look at the changedBean, all empty string properties became
> > null. Not what I or the database did expect.
>
> > I am using gwt build from trunk.
>
> > Brgds,
>
> > Papick

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



Re: Editor returns null values for empty strings after flush?

2011-08-17 Thread P.G.Taboada
>From the ValueBoxBase source:


  /**
   * Return the parsed value, or null if the field is empty.
   *
   * @throws ParseException if the value cannot be parsed
   */
  public T getValueOrThrow() throws ParseException {
String text = getText();

T parseResult = parser.parse(text);

if ("".equals(text)) {
  return null;
}

return parseResult;
  }


Bug or feature? I feel very uncomfortable about having my empty
strings converted to null.

Comments?




On 18 Aug., 00:27, "P.G.Taboada"  wrote:
> hi,
>
> Not sure what I am doing wrong.
>
> I did build a form with uibinder and I am populating a few TextBoxes
> with an editor:
>
> mydriver.initialize( this );
> mydriver.edit( somebean );
>
> ... User edits data ...
>
> changedBean = myeditor.flush();
>
> When I look at the changedBean, all empty string properties became
> null. Not what I or the database did expect.
>
> I am using gwt build from trunk.
>
> Brgds,
>
> Papick

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



Editor returns null values for empty strings after flush?

2011-08-17 Thread P.G.Taboada
hi,

Not sure what I am doing wrong.

I did build a form with uibinder and I am populating a few TextBoxes
with an editor:

mydriver.initialize( this );
mydriver.edit( somebean );


... User edits data ...


changedBean = myeditor.flush();


When I look at the changedBean, all empty string properties became
null. Not what I or the database did expect.

I am using gwt build from trunk.

Brgds,

Papick

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



Re: gwt 2.3 + spring 2 + maven 2

2011-08-17 Thread Daniel Guggi
@spring you may have a look here (requestfactory + spring3 integration):
http://jsinghfoss.wordpress.com/2011/08/10/gwt-2-2-0-requestfactory-spring-3-0-x-integration/

here an example pom (i use maven 3)


http://maven.apache.org/POM/4.0.0"; xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd";>


4.0.0
gwtapp
GwtApp
war
1.0-SNAPSHOT
gwtapp.GwtApp



2.3.0

1.6
1.6




com.google.gwt
gwt-servlet
${gwtVersion}
runtime


com.google.gwt
gwt-user
${gwtVersion}
provided


com.google.gwt
gwt-dev
${gwtVersion}
test


com.google.gwt.inject
gin
1.5.0


junit
junit
4.8.1
test


javax.validation
validation-api
1.0.0.GA
provided


javax.validation
validation-api
1.0.0.GA
sources
provided





target/www/WEB-INF/classes





org.codehaus.mojo
gwt-maven-plugin
2.2.0


com.google.gwt
gwt-user
${gwtVersion}


com.google.gwt
gwt-dev
${gwtVersion}


com.google.gwt
gwt-servlet
${gwtVersion}





prepare-package

compile






GwtApp.html

target/www

true





maven-surefire-plugin
2.5



${project.build.sourceDirectory}

${project.build.testSourceDirectory}

false
always




gwt.args
-out target/www







maven-resources-plugin
2.4.2


compile

copy-resources


target/www


src/main/webapp









maven-clean-plugin
2.3



src/main/webapp/gwtapp



src/main/webapp/WEB-INF/classes


tomcat


www-test


.gwt-tmp






maven-eclipse-plugin
2.7  

true
false
2.0



com.google.gwt.eclipse.core.gwtProjectValidator




com.google.gwt.eclipse.core.gwtNature









On Thu, Aug 18, 2011 at 12:32 AM, Mike Chai  wrote:

> I'm new developing web applications with Java, so maybe this is
> implicitly known in the community but upon trying to search for
> integration for these 3 technologies I couldn't find a very
> straightforward answer. Some information is dated back to 2008ish
> where some people created "glue" to integrate gwt and spring, but I
> found some news on spring saying something about google integration
> into spr

GIN and ClientBundle (Singleton or not-to-Singleton)?

2011-08-17 Thread Daniel Guggi
Hi,

I have some questions regarding ClientBundle and GIN.

Suppose the following blank bundle:

*public interface MyClientBundle extends ClientBundle {
}
*
I want GIN to create the instance(es) of the MyClientBundle for me. The
GIN-docs say (
http://code.google.com/p/google-gin/wiki/GinTutorial#Deferred_Binding):

*Note: Gin will not bind the instances created through GWT.create in
singleton scope. That should not cause unnecessary overhead though, since
deferred binding generators usually implement singleton patterns in their
generated code. *

*Usage 1) *
Don't specify MyClientBundle class in GinModule - this means that there is
no bind(MyClientBundle.class) somewhere.
When injecting MyClientBundle into some beans, I see that there is always a
new (not-singleton) instance of MyClientBundle -> as the gin-docs say

*Usage 2)*
Specify MyClientBundle class in GinModule as follows:

*bind(MyClientBundle.class).in(Singleton.class);*

When injecting MyClientBundle into some beans, I see that there is always
the same (singleton) instance of MyClientBundle -> are the docs incorrect?
or to i miss something here?

*Usage 3)*
Specifiy MyClientBundle class in a Gin Module as follows:

*bind(MyClientBundle.class);

*This leads to the following error:

*com.google.inject.CreationException: Guice creation errors*:
*1) No implementation for gwtapp.client.navigation.MyClientBundle was bound.
  at
gwtapp.client.navigation.NavigationModule.configure(NavigationModule.java:19)
1 error
at
com.google.inject.internal.Errors.throwCreationExceptionIfErrorsExist(Errors.java:416)
*


- imo the gin-docs are not correct here, because it is possible to create a
ClientBundle with singleton-scope right? or do i miss something?
- what approach (usage1 vs usage2) would you recommend
- why does usage3 lead to an exception?

i use gin1.5

thank you,
daniel

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



Re: gwt 2.3 + spring 2 + maven 2

2011-08-17 Thread Y2i
There is some documentation on GWT site on GWT, SpringSource and Roo 
integration
http://code.google.com/webtoolkit/doc/latest/tutorial/roo-sts.html

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



gwt 2.3 + spring 2 + maven 2

2011-08-17 Thread Mike Chai
I'm new developing web applications with Java, so maybe this is
implicitly known in the community but upon trying to search for
integration for these 3 technologies I couldn't find a very
straightforward answer. Some information is dated back to 2008ish
where some people created "glue" to integrate gwt and spring, but I
found some news on spring saying something about google integration
into spring.

Some of the tools also seem to be depreciated and redirect the user to
codehaus' maven plugin, but on first look I can't find a download on
it and it just links to google's eclipse plugin.

tl; dr: what's the current standard for integrating these 3
technologies?

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



RPC Number after full class name

2011-08-17 Thread Hilario Perez Corona
Hi,

I'm creating a GWT-RPC server on Go, and i'm having a problem...

When sending or returning RPC data, all class names have a number, for 
example: "my.project.model.Data/*12345678*"

It appears that the number is some kind of versioning. Anybody knows how to 
generate that number so my JSON result would create it correctly?


Thanks.

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



Re: How can I create a widget add it to a CellTable and perform some action when it's clicked?

2011-08-17 Thread nacho
Looks i was trying to reinvent the wheel :D

Thanks!

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



Re: Unknown argument: -draftCompile // GWT 2.3

2011-08-17 Thread raghu
Yes , Thanks for reply.

I just got the difference. I just started reading the docs.




On Wed, Aug 17, 2011 at 15:30, Magno Machado  wrote:

> AFAIK, this is an argument for the compiler (not for devmode), isn't it?
>
> On Wed, Aug 17, 2011 at 7:27 PM, Raghunath  wrote:
>
>> I'm trying to compile my source in draft compilation flag. But I'm
>> getting followin error while running in gwt in eclipse.
>>
>>
>> Unknown argument: -draftCompile
>> Google Web Toolkit 2.3.0
>> DevMode [-noserver] [-port port-number | "auto"] [-whitelist whitelist-
>> string] [-blacklist blacklist-string] [-logdir directory] [-logLevel
>> level] [-gen dir] [-bindAddress host-name-or-address] [-codeServerPort
>> port-number | "auto"] [-server servletContainerLauncher[:args]] [-
>> startupUrl url] [-war dir] [-deploy dir] [-extra dir] [-workDir dir]
>> module[s]
>>
>> where
>>  -noserverPrevents the embedded web server from running
>>  -portSpecifies the TCP port for the embedded web server
>> (defaults to )
>>  -whitelist   Allows the user to browse URLs that match the
>> specified regexes (comma or space separated)
>>  -blacklist   Prevents the user browsing URLs that match the
>> specified regexes (comma or space separated)
>>  -logdir  Logs to a file in the given directory, as well as
>> graphically
>>  -logLevelThe level of logging detail: ERROR, WARN, INFO,
>> TRACE, DEBUG, SPAM, or ALL
>>  -gen Debugging: causes normally-transient generated
>> types to be saved in the specified directory
>>  -bindAddress Specifies the bind address for the code server and
>> web server (defaults to 127.0.0.1)
>>  -codeServerPort  Specifies the TCP port for the code server
>> (defaults to 9997)
>>  -server  Specify a different embedded web server to run
>> (must implement ServletContainerLauncher)
>>  -startupUrl  Automatically launches the specified URL
>>  -war The directory into which deployable output files
>> will be written (defaults to 'war')
>>  -deploy  The directory into which deployable but not
>> servable output files will be written (defaults to 'WEB-INF/deploy'
>> under the -war directory/jar, and may be the same as the -extra
>> directory/jar)
>>  -extra   The directory into which extra files, not intended
>> for deployment, will be written
>>  -workDir The compiler's working directory for internal use
>> (must be writeable; defaults to a system temp dir)
>> and
>>  module[s]Specifies the name(s) of the module(s) to host
>>
>> --
>> You received 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.
>>
>>
>
>
> --
> Magno Machado Paulo
> http://blog.magnomachado.com.br
> http://code.google.com/p/emballo/
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>

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



Re: Unknown argument: -draftCompile // GWT 2.3

2011-08-17 Thread Magno Machado
AFAIK, this is an argument for the compiler (not for devmode), isn't it?

On Wed, Aug 17, 2011 at 7:27 PM, Raghunath  wrote:

> I'm trying to compile my source in draft compilation flag. But I'm
> getting followin error while running in gwt in eclipse.
>
>
> Unknown argument: -draftCompile
> Google Web Toolkit 2.3.0
> DevMode [-noserver] [-port port-number | "auto"] [-whitelist whitelist-
> string] [-blacklist blacklist-string] [-logdir directory] [-logLevel
> level] [-gen dir] [-bindAddress host-name-or-address] [-codeServerPort
> port-number | "auto"] [-server servletContainerLauncher[:args]] [-
> startupUrl url] [-war dir] [-deploy dir] [-extra dir] [-workDir dir]
> module[s]
>
> where
>  -noserverPrevents the embedded web server from running
>  -portSpecifies the TCP port for the embedded web server
> (defaults to )
>  -whitelist   Allows the user to browse URLs that match the
> specified regexes (comma or space separated)
>  -blacklist   Prevents the user browsing URLs that match the
> specified regexes (comma or space separated)
>  -logdir  Logs to a file in the given directory, as well as
> graphically
>  -logLevelThe level of logging detail: ERROR, WARN, INFO,
> TRACE, DEBUG, SPAM, or ALL
>  -gen Debugging: causes normally-transient generated
> types to be saved in the specified directory
>  -bindAddress Specifies the bind address for the code server and
> web server (defaults to 127.0.0.1)
>  -codeServerPort  Specifies the TCP port for the code server
> (defaults to 9997)
>  -server  Specify a different embedded web server to run
> (must implement ServletContainerLauncher)
>  -startupUrl  Automatically launches the specified URL
>  -war The directory into which deployable output files
> will be written (defaults to 'war')
>  -deploy  The directory into which deployable but not
> servable output files will be written (defaults to 'WEB-INF/deploy'
> under the -war directory/jar, and may be the same as the -extra
> directory/jar)
>  -extra   The directory into which extra files, not intended
> for deployment, will be written
>  -workDir The compiler's working directory for internal use
> (must be writeable; defaults to a system temp dir)
> and
>  module[s]Specifies the name(s) of the module(s) to host
>
> --
> You received 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.
>
>


-- 
Magno Machado Paulo
http://blog.magnomachado.com.br
http://code.google.com/p/emballo/

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



Unknown argument: -draftCompile // GWT 2.3

2011-08-17 Thread Raghunath
I'm trying to compile my source in draft compilation flag. But I'm
getting followin error while running in gwt in eclipse.


Unknown argument: -draftCompile
Google Web Toolkit 2.3.0
DevMode [-noserver] [-port port-number | "auto"] [-whitelist whitelist-
string] [-blacklist blacklist-string] [-logdir directory] [-logLevel
level] [-gen dir] [-bindAddress host-name-or-address] [-codeServerPort
port-number | "auto"] [-server servletContainerLauncher[:args]] [-
startupUrl url] [-war dir] [-deploy dir] [-extra dir] [-workDir dir]
module[s]

where
  -noserverPrevents the embedded web server from running
  -portSpecifies the TCP port for the embedded web server
(defaults to )
  -whitelist   Allows the user to browse URLs that match the
specified regexes (comma or space separated)
  -blacklist   Prevents the user browsing URLs that match the
specified regexes (comma or space separated)
  -logdir  Logs to a file in the given directory, as well as
graphically
  -logLevelThe level of logging detail: ERROR, WARN, INFO,
TRACE, DEBUG, SPAM, or ALL
  -gen Debugging: causes normally-transient generated
types to be saved in the specified directory
  -bindAddress Specifies the bind address for the code server and
web server (defaults to 127.0.0.1)
  -codeServerPort  Specifies the TCP port for the code server
(defaults to 9997)
  -server  Specify a different embedded web server to run
(must implement ServletContainerLauncher)
  -startupUrl  Automatically launches the specified URL
  -war The directory into which deployable output files
will be written (defaults to 'war')
  -deploy  The directory into which deployable but not
servable output files will be written (defaults to 'WEB-INF/deploy'
under the -war directory/jar, and may be the same as the -extra
directory/jar)
  -extra   The directory into which extra files, not intended
for deployment, will be written
  -workDir The compiler's working directory for internal use
(must be writeable; defaults to a system temp dir)
and
  module[s]Specifies the name(s) of the module(s) to host

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



Moving a JavaScript-created object using the DOM

2011-08-17 Thread Sander Smith
I'm trying to embed a Twitter widget into my application using the
JavaScript code that Twitter defines for this situation, and am not
having much success. The only way I can get things to work is to put
this JavaScript code outside of the application in the HTML file.
There, it works great but is unfortunately out of place since I'd like
it to live inside of one of my panels.

Things currently look like this:


  
 .. bunch of stuff here
   into a panel using code. I
understand that things like this can be done with the DOM, but I can't
understand how. Does anyone have a good example?

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



Re: java.lang.IllegalArgumentException: Unknown proxy type

2011-08-17 Thread Y2i
Have you tried to use @ExtraTypes on an interface that extends 
RequestFactory?

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



Re: How can I create a widget add it to a CellTable and perform some action when it's clicked?

2011-08-17 Thread Chris
Are you sure you don't want to use a ButtonCell? Seems to be way more
convenient ;)

On 17 Aug., 22:29, nacho  wrote:
> I need to put some kind of Button in a CellTable column.
>
> I created a class that extends AbstractCell:
>
> public class AnchorCell extends AbstractCell {
>
>     @Override
>     public void onBrowserEvent(com.google.gwt.cell.client.Cell.Context
> context,
>             Element parent, Anchor value, NativeEvent event,
>             ValueUpdater valueUpdater) {
>
>         Window.alert("hello");
>
>     }
>
>     @Override
>     public void render(com.google.gwt.cell.client.Cell.Context context,
> Anchor h, SafeHtmlBuilder sb) {
>         sb.append(SafeHtmlUtils.fromTrustedString(h.toString()));
>     }
>
> }
>
> And then, when I am working with my CellTable, I create a column in this
> way:
>
> Column actionsColumn = new Column Anchor>(new AnchorCell()) {
>
>             @Override
>             public Anchor getValue(CompanyModel company) {
>                 Anchor h = new ActionsButton(company.getCompanyId(),
> "Acciones " + company.getCompanyId());
>                 return h;
>             }
>
>         };
>
> But I can't get the browser events.. How can I perform some action when my
> widget is clicked?

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



How can I create a widget add it to a CellTable and perform some action when it's clicked?

2011-08-17 Thread nacho
I need to put some kind of Button in a CellTable column.

I created a class that extends AbstractCell:

public class AnchorCell extends AbstractCell {

@Override
public void onBrowserEvent(com.google.gwt.cell.client.Cell.Context 
context,
Element parent, Anchor value, NativeEvent event,
ValueUpdater valueUpdater) {

Window.alert("hello");

}

@Override
public void render(com.google.gwt.cell.client.Cell.Context context, 
Anchor h, SafeHtmlBuilder sb) {
sb.append(SafeHtmlUtils.fromTrustedString(h.toString()));
}

}

And then, when I am working with my CellTable, I create a column in this 
way:

Column actionsColumn = new Column(new AnchorCell()) {

@Override
public Anchor getValue(CompanyModel company) {
Anchor h = new ActionsButton(company.getCompanyId(), 
"Acciones " + company.getCompanyId());
return h;
}

};

But I can't get the browser events.. How can I perform some action when my 
widget is clicked?

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/q3ixAJpcHxwJ.
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.



When will there be official GWT binding for Google Maps Javascript API v3?

2011-08-17 Thread zhong
Would somebody know when there will be official GWT binding for Google
Maps Javascript API v3?

Thanks,
Zhong

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



Re: Best way to prevent dual login in gwt.

2011-08-17 Thread Daniel Mauricio Patino León
I think Juan Pablo Gardella just give me a idead, I will check every Action
of the user instead. i mean when the user open a new module or do some CRUD
operation and yes the server side
with help of the user table (db),  and some kind of Callback wrapper.

2011/8/17 Juan Pablo Gardella 

> You must check every request with a filter, and in the case the request is
> not valid, show the log. In meanwhile in client side don't check anithing
>
> 2011/8/17 Daniel Mauricio Patino León 
>
>> We use our own security implementation (implement shiro or spring will
>> delay our development), i just want a idea of how to implement this whit GWT
>> only, no external fw, a simple way.
>>
>> I was thinking in Timer and check every some time if the USER - SESSION ID
>> are correct
>> but isn't the best way... imagine 1,000 users requesting the server every
>> X time
>>
>> 2011/8/17 Juan Pablo Gardella 
>>
>>> See apache shiro or spring security. You must manage authentication and
>>> authorization in server side
>>>
>>> 2011/8/17 Daniel Mauricio Patino León 
>>>
 Some one can give me a idea of how to manage this? i dont want let
 users log  in in my GWT app (pure GWT dom manipulation) in two places
 at the same time, including the same browser (different tabs)

 any help be apreciated

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


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

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



Re: Best way to prevent dual login in gwt.

2011-08-17 Thread Juan Pablo Gardella
You must check every request with a filter, and in the case the request is
not valid, show the log. In meanwhile in client side don't check anithing

2011/8/17 Daniel Mauricio Patino León 

> We use our own security implementation (implement shiro or spring will
> delay our development), i just want a idea of how to implement this whit GWT
> only, no external fw, a simple way.
>
> I was thinking in Timer and check every some time if the USER - SESSION ID
> are correct
> but isn't the best way... imagine 1,000 users requesting the server every X
> time
>
> 2011/8/17 Juan Pablo Gardella 
>
>> See apache shiro or spring security. You must manage authentication and
>> authorization in server side
>>
>> 2011/8/17 Daniel Mauricio Patino León 
>>
>>> Some one can give me a idea of how to manage this? i dont want let
>>> users log  in in my GWT app (pure GWT dom manipulation) in two places
>>> at the same time, including the same browser (different tabs)
>>>
>>> any help be apreciated
>>>
>>> --
>>> You received this message because you are subscribed to the Google Groups
>>> "Google Web Toolkit" group.
>>> To post to this group, send email to google-web-toolkit@googlegroups.com
>>> .
>>> To unsubscribe from this group, send email to
>>> google-web-toolkit+unsubscr...@googlegroups.com.
>>> For more options, visit this group at
>>> http://groups.google.com/group/google-web-toolkit?hl=en.
>>>
>>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "Google Web Toolkit" group.
>> To post to this group, send email to google-web-toolkit@googlegroups.com.
>> To unsubscribe from this group, send email to
>> google-web-toolkit+unsubscr...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/google-web-toolkit?hl=en.
>>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>

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



Re: Best way to prevent dual login in gwt.

2011-08-17 Thread Jeff Chimene
On 08/17/2011 12:30 PM, Daniel Mauricio Patino León wrote:
> We use our own security implementation (implement shiro or spring will
> delay our development), i just want a idea of how to implement this whit
> GWT only, no external fw, a simple way.
> 
> I was thinking in Timer and check every some time if the USER - SESSION
> ID are correct
> but isn't the best way... imagine 1,000 users requesting the server
> every X time

The answer, as supplied earlier, is to manage it on the server. You
don't have to use a framework, but you do have to manage the multiple
logins on the server.

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



Re: java.lang.IllegalArgumentException: Unknown proxy type

2011-08-17 Thread Andigator
This happens for me when I am extending EntityProxy directly for
proxyA and proxyB and try to append requestA to requestB.  @ExtraTypes
won't fix it in my case.  Ideas?

On Aug 16, 3:44 pm, Y2i  wrote:
> filed an 
> issue:http://code.google.com/p/google-web-toolkit/issues/detail?id=6699

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



Re: Best way to prevent dual login in gwt.

2011-08-17 Thread Daniel Mauricio Patino León
We use our own security implementation (implement shiro or spring will delay
our development), i just want a idea of how to implement this whit GWT only,
no external fw, a simple way.

I was thinking in Timer and check every some time if the USER - SESSION ID
are correct
but isn't the best way... imagine 1,000 users requesting the server every X
time

2011/8/17 Juan Pablo Gardella 

> See apache shiro or spring security. You must manage authentication and
> authorization in server side
>
> 2011/8/17 Daniel Mauricio Patino León 
>
>> Some one can give me a idea of how to manage this? i dont want let
>> users log  in in my GWT app (pure GWT dom manipulation) in two places
>> at the same time, including the same browser (different tabs)
>>
>> any help be apreciated
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Google Web Toolkit" group.
>> To post to this group, send email to google-web-toolkit@googlegroups.com.
>> To unsubscribe from this group, send email to
>> google-web-toolkit+unsubscr...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/google-web-toolkit?hl=en.
>>
>>
>  --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>

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



Re: Best way to prevent dual login in gwt.

2011-08-17 Thread Juan Pablo Gardella
See apache shiro or spring security. You must manage authentication and
authorization in server side

2011/8/17 Daniel Mauricio Patino León 

> Some one can give me a idea of how to manage this? i dont want let
> users log  in in my GWT app (pure GWT dom manipulation) in two places
> at the same time, including the same browser (different tabs)
>
> any help be apreciated
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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



Best way to prevent dual login in gwt.

2011-08-17 Thread Daniel Mauricio Patino León
Some one can give me a idea of how to manage this? i dont want let
users log  in in my GWT app (pure GWT dom manipulation) in two places
at the same time, including the same browser (different tabs)

any help be apreciated

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



Re: WindowBuilderPro GwtJavaUI Composite and GWT UiBinder Composite

2011-08-17 Thread Eric Clayberg
The tutorial you are referring to is for GWT Java, not UiBinder.

FlexTables don't allow children in UiBinder, so you can't add them in the 
design view either.

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



Re: How do I load test data into my Widget

2011-08-17 Thread DemiSheep
I think I'll just hard code a couple of the files for my purposes.

Respectfully,
DemiSheep

On Aug 17, 9:06 am, DemiSheep  wrote:
> Can I put the files in a war file and have the client open the files
> for viewing?? What you described is exactly what I want to do. Click
> on a available file in a list and then have it displayed in another
> panel. Then my main focus is to attach a note to the file.
>
> On Aug 17, 7:01 am, BST  wrote:
>
> > I guess what you are looking for is uploading the files or keeping the files
> > in server and displaying the list of available files in a location at server
> > or war file and when clicked display the contents of the file.

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



java.lang.NoSuchMethodError: org.mortbay.thread.Timeout

2011-08-17 Thread Raja
Hello,

I'm new to GWT. I have created a Webapplication project. i have
defined a class called Abc.java, which will  use "smartgwt" libraries
for xpath.
I have created a JunitTest class to test this Abc.java.

My test class is as follows:



import com.google.gwt.core.client.GWT;
import com.google.gwt.junit.client.GWTTestCase;


public class AbcTest extends GWTTestCase{

public void testIsPasswordExpired() {

Abc abc = Abc.getInstance();
Password passwd = new Password("test12","01-01-2012");
abc.setPassword(passwd);
assertFalse("Password Expired But Allowed",abc.isPasswordExpired());
}
}



when i executed this test case, i got the following error.

Starting Jetty on port 0
   [WARN] failed org.mortbay.jetty.nio.SelectChannelConnector
$1@11587fb
java.lang.NoSuchMethodError: org.mortbay.thread.Timeout.(Ljava/
lang/Object;)V
at org.mortbay.io.nio.SelectorManager
$SelectSet.(SelectorManager.java:306)
at org.mortbay.io.nio.SelectorManager.doStart(SelectorManager.java:
223)
at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
39)
at
org.mortbay.jetty.nio.SelectChannelConnector.doStart(SelectChannelConnector.java:
303)
at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
39)
at org.mortbay.jetty.Server.doStart(Server.java:233)
at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
39)
at
com.google.gwt.dev.shell.jetty.JettyLauncher.start(JettyLauncher.java:
667)
at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:500)
at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1055)
at com.google.gwt.junit.JUnitShell.getUnitTestShell(JUnitShell.java:
705)
at com.google.gwt.junit.JUnitShell.runTest(JUnitShell.java:650)
at com.google.gwt.junit.client.GWTTestCase.runTest(GWTTestCase.java:
441)
at junit.framework.TestCase.runBare(TestCase.java:134)
at junit.framework.TestResult$1.protect(TestResult.java:110)
at junit.framework.TestResult.runProtected(TestResult.java:128)
at junit.framework.TestResult.run(TestResult.java:113)
at junit.framework.TestCase.run(TestCase.java:124)
at com.google.gwt.junit.client.GWTTestCase.run(GWTTestCase.java:296)
at junit.framework.TestSuite.runTest(TestSuite.java:232)
at junit.framework.TestSuite.run(TestSuite.java:227)
at
org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:
79)
at
org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:
46)
at
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:
38)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:
467)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:
683)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:
390)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:
197)
   [WARN] failed SelectChannelConnector@0.0.0.0:0
java.lang.NoSuchMethodError: org.mortbay.thread.Timeout.(Ljava/
lang/Object;)V
at org.mortbay.io.nio.SelectorManager
$SelectSet.(SelectorManager.java:306)
at org.mortbay.io.nio.SelectorManager.doStart(SelectorManager.java:
223)
at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
39)
at
org.mortbay.jetty.nio.SelectChannelConnector.doStart(SelectChannelConnector.java:
303)
at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
39)
at org.mortbay.jetty.Server.doStart(Server.java:233)
at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
39)
at
com.google.gwt.dev.shell.jetty.JettyLauncher.start(JettyLauncher.java:
667)
at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:500)
at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1055)
at com.google.gwt.junit.JUnitShell.getUnitTestShell(JUnitShell.java:
705)
at com.google.gwt.junit.JUnitShell.runTest(JUnitShell.java:650)
at com.google.gwt.junit.client.GWTTestCase.runTest(GWTTestCase.java:
441)
at junit.framework.TestCase.runBare(TestCase.java:134)
at junit.framework.TestResult$1.protect(TestResult.java:110)
at junit.framework.TestResult.runProtected(TestResult.java:128)
at junit.framework.TestResult.run(TestResult.java:113)
at junit.framework.TestCase.run(TestCase.java:124)
at com.google.gwt.junit.client.GWTTestCase.run(GWTTestCase.java:296)
at junit.framework.TestSuite.runTest(TestSuite.java:232)
at junit.framework.TestSuite.run(TestSuite.java:227)
at
org.junit.internal.runners.JUnit

StockWatcher JSON - tutorial

2011-08-17 Thread Gaurav
tried follwing stockwatcher GWT tutorial for using JSON data. Data on
the screen not getting refreshed but the call to the backend server is
successfull. adding new stocks to the list refreshes the data as
expected.
kindly help.
Regards,
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-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Integrating RequestFactory into an eclipse project

2011-08-17 Thread Nick Chalko
What do I use as a "validator of my choice" that I can use with GAE
> and which is easily gettable?
>
>
http://www.hibernate.org/subprojects/validator.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-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.



WindowBuilderPro GwtJavaUI Composite and GWT UiBinder Composite

2011-08-17 Thread Luc
It's kind of newbie question..

I can't figure out how WindowBuilder manages panels in design view for
GWT Java UI and GWT UiBinder.
Everything seems fine when I follow the instructions in this tutorial
(http://code.google.com/javadevtools/wbpro/tutorials/
loginmanager.html), but when I try to do the same with UiBinder
(WindowBuilder > GWT Designer > GWT UiBinder > Composite) things're
getting complicated..
Adding title label and FlexTable into VerticalPanel is
straightforward. Then I should add some widgets onto FlexTable but I
can't. I don't understand why?
Moreover I've noticed that FlowPanel doesn't let to put Label and
another Label or TextBox in the same row, which for me is strange..

I would be grateful for any suggestions..

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



Re: Activities and Places and Layouts (again)

2011-08-17 Thread DaveC
No worries :o)

On Aug 15, 7:10 pm, Mike Dee  wrote:
> Dave,
>
> I think you got it.  Double checked and wasn't setting height to
> 100%.  Thanks, that seems to have done it.  Thought I was doing that.
>
> Mike
>
> On Aug 15, 9:01 am, DaveC  wrote:
>
>
>
> > Hi Mike,
>
> > I'm trying to understand your issue...
>
> > I'm assuming that DockLayoutPanel is in an Activity and that you're
> > adding it to the SimplePanel using panel.setWidget() in the start
> > method...? (I don't want to teach you to suck eggs - but you can use
> > Firebug (or similar) to check the DOM of your page and make sure the
> > DockLayoutPanel is actually being added).
>
> > If so, it sounds like you just need to force the DockLayoutPanel to be
> > 100% the height of it's container:
>
> > dlp.setHeight("100%");
>
> > If not I can give you a basic structure that at least works for me...
>
> > Cheers,
> > Dave
>
> > On Aug 15, 3:51 pm, Mike Dee  wrote:
>
> > > I replaced RootPanel with RootLayoutPanel.
>
> > > Here is the EntryPoint from HelloMVP:
>
> > >  private SimplePanel appWidget = new SimplePanel();
> > >  ...
> > >  RootPanel.get().add( appWidget );
> > >  activityManager.setDisplay( appWidget );
>
> > > I replaced RootPanel with RootLayoutPanel:
>
> > >  private SimplePanel appWidget = new SimplePanel();
> > >  ...
> > >  RootLayoutPanel.get().add( appWidget );
> > >  activityManager.setDisplay( appWidget );
>
> > > Maybe I'm a little too naive in thinking that would do much.
>
> > > Also, when I look at the page source generated, it appears a DOCTYPE
> > > is already there.  Here is the page source generated by the GWT app
> > > (HelloMVP).
>
> > >  
> > >  
> > >  
> > >  
> > >  
> > >  
>
> > > If I create a simple GWT app (not Activities & Places) and plop a
> > > DockLayoutPanel in the RootPanel, it just works.  Fills the page
> > > nicely without having to add any onResize handlers.  Is there a reason
> > > why adding handlers would be needed in an Activities & Places
> > > framework (such as that provided by HelloMVP)?  I'd like to understand
> > > that a bit more.
>
> > > On Aug 15, 4:44 am, "P.G.Taboada"  wrote:
>
> > > > You need rootlayoutpanel, the host page should be in standards mode
> > > > ( see doctype declaration).
>
> > > > Then you should look if all the panels being used implement provides
> > > > resize/ requires resize. That is the way resize events get propagated
> > > > to child elements in gwt.
>
> > > > On Aug 15, 8:00 am, Mike Dee  wrote:
>
> > > > > Getting started with Activities and Places.  I'd like to use a
> > > > > DockLayoutPanel to comprise the entire view (page).  When I try, it
> > > > > doesn't work.
>
> > > > > Note I'm using HelloMVP is a starting point and that in the EntryPoint
> > > > > a SimplePanel is set up as the default Panel.  I've tried adding a
> > > > > DockLayoutPanel to that.  I also tried first adding a VerticalPanel
> > > > > and then a DockLayoutPanel based on some suggestions here.
>
> > > > > The DockLayoutPanel simply doesn't display.  This was also mentioned
> > > > > in this message from last Oct:http://tinyurl.com/3z8mn4v.  The
> > > > > resolution there was to adjust the positioning styles to be absolute.
> > > > > However, they appear to already be absolute.
>
> > > > > I've played around with setting the width and height of the parent
> > > > > (SimplePanel) panel to 100%.  I've changed RootPanel to
> > > > > RootLayoutPanel in onLoadModule.  Nothing seems to work.  Seems like
> > > > > this would be something that is commonly done OR am I heading down the
> > > > > wrong path?
>
> > > > > Any ideas?
> > > > > Mike

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



Controlling Size(screen) on Mobile Device

2011-08-17 Thread Doug
Good Afternoon All,

What is the best way to control the size of a page on a mobile
browser?  For example, on the sample 'greeting' app that is created
when you create a new project is about 1/3 of the page with when
viewed in a normal browser.  If you view it on a mobile device it
takes up about 1/3 of the mobile browsers screen and is s small it
is unusable.  I know there is a way to make it bigger, but I am not
sure what it is.  Can anyone point me in the right direction?

Thanks,
Doug

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



Re: GWT Developer Plugin for Firefox 6

2011-08-17 Thread Jason Yin
Hi Chris

Thank you for your reply.

Jason

On Aug 16, 5:03 pm, Chris Conroy  wrote:
> Jason,
>
> Unfortunately, for the time being we're unable to keep pace with Mozilla's
> new release schedule since the plugin update process is quite manual. We'll
> be sure to announce to the list when FF6 support is ready. In the meantime,
> you'll just have to fall back to <=FF5 for DevMode.
>
> On Tue, Aug 16, 2011 at 3:51 PM, Jason Yin wrote:
>
>
>
>
>
>
>
> > Hi
>
> > just upgraded to firefox 6 today.. and realized GWT Developer plugin
> > isn't compatible with it.
> > any ETA on when this will be available?
>
> > Thanks
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google Web Toolkit" group.
> > To post to this group, send email to google-web-toolkit@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscr...@googlegroups.com.
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.

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



Re: how to test "presenter" that is "activity"

2011-08-17 Thread objectuser
It works for me.  These are just JUnit tests (Jukito tests, specifically).

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



Re: Re: requestfactory security problem

2011-08-17 Thread July
very helpful, Thank you all for the help

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



Re: MenuBar working well in hosted page but not in the others

2011-08-17 Thread Marko Borges
Sorry! I forgot to tell. I have it working now! Thanks for trying to help.

Is there an easy way to insert blank space in Menu before inserting
MenuItems?
If there is a way without having to edit css would be perfect. I tried to
insert in an HorizontalPanel but my menu stays badly formatted inside of it
:(

2011/8/17 BST 

> I just tried the example that you posted. It works for me. I am getting an
> alert whenever I select Bold or A or B. Are you expecting something else?
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-web-toolkit/-/NPLdwKrrHCQJ.
>
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>

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



Re: how to test "presenter" that is "activity"

2011-08-17 Thread tanteanni
that means the PlaceController works as always?! it delgates only the 
GwtTestCase-needed-stuff? - great!

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



Re: CellTree and SelectionModel

2011-08-17 Thread tom
Now got it working with SingleSelectionModel. The first time I tried
it, the SingleSelectionModel wasn't working properly because it lacked
a ProvidesKey to distinguish my EntityProxies.

On 12 Aug., 15:40, tom  wrote:
> Hi,
>
> As a workaround, I've implemented onBrowserEvent() in the Cells I use to
> display my data.
>
> Like 
> here:https://groups.google.com/d/topic/google-web-toolkit/mWdBS9kavuc/disc...
>
> Still interested in a clean solution via SelectionModel.

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



Re: how to test "presenter" that is "activity"

2011-08-17 Thread objectuser
The delegate appears to be irrelevant in unit tests.  I test 
my navigation using placeController.goTo as I show above.  My activities 
start, stop, etc.  So it works out very well, I think.

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



Re: how to test "presenter" that is "activity"

2011-08-17 Thread tanteanni
on additional question about the mock PlaceController: i guess the normal 
PlaceController is the source of PlaceChangeEvents, isn't it? Is it possible 
to let the mock fire such events on call of goTo in PlaceController? (Will 
the PlaceController delegate goTo-calls to it's delegate?)
it would be great if i could test the navigation logic without gwtTestcase

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



Re: how to test "presenter" that is "activity"

2011-08-17 Thread tanteanni
i didn't know about this nice constructor - thx objectuser!

i'll try it :-)

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



Re: how to test "presenter" that is "activity"

2011-08-17 Thread objectuser
Maybe I'm not understanding the issue, but can't you just create a place 
controller like so:

@Provides
 @Singleton
 PlaceController createPlaceController(EventBus eventBus, 
PlaceController.Delegate delegate) {
return new PlaceController(eventBus, delegate);
 }


Put whatever in the delegate you like (I put a mock in there and ignore it). 
 It works for me in unit tests.

placeController.goTo(new MyPlace());



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



Re: how to test "presenter" that is "activity"

2011-08-17 Thread Nicolas Antoniazzi
One solution could be to create an interface in your project around
PlaceController and bind this interface on an inherited version of
PlaceController. Then, inject the interface instead of the concrete
implementation.

But there is certainly an easyier way of doing it...

2011/8/17 Nicolas Antoniazzi 

> Yes, indeed, I did not realized this !
> That's a good question :) !
>
> 2011/8/17 tanteanni 
>
>> thx i already use gin. but how to get a testable PlaceController -
>> Placecontroller is a class not an interface? my only idea is to give null?
>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "Google Web Toolkit" group.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msg/google-web-toolkit/-/2rENUIKK3DwJ.
>>
>> To post to this group, send email to google-web-toolkit@googlegroups.com.
>> To unsubscribe from this group, send email to
>> google-web-toolkit+unsubscr...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/google-web-toolkit?hl=en.
>>
>
>

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



RequestBuilder POST problem

2011-08-17 Thread Max
Hello,

I'm sending a POST request to my webserver (let's call it server A)
from RequestBuilder, which returns JSON representation of the object
being created.
In my callback method I refresh the UI to reflect the changes.
Everything works fine, while I use server A as a host name in the
browser's address string.

There is another server in our system, which acts like a proxy to
server A, which is a machine running nginx server (server B). It has a
different DNS, though I expect everything to work smoothly anyway.

When I execute the exact same async POST request to server B, the
callback code gets executed after some delay (around 40-60 seconds),
though my firebug shows that the response is already received... I
don't know why the delay is happening.

Any idea why it can happen? Note, that the application still works as
expected on server B: the callback code gets executed, but it takes
some time and the browser does nothing for 40-60 seconds, when the
response is received already.

Thanks.

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



Trouble with List Editors

2011-08-17 Thread Maiku
Hello,

I have a model that contains a List of Language objects (which just
contain a string for the language code and boolean to denote
default).  I am trying to setup a List Editor like that shown in
http://code.google.com/p/google-web-toolkit/source/browse/trunk/samples/dynatablerf/src/com/google/gwt/sample/dynatablerf/client/widgets/FavoritesWidget.java
for that model (with the major change that I am using
SimpleBeanEditorDriver instead of RequestFactoryEditorDriver).

However, during the creation of the LanguageEditor from the
LanguageListEditor.LanguageEditorSource's create method, it dies on
the call to uiBinder.createAndBindUi. The error seems to refer to
native javascript and I am unsure of how to debug it any further. Does
anyone have suggestions of what is the problem or how I can track it
down further?


22:09:04.490 [ERROR] [viewappdesigner] Failed to create an instance of
'vivid.client.widget.LanguageListEditor' via deferred binding

com.google.gwt.core.client.JavaScriptException: (TypeError):
__static[458906].call is not a function
at
com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:
237)
at
com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:
132)
at
com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:
561)
at
com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:
269)
at
com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:
91)
at com.google.gwt.dom.client.DOMImpl.createElement(DOMImpl.java)
at com.google.gwt.dom.client.Document$.createDivElement$
(Document.java:290)
at com.google.gwt.user.client.ui.HTMLPanel.
(HTMLPanel.java:79)
at
vivid.client.widget.LanguageEditor_LanguageEditorUiBinderImpl.createAndBindUi(LanguageEditor_LanguageEditorUiBinderImpl.java:
13)
at
vivid.client.widget.LanguageEditor_LanguageEditorUiBinderImpl.createAndBindUi(LanguageEditor_LanguageEditorUiBinderImpl.java:
1)
at vivid.client.widget.LanguageEditor.
(LanguageEditor.java:50)
at vivid.client.widget.LanguageListEditor
$LanguageEditorSource.create(LanguageListEditor.java:47)
at vivid.client.widget.LanguageListEditor
$LanguageEditorSource.create(LanguageListEditor.java:1)
at
com.google.gwt.editor.client.adapters.ListEditorWrapper.add(ListEditorWrapper.java:
50)
at vivid.client.widget.LanguageListEditor.
(LanguageListEditor.java:76)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown
Source)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at
com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:
465)
at
com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:49)
at com.google.gwt.core.client.GWT.create(GWT.java:98)
at
vivid.client.view.ApplicationDialogViewImpl_ApplicationDialogViewImplUiBinderImpl.createAndBindUi(ApplicationDialogViewImpl_ApplicationDialogViewImplUiBinderImpl.java:
26)
at
vivid.client.view.ApplicationDialogViewImpl_ApplicationDialogViewImplUiBinderImpl.createAndBindUi(ApplicationDialogViewImpl_ApplicationDialogViewImplUiBinderImpl.java:
1)
at vivid.client.view.ApplicationDialogViewImpl.
(ApplicationDialogViewImpl.java:77)
at vivid.client.ClientFactoryImpl.
(ClientFactoryImpl.java:57)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at
com.google.gwt.dev.shell.ModuleSpace.loadClassFromSourceName(ModuleSpace.java:
654)
at
com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:
458)
at
com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:49)
at com.google.gwt.core.client.GWT.create(GWT.java:98)
at vivid.client.ViewAppDesigner.onModuleLoad(ViewAppDesigner.java:
44)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:
396)
at
com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:
193)
at
com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:
510)
at
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:
352)
at java.lang.Thread.run(Unknown Source)

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

Re: GWT Developer Plugin for Firefox 6

2011-08-17 Thread Jesper Rønn-Jensen
Jason Yin wrote:
>
> just upgraded to firefox 6 today.. and realized GWT Developer plugin isn't 
> compatible with it.
>

Just to add to the thread: I changed version numbers inside the .xpi
file. But FF6 still complaints that it is incompatible. So I guess we
must have to wait for a release


Please keep us informed in this thread of:
* official updates to the gwt-dev-plugin.xpi
* any unofficial releases that work for FF6


Thanks!
/Jesper Rønn-Jensen
www.justaddwater.dk

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



Problem in Tabbing on a Button

2011-08-17 Thread Manish
I have a Flowpanel in which I inturn add Deckpanel and ButtonPanel Now
this Deckpanel have Dynamic GWT Companents added and ButtonPanel have
Buttons which are disabled and enabled Dynamically.My issue is when I
try to do tab movement then tab movement/shift-tab movement from
ButtonPanel to Deckpanel and viceversa is not smooth taabing order
breaks while moving from one component of one panel to other component
of other.

Regards
Manish

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



Re: how to test "presenter" that is "activity"

2011-08-17 Thread Nicolas Antoniazzi
Yes, indeed, I did not realized this !
That's a good question :) !

2011/8/17 tanteanni 

> thx i already use gin. but how to get a testable PlaceController -
> Placecontroller is a class not an interface? my only idea is to give null?
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-web-toolkit/-/2rENUIKK3DwJ.
>
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>

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



Re: how to test "presenter" that is "activity"

2011-08-17 Thread tanteanni
thx i already use gin. but how to get a testable PlaceController - 
Placecontroller is a class not an interface? my only idea is to give null?

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



Re: GWT MenuBar : how to set size and spacing between the element

2011-08-17 Thread saurabh saurabh
Ok I got an answer CSS styling  and I need to override the particular
style already given in extended CSS style.

Sorry for bothering for such a silly question.

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



Re: How do I load test data into my Widget

2011-08-17 Thread DemiSheep
Can I put the files in a war file and have the client open the files
for viewing?? What you described is exactly what I want to do. Click
on a available file in a list and then have it displayed in another
panel. Then my main focus is to attach a note to the file.

On Aug 17, 7:01 am, BST  wrote:
> I guess what you are looking for is uploading the files or keeping the files
> in server and displaying the list of available files in a location at server
> or war file and when clicked display the contents of the file.

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



Re: GWT 2.3: Activities and Automatic Event Deregistration

2011-08-17 Thread objectuser
I might understand this better.  It seems like the event registration is 
still fired in the event cycle that causes the onStop method to be called. 
 After that, subsequent events don't activate that registration. 
 Confirmation is welcome. :)

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



Re: How do I load test data into my Widget

2011-08-17 Thread DemiSheep
I am trying to write a widget which will be used to attach notes to
documents. So I am trying to setup a mock environment to simulate
this. My main focus is the notes for the documents, which I can store
anywhere, but I had thought I'd store them at the end of the files I
am viewing. Is there a place I can store the data files to be access
the way I need without a lot of trouble? :)

On Aug 16, 3:33 pm, Jim Douglas  wrote:
> Set aside implementation details for a second; what are you actually
> trying to accomplish?
>
> The short answer, to respond to the question as you've phrased it
> here, is that it's impossible(*) to write a browser-based application
> (with GWT, hand-crafted JavaScript, or any toolkit) that will
> programmatically retrieve a list of files on the client.  Browser
> security rules forbid anything like that (for obvious reasons -- it
> would be Very Not Good if any random web page had the ability to go
> snooping around in your filesystem).
>
> (*) In this context, "impossible" disregards messing around with local
> security policy files and/or using browser-specific hacks.
>
> On Aug 16, 12:14 pm, DemiSheep  wrote:
>
> > I am using the Google Toolkit and I have created a widget with a
> > listbox, vertical split panel and a couple of buttons. What I am
> > trying to do is have a list of files in a local directory listed in
> > the listbox and I want to be able to click on a file and have it
> > displayed in the top part of the split panel. I found out the hard way
> > about browsers and file IO and not being able to use java.io.File.
>
> > What are my options? Can I put the data files inside a jar or
> > something and have the widget read it in that way? I need to do this
> > as a test run, to implement an new feature with working with the data.
> > It's not going to be any kind of final server hosted application, I am
> > not concerned about how the actual files will be loaded in the future.
>
> > Any suggestions would be greatly appreciated.
>
> > Respectfully,
> > DemiSheep

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



Re: how to test "presenter" that is "activity"

2011-08-17 Thread Nicolas Antoniazzi
If you use MVP, you might use some kind of factory for your objects, like
the PlaceController.
The best is to use dependency injection for this (with Gin).
The PlaceController is Injected in the Activity (or in your custom factory).

When it comes to testing, you can use a special factory (or injection) that
implements a Testable PlaceController)


2011/8/17 tanteanni 

> On of the main advantages of MVP-patrtern propagated is testability because
> if implemented "correctly" there is no need for GWTTestCase. But if i use
> MVP in conjunction with "activities & places" - meaning presenters become
> "activities" - this advantage seem to gone?! Beeing a presenter and activity
> at the same time means knowing something about PlaceController - to go to
> other places or to deserialize the state of current place. (If
> PlaceController is involved the need for GWTTestCase arose.)
>
> At the moment i see some alternatives:
> - testing the "old" way with GWTTestCase
> - separating activity and presenter (separating navigation logic from
> business-logic, the pattern is know "MVPA")
> - make activity more testable (how? give a null-PlaceController in
> constructor?)
>
> My Question is: Is there a best or at least good practice to test/implement
> such presenters? (the first 2 alternative are the worst in imho)
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-web-toolkit/-/3_fACom4yUEJ.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>

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



GWT 2.3: Activities and Automatic Event Deregistration

2011-08-17 Thread objectuser
Handlers added to the eventBus passed to the Activity.start method are not 
automatically deregistered for me.  I'm guessing it's my code, since I don't 
see much recent discussion about this.  I don't throw away my activities 
each time, so maybe that's my issue.  But reading the documentation makes me 
think this should work.

>From the javadoc of start:

Any handlers attached to the provided event bus will be de-registered when 
the activity is stopped, so activities will rarely need to hold on to the 
HandlerRegistrationinstances
 
returned by EventBus.addHandler(com.google.gwt.event.shared.GwtEvent.Type, 
H).

However, if I have:

@Override 
public void start(AcceptsOneWidget panel, EventBus eventBus) { 
panel.setWidget(view); 

placeChangeRegistration = 
eventBus.addHandler(PlaceChangeEvent.TYPE, new PlaceChangeEvent.Handler() { 
@Override 
public void onPlaceChange(PlaceChangeEvent event) {
doSomething();
} 
}); 
}

The handler is triggered even after onStop is called in my activity.  I also 
tried holding on to the registration (as above) and removing it in onStop 
and the handler is still called.

Does anyone have an idea of what I might be doing wrong?

Thanks.

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



GWT MenuBar : how to set size and spacing between the element

2011-08-17 Thread saurabh saurabh
Hi everyone,
I have made a Composite widget as header of page.
Now I encounter these few problems here:

1) I am not able to set the size of MenuBar. Whatever I set the width,
I see no changes over the web page.

2) I want some custom styling of my MenuBar like the space or padding
between the menuitems of my main menu (horizontal). and I want that
the first menuitem should start with a certain space from left (left
margin). but  I am not able to find anything on these topics.

Thanks in advance.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
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 test "presenter" that is "activity"

2011-08-17 Thread tanteanni
On of the main advantages of MVP-patrtern propagated is testability because 
if implemented "correctly" there is no need for GWTTestCase. But if i use 
MVP in conjunction with "activities & places" - meaning presenters become 
"activities" - this advantage seem to gone?! Beeing a presenter and activity 
at the same time means knowing something about PlaceController - to go to 
other places or to deserialize the state of current place. (If 
PlaceController is involved the need for GWTTestCase arose.)

At the moment i see some alternatives:
- testing the "old" way with GWTTestCase
- separating activity and presenter (separating navigation logic from 
business-logic, the pattern is know "MVPA")
- make activity more testable (how? give a null-PlaceController in 
constructor?)

My Question is: Is there a best or at least good practice to test/implement 
such presenters? (the first 2 alternative are the worst in imho)

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



Re: Re: requestfactory security problem

2011-08-17 Thread Mihail Lesikov
Check this  topic -
https://groups.google.com/forum/?pli=1#!searchin/google-web-toolkit/RequestFactory$20security|sort:date/google-web-toolkit/BBG4ivoedLM/BE6BTl8ikSEJ


" Have a look at how the Expenses sample uses Google AppEngine's UserService
to authenticate users with RequestFactory:
http://code.google.com/p/google-web-toolkit/source/browse/trunk/samples/expenses/src/main/java/com/google/gwt/sample/gaerequest/
 "

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



Re: How do I load test data into my Widget

2011-08-17 Thread BST
I guess what you are looking for is uploading the files or keeping the files 
in server and displaying the list of available files in a location at server 
or war file and when clicked display the contents of the file.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/WXMG2Pe-sC4J.
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.



Aw: Re: requestfactory security problem

2011-08-17 Thread Jens
The UserInformation class is old. 

You have to write a ServletFilter that does the authentication for every 
request and you may also want a custom RequestTransport implementation for 
RequestFactory. Take a look at the mobilewebapp sample in GWT 2.4 release 
branch or trunk to see how you can implement it.

-- J.

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



Re: requestfactory security problem

2011-08-17 Thread BST
http://google-web-toolkit.googlecode.com/svn/javadoc/2.3/com/google/gwt/requestfactory/server/RequestFactoryServlet.html

Message in the above link 

RequestFactory has moved to com.google.web.bindery.requestfactory. This 
package will be removed in a future version of GWT.

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



Re: requestfactory security problem

2011-08-17 Thread July
Thanks for reply, but seem both links you provided can not be opened. i use 
GWT2.3 and seem no UserInformation defined?

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



Re: MenuBar working well in hosted page but not in the others

2011-08-17 Thread BST
I just tried the example that you posted. It works for me. I am getting an 
alert whenever I select Bold or A or B. Are you expecting something else?

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



Re: CellTable

2011-08-17 Thread BST
Is it like a Cell Table that directly edits csv files or something like 
that?

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



Re: Datagrid with ScrollPanel

2011-08-17 Thread ciosbel
Sorry, my bad. HasKeyboardPagingPolicy is an interface implemented by 
CellTable in 2.3 (in 2.4 or in trunk, the inheritance chain in slightly 
different but still working in the same manner) that defines a

*setKeyboardPagingPolicy
*(HasKeyboardPagingPolicy.KeyboardPagingPolicy
 policy)

with its getter counterpart. So, given a celltable (or datagrid) you just 
need to set something like

table.setKeyboardPagingPolicy(HasKeyboardPagingPolicy.INCREASE_RANGE)

That's it.

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



Re: Custom Handlers for CellTable

2011-08-17 Thread BST
A solution for adding ValueChange Handler:

https://groups.google.com/d/topic/google-web-toolkit/yN3K778FVsU/discussion

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



Re: Getting Height of cell table

2011-08-17 Thread BST
Managed to find a solution: updating it below.

I am adding a handler to the celltable when the celltable updates it rowdata 
automatically a valueChange event is fired, so making use of it. Had to go 
thru the source code for this.

.addHandler(new ValueChangeHandler() {

@Override
public void onValueChange(
ValueChangeEvent event) {
CellTable table 
= (CellTable) event.getSource();


String height = 231 + table.getOffsetHeight() + "px";

Window.alert("Value Change Height " + height);

}

},ValueChangeEvent.getType() );

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



Re: requestfactory security problem

2011-08-17 Thread Nuno Rosa
RequestFactory accepts a parameter to define a
UserInformation
 class, you should implement this class with your authentication mechanism.
 If this parameter is available requestfactory will call the
isUserLoggedIn method
before processing the call.
Check RequestFactoryFactoryServlet implementation.
http://code.google.com/p/google-web-toolkit/source/browse/trunk/user/src/com/google/gwt/requestfactory/server/RequestFactoryServlet.java

This is how we define the parameters on web.xml


  requestFactoryServlet
  
com.google.gwt.requestfactory.server.RequestFactoryServlet
  
userInfoClass
com.example.server.UserInformationImpl
  




2011/8/17 July 

> hello all:
>   I'm using GWT 2.3 requestfactory+ GAE 1.5 user authentication for my app,
> it only allows authenticated people to access, implemented as below:
> if the user has not login to Google, redirect him the Google login screen.
> if yes, check if he has the right to access. if yes display the web UI to
> user. or display error screen.
>
> My question is:
> 1. Do i have to check every gwtrequest to ensure the security? i mean, use
> a filter to check every gwtrequest to see if the user has the right to
> access. if so, the application is more secure but have to process much more
> extra payloads.
> 2. If i just use the login authentication but does not check every gwt
> requests after that, is there risk that un-authorized people may be able to
> access my app? Does requestfactory automatically have ways to protected
> this?
>
> Thanks.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-web-toolkit/-/h0Nx1ecMf2sJ.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>

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



Re: GWT CELLTABLE :How to avoid RPC call in AsycDataProvider when I click on prev button.

2011-08-17 Thread BST
You have to append the data you get (the 100 rows )to a list or a data store 
of your choice. I can't think of another way. It would be easier if you put 
that list or your custom datastore inside the AsyncDataProvider. Basically 
the idea is caching the rows you are getting from the server. 

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



Re: How to do user simple user authentication and provide a different module for different user types?

2011-08-17 Thread Sérgio Miguel Neves Lopes
Thank you for the suggestions. I've been looking at Apache Shiro and it seems 
I'm going to use it as soon as I can manage to incorporate it into my 
application.

On 2011/08/16, at 19:14, Juan Pablo Gardella wrote:

> You can see Spring Security or Apache Shiro. This frameworks are easy and 
> mature.

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



Re: FlexTable RowSpan problem

2011-08-17 Thread Ivan Pulleyn
Maybe this is a misunderstanding on my part then. When I insert at (0,0)
with colspan="2", then I was expecting that a subsequent insert at (0, 2)
would be the next cell over. HoweverFlexTable sticks an empty cell in
between, resulting in 3 cells existing in the table rather than 2, which is
what I expected.

In html terms, if I write ..., is the index of td xyz 0,1 or 0,2? I was assuming it's
at grid position 0,2.

If I'm wrong, then the documentation is confusing because there are two
meanings of "column", one for indexing the table and one for spanning.

Ivan...

On Wed, Aug 17, 2011 at 2:11 PM, Paul Robinson  wrote:

>
> On 16/08/11 21:47, Ivan Pulleyn wrote:
>
>>
>> I've recently experienced similar bugs in FlexTable and had to work around
>> it by next my tables and never using colSpan. I'm curious if GWT 2.4 will
>> fix this but I haven't had the chance to look into it.
>>
>>  This is not a bug in GWT, it is the way html tables work.
>
> Paul
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to 
> google-web-toolkit@**googlegroups.com
> .
> To unsubscribe from this group, send email to google-web-toolkit+**
> unsubscr...@googlegroups.com
> .
> For more options, visit this group at http://groups.google.com/**
> group/google-web-toolkit?hl=en
> **.
>
>

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



Re: UI Binder Button Problem

2011-08-17 Thread walker1c
Hi Alex,

That would be a start.

Does the tag in your post work?  The Javadoc at
http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/user/client/ui/CustomButton.html
shows upFace as a sub-node of the PushButton tag. If I'm reading the
UIBinder documentation correctly, upFace can only be an attribute of
the PushButton tag if the class has a method called setUpFace().

As a matter of fact this seems to be really a problem with UiBinder
and PushButton.  I've converted my button to @UiField(provided =
true), and I'm loading the images direct from URLs when I construct
the PushButton, and even then the button isn't rendered.

Thanks for the reply.

Chris


On Aug 16, 3:00 pm, Alex Dobjanschi  wrote:
> What are you trying to do exactly? Setting the upFace of a PushButton?
>
> Then go with
> {{{
>               upFace="{img.button}" />
>
> }}}
>
> (not sure highlight will work)

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



Re: How to set the selection color of a CellList widget?

2011-08-17 Thread ozgur aydinli
Hi Rod,

You can extend CellList.Resources interface and create the cell list
with your new Resources.


public interface MyCellListResources extends CellList.Resources {

@Source("MyCellList.css")
Style cellListStyle();
}

and in your MyCellList.css override all of the rules and change what
ever you want:

.cellListWidget {

}

.cellListEvenItem {
  cursor: pointer;
  zoom: 1;
}

.cellListOddItem {
  cursor: pointer;
  zoom: 1;
}

.cellListKeyboardSelectedItem {
  background: red;
<-- This is what
you are looking for.
}

@sprite .cellListSelectedItem {
  gwt-image: 'cellListSelectedBackground';
  background-color: #628cd5;
  color: white;
  height: auto;
  overflow: visible;
}


And finally,

CellList.Resources resources = GWT.create(MyCellListResources.class);
CellList cellList = new CellList(new ContactCell(),
resources);


You should see a red background when you select an item from the
cellist.



On Aug 15, 12:31 am, Rod Trendy  wrote:
> Hello everyone,
>
> I can't help it anymore. I am really stuck on the CellList. Creating
> and working with a CellList is quite simple, but I can't change the
> style of the CellList.
>
> I search the internet via Google but I couldn't find any results that
> 'really' helped me out. I just want to be able to change the
> background color of a selected cell, but whatever I try the color
> won't change from yellow to blue. All I've got so far is changing the
> whole background of the celllist into blue (including the cells which
> are not selected) but that's getting me nowhere.
>
> Please, can anyone help me out? I really would like to have a step by
> step guide for this problem. I am exhausted :(
>
> Regards, Rod

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



Re: FlexTable RowSpan problem

2011-08-17 Thread Paul Robinson


On 16/08/11 21:47, Ivan Pulleyn wrote:


I've recently experienced similar bugs in FlexTable and had to work around it 
by next my tables and never using colSpan. I'm curious if GWT 2.4 will fix this 
but I haven't had the chance to look into it.


This is not a bug in GWT, it is the way html tables work.

Paul

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



Re: Dynamically editing list of ValueProxies with ListEditor

2011-08-17 Thread Mihail Lesikov
>
> listEditor.getList().remove(phoneNumber); // phone number is the last proxy
> in the list
>
> 1) as a result, the first element in the list is always removed
>
2) when flush is called on the contactEditor(parent editor that contacs the
> driver), no values are filled in the list of phoneNumbersProxies
>

 The problem here is related with issue
http://code.google.com/p/google-web-toolkit/issues/detail?id=6081 - bug with
the RequestFactoryEditorDriver,
 With the SimpleBeanEditorDriver instead
of RequestFactoryEditorDriver everything works fine.


Other thing that i noticed is that every valueProxy.hashCode() is the same
> as others from that type.
>

Newly created proxies without any changes on their properties:
PhoneNumber p1 = request.create(PhoneNumber.class);
PhoneNumber p2 = request.create(PhoneNumber.class);

p1.equals(p2) is true (same hashCode)
don't know why?

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



Re: Dynamically editing list of ValueProxies with ListEditor

2011-08-17 Thread Mihail Lesikov
> What version of GWT  you are using  ?
>

GWT 2.4 rc1


>
> What happens if you try something like:
>
> PhoneNumber p1 = request.create(PhoneNumber.class);
> PhoneNumber p2 = request.create(PhoneNumber.class);
>
> p1.setValue("234234234");
> p2.setValue("12312");
>
> p1.equals(p2)
> ?
>

p1.equals(p2)
the result is false

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



requestfactory security problem

2011-08-17 Thread July
hello all:
  I'm using GWT 2.3 requestfactory+ GAE 1.5 user authentication for my app, 
it only allows authenticated people to access, implemented as below:
if the user has not login to Google, redirect him the Google login screen.
if yes, check if he has the right to access. if yes display the web UI to 
user. or display error screen.

My question is:
1. Do i have to check every gwtrequest to ensure the security? i mean, use a 
filter to check every gwtrequest to see if the user has the right to access. 
if so, the application is more secure but have to process much more extra 
payloads.
2. If i just use the login authentication but does not check every gwt 
requests after that, is there risk that un-authorized people may be able to 
access my app? Does requestfactory automatically have ways to protected 
this?

Thanks.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/h0Nx1ecMf2sJ.
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.