| Author |
Message |
![[Post New]](/JForum/templates/default/images/icon_minipost_new.gif) 11/10/2007 08:31:40
|
Baleyba
Joined: 16/11/2006 00:00:00
Messages: 110
Offline
|
Hi, we have a problem with components that are using the same valuebinding on differents jsp files in the same application.
For example, on the jsp files, we are using:
<ice:panelTabSet styleClass="myTab" selectedIndex="0" binding="#{bean.selectedTabSet}" id="tabSet1" > ...
On the first jsp that we are opening, the panelTabSet is ok. (Opening order between the two jsp isn't important).
On the second jsp, the binding is broken. We can't see the panelTabSet.
On debug, the broken panelTabSet object exists but doesn't have children.
When we return on the first jsp, it is ok.
Do you know this problem ?
regards
Bal.
|
JBoss 4.2.3 | Java 1.6.0_16 | IceFaces 1.8.2 |
|
|
 |
![[Post New]](/JForum/templates/default/images/icon_minipost_new.gif) 11/10/2007 10:20:14
|
patrick.corless
Joined: 26/10/2004 00:00:00
Messages: 1150
Offline
|
This is the first time I have heard of this problem. There might be something else happening on the second page.
Binding aren't necessary needed for most application. What are you using the binding for?
|
|
|
 |
![[Post New]](/JForum/templates/default/images/icon_minipost_new.gif) 11/10/2007 22:39:12
|
aberrant80
Joined: 20/07/2006 00:00:00
Messages: 34
Offline
|
Did you check whether the two "bean" instances are actually the same instance?
|
|
|
 |
![[Post New]](/JForum/templates/default/images/icon_minipost_new.gif) 12/10/2007 03:34:37
|
Baleyba
Joined: 16/11/2006 00:00:00
Messages: 110
Offline
|
Hi all,
thanks for your answers.
Sorry for my late. I'm trying to do a little example.
patrick.corless> I'm using binding to have only one object to manage whereas having a lot of parameters into my bean.
Pages are very complex and have a lot of components.
aberrant80> Yes I think I'm using the same instance because I defined a link between the bean and a "central" bean into my faces-config.xml file.
I'm doing a small example to show you the problem.
thanks again
regards
Bal.
|
JBoss 4.2.3 | Java 1.6.0_16 | IceFaces 1.8.2 |
|
|
 |
![[Post New]](/JForum/templates/default/images/icon_minipost_new.gif) 12/10/2007 08:18:28
|
Baleyba
Joined: 16/11/2006 00:00:00
Messages: 110
Offline
|
Hi all,
I have done a little example: This is a MyEclipse project.
You have 2 pages and 3 beans:
- beanPage1 that manage page1
- beanPage2 that manage page2
- popupBean that manage popup
You can see that if you open first the popup on the first page, we don't see popup panelTabSet on the second and etc.. It disappears...
I have also try to use a "bean mediator" in order to keep beans references like on the webmail icefaces demo but it doesn't work too.
I hope this would help us.
regards
Bal.
| Filename |
binding.zip |
Download
|
| Description |
Binding between 2 jsp demo |
| Filesize |
32 Kbytes
|
| Downloaded: |
189 time(s) |
|
JBoss 4.2.3 | Java 1.6.0_16 | IceFaces 1.8.2 |
|
|
 |
![[Post New]](/JForum/templates/default/images/icon_minipost_new.gif) 15/10/2007 07:22:18
|
SuperPat
Joined: 10/10/2007 00:00:00
Messages: 10
Offline
|
I have the same problem with an HTMLPanelGroup used in one JSP included in two others.
In the fist page, it work find, in the second page it work fin too but if y return to the first page, the panel group disappeared.
The only way that I have found is to duplicate all the attributes and therefore make two different JSF...
Can you correct this please?
|
|
|
 |
![[Post New]](/JForum/templates/default/images/icon_minipost_new.gif) 15/10/2007 07:47:27
|
michael.thiem

Joined: 04/06/2007 00:00:00
Messages: 704
Offline
|
Hi,
could you also post the java sources?
Thanks,
Michael
|
|
|
 |
![[Post New]](/JForum/templates/default/images/icon_minipost_new.gif) 17/10/2007 05:17:26
|
SuperPat
Joined: 10/10/2007 00:00:00
Messages: 10
Offline
|
This is a short example:
Two jsp, each containing an panelGroup with a binding on the same attribute of a controller. If you navigate from page to page you will see the panelGroup disappear from one of the pages.
| Filename |
TestProject.zip |
Download
|
| Description |
|
| Filesize |
29 Kbytes
|
| Downloaded: |
176 time(s) |
|
|
|
 |
![[Post New]](/JForum/templates/default/images/icon_minipost_new.gif) 17/10/2007 05:26:12
|
Baleyba
Joined: 16/11/2006 00:00:00
Messages: 110
Offline
|
Hi,
It seems to be the same problem that I reported.
does someone know if it exists a solution for keeping the binding ?
thanks for your help
regards
Bal.
|
JBoss 4.2.3 | Java 1.6.0_16 | IceFaces 1.8.2 |
|
|
 |
![[Post New]](/JForum/templates/default/images/icon_minipost_new.gif) 19/10/2007 02:38:24
|
Baleyba
Joined: 16/11/2006 00:00:00
Messages: 110
Offline
|
Hi all!
Anyone tested my little example and have solution ? :)
regards
Bal.
|
JBoss 4.2.3 | Java 1.6.0_16 | IceFaces 1.8.2 |
|
|
 |
![[Post New]](/JForum/templates/default/images/icon_minipost_new.gif) 26/10/2007 08:59:55
|
Baleyba
Joined: 16/11/2006 00:00:00
Messages: 110
Offline
|
Hi,
I have news...
I have done some tests. And the problem comes from the binding attribute.
I get problem every time I'm changing pages with navigation rules described into the faces-config.xml and when I have a binding attached to a tabset.
Sometimes it doubles icefaces tags into the tabset and is generating exception ..
regards
Bal.
|
JBoss 4.2.3 | Java 1.6.0_16 | IceFaces 1.8.2 |
|
|
 |
![[Post New]](/JForum/templates/default/images/icon_minipost_new.gif) 22/11/2007 04:14:05
|
Baleyba
Joined: 16/11/2006 00:00:00
Messages: 110
Offline
|
Hi all,
Ok the problem is soved with JBOSS 4.2.2 instead of 4.0.5...
Bal.
|
JBoss 4.2.3 | Java 1.6.0_16 | IceFaces 1.8.2 |
|
|
 |
|
|