Re: GWT application freezes when new version is deployed while using it

2011-12-29 Thread mayumi
This is observed when deployed with the changes in the code, so I am
guessing one of the cache.js file.
When deployed without any changes to a code this is not observed.


On Dec 30, 12:35 am, mayumi  wrote:
> While using the GWT application, I deployed the new version of the
> application. Once deployment is complete my application freezes until
> I do the full refresh. I originally thought this was caching problem,
> so I assigned all the files to be no-cache by setting all response
> headers using the filter. But still with this filter application
> freezes when I deploy a new version.
>
> What could be a cause of this?
>
> What I am trying to achieve here is to be able to deploy a new version
> of GWT application while user is using the application. This means
> when the JavaScript changes I want user to get it from the server
> instead of using the cached one without any glitch (maybe slow
> response time since request need to go to the server in this case).

-- 
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 application freezes when new version is deployed while using it

2011-12-29 Thread mayumi
While using the GWT application, I deployed the new version of the
application. Once deployment is complete my application freezes until
I do the full refresh. I originally thought this was caching problem,
so I assigned all the files to be no-cache by setting all response
headers using the filter. But still with this filter application
freezes when I deploy a new version.

What could be a cause of this?

What I am trying to achieve here is to be able to deploy a new version
of GWT application while user is using the application. This means
when the JavaScript changes I want user to get it from the server
instead of using the cached one without any glitch (maybe slow
response time since request need to go to the server in this case).

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



Issue in numeric value 1 color display in GWT application

2011-12-29 Thread Elango
We are experiencing a strange problem in our application.
The numeric value 1 is getting displayed in burgundy color instead of
black color.
Our application is using

GWT 2.3
Default CSS font is Arial

Particularly this issue is happening only in Windows 7 with 1280 * 800
screen resolution.
MAC environment is working as expected.

We have identified few temporary fixes for this issue. I provided here
the same for reference.
Fix 1 - The issue will go away if we change the screen resolution to
1024 * 768
Fix 2 - If we change the default font to Helvetica, then the numeric
value 1 is displayed in black.

Any thought on this?

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



Date and Time in Annotated TimeLine GWT

2011-12-29 Thread Jose Luis Hernandez
I am plotting a trend chart in GWT. In concrete, AnnotatedTimeLine. My
Java code is:

Runnable onLoadCallback = new Runnable() {
public void run() {
ArrayList occAttrs = new
ArrayList();
for(AttributeDTO attr : attrs){

if(attr.getName().toLowerCase().contains("temp")){
occAttrs.add(attr);
}
}
DataTable data = DataTable.create();
data.addColumn(ColumnType.DATE, "Date");
data.addColumn(ColumnType.NUMBER, "Temperature");
data.addRows(occAttrs.size());
RootPanel.get().add(new Label(occAttrs.toString()));
DateTimeFormat dtf = 
DateTimeFormat.getFormat(".MM.dd
'at' hh:mm:ss aaa");
for(int i = 0; i < occAttrs.size(); i++){
data.setValue(i, 0, 
dtf.parse(occAttrs.get(i).getDate()));
data.setValue(i, 1,
Integer.valueOf(occAttrs.get(i).getValue()));
}

AnnotatedTimeLine.Options options =
AnnotatedTimeLine.Options.create();
options.setDisplayAnnotations(true);
options.setDisplayZoomButtons(true);
 
options.setScaleType(AnnotatedTimeLine.ScaleType.ALLFIXED);
options.setDateFormat(".MM.dd 'at' hh:mm:ss aaa");
 
options.setLegendPosition(AnnotatedTimeLine.AnnotatedLegendPosition.SAME_ROW);
AnnotatedTimeLine atl = new AnnotatedTimeLine(data,
options, "600px", "400px");

vPanel.add(atl);
}

};
VisualizationUtils.loadVisualizationApi(onLoadCallback,
AnnotatedTimeLine.PACKAGE);

Well, when I show graph I obtain the following figure:

http://i.stack.imgur.com/0j2BX.jpg

In x axis I have date without time. I would like to include time. How
could I get it?

Thanks in advance!!

King regard and merry christmas!

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



xml reading problem

2011-12-29 Thread deltaaruna
Hi all,

I tried to read a xml file using an gwt+google app engine app. But I
am getting following exceptions

No source code is available for type
org.xml.sax.helpers.DefaultHandler; did you forget to inherit a
required module?
No source code is available for type javax.jdo.PersistenceManager; did
you forget to inherit a required module?
No source code is available for type javax.xml.parsers.SAXParser; did
you forget to inherit a required module?
No source code is available for type
javax.xml.parsers.SAXParserFactory; did you forget to inherit a
required module?
No source code is available for type java.io.File; did you forget to
inherit a required module?
No source code is available for type
javax.xml.parsers.ParserConfigurationException; did you forget to
inherit a required module?
No source code is available for type org.xml.sax.SAXException; did you
forget to inherit a required module?
No source code is available for type org.xml.sax.Attributes; did you
forget to inherit a required module?

Please someone help me.

Thank You
Aruna

-- 
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: Cocoa like UI API for GW

2011-12-29 Thread Stefan Ollinger

Generally I like the idea of a clean widget set, maybe also themeable.
About the gui editor: I think having an alternative editor, which is 
merely based on HTML/CSS and not on any IDE frameworks, is a nice to 
have. You could integrate this designer into several IDEs, via plugin 
wrappers.


Regards,
Stefan

Am 24.12.2011 23:20, schrieb Christopher Bruno:
I plan to use the UiBinder-style XML as the file format for laying out 
widgets.  Im not sure about supporting GWT designer -- I would rather 
implement something like Apple's Interface builder and not have it 
bound to Eclipse.


Here is an demo TableView widget (not feature complete)

http://www.hokuasoftware.com/tableview/


On Sat, Dec 24, 2011 at 7:51 AM, Gal Dolber > wrote:


I think its more about extracting the styles from Cappuccino.
Personally, I stay away from widget libraries


On Sat, Dec 24, 2011 at 10:42 AM, Stefan Ollinger
mailto:stefan.ollin...@gmx.de>> wrote:

Do you plan to add UiBinder and GWT Designer support?

Stefan

Am 23.12.2011 21 :10, schrieb cbruno:

I am currently building a clean room implementation of the
Cappuccino
widgets (cappuccino.org )  in GWT.
Instead of using layout classes the
widgets utilize absolute positioning and autoresizing
masks for
layouts. The event system is based on a Responder class which
implements mouseDown, mouseUp, KeyDown, etc.. methods to
handle
events. Aristo is the default theme.

 My ultimate goal is to release an interface builder like
tool,
similar to the tool Atlas that was being made for
Cappuccino (now
defunct)

I will be placing greater emphasis on  wai-aria markup and
accessibility (Including keyboard&  touch) than cappuccino
currently

supports.

What do you all think? Given the existence of gxt and
smartgwt, do you
think there is room for another widget library?

Chris


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




-- 
Guit: Elegant, beautiful, modular and *production ready* gwt

applications.

http://code.google.com/p/guit/




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




--
Chris Bruno
sent from my Mac Pro

--
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: Serializing and Deserializing EntityProxy with created EntityProxy inside makes root EntityProxy have created EntityProxy's stableId

2011-12-29 Thread Aidan O'Kelly
There's an issue with DefaultProxyStore that it doesn't always return
sequential Ids from its nextId() method, which can result in some odd
behaviour when serializing lists of ValueProxies, (all proxies point to the
same object).

Not sure if that's the issue here, but its worth giving a try as the fix is
very simple, just make a copy of DefaultProxyStore and ensure it always
returns a sequential Id, rather than the count of objects it contains.

Here's my patched version:
http://pastebin.com/f7aKkMS1 -

-- 
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: RequestFactory - Intermittent "The AutoBean has been frozen" on newly created

2011-12-29 Thread Thomas Broyer
I confirm the need to always use the same instance on the server side in a 
given request. I do believe it's a bug though fwiw.

-- 
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/-/4yxF0BEbu_kJ.
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: In development mode `$entry(...)` converts `false` to `Boolean(false)` which can be evaluated to true

2011-12-29 Thread Sanjiv Jivan
I hit the same issue as well. See the thread below which describes problem
and a workaround.

http://groups.google.com/group/google-web-toolkit-contributors/tree/browse_frm/month/2010-04/f728b64e7237b937?rnum=211&_done=%2Fgroup%2Fgoogle-web-toolkit-contributors%2Fbrowse_frm%2Fmonth%2F2010-04%3F

Sanjiv

On Thu, Dec 29, 2011 at 4:32 PM, Ali  wrote:

> Hi
>
> In following example (v2.3.0 development mode) `$entry()` converts
> returned `false` to `Boolean(false)` which can be evaluated to true if used
> immediately.
>
> public class Example {
> public boolean test() { return false; }
> public native void inject() /*-{
> var self = this;
> $wnd.test = $entry(function(){ return se...@my.gwt.client.Example
> ::test()(); });
> }-*/;
> }
>
> in js
> alert(test() + "=" + (test() ? true : false));
> results in `false=true`.
>
> Is this a bug or I have used it incorrectly?
>
> --
> 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/-/HqVtZcnQ4B4J.
> 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 set a Presenter in a composite Widget?

2011-12-29 Thread James Drinkard
The way I did this was create a MUpld class with it's own ui.xml
file.  Inside that class
I have a gwtUpload widget where I use @UiField and @UiHandler for the
Upload widget.
Then I reference the MUpld class as @UiField MUpld mUpld; in the
parent class: ViewImpl

In the ViewImpl class I use this code to define and set
the presenter, which is really an activity:

private Presenter presenter;
...
@Override
public void setPresenter(Presenter presenter)
{
this.presenter = presenter;
setMUpld(presenter);
}

So I have this working now, but I wasn't sure if it was proper GWT
coding as I keep
thinking somehow there is some mechanism in uiBinder I could use to
do
the same thing.  The widget class: MUpld is a child of ViewImpl,
actually a
nested widget inside the ui.xml file of ViewImpl, so shouldn't it have
access to it's parent objects?

On Dec 29, 10:10 am, David  wrote:
> In your original thread you stated that you are calling
> "nameView.setPresenter(this); ... "
>
> If your implementation instance of nameView  already has a handle to
> your widget when calling  setPresenter , then you can simply
> change setPresenter to pass the presenter down to the widget.
>
> ...or you can try to use one of the techniques that I described in my
> prior thread.
>
> If that is still not clear then attach a zip of a trimmed done version
> of your implementation and perhaps someone can point you in the  right
> direction.
>
> On Dec 28, 12:13 pm,JamesDrinkard wrote:
>
>
>
>
>
>
>
> > Would you show a fuller implementation for this?
>
> > On Dec 21, 8:53 am, David  wrote:
>
> > > Many  ways to do this.   ViewImpl.ui.java will have a binding  for the
> > > composite widget
> > > So you can simply pass the presenter or the instance of
> > > ViewImpl.ui.java to the composite widget.
>
> > > @UiField  MyCompositeWidget  theWidget;
>
> > > .. theWidget.setParent(this)
>
> > > Or you can use @UiField(provided=true)    ,  @UiConstructor ,  or
> > > @UiFactory.
>
> > > see:http://code.google.com/webtoolkit/doc/latest/DevGuideUiBinder.html
>
> > > On Dec 20, 1:37 pm,JamesDrinkard wrote:
>
> > > > Hello All,
>
> > > > I have a GWT 2.4 app using MVP, clientFactory, activities, places, and
> > > > uiBinder. I have a composite widget that I created as a standalone
> > > > object with it's own ui.xml file. I reference that class and insert it
> > > > into the main viewImpl.ui.xml file.
>
> > > > The composite widget receives some data from the backend and I need to
> > > > get it back to the activity so it can be displayed in a table. I'm
> > > > using the presenter that is associated with the view to get to the
> > > > activity. Here is the code: In the View interface:
>
> > > > public interface NameView extends IsWidget
> > > > {
> > > >     void setPresenter(Presenter presenter);
> > > > ...
>
> > > > public interface Presenter{
> > > >             void goTo(Place place);
> > > >             void setRowDataList(List rowData);
> > > >         }
>
> > > > In my Activity I implement the View.Presenter as in:
>
> > > >  Activity extends AbstractActivity implements NameView.Presenter
>
> > > > and in the start method for the activity I use:
>
> > > > NameView  nameView = clientFactory.getNameView();//NameView is just an
> > > > example.
> > > > nameView.setPresenter(this); ...
>
> > > > to setup the presenter and instantiate it. My problem is, in the
> > > > widget I need this:
>
> > > > presenter.setRowDataList(rowData);
>
> > > > but I'm not sure how to reference the instantiated Presenter from the
> > > > widget?
>
> > > > I know GIN would do it, but I'm not using that in the app as I've
> > > > never setup GIN with GWT. Any ideas as to the correct way to do this?

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



In development mode `$entry(...)` converts `false` to `Boolean(false)` which can be evaluated to true

2011-12-29 Thread Ali
Hi

In following example (v2.3.0 development mode) `$entry()` converts returned 
`false` to `Boolean(false)` which can be evaluated to true if used 
immediately.

public class Example {
public boolean test() { return false; }
public native void inject() /*-{
var self = this;
$wnd.test = $entry(function(){ return 
se...@my.gwt.client.Example::test()(); });
}-*/;
}

in js
alert(test() + "=" + (test() ? true : false));
results in `false=true`.

Is this a bug or I have used it incorrectly?

-- 
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/-/HqVtZcnQ4B4J.
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 - Intermittent "The AutoBean has been frozen" on newly created

2011-12-29 Thread Aidan O'Kelly
In your addOrUpdate() method, check to see you are returning the exact same
instance that was passed in, just remembered I did actually run into the
same problem when you return a different instance that has the same
identity.


On Thu, Dec 29, 2011 at 4:38 PM, Jeff Rodriguez wrote:

> Yeah, I put that code into a click handler for a button so I can just
> repeatedly fire it off. It's the only code in the function.
>
> It seems like something is trying to edit the result before my
> receiver callbacks are called. I say that because it works on the
> server side every single time. If I click that button 5 times, I'll
> end up with 5 entities in my data store.
>
> On Dec 28, 10:09 am, "Aidan O'Kelly"  wrote:
> > From the code you posted, it should work fine (even the original code).
> Is
> > it all executed in one function? It sounds like there's some paths of
> > execution which differ from it, and somehow end up calling setName() on a
> > frozen proxy.
>
> --
> 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 scrollbar not working in IE

2011-12-29 Thread llefler
Hello,

We have been having an issue, where the scrollbar in IE  7 & 8 does
not work when you click and drag it, for a data grid. When you use the
mouse scroll it works, and when you use the arrow keys, to scroll
down, it works as well. When you click and drag the scroll bar, it
moves and it just does not scroll anything. Here is a snippit of how
the xml is setup,


...



...


Any help or suggestions would be greatly appreciated, thanks!

Sincerely,

Lakota

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

2011-12-29 Thread Anky
Here is a fresh error log

13:45:39.163 [ERROR] [dealmanager] Uncaught exception escaped

com.google.gwt.core.client.JavaScriptException: (Error): Invalid
argument.
 number: -2147024809
 description: Invalid argument.
at
com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:
195)
at
com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:
120)
at
com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:
507)
at
com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:
264)
at
com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:
91)
at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:188)
at sun.reflect.GeneratedMethodAccessor35.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
at
com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
at
com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:
157)
at
com.google.gwt.dev.shell.BrowserChannel.reactToMessages(BrowserChannel.java:
1668)
at
com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:
401)
at
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:
222)
at java.lang.Thread.run(Thread.java:619)

Thanks,
Ankit

On Dec 29, 1:00 pm, Dennis Haupt  wrote:
> Am 29.12.2011 17:15, schrieb Anky:
>
>
>
>
>
> > Hi All,
>
> > I am not sure if it is a problem with my application.
>
> > Initially when we started development, the debug worked fine, with few
> > exceptions of hitting the browser refresh button couple of times to
> > get the code picked by debugger.
>
> > Now our application has grown up considerably and our debug
> > environment does not work often. We change code, hit the browser
> > refresh and we get a message that 'response cant be deserialized' and
> > sometime on second hit of browser refresh it display message related
> > to JNSI. This forces us to recompile the GWT code and deploy again. I
> > think it eats up considerable development time.
>
> > Has anyone experienced this problem with large app development using
> > GWT?
>
> > Thanks,
> > Ankit
>
> if you change a class that is being serialized - for example add a field
> - you'll get this error because the server and client are no longer in
> sync. if there is a way to fix that, i'll be glad to know.
>
> --- Hide quoted text -
>
> - Show quoted text -

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

2011-12-29 Thread Anky
Hi Dennis,

Well, this is not the case. I am not changing any field or adding new
ones to serialized objects... The issue occurs even if I change some
logic within the method, or add new element to a container, etc  and
hit browser refresh

Thanks,
Ankit

On Dec 29, 1:00 pm, Dennis Haupt  wrote:
> Am 29.12.2011 17:15, schrieb Anky:
>
>
>
>
>
>
>
>
>
> > Hi All,
>
> > I am not sure if it is a problem with my application.
>
> > Initially when we started development, the debug worked fine, with few
> > exceptions of hitting the browser refresh button couple of times to
> > get the code picked by debugger.
>
> > Now our application has grown up considerably and our debug
> > environment does not work often. We change code, hit the browser
> > refresh and we get a message that 'response cant be deserialized' and
> > sometime on second hit of browser refresh it display message related
> > to JNSI. This forces us to recompile the GWT code and deploy again. I
> > think it eats up considerable development time.
>
> > Has anyone experienced this problem with large app development using
> > GWT?
>
> > Thanks,
> > Ankit
>
> if you change a class that is being serialized - for example add a field
> - you'll get this error because the server and client are no longer in
> sync. if there is a way to fix that, i'll be glad to know.
>
> --

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

2011-12-29 Thread Dennis Haupt
Am 29.12.2011 17:15, schrieb Anky:
> Hi All,
> 
> I am not sure if it is a problem with my application.
> 
> Initially when we started development, the debug worked fine, with few
> exceptions of hitting the browser refresh button couple of times to
> get the code picked by debugger.
> 
> Now our application has grown up considerably and our debug
> environment does not work often. We change code, hit the browser
> refresh and we get a message that 'response cant be deserialized' and
> sometime on second hit of browser refresh it display message related
> to JNSI. This forces us to recompile the GWT code and deploy again. I
> think it eats up considerable development time.
> 
> Has anyone experienced this problem with large app development using
> GWT?
> 
> Thanks,
> Ankit
> 

if you change a class that is being serialized - for example add a field
- you'll get this error because the server and client are no longer in
sync. if there is a way to fix that, i'll be glad to know.

-- 

-- 
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: Serializing and Deserializing EntityProxy with created EntityProxy inside makes root EntityProxy have created EntityProxy's stableId

2011-12-29 Thread Kevin Jordan
There's a line missing between the "String data = " and the incorrect
pasted line "PersonProxy item =".

For my example it should read:
store = new DefaultProxyStore(data); //Recreate store from serialized
data.
TestRootProxy item =
requestFactory.getSerializer(store).deserialize(TestRootProxy.class,
id); //Deserialize it to the original Proxy.

And in production this would be read either from client-side storage
or through a call to the server to get the serialized string instead
of in one flow. But it behaves the same either way.

On Dec 29, 11:16 am, Kevin Jordan  wrote:
> Simple case in case my wording was a little confusing:
>
> TestRootProxy rootProxy =
> requestContext.create(TestRootProxy.class); //Doesn't matter if it's a
> loaded one or an unpersisted root
> rootProxy.setChild(requestContext.create(TestChildProxy.class));
> DefaultProxyStore store = new DefaultProxyStore();
> ProxySerializer serializer = requestFactory.getSerializer(store);
> String id = serializer.serialize(rootProxy);
> String data = store.encode();
> PersonProxy item =
> DesktopEntryPoint.REQUEST_FACTORY.getSerializer(store).deserialize(TestRoot 
> Proxy.class,
> id);
> requestContext = requestFactory.testRootRequest();
> this.logger.info("Root stableId: " +
> EntityProxyCategory.stableId(AutoBeanUtils.getAutoBean(item))); //This
> will print out the same stable id as below.
> this.logger.info("Child stableId: " +
> EntityProxyCategory.stableId(AutoBeanUtils.getAutoBean(item.getChild(;
> item = requestContext.edit(item);
> item.getChild(); //This will throw a classcastexception as child is
> overwritten now to be pointing to the TestRootProxy.

-- 
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: Serializing and Deserializing EntityProxy with created EntityProxy inside makes root EntityProxy have created EntityProxy's stableId

2011-12-29 Thread Kevin Jordan
Simple case in case my wording was a little confusing:

TestRootProxy rootProxy =
requestContext.create(TestRootProxy.class); //Doesn't matter if it's a
loaded one or an unpersisted root
rootProxy.setChild(requestContext.create(TestChildProxy.class));
DefaultProxyStore store = new DefaultProxyStore();
ProxySerializer serializer = requestFactory.getSerializer(store);
String id = serializer.serialize(rootProxy);
String data = store.encode();
PersonProxy item =
DesktopEntryPoint.REQUEST_FACTORY.getSerializer(store).deserialize(TestRootProxy.class,
id);
requestContext = requestFactory.testRootRequest();
this.logger.info("Root stableId: " +
EntityProxyCategory.stableId(AutoBeanUtils.getAutoBean(item))); //This
will print out the same stable id as below.
this.logger.info("Child stableId: " +
EntityProxyCategory.stableId(AutoBeanUtils.getAutoBean(item.getChild(;
item = requestContext.edit(item);
item.getChild(); //This will throw a classcastexception as child is
overwritten now to be pointing to the TestRootProxy.

On Dec 29, 10:45 am, Kevin Jordan  wrote:
> I'm trying to preserve a modified EntityProxy's state between user
> session by using the ProxyStore to serialize it and deserialize it,
> but it appears that if it has a reference EntityProxy in a field
> inside, the root proxy's stableId gets overriden with the one of the
> created EntityProxy.  This leads to it getting replaced incorrectly on
> a .edit() of it such that everything gets set to the root proxy when
> it goes to clone it.  I believe the problem lies with how it does the
> operations here:
>
> @Override
>    AutoBean
> getProxyForReturnPayloadGraph(SimpleProxyId id) {
>     AutoBean toReturn = super.getProxyForReturnPayloadGraph(id);
>     if (restored.add(id)) {
>       /*
>        * If we haven't seen the id before, use the data in the
> OperationMessage
>        * to repopulate the properties of the canonical bean for this
> id.
>        */
>       OperationMessage op =
> getOperation(getRequestFactory().getHistoryToken(id));
>       this.processReturnOperation(id, op);
>       toReturn.setTag(Constants.STABLE_ID, super.getId(op));
>     }
>     return toReturn;
>   }
>
> Although I'm not exactly sure why it gets the wrong id set.  They also
> seem to have perfectly good stable ids set before it gets to the
> setTag function too, so I'm not sure why it's necessary to do that.
>
> I'd also tried doing it manually via AutoBeanCodex, but it seems I'd
> have to force a lot of stuff including stable ids and frozen statuses
> into the proxies that way.  Has anyone had any luck with serializing
> and deserializing EntityProxies with un-persisted proxies inside the
> root proxy?

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



Serializing and Deserializing EntityProxy with created EntityProxy inside makes root EntityProxy have created EntityProxy's stableId

2011-12-29 Thread Kevin Jordan
I'm trying to preserve a modified EntityProxy's state between user
session by using the ProxyStore to serialize it and deserialize it,
but it appears that if it has a reference EntityProxy in a field
inside, the root proxy's stableId gets overriden with the one of the
created EntityProxy.  This leads to it getting replaced incorrectly on
a .edit() of it such that everything gets set to the root proxy when
it goes to clone it.  I believe the problem lies with how it does the
operations here:

@Override
   AutoBean
getProxyForReturnPayloadGraph(SimpleProxyId id) {
AutoBean toReturn = super.getProxyForReturnPayloadGraph(id);
if (restored.add(id)) {
  /*
   * If we haven't seen the id before, use the data in the
OperationMessage
   * to repopulate the properties of the canonical bean for this
id.
   */
  OperationMessage op =
getOperation(getRequestFactory().getHistoryToken(id));
  this.processReturnOperation(id, op);
  toReturn.setTag(Constants.STABLE_ID, super.getId(op));
}
return toReturn;
  }

Although I'm not exactly sure why it gets the wrong id set.  They also
seem to have perfectly good stable ids set before it gets to the
setTag function too, so I'm not sure why it's necessary to do that.

I'd also tried doing it manually via AutoBeanCodex, but it seems I'd
have to force a lot of stuff including stable ids and frozen statuses
into the proxies that way.  Has anyone had any luck with serializing
and deserializing EntityProxies with un-persisted proxies inside the
root proxy?

-- 
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: RequestFactory - Intermittent "The AutoBean has been frozen" on newly created

2011-12-29 Thread Jeff Rodriguez
Yeah, I put that code into a click handler for a button so I can just
repeatedly fire it off. It's the only code in the function.

It seems like something is trying to edit the result before my
receiver callbacks are called. I say that because it works on the
server side every single time. If I click that button 5 times, I'll
end up with 5 entities in my data store.

On Dec 28, 10:09 am, "Aidan O'Kelly"  wrote:
> From the code you posted, it should work fine (even the original code). Is
> it all executed in one function? It sounds like there's some paths of
> execution which differ from it, and somehow end up calling setName() on a
> frozen proxy.

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

2011-12-29 Thread Anky
Hi All,

I am not sure if it is a problem with my application.

Initially when we started development, the debug worked fine, with few
exceptions of hitting the browser refresh button couple of times to
get the code picked by debugger.

Now our application has grown up considerably and our debug
environment does not work often. We change code, hit the browser
refresh and we get a message that 'response cant be deserialized' and
sometime on second hit of browser refresh it display message related
to JNSI. This forces us to recompile the GWT code and deploy again. I
think it eats up considerable development time.

Has anyone experienced this problem with large app development using
GWT?

Thanks,
Ankit

-- 
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 a Presenter in a composite Widget?

2011-12-29 Thread David

In your original thread you stated that you are calling
"nameView.setPresenter(this); ... "

If your implementation instance of nameView  already has a handle to
your widget when calling  setPresenter , then you can simply
change setPresenter to pass the presenter down to the widget.

...or you can try to use one of the techniques that I described in my
prior thread.

If that is still not clear then attach a zip of a trimmed done version
of your implementation and perhaps someone can point you in the  right
direction.








On Dec 28, 12:13 pm, James Drinkard  wrote:
> Would you show a fuller implementation for this?
>
> On Dec 21, 8:53 am, David  wrote:
>
>
>
>
>
>
>
> > Many  ways to do this.   ViewImpl.ui.java will have a binding  for the
> > composite widget
> > So you can simply pass the presenter or the instance of
> > ViewImpl.ui.java to the composite widget.
>
> > @UiField  MyCompositeWidget  theWidget;
>
> > .. theWidget.setParent(this)
>
> > Or you can use @UiField(provided=true)    ,  @UiConstructor ,  or
> > @UiFactory.
>
> > see:http://code.google.com/webtoolkit/doc/latest/DevGuideUiBinder.html
>
> > On Dec 20, 1:37 pm,JamesDrinkard wrote:
>
> > > Hello All,
>
> > > I have a GWT 2.4 app using MVP, clientFactory, activities, places, and
> > > uiBinder. I have a composite widget that I created as a standalone
> > > object with it's own ui.xml file. I reference that class and insert it
> > > into the main viewImpl.ui.xml file.
>
> > > The composite widget receives some data from the backend and I need to
> > > get it back to the activity so it can be displayed in a table. I'm
> > > using the presenter that is associated with the view to get to the
> > > activity. Here is the code: In the View interface:
>
> > > public interface NameView extends IsWidget
> > > {
> > >     void setPresenter(Presenter presenter);
> > > ...
>
> > > public interface Presenter{
> > >             void goTo(Place place);
> > >             void setRowDataList(List rowData);
> > >         }
>
> > > In my Activity I implement the View.Presenter as in:
>
> > >  Activity extends AbstractActivity implements NameView.Presenter
>
> > > and in the start method for the activity I use:
>
> > > NameView  nameView = clientFactory.getNameView();//NameView is just an
> > > example.
> > > nameView.setPresenter(this); ...
>
> > > to setup the presenter and instantiate it. My problem is, in the
> > > widget I need this:
>
> > > presenter.setRowDataList(rowData);
>
> > > but I'm not sure how to reference the instantiated Presenter from the
> > > widget?
>
> > > I know GIN would do it, but I'm not using that in the app as I've
> > > never setup GIN with GWT. Any ideas as to the correct way to do this?

-- 
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.4 - problems with space key handling and FieldUpdater for TextInputCell inside CompositeCell in CellTree

2011-12-29 Thread James Scott
Looks like it boils down to events. After looking at the TextInputCell
and AbstractInputCell source, I added "focus" and "change" events to
the list of events consumed by the CompositeCell, and that addressed
both issues.

Incidentally, I tried out the EditTextCell in the CompositeCell, and
to get that working, I needed to add "keyup" and "keydown" events to
the CompositeCell.

Clearly I do not yet have my mind wrapped around how the events are
propagated in a CompositeCell, but at least I've solved my immediate
problems.

JLS

On Dec 28, 3:49 pm, James Scott  wrote:
> Hi all-
>
> I feel like I'm missing something obvious here, but I haven't been
> able to figure this out. In short, I have a CellTree whose leaf nodes
> are populated with CompositeCells. Each CompositeCell has an
> ImageResourceCell, a TextCell, and a TextInputCell. These are
> displaying in the tree correctly. I have attached an onClick event to
> the ImageResourceCell that deletes the item from the tree, and that
> works as expected. The intent for the TextInputCell is to display a
> field from the entity associated with the cell, and update the field
> on the entity when the user changes the value in the TextInputCell.
>
> However, I'm having a couple of problems with the TextInputCell.
> First, when I type in the TextInputCell, the space key is ignored -
> well, it's probably being consumed by something else but the upshot is
> that when I type a space character, it doesn't appear in the
> TextInputCell. I thought this might have to do with the SelectionModel
> or KeyboardSelectionPolicy on the CellTree, but I've set the tree to
> KeyboardSelectionPolicy.DISABLED and the TreeViewModel to
> NoSelectionModel and it's still happening.[snip]

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



Javac compile error

2011-12-29 Thread misko237
Hi to all gwt developers.

I have one strange problem. Until recently, everything worked fine,
but then, when I'm in development mode, first time I start my browser,
I got java compiler error.

HTTP ERROR: 500

Compile failed; see the compiler error output for details.

RequestURI=/index.jsp
Caused by:

Compile failed; see the compiler error output for details.
at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:933)
at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:757)
at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:
382)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
at
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:
511)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:
295)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:
292)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
487)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1097)
at
com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:
66)
at
com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:
168)
at
com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:
58)
at
com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:
168)
at
com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:
58)
at
com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:
168)
at
com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:
58)
at
com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:
168)
at
com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:
58)
at
com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:
168)
at
com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:
58)
at
com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:
168)
at
com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:
58)
at
com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:
168)
at
com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:
58)
at
com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:
168)
at
com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:
58)
at
com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:
118)
at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:
113)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1088)
at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:
360)
at
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:
216)
at
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:
181)
at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:
729)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
405)
at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
152)
at
org.mortbay.jetty.handler.RequestLogHandler.handle(RequestLogHandler.java:
49)
at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
152)
at org.mortbay.jetty.Server.handle(Server.java:324)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:
505)
at org.mortbay.jetty.HttpConnection
$RequestHandler.headerComplete(HttpConnection.java:829)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:513)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
at
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:
395)
at org.mortbay.thread.QueuedThreadPool
$PoolThread.run(QueuedThreadPool.java:488)

Powered by Jetty://

Can anyone help me? Some suggestion?

Thanks in advance.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegro

Re: Abridged summary of google-web-toolkit@googlegroups.com - 28 Messages in 18 Topics

2011-12-29 Thread xavier . ivanez
NOUVEAU - BORE@L INFORMATIQUE INTEGRE JPA CONSULTANTS 
Afin de mieux vous servir, nos deux sociétés ont décidé de réunir leurs 
compétences  et 
leur professionnalisme sous le nom de JPA CONSULTANTS SA .
 
Par ce partenariat, nous nous améliorerons sur les points suivants :
• Logiciel :   SAGE, CEGID, CIEL, EBP...
• Matériels : Serveurs, connexions, Internet
• Proximité, écoute  et disponibilité

Merci d'adresser vos messages à l'adresse suivante : xiva...@jpaconsultants.com


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



Re: How to get hold of the instance in an InstanceRequest

2011-12-29 Thread Thomas Broyer


On Thursday, December 22, 2011 9:04:27 PM UTC+1, Gregor Frey wrote:
>
> Thank you. So there is no way to implement an instance method outside the 
> domain class?


Yes you can: you simply need a ServiceLocator.
 

> But why woulnt I include all instance methods in the proxy definition 
> then? I hoped I could add methods, that are originally not in the domain 
> object, but are needed just for doing data transformations for the UI, in a 
> separate class.


Declare your method as "Request doSomething(Instance object)" 
instead of "InstanceRequest doSomething()". The former 
says the method is declared on the class pointed to by the @Service 
annotation, while the latter bypasses that annotation and tells the method 
is declared on the class pointed to by the @ProxyFor annotation of the 
Instance proxy. Obviously, on the server-side, you'd need a "DomainResult 
doSomething(DomainInstance object)" method in the former case, and a 
"DomainResult doSomething()" (declared on the DomainInstance class, so 
"this" will be the instance you passed to using() on the client-side) in 
the latter case.

-- 
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/-/1Qs8h9xJ7mkJ.
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: compiler.useSourceMap

2011-12-29 Thread Thomas Broyer
SourceMaps haven't yet been released, they're only in trunk. In other 
words, it won't work with GWT 2.4, you'll have to wait for GWT 2.5 or build 
GWT yourself.

-- 
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/-/fA_ahkPKGfEJ.
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 Value Proxy Use Case

2011-12-29 Thread Thomas Broyer
The difference between ValueProxy and EntityProxy is that ValueProxy-s do 
not have "identity". Two EntityProxy-s can be said to represent the same 
object if they share the same stableId(); that cannot be said for 
ValueProxy, where each instance is a distinct object. For instance, when 
you RequestContext#edit() a ValueProxy, you create a clone. Another 
difference: ValueProxy-s are compared equals() by their properties' values. 
Obviously, while EntityProxy sends diffs of the modified properties from 
the client to the server, ValueProxy-s are always sent as a whole: there's 
nothing to diff against.

You can use a Locator with a ValueProxy, it's just that only the create() 
method will ever be called (so all other methods: find(), getId(), 
getVersion(), etc. should probably throw an UnsupportedOperationException). 
If your server-side class has a zero-arg constructor, then you don't need a 
Locator: being proxied by a ValueProxy, the requirements are different that 
from EntityProxy-s: no need for a static findXxx method, or getId or 
getVersion instance methods.

Apart from that, it works just like EntityProxy-s.

You can also see ValueProxy-s like the objects you'd transfer using 
GWT-RPC: when you send an object from client to server, or from server to 
client, you're making a "copy", created from scratch (with EntityProxy on 
the other hand, the "base object" could be retrieved from your database 
before being modified; with ValueProxy, a new instance is created each 
time).
If you're moving from GWT-RPC, I'd start using ValueProxy so your methods 
calls have the same semantics as with GWT-RPC, then move to EntityProxy if 
you want/need 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/-/H07hfJWEZbEJ.
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: Revise policies and change some private members to protected.

2011-12-29 Thread Thomas Broyer


On Wednesday, December 28, 2011 11:05:27 PM UTC+1, Ed wrote:
>
> Solution/Workaround: copy and improve it yourself and override it through 
> gwt config if needed.
>

You could also access private members through JSNI (which bypasses Java 
access rules).

And in the case of the list in ListHandler, you can modify its content 
rather than replacing it: lh.getList().clear(); 
lh.getList().addAll(newList) 

(I don't see any "elements" or "widgets" in DialogBox.CaptionImpl; not sure 
what's being asked here)

-- 
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/-/bxGT659F6vIJ.
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: TabLayoutPanel SelectionHandler invoked multiple times

2011-12-29 Thread ALB-PSP-DV1
That was exactly the problem.
I had put it inside a function which was invoked every time a tab is
created. Due to this, selection handler was getting added multiple
times.I moved it to the constructor and now it is invoked just once.
Thanks a lot for the guidance.
On Dec 29, 7:25 am, Patrick Tucker  wrote:
> That Is how you added the handler, I'm wondering where.  If you are
> adding it in the constructor, onLoad(), ...
>
> If you are adding it in onLoad or some function that is calledmultipletime, 
> that will explain why it is firingmultipletimes.  Add
> a print statement before the add and check the output.
>
> On Dec 28, 1:08 am, ALB-PSP-DV1  wrote:
>
>
>
>
>
>
>
> > I'm adding the selection handler to theTabLayoutPanel.
>
> > fareDisplayPanel.addSelectionHandler(newSelectionHandler()
> > { }
>
> > On Dec 28, 8:56 am, Patrick Tucker  wrote:
>
> > > Where are you adding theSelectionHandler?
>
> > > On Dec 27, 7:47 am, ALB-PSP-DV1  wrote:
>
> > > > Hi,
>
> > > > I have aTabLayoutPanel with 3 tabs. I have added a selection handler
> > > > to it to change the color of the selected/unselected tabs.
>
> > > > However theselectionHandlerseems to beinvoked3timesinstead of
> > > > once when I select a tab.
>
> > > > i.e.SelectionHandlerinvocation = Total number of tabs in
> > > >TabLayoutPanel
>
> > > > @UiField
> > > >TabLayoutPanelfareDisplayPanel;
>
> > > > fareDisplayPanel.addSelectionHandler(newSelectionHandler() {
> > > >           @Override
> > > >           public void onSelection(final SelectionEvent event)
> > > >           {
> > > >             -- code for styling selected/unselected
> > > > tabs--
> > > >           }
>
> > > > });
>
> > > > Can someone please point out the mistake that I'm doing. 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.



multi selection without using Ctrl

2011-12-29 Thread mma
Hi there.

I want to implement the following changes regarding the behavior of the 
MultiSelectionModel:

   - Each click on a row should select that row and maintain all the 
   previous selected rows
   - Each click on a selected row should unselect it

This sounds very easy but I haven't managed to implement it.

Any ideas? 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/-/rFZNASfK_8cJ.
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: Creating image from base64

2011-12-29 Thread vmnikulin
Thanks, Jens! It's a good decision in my opinion.

On 27 дек, 19:41, Jens  wrote:
> If you want to support larger images (larger than 32kb) and/or IE6/IE7 you
> have to use your current approach:
>
> class MyImage implements Serializable {
>     String imageUrl; //which will point to your image servlet
>     AddtionalData addtionalData;
>
> }
>
> And in my opinion there is nothing wrong with it. You fetch all the data
> you need in one GWT request and the browser then loads the image by its
> Url. That way you got the additional data faster and you can already
> display them while the image is still loading. Also using this approach the
> browser can cache the image if the URL for the image does not change. If
> you are trying to use base64 encoded images in a GWT response you always
> download the image unless you cache it yourself.
>
> -- J.

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