Re: when to use AsyncDataProvider instead of CellTable.setRowData ?

2011-01-27 Thread Y2i


I think where we have a complex view which has a number of cell widgets 
 displaying different representation of same data,
 or maybe related data, instead of using setRowData, setRowCount on each and 
 every one of them, we can use one AsyncDataProvider to provide data for 
 them.


Yes.  And a single data provider that provides data for multiple displays 
can optimize access to internal cache. If a display requests a range that 
has already been served to a different display, the data provider can simply 
return cached data instead of making request to a server.
 

 one question, do we need to write event handling code for notifying all the 
 cellwidgets that have a common AsyncDataProvider ?
 or AsyncDataProvider will notify them ?


Typically a user (through a pager or a scrollbar) would initiate 
onRangeChange() on the data provider, and the data provider would call the 
display back (setRowData/Count)  right away (if the data is in the 
provider's cache) or from the remote server's callback (if it needs to 
request the data form the server). 

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



Re: chrome - prompting me to install gwt plugin but already installed

2011-01-27 Thread traneHead
Confirming same behaviour on Mac:

GWT Developer Plugin - Version: 1.0.9614
Chrome version 8.0.552.237

Will try the downgrade.


-- 
You received 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: chrome - prompting me to install gwt plugin but already installed

2011-01-27 Thread traneHead
Yepp, the downgrade fixed it.

-- 
You received 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: chrome - prompting me to install gwt plugin but already installed

2011-01-27 Thread Mike.G
Chrome 8.0.552.237 has same problems too.

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



SimplePager - changing page callback

2011-01-27 Thread Stephan T
I'd like to perform some operations when a user, by clicking left or
right arrow in a SimplePager, changes page in a CellTable.

Can't find any suitable callback-methods or methods to override on
SimplePager or CellTable. Any suggestions?

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



Re: BestPractice : Use of the Editor Framework with MVP (Place, Activity) and RequestFactory

2011-01-27 Thread Patrice De Saint Steban
Thanks Thomas,

I haven't think to this solution, and it's a good solution.

On Thu, Jan 27, 2011 at 00:11, Thomas Broyer t.bro...@gmail.com wrote:

 FWIW, we simply copied what they did in the Expenses sample, and we're
 happy with it: add a createEditorDriver in your view (that the presenter
 will call) and do everything else (edit, flush, etc.) in the presenter.
 The createEditorDriver method does the GWT.create and the .initialize().

 --
 You received 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.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.




-- 
Patrice de Saint Steban
patr...@desaintsteban.fr
06 74 11 63 02

-- 
You received 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: chrome - prompting me to install gwt plugin but already installed

2011-01-27 Thread kazuyoshi
I have the same problem.
I installed the older version of plugin, this worked good for some
time, but then, suddenly, it does not work again.
I have uninstall and reinstall over and over again.
I am using Windows 7, 32-bit. Chrome version 8.0.552.237 and
10.0.649.0.

-- 
You received 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: chrome - prompting me to install gwt plugin but already installed

2011-01-27 Thread thrivikram c
Hi All,

I have the same problem.

I install old version of GWT Developer Plugin. It working fine now

Thanks
~V

On Thu, Jan 27, 2011 at 3:03 PM, kazuyoshi finitefi...@gmail.com wrote:

 I have the same problem.
 I installed the older version of plugin, this worked good for some
 time, but then, suddenly, it does not work again.
 I have uninstall and reinstall over and over again.
 I am using Windows 7, 32-bit. Chrome version 8.0.552.237 and
 10.0.649.0.

 --
 You received 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.comgoogle-web-toolkit%2bunsubscr...@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: Must getters and setters in an EntityProxy be a matched set?

2011-01-27 Thread Thomas Broyer


On Thursday, January 27, 2011 1:55:11 AM UTC+1, Eric Andresen wrote:

 I guess a better wording for my question is, are either of the following 
 flows allowed?   The goal is to create an object on the server side without 
 persisting it, display its default values and edit them on the client side, 
 and then persist it back to the server side.

 1)
   Create Request Context RC1
   Call RC1.createAndInit()  // Returns proxy1
   Create Request Context RC2
   Call Editor.edit(proxy1, RC2)
   Call RC2.persist(proxy1)   - Tries to call 
 non-existant setters


This is supposed to work.

BUT

Because the object doesn't have an ID, when you send the object back to the 
server, it cannot loadDomainObject and will instead createDomainObject 
(or Locator#find vs. Locator#create to use the Locator parlance instead of 
the more low-level ServiceLayer one). So, to accurately reflect the values 
it has been sent back from the createAndInit() call, because there's no way 
to associate the two objects, it has to set each property.
 

 2)
   Create Request Context RC1
Call RC1.createAndInit()  // returns proxy1
Call Editor.edit(proxy1, RC1) 
 ---Throws java.lang.IllegalStateException: A request is already in 
 progress
Call RC1.persist(proxy1)


You cannot reuse a RequestContext after you fire()d it. 
 

-- 
You received 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: Announcing GPE/GWT 2.2M1

2011-01-27 Thread Thomas Broyer
Fortunately: yes! (thanks to Robert Munteanu and Jeff Larsen)

See https://groups.google.com/d/msg/google-gin/aIz0vfGZyFw/XfNTpUvVWYUJ 
and https://groups.google.com/d/msg/google-gin/cFIKn0lfV0c/6H-JgxKO5KEJ

-- 
You received 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: Announcing GPE/GWT 2.2M1

2011-01-27 Thread Thomas Broyer
When will it be released to Maven central? (or in other words, should I wait 
or deploy it myself to our local repo?)

-- 
You received 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: dilemma in identifying correct Activities, Presenters and Views in New Google Group-like app

2011-01-27 Thread Thomas Broyer
IMO, it depends how connected and coupled you want your components. 
Having 3 display regions, you have very specialized and loosely coupled 
activities, and they have to communicate through events on the event bus. 
With a single display region, you have a more complex activity but its inner 
parts can call one another more directly.

The fact that you don't always have the center-north and center-south 
regions is not really relevant here (well, if your activities start 
asynchronously, you might experience some flicker when switching between 
two places that both need the regions, but that's another issue – 
disclaimer: we've not yet (re)introduced such optional regions in our app, 
so I have no concrete experience with 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 with Hibernate and Oracle

2011-01-27 Thread Néstor Boscán
I'll send you my version:

package hibernate;

import java.beans.PropertyDescriptor;

import java.io.InputStream;

import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
import java.util.List;

import org.apache.commons.beanutils.PropertyUtils;

import org.hibernate.EntityMode;
import org.hibernate.Hibernate;
import org.hibernate.Session;
import org.hibernate.metadata.ClassMetadata;
import org.hibernate.proxy.HibernateProxyHelper;

import java.io.Serializable;

import java.sql.Blob;

import java.util.*;

import org.apache.log4j.Logger;

import org.hibernate.proxy.HibernateProxy;

public class HibernateCleaner {
private static final Logger logger =
Logger.getLogger(HibernateCleaner.class);

public static Object clean(Session session, Object obj) throws Exception
{
return (clean(session, obj, new HashMapInteger, Object()));
}

private static Object clean(Session session,
Object obj,
MapInteger, Object visitedObjects) throws
Exception {
Object newObj;
Map.Entry m;
Class clazz;
Object[] array;
Collection collection;
Map map;
PropertyDescriptor[] descriptors;
String property;
ClassMetadata clazzMetaData;
int index, length, hashCode;

if (obj == null)
return (null);

if ((obj instanceof Boolean) || (obj instanceof Number) ||
(obj instanceof Character) || (obj instanceof String) ||
(obj instanceof Blob) || (obj instanceof InputStream))
return (obj);

if (obj instanceof Date)
return (new Date (((Date) obj).getTime()));

if (obj instanceof Calendar)
return (((Calendar) obj).clone());

if (obj instanceof Object[]) {
array = (Object[]) ((Object[]) obj).clone();
length = array.length;
for (index = 0; index  length; index++)
array[index] = clean(session, array[index], visitedObjects);

return (array);
}

if (obj instanceof Object[]) {
array = (Object[]) ((Object[]) obj).clone();
length = array.length;
for (index = 0; index  length; index++)
array[index] = clean(session, array[index], visitedObjects);

return (array);
}

if (obj instanceof Collection) {
collection = createCollection((Collection) obj);

if (Hibernate.isInitialized(obj)) {
for (Object member: (Collection) obj)
collection.add (clean(session, member, visitedObjects));
}

return (collection);
}

if (obj instanceof Map) {
map = createMap((Map) obj);

if (Hibernate.isInitialized(obj)) {
for (Object member: ((Map)obj).entrySet()) {
m = (Map.Entry) member;
clean(session, m.getKey(), visitedObjects);
clean(session, m.getValue(), visitedObjects);
map.put (m.getKey(), m.getValue());
}
}

return (map);
}

hashCode = System.identityHashCode(obj);
if (visitedObjects.containsKey(hashCode))
return visitedObjects.get(hashCode);

if (obj instanceof HibernateProxy) {
clazz =
HibernateProxyHelper.getClassWithoutInitializingProxy(obj);
newObj = clazz.newInstance();
}
else
newObj = obj.getClass().newInstance();

visitedObjects.put(hashCode, newObj);

if (!Hibernate.isInitialized(obj)) {
if (session != null) {
clazzMetaData =
session.getSessionFactory().getClassMetadata(newObj.getClass());
Serializable id = clazzMetaData.getIdentifier(obj,
EntityMode.POJO);
clazzMetaData.setIdentifier(newObj, id, EntityMode.POJO);
}
} else {
descriptors = PropertyUtils.getPropertyDescriptors(newObj);
length = descriptors.length;
for (index = 0; index  length; index++) {
property = descriptors[index].getName();
if (!property.equals(class)) {
try {
PropertyUtils.setProperty(newObj, property,
  clean(session,
PropertyUtils.getProperty(obj, property), visitedObjects));
} catch (NoSuchMethodException e) {
}
}
}
}

return (newObj);
}

private static Collection createCollection(Collection obj) throws
Exception {
Collection newObj = null;

if (obj instanceof SortedSet)
newObj = new TreeSet ();
else if (obj instanceof Set)
newObj = new 

Re: Receiver.onViolation() is called several times

2011-01-27 Thread Thomas Broyer
That's because when there's an error or violation, the RequestContext is 
un-frozen and made reusable, but (obviously) not cleared. Given that 
Request#fire(Receiver) is equivalent to Request#to(Receiver)+Request#fire() 
(where Request#fire() is equivalent to RequestContext#fire()), what you're 
doing here is equivalent to:

First time:
context.getItem(id).to(new Receiver());
context.fire();

Second time:
context.getItem(id).to(new Receiver());
context.getItem(id).to(new Receiver());
context.fire();

Third time:
context.getItem(id).to(new Receiver());
context.getItem(id).to(new Receiver());
context.getItem(id).to(new Receiver());
context.fire();

Each time, you enqueue a new *invocation* with its own new Receiver, and 
because validation is done between processing *operations* and *invocations*, 
the violations are reported to each and every Receiver on the client-side.

If you put a break-point in your Receiver, you'll see that each onViolation 
call is made on a distinct Receiver instance.

So, what should you do?

Rule of thumb: if you somehow process violations, make sure you enqueue *
invocations* once only and only re-fire().

In samples using RF with Editors for instance (DynaTableRf, Expenses), 
you'll see that the call to save()/persist() is *enqueued* very early 
(sometimes even before the RequestFactoryEditorDriver#edit() method is 
called) and when clicking the save button it only fire()s the 
RequestContext.

-- 
You received 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 with Hibernate and Oracle

2011-01-27 Thread Néstor Boscán
I found this one on the web:

http://maherkilani.blogspot.com/2008/12/hibernate-proxy-cleaner.html

Regards,

Néstor Boscán

On Thu, Jan 27, 2011 at 2:15 AM, Nagin Kothari naginkoth...@gmail.comwrote:


 Hi,
 Can you point to some link that provide sample code or utility to clean the
 Hibernate POJO (Hibernate Cleaner class) as you have mentioned in this mail.
 It would greately help me too.

 Thanks in advance,

 Nagin
 2011/1/26 Néstor Boscán nesto...@gmail.com

 This is very tipical in Hibernate applications that have to serialize
 objects through the network be it GWT, Web Services, JSON, etc. Hibernate
 will leave his own POJO in your objects for lazy initialization purposes.
 When GWT or a Web Service tries to serialize the objects and opens the
 hibernate POJO it will throw LazyInitializationException because the
 connection is already closed. What I've done in my applications is to clean
 the POJO of any Hibernate references. This is done with a Hibernate Cleaner
 class. On the web there are a couple of examples of this.

 Regards,

 Néstor Boscán

 On Tue, Jan 25, 2011 at 2:33 PM, Debashish mr.debash...@gmail.comwrote:

 Hi

 I am trying for a sample using GWT and database layer as Hibernate
 with Oracle on Google Aps server.

 I have done a sample for Hibernate with JSP as presentation layer,
 which is working fine.
 But the same approach is not working with GWT.

 Here is a verygood link on this topic

 http://code.google.com/webtoolkit/articles/using_gwt_with_hibernate.html
 and my approach is almost similar.

 I have followed the below approach,
 The RemoteServiceServlet makes a call to Hibernate layer and tries the
 initializes the SessionFactory as below,
  sessionFactory = new
 Configuration().configure().buildSessionFactory();

 I have added the jars necessary for the Hibernate layer (and
 classes12.jar for oracle driver).

 However while running , it is giving me an error as below,

 
 Initial SessionFactory creation failed.java.lang.NoClassDefFoundError:
 java.net.Socket is a restricted class. Please see the Google  App
 Engine developer's guide for more details.
 [ERROR] javax.servlet.ServletContext log: Exception while dispatching
 incoming RPC call
 com.google.gwt.user.server.rpc.UnexpectedException: Service method
 'public abstract java.lang.Long

 com.google.musicstore.client.MusicStoreService.saveAccount(com.google.musicstore.client.dto.AccountDTO)'
 threw an unexpected exception: java.lang.ExceptionInInitializerError
at
 com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:
 378)

 
 I have one through some of the threads which suggested me to download
 the google apps jar files and try it. I have downladed it. but there
 is no proper direction on how to make use of which jar file.

 Have anybody tried the same. Please let me know if anything I am doing
 wrong.
 *** Note that I am using Oracle 9.2 as local database.

 Thanks
 Dev

 --
 You received 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.comgoogle-web-toolkit%2bunsubscr...@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.comgoogle-web-toolkit%2bunsubscr...@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.comgoogle-web-toolkit%2bunsubscr...@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: chrome - prompting me to install gwt plugin but already installed

2011-01-27 Thread traneHead
+1 on Mac latest Chrome 8

-- 
You received 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: chrome - prompting me to install gwt plugin but already installed

2011-01-27 Thread traneHead
...to the downgrade being a temporary fix, the problem with the new plugin 
re-appears after a couple of hours.

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



Re: Is it possible to pass parameters/data from Server to Client package?

2011-01-27 Thread Irene
Sorry for the delay!

You were completely right, I used a return and changed the prototype
definition of RPC functions (except Async one) to return a List of
Strings
and it worked.

Thanks :D



On Jan 21, 6:19 pm, Y2i yur...@gmail.com wrote:
 On Friday, January 21, 2011 8:42:39 AM UTC-8, Irene wrote:

  So...what do you suggest is just finishing ConnectServiceImpl with a
  return
  with the list value and that's it?

 Yes, return a string or something more appropriate for the application.
 This gives more info on GWT 
 RPC:http://code.google.com/webtoolkit/doc/latest/tutorial/RPC.html
 http://code.google.com/webtoolkit/doc/latest/tutorial/RPC.html

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



Apache and Tomcat: Proxy, Caching and Compression configuration

2011-01-27 Thread P.G.Taboada
Hi there,

it took me a while to get all pieces together so I wanted to share my
configuration. I have an apache as a proxy, tomcat serving the app and
lots of clients. So I wanted to setup compression and expiration
headers properly.

http://bit.ly/GwtApacheConfig

Anyone with a better config?

brgds,

Papick

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



Re: Cell Table Pager not showing rows in the table.

2011-01-27 Thread suersh babu
Thank a lot,  because of ListDataProvider the page is not showing up.

This is updated code, now the page for cell table works fine :)

public class CellTableWithPager implements EntryPoint {
CellTableSampleTable sampleCellTable =  new CellTableSampleTable();
ListSampleTable sampleTableList = new ArrayListSampleTable();

@Override
public void onModuleLoad() {
VerticalPanel sampleTablePanel = new VerticalPanel();

sampleTableList.add(new SampleTable(01, emp1));
sampleTableList.add(new SampleTable(02, emp2));
sampleTableList.add(new SampleTable(03, emp3));
sampleTableList.add(new SampleTable(04, emp4));
sampleTableList.add(new SampleTable(05, emp5));

final ListDataProviderSampleTable dataProvider = new
ListDataProviderSampleTable();
TextColumnSampleTable IdColumn = new TextColumnSampleTable() {
public String getValue(SampleTable sample) {
return sample.id;
}
};

TextColumnSampleTable nameColumn = new TextColumnSampleTable() {
  public String getValue(SampleTable sample) {
return sample.name;
  }
};

sampleCellTable.addColumn(IdColumn, Id);
sampleCellTable.addColumn(nameColumn, Name);

//sampleCellTable.setRowCount(sampleTableList.size(), true);
///sampleCellTable.setRowData(0, sampleTableList);

SimplePager.Resources pagerResources =
GWT.create(SimplePager.Resources.class);
SimplePager pager = new SimplePager(TextLocation.CENTER,
pagerResources, false, 0, true);

pager.setDisplay(sampleCellTable);
dataProvider.addDataDisplay(sampleCellTable);
dataProvider.setList(new ArrayListSampleTable(sampleTableList));

pager.setPageSize(2);
sampleTablePanel.add(sampleCellTable);
sampleTablePanel.add(pager);
RootPanel.get().add(sampleCellTable);
RootPanel.get().add(pager);
}

public class SampleTable {
private final String id;
private final String name;

public SampleTable(String id, String name) {
this.id = id;
this.name = name;
}
}

}


On Thu, Jan 27, 2011 at 11:13 AM, Y2i yur...@gmail.com wrote:

 Try this:
 Put all your data (4 rows) into a ListDataProviderSampleTable and call
 dataProvider.setDisplay(sampleCellTable)

 --
 You received 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.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.




-- 
*Regards**

Suresh Babu G*

http://www.AccountingGuru.in http://www.accountingguru.in/

-- 
You received 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: when to use AsyncDataProvider instead of CellTable.setRowData ?

2011-01-27 Thread John LaBanca
In general, use AsyncDataProvider/AbstractDataProvider/ListDataProvider when
your data is dynamic or you support paging.  The DataProviders handle
RangeChangeEvents from CellTable and ensures that only the correct data is
sent to the CellTable.

Use CellTable#setRowData() when your data is static and you just want to
display it on the page.  You don't need a data provider if the data is not
going to change while the app is running.

Thanks,
John LaBanca
jlaba...@google.com


On Thu, Jan 27, 2011 at 3:00 AM, Y2i yur...@gmail.com wrote:



 I think where we have a complex view which has a number of cell widgets
 displaying different representation of same data,
 or maybe related data, instead of using setRowData, setRowCount on each
 and every one of them, we can use one AsyncDataProvider to provide data for
 them.


 Yes.  And a single data provider that provides data for multiple displays
 can optimize access to internal cache. If a display requests a range that
 has already been served to a different display, the data provider can simply
 return cached data instead of making request to a server.


 one question, do we need to write event handling code for notifying all
 the cellwidgets that have a common AsyncDataProvider ?
 or AsyncDataProvider will notify them ?


 Typically a user (through a pager or a scrollbar) would initiate
 onRangeChange() on the data provider, and the data provider would call the
 display back (setRowData/Count)  right away (if the data is in the
 provider's cache) or from the remote server's callback (if it needs to
 request the data form the server).

 --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To post to this group, send email to google-web-toolkit@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@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: Must getters and setters in an EntityProxy be a matched set?

2011-01-27 Thread Eric Andresen
Thanks for the info, I had a feeling that the problem was something along
those lines.  I guess I can tweak the Proxy and make the Locator#Create
method also call createAndInit, that should accomplish the same thing with
the only real side effect being that the createAndInit is called twice.

Thanks again,
Eric
---
Eric Andresen


On Thu, Jan 27, 2011 at 4:47 AM, Thomas Broyer t.bro...@gmail.com wrote:



 On Thursday, January 27, 2011 1:55:11 AM UTC+1, Eric Andresen wrote:

 I guess a better wording for my question is, are either of the following
 flows allowed?   The goal is to create an object on the server side without
 persisting it, display its default values and edit them on the client side,
 and then persist it back to the server side.

 1)
   Create Request Context RC1
   Call RC1.createAndInit()  // Returns proxy1
   Create Request Context RC2
   Call Editor.edit(proxy1, RC2)
   Call RC2.persist(proxy1)   - Tries to call
 non-existant setters


 This is supposed to work.

 BUT

 Because the object doesn't have an ID, when you send the object back to the
 server, it cannot loadDomainObject and will instead createDomainObject
 (or Locator#find vs. Locator#create to use the Locator parlance instead of
 the more low-level ServiceLayer one). So, to accurately reflect the values
 it has been sent back from the createAndInit() call, because there's no way
 to associate the two objects, it has to set each property.


 2)
   Create Request Context RC1
Call RC1.createAndInit()  // returns proxy1
Call Editor.edit(proxy1, RC1)
 ---Throws java.lang.IllegalStateException: A request is already in
 progress
Call RC1.persist(proxy1)


 You cannot reuse a RequestContext after you fire()d it.


 --
 You received 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.comgoogle-web-toolkit%2bunsubscr...@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: Announcing GPE/GWT 2.2M1

2011-01-27 Thread Mike.G
good news

-- 
You received 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.1.1. + Deploy in Tomcat

2011-01-27 Thread Florian
can you plz specify what the problem is?
Usual way of deploying for tomcat with eclipse(at least how i do it..)
1) Make sure you have all the libs that you referenced in your \war
\WEB-INF\lib folder, for projects that you referenced in eclipse, do
the same.
2) GWT compile
3) Zip the contents of your war folder. rename the yourprog.zip file
to yourprog.war
3) use the tomcat Manager to deploy the war file.

Florian

-- 
You received 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: chrome - prompting me to install gwt plugin but already installed

2011-01-27 Thread Zagfai
Amazing..

On Jan 27, 4:11 pm, traneHead david.tisel...@gmail.com wrote:
 Yepp, the downgrade fixed it.

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



Sending request with proxy created from other request ?

2011-01-27 Thread Mihail Lesikov
Hi,
the situation is:

@Service(value = PersonManager.class, locator = 
InjectingServiceLocator.class)
  public interface PersonRequest extends RequestContext {
   RequestVoid persist(PersonProxy personProxy);
}

PersonRequest firstRequest = requestfactory.getPersonRequest();
PersonRequest secondRequest = requestfactory.getPersonRequest();
.
PersonProxy  personProxy = firstRequest.create(PersonProxy.class);
personProsy.setName(John);
..
secondRequest.persist(personProxy).fire();
.

As a result, all properties of the parameter person in the 
personManager.persist(Person person) are null. 
Why that happens?
Is there any solution?

Regards, Mihail Lesikov

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



Use hosted mode existing tomcat server and not with embadded jetty server

2011-01-27 Thread tarik.bts...@gmail.com
Hello all,
  I'm new gwt and i'm working in project which i create by using
eclipse and architype of gwt-maven pluging.
So my problem is how to use my existnig tomcat server to debug my
application ?
i made some researsh  what i find is to add noServertrue/noServer
in my gwt-maven pluging configuration in my pom.xml and configure
runTarget but i dont understund how to make this?! and also where to
put sources in webapps  folder of tomcat or in anthor place and use
maven-war-plugin to generate snapshot to webapps/myproject or some
thing else like tomcat pluging ??!!

please can some help me in this topic because very confused .

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



Is there any sample application Login in gwt-ext?

2011-01-27 Thread dikky s
Dear All,

i am new be for GWT,..i wanna try for make login that useing any database
connection
but there any sample that practicaly easy step by step,

i have read from some e-book GWT and see some example but it difficult to
implementation


please help..

could any body or some body give me some sample code? that using database

-- 
You received 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: chrome - prompting me to install gwt plugin but already installed

2011-01-27 Thread Rod Bailey
OK - I confirm that downgrading the plugin version from 1.0.9614 to
1.0.9521 gets dev mode on Windows working again.
But after a short time Chrome auto-updates the GWT plugin back to
version 1.0.9614, and everything does back to not working.

-- 
You received 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: Sending request with proxy created from other request ?

2011-01-27 Thread Mihail Lesikov



 And when I say I would have expected an exception, I really mean an 
 IllegalArgumentException(Attempting to edit an EntityProxy previously 
 edited by another RequestContext)
 (AbstractRequestContext#addInvocation calls retainArg, which calls edit() 
 on the proxy — or maybe there's a bug in retainArg that it should check 
 instanceof BaseProxy instead of EntityProxy, and your PersonProxy is a 
 ValueProxy?)


my PersonProxy is ValueProxy

I forgot to say that I use gwt compiled with the latest changes  directly 
form the trunk.

Actually, I need to create a children of an object(parent) in the client 
side, apply templates on them, and after that to persist the parent. 
All that logic is separated in different editors.
So, if I 'd like to create child object, I have to use the same instance of 
the request, which I'll use for persisting the parent? 
 

-- 
You received 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: chrome - prompting me to install gwt plugin but already installed

2011-01-27 Thread chl
I have the same Problem on Windows 7 64 Bit
Chrome 8.0.552.237
GWT DMP Plugin (0.9.0)
GWT Developer Plugin - Version: 1.0.9614

Is there already a fix.
How can I get an older Version of the Plugin?

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



Windows 7 Chrome

2011-01-27 Thread chl
I have the same problem on Windows 7 64 bit since Today:
GWT Developer Plugin - Version: 1.0.9614
Chrome 8.0.552.237
GWT DMP Plugin (0.9.0)

Is there already a fix?

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



Receiver.onViolation() is called several times

2011-01-27 Thread Lazo Apostolovski
Receiver.onViolation is called several times when there are validation 
errors after each request. 

interface Driver extends RequestFactoryEditorDriverItemProxy, ItemEditor{}

private ItemRequest request;

public void edit(...){

...
request = requestFactory.itemRequest();
...

}

public void getItem() {

request.getItemById(/*give id here*/ id).fire(new ReceiverItemProxy(){


@Override

public void onSuccess(ItemProxy response) {

// 

}

@Override
public void onFailure(ServerFailure error) {
}

@Override
public void onViolation(SetViolation errors) {

showErrors(errors);

}
});

When I call this method first time, and sending request fail with 
violations, method onViolation() is called only once.
Its OK to this point.

(call - getItem() = call - onViolation() )

The problem is: if I call this method second time and request fails again, 
method onViolations() is called two times in row. 

(call - getItem() = call - onViolation() - onViolation())

If I call this method third time, onViolations() is called three times in 
row.

(call - getItem() = call - onViolation() - onViolation() - 
onViolation())

after N calls.

(1 call - getItem() = call - onViolation() - onViolation() - N)
 

-- 
You received 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: chrome - prompting me to install gwt plugin but already installed

2011-01-27 Thread Zagfai
I use Win7 Ult and I also encounter this problem

On Jan 27, 6:27 am, dilbert goran.stoj...@gmail.com wrote:
 I have seen something similar and posted an issue 
 here:http://code.google.com/p/google-web-toolkit/issues/detail?id=5740
 The conclusion was that it is a packaging bug in OpenSUSE. What operating
 system are You using? Maybe it is related so please take a look at the issue
 and tell us if it behaves similarly. I reported the issue to the OpenSUSE
 bugzilla but haven't heard from them since. The issue remains unresolved.

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



ClickableCell double click event (CellTable)

2011-01-27 Thread al
Hi,

I want to know whether I can get the double click event if some one
double click the cell?

There a method onBrowserEvent where I just get single click when I get
the type of the event (event.getType()).

any workaround?

thx
la

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



tool tip for tree nodes

2011-01-27 Thread mtweet
Hello,

I want to have a tool tip for each of my tree nodes and leafs
(implemented with GWT Tree grid), but tree node doesn't have a
mouseOver or Hover event, is there any work around for this ?

Regards
  Mtweet

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



When should the community expect some formal documentation on GWT 2.1.1

2011-01-27 Thread Katie
When should the community expect from some documentation on GWT
2.1.1.when 2.2 is released?

I am not kidding, should we not expect the tutorials to be updated to
include the 2.1.1 changes, or will we be waiting till Google I/O in
May for 2.2 and the hope of some fresh documentation and tutorials?

Is this what the GWT team expects developers to work with
http://code.google.com/p/google-web-toolkit/wiki/RequestFactory_2_1_1

FYI,  soon isn't an answer

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



MultiSelectionModel with CellList

2011-01-27 Thread Florian
Hi,
I have created a celll that extends AbstractCell. I want to use it
with a CellList and a multiSelecitonModel. However, I cannot select
more than one item. Is it possible to select more than one item in a
CellList? With Ctrl + shift + click? I tried a lot of combinations...
 I read a lot about there being issues with selection and cells. I
just updated to 2.1.1 and hoped it would work now.
I realized that the render signature was changed in 2.1.1. Do I have
to do anything with the Context?
This is how my Cell looks like:

static class SensorCell extends AbstractCellSensor {

private final String imageHtml;
public SensorCell(ImageResource image) {
this.imageHtml = 
AbstractImagePrototype.create(image).getHTML();
}

@Override
public void render(Context context, Sensor 
value,SafeHtmlBuilder sb)
{
if (value == null) {
return;
}

sb.appendHtmlConstant(table);

// Add the contact image.
sb.appendHtmlConstant(trtd rowspan='3');
sb.appendHtmlConstant(imageHtml);
sb.appendHtmlConstant(/td);

// Add the name and address.
sb.appendHtmlConstant(td style='font-size:95%;'ID: 
);
sb.appendEscaped(value.name);
sb.appendHtmlConstant(/td/trtrtdStatus: );
sb.appendEscaped(String.valueOf(value.status));
sb.appendHtmlConstant(/td/trtrtdSubscribed: );
sb.appendEscaped(String.valueOf(value.subscribed));

// close the html
sb.appendHtmlConstant(/td/tr/table);
}
}


Here I add the selectionModel and set the selectionChangeHandler...
I really don't know what else to do.
cellList.setSelectionModel(multiSelectionModel);

// Add a new handler to register when the selection of
// functionalities has changed
multiSelectionModel.addSelectionChangeHandler(selectionChanged);


Thanks in advance,
Flo

-- 
You received 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: Sending request with proxy created from other request ?

2011-01-27 Thread Mihail Lesikov
I'll describe my problem better:

The main goal of my task is a workflow of a contract signing.

interface ContractProxy extends ValueProxy{

CustomerProxy getCutomer();
void setCustomer(CustomerProxy customer);

AddressProxy getAddress();
void setAddress(AddressProxy address);

ListItemProxy getItems();
void setItems(ListItemProxy items);
} 

https://lh3.googleusercontent.com/_aoD2oLHFruo/TUE9VIJVPUI/AbA/E-WaHiebbq0/2011-01-27%2009.38.23.jpg




1. Loading empty contractProxy

   - creating contractRequest
   - editing the proxy in ContractEditor (Zone 4) (editor.edit(contracProxy
   ,contractRequest))


2. Zone 1 (Customer Editor) : 

   - set customer data
   - persist the customer by customerRequest


3. Zone 2 (AddressEditor)

   - set address data
   - persist the street from the address by addressRequest


4. Zone 3 (ItemListEditor)

   - dynamically add/remove new item
   - set each item data 


5. Zone 4 (ContractEditor) - all data must be flush from the editor and 
persist by contractRequest.

That doesn't work for me.
How to organize my objects to accomplish my task?
Do I have to pass contractRequest to every sub-editor?
Can I use same contractRequest to persist other objects in same workflow? 
Any suggestions?
 

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



Receiver.onViolation() is called several times

2011-01-27 Thread Lazo Apostolovski
Receiver.onViolation is called several times when there are validation
errors after each request.

interface Driver extends RequestFactoryEditorDriverItemProxy,
ItemEditor{}

private ItemRequest request;

public void edit(...){

...
request = requestFactory.itemRequest();
...

}

public void getItem() {

request.getItemById(/*give id here*/ id).fire(new
ReceiverItemProxy(){


@Override

public void onSuccess(ItemProxy response) {

// 

}

@Override
public void onFailure(ServerFailure error) {
}

@Override
public void onViolation(SetViolation errors) {

showErrors(errors);

}
});

When I call this method first time, and sending request fail with
violations, method onViolation() is called only once.
Its OK to this point.

(call - getItem() = call - onViolation() )

The problem is: if I call this method second time and request fails
again, method onViolations() is called two times in row.

(call - getItem() = call - onViolation() - onViolation())

If I call this method third time, onViolations() is called three times
in row.

(call - getItem() = call - onViolation() - onViolation() -
onViolation())

after N calls.

(1 call - getItem() = call - onViolation() - onViolation() - N)

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



How to make a rectangle selection tool like the gmaps drag 'n' zoom

2011-01-27 Thread LogicalTime
I could use a tip on how to get GWT to make that rectangle during the
click and drag.

Here is info on the tool I am referring to:
http://www.watchingthenet.com/enable-use-googles-map-zoom-feature.html

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



Parent Url using iframes

2011-01-27 Thread Phalgun Guduthur
Hello

Im developing a webpage which is loaded into a iframe on a different
webpage.

Now i want to know how to identify the url of the parent webpage where
the iframe loads.
ie, page A contains a iframe (which loads the page B). Now i need to
find the url of A.
Im developing the webpage B and i need to know the url of A to do some
computations.
How do i do this?

Im writing the code in java, Please help me if you can.

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



Hover on tree Nodes

2011-01-27 Thread mtweet
Hello,

I'm using smartgwt2.0 and i want to get some tool tip for each of my
tree node, but it doesn't seem to work, here is the code i'm using :


TreeGrid tg = new TreeGrid();
tg.setHoverMoveWithMouse(true);
tg.setCanHover(true);
tg.setShowHover(true);
tg.setHoverOpacity(75);

tg.addRowHoverHandler(new RowHoverHandler()
{
@Override
public void onRowHover(RowHoverEvent event)
{
ListGridRecord lgr = event.getRecord();
if(lgr instanceof TreeNode)
{
TreeNode hoveredTreeNode = (TreeNode)lgr;
tg.setPrompt(the name is: BR +
hoveredTreeNode.getName());
}
}
});

the hover message gets displayed, but its not exactly what i had
written in the code, I always have a + followed by the name of the
node , but i want to have the comment which i wrote, is their any
work around for this ?

I also tried to use a hoverCustomiser but this is not available in the
version 2.0, can any one plase suggest me a work around with
smartgwt2.0 ?

Thanks in Advance
   -mTweet

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



Displaying Dynamic Images

2011-01-27 Thread MiTCh
Hi all,
Im trying to diaplay images(charts) on my client that I'll be
updating within some certain period at the server.
I was trying to use RPC but im new to this and im getting lots of
erros because my client cannnot find the images, probably because I
don't know how to specify the URL well.  In my RPC defined the service
interface as:

@RemoteServiceRelativePath(updatePlot)
public interface UpdatePlotsService extends RemoteService {
String getImagesURL(String hostname);
}


and it's Asynchronous Interface as:

public interface UpdatePlotsServiceAsync {
void getImagesURL(String hostname,
AsyncCallbackString callback);
}

On the server-side implementation I generate a chart using  JFreeChart
but Im not sure where to save it and what is the URL that i must
return to the client in order for ot to make the Image widget using
that URL.

Please Help

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



ZipException when moving project from mac to windows

2011-01-27 Thread taranaki
This is the exact error message I get:

Starting Jetty on port 
   [WARN] Failed startup of context
com.google.gwt.dev.shell.jetty.JettyLauncher
$WebAppContextWithReload@13bd574{/,C:\Users\sk\workspace\Project\war}
java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.init(Unknown Source)
at java.util.jar.JarFile.init(Unknown Source)
at java.util.jar.JarFile.init(Unknown Source)
at
org.mortbay.jetty.webapp.TagLibConfiguration.configureWebApp(TagLibConfiguration.java:
168)
at
org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:
1217)
at
org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:
513)
at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:
448)
at com.google.gwt.dev.shell.jetty.JettyLauncher
$WebAppContextWithReload.doStart(JettyLauncher.java:447)
at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
39)
at
org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:
130)
at
org.mortbay.jetty.handler.RequestLogHandler.doStart(RequestLogHandler.java:
115)
at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
39)
at
org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:
130)
at org.mortbay.jetty.Server.doStart(Server.java:222)
at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
39)
at
com.google.gwt.dev.shell.jetty.JettyLauncher.start(JettyLauncher.java:
542)
at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:431)
at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1053)
at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:795)
at com.google.gwt.dev.DevMode.main(DevMode.java:282)

There was a very similar post in 2009 in this group, but unfortunately
no answer.

In the whole project I do not use any zip files except for the
libraries (jar files: mallet, mallet-deps, lucene-core-2.4.0, json-
simple-1.1). I have checked that these are not corrupted.

I use GWT 2.1.1 on Windows 7.

Any help is very welcome.

-- 
You received 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: BestPractice : Use of the Editor Framework with MVP (Place, Activity) and RequestFactory

2011-01-27 Thread nacho
Great

-- 
You received 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: When should the community expect some formal documentation on GWT 2.1.1

2011-01-27 Thread Thomas Broyer


On Wednesday, January 26, 2011 4:47:48 PM UTC+1, Katie wrote:

 When should the community expect from some documentation on GWT 
 2.1.1.when 2.2 is released? 

 I am not kidding, should we not expect the tutorials to be updated to 
 include the 2.1.1 changes, or will we be waiting till Google I/O in 
 May for 2.2 and the hope of some fresh documentation and tutorials?


Actually, it seems that 2.2 will be released before I/O, as the agenda 
mentions 2.3: http://www.google.com/events/io/2011/sessions.html 

That doesn't answer you concern though.

-- 
You received 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: Apache and Tomcat: Proxy, Caching and Compression configuration

2011-01-27 Thread Ed
Thanks.
A few things:
- ProxyPassReverse don't work with ajp...
See: http://www.humboldt.co.uk/2009/02/the-mystery-of-proxypassreverse.html
You can simple test it by performing a redirect on tomcat

- Almost all browsers nowedays support gzip, so why not gzip them by
default..?.. instead of gzipping them on every http request... not
needed...
You can tell GWT to output all your files as gzip. Then use apache
httpd multiview to send the correct file.
Then let apache httpd inflate the file if you encounter a browser that
doesn't support gzip..(rare these days).

- Use Yslow plugin for FF to fine tune your settings.

- Don't forget to set the correct caching for the css, images, third
party js files, etc...

- Put your gwt files directly under apache httpd instead of tomcat
(noserver mode). Performs much better. Only use tomcat for rpc and
other backend calls.
Then you don't need the proxymatch settings and just use Files
settings...performs a bit better...

- See: 
http://groups.google.com/group/google-web-toolkit/browse_thread/thread/7c81c942706241a3#

I got this all working very nice and you notice the performance gain
big time as I also have the nightly build without all these optimized
http settings...

Here you got a http snippet that I use, hope it helps you:

# Add inflate (uncompress) filter that will be used when the browser
doesn't support
# gzip
# Ref: http://httpd.apache.org/docs/2.2/mod/mod_filter.html
 FilterDeclare gzinflate CONTENT_SET
 FilterProvider gzinflate inflate req=Accept-Encoding !$gzip


# set up Multiviews:
# Ref:
# http://www.w3.org/International/questions/qa-apache-lang-neg
# http://httpd.apache.org/docs/current/content-negotiation.html
# 
http://everything2.com/title/How+to+get+Apache+to+send+compressed+versions+of+static+HTML+files
# Note: make sure to not set the AddType application/x-gzip .gz .tgz
as then all the gzp files will
# be returned with the wrong content-type (as gzip instead as the
zipped content: js/css, etc...)

 Options +MultiViews
 AddEncoding x-gzip .gz
 RemoveType application/x-gzip .gz .tgz

 # Enabled the inflate filter
 FilterChain gzinflate



# GWT Optimization.
# ref:
# http://www.infoq.com/articles/gwt-high-ajax
# 
http://code.google.com/webtoolkit/doc/latest/DevGuideCompilingAndDebugging.html
# 
http://www.samaxes.com/2008/04/htaccess-gzip-and-cache-your-site-for-faster-loading-and-bandwidth-saving/
# 
http://betterexplained.com/articles/how-to-optimize-your-site-with-gzip-compression/
# http://code.google.com/p/doctype/wiki/ArticleHttpCaching
#
## GWT caching
#
Files *.nocache.*
  ExpiresActive on
  ExpiresDefault now
  Header set Cache-Control public, max-age=0, must-revalidate
/Files

Files *.cache.*
  ExpiresActive on
  ExpiresDefault now plus 1 year
/Files

# Note: this only matches the file name and not the preceding
directory
FilesMatch \.(gif|jpe?g|png|ico|css|xml)$
  ExpiresActive on
  ExpiresDefault now plus 3 day
/FilesMatch

Files ext.js
  ExpiresActive on
  ExpiresDefault now plus 3 day
/Files

# Tell apache to use the compressed files if possible
#SetOutputFilter DEFLATE
#
# Deflate by type
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript

# ref: http://developer.yahoo.com/performance/rules.html#etags
FileETag none

-- 
You received 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.1.1. + Deploy in Tomcat

2011-01-27 Thread Thomas Broyer


On Thursday, January 27, 2011 12:29:43 AM UTC+1, Florian wrote:

 can you plz specify what the problem is? 
 Usual way of deploying for tomcat with eclipse(at least how i do it..) 
 1) Make sure you have all the libs that you referenced in your \war 
 \WEB-INF\lib folder, for projects that you referenced in eclipse, do 
 the same.


...and when using RequestFactory, this also means gwt-servlet-deps.jar (or 
javax.validation and org.json if you're using Maven)

-- 
You received 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: chrome - prompting me to install gwt plugin but already installed

2011-01-27 Thread Vermus
same thing

On 27 янв, 08:25, Rod Bailey rodney.p.bai...@gmail.com wrote:
 OK - I confirm that downgrading the plugin version from 1.0.9614 to
 1.0.9521 gets dev mode on Windows working again.
 But after a short time Chrome auto-updates the GWT plugin back to
 version 1.0.9614, and everything does back to not working.

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



Re: Why GWT DevMode serialization is hundred times slower than production mode?.

2011-01-27 Thread Gursel Koca

Well, I  run my test with gwt 1.7.1 , hosted mode serialization is
slower than gwt 2.03 dev mode..

Well, I finally understand that serialization of objects except than
String are very slow in devmode. Therefore , I had converted
previously written space efficient serialization utiliy to GWT. By
means of this utility, serialization performance gain at devmode is
quite satisfactory. While normal serialization lasts 3 seconds for
1000 objects, mine space effiicient serialization lasts only 700 ms..

-- 
You received 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: ClickableCell double click event (CellTable)

2011-01-27 Thread John LaBanca
Cells only receive events that are declared in
AbstractCell#getConsumedEvents().  Override AbstractCell#getConsumedEvents()
and have it return a Set that includes dblclick.

Thanks,
John LaBanca
jlaba...@google.com


On Thu, Jan 27, 2011 at 5:22 AM, al adnanlat...@live.com wrote:

 Hi,

 I want to know whether I can get the double click event if some one
 double click the cell?

 There a method onBrowserEvent where I just get single click when I get
 the type of the event (event.getType()).

 any workaround?

 thx
 la

 --
 You received 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.comgoogle-web-toolkit%2bunsubscr...@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: MultiSelectionModel with CellList

2011-01-27 Thread John LaBanca
Multi-selection support (ctrl and shift) was added in GWT 2.1.1, and is
enabled by default.  Can you post more of your code where you initialize
CellList?

Are you aren't setting the KeyboardSelectionPolicy to BOUND_TO_SELECTION?
 That will limit selection to one item at a time.

Thanks,
John LaBanca
jlaba...@google.com


On Wed, Jan 26, 2011 at 6:21 PM, Florian jenzzaf...@gmail.com wrote:

 Hi,
 I have created a celll that extends AbstractCell. I want to use it
 with a CellList and a multiSelecitonModel. However, I cannot select
 more than one item. Is it possible to select more than one item in a
 CellList? With Ctrl + shift + click? I tried a lot of combinations...
  I read a lot about there being issues with selection and cells. I
 just updated to 2.1.1 and hoped it would work now.
 I realized that the render signature was changed in 2.1.1. Do I have
 to do anything with the Context?
 This is how my Cell looks like:

 static class SensorCell extends AbstractCellSensor {

private final String imageHtml;
public SensorCell(ImageResource image) {
this.imageHtml =
 AbstractImagePrototype.create(image).getHTML();
}

@Override
public void render(Context context, Sensor
 value,SafeHtmlBuilder sb)
 {
if (value == null) {
return;
}

sb.appendHtmlConstant(table);

// Add the contact image.
sb.appendHtmlConstant(trtd rowspan='3');
sb.appendHtmlConstant(imageHtml);
sb.appendHtmlConstant(/td);

// Add the name and address.
sb.appendHtmlConstant(td
 style='font-size:95%;'ID: );
sb.appendEscaped(value.name);
sb.appendHtmlConstant(/td/trtrtdStatus: );
sb.appendEscaped(String.valueOf(value.status));
sb.appendHtmlConstant(/td/trtrtdSubscribed:
 );
sb.appendEscaped(String.valueOf(value.subscribed));

// close the html
sb.appendHtmlConstant(/td/tr/table);
}
}


 Here I add the selectionModel and set the selectionChangeHandler...
 I really don't know what else to do.
cellList.setSelectionModel(multiSelectionModel);

// Add a new handler to register when the selection of
// functionalities has changed

  multiSelectionModel.addSelectionChangeHandler(selectionChanged);


 Thanks in advance,
 Flo

 --
 You received 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.comgoogle-web-toolkit%2bunsubscr...@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.



Unable to load image, please help

2011-01-27 Thread Sednus
Hi,
  Im trying load an image from the server using RPC, the problem is
that it always fails to load the image and throws the following error:
com.google.gwt.user.client.rpc.StatusCodeException: 403 html
head
meta http-equiv=Content-Type content=text/html;
charset=ISO-8859-1/
titleError 403 FORBIDDEN/title
/head
bodyh2HTTP ERROR 403/h2
pProblem accessing /diskmonitor/. Reason:
preFORBIDDEN/pre/phr /ismallPowered by Jetty:///small/ibr/



Im implementing my classes as the following:


public class ChartImage extends Image {
 private UpdatePlotsServiceAsync plotService;

public ChartImage(String hostname) {
super();

/*
 * Setup connection to chart generator service.
 */
plotService = (UpdatePlotsServiceAsync)
GWT.create(UpdatePlotsService.class);
ServiceDefTarget endpoint = (ServiceDefTarget)plotService;
String url = GWT.getModuleBaseURL()+;
System.out.println(url);
endpoint.setServiceEntryPoint(url);

/*
 * Setup the callback from the chart generator service.
 */
AsyncCallbackString callback = new AsyncCallbackString()
{
/*
 * If the call was successful, we will get back the name
of the chart
 * that was created and stored on the server.
 */
public void onSuccess(String s) {
String chartName = (String)s;
String imageUrl = GWT.getModuleBaseURL() + chartName;
setUrl(imageUrl);
}

/*
 * Something went wrong with the call. Handle the issue
how you'd like.
 */
public void onFailure(Throwable ex) {
   System.out.println(Failed to load image);
   ex.printStackTrace();
}
};

/*
 * Make the call to the chart generator service with the
previously created
 * callback.
 */
plotService.getImagesPaths(default, callback);

/*
 * Since we've made an asynchronous call, we don't need to do
anything further.
 * The callback object will handle the remainder of the work
for us.
 */
}
}



The image is generated in the server side using JFreeChart

public class UpdatePlotsServiceImpl extends RemoteServiceServlet
implements UpdatePlotsService {
@Override
public String getImagesPaths(String hostname) {
String chartName = ;
  /*
   * Create the data for the pie chart
   */
  DefaultPieDataset dataset = new DefaultPieDataset();
  //Fake Data
 dataset.setValue(Available, 71);
 dataset.setValue(Used, 39);

 String title = Data at:+ info.getHostname()+-+
info.getLocation();
 JFreeChart chart = ChartFactory.createPieChart(title, dataset,
true, false, false);
 File file = new File(chart.png);
 //Save the image
 try {

 ChartUtilities.saveChartAsPNG(file, chart, 800, 600);

} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
return file.getName();
}

}


Please help

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

2011-01-27 Thread Eric Clayberg
What version of GWT Designer are you using?

I would recommend using GWT 2.1.1 and the latest version of GWT
Designer.

On Jan 26, 12:14 am, Rao Venu venu...@gmail.com wrote:
 Hi

 I am trying to open an entry point module file in the design view as
 perhttp://code.google.com/webtoolkit/tools/gwtdesigner/quick_start.html

 However, I am getting the following message
 64-bit Windows is not supported for this version of GWT. Please use
 32-bit Eclipse and a 32-bit Java VM.

 Is there a workaround to this problem? Apart from installing on a
 32bit environment?

 Thanks
 -Venu

 My environment : Windows 7 Ultimate 64 bit with Springsource ToolSuite
 2.5.1, GWT 2.1

-- 
You received 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: CellTable: Highlight updated rows

2011-01-27 Thread Thomas
Yes, of course.

Actually, what I didn't wrote before as I wanted to keep it simple
was, that I have created my own implementation of a celltable
(MyCellTableT extends AbstractHasDataT) which is similar to the
GWT CellTable with a couple of changes. The best way to describe what
I did is to look at the source code of the GWT CellTable.

In my first attempt I tried to set the background color at the end of
the CellTable renderRowValues method, and I guess that didn't work
because the element I got was from before the CellTable was updated
with the new data. I then moved the code into the end of the
replaceAllRows method in the inner Impl class of the CellTable. That
is the method where the new innerhtml is set on the tbody (there is a
ImplTrident class used for IE that implements this a little bit
different). Now it works.

Regards,
Thomas.


On Jan 26, 4:40 pm, Miroslav Genov mge...@gmail.com wrote:
 It would be good if you say how you solve it, so if anyone else has the same
 problem could look at your solution.

-- 
You received 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: SimplePager - changing page callback

2011-01-27 Thread Y2i

   
   - create a data provider
   - attach a cell table to the data provider
   - override the provider's onRangeChange()
   - (you don't have to override anything if you use ListDataProvider)
   

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

2011-01-27 Thread Ernesto Reig
Hello again.
It seems that I get stuck in every step... The thing is that I don´t know
how to use Tomcat for the Development Mode instead of the embedded Jetty.
I´ve been reading lots and lots of docs (including
http://code.google.com/webtoolkit/doc/latest/DevGuideCompilingAndDebugging.html#How_do_I_use_my_own_server_in_development_mode_instead_of_GWT%27s)
but I still haven´t found a way to do it. In my opinion it isn´t well
explained at al, it´s very unclear...
I have arrived to this because, as you said, protecting the host page with a
servlet FORM authentication forces me to use Tomcat.
So I need to check that the servlet authentication I am implementing is
right. Therefore, I have to deploy my webapp in Tomcat, BUT I don´t want to
end up re-deploying the application in Tomcat every time I make a little
change in the code.

Any help on this, please?

Than you very much.

-- 
You received 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: Announcing GPE/GWT 2.2M1

2011-01-27 Thread Y2i
thanks for the link Thomas!

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

2011-01-27 Thread Y2i
I also started from using Tomcat, but the debugging issue forced me to 
switch to Jetty.  It took time to learn Jetty's specifics but it was worth 
it.

-- 
You received 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: Sending request with proxy created from other request ?

2011-01-27 Thread Y2i
In 
theoryhttp://code.google.com/webtoolkit/doc/latest/DevGuideRequestFactory.html#relationships
 ContractProxy is the only object you need to edit().  

Not sure that what applies to entity proxies also applies to value proxies 
(the documentation was written before value proxies were introduced, so it 
may apply as well)

Out of curiosity, why ContractProxy is value proxy?  I would expect it to 
have identity so the Contract can be located in the database after it was 
created

-- 
You received 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: chrome - prompting me to install gwt plugin but already installed

2011-01-27 Thread SemperVivo
I am having the same issue. Please issue an immediate update that will
fix the problem! Thank you.

On 26 ian., 17:55, Jack Krooss jackkro...@gmail.com wrote:
 I just started having the same issue. It did not help to reinstall
 Chrome
 and the gwt dev plugin.

 On Jan 26, 12:54 pm, cri chuck.irvine...@gmail.com wrote:







  Suddenly today, after months of running gwt in development mode in
  conjunction with chrome, I continually get prompted to load the gwt
  dev plugin for chrome. However, the plugin is already installed. I
  also have ie6 with the plugin installed and there I do not have this
  problem. This doesn't seem to be related to my project since I have
  the same problem when running the default project created by a brand
  new gwt app created by invoking New Web Application Project. Help!!
  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.



Does Google Web Toolkit support CSS3 for IE 6,7,8 ?

2011-01-27 Thread jamshid asatillayev
I have tried couple of ways:
I opened new question regarding this here
http://stackoverflow.com/questions/4512401/how-to-use-html-component-file-htc-with-gwt-for-applying-css3

 However I couldn't succeed.
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.



Image does neither load nor error

2011-01-27 Thread gex
Hi, I just tried to load an image in GWT.

The code is the following:

final Image image = new Image();


image.addLoadListener(new LoadListener() {
  public void onError(Widget sender) {
Test.label.setText(An error occurred while loading.);
  }

  public void onLoad(Widget sender) {
Test.label.setText(Image loaded.);
  }
});

// Point the image at a real URL.
image.setUrl(images/kitty.jpg);

The kitty.jpg file is located in war/images folder.

The test label never shows any of the texts. Also setting breakpoints
in onLoad and onError are never reached. This means that the image is
neither loaded nor an error is raised. What can be the source of this
problem?

Thanks in advance for your help

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

2011-01-27 Thread Chris Conroy
Ah, I read the OP's post too quickly. Our Safari plugin only supports OSX.

On Wed, Jan 26, 2011 at 6:49 PM, Thomas Broyer t.bro...@gmail.com wrote:



 On Thursday, January 27, 2011 12:26:00 AM UTC+1, Chris Conroy wrote:

 We don't support Opera, but we do have a Safari plugin:
 http://gwt.google.com/missing-plugin/MissingPlugin.html


 Sorry, there is currently no GWT Developer Plugin for Safari on Windows

 --
 You received 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.comgoogle-web-toolkit%2bunsubscr...@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 override CellTable css

2011-01-27 Thread mike b
thanks to everyone who posted comments here.  This has really helped me as 
well as I had problem styling the CellList.  The same pattern works there as 
well.  

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



Two parallel asynchronous rpc calls possible?

2011-01-27 Thread ghost23
hello,

i have a service. I create an instance of it via
GWT.create(MyService.class). Then i call a method on it, get the
result, everything works nicely.

Now i need to call two methods on that service more or less in
parallel. I tried this (either using the same service instance or two
distinct ones),
but now i get weird results, sometimes, the objects cannot be de-
serialized or i get exceptions, that the objects are of another type
and so on.

Is it basically possible to make two parallel calls to a service?

Thank you.
Sven

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



Rendering Rich Text in a Cell

2011-01-27 Thread Thomas Lefort
I want to get Rich Text from a user, store it in a db, and retrieve it
for display in a cellTable. Any recommended practice? I use a
SafeHtmlCell which returns SafeHtmlUtils.fromTrustedString of my
string, but I should really check the content before, any ideas/
libraries available for that?

-- 
You received 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: Does Google Web Toolkit support CSS3 for IE 6,7,8 ?

2011-01-27 Thread Jeff Schwartz
The question isn't if GWT supports CSS3 for IE 6, 7, 8? The question rather
is does IE 6, 7, 8 support CSS3? The answer is no. You will have to wait for
IE 9 which is currently in beta.

On Thu, Jan 27, 2011 at 8:52 AM, jamshid asatillayev 
jamshid.asatilla...@gmail.com wrote:

 I have tried couple of ways:
 I opened new question regarding this here

 http://stackoverflow.com/questions/4512401/how-to-use-html-component-file-htc-with-gwt-for-applying-css3

  However I couldn't succeed.
 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.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.




-- 
*Jeff Schwartz*

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



Simple history question

2011-01-27 Thread Navigateur
Before I delve, what's the most elegant way of handling the start page
of your app? (i.e. going back to it?)

Really my question is about the fact that for e.g. page2 you have
created a history token with the String #page2... but when you press
the back button after this, you go back to the first page that
has... no token? So how do you test for this?

Sorry if this sounds stupid (and I haven't done it yet)... but does
the ValueChangeHandler just give you a token with an empty String ()
when you do this?

If not, what's the most elegant way of including the first page in
your history, without repeating any code, and without adding
unnecessary items in the browser history?

-- 
You received 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: Two parallel asynchronous rpc calls possible?

2011-01-27 Thread joe kolba
Why not just make one call to a service and call different methods within
your service object?  You can put methods in your serviceImpl that are not
RPC methods.

On Thu, Jan 27, 2011 at 11:17 AM, ghost23 sven.bu...@googlemail.com wrote:

 hello,

 i have a service. I create an instance of it via
 GWT.create(MyService.class). Then i call a method on it, get the
 result, everything works nicely.

 Now i need to call two methods on that service more or less in
 parallel. I tried this (either using the same service instance or two
 distinct ones),
 but now i get weird results, sometimes, the objects cannot be de-
 serialized or i get exceptions, that the objects are of another type
 and so on.

 Is it basically possible to make two parallel calls to a service?

 Thank you.
 Sven

 --
 You received 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.comgoogle-web-toolkit%2bunsubscr...@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: Two parallel asynchronous rpc calls possible?

2011-01-27 Thread zixzigma
I think what you suggested, will result in Synchronous/Blocking calls.
it won't be Parallel nor Asynchronous.

Why not just make one call to a service and call different methods within 
your service object?  You can put methods in your serviceImpl that are not 
RPC methods.

-- 
You received 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: Two parallel asynchronous rpc calls possible?

2011-01-27 Thread Gal Dolber
Yes, it is possible, every rpc call is asyc, so if you call two rpc methods
one after the other they'll be executed in parallel. In general it is better
to batch the parallel methods in one rpc call.

On Thu, Jan 27, 2011 at 1:41 PM, joe kolba joekolb...@gmail.com wrote:

 Why not just make one call to a service and call different methods within
 your service object?  You can put methods in your serviceImpl that are not
 RPC methods.


 On Thu, Jan 27, 2011 at 11:17 AM, ghost23 sven.bu...@googlemail.comwrote:

 hello,

 i have a service. I create an instance of it via
 GWT.create(MyService.class). Then i call a method on it, get the
 result, everything works nicely.

 Now i need to call two methods on that service more or less in
 parallel. I tried this (either using the same service instance or two
 distinct ones),
 but now i get weird results, sometimes, the objects cannot be de-
 serialized or i get exceptions, that the objects are of another type
 and so on.

 Is it basically possible to make two parallel calls to a service?

 Thank you.
 Sven

 --
 You received 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.comgoogle-web-toolkit%2bunsubscr...@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.comgoogle-web-toolkit%2bunsubscr...@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.



Re: Simple history question

2011-01-27 Thread Ryan Mehregan
PlaceHistoryHandler, has a register method:

public HandlerRegistration register(PlaceController placeController,
  EventBus eventBus,
  Place defaultPlace) {

you probably have already defined some places in your application.
just pass the one you want to make the default (start) place,
to the register method. 

have a look at the code here:
http://code.google.com/webtoolkit/doc/latest/DevGuideMvpActivitiesAndPlaces.html#Putting_it_all_together

Ryan

-- 
You received 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 override CellTable css

2011-01-27 Thread Thomas Lefort
Great Thread. Thanks to the contributors. Makes me wonder if there are
(other than Google) templates available out there for GWT?

On Jan 27, 5:04 pm, mike b mbaker.t...@gmail.com wrote:
 thanks to everyone who posted comments here.  This has really helped me as
 well as I had problem styling the CellList.  The same pattern works there as
 well.  

-- 
You received 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: Two parallel asynchronous rpc calls possible?

2011-01-27 Thread Jeff Schwartz
I'm glad you qualified your comment with 'in general' which IMHO is still
not true and I believe it really depends on your use case. For instance, if
you are targeting App Engine you certainly want to leverage parallel async
calls because of the quota system that is enforced on Google's APIs and all
server requests and that is only one of numerous use cases that I can think
of that could benefit from using parallel async calls.

Jeff

On Thu, Jan 27, 2011 at 11:46 AM, Gal Dolber gal.dol...@gmail.com wrote:

 Yes, it is possible, every rpc call is asyc, so if you call two rpc methods
 one after the other they'll be executed in parallel. In general it is better
 to batch the parallel methods in one rpc call.

 On Thu, Jan 27, 2011 at 1:41 PM, joe kolba joekolb...@gmail.com wrote:

 Why not just make one call to a service and call different methods within
 your service object?  You can put methods in your serviceImpl that are not
 RPC methods.


 On Thu, Jan 27, 2011 at 11:17 AM, ghost23 sven.bu...@googlemail.comwrote:

 hello,

 i have a service. I create an instance of it via
 GWT.create(MyService.class). Then i call a method on it, get the
 result, everything works nicely.

 Now i need to call two methods on that service more or less in
 parallel. I tried this (either using the same service instance or two
 distinct ones),
 but now i get weird results, sometimes, the objects cannot be de-
 serialized or i get exceptions, that the objects are of another type
 and so on.

 Is it basically possible to make two parallel calls to a service?

 Thank you.
 Sven

 --
 You received 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.comgoogle-web-toolkit%2bunsubscr...@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.comgoogle-web-toolkit%2bunsubscr...@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.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.




-- 
*Jeff Schwartz*

-- 
You received 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: Simple history question

2011-01-27 Thread Navigateur
Ah Places. This is only in GWT 2.1, right?

Ok, how would I do it in a 2.0 app using History?

And if I upgraded to 2.1, what are the basic advantages of using
Places over History?

Cheers,
N

On Jan 27, 4:54 pm, Ryan Mehregan ryan...@gmail.com wrote:
 PlaceHistoryHandler, has a register method:

 public HandlerRegistration register(PlaceController placeController,
                                                   EventBus eventBus,
                                                   Place defaultPlace) {

 you probably have already defined some places in your application.
 just pass the one you want to make the default (start) place,
 to the register method.

 have a look at the code 
 here:http://code.google.com/webtoolkit/doc/latest/DevGuideMvpActivitiesAnd...

 Ryan

-- 
You received 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: when to use AsyncDataProvider instead of CellTable.setRowData ?

2011-01-27 Thread zixzigma
I have included the relevant code from Roo generated Expenses app here: 
http://pastebin.com/2FUbaVjY

in onRangeChanged method,
getView().asHasData().setRowData(range.getStart(), values);

the code invokes setRowData on CellTable, and it makes use of onRangeChanged 
event,
and in fact displays dynamic data, but does not use AsyncDataProvider.

this contradicts with John LaBanca's comment ?

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



App Deployment

2011-01-27 Thread Ross McKinnon
Hi there,

Im building my final year University project using GWT.  However, the
application interacts with a MySQL hosted DB to retrieve information.
Since the appengine does not support the MySQL jar files does anyone
know any other places that offer free hosting of app's to allow me to
test and evaluate the system with end-users.

Thanks,
Ross

-- 
You received 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: Simple history question

2011-01-27 Thread Ryan Mehregan
Places use History mechanism behind the scenes.
It is an abstraction layer which allows you to deal with History from a 
higher level point of view,
and application oriented.

in GWT applications, unlike other traditional web frameworks,
we have only one .html page. therefore talking about page1, and page2,is not 
correct,
because there is only one .html page.
but to enrich user experience, making your app navigable, bookmarkable,
back and forward button to work, you need to manipulate history.
instead of dealing with History directly, which is low level, you use 
Places,
as a result you can have different places in your app.
HomePlace, AccountsPlace, EmployeePlace, EmployeeListPlace.

and this is not just terminology differences. Places are integrated with 
EventBus,
so as you navigate from one place, to another, PlaceChangeEvents get fired.
and you can write code to handle these event changes.

For example, when you have a list of employees. when you click on (select) 
an employee on the list,
your app can take the user to a new place (employee detail place), to 
display detailed info on the selected employee.

Please have a look at these two very well written articles on Places.

GWT 2.1 Places part 1 : http://tbroyer.posterous.com/gwt-21-places
GWT 2.1 Places part 2: http://tbroyer.posterous.com/gwt-21-places-part-ii

Places are an integral part of GWT MVP framework, related to Activities.

if you are not already using GWT MVP, I do not think there would be any 
benefit in using Places.
only adds unnecessary complexity and huge learning curve.

I do not know how what you want to do can be achieved elegantly using raw 
History tokens.

Ryan

-- 
You received 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: when to use AsyncDataProvider instead of CellTable.setRowData ?

2011-01-27 Thread Jeff Schwartz
I think the name DataProvider should give everyone a clue as to when and why
to use one of its implementations - when you want to abstract out how data
is provided to a user (meaning some sink of the data provided by the
DataProvider).

In addition to abstracting out how and where the data comes from,
DataProviders also serve another important service. For instance, lets say
you have 10 different views of the same data objects (Pojos). If you don't
use a single DataProvider then all 10 views have to implement their own data
providing plumbing. Instead, create a singleton dataprovider - list, async
or whatever and share it among all views using the same data. Then, each
view can filter on the actual instances of the Pojos it needs from the
provider.

Besides the benefits already mentioned, here's another one: If you provide
common data through a single DataProvider then only the DataProvider has to
be interested in receiving global events related to the data such as when a
Pojo is updated, deleted or added and then views only need to concern
themselves with redrawing themselves.

Jeff

On Thu, Jan 27, 2011 at 12:06 PM, zixzigma zixzi...@gmail.com wrote:

 I have included the relevant code from Roo generated Expenses app here:
 http://pastebin.com/2FUbaVjY

 in onRangeChanged method,
 getView().asHasData().setRowData(range.getStart(), values);

 the code invokes setRowData on CellTable, and it makes use of
 onRangeChanged event,
 and in fact displays dynamic data, but does not use AsyncDataProvider.

 this contradicts with John LaBanca's comment ?

 --
 You received 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.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.




-- 
*Jeff Schwartz*

-- 
You received 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: Announcing GPE/GWT 2.2M1

2011-01-27 Thread Jeff Chimene
On 01/26/2011 04:21 PM, Eric Clayberg wrote:
 Good news! Google Plugin for Eclipse 2.2M1 (including Google Web
 Toolkit 2.2M1) is ready for you to download and try out from the
 following update site URLs...

Ok. I tried the Contact Support feature after a WindowBuilder internal
error. Is that feature active, or should I just file a bug report?

Cheers,
jec

-- 
You received 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: Two parallel asynchronous rpc calls possible?

2011-01-27 Thread Gal Dolber
Yes, the in general was specifically for appengine, many of my high cpu
request are generally batch rpcs. But outside of appengine I've seen great
results of batching rpcs.

Best

On Thu, Jan 27, 2011 at 2:01 PM, Jeff Schwartz jefftschwa...@gmail.comwrote:

 I'm glad you qualified your comment with 'in general' which IMHO is still
 not true and I believe it really depends on your use case. For instance, if
 you are targeting App Engine you certainly want to leverage parallel async
 calls because of the quota system that is enforced on Google's APIs and all
 server requests and that is only one of numerous use cases that I can think
 of that could benefit from using parallel async calls.

 Jeff

 On Thu, Jan 27, 2011 at 11:46 AM, Gal Dolber gal.dol...@gmail.com wrote:

 Yes, it is possible, every rpc call is asyc, so if you call two rpc
 methods one after the other they'll be executed in parallel. In general it
 is better to batch the parallel methods in one rpc call.

 On Thu, Jan 27, 2011 at 1:41 PM, joe kolba joekolb...@gmail.com wrote:

 Why not just make one call to a service and call different methods within
 your service object?  You can put methods in your serviceImpl that are not
 RPC methods.


 On Thu, Jan 27, 2011 at 11:17 AM, ghost23 sven.bu...@googlemail.comwrote:

 hello,

 i have a service. I create an instance of it via
 GWT.create(MyService.class). Then i call a method on it, get the
 result, everything works nicely.

 Now i need to call two methods on that service more or less in
 parallel. I tried this (either using the same service instance or two
 distinct ones),
 but now i get weird results, sometimes, the objects cannot be de-
 serialized or i get exceptions, that the objects are of another type
 and so on.

 Is it basically possible to make two parallel calls to a service?

 Thank you.
 Sven

 --
 You received 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.comgoogle-web-toolkit%2bunsubscr...@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.comgoogle-web-toolkit%2bunsubscr...@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.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.




 --
 *Jeff Schwartz*

  --
 You received 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.comgoogle-web-toolkit%2bunsubscr...@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.



Re: App Deployment

2011-01-27 Thread Ryan Mehregan
Amazon offers many Cloud based database related solutions.
Amazon RDS (Relational Database Service) is what you need.

http://aws.amazon.com/rds/

Amazon RDS gives you access to the full capabilities of a familiar MySQL 
database.
This means the code, applications, and tools you already use today with your 
existing MySQL databases work seamlessly with Amazon RDS.

It is not free, but I believe since you are not dealing with large datasets 
and high volume of users, 
it would be an economic choice. it is on-demand, so you pay for when you 
actually use it.
Small DB Instance is 0.11$ per hour

I think along with Google AppEngine, Amazon WebServices is one of the 
leading cloud platforms out there.
so if you gain some experience working with Amazon WS, would be a great 
investment and will pay off in your career.

Ryan

-- 
You received 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: Two parallel asynchronous rpc calls possible?

2011-01-27 Thread Jeff Schwartz
Actually the benefit can be just as great when targeting traditional web
servers, especially when there is high contention due to long running
requests which block new requests from getting serviced. Breaking up the
long running tasks into smaller atomic units of work that can run in
parallel and require less cpu cycles to complete can provide a significant
performance boost which users actually can experience and appreciate.

On Thu, Jan 27, 2011 at 12:29 PM, Gal Dolber gal.dol...@gmail.com wrote:

 Yes, the in general was specifically for appengine, many of my high cpu
 request are generally batch rpcs. But outside of appengine I've seen great
 results of batching rpcs.

 Best


 On Thu, Jan 27, 2011 at 2:01 PM, Jeff Schwartz jefftschwa...@gmail.comwrote:

 I'm glad you qualified your comment with 'in general' which IMHO is still
 not true and I believe it really depends on your use case. For instance, if
 you are targeting App Engine you certainly want to leverage parallel async
 calls because of the quota system that is enforced on Google's APIs and all
 server requests and that is only one of numerous use cases that I can think
 of that could benefit from using parallel async calls.

 Jeff

 On Thu, Jan 27, 2011 at 11:46 AM, Gal Dolber gal.dol...@gmail.comwrote:

 Yes, it is possible, every rpc call is asyc, so if you call two rpc
 methods one after the other they'll be executed in parallel. In general it
 is better to batch the parallel methods in one rpc call.

 On Thu, Jan 27, 2011 at 1:41 PM, joe kolba joekolb...@gmail.com wrote:

 Why not just make one call to a service and call different methods
 within your service object?  You can put methods in your serviceImpl that
 are not RPC methods.


 On Thu, Jan 27, 2011 at 11:17 AM, ghost23 sven.bu...@googlemail.comwrote:

 hello,

 i have a service. I create an instance of it via
 GWT.create(MyService.class). Then i call a method on it, get the
 result, everything works nicely.

 Now i need to call two methods on that service more or less in
 parallel. I tried this (either using the same service instance or two
 distinct ones),
 but now i get weird results, sometimes, the objects cannot be de-
 serialized or i get exceptions, that the objects are of another type
 and so on.

 Is it basically possible to make two parallel calls to a service?

 Thank you.
 Sven

 --
 You received 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.comgoogle-web-toolkit%2bunsubscr...@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.comgoogle-web-toolkit%2bunsubscr...@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.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.




 --
 *Jeff Schwartz*

  --
 You received 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.comgoogle-web-toolkit%2bunsubscr...@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.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.




-- 
*Jeff Schwartz*

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

generator , JClassType - get fields declaring values

2011-01-27 Thread Jozef Môstka
Hi All,

I need get declaring value from object properities Like:

class Foo{
   public String[] properityString = String[2];
   public int properityint = 50;
}

I need to know that the property properityint has a value of 5 , 
and property properityString has 2 empty elements.

I know get only fieldType :
public class PhpRpcObjectGenerator extends Generator {
public String generate(TreeLogger logger, GeneratorContext context, String 
typeName) throws UnableToCompleteException {
classType = context.getTypeOracle().getType(typeName);
 JField[] fields = classType.getFields();
 for (JField field : fields) {
  String fieldType = field.getType().getParameterizedQualifiedSourceName();
  
So, how I can get declared value ?
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.



Re: RequestFactory and Client side Caching

2011-01-27 Thread zixzigma
Thank You.

I looked into ProxyStore and ProxySerializer.
I can see we can put individual entityproxies in ProxyStore, and later 
retrieve it.
This is great.


- do you know if it is possible to put a List of proxies in the store, and 
later retrieve the list as a whole,
instead of an individual item, without looping through a result set ?

for example, when displaying a list of data in a table,
a server call, fetches a list of data. is it possible to store this list in 
the proxystore,
without iterating through the results, and later retrieve the entire list as 
a whole ?

- do you think ProxyStore should be application wide, bounded in Singleton 
scope,
(similar to PlaceController, EventBus, RequestFactory)
so that all of the application activities can store their data in it,
and data can be available to other activities who might require the same 
data later on,

or do you think its scope should be limited to the currently active 
activity(ies),
and when the Activity stops, data stored within this proxystore is discarded 
?

Thank You

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

2011-01-27 Thread Ernesto Reig
Thank you very much for your response. At the moment I´m studying jetty and
I get to a very simple question:
*¿What is or how can I know, the current Jetty version of the current GWT
version?* Now I´m using 2.1.1
This is a very simple question that I cannot understand why in the world
there´s no answer in the GWT official documentation...

Thank you in advance.

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



OnViolation method doesnt show error message.

2011-01-27 Thread Lazo Apostolovski
When I execute the next code, and when onViolation() method is called, no 
error message is showed in the ValueBoxEditorDecorator.
Any idea why?

@UiField
ValueBoxEditorDecoratorString itemName;


public void onClick(){

  ItemRequest request = requestFactory.ItemRequest();
  ItemProxy proxy = request.create(ItemProxy.class);

  proxy.setItemName(name);

  request.getItemByName(name);

  driver.edit(proxy, request);

  driver.flush().fire(new ReceiverVoid(){
@Override
public void onSuccess(Void response) {

}

@Override
public void onViolation(SetViolation errors) {
  driver.setViolations(errors);
}
  });
}

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

2011-01-27 Thread Ernesto Reig
Ok. Now I´m configuring the application to authenticata against the embedded
Jetty server wich comes with GWT. Please, correct me if I´m wrong:
 - I have to create a jetty-web.xml in WEB-INF of my gwt application with
the following text:

Configure class=org.mortbay.jetty.webapp.WebAppContext
  Set name=contextPath/test/Set
  Set name=warSystemProperty name=jetty.home
default=.//webapps/test/Set
   ...
  Get name=securityHandler
Set name=userRealm
  New class=org.mortbay.jetty.security.HashUserRealm
Set name=nameTest Realm/Set
Set name=configSystemProperty name=jetty.home
default=.//etc/realm.properties/Set
  /New
/Set
  /Get
/Configure

And it gives me the following exception:
java.io.FileNotFoundException:
C:\workspace\myapp\src\main\webapp\etc\realm.properties (The system cannot
find the path specified)
Of course it does not find the file realm.properties. First, I have no
jetty.home system variable set, and second, what would it be the value of
this system variable??
The thing is, if I want to use HashUserRealm for my webapp authentication,
Jetty looks for a properties file to find the users and their credentials,
but where the hell is that file? Jetty is embedded...

Maybe I´m wrong in something. Please help.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-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: Rendering Rich Text in a Cell

2011-01-27 Thread Thomas Broyer
There's an 
HtmlSanitizerhttp://google-web-toolkit.googlecode.com/svn/javadoc/2.1/com/google/gwt/safehtml/shared/HtmlSanitizer.htmlwith
 a simple 
implementationhttp://google-web-toolkit.googlecode.com/svn/javadoc/2.1/com/google/gwt/safehtml/shared/SimpleHtmlSanitizer.html.
 
HTH

-- 
You received 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: Apache and Tomcat: Proxy, Caching and Compression configuration

2011-01-27 Thread P.G.Taboada
Thanks a lot for your comments. I am trying not to take static
resources out of tomcat as it would make deployment slightly more
complicated, but I have it in mind as soon as I run into performance
issues.

I am struggling a little bit with the split points: although http
headers are set to expire in far future, the browser keeps reloading
the split points (the .js files).

I will update my posting to include your comments asap.

brgds,

Papick

On Jan 27, 2:31 pm, Ed post2edb...@gmail.com wrote:
 Thanks.
 A few things:
 - ProxyPassReverse don't work with ajp...
 See:http://www.humboldt.co.uk/2009/02/the-mystery-of-proxypassreverse.html
 You can simple test it by performing a redirect on tomcat

 - Almost all browsers nowedays support gzip, so why not gzip them by
 default..?.. instead of gzipping them on every http request... not
 needed...
 You can tell GWT to output all your files as gzip. Then use apache
 httpd multiview to send the correct file.
 Then let apache httpd inflate the file if you encounter a browser that
 doesn't support gzip..(rare these days).

 - Use Yslow plugin for FF to fine tune your settings.

 - Don't forget to set the correct caching for the css, images, third
 party js files, etc...

 - Put your gwt files directly under apache httpd instead of tomcat
 (noserver mode). Performs much better. Only use tomcat for rpc and
 other backend calls.
 Then you don't need the proxymatch settings and just use Files
 settings...performs a bit better...

 - See:http://groups.google.com/group/google-web-toolkit/browse_thread/threa...

 I got this all working very nice and you notice the performance gain
 big time as I also have the nightly build without all these optimized
 http settings...

 Here you got a http snippet that I use, hope it helps you:
 
 # Add inflate (uncompress) filter that will be used when the browser
 doesn't support
 # gzip
 # Ref:http://httpd.apache.org/docs/2.2/mod/mod_filter.html
  FilterDeclare gzinflate CONTENT_SET
  FilterProvider gzinflate inflate req=Accept-Encoding !$gzip

 # set up Multiviews:
 # Ref:
 #http://www.w3.org/International/questions/qa-apache-lang-neg
 #http://httpd.apache.org/docs/current/content-negotiation.html
 #http://everything2.com/title/How+to+get+Apache+to+send+compressed+ver...
 # Note: make sure to not set the AddType application/x-gzip .gz .tgz
 as then all the gzp files will
 # be returned with the wrong content-type (as gzip instead as the
 zipped content: js/css, etc...)

  Options +MultiViews
  AddEncoding x-gzip .gz
  RemoveType application/x-gzip .gz .tgz

  # Enabled the inflate filter
  FilterChain gzinflate

 # GWT Optimization.
 # ref:
 #http://www.infoq.com/articles/gwt-high-ajax
 #http://code.google.com/webtoolkit/doc/latest/DevGuideCompilingAndDebu...
 #http://www.samaxes.com/2008/04/htaccess-gzip-and-cache-your-site-for-...
 #http://betterexplained.com/articles/how-to-optimize-your-site-with-gz...
 #http://code.google.com/p/doctype/wiki/ArticleHttpCaching
 #
 ## GWT caching
 #
 Files *.nocache.*
   ExpiresActive on
   ExpiresDefault now
   Header set Cache-Control public, max-age=0, must-revalidate
 /Files

 Files *.cache.*
   ExpiresActive on
   ExpiresDefault now plus 1 year
 /Files

 # Note: this only matches the file name and not the preceding
 directory
 FilesMatch \.(gif|jpe?g|png|ico|css|xml)$
   ExpiresActive on
   ExpiresDefault now plus 3 day
 /FilesMatch

 Files ext.js
   ExpiresActive on
   ExpiresDefault now plus 3 day
 /Files

 # Tell apache to use the compressed files if possible
 #SetOutputFilter DEFLATE
 #
 # Deflate by type
 AddOutputFilterByType DEFLATE text/plain
 AddOutputFilterByType DEFLATE text/html
 AddOutputFilterByType DEFLATE text/xml
 AddOutputFilterByType DEFLATE text/css
 AddOutputFilterByType DEFLATE application/xml
 AddOutputFilterByType DEFLATE application/xhtml+xml
 AddOutputFilterByType DEFLATE application/rss+xml
 AddOutputFilterByType DEFLATE application/javascript
 AddOutputFilterByType DEFLATE application/x-javascript

 # ref:http://developer.yahoo.com/performance/rules.html#etags
 FileETag none

-- 
You received 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: Simple history question

2011-01-27 Thread Thomas Broyer


On Thursday, January 27, 2011 5:32:52 PM UTC+1, Navigateur wrote:

 Before I delve, what's the most elegant way of handling the start page 
 of your app? (i.e. going back to it?) 

 Really my question is about the fact that for e.g. page2 you have 
 created a history token with the String #page2... but when you press 
 the back button after this, you go back to the first page that 
 has... no token? So how do you test for this? 

 Sorry if this sounds stupid (and I haven't done it yet)... but does 
 the ValueChangeHandler just give you a token with an empty String () 
 when you do this?


Yes.
 

 If not, what's the most elegant way of including the first page in 
 your history, without repeating any code, and without adding 
 unnecessary items in the browser history?


The easiest way is to start your ValueChangeHandler with code like:
  if (historyToken.isEmpty()) {
historyToken = DEFAULT_TOKEN;
  }
 
or to only ever associate that default page with the empty token.

This is similar to whether you'd link to /index.html (default name used by 
your web server when asked for /) or / (and never ever use index.html 
in your links).

I'd highly suggest you to use GWT 2.1 Places though!

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

2011-01-27 Thread Thomas Broyer


On Thursday, January 27, 2011 7:49:01 PM UTC+1, ernesto.reig wrote:

 Ok. Now I´m configuring the application to authenticata against the 
 embedded Jetty server wich comes with GWT. Please, correct me if I´m wrong:
  - I have to create a jetty-web.xml in WEB-INF of my gwt application with 
 the following text:

 Configure class=org.mortbay.jetty.webapp.WebAppContext
   Set name=contextPath/test/Set
   Set name=warSystemProperty name=jetty.home 
 default=.//webapps/test/Set


You don't have to set these: you're already in the webapp (I don't think the 
contextPath will be used given the way the webapp is deployed)

   ...
   Get name=securityHandler
 Set name=userRealm
   New class=org.mortbay.jetty.security.HashUserRealm
 Set name=nameTest Realm/Set
 Set name=configSystemProperty name=jetty.home 
 default=.//etc/realm.properties/Set
   /New


The jetty.home points to your working directory (according to my comment 
in http://code.google.com/p/google-web-toolkit/issues/detail?id=4462), which 
generally will be your war folder.

(compared to the sample jetty-web in my comment on the issue, you would just 
need to replace the authenticator with the login-config, or you could 
use the same thing as I used to use)

-- 
You received 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: Announcing GPE/GWT 2.2M1

2011-01-27 Thread Dave Laycock
Will the final release have feature parity with GWT Designer? It looks like 
Ext GWT and Smart GWT are not supported in this plugin.

-- 
You received 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: App Deployment

2011-01-27 Thread Ross McKinnon
Hi Ryan,

Thanks for your reply.  I will keep this in mind.

As the App will only be used by a couple of people, i do not think its
worth investing in the hosting!

However, if I become desperately stuck then I will have no option but
to proceed with investment.

Ross

On Jan 27, 5:38 pm, Ryan Mehregan ryan...@gmail.com wrote:
 Amazon offers many Cloud based database related solutions.
 Amazon RDS (Relational Database Service) is what you need.

 http://aws.amazon.com/rds/

 Amazon RDS gives you access to the full capabilities of a familiar MySQL
 database.
 This means the code, applications, and tools you already use today with your
 existing MySQL databases work seamlessly with Amazon RDS.

 It is not free, but I believe since you are not dealing with large datasets
 and high volume of users,
 it would be an economic choice. it is on-demand, so you pay for when you
 actually use it.
 Small DB Instance is 0.11$ per hour

 I think along with Google AppEngine, Amazon WebServices is one of the
 leading cloud platforms out there.
 so if you gain some experience working with Amazon WS, would be a great
 investment and will pay off in your career.

 Ryan

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



New to GWT, issues w/ Tutorial, Looking for Sample Project

2011-01-27 Thread Joshua O'Connor-Rose
Hi I'm Joshua in Chicago and I'm new,

The stockwatcher tutorial threw me for a loop on this bit

// Listen for keyboard events in the input box.
newSymbolTextBox.addKeyPressHandler(new KeyPressHandler() {
  public void onKeyPress(KeyPressEvent event) {
if (event.getCharCode() == KeyCodes.KEY_ENTER) {
  addStock();
}
  }
});

I used debugging ran a search and changed KeyPressHandler to
KeyDownHandler to fix (getCharCode() was returning 0 on enter which
wasn't the 13 KeyCodes.KEY_ENTER had)

I'm going to finish the sample first but is there another good sample
on working with JSON and your own data objects, maybe w/ Google App or
Simple MySQL database?

I'm also looking to possibly contribute time to a project if you'll have me
(15 year CF, 10 .NET, 16 SQL, 14 HTML, 5ish Java fell into a .net gap
and need to brush up on AJAX and JSON)

-Joshua O'Connor-Rose
-All is Good

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

2011-01-27 Thread Y2i
Based on the below I assumed it's 6.1.23, this is what I'm using.

find . -name *jetty*
./org.eclipse.equinox.http.jetty_2.0.0.v20100503.jar
./org.mortbay.jetty.serveradaptor_1.0.4
./org.mortbay.jetty.serveradaptor_1.0.4/icons/jetty_tiny.gif
./org.mortbay.jetty.serveradaptor_1.0.4/servers/jetty.serverdef
*./org.mortbay.jetty.server_6.1.23.v201004211559.jar*
*./org.mortbay.jetty.util_6.1.23.v201004211559.jar*

-- 
You received 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: Announcing GPE/GWT 2.2M1

2011-01-27 Thread Chris Ramsdale
We are looking at ways to have the Ext GWT and Smart GWT folks take over
this portion of the GWT Designer. For 2.2 we will have an updated stand
alone version that still has this support.

-- Chris

On Thu, Jan 27, 2011 at 2:30 PM, Dave Laycock dave.layc...@gmail.comwrote:

 Will the final release have feature parity with GWT Designer? It looks like
 Ext GWT and Smart GWT are not supported in this plugin.

  --
 You received 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.comgoogle-web-toolkit%2bunsubscr...@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.



Google Web Fonts

2011-01-27 Thread EMan
Has anyone successfully used this in a GWT project?

http://code.google.com/apis/webfonts/docs/getting_started.html#Quick_Start

I tried to add these fonts to some uiBinder elements, but I can't get
it to work.

What is the best way to get the font css files to link up?

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.



  1   2   >