how to convert Class? types to Instance types ? Are GWT Places Singleton ?!

2010-12-29 Thread metalhammer29a
I have custom places in my app: HomePlace extends ApplicationPlace {} MailPlace extends ApplicationPlacfe {} I keep a reference of all my places in an array, in some other class class AppPlaces { Place[] places = { HomePlace.class, SettingsPlace.class, MailPlace.class } } how can I convert

How to convert from Class? type to Instance type with GIN ? Are GWT Places Singleton ?

2010-12-29 Thread metalhammer29a
I have custom places in my app: HomePlace extends ApplicationPlace {} MailPlace extends ApplicationPlacfe {} I keep a reference of all my places in a list, in some other class class AppPlaces { ListClass? extends Place places = new ArrayListClass? extends Place(); public AppPlaces(){

can I use Class.forName and newInstance in GWT ?

2010-12-29 Thread metalhammer29a
can I use Class.forName and newInstance in GWT ? static Employee create (String name) { try { return (Employee) Class.forName(name).newInstance(); } catch (Exception e) { throw new IllegalArgumentException (Unable to instantiate + name); } } --

Re: How to handle application state ?

2010-12-07 Thread metalhammer29a
what about security implication of storing the info on the client ? I think, if you are dealing with Role-Based Security/Access Control List (ACL)/ Authorization, everytime user goes to a new place, you need a server call to check on the server whether the user is authorized to view a given

what Mock framework do you recommend ?

2010-12-06 Thread metalhammer29a
Hello, I was wondering, which Mock framework do you use in your GWT development ? What has been your experience ? I am thinking of using JMock. what do you think of it ? have you used other frameworks such as Unitils ? frameworks that build on top of Mocking frameworks, and provide annotation

Re: All I Want for Christmas is a powerful Widget Library from Google !

2010-12-06 Thread metalhammer29a
+1 completely agree, Google offered $6 Billion to Groupon, and are investing in Wind power and space adventures. as the OP stated, if Google team is too focused on hard problems/ architectural decisions, why not invest/acquire a company to do this for them and the community. Sencha is dedicated

Re: A MVP widget within a View

2010-12-06 Thread metalhammer29a
have a look at GWTP, a popular MVP framework for GWT. http://code.google.com/p/gwt-platform/ GWTP is loaded with many added features, including Tabbed Navigation, Breadcrumbs, Spring integration, among others. The community is active, dedicated and very friendly. -- You received this message

Re: Celltree Refresh question

2010-12-06 Thread metalhammer29a
I have the same problem : ( -- 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-tool...@googlegroups.com. To unsubscribe from this group, send email to

Re: CellTree How to render different cell types at a given level ?

2010-12-04 Thread metalhammer29a
see the code for this example. What you describe is implemented in the example below, with 3 levels, (ie 3 different objects). yes, they are 3 different objects, in 3 levels, but at any given level, there is only ONE type. Composer Node, contains ONLY PlayList. PlayList Node contains ONLY Songs.

Re: CellTree How to render different cell types at a given level ?

2010-12-04 Thread metalhammer29a
Thank you for your ideas and sharing code samples. Sorry If I was unclear in my description. Here is some code to put my problem in perspective: private static class Folder { // a Folder, has a Name, zero or many child Folders, zero or many Files private final String

Re: CellTree How to render different cell types at a given level ?

2010-12-04 Thread metalhammer29a
I found this, from the previous posts on this forum. [1] and so far it seems I got it working. The trick was: to use a common super type or interface and cast as needed. I used Composite Design Pattern. [1]

Google's CellTree documentation - CellTreeExample2.java won't compile !

2010-12-03 Thread metalhammer29a
In Google's documentation for CelLTree, http://code.google.com/webtoolkit/doc/latest/DevGuideUiCellWidgets.html#celltree the sample code provided for CellTreeExample2 doesnt compile:

Re: Google's CellTree documentation - CellTreeExample2.java won't compile !

2010-12-03 Thread metalhammer29a
does anyone know how the problem mentioned can be fixed ? -- 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-tool...@googlegroups.com. To unsubscribe from this group, send email to

Re: Google's CellTree documentation - CellTreeExample2.java won't compile !

2010-12-03 Thread metalhammer29a
Thank you. are GWT 2.1.1 features available to the public ? Would be nice to look at what is going to be added in future releases, and be prepared for changes. I don't think I could find GWT 2.1.1 in the trunk. -- You received this message because you are subscribed to the Google Groups

Best way to handle Hierarchical structures/queries in GWT + GAE Datastore

2010-12-03 Thread metalhammer29a
I have a Hierarchical structure, similar to Folders/Directories. I am going to use CellTreeWidget for data presentation. and planning to use RequestFactory/JDO/Google Data Store /GAE for persistence/data access. What is the best way to deal with this situation? two approaches for the model

Re: equals and hashCode methods server and client side

2010-12-03 Thread metalhammer29a
You can use gwt-hashcode-equals, which is port of HashCodeBuilder and EqualsBuilder from the Apache Commons project to Google Web Toolkit. http://code.google.com/p/gwt-hashcode-equals/ your hashCode, equals, would become a lot more cleaner too. -- You received this message because you are

Re: Best way to handle Hierarchical structures/queries in GWT + GAE Datastore

2010-12-03 Thread metalhammer29a
forgot to add that my question is mainly toward Recursive entities. what is the best data structure to use ? (a Folder, can have Zero or Many Folders, and Zero or Many Documents) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to

CellTree How to render different cell types at a given level ?

2010-12-03 Thread metalhammer29a
How to implement this use case, which is also mentioned in Google documentation ? Each node has a Cell of a specific type; usually, all Cells at a given level are of the same type, but that isn't required. [1] I am using GWT CellTree. public static class MyFolderTreeModel implements TreeViewModel

Re: HelloMVP sample with JUnit TestCase example?

2010-12-02 Thread metalhammer29a
It would be a good idea to use GIN, therefore relieving you from having to pass clientFactory around. as your application grows, GWT MVP development is very cumbersome without GIN. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post

Re: Announcing free online GWT/GAE mini-book

2010-12-02 Thread metalhammer29a
Thank you, what a valuable resource. already bookmarked it, going to read it soon. -- 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-tool...@googlegroups.com. To unsubscribe from this group,

Re: GWT MVP Activities and Places

2010-12-02 Thread metalhammer29a
That's the exact use case for FilteredActivityMapper and CachingActivityMapper (and how they're used AFAICT in scaffold applications generated by String Roo for the master activities). what about situations where a display region is master in some cases (requiring to be cached), and detail in

Re: GWT 2.1 Activities – nesting? YAGNI ? - an exa mple of where you NEED it !

2010-12-01 Thread metalhammer29a
I am in the similar situation as zixzigma. one of Thomas Broyer ideas, make each workspace it's own GWT app (if they're sufficiently different to deserve it) could you please explain how this would be possible ? by breaking the project into modules and use multiple entry points ? and what if

GWT MVP Activities and Places

2010-12-01 Thread metalhammer29a
I am using GWT 2.1 MVP in my project. I have identified 4 display regions (North, West, East, Center), each managed by a corresponding Activity Manager. Each display region also has a corresponding ActivityMapper that maps a place to the appropriate activity. when I don't need a region, I just

Re: how to achieve pretty URLs in GWT 2.0 application

2010-12-01 Thread metalhammer29a
in GWT MVP apps generated by Roo, the way ProxyPlace and ProxyListPlace are implemented, result in oddly looking URLs. aside from the aesthetics, it reveals the underlying business object and full package name. take for example these history tokens :

Re: GWT 2.1 MVP / AppController

2010-12-01 Thread metalhammer29a
I believe you can use Activity Mapper to map a Place to the corresponding Activity. -- 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-tool...@googlegroups.com. To unsubscribe from this group,

Re: How to load data BEFORE showing view/presenter?

2010-12-01 Thread metalhammer29a
I do not know the answer to this. and would like to find out as I am in the similar situation. However I have come across this class: com.google.gwt.requestfactory.shared.RequestEvent http://google-web-toolkit.googlecode.com/svn/javadoc/2.1/com/google/gwt/requestfactory/shared/RequestEvent.html

Re: GWT MVP Activities and Places

2010-12-01 Thread metalhammer29a
Ashton, if you have a List of items in the West Region, and are going to display the details of each item in Center Region (upon selection from the list in west region), do you think we are going to need One Place or Two Places ? how about Activities ? One Activity or Two Activities ? I think

Re: GWT MVP Activities and Places

2010-12-01 Thread metalhammer29a
Depending on how your app is structured you can implement a Place hierarchy. AppPlace or just Place Type1Place extends AppPlace (or Place) Type2Place extends AppPlace (or Place) Type3Place extends AppPlace (or Place) HomePlace extends Type1Place ContactUsPlace extends Type2Place etc I