Re: Implementing Cut, Copy & Paste in a page having 70 odd widgets

2011-08-12 Thread Karthik Vemuri
Yup... Thanks.. That's what I was thinking too... I should use the Blur handler 
now since we no longer use listeners

Regards,
Karthik Vemuri

On Aug 12, 2011, at 6:25 PM, mP  wrote:

> Suggestion: what about registering a lost focus listener that sets
> some global variable when it loses fcous. Your cut/copy/paste buttons
> could thencheck the glboal to figure out the last target the user
> actually had.
> 
> On Aug 13, 7:40 am, Vemuri Karthik  wrote:
>> Hi,
>> 
>> I am trying to implement the cut, copy and paste functionality for a
>> page that has around 70 widgets including text boxes, list boxes,
>> labels, containers, panels and so on. The cut, copy and paste buttons
>> are part of these. When a User selects text in some text box in the
>> page and clicks on copy, the text box loses focus and the copy button
>> now has it. I need the text to call a method that has some Javascript
>> call in it like:
>> 
>> $wnd.window.clipboardData.setData("Text",text);
>> 
>> In order for me to do that I need text from the text box and because
>> the copy button now has it, I do not know where it has been selected
>> from.
>> 
>> Can anyone let me know if they have done anything similar before using
>> GWT?
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to 
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/google-web-toolkit?hl=en.
> 

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



DataGrid GWT 2.4 RC1

2011-08-12 Thread News Club
Hi:

I want to try the DataGrid in 2.4 RC1 release. I took the CellTable example
and slightly modified it to use DataGrid. I could compile fine but nothing
gets displayed in the browser and no exceptions. I don't know why it is not
working.

Appreciate your help. Thanks.

NR

public class DataGridExample implements EntryPoint {
  private static class Contact {
private final String address;
private final Date birthday;
private final String name;

public Contact(String name, Date birthday, String address) {
  this.name = name;
  this.birthday = birthday;
  this.address = address;
}
  }

  private static final List CONTACTS = Arrays.asList(
  new Contact("John", new Date(80, 4, 12), "123 Fourth Avenue"),
  new Contact("Joe", new Date(85, 2, 22), "22 Lance Ln"),
  new Contact("George", new Date(46, 6, 6), "1600 Pennsylvania
Avenue"));

  public void onModuleLoad() {
DataGrid table = new DataGrid();
table.setKeyboardSelectionPolicy(KeyboardSelectionPolicy.ENABLED);

TextColumn nameColumn = new TextColumn() {
  @Override
  public String getValue(Contact object) {
return object.name;
  }
};
table.addColumn(nameColumn, "Name");

DateCell dateCell = new DateCell();
Column dateColumn = new Column(dateCell) {
  @Override
  public Date getValue(Contact object) {
return object.birthday;
  }
};
table.addColumn(dateColumn, "Birthday");

TextColumn addressColumn = new TextColumn() {
  @Override
  public String getValue(Contact object) {
return object.address;
  }
};
table.addColumn(addressColumn, "Address");

final SingleSelectionModel selectionModel = new
SingleSelectionModel();
table.setSelectionModel(selectionModel);
selectionModel.addSelectionChangeHandler(new
SelectionChangeEvent.Handler() {
  public void onSelectionChange(SelectionChangeEvent event) {
Contact selected = selectionModel.getSelectedObject();
if (selected != null) {
  Window.alert("You selected: " + selected.name);
}
  }
});

table.setRowCount(CONTACTS.size(), true);

table.setRowData(0, CONTACTS);

RootPanel.get().add(table);
  }
}

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



Detect *only* when browser is closing (WindowCloseListener)

2011-08-12 Thread Jose María Zaragoza

Hi:

I would like to detect *only* when browser is closing

About WindowCloseListener documentation, events are fired after the
browser window closes or navigates to a different site.
And I dont want to do anything when go to another site

How I can to know this ?

Thanks and regards

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-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: Implementing Cut, Copy & Paste in a page having 70 odd widgets

2011-08-12 Thread mP
Suggestion: what about registering a lost focus listener that sets
some global variable when it loses fcous. Your cut/copy/paste buttons
could thencheck the glboal to figure out the last target the user
actually had.

On Aug 13, 7:40 am, Vemuri Karthik  wrote:
> Hi,
>
> I am trying to implement the cut, copy and paste functionality for a
> page that has around 70 widgets including text boxes, list boxes,
> labels, containers, panels and so on. The cut, copy and paste buttons
> are part of these. When a User selects text in some text box in the
> page and clicks on copy, the text box loses focus and the copy button
> now has it. I need the text to call a method that has some Javascript
> call in it like:
>
> $wnd.window.clipboardData.setData("Text",text);
>
> In order for me to do that I need text from the text box and because
> the copy button now has it, I do not know where it has been selected
> from.
>
> Can anyone let me know if they have done anything similar before using
> GWT?

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



Re: GWT meets iOS: Gwt4Titanium Mobile 1.0 coming soon

2011-08-12 Thread Kathiravan Tamilvanan
Do you have a beta. Would love to give it a try :-)

-- 
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/-/ZkK5XGA1zAMJ.
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: TreeItem child widgets do not have onAttach called

2011-08-12 Thread lkcl


On Aug 11, 12:34 am, Jim Douglas  wrote:
> Have you considered using this version of TreeItem, which takes a
> Widget?
>
> http://google-web-toolkit.googlecode.com/svn/javadoc/2.3/com/google/g...)
> http://google-web-toolkit.googlecode.com/svn/javadoc/2.3/com/google/g...)

 okay.  right.  i didn't notice the 2nd link was to TreeItem.setWidget
(groups.google.com hid the text *sigh*).

 that calls tree.adopt.  i just went through the code, down to
Tree.java.  Tree.adopt calls setWidget (the base version).  setWidget
then calls onAttach.

 soo... actually... yeah, that might do the trick.  it's... klunky (as
in, it's non-standard behaviour) and thus is going to catch users
out.  i.e. if you _don't_ call that setWidget function, you're
stuffed.

 let me investigate further ok?

 l.

-- 
You received 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: TreeItem child widgets do not have onAttach called

2011-08-12 Thread lkcl


On Aug 11, 12:34 am, Jim Douglas  wrote:
> Have you considered using this version of TreeItem, which takes a
> Widget?
>
> http://google-web-toolkit.googlecode.com/svn/javadoc/2.3/com/google/g...)http://google-web-toolkit.googlecode.com/svn/javadoc/2.3/com/google/g...)

 that's the exact [equivalent] class being used, and it's the exact
same class [equivalent] that we've made a 6-line patch to, in order to
fix the bug that has been found [in the exact corresponding equivalent
pyjamas codebase, pyjamas/library/gwt/ui/TreeItem.py].

> The TreeItem isn't itself a Widget, but it can contain a Widget, and
> that contained Widget (think of it as a tree item renderer) can manage
> its own events.

 that's the point, jim: it *doesn't* manage its own events, because
onAttach is never called on the widgets that are added to the
TreeItem.

 thus, anything that's added to TreeItem is completely isolated, as
far as events are concerned.  no onClick, no onDoubleClick, no
onMouseMove, no onMouseUp - nothing.

 i apologise - i realise that it's quite difficult to appreciate that
the pyjamas codebase is the same - functionally - as GWT, to the point
where it's possible to refer developers to the GWT online
documentation rather than have to write our own.

 it's virtually identical to that of GWT, so much so that we can
actually use language translator tools (automatic and semi-automatic)
to port GWT java to pyjamas python.

 but, yes, you've correctly identified the gwt UI class that will have
the exact same bug that was discovered by a pyjamas user.

 and, therefore, _because_ the code is effectively identical, there is
the exact same bug in GWT.

 what the user did was to take the code for onAttach and onDetach in
pyjamas/library/gwt/ui/Panel.py and cut/paste it into TreeItem.py.

 thus, correspondingly, to fix this bug in GWT, you (GWT developers)
need to take the exact same code that is in the gwt/ui/Panel.java
"onAttach" and "onDetach" functions, cut/paste it into gwt/ui/
TreeItem.java and the bug is fixed.

@begin namespace GWT's client/ui widgets on all widgets below
 but first, you need to realise that there _is_ a bug :)  for that,
you'll need to look at the example test-case provided by the pyjamas
user, and port it to GWT.  it's actually very simple: add a CheckBox
to a TreeItem; add the TreeItem to a Tree; add the Tree to a
RootPanel.  add a click handler to the CheckBox, which prints "hello
world" or something.
@end namespace

 click on the checkbox. you'll find that absolutely *nothing* happens.

 that's the bug.

 does that make sense?

 l.

-- 
You received 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: Is it ever possible for an asynchronous service method's callback to get called without yielding to the browser's event loop?

2011-08-12 Thread Karthik Reddy
See the example under "*Non-Blocking / Asynchronous:* " and it gives a clear 
example addressing Tad's question:

http://quickleft.com/blog/142

-- 
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/-/0bs5XTEIFt4J.
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.



Implementing Cut, Copy & Paste in a page having 70 odd widgets

2011-08-12 Thread Vemuri Karthik
Hi,

I am trying to implement the cut, copy and paste functionality for a
page that has around 70 widgets including text boxes, list boxes,
labels, containers, panels and so on. The cut, copy and paste buttons
are part of these. When a User selects text in some text box in the
page and clicks on copy, the text box loses focus and the copy button
now has it. I need the text to call a method that has some Javascript
call in it like:

$wnd.window.clipboardData.setData("Text",text);

In order for me to do that I need text from the text box and because
the copy button now has it, I do not know where it has been selected
from.

Can anyone let me know if they have done anything similar before using
GWT?

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



Re: Image from resource in SafeHtmlTemplate

2011-08-12 Thread Micah Caldwell
For the curious, this is what is returned by Image.getUrl():

data:image/png;base64,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

Image from resource in SafeHtmlTemplate

2011-08-12 Thread Micah Caldwell
I have an image from a ClientBundle resource:
final String myImageUrl = new 
Image(Resources.sSingleton.GetMyImage()).getUrl();

I also have a SafeHtmlTemplates interface:
public interface MyTemplates extends SafeHtmlTemplates {
@Template("")
SafeHtml GenerateCellHtml(String imageUrl);
}

When I call MyTemplates.GenerateCellHtml an exception is thrown because the 
URL output by Image.getUrl(), when the image comes from a resource, does not 
have one of the supported protocols (http, https, ftp, etc.).

Is it possible to use SafeHtmlTemplates with an Image sourced from a 
ClientBundle?  Am I stuck manually building the HTML string in the middle of 
my Java code using SafeHTMLBuilder?

-- 
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/-/XZnb_u4238EJ.
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 Designer not supported GXT API's

2011-08-12 Thread Eric Clayberg
The only GWT Designer GXT docs are 
here.
 
Note that GXT is only supported for GWT Java classes and not UiBinder files.

If you are having a problem, you should post a complete test case and 
associated stack traces and/or log files.

-- 
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/-/mtVIJev7l1cJ.
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 Designer: some panels showing up blank

2011-08-12 Thread Eric Clayberg
There are two issues here. The first appears to be a issue with WebKit not 
properly rendering CaptionPanels all the time. GWT Designer uses WebKit for 
all widget rendering and simply shows you what WebKit generates (for better 
or worse). We are looking in to possible work arounds as we have had to work 
around numerous WebKit problems like this in the past.

As to the second problem with the VerticalPanel, I tried your examples and 
it worked just fine on my end. I suspect this may be a known issue with 
physical display size as described 
here. How 
big is your physical display? We usually see the sort of 
truncation/clipping you describe when part of the panel is outside the 
bounds that would fit on the physical display. This is a know OS limitation. 
Using a larger display (either physical or virtual) can solve the problem. 
An even better approach would be to break the panel up into smaller sub 
panels that are each small enough to fit within the physical screen 
boundaries.

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



CellTable

2011-08-12 Thread jose felix estevez
good friends, I am trying to put together a fileupdater celltable with
an idea.

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



Singleton instance in RPC AsynCall with two or more RPCs

2011-08-12 Thread Miguel Ruiz Rodriguez
Hi everybody,

I´m using a solution that use a Singleton pattern to create and
AsynCall class with the followin code.

public interface GreetingServiceAsync
{


/**
 * Utility class to get the RPC Async interface from client-side
code
 */
public static final class Util
{
private static GreetingServiceAsync instance;

public static final GreetingServiceAsync getInstance()
{
if ( instance == null )
{
instance = (GreetingServiceAsync)
GWT.create( GreetingService.class );
ServiceDefTarget target = (ServiceDefTarget) instance;
target.setServiceEntryPoint( GWT.getModuleBaseURL() +
"greet" );
}
return instance;
}

private Util()
{
// Utility class should not be instanciated
}
}

public void greetSongMostPopular(Integer size,
AsyncCallback> asyncCallback);


}

So I had to add a new atribute with another Service
(GreetingLoginServiceAsync), so what could I do? Must I set an input
to getInstanceMethod with the name of the rpc service that I want
create? Are there any best alternative to do this?

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.



Re: GWT Compiler Errors

2011-08-12 Thread Dennis Haupt
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

drive full?

Am 12.08.2011 20:38, schrieb Magno Machado:
> Isn't there any other process that may be blocking the folder/files?
> 
> On Fri, Aug 12, 2011 at 1:53 PM, Matthias Rauer 
> mailto:rauer1...@googlemail.com>> wrote:
> 
> Yes, you are right,there are some classes you cannot use on client 
> side. But in this case I ll get another compile exception.
> 
> The other team member haven't these problems, that I have :-( They
> use Windows 7 64-bit.
> 
> 
> On 11 Aug., 15:44, Juan Pablo Gardella  > wrote:
>> At first, I think you can't use File classes in GWT (client side).
>> 
>> 2011/8/11 Matthias Rauer  >> Hello,
>> 
>>> I am getting compile errors. Looks like caching or synchronize 
>>> problems. [java] Caused by: javax.imageio.IIOException: Can't
>>> create cache file! [java] at 
>>> javax.imageio.ImageIO.createImageOutputStream(ImageIO.java:397) 
>>> [java] at javax.imageio.ImageIO.write(ImageIO.java:1558) 
>>> [java] ... 35 more [java] Caused by:
>>> java.io.FileNotFoundException: Z: \imageio2197704682044189508.tmp
>>> (Der Prozess kann nicht auf die
> Datei
>>> zugreifen, da sie von einem anderen Prozess verwendet wird) 
>>> [java] at java.io.RandomAccessFile.open(Native Method) [java]
>>> at
> java.io.RandomAccessFile.(RandomAccessFile.java:
>>> 212) [java] at
>> 
>>> 
> javax.imageio.stream.FileCacheImageOutputStream.(FileCacheImageOutput­Stream.java:
>
> 
>> 73)
>>> [java] at
>> 
>>> 
> com.sun.imageio.spi.OutputStreamImageOutputStreamSpi.createOutputStreamInst­ance(OutputStreamImageOutputStreamSpi.java:
>
> 
>> 50)
>>> [java] at 
>>> javax.imageio.ImageIO.createImageOutputStream(ImageIO.java:393) 
>>> [java] ... 36 more
>> 
>>> ---
>> 
>>> C:\...\build\build.xml:459: IOException in
> C:\...\build\tmp\web\WEB-INF
>>> \config\coreReportInvoiceConfig.xml -
> java.io.FileNotFoundException:C:
>>> \...build\tmp\web\WEB-INF\config\rep1473609419171320889.tmp (Der 
>>> Prozess kann nicht auf die Datei zugreifen, da sie von einem
>>> anderen Prozess verwendet wird) in english: process cannot access
>>> file, another process uses
> this file
>> 
>>> --- same exception again... but different file
>> 
>>> [java] Caused by: javax.imageio.IIOException: Can't create cache 
>>> file! [java] at 
>>> javax.imageio.ImageIO.createImageOutputStream(ImageIO.java:397) 
>>> [java] at javax.imageio.ImageIO.write(ImageIO.java:1558) 
>>> [java] ... 35 more [java] Caused by:
>>> java.io.FileNotFoundException: Z: \imageio5137244568657246113.tmp
>>> (Der Prozess kann nicht auf die
> Datei
>>> zugreifen, da sie von einem anderen Prozess verwendet wird) 
>>> [java] at java.io.RandomAccessFile.open(Native Method) [java]
>>> at
> java.io.RandomAccessFile.(RandomAccessFile.java:
>>> 212) [java] at
>> 
>>> 
> javax.imageio.stream.FileCacheImageOutputStream.(FileCacheImageOutput­Stream.java:
>
> 
>> 73)
>>> [java] at
>> 
>>> 
> com.sun.imageio.spi.OutputStreamImageOutputStreamSpi.createOutputStreamInst­ance(OutputStreamImageOutputStreamSpi.java:
>
> 
>> 50)
>>> [java] at 
>>> javax.imageio.ImageIO.createImageOutputStream(ImageIO.java:393) 
>>> [java] ... 36 more ---
>> 
>>> If I compile again and again, I got different exceptions, like
> these:
>> 
>>> I already changed the extra and workDir to an RamDisk, deleted
>>> these directories before compiling, Deleted these directories
>>> before the build, but got same errors again. I also changed
>>> number of
> workers to
>>> 1.
>> 
>>> Any suggestions?
>> 
>>> Greetings, Matthias
>> 
>>> -- You received 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.
> 
> 
> 
> 
> -- 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 

Re: GWT Compiler Errors

2011-08-12 Thread Magno Machado
Isn't there any other process that may be blocking the folder/files?

On Fri, Aug 12, 2011 at 1:53 PM, Matthias Rauer wrote:

> Yes, you are right,there are some classes you cannot use on client
> side. But in this case I ll get another compile exception.
>
> The other team member haven't these problems, that I have :-( They use
> Windows 7 64-bit.
>
>
> On 11 Aug., 15:44, Juan Pablo Gardella 
> wrote:
> > At first, I think you can't use File classes in GWT (client side).
> >
> > 2011/8/11 Matthias Rauer > Hello,
> >
> > > I am getting compile errors. Looks like caching or synchronize
> > > problems.
> > >[java] Caused by: javax.imageio.IIOException: Can't create cache
> > > file!
> > > [java] at
> > > javax.imageio.ImageIO.createImageOutputStream(ImageIO.java:397)
> > > [java] at javax.imageio.ImageIO.write(ImageIO.java:1558)
> > > [java] ... 35 more
> > > [java] Caused by: java.io.FileNotFoundException: Z:
> > > \imageio2197704682044189508.tmp (Der Prozess kann nicht auf die Datei
> > > zugreifen, da sie von einem anderen Prozess verwendet wird)
> > > [java] at java.io.RandomAccessFile.open(Native Method)
> > > [java] at
> java.io.RandomAccessFile.(RandomAccessFile.java:
> > > 212)
> > > [java] at
> >
> > >
> javax.imageio.stream.FileCacheImageOutputStream.(FileCacheImageOutput­Stream.java:
> > > 73)
> > > [java] at
> >
> > >
> com.sun.imageio.spi.OutputStreamImageOutputStreamSpi.createOutputStreamInst­ance(OutputStreamImageOutputStreamSpi.java:
> > > 50)
> > > [java] at
> > > javax.imageio.ImageIO.createImageOutputStream(ImageIO.java:393)
> > > [java] ... 36 more
> >
> > > ---
> >
> > > C:\...\build\build.xml:459: IOException in C:\...\build\tmp\web\WEB-INF
> > > \config\coreReportInvoiceConfig.xml - java.io.FileNotFoundException:C:
> > > \...build\tmp\web\WEB-INF\config\rep1473609419171320889.tmp (Der
> > > Prozess kann nicht auf die Datei zugreifen, da sie von einem anderen
> > > Prozess verwendet wird)
> > > in english: process cannot access file, another process uses this file
> >
> > > ---
> > > same exception again... but different file
> >
> > > [java] Caused by: javax.imageio.IIOException: Can't create cache
> > > file!
> > > [java] at
> > > javax.imageio.ImageIO.createImageOutputStream(ImageIO.java:397)
> > > [java] at javax.imageio.ImageIO.write(ImageIO.java:1558)
> > > [java] ... 35 more
> > > [java] Caused by: java.io.FileNotFoundException: Z:
> > > \imageio5137244568657246113.tmp (Der Prozess kann nicht auf die Datei
> > > zugreifen, da sie von einem anderen Prozess verwendet wird)
> > > [java] at java.io.RandomAccessFile.open(Native Method)
> > > [java] at
> java.io.RandomAccessFile.(RandomAccessFile.java:
> > > 212)
> > > [java] at
> >
> > >
> javax.imageio.stream.FileCacheImageOutputStream.(FileCacheImageOutput­Stream.java:
> > > 73)
> > > [java] at
> >
> > >
> com.sun.imageio.spi.OutputStreamImageOutputStreamSpi.createOutputStreamInst­ance(OutputStreamImageOutputStreamSpi.java:
> > > 50)
> > > [java] at
> > > javax.imageio.ImageIO.createImageOutputStream(ImageIO.java:393)
> > > [java] ... 36 more
> > > ---
> >
> > > If I compile again and again, I got different exceptions, like these:
> >
> > > I already changed the extra and workDir to an RamDisk, deleted these
> > > directories before compiling, Deleted these directories before the
> > > build, but got same errors again. I also changed number of workers to
> > > 1.
> >
> > > Any suggestions?
> >
> > > Greetings,
> > > Matthias
> >
> > > --
> > > You received 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.
>
>


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



how to access the "real" session?

2011-08-12 Thread Dennis Haupt
i tried to save an attribute via an async servlet call to get it later from
another page. i did it like this:

class x extends remoteserviceservlet
...
final Object attribute =
getThreadLocalRequest().getSession().getAttribute(variableName);


but this doesn't work. the result seems to depend on a mysterious something.
i suspect it being the thread itself. if i store something on page a, it's
not visible in page b's session. if i return to page a, it's there again.
sometimes. how can i save attributes in a way that stores them in the "real
session" across all pages?

is the session i get via getThreadLocalRequest() depending in the current
thread? if yes how to get the actual session?

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

2011-08-12 Thread Matthias Rauer
Yes, you are right,there are some classes you cannot use on client
side. But in this case I ll get another compile exception.

The other team member haven't these problems, that I have :-( They use
Windows 7 64-bit.


On 11 Aug., 15:44, Juan Pablo Gardella 
wrote:
> At first, I think you can't use File classes in GWT (client side).
>
> 2011/8/11 Matthias Rauer > Hello,
>
> > I am getting compile errors. Looks like caching or synchronize
> > problems.
> >    [java] Caused by: javax.imageio.IIOException: Can't create cache
> > file!
> >     [java]     at
> > javax.imageio.ImageIO.createImageOutputStream(ImageIO.java:397)
> >     [java]     at javax.imageio.ImageIO.write(ImageIO.java:1558)
> >     [java]     ... 35 more
> >     [java] Caused by: java.io.FileNotFoundException: Z:
> > \imageio2197704682044189508.tmp (Der Prozess kann nicht auf die Datei
> > zugreifen, da sie von einem anderen Prozess verwendet wird)
> >     [java]     at java.io.RandomAccessFile.open(Native Method)
> >     [java]     at java.io.RandomAccessFile.(RandomAccessFile.java:
> > 212)
> >     [java]     at
>
> > javax.imageio.stream.FileCacheImageOutputStream.(FileCacheImageOutput­Stream.java:
> > 73)
> >     [java]     at
>
> > com.sun.imageio.spi.OutputStreamImageOutputStreamSpi.createOutputStreamInst­ance(OutputStreamImageOutputStreamSpi.java:
> > 50)
> >     [java]     at
> > javax.imageio.ImageIO.createImageOutputStream(ImageIO.java:393)
> >     [java]     ... 36 more
>
> > ---
>
> > C:\...\build\build.xml:459: IOException in C:\...\build\tmp\web\WEB-INF
> > \config\coreReportInvoiceConfig.xml - java.io.FileNotFoundException:C:
> > \...build\tmp\web\WEB-INF\config\rep1473609419171320889.tmp (Der
> > Prozess kann nicht auf die Datei zugreifen, da sie von einem anderen
> > Prozess verwendet wird)
> > in english: process cannot access file, another process uses this file
>
> > ---
> > same exception again... but different file
>
> >     [java] Caused by: javax.imageio.IIOException: Can't create cache
> > file!
> >     [java]     at
> > javax.imageio.ImageIO.createImageOutputStream(ImageIO.java:397)
> >     [java]     at javax.imageio.ImageIO.write(ImageIO.java:1558)
> >     [java]     ... 35 more
> >     [java] Caused by: java.io.FileNotFoundException: Z:
> > \imageio5137244568657246113.tmp (Der Prozess kann nicht auf die Datei
> > zugreifen, da sie von einem anderen Prozess verwendet wird)
> >     [java]     at java.io.RandomAccessFile.open(Native Method)
> >     [java]     at java.io.RandomAccessFile.(RandomAccessFile.java:
> > 212)
> >     [java]     at
>
> > javax.imageio.stream.FileCacheImageOutputStream.(FileCacheImageOutput­Stream.java:
> > 73)
> >     [java]     at
>
> > com.sun.imageio.spi.OutputStreamImageOutputStreamSpi.createOutputStreamInst­ance(OutputStreamImageOutputStreamSpi.java:
> > 50)
> >     [java]     at
> > javax.imageio.ImageIO.createImageOutputStream(ImageIO.java:393)
> >     [java]     ... 36 more
> > ---
>
> > If I compile again and again, I got different exceptions, like these:
>
> > I already changed the extra and workDir to an RamDisk, deleted these
> > directories before compiling, Deleted these directories before the
> > build, but got same errors again. I also changed number of workers to
> > 1.
>
> > Any suggestions?
>
> > Greetings,
> > Matthias
>
> > --
> > You received 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: Load Testing Tool for GWT

2011-08-12 Thread Jeff Chimene
On 08/12/2011 07:48 AM, Benoit Cantais wrote:
> Hi,
> 
> Is there any easy way to make parameterizable load test for GWT ? I
> tried to use JMeter and Grinder. But when i get the generated script
> of my test, both of these tools gave me an unreadable request. The
> scripts works fine but it doesn't appear to be easily reusable with
> different parameters.
> 
> Result with grinder :
> 
> /* Understandable code */
> 
> result = request101.POST('URL_path',
>   '5|0|15|http://URLPATH/|AAE01B9BA413A1202D73415F6358B8FA|
> net.customware.gwt.dispatch.client.service.DispatchService|execute|
> net.customware.gwt.dispatch.shared.Action|...
> 962170901|...|2|',
>   ( NVPair('Content-Type', 'text/x-gwt-rpc; charset=utf-8'), ))
> 
> /* Understandable code */
> 
> I am not able to find how to put the variables in this result.

Any language that has a nice regex parser could take this string apart
and reassemble it with the contents of a .csv

I'd put my marker on Perl, but when you know that language. every
problem looks like a nail.


> 
> For example, i am actually trying to test a login page.
> 
> I need two parameters : The login and the password. I would like to
> make load test with login/password coming from a .csv (for example)
> file, to test what happen when 100 people try to login in
> simultaneously.
> 
> 
> Thank you for your help. Sorry for my english.
> 
> Benoit
> 
> 

-- 
You received 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: Widget Calendario

2011-08-12 Thread Juan Pablo Gardella
http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/user/datepicker/client/DatePicker.html

2011/8/12 jose felix estevez 

> sorry but I have responded in Spanish, in this group.
>
>
> 2011/8/12 Hilario Perez Corona 
>
>> Please, use english on this group.
>>
>> --
>> 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/-/DWodS_-Xr_oJ.
>>
>> 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.
>>
>
>
>
> --
> Jose F.Estevez H.
> T.S.U. en Analisis y Diseño de Sistemas
> Consultor Staff I
> Tecnology Consulting Solutions - TCS
>
>
>  --
> You received 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: Widget Calendario

2011-08-12 Thread jose felix estevez
sorry but I have responded in Spanish, in this group.

2011/8/12 Hilario Perez Corona 

> Please, use english on this group.
>
> --
> 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/-/DWodS_-Xr_oJ.
>
> 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.
>



-- 
Jose F.Estevez H.
T.S.U. en Analisis y Diseño de Sistemas
Consultor Staff I
Tecnology Consulting Solutions - TCS

-- 
You received 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: Widget Calendario

2011-08-12 Thread Hilario Perez Corona
Please, use english on this group.

-- 
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/-/DWodS_-Xr_oJ.
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: Standalone zip download of GWT Designer

2011-08-12 Thread DMcC
Does anyone have the latest standalone links?

On Jul 6, 3:23 am, Eric Clayberg - Instantiations 
wrote:
> The problem is that you are looking at an old post about a prior
> release.
>
> The current release is v2.3.2 rather than v2.3.1.
>
> On Jul 5, 1:44 am, Eckhard Rimkus 
> wrote:
>
>
>
>
>
>
>
> > Dear Eric
>
> > when trying to download thiszip-File, I receive only an error
> > message. What is my problem?
>
> > Best regards
>
> > Eckhard
>
> > On 16 Jun., 22:47, Eric Clayberg  wrote:
>
> > > For Eclipse 3.6...
>
> > >http://dl.google.com/eclipse/inst/d2gwt/latest/3.6/GWTDesigner_v2.3.1...
>
> > > On Jun 14, 5:29 pm, beluga  wrote:
>
> > > > Hi -
>
> > > > I don't get through the corporate firewall with eclipse updater but I
> > > > can transfer azipfile if I get hold of it. Does anyone know how to
> > > > get hold of theGWTDesignerstandalonezip? Ideally the beta, since
> > > > I'm struggling with the type not found bug in the currentGWTrelease.
>
> > > > 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.



Widget Calendario

2011-08-12 Thread jose felix estevez
buenas amigo estoy en busqueda de algun widget  que me cumpla con la
funcion de desplegar un calendario con la fecha.

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



Load Testing Tool for GWT

2011-08-12 Thread Benoit Cantais
Hi,

Is there any easy way to make parameterizable load test for GWT ? I
tried to use JMeter and Grinder. But when i get the generated script
of my test, both of these tools gave me an unreadable request. The
scripts works fine but it doesn't appear to be easily reusable with
different parameters.

Result with grinder :

/* Understandable code */

result = request101.POST('URL_path',
  '5|0|15|http://URLPATH/|AAE01B9BA413A1202D73415F6358B8FA|
net.customware.gwt.dispatch.client.service.DispatchService|execute|
net.customware.gwt.dispatch.shared.Action|...
962170901|...|2|',
  ( NVPair('Content-Type', 'text/x-gwt-rpc; charset=utf-8'), ))

/* Understandable code */

I am not able to find how to put the variables in this result.

For example, i am actually trying to test a login page.

I need two parameters : The login and the password. I would like to
make load test with login/password coming from a .csv (for example)
file, to test what happen when 100 people try to login in
simultaneously.


Thank you for your help. Sorry for my english.

Benoit


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



Updating a celllist from a JSONP call

2011-08-12 Thread Paul Browne
Hi,

I have have a celllist in a UIBinder,  when I use JSON to get some
data from a remote server it does not seem to update the celllist with
the data that I have set in cellList.setRowData until I start moving
the mouse for a bit (sometimes not at all if i dont move the mouse for
about 20 seconds), This problem does not seems to happen if I get the
data any other way i.e. load it from code rather that remote server.

I have tried to cut the code down as small as possiable, (statusText
is a label on screen).
I can see that statusText stays "Set Data" so I know the results have
been returned back, but the screen does not update.


-
initWidget(uiBinder.createAndBindUi(this));

statusText.setText("Getting results");

TaskFactory taskFactory = new TaskFactory();
taskFactory.GetTasks(new AsyncCallback>() {

@Override
public void onFailure(Throwable caught) {}

@Override
public void onSuccess(ArrayList result) {
cellList.setRowData(result);
statusText.setText("Set Data");
}});



Taskfactory in the code is based on the JSONP code that is the main
GWT page, I can put the debugger on the line and see that the array
returned contains all the data I expect

Any ideas?

Cheers

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.



GWT Designer not supported GXT API's

2011-08-12 Thread Ramaprasad Reddy
 Hi,

I have used Eclipse as a IDE (3.4.2) to develop the GWT Application
using GWT(2.2.0) and GXT(2.2.4) libraries and installed GWT Designer
plug-in in eclipse IDE , the designer plug-in installed successfully.
I have tried to open GWT Entry point class (onModuleLoad) in the
designer view but its closing eclipse IDE instead of opening entry
point class in the designer view. I imported GXT LayoutContainer class
in GWT Entry point class. As per the product documentation GWT
designer supports GXT API's
Could you please let me know if you have any documents which describes
how to design pages with GXT widgets using GWT designer.

Your help is much appreciated.

Eagerly waiting for your reply.

Thanks
Ram

-- 
You received 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 meets iOS: Gwt4Titanium Mobile 1.0 coming soon

2011-08-12 Thread ahmet kara
That is great Alain!

Creating mobile apps for both platforms just with one way and best way
with java. This is what I was looking for.

I hope there will be sample projects with the release :). I am looking
forward to see it.

On 12 Ağustos, 12:28, leandro borbosa 
wrote:
> Woah ! This is mind blowing! Really impressive stuff going on the group here
> latelly.
> Google gotta love what people are cming up with :)
>
> I was looikng for a way to get around Objective C. This sounds  like a good
> solution
> When are you going to release ?
>
> 2011/8/12 Alain Ekambi 
>
>
>
>
>
>
>
> > Hello folks,
>
> > The next release of our Gwt4 products familly in coming soon.
> > We are exited to annouce you the addition  of a new GWT module called  
> > *Gwt4Titanium
> > Mobile*.
> > This module leverages the  Appceletator titanium platform and enables  to
> > write *native mobile applications for iOS and Android*
>
> > This means that using a GWT API one will be able to write on code and
> > deploy to Android and iOs.
> > Below is a sample code of the API
>
> > /**
> >  * Entry point classes define onModuleLoad().
> >  */
> > public class TiMobile implements EntryPoint {
>
> >   public void onModuleLoad() {
>
> >     AlertDialog alertDialog = UI.createAlertDialog();
>
> >     alterDialog.setTitle("Gwt4Titanium Mobile 1.0");
>
> >     alterDialog.setMessage("Emitron says: Hello, World !");
>
> >     JsArrayString buttons = JsArrayString.createArray().cast();
>
> >     buttons.push("OK");
>
> >     alertDialog.setButtonNames(buttons);
>
> >     alertDialog .show();
>
> >   }
> > }
>
> > and attached  is the result on iPhone, Android and iPad
>
> > [image: ti.png]
>
> > We are really exited about this new capabilities and looking forward  to
> > hearing your inputs.
>
> > The gwt4 Team
> > --
>
> > GWT API for  non Java based platforms
> >http://code.google.com/p/gwt4air/
> >http://www.gwt4air.appspot.com/
>
> >  --
> > You received this message because you are subscribed to the Google Groups
> > "Google Web Toolkit" group.
> > To post to this group, send email to google-web-toolkit@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscr...@googlegroups.com.
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.
>
>
>
>  ti.png
> 265KGörüntüleİndir

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



Drop files onto Web Page

2011-08-12 Thread Sean
I've seen a few topics on this, but most are a few years old at this point. 
I was wondering if there are any ways to drop a file onto the webpage from a 
folder (Windows in this case) and have it upload or prepare to upload much 
like how GMail does it. I've seen a few ways to "fake" it, I was wondering 
if in the past couple of years if it became easier?

-- 
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/-/SpqdRSR1RKAJ.
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: Should DecoratorPanel implement ProvidesResize?

2011-08-12 Thread Francis
Try this 
DecoratorLayoutPanelclass

-- 
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/-/kzdRQg0ePV0J.
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: CellTree and SelectionModel

2011-08-12 Thread tom

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/discussion

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 view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/5OUp3p9LB1cJ.
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: appengine connected android project wizard example

2011-08-12 Thread RS
At last.

The version of beta eclipse plugin available now (late july - early
aug 2011) hasn't worked independently.

Workaround is to install 2.3 plugin and then install 2.4 beta plugin
on eclipse indigo (3.7) not helios.
After installing 2.4beta on top on 2.3, it would have auto updated
what it needs to. Avoid the temptation to point to the beta plugin in
eclipse preferences. Also don't uninstall 2.3 plugin.

With this workaround, the appengine connected android code generated
by the wizard works out of the box.

On Aug 10, 12:42 pm, RS  wrote:
> in the example problem isn't at c2dm but while registering with the
> appengine
> (C2DMReceiver.java gets success but DeviceRegistrar.java fails to pass
> the info)
>
> On Aug 8, 12:11 pm, RS  wrote:
>
>
>
>
>
>
>
> > Could somebody fromC2DMteam throw some light?
> > DoesC2DMassume that everybody uses the new android market client app
> > (vending.apk)?
>
> > The new market (which has movies etc) is so far available within the
> > US only.
> > If this is the reason, could they make sure thatc2dmand the
> > 'appengine connected android app' skeletal example work with the
> > earlier version of market too?
>
> > On Aug 7, 3:19 pm, RS  wrote:
>
> > > Just many more fresh installs and fresh trials.
> > > Re-re-re requestedC2DMfor the same id and same/different package.
> > > (apparently package name filled in that form doesn't really matter)
>
> > > Got reply of acceptance. Waited few more days.
>
> > > No change.
> > > Registration from android device invariably fails.
>
> > > Waiting for official reply (thatC2DMserver has been set right) or
> > > GAE plugin update.
>
> > > Also tried with an independently written code.
>
> > > On Aug 7, 8:06 am, Marcus Franzen  wrote:
>
> > > > I have got the same problem, did you get it working?
>
> > > > On 5 Aug., 00:48, RS  wrote:
>
> > > > > GWT plugin for eclipse'sappengineconnectedandroidprojectwizard's
> > > > > output example used to work, doesn't work for a freshprojectany
> > > > > more.
>
> > > > > Well things do get generated and compile butC2DMregistration fails
> > > > > in theandroiddevice/emulator irrespective of live or local server.
>
> > > > > Have spent good time with different machines and fresh eclipse
> > > > > installations.
>
> > > > > Any workarounds? Any suggestions to go back to the old state where it
> > > > > used to work?
>
> > > > > Regards.
> > > > > RS

-- 
You received 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: file upload once again

2011-08-12 Thread Nick Siderakis
take a look at the code in http://code.google.com/p/upload4gwt/, its not a 
polished library (yet), but its still usable.  also the links might provide 
some useful resources.

hope it helps :D

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



Do proxy objects necessarily reduce client side entity manipulation to functional programming?

2011-08-12 Thread Nick Siderakis
I want to load a bunch of data to the client, graph it (via Google 
Visualization API), have the user manipulate it (client side only), and 
regraph it...and so on.

I really like the selling points of requestfactory, but I find my self 
between a rock and a hard place.

**When I was using POJOs for domain objects (with GWT-RPC) I could get the 
data on to the client and manipulate it arbitrarily (using 
its mutator methods, which may contain complex logic) and then regraph it. 
 The manipulated data doesn't need to be saved. 

With requestfactory I only see two options:

1. Manipulate the domain proxies on the client functionally, which might 
duplicate behavior that already exists in the server objects.

2. Do the work on the server, which would request a request for each 
manipulation, not a good idea.

I may be misusing requestfactory...

Any ideas?


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



Running Unit Test Emulating FF3.6

2011-08-12 Thread pedjak
  Hi,

  I would like to run GWT unit tests using HtmlUnit that emulates
FF3.6, but by looking at the code in RunStyleHtmlUnit class, I have
realized that possible HtmlUnit browser emulations are narrowed down
to FF3, I6, and IE7. Is there any particular reason for that?

  Best,

Predrag

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



Securing activities/places etc based on roles

2011-08-12 Thread Craig Greenhalgh
Hi is there an existing framework where I can secure activities or 
places based on a users roles?


Thanks

Craig

--
You received 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: Why this code can't get the event??

2011-08-12 Thread Jambi
On 12 Aug., 11:07, Ivan Pulleyn  wrote:
> I notice that you are removing the widget from it's parent. That doesn't
> seem correct.

I´m thinking the same. You should probably just hide the widget

-- 
You received 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 use Mockito for testing Async calls?

2011-08-12 Thread Magno Machado
Code from a @Test method:
List pesquisas = new ArrayList();
 Request request = mock(Request.class);
doReturn(request).when(pesquisaRequest).listAll();
doReturn(pesquisaRequest).when(requestFactory).pesquisaRequest();
doAnswer(RequestFactoryUtils.ok(pesquisas)).when(request).fire(RequestFactoryUtils.anyReceiver());

And here my RequestFactoryUtils.ok:
public static  Answer ok(final T result) {
return new Answer() {

@Override
public T answer(InvocationOnMock invocation) throws Throwable {
Object[] args = invocation.getArguments();
Object _receiver = args[args.length - 1];
Receiver receiver = (Receiver)_receiver;
receiver.onSuccess(result);
return null;
}
 };
}

On Thu, Aug 11, 2011 at 6:32 PM, objectuser  wrote:

> Here's how I do it.
> @Test
> public void testAsync() {
> doAnswer(new Answer() {
>
> @Override
> public Void answer(InvocationOnMock invocation) throws
> Throwable {
> AsyncCallback callback =
> (AsyncCallback) invocation.getArguments()[1];
> callback.onSuccess(new CommandResult());
> return null;
> }
> }).when(commandProcessor).execute(any(Command.class),
> any(AsyncCallback.class));
>
> // invoke something that sends the command ... then verify the
> results
> verify(...)...;
> }
>
> --
> 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/-/xx0OrJ46MUwJ.
>
> 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.



GWT Remote Logging - Logger Name replaced by logOnServer

2011-08-12 Thread Wooi
Below is the message I got from my apache server...
com.google.gwt.logging.server.RemoteLoggingServiceUtil logOnServer
WARNING: blablabla

I try to check RemoteLoggingServiceUtil, seeing while my logger name
is null it will replaced?

This is my code...
private static Logger log = Logger.getLogger("Test");
log.warning("blablabla");

I expect something like...
com.google.gwt.logging.server.RemoteLoggingServiceUtil Test
WARNING: blablabla

Any advice?

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



Re: Create Canvas widget from CanvasElement

2011-08-12 Thread Julian

>
>
> constructor 
> protected CanvasElement() 
>
> It means that you can derive your own class for CanvasElement. 
> Adding it in a GWT container works for me. 
>
> I agree with you : I don't understand why there is also a Canvas 
> class, and why the constructor is private ? 
>
>
Canvas is a Widget (derives from FocusWidget).
CanvasElement is just a wrapper around the DOM element  (derives 
com.google.gwt.dom.client.Element).
To be precise, CanvasElement is not even a wrapper it is a JavaScriptObject 
which means that you can not create it in Java (by calling a constructor).
Instead, we have to use Document.get().createCanvasElement() which does its 
work by calling a JSNI method.
I want the widget so that I can do all the event handling in Java 
(FocusWidget implements tons of Has*Handlers interfaces). 

-- 
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/-/ivqyX2eFKScJ.
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: Why this code can't get the event??

2011-08-12 Thread Ivan Pulleyn
I notice that you are removing the widget from it's parent. That doesn't
seem correct.

On Fri, Aug 12, 2011 at 12:55 PM, yourenzhuce  wrote:

> I want to add a div on TextBox, when textbox's value is empty, the div
> will be show.
> It look good, but it can't receive the event. the EventHandler does
> not take effect.
>
> What's the problem??
>
> The code is:
> 
>public static HTML insertLabelUpon(final ValueBoxBase widget) {
>final HTML label = new HTML();
>label.setStyleName("PlugInLabel");
>
>Element parent = widget.getElement().getParentElement();
>if (parent == null) return null;
>Element div = DOM.createDiv();
>widget.removeFromParent();
>parent.appendChild(div);
>div.appendChild(widget.getElement());
>div.appendChild(label.getElement());
>
>div.getStyle().setProperty("position", "relative");
>DOM.setStyleAttribute(label.getElement(), "position",
> "absolute");
>
>label.addClickHandler(new ClickHandler() {
>@Override
>public void onClick(ClickEvent event) {
>widget.setFocus(true);
>}
>});
>widget.addFocusHandler(new FocusHandler() {
>@Override
>public void onFocus(FocusEvent event) {
>label.setVisible(false);
>}
>});
>widget.addBlurHandler(new BlurHandler() {
>@Override
>public void onBlur(BlurEvent event) {
>Object value = widget.getValue();
>if(value != null && value != "") {
>label.setVisible(false);
>} else {
>label.setVisible(true);
>}
>}
>});
>
>return label;
>}
> 
>
> the CSS:
> 
> .PlugInLabel {
>position: absolute;
>font: 11px tahoma,arial,verdana,sans-serif !important;
>left: 5px !important;
>color: #99;
> }
> 
>
> --
> You received 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: Create Canvas widget from CanvasElement

2011-08-12 Thread karim33
Hi Julian,

I work with GWT 2.3 and i just see in the documentation :
(http://google-web-toolkit.googlecode.com/svn/javadoc/2.3/com/google/
gwt/dom/client/CanvasElement.html)

constructor
protected CanvasElement()

It means that you can derive your own class for CanvasElement.
Adding it in a GWT container works for me.

I agree with you : I don't understand why there is also a Canvas
class, and why the constructor is private ?

In my opinion, Google is perfectionnist, and has provided a cross-
browser test class to check if  is supported by client
browser, in order to let the developper to test and take a decision if
there is no browser support. May be that's why thi class exists. I
don't think it's a bug as Thomas says.

Regards

Karim Duran


On 11 août, 22:06, Julian  wrote:
> I want to wrap a CanvasElement ( in HTML) in an Canvas widget.
>
> Many widgets (e.g. Label) have a static method SomeWidget.wrap(Element) for
> wrapping an existing DOM element.
> I imagine Canvas does not feature such a method because not all browser
> support  and therefore the user should be forced to go
> through createIfSupported().
>
> Unfortunately the constructor in Canvas is private, which means that Canvas
> can not be subclassed. (There isn't any constructor available in the derived
> class.)
>
> Code snippets of createIfSupported and the constructor in Canvas:
>
>   public static Canvas createIfSupported() {
>     // check if canvas is supported; if it is not supported: return null
>     return new Canvas(element);
>   }
>
>   private Canvas(CanvasElement element) {
>     setElement(element);
>   }
>
> I ended up copying the Canvas class and making the constructor public.
>
> Is there a better way to do this?
> If not, what is the reasoning behind it (besides that it might not be
> supported)?
>
> I am using version 2.4.0.rc1.
>
> Thanks,
> Julian

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



Aw: Re: CSS compiler + ie gradients = strange behaviour

2011-08-12 Thread Peter Willert
Hey Jeff,

thanks for your fast reply!

Am Donnerstag, 11. August 2011 19:12:14 UTC+2 schrieb Jeff Larsen:
>
> How about you check out http://css3pie.com/
>

We know about solutions like that, but we don't like to inject any new 
dependencies into our project.

Unless there are workarounds, we think it should work like we've implemented 
that stuff. Otherwise:  
a) we've done anything wrong, or
b) we found a gwt css compiler bug 

Are there any other hints? :)

Thanks,
Peter

-- 
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/-/uoVogPiruyEJ.
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 RPC NOT working with Tomcat

2011-08-12 Thread Henkie
Hi Juan
No, Tomcat standalone.
I'm trying to deploy my app for production.
I have an ant build script to build the war 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.