Re: New version not being detected by browser

2012-07-30 Thread Ernani Sottomaior
The solution...
http://seewah.blogspot.com.br/2009/02/gwt-tips-2-nocachejs-getting-cached-in.html


On Tue, Jul 31, 2012 at 1:07 AM, Ernani Sottomaior <
ernanisottoma...@gmail.com> wrote:

> Err... ignore that. I was seing ".nocache.html" instead of ".cache.html".
> =P
>
> But, anyway, according to that doc, it should work...
>
> *To help prevent caching, the code in gwt.js actually appends an HTTP GET
> parameter on the end of file name containing a unique timestamp.
> The browser interprets this as a dynamic HTTP request, and thus should not
> load the file from cache.*
>
> But it does not say it works everytime...
> I'll look into the tomcat config.
>
> Thanks,
> ERS
>
>
> On Tue, Jul 31, 2012 at 12:51 AM, Ernani Sottomaior <
> ernanisottoma...@gmail.com> wrote:
>
>> Thanks J.
>>
>> but I remember reading that gwt apps are meant to be cached... (early in
>> version 1.3 - 1.4)
>> My app now compiles as 780k .cache.html files (even using
>> deferred-binding).
>> This approach would download 780k for each tab opened in the browser...
>> is this correct?
>>
>> I thought these generated files would be cached by browsers.
>> I was assuming the compiler generated unique filenames every new
>> compilation...
>> The main JS would be downloaded everytime (small file) and then would get
>> from cache (or download) those 780k.
>> If the filename changed, it would not be in browser's cache. Can GWT work
>> this way? Why not?
>>
>> Thanks
>> ERS
>>
>>
>>
>> On Mon, Jul 30, 2012 at 3:19 AM, Johannes Barop  wrote:
>>
>>> Hello,
>>>
>>> you have to configure your server to tell the clients to never cache
>>> .nocache.html files.
>>>
>>> See:
>>> https://developers.google.com/web-toolkit/doc/latest/FAQ_DebuggingAndCompiling#What%27s_with_all_the_cache/nocache_stuff_and_weird_filenames
>>>
>>> J.
>>>
>>> Am 29.07.2012 um 04:55 schrieb ERS:
>>>
>>> > Hello all.
>>> >
>>> > I'm facing an issue almost everytime I upload a new version of my app
>>> > to tomcat.
>>> > The browser does not detect that there is a new app ... and the RPC
>>> > calls fail.
>>> > Then I have to click refresh a few times (or CTRL+F5) ... then the
>>> > browser gets the new version.
>>> > But end-users dont know that and may quit early...
>>> >
>>> > Is it normal? What should I do during deployment?
>>> > Thanks
>>> >
>>> > --
>>> > You received this message because you are subscribed to the Google
>>> Groups "Google Web Toolkit" group.
>>> > To post to this group, send email to
>>> google-web-toolkit@googlegroups.com.
>>> > To unsubscribe from this group, send email to
>>> google-web-toolkit+unsubscr...@googlegroups.com.
>>> > For more options, visit this group at
>>> http://groups.google.com/group/google-web-toolkit?hl=en.
>>> >
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Google Web Toolkit" group.
>>> To post to this group, send email to google-web-toolkit@googlegroups.com
>>> .
>>> To unsubscribe from this group, send email to
>>> google-web-toolkit+unsubscr...@googlegroups.com.
>>> For more options, visit this group at
>>> http://groups.google.com/group/google-web-toolkit?hl=en.
>>>
>>>
>>
>

-- 
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: New version not being detected by browser

2012-07-30 Thread Ernani Sottomaior
Err... ignore that. I was seing ".nocache.html" instead of ".cache.html".
=P

But, anyway, according to that doc, it should work...

*To help prevent caching, the code in gwt.js actually appends an HTTP GET
parameter on the end of file name containing a unique timestamp.
The browser interprets this as a dynamic HTTP request, and thus should not
load the file from cache.*

But it does not say it works everytime...
I'll look into the tomcat config.

Thanks,
ERS

On Tue, Jul 31, 2012 at 12:51 AM, Ernani Sottomaior <
ernanisottoma...@gmail.com> wrote:

> Thanks J.
>
> but I remember reading that gwt apps are meant to be cached... (early in
> version 1.3 - 1.4)
> My app now compiles as 780k .cache.html files (even using
> deferred-binding).
> This approach would download 780k for each tab opened in the browser... is
> this correct?
>
> I thought these generated files would be cached by browsers.
> I was assuming the compiler generated unique filenames every new
> compilation...
> The main JS would be downloaded everytime (small file) and then would get
> from cache (or download) those 780k.
> If the filename changed, it would not be in browser's cache. Can GWT work
> this way? Why not?
>
> Thanks
> ERS
>
>
>
> On Mon, Jul 30, 2012 at 3:19 AM, Johannes Barop  wrote:
>
>> Hello,
>>
>> you have to configure your server to tell the clients to never cache
>> .nocache.html files.
>>
>> See:
>> https://developers.google.com/web-toolkit/doc/latest/FAQ_DebuggingAndCompiling#What%27s_with_all_the_cache/nocache_stuff_and_weird_filenames
>>
>> J.
>>
>> Am 29.07.2012 um 04:55 schrieb ERS:
>>
>> > Hello all.
>> >
>> > I'm facing an issue almost everytime I upload a new version of my app
>> > to tomcat.
>> > The browser does not detect that there is a new app ... and the RPC
>> > calls fail.
>> > Then I have to click refresh a few times (or CTRL+F5) ... then the
>> > browser gets the new version.
>> > But end-users dont know that and may quit early...
>> >
>> > Is it normal? What should I do during deployment?
>> > Thanks
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> Groups "Google Web Toolkit" group.
>> > To post to this group, send email to
>> google-web-toolkit@googlegroups.com.
>> > To unsubscribe from this group, send email to
>> google-web-toolkit+unsubscr...@googlegroups.com.
>> > For more options, visit this group at
>> http://groups.google.com/group/google-web-toolkit?hl=en.
>> >
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Google Web Toolkit" group.
>> To post to this group, send email to google-web-toolkit@googlegroups.com.
>> To unsubscribe from this group, send email to
>> google-web-toolkit+unsubscr...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/google-web-toolkit?hl=en.
>>
>>
>

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

2012-07-30 Thread Ernani Sottomaior
You can use gwt history manager...

*add a listener:*

History.addValueChangeHandler(new ValueChangeHandler() {
public void onValueChange(ValueChangeEvent event) {
   String section = History.getToken().trim();
... place new panel, or whatever like that ...
}
});


*when user clicks a link or button you can call:*

History.newItem(section);


This would work with back-forward browser buttons.

[]
ERS


On Sun, Jul 29, 2012 at 3:59 PM, Dennis Haupt wrote:

> please read some beginner tutorials.
> page switch:
> RootPanel.get("content").add(page1());
> RootPanel.get("content").clear();
> RootPanel.get("content").add(page2());
>
> Am 29.07.2012 19:47, schrieb nessrinovitta:
> > How does this work exactly ?? As I understood in the .HTML page I define
> > the divs I need and then form each Ui  java class I use the methode
> > RootPanel.get("content").add(Widget());
> > Is this true ?, Does anyone have an example ??
>
>
> --
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

-- 
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: New version not being detected by browser

2012-07-30 Thread Ernani Sottomaior
Thanks J.

but I remember reading that gwt apps are meant to be cached... (early in
version 1.3 - 1.4)
My app now compiles as 780k .cache.html files (even using
deferred-binding).
This approach would download 780k for each tab opened in the browser... is
this correct?

I thought these generated files would be cached by browsers.
I was assuming the compiler generated unique filenames every new
compilation...
The main JS would be downloaded everytime (small file) and then would get
from cache (or download) those 780k.
If the filename changed, it would not be in browser's cache. Can GWT work
this way? Why not?

Thanks
ERS


On Mon, Jul 30, 2012 at 3:19 AM, Johannes Barop  wrote:

> Hello,
>
> you have to configure your server to tell the clients to never cache
> .nocache.html files.
>
> See:
> https://developers.google.com/web-toolkit/doc/latest/FAQ_DebuggingAndCompiling#What%27s_with_all_the_cache/nocache_stuff_and_weird_filenames
>
> J.
>
> Am 29.07.2012 um 04:55 schrieb ERS:
>
> > Hello all.
> >
> > I'm facing an issue almost everytime I upload a new version of my app
> > to tomcat.
> > The browser does not detect that there is a new app ... and the RPC
> > calls fail.
> > Then I have to click refresh a few times (or CTRL+F5) ... then the
> > browser gets the new version.
> > But end-users dont know that and may quit early...
> >
> > Is it normal? What should I do during deployment?
> > Thanks
> >
> > --
> > You received this message because you are subscribed to the Google
> Groups "Google Web Toolkit" group.
> > To post to this group, send email to google-web-toolkit@googlegroups.com
> .
> > To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> > For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
> >
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

-- 
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 with ScrollTable

2012-07-30 Thread PC
 ScrollTableIssue : Header and datatables of a scrolltable are misaligned 
when using horizontal scroll.
Test case: I have a scrollTable which is populated dynamically. (The rows 
and columns are calculated on fly and data is populated). My ScrollTable 
supports both horizontal and vertical scroll. When I have lot of columns 
and I scroll horizontally to view the data, I see a misalignment in the way 
header & dataTables are rendered. I suspect GWT rendering is happening 
slowly and it is causing the issue

The issue has been reported and further details can be found at 
http://code.google.com/p/google-apps-script-issues/issues/detail?id=1632 
location.

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



"This is not a GUI class and can't be edited graphically."

2012-07-30 Thread Charlie
Recently re-installed Eclipse Indigo 3.7 and all of thw GWT stuff. Now GWT 
Designer can't seem to load projects I was working on before; I get the 
error in my topic title for the composite file and "Unknown GUI toolkit" in 
the first file that was created. I don't mind copying the code and pasting 
it into new GWT Java Projects, but Eclipse won't let me create these from 
the new project menu. I see the Google services and development tools 
button in eclipse but not the Designer toolbar button that I think was 
there before.
 
What could the problem be? I tried reinstalling GWT SDK but that's not 
solved the issue. Has anyone seen anything like this before?

-- 
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/-/uTfGDLC4PQYJ.
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 1.5 - OSGi - Invalid type signature

2012-07-30 Thread beyondwcm
thanks, i fixed my problem.
On Wednesday, July 2, 2008 7:50:11 AM UTC+8, Tom Davies wrote:
>
> I had a similar problem using 1.5RC1 and felix 1.0.4. 
>
> My problem was that the OSGi bundle which contained my concrete 
> RemoteServiceServlet was not able to see the custom serialiser for 
> ArrayList, as it didn't import that package. 
>
> This is not an error as far as the server is concerned -- it simply 
> serialises the ArrayList as it would any Java object. But because the 
> custom serialiser *is* available at compile time, the serialisation 
> ids for ArrayList differ between the client and the server. 
>
> I fixed this by adding DynamicImport-Package: com.google.gwt.* to my 
> OSGI bundle's manifest. 
>
> It would have been nice to have a better client side error message for 
> this eventuality (I first encountered the problem passing an ArrayList 
> from server to client, while the OPs occurred in the reverse direction)

-- 
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/-/sc9mvcCnSxYJ.
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: DevMode not working in Chrome after update

2012-07-30 Thread Max Völkel
Chrome Canary Version 22.0.1221.0 canary on OS X Lion has the same problem. 
Manual install via "Drop Here" on Extension pane, but plugin wont start.

-- 
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/-/-9UmaBI9nJsJ.
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.



Delegate an Editor's edit() & save() functionality via Activities & Places' Presenter to an Activity class?

2012-07-30 Thread Thomas Broyer
I generally expose the EditorDriver to the presenter using a createdDriver 
method on the view. The presenter calls the edit, flush and hasErrors, not the 
view.

Also note this has nothing to do with Activities, it's MVP.

-- 
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/-/F5lkzSu-rD8J.
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: Accumulate EntityProxy properties from subsequent RF calls

2012-07-30 Thread Jens
I think you want RequestFactoryEditorDriver.getPaths() and set the String 
array into RequestFactory.find(id).with(paths) or 
RequestFactory.yourRequestContext().yourRequest().with(paths)

-- J.

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

2012-07-30 Thread Jens
If you have an app that has logging enabled then you can override the log 
level via GET parameter, e.g. &logLevel=INFO. As far as I know you can't 
tell the client app to only log things in com.example.app.client.x.y.z. So 
its all or nothing. An additional GET parameter to enable specific loggers 
would be nice to have.

-- J.

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



Accumulate EntityProxy properties from subsequent RF calls

2012-07-30 Thread bloo
Is there a way to accumulate the properties of an EntityProxy as I call 
RequestContext.find() with different propertyRefs, so that I'm building a 
fuller client-side EntityProxy that I can push into an Editor?  I have a 
display-only Editor that displays values as they're requested from the 
server, but I want to request properties piece-meal as the user navigates 
this Editor.  Having navigated the entire Editor (think TabLayoutPanel, 
each tab being another List property of the same EntityProxy), there should 
be a very full EntityProxy object that is being driven into the Editor.

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



AsyncDataProvider and CellTree

2012-07-30 Thread Thad
I have a CellTree in which I want to represent something similar to a 
directory listing (actually represented in database records):

public class DirectoryObject implements Serializable {
public String name;
public String type; // 'file' or 'folder'
public int group;
...
}

This listing comes from a server application which the user must log into. 
Naturally I can't call the RPC to populate the tree until the login takes 
place.

My wish is to draw the UI and upon login (or upon pressing a 'List' or 
'Refresh' button to return an ArrayList. From this I 
populate the previously empty tree. Objects of type 'folder' will be the 
branch nodes and will require a new RPC call with the name as a parameter 
to find the children (null gets me the highest level).

My question is how, once the empty tree is present, to trigger that call 
and start my listing. So far I've got what you see below, but I'm not sure 
if it's right and I'm stumped on the UiHandler for my list button (at the 
very bottom). I'm trying to follow the CellTree examples, but they use 
static data or don't start empty.

public class DirectoryPanel extends Composite {

  private static DirectoryPanelUiBinder uiBinder = GWT
  .create(DirectoryPanelUiBinder.class);

  interface DirectoryPanelUiBinder extends
UiBinder {
  }
  
  private static class MyDataProvider extends 
AsyncDataProvider {

private String folderName;

public MyDataProvider(DirectoryObject directory) {
  if (directory != null)
folderName = directory.name;
}

@Override
protected void onRangeChanged(HasData display) {
  final Range range = display.getVisibleRange();

  AsyncCallback> callback = 
  new AsyncCallback>() {
@Override
public void onFailure(Throwable caught) {
  Window.alert((new GwtOptixException(caught)).getMessage());
}

@Override
public void onSuccess(ArrayList result) {
  int start = range.getStart();
  GWT.log("onRangeChanged, start: "+start);
  updateRowData(start, result);
}
  };
  Cold.getRpcService().getDirectoryListing(folderName, callback);
}
  }
  
  private static class DirectoryTreeModel implements TreeViewModel {

private SingleSelectionModel selectionModel = 
new SingleSelectionModel();

public DirectoryTreeModel() {
  selectionModel.addSelectionChangeHandler(new 
SelectionChangeEvent.Handler(){
public void onSelectionChange(SelectionChangeEvent event){
  /* Huh? 
from 
https://groups.google.com/forum/?start&hl=en#!searchin/google-web-toolkit/CellTree$20asyncdataprovider/google-web-toolkit/jdQLj_oZTek/fuKmFMrbghsJ
but there's no getSelectedObject() in SelectionChangeEvent
*/
  //DirectoryObject rec = 
(DirectoryObject)event.getSelectedObject();
}
  });
}

@Override
public  NodeInfo getNodeInfo(T arg0) {
  if (arg0 instanceof DirectoryObject) {
Cell cell = new AbstractCell() {
  @Override
  public void render(Context context, DirectoryObject value,
  SafeHtmlBuilder sb) {
if (value != null) {
  sb.appendEscaped(value.name);
}
  }
};
MyDataProvider provider = new MyDataProvider((DirectoryObject)arg0);
return new DefaultNodeInfo(provider, cell, 
selectionModel, null);
// or return new DefaultNodeInfo(provider, cell); 
??
  }
  return null;
}

@Override
public boolean isLeaf(Object arg0) {
  return arg0 != null && ((DirectoryObject)arg0).name != null &&
  ((DirectoryObject)arg0).type.equals('file');
}
  }
  
  @UiField(provided = true)
  CellTree tree;
  @UiField
  Button list;
  
  DirectoryTreeModel treeModel;

  public DirectoryPanel() {
treeModel = new DirectoryTreeModel();
tree = new CellTree(treeModel, null);

initWidget(uiBinder.createAndBindUi(this));
  }
  
  @UiHandler("list")
  void onList(ClickEvent event) {
// What 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/-/ZUz8OJ8PTvsJ.
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 istantiate Activity

2012-07-30 Thread Juan Pablo Gardella
Use event bus to communicate the view with the activity.

2012/7/30 bond 

> Hi, anyone has some ideas about this problem?
> It is strange that no one has this need!
>
> Thanks
>
> Il giorno sabato 14 luglio 2012 10:44:14 UTC+2, bond ha scritto:
>>
>> Any ideas?
>>
>> Thanks!
>>
>> Il giorno giovedì 12 luglio 2012 14:53:09 UTC+2, bond ha scritto:
>>>
>>> Hi guys,
>>> I've a design question about mvp pattern in GWT. I'm using
>>> Activity,Place and View.
>>> I've some view that shows a list of products (every view show a
>>> particular list of objects). I'd like to group these views in a single view
>>> that has a TabPanel and in every tab I want to show the view that I created
>>> (see attachment).
>>>
>>> I'd like to include every view in the one that include all but I can't
>>> because in this way the Activity is not associated to the view.
>>>
>>> Which is the best way to model this scenario?
>>>
>>> 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/-/Hj0mktV_kLgJ.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>

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



GWT & SimpleRemoteLogHandler

2012-07-30 Thread dhoffer
I'm assuming that SimpleRemoteLogHandler will send logging to the server 
based on the client's log configuration. Is there a way to make this 
smarter...so that it uses the server's log configuration to know what to 
log and send? The most important aspect of this is to allow log level 
changes without a rebuild of the app. Or possibly has someone written a 
RemoteLogHandler that does this?

-- 
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/-/VTctbNZUz0YJ.
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 istantiate Activity

2012-07-30 Thread bond
Hi, anyone has some ideas about this problem?
It is strange that no one has this need!

Thanks

Il giorno sabato 14 luglio 2012 10:44:14 UTC+2, bond ha scritto:
>
> Any ideas?
>
> Thanks!
>
> Il giorno giovedì 12 luglio 2012 14:53:09 UTC+2, bond ha scritto:
>>
>> Hi guys,
>> I've a design question about mvp pattern in GWT. I'm using Activity,Place 
>> and View.
>> I've some view that shows a list of products (every view show a 
>> particular list of objects). I'd like to group these views in a single view 
>> that has a TabPanel and in every tab I want to show the view that I created 
>> (see attachment).
>>
>> I'd like to include every view in the one that include all but I can't 
>> because in this way the Activity is not associated to the view. 
>>
>> Which is the best way to model this scenario?
>>
>> 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/-/Hj0mktV_kLgJ.
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: Digest for google-web-toolkit@googlegroups.com - 24 Messages in 16 Topics

2012-07-30 Thread nesrine doghri
Help please !

-- 
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 VS Cloud Endpoints (App Engines Java Rest API)

2012-07-30 Thread YatiRaj B
Hello Kevin,

Sorry for late reply!
Finally I got to test your way of doing it. It worked but only partially! :)

Here is the info:

   1. I converted the POJO Square class into a JDO class and created the
   endpoint as explained by you. It all went well.
   2. I tried with both the browser and CURL method
   3. The GET worked fine with the empty JSON
   4. The POST "partially" worked as in everytime I entered new item, it
   only created the new ID for it but all the other variables inside the
   entity were empty. I mean after I do GET on all items. As below:

http://localhost:/_ah/api/squareendpoint/v1/square

{
  "items" : [ {
"id" : 1,
"var" : 0,
"square" : 0
  }, {
"id" : 2,
"var" : 0,
"square" : 0
  }, {
"id" : 3,
"var" : 0,
"square" : 0
  }, {
"id" : 4,
"var" : 0,
"square" : 0
  } ]
}


I executed POST as follows via CURL:
*C:\Curl>*curl --header 'Content-Type: application/json' -X POST -d  '{\"*
var*\":\"*7*\"}' http://localhost:/_ah/api/squareendpoint/v1/square

I tried to insert 3, 3, 7, 6 in the order. All four entities were returned
without their values. Only IDs could be seen.

BTW, I got the trusted tester access... not sure how to use it but I'm
gonna play with it soon. Do you know how or what changes?

Thank you!!
Raj


On Tue, Jul 17, 2012 at 8:50 PM, YatiRaj B  wrote:

> Hi Kevin,
>
> Sure I'll try on a JDO Pojo and let you know. Plz give me some time, I'm
> stuck somewhere...
>
> Thank you for your support
> Raj.
>
>
>
> On Tue, Jul 17, 2012 at 12:48 PM, Kevin Moore  wrote:
>
>> Raj,
>> I have not tried to create a service as you did, I did it with a judo
>> pojo.
>>
>> can you please try the steps I suggested, using a
>> pojo , very simple one, then when it works modify the service to ignore
>> the pojo and see what happens.
>> On Jul 17, 2012 3:08 AM, "YatiRaj B"  wrote:
>>
>>> Hello Kevin,
>>>
>>> It didn't work for me :(
>>>
>>> I'm working on HP 64bit WIndows Vista. Is that a problem for some
>>> reason? Not sure!
>>>
>>> Here's what I have/did:
>>>
>>>1. I have everything latest: Juno, GPE 1.7 etc
>>>2. The system did behave as explained by you when I changed Facet to
>>>1.6
>>>3. After the errors are gone, I right clicked the *Project* ->
>>>Google -> Generate Cloud Endpoint and it gave me error.
>>>4. I know this is *not *what you told. But I tried as it was on
>>>Google IO video
>>>5. As per your suggestion, I clicked on *POJO*->Google->Generate
>>>Cloud Endpoint and it gave me error: *This is not a JDO/JPA entity
>>>class*
>>>6. Of course it is not. But isn't it supposed to do on any class I
>>>want a service from (as long as I've the API annotations)?
>>>7. I'm pasting my example classes here below. Basically I created a
>>>class which accepts a number and returns the square of it. And another
>>>class that will work as my "Servlet" if I were to write a servlet: this
>>>takes the number from client requests and creates a square class with 
>>> this
>>>number and gets the square of the number.
>>>
>>> *POJO Square:*
>>> public class Square {
>>>
>>> int var;
>>> int square;
>>>  public Square(int var) {
>>> this.var = var;
>>>  this.square = var * var;
>>> }
>>>
>>> public int getVar() {
>>>  return var;
>>> }
>>>
>>> public void setVar(int var) {
>>>  this.var = var;
>>> setSquare(var * var);
>>> }
>>>
>>> public int getSquare() {
>>> return square;
>>> }
>>>
>>> private void setSquare(int square) {
>>> this.square = square;
>>>  }
>>> }
>>>
>>>
>>> *POJO SquareEndPoint:*
>>> @Api(name = "square")
>>> public class SquareEndpoint {
>>>
>>> @ApiMethod(name = "square.getSquare")
>>>  public int getSquare(int number){
>>> Square sq;
>>> sq = new Square(number);
>>>  return sq.getSquare();
>>> }
>>> }
>>>
>>>
>>> I'll try on actual JDO/JPA class very soon. It may work but my other
>>> question remains: storing to DataStore may not me my only intention to
>>> create these endpoints. I might provide such simple service as: Celsius
>>> to Fahrenheit etc... But that's a different question. Let me 1st get this
>>> working! :)
>>>
>>> your views on it?
>>>
>>> Thank you!
>>> Raj.
>>>
>>>
>>> On Tue, Jul 17, 2012 at 9:32 AM, YatiRaj B  wrote:
>>>
 Hi Kevin,

 Deeply appreciate your reply as promised! :)

 I'll check if it works for me very soon today and let you know... just
 started the day :P

 Thanks again!
 Raj.



 On Tue, Jul 17, 2012 at 1:27 AM, Kevin Moore wrote:

> As Promised...
>
>
> For some reason... do the following...
>
> *Assumptions..*
>
>- You have the Latest Eclipse(Juno)
>- You have installed all the latest APPEngine SDK 1.70
>- You have Java SDK 1.70 at least..
>- You Created a POJO
>- You Generated your endpoint class by right-clicking on the
>POJO->Google->Generate Cloud Endpoint Class
>
>
> *The symp

rpc error

2012-07-30 Thread Rafael Campaña
Hello GWT Community,

I have tested gwt 2.5 with my gwt 2.4 project and I get rpc errors on every 
rpc call. A Hello world project work fine but I can't to upgrade my gwt 2.4 
project. I would like to prove the performance  improvements!!

I have updated eclipse gwt plugings and I have  replaced the gwt-serv

java.lang.NoSuchFieldError: CHARSET_UTF8
at 
com.google.gwt.user.server.rpc.impl.SerializabilityUtil.generateSerializationSignature(SerializabilityUtil.java:862)
at 
com.google.gwt.user.server.rpc.impl.SerializabilityUtil.getSerializationSignature(SerializabilityUtil.java:333)
at 
com.google.gwt.user.server.rpc.impl.SerializabilityUtil.encodeSerializedInstanceReference(SerializabilityUtil.java:217)
at 
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.getObjectTypeSignature(ServerSerializationStreamWriter.java:651)
at 
com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java:123)
at 
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter$ValueWriter$8.write(ServerSerializationStreamWriter.java:153)
at 
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeValue(ServerSerializationStreamWriter.java:585)
at com.google.gwt.user.server.rpc.RPC.encodeResponse(RPC.java:605)
at com.google.gwt.user.server.rpc.RPC.encodeResponseForSuccess(RPC.java:471)
at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:563)
at 
com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:208)
at 
com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:248)
at 
com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

And here is the request/response headers:
[ERROR] 500 - POST /portusgwt/rpc (127.0.0.1) 57 bytes
   Request headers
  Host: 127.0.0.1:
  User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.5) Gecko/20100101 
Firefox/10.0.5 Iceweasel/10.0.5
  Accept: 
text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
  Accept-Language: es-es,es;q=0.8,en-us;q=0.5,en;q=0.3
  Accept-Encoding: gzip, deflate
  Connection: keep-alive
  Cookie: 
__utma=96992031.1351205333.1342769624.1343295684.1343630091.10; 
__utmz=96992031.1342769624.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); 
__utmb=96992031.2.10.1343630091; __utmc=96992031
  Referer: 
http://127.0.0.1:/PortusGWT.html?gwt.codesvr=127.0.0.1:9997
  X-GWT-Permutation: HostedMode
  X-GWT-Module-Base: http://127.0.0.1:/portusgwt/
  Content-Type: text/x-gwt-rpc; charset=utf-8
  Content-Length: 190
  Pragma: no-cache
  Cache-Control: no-cache
   Response headers
  Content-Type: text/plain

¿With this version is necesary to update development plugin? ¿May be an 
error with Content-Type header? 


Thank and regards, Rafael.

-- 
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/-/zSk2-qEXO44J.
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: ListDataProvider vs AsyncDataProvider

2012-07-30 Thread Ümit Seren
That's not correct. You can still have a ListDataProvider that fetches all 
8000 rows from the server but if you use a Pager and set it to page size 10 
it will only render 10 items at a time. 
But I would not recommend it as you experienced yourself that parsing 
10,000 records takes around 2 minutes. The reason why it takes so long is 
that it takes quite a long time to de-serialize 10.000 items (in case you 
use RPC). I think de-serializing JSON directly using for example JsonUtils 
which uses the native browser JSON parser should be faster than using the 
RPC transport format. 
But still I wouldn't recommend to transmit 10.000 rows. I guess around 
2.000 should be fine. 
But if you don't transmit all records or if you want to support server-side 
searching you have to use AsyncDataProvider. 
However I also wouldn't transmit only 10 rows at a time as you suggested 
because the overhead of the HTTP request is not worth when you transmit 
only 10 items at a time. 
You can have a CellTable with page size 10 but use an AsyncDataProvider 
backed by a ListDataProvider. When the CellTable is rendered it will call 
the onRangeChanged event of the AsyncDataProvider. You fetch 2.000 rows and 
cache it in a ListDataProvider or normal list. Then if you go to the next 
page (rows 11-20) you don't send a request to the backend because you 
already have fetched rows 0-2.000, so you just get it from the 
ListDataProvider that you have stored/cached. 

2.) When you click on the last button of the simplepager the onRangeChanged 
of the AsyncDataProvider will be called and you can fetch the last 10 rows 
from the backend or your cached in memory list.

3.) I don't understand, can you elaborate

4.)  It depends. If you transmit all records in one request then you can do 
client side searching. However if you have thousands of rows or you search 
fields which you don't transmit to the client you have to do server side 
searching and for this you have to use an AsyncDataProvider. You can also 
mix both concepts. 

On Sunday, April 29, 2012 8:08:08 AM UTC+2, tong123123 wrote:
>
> in a search page, assume the result return many record like 8000 records, 
> and in the simplepager, each page display only 10 records, if using 
> ListDataProvider, the 8000 records will be sent to client at once time and 
> then render the celtable with all 8000 records in one time, the result is 
> static.
> if using AsyncDataProvider, each time the server only sent 10 records to 
> client.
> 1) so AsyncDataProvider response is much faster, is this correct?
> 2) but how about if the user press the "last button" in the simplepager 
> when the celltable using AsyncDataProvider? the speed is still similar to 
> get the first page? that is, it only fetch records from 7990 to 8000 
> records only, bypass all the others (record before 7990)?
> 3) assume user input criteria fieldA = "XXX", if using asyncDataProvider, 
> while searching, other user may enter record which fulfill the criteria 
> fieldA = "XXX", so the total number of records in simpepager is continually 
> changing? and so the first ten records in first page is keep continually 
> changing?
> 4) anyway, in my case (searching with result return thousands records), 
> AsyncDataProvider is more suitable then using ListDataProvider?
>
> 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/-/2Sj9GiwkwbIJ.
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: BreadCrumb implemention in GWT2.4

2012-07-30 Thread Ümit Seren
It really depends what kind of breadcrumb support you want to have.
The widget itself to display breadcrumbs is probably quite simple (List of 
Hyperlink widgets separated by ">"). However the harder part is to populate 
the breadcrumb. 

Basically you distinguish between breadcrumbs which show to the current 
page hierarchy or breadcrumbs which show the navigational history. 
For example if your url encodes the hierarchy of your current page (i.e. 
#product/{id}/detail ) you can read that out and display a breadcrumb (i.e. 
Products > {id] > Details). 
However in case you want to display other information in your breadcrumbs 
(say title of the product) you probably have to access the backend to 
retrieve the information.
Navigational history can also be displayed by using the History mechanism 
of GWT (you could store each navigation event or place change in a HashMap) 
and display it in the breadcrumb. 
Unfortunately I don't know of any widget which supports these functions out 
of the box and I guess creating a generic one is probably not that use 
because it really depends on your use case. 



On Saturday, July 28, 2012 5:51:44 PM UTC+2, vaibhav jain wrote:
>
>
> Hi,
>
>   Can any one help how to implement breadcrumb in GWT2.4?Is there any 
> widget to achieve this?
> Best Regards,
> Vaibhav
>
>

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



Delegate an Editor's edit() & save() functionality via Activities & Places' Presenter to an Activity class?

2012-07-30 Thread Alexander Orlov
I have an architectural question. I've introduced 
EntityWorkflow
 to 
my Activities & 
Placesenabled
 app. In GWT's 
*Activities & Places* there are the *Presenter* interfaces which is used by 
a view to delegate the implementation of certain action (like edit() & 
save()) to the *Activities* class. So does it make sense to treat an *
EntityWorkflow* as a A&P view and to apply A&P's action delegation feature 
here? Or to speak code-wise:

public class EntityEditorWorkflow {
// Empty interface declaration, similar to UiBinder
interface Driver extends RequestFactoryEditorDriver {
}

private static final Driver driver = GWT.create(Driver.class);

@UiHandler("save")
public void onSave(ClickEvent event) {
 * // implementing the actual SaveEntity code*

Person edited = driver.flush();
if (driver.hasErrors()) {
  // A sub-editor reported errors
}
doSomethingWithEditedPerson(edited);


*  vs. *

*  // ...*
*  presenter.save(entity);*
}
}

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