Session Time Out and Authentication problem with gaerequest module
Hello, I try to use *gaerequest* module (mobilwebapp demo in gwt svn) to control session timeout and authentication. Everything works fine but I'll never get in *GaeAuthenticationFailureEvent* dispatch method. What I do is the same in Expenses or MobilwebApp gaerequest gwt module in samples. Because I use Gwt 2.4, there is a bug with evenbus ( http://code.google.com/p/google-web-toolkit/issues/detail?id=6653) with EventBus. I use com.google.web.bindery.event.shared.EventBus and I have writtenBaseActivity to correct EventBus error (see bug link). Everything works fine with Activities but never comes into dispatch method in GaeAuthenticationFailureEvent? Why does not dispatch event? ( In GaeAuthRequestTransport makes eventBus.fireEvent(new GaeAuthenticationFailureEvent(loginUrl)); ) Does anyone have problems with gearequest dispatch event in GWT 2.4? Thanks. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/HFkH_m6bVVUJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: Aw: Generic Entity Locator
Hi Jens, how do you write find Methode of your EntityLocator? Is my methode correct? * * @Override public *EntityBase* find(Class clazz, Long id) { * return ?* } Best regards. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/7o3T9tGYtAEJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: Aw: Generic Entity Locator
Jens thanks for your answer, i have problems with generic dao and request factory (in gwt 2.3). The problem was in gwt 2.4 solved (according to http://code.google.com/p/google-web-toolkit/wiki/RequestFactory_2_4 i have not yet tested!) . I am waiting for gwt 2.4 final. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/dOEqVEdGWcEJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Generic Entity Locator
Hello, I am writing a request factory sample in gwt 2.3, for this sample i want to write a generic entity locator. I've read David Chandler's sample http://turbomanage.wordpress.com/2011/03/25/using-gwt-requestfactory-with-objectify/ but David is using ObjectifyLocator with google app engine. // David's generic ObjectifyLocator.java /** * Generic @Locator for objects that extend DatastoreObject */ public class ObjectifyLocator extends Locator { @Override public DatastoreObject create(Class clazz) { try { return clazz.newInstance(); } catch (InstantiationException e) { throw new RuntimeException(e); } catch (IllegalAccessException e) { throw new RuntimeException(e); } } @Override public DatastoreObject find(Class clazz, Long id) { DAOBase daoBase = new DAOBase(); return daoBase.ofy().find(clazz, id); } @Override public Class getDomainType() { // Never called return null; } @Override public Long getId(DatastoreObject domainObject) { return domainObject.getId(); } @Override public Class getIdType() { return Long.class; } @Override public Object getVersion(DatastoreObject domainObject) { return domainObject.getVersion(); } } My Classes : Base entity : getId, getVersion etc. (base class for all entities) Category : entity CategoryLocator : locator class CategoryProxy : DTO Proxy for Category entity. // CategoryLocator public class CategoryLocator extends Locator { @Override public Category create(Class clazz) { return new Category(); } @Override public Category find(Class clazz, Long id) { return getCategoryDAO().findById(id); } private CategoryDao getCategoryDAO() { return new CategoryDao(); } @Override public Class getDomainType() { return Category.class; } @Override public Long getId(Category domainObject) { return domainObject.getId(); } @Override public Class getIdType() { return Long.class; } @Override public Object getVersion(Category domainObject) { return domainObject.getVersion(); } } // CategoryProxy @ProxyFor(value = Category.class, locator = CategoryLocator.class) public interface CategoryProxy extends EntityProxy { Long getId(); String getName(); void setName(String name); } How can i write only a generic entity locator class for my all proxy classes such as ObjectifyLocator.class without google app engine structure? Thanks, Cem. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.