abhishek24509 / aribaweb

Automatically exported from code.google.com/p/aribaweb
Apache License 2.0
0 stars 0 forks source link

Meta UI: Issues with MetaHomePage #90

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. When you use MetaTabs from Application.oss, each tab has to extend 
MetaHomePage. If it extends AWComponent instead, then the metatabs vanish on 
refreshing the component.
2. If the tabs extend MetaHomePage on the other hand, then a refresh of any tab 
using pageWithName() returns the user to the first tab, rather than to the one 
she was on
3. Another problem on extending MetaHomePage is this:
-Let PageA extend metaHomePage. On clicking some button, the user is taken to a 
modal page PageB. 
-In pageB, do something like _returnPage = 
requestContext().requestPage().pageComponent();
-Then if you do PageA a = (PageA)_returnPage you get a classCastException 
saying that MetaHomePage cannot be cast to PageA. This same thing works if 
PageA extends AWComponent.

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?
5.0GA

Please provide any additional information below.

Original issue reported on code.google.com by thom...@gmail.com on 12 Aug 2011 at 4:07

GoogleCodeExporter commented 8 years ago
Corollary to 2: A pageWithName call on any tab resents all the tabs to new 
instances

Original comment by thom...@gmail.com on 12 Aug 2011 at 5:32