| Author |
Message |
![[Post New]](/templates/default/images/icon_minipost_new.gif) 01/21/2008 11:02:37
|
cobar
Joined: 08/01/2007 17:02:58
Messages: 98
Offline
|
When we put 2 different select tables in 2 different tabs and try to tab from the selected default index tab we get a server error. We are running JSF 1.2 in BEA 10.
| Filename |
tabs.zip |
Download
|
| Description |
|
| Filesize |
7 Kbytes
|
| Downloaded: |
312 time(s) |
| Filename |
tabs.mht |
Download
|
| Description |
|
| Filesize |
1047 Kbytes
|
| Downloaded: |
228 time(s) |
|
|
|
 |
![[Post New]](/templates/default/images/icon_minipost_new.gif) 01/30/2008 06:51:35
|
adina_mihai
Simplica Team
Joined: 04/01/2007 00:00:00
Messages: 183
Offline
|
Please look into this post: http://www.simplica.com/posts/list/59.page and let me know if this fixed your issue.
|
|
|
 |
![[Post New]](/templates/default/images/icon_minipost_new.gif) 02/01/2008 10:27:58
|
cobar
Joined: 08/01/2007 17:02:58
Messages: 98
Offline
|
I am still receiving a server error when tabbing off the initial selected index.
This is what I am trying to do: The tabpane is not renedered unless the users request if found on the database. (I have tried both binding the tabpane and setting the component to be rendered and I have tried binding the render property and setting it. The tabpane and its contents do not render properly.) My biggest question is, do I create the table models for all the tabs before the tabpane is rendered or just the initial contents of the selected index and then create and render the other models in the other tabs from a tab action listener? The contents of 3 tabs do not change, the fourth tab makes a database call every time so what should the preload and reload attributes be set to?
|
|
|
 |
![[Post New]](/templates/default/images/icon_minipost_new.gif) 02/04/2008 06:51:47
|
adina_mihai
Simplica Team
Joined: 04/01/2007 00:00:00
Messages: 183
Offline
|
The contents of 3 tabs do not change, the fourth tab makes a database call every time so what should the preload and reload attributes be set to?
We don't have implemented reload and preload properties on tab level yet, so you should use reload="true" on tabpane level.
My biggest question is, do I create the table models for all the tabs before the tabpane is rendered or just the initial contents of the selected index and then create and render the other models in the other tabs from a tab action listener?
Our solution is to use a lazy initialization for first 3 table models. Inside breakModel getter, you should create model if only this one is null.
I am still receiving a server error when tabbing off the initial selected index.
Please send us more details regarding this server error or the stack trace.
|
|
|
 |
![[Post New]](/templates/default/images/icon_minipost_new.gif) 02/04/2008 13:54:37
|
cobar
Joined: 08/01/2007 17:02:58
Messages: 98
Offline
|
I get the same error with lazy initialization as I get when I load the models from the action listener. The only way around the server error is to turn ajax off. This seems to be a state issue with any kind of component that requires state management. Seems as if the state of the components on the non-selected tabs is not present on the current selected tab. If you put static components in the tab then the tabbing event works fine.
| Filename |
lazyTabs.mht |
Download
|
| Description |
|
| Filesize |
789 Kbytes
|
| Downloaded: |
205 time(s) |
|
|
|
 |
![[Post New]](/templates/default/images/icon_minipost_new.gif) 02/04/2008 14:00:55
|
cobar
Joined: 08/01/2007 17:02:58
Messages: 98
Offline
|
Can you put your OrderList in one tab and your Customer List in another tab and see if you can reproduce the error on your end?
|
|
|
 |
![[Post New]](/templates/default/images/icon_minipost_new.gif) 02/06/2008 05:29:22
|
adina_mihai
Simplica Team
Joined: 04/01/2007 00:00:00
Messages: 183
Offline
|
I couldn't reproduce the error using our latest source code. Did you upgrade to ecruiser-suite-v1.1.6 ?
In this version, server error popup display the error code, instead of the rendered HTML, so it is more suggestive, and it might be helpful for you. You can also disable this popup using a property in ec-config.xml file, from your WEB-INF folder. Please see the attched file.
| Filename |
ec-config.xml |
Download
|
| Description |
|
| Filesize |
235 bytes
|
| Downloaded: |
349 time(s) |
|
|
|
 |
![[Post New]](/templates/default/images/icon_minipost_new.gif) 02/06/2008 09:48:25
|
cobar
Joined: 08/01/2007 17:02:58
Messages: 98
Offline
|
I am using version 1.6. I copied the ec-config.xml and set the server error to true. I get the same error window with no details as to the cause of the error. It only provides a reference to elements that are not on the rendered page: j_id_id2:r-msg:muxTabsaddPaneidj_id_id2:r-msg:muxTabs:panehtml j-id_2 = view, r-msg = subview, muxTabs = tabPane id. There is no addPaneid or j_id_id2:r-msg:muxTabs:panehtml ids on the page. I will try and copy your demo into our project and try to reproduce it that way.
|
|
|
 |
|
|