the method I Override is the key to implement multiple place
----------
ActivityManager activityManager = new ActivityManager(cached,
eventBus){
@Override
public void onPlaceChange(PlaceChangeEvent event) {
if(event.getNewPlace() instanceof NorthPlace){
this.setDisplay(north);
}else if(event.getNewPlace() instanceof
CenterPlace){
this.setDisplay(center);
}else if(event.getNewPlace() instanceof
WestPlace){
this.setDisplay(west);
}else if(event.getNewPlace() instanceof
AllPlace){
this.setDisplay(all);
}
super.onPlaceChange(event);
}
};
xxx.ui.xml is like this
<g:SimplePanel ui:field="all">
<g:DockLayoutPanel unit='PX' styleName="{style.bodyContainer}"
ui:field="dock">
<g:north size='270'>
<g:SimplePanel ui:field="north"/>
</g:north>
<g:west size='200'>
<g:SimplePanel ui:field="west"/>
</g:west>
<g:center>
<g:SimplePanel ui:field="center"
styleName="{style.contents}" />
</g:center>
</g:DockLayoutPanel>
</g:SimplePanel>
first problem i got is when we press F5 or browser refresh
button,forward the url to others ,the app just loaded last place and
other places are blank ,so I changed the url like in demo ,then my
app is able to load all places,Now the problem i got is when user
press browser's 'back' button it works in same activity's different
place(place name is different) ,but it does not work go back between
different activity's place .
so any one please help me solve this 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 [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.