google-code-export / mvp4g

Automatically exported from code.google.com/p/mvp4g
1 stars 0 forks source link

Mvp4g with Deferred Binding not creating expected rebind results #127

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I am trying to use deferred binding along with the mvp4g lib and a property's 
value to determine which Presenter's view should display. 

I am passing the property value through foo.html to foo.gwt.xml and using 
deferred binding to determine which Presenter to use based on this property 
value. 

I'm starting with only 2 unique values for my property[FOO,BAR] and I'm setting 
"user.agent" value="ie9", so I'd expect to see 2 [longaddress].foo.cache.html 
files created under my application but only 1 file is ever created so I'm 
assuming the deferred binding isn't working.

I've also tried splitting the EventBus but got an error stating there can be 
only 1 EventBus.  
I'm including code pieces of my logic; note there are matching 
BarPresenter/BarView files but they're similar in logic so no need to include 
them. 

What am I doing wrong; can deferred binding be used for this purpose while 
using Mvp4g?

Thank you in advance for any help.

Original issue reported on code.google.com by tlfTechQ...@gmail.com on 26 Aug 2013 at 2:57

Attachments:

GoogleCodeExporter commented 9 years ago
If you want to switch a view depending on a parameter, you should look at the 
MobileWebApp example. It is part of the GWT project. This examples changes the 
views depending on the device. You always change the views with deferred 
binding rules. I can not imaging a case where it is a good idea to change the 
presenter.

Because I can't see  problem related to mvp4g, I will close the issue. If you 
do not agree, please help me to understand where there is a problem inside of 
mvp4g and I will open the issue again.

Original comment by frank.hossfeld on 2 May 2014 at 10:46

GoogleCodeExporter commented 9 years ago

Original comment by frank.hossfeld on 2 May 2014 at 10:46