Activities and Places - Enabling History to reflect an updated data item

2016-01-06 Thread Thomas Broyer
You need to somehow notify your cached data that it has changed; there are many ways to do that depending on how you architected things. You could have the cached list in a "holder" class and simply call a method on it from your update activity. Or you could send an event in the event bus for

Re: Layout principles for UIBinder with Polymer elements

2016-01-06 Thread vadim
Thank you for response N Troncoso, I have figured out that none of my assumptions were true. If I don't give width/heights as parameters for DockLayoutPanel it is still present in document DOM, but not visible. The reason for that is somehow depends from the widget I put into it. For example:

Re: Layout principles for UIBinder with Polymer elements

2016-01-06 Thread vadim
I am using UIBinder and MVP to construct View. View ui.xml file is very simple (with DockLayoutPanel on the top): .panelHeight { height: 300px; } Empty Not empty DockLayoutPanel is not a part of

Re: Layout principles for UIBinder with Polymer elements

2016-01-06 Thread vadim
DockLayoutPanel does not implement AcceptsOneWidget interface and thus can not be passed to ActivityManager as parameter for activityManager.setDisplay(appWidget). Without ActivityManager display function widget is not shown. It seems tricky. -- You received this message because you are

Re: Layout principles for UIBinder with Polymer elements

2016-01-06 Thread Frank
This look to me because one of the parent panels of the docklayout is not a layout panel. When one of the parent panel is not a layoutpanel the height gets broken. -- You received this message because you are subscribed to the Google Groups "GWT Users" group. To unsubscribe from this group and

Re: Layout principles for UIBinder with Polymer elements

2016-01-06 Thread N Troncoso
What is your DockLayoutPanel in? You should be putting it in a RootLayoutPanel, or some other LayoutPanel. -- You received this message because you are subscribed to the Google Groups "GWT Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to

Re: Layout principles for UIBinder with Polymer elements

2016-01-06 Thread Thomas Broyer
On Wednesday, January 6, 2016 at 2:55:02 PM UTC+1, va...@ant.ee wrote: > > DockLayoutPanel does not implement AcceptsOneWidget interface and thus can > not be passed to ActivityManager as parameter for > activityManager.setDisplay(appWidget). Without ActivityManager display > function widget

Re: Activities and Places - Enabling History to reflect an updated data item

2016-01-06 Thread Paul Mazzuca
Thanks for all the quick replies. When having to consider the back button in a browser or an Android mobile device, it certainly changes the way you think about architecting the standard goto(Place). My solution was to build in a static placeCache into each Place, that way when getPlace is

Re: Working polymer example?

2016-01-06 Thread vadim
Do you use mojo Maven plug-in? Have you enabled JSInterop like tutorial said? -- You received this message because you are subscribed to the Google Groups "GWT Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to

Re: Layout principles for UIBinder with Polymer elements

2016-01-06 Thread vadim
Thank you, Thomas. Your advice helped again. Now I know the main UI layout building principle -- do not mix *Panels with *LayoutPanels! :) On Wednesday, January 6, 2016 at 6:12:48 PM UTC+2, Thomas Broyer wrote: > > > Use SimpleLayoutPanel instead of SimplePanel, and RootLayoutPanel instead >

Working polymer example?

2016-01-06 Thread Transplant
Can anyone point me to a working example of Polymer and GWT? The tutorial on gwtproject.org does not compile with 2.7, and when you try it with 2.8 snapshot it gives you a page with an empty iframe in it. Is anyone using it in a production application? Thanks in advance, -- You received

getServletContext().getRealPath(File.separator) returns null in 2.6.1

2016-01-06 Thread RT
I just updated my 2.5.1 GWT app to 2.6.1. It all seems to work fine except that on the server side in my RPC handling code getServletContext().getRealPath(File.separator) returns null in 2.6.1 whereas in 2.5.1 it returned the local path: C:\Users\Paul\workspace\MyApp\war Any idea how to