| Author |
Message |
|
|
Hi,
I'm using the following code:
<!-- Calendar Component -->
<ice:selectInputDate id="date" value="#{userController.disabledDate}" imageDir="/xmlhttp/css/xp/css-images/" renderAsPopup="true" disabled="#{userController.disabled}" />
But I'm always able to click and use the component even if I change the boolean value "userController.disabled".
Is something wrong or is it a bug ?
thanks
regards
Bal.
|
 |
|
|
It is true.
That's the exact problem...
Thanks
|
 |
|
|
Hi,
I have the same problem.
I explain it here: http://www.icefaces.org/JForum/posts/list/5113.page#22837
Did you find a solution to remove warnings ?
thanks
regards
Bal.
|
 |
|
|
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.
|
 |
|
|
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.
|
 |
|
|
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.
|
 |
|
|
Hi,
Since I passed to the 1.6 DR5 version, the top level of menus get a blank icon even if we dont attach icon on it.
And the text menu are moved to the right from the with of the blank icon.
The problem is IceMenu and IceSubMenu are using the same CCS style: "iceSubMenuRowImage" . So it is not easy to put a null size ton the top level icon.
It would be interessting not showing a blank icon on the top level menu when there isn't any attached icon.
In the previous version 1.5.3 this problem didn't exist.
Is it a bug or does it exist a solution ?
Regards
Bal.
|
 |
|
|
Exactement ;)
Merci pour ton aide!
I'm french too ;)
++
Bal
|
 |
|
|
Hi Fabmars!
Thanks for your answer.
I will try this.
Do you come from France ? ;)
regards
Bal.
|
 |
|
|
Hi,
In my application, I need to call a testValidSession() method in my iface page in order to redirect user on login page if user isn't identified.
This case is encontouring when user is accessing .iface directly without goning on login page.
How can I call this method ?
Thanks for your help.
regards
Bal.
|
 |
|
|
Any ideas ?
thx,
Bal.
|
 |
|
|
OK I found. But We can't pass objects? just String with f:param :(
FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap().get("clickedId");
|
 |
|
|
Hi,
please could you tell me how to get parameter "clickedId" into the backingbean?
thanks
regards
Bal.
|
 |
|
|
I have a problem with the event on a treenode.
On my ".jspx" file, I'm using the following code:
Code:
...
<ice:tree id="applicationTree" value="#{bean.treeModel}" var="item" hideRootNode="false" hideNavigation="false" imageDir="/images/">
<ice:treeNode id="treenode">
<f:facet name="content">
<ice:panelGroup style="display: inline">
<ice:panelGroup style="display: inline">
<ice:commandLink actionListener="#{bean.treeNodeClick}" value="#{item.userObject.text}" />
</ice:panelGroup>
</ice:panelGroup>
</f:facet>
</ice:treeNode>
</ice:tree>
...
And in my bean:
Code:
...
public void treeNodeClick(ActionEvent event) {
HtmlCommandLink html = (HtmlCommandLink) event.getSource();
TreeNode treeNode = (TreeNode)html.getParent().getParent().getParent();
...
}
My problem is that the first time I click on one treenode of the tree I get it.
But the next times I always get the last treenode of the tree ???
I don't understand why...
Do you have any ideas ?
Thanks
regards,
Bal.
|
 |
|
|
Hi,
I have one problem.
On my application I have some forms.
They appear when I click on a "add" button.
The forms have some inputfields and 2 buttons: "Validate" and "Cancel".
When I click on "Cancel", I want that all the fields become empty and hide the form.
But my form has got required fields... and have validation process...
And when I press cancel, the form is hidding, but the field stay the same when I click again on "add" to show the form... even if I call the onDemandRenderer...
If I remove (immediate="true"), It works only when all the required fields are completed.
I don't understand how to do...
Unfortunately, if I use the "reset" commandButton, it works, but the "action" and "actionListener" aren't called...
Thanks for your help
regards
Bal.
Here are some part of code:
In the bean
...
public void cancelAddADataModelButtonListener(ActionEvent e) {
this.title ="";
this.description = "";
this.helpMessage = "";
this.generalController.requestOnDemandRender();
}
public void BlindDownEffect() {
this.setContentPanel(ManageDataModelVariable.addDataModelPanel);
this.setButtonAddDisabled(true);
this.effect = new BlindDown();
}
...
and in the jsp
...
<ice:form>
<ice:panelGrid columns="3" rowClasses="textFieldNameRow, textFieldCommentsRow, textFieldCommentsRow" >
<ice:outputText styleClass="propertyLabel" value="Title:" />
<ice:inputText size="50" required="true" value="#{dataModelController.title}" partialSubmit="false" id="title" />
<ice:message for="title" style="color: red;" />
<div style="padding-top:5px;">
<ice:outputText styleClass="propertyLabel" value="Description:" />
</div>
<ice:inputTextarea id="description" value="#{dataModelController.description}" cols="20" rows="4" partialSubmit="false" style="width:280px;height:80px;overflow: auto;" />
<ice:message for="description" style="color: red;" />
<div style="padding-top:5px;">
<ice:outputText styleClass="propertyLabel" value="Help message:" />
</div>
<ice:inputTextarea id="helpMessage" value="#{dataModelController.helpMessage}" cols="20" rows="4" partialSubmit="false" style="width:280px;height:80px;overflow: auto;" />
<ice:message for="description" style="color: red;" />
<ice:commandButton value="Add" type="submit" actionListener="#{dataModelController.validateAddADataModelButtonListener}" action="#{dataModelController.BlindUpEffect}" />
<ice:commandButton value="Cancel" type="submit" immediate="true" actionListener="#{dataModelController.cancelAddADataModelButtonListener}" action="#{dataModelController.BlindUpEffect}" />
</ice:panelGrid>
</ice:form>
|
 |
|
|