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
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 ?
static Employee create (String name) {
try {
return (Employee) Class.forName(name).newInstance();
} catch (Exception e) {
throw new IllegalArgumentException (Unable to instantiate
+ name);
}
}
--
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
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
+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
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
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
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.
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
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]
In Google's documentation for CelLTree,
http://code.google.com/webtoolkit/doc/latest/DevGuideUiCellWidgets.html#celltree
the sample code provided for CellTreeExample2 doesnt compile:
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
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
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
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
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
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
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
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,
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
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
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
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 :
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,
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
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
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
28 matches
Mail list logo