| Author |
Message |
![[Post New]](/JForum/templates/default/images/icon_minipost_new.gif) 18/07/2007 05:01:12
|
Baleyba
Joined: 16/11/2006 00:00:00
Messages: 110
Offline
|
Hi,
I'm using iceFaces 1.6 with JBOSS jems.
On my icefaces pages, I get warnings like this:
11:57:08,562 INFO [[/Project]] WARNING: Component _id0 just got an automatic id, because there was no id assigned yet. If this component was created dynamically (i.e. not by a JSP tag) you should assign it an explicit static id or assign it the id you get from the createUniqueId from the current UIViewRoot component right after creation!
11:57:08,687 INFO [[/Project]] WARNING: Component menuForms:menu:generated:home:homePage:_id1 just got an automatic id, because there was no id assigned yet. If this component was created dynamically (i.e. not by a JSP tag) you should assign it an explicit static id or assign it the id you get from the createUniqueId from the current UIViewRoot component right after creation!
11:57:08,703 INFO [[/Project]] WARNING: Component menuForms:menu:generated:home:homePage:_id2 just got an automatic id, because there was no id assigned yet. If this component was created dynamically (i.e. not by a JSP tag) you should assign it an explicit static id or assign it the id you get from the createUniqueId from the current UIViewRoot component right after creation!
11:57:08,703 INFO [[/Project]] WARNING: Component menuForms:menu:generated:home:homePage:_id3 just got an automatic id, because there was no id assigned yet. If this component was created dynamically (i.e. not by a JSP tag) you should assign it an explicit static id or assign it the id you get from the createUniqueId from the current UIViewRoot component right after creation!
.
.
.
etc for each menuitem...
Do you have solution to remove this warnings?
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) 18/07/2007 08:56:45
|
michael.thiem

Joined: 04/06/2007 00:00:00
Messages: 704
Offline
|
Hi,
this is a known issue, you might want to have a look at:
http://jira.icefaces.org/browse/ICE-1593
When you assign a custom id to each of your menuItems this warning should
not show up again
- Michael
|
|
|
 |
![[Post New]](/JForum/templates/default/images/icon_minipost_new.gif) 18/07/2007 09:11:35
|
Baleyba
Joined: 16/11/2006 00:00:00
Messages: 110
Offline
|
Thanks for your answer michael.thiem.
This is a part of code I'm using to create menu.
this.menuModel = new ArrayList<MenuItem>();
// Menu Home
MenuItem homeMenu = createMenuItem(LanguageManager.getInstance().getMessage("web.menu.home"), "home", null, null, null);
homeMenu.setIcon("/Resource/images/icons/blank_icon.gif");
homeMenu.setId("homeMenu");
menuModel.add(homeMenu);
homeMenu.getChildren().add(
createMenuItem(LanguageManager.getInstance().getMessage("web.menu.homePage"), "homePage","#{navigationController.primaryListener}", null,"../Resource/images/icons/home.gif"));
MenuItemSeparator menuItemSeparator = new MenuItemSeparator();
homeMenu.getChildren().add(menuItemSeparator);
.
.
.
But I always have the same problem...
Thanks
Bal.
|
JBoss 4.2.3 | Java 1.6.0_16 | IceFaces 1.8.2 |
|
|
 |
![[Post New]](/JForum/templates/default/images/icon_minipost_new.gif) 18/07/2007 09:23:22
|
michael.thiem

Joined: 04/06/2007 00:00:00
Messages: 704
Offline
|
Hi,
could you have a look at the generated code and if the Id's are rendered
correctly? Do you have to create your menuItems programmatically from
within your code? You could also add the menuItems on your jsp page with
the default iceFaces tags.
-Michael
|
|
|
 |
![[Post New]](/JForum/templates/default/images/icon_minipost_new.gif) 18/07/2007 09:27:46
|
Baleyba
Joined: 16/11/2006 00:00:00
Messages: 110
Offline
|
michael.thiem wrote:
Hi,
could you have a look at the generated code and if the Id's are rendered
correctly? Do you have to create your menuItems programmatically from
within your code? You could also add the menuItems on your jsp page with
the default iceFaces tags.
-Michael
this is a part of the generated code:
<div class="iceMnuBarSubMenu" id="menuForms:menu:generated:homeMenu_sub" name="SUBMENU" style="display: none;"><div class="iceMnuItm" id="menuForms:menu:generated:homeMenu:homeMenu1" name="ITEM" onmouseover="Ice.Menu.hideOrphanedMenusNotRelatedTo(this);"><a class="iceCmdLnk" href="#%20" id="menuForms:menu:generated:homeMenu:homeMenu1:link" onblur="setFocus('');" onclick="document.forms['menuForms']['menuForms:_idcl'].value='menuForms:menu:generated:homeMenu:homeMenu1:link';iceSubmit( document.forms['menuForms'], this,event); return false;" onfocus="setFocus(this.id);"><div class="icePnlGrp" id="menuForms:menu:generated:homeMenu:homeMenu1:_id1"><img class="iceGphImg iceMnuItmImage" id="menuForms:menu:generated:homeMenu:homeMenu1:_id2" src="../OntomanticsResource/images/icons/home.gif" style="border: medium none ;">
I puted in bold the id with problem..
Yes I must generate programmically the menu because it depends on user rights. And it is more easy to manage them.
I don't know how to set the id of these panelgroup...
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) 27/07/2007 09:01:06
|
FlyingElvi
Joined: 15/12/2006 00:00:00
Messages: 80
Offline
|
michael.thiem wrote:
When you assign a custom id to each of your menuItems this warning should
not show up again
The missing Ids are from the HtmlPanelGroup and OutputText components that are created in the the MenuItemRenderer (addChildren and addTopLevelChildren methods), and they don't have Id set. Those are the components that generates the warnings.
|
Max |
|
|
 |
![[Post New]](/JForum/templates/default/images/icon_minipost_new.gif) 27/07/2007 09:03:08
|
Baleyba
Joined: 16/11/2006 00:00:00
Messages: 110
Offline
|
It is true.
That's the exact problem...
Thanks
|
JBoss 4.2.3 | Java 1.6.0_16 | IceFaces 1.8.2 |
|
|
 |
|
|