voyent
Messages posted by: Maksim_A  XML
Profile for Maksim_A -> Messages posted by Maksim_A [18] Go to Page: 1, 2 Next 
Author Message
How to fix it without adding key-value properties from messages.properties in ace-components to my messages.properties? It is possible?
When I try to use components from version 4.3, the following error occurs: Code:
Can't find resource for bundle java.util.PropertyResourceBundle, key org.icefaces.ace.component.dashboard.closeTitle

What am I doing wrong?

Maksim_A wrote:

petersh wrote:
I think you may want to try with other function instead of Session.
Thus, have you tried to fix your Java code in the live debug mode? 

The problem is that the action is not called. When I click on a button, the result simply does not reach the server and the code is not called. 

I mean this action: fileEntryListener

petersh wrote:
I think you may want to try with other function instead of Session.
Thus, have you tried to fix your Java code in the live debug mode? 

The problem is that the action is not called. When I click on a button, the result simply does not reach the server and the code is not called.
When i click on h:commandButton fileEntryListener is not executed. The whole problem in my faces-config, more precisely in this - metadata-complete="true". What can I do to make the action work with this setting? My code:
Code:
<ace:panel>
                 <ace:fileEntry id="fileEntryComp"
                                relativePath="#{fileEditor.uploadDirectory}"
                                fileEntryListener="#{fileEditor.action}"
                                useOriginalFilename="false"
                                useSessionSubdir="true"
                                autoUpload="false"
                                maxFileCount="#{fileEditor.maxFileCount}">
                 </ace:fileEntry>
 
                 <h:commandButton value="Upload" type="submit" disabled="false"/>
                 </ace:panel>
Can I open ace:contextMenu from java code, using JavaScriptRunner.runScript?
Can I do something about this? I need my menu not to overlap the browser menu on the entire page. I need the ice:menuPopup functionality in Icefaces 4. I try to use ace:contextMenu and ace:menu, but my code do not work properly. I can not set trigger for ace:menu or 'for' attribute in ace:contextMenu becose my code generate id's for components, and i can not use this components like ice:menuPopup.
Is it really impossible to emulate a job the ace:contextMenu component?
I tried to do it as in the example, but it did not help. The menu is displayed in the lower left corner and does not close after clicking on the component. My code:
Code:
<ace:menu id="webDesktopPopup" position="dynamic" triggerEvent="rtclick" type="tiered">
  					<c:forEach var="menuItem" items="${popupMenuBean.menuItems}">
  						<ace:menuItem value="#{menuItem.value}" actionListener="#{popupMenuBean.actionPerformed}" icon="#{menuItem.icon}"
  									  rendered="#{menuItem.childCount == 0}">
  						</ace:menuItem>
  							<ace:submenu rendered="#{menuItem.childCount > 0}" label="#{menuItem.value}">
  								<c:forEach var="subMenuItem" items="${menuItem.children}">
  									<ace:menuItem value="#{subMenuItem.value}" actionListener="#{popupMenuBean.actionPerformed}">
  									</ace:menuItem>
  								</c:forEach>
  							</ace:submenu>
  					</c:forEach>
  				</ace:menu>

How can i imitate the work of popup menu? And how to make the menu appear where the mouse button was pressed? I tried to use this example http://icefaces-showcase.icesoft.org/showcase.jsf?grp=ace:menu&exp=As%20Popup but it did not work.
Ok, it works fine(well, not quite, but almost) with the component ace:menu, but how do I choose the right position and make this component as popupMenu? I tried to do it as in the example, but it did not help. The menu is displayed in the lower left corner and does not close after clicking on the component. My code:
Code:
				<ace:menu id="webDesktopPopup" position="dynamic" triggerEvent="rtclick" type="tiered">
 					<c:forEach var="menuItem" items="${popupMenuBean.menuItems}">
 						<ace:menuItem value="#{menuItem.value}" actionListener="#{popupMenuBean.actionPerformed}" icon="#{menuItem.icon}"
 									  rendered="#{menuItem.childCount == 0}">
 						</ace:menuItem>
 							<ace:submenu rendered="#{menuItem.childCount > 0}" label="#{menuItem.value}">
 								<c:forEach var="subMenuItem" items="${menuItem.children}">
 									<ace:menuItem value="#{subMenuItem.value}" actionListener="#{popupMenuBean.actionPerformed}">
 									</ace:menuItem>
 								</c:forEach>
 							</ace:submenu>
 					</c:forEach>
 				</ace:menu>

How can i imitate the work of popup menu? And how to make the menu appear where the mouse button was pressed? I tried to use this example http://icefaces-showcase.icesoft.org/showcase.jsf?grp=ace:menu&exp=As%20Popup but it did not work.

artzambrano wrote:
Hello Maksim_A,

I don't see anything wrong with your markup. Perhaps using JSF 2.3 could have something to do with it, as it's not fully supported yet, but I doubt it has anything to do with it.

Our showcase examples have context menu's with submenus that have labels, and they don't present this issue.

Can you please do this test? Just build the context menu without using c:forEach, maybe just put one or two submenus, and see if you can reproduce the same issue or not.

Art 


My problem was not solved. Is it possible that this may be due to the fact that I call the context menu by clicking on the node from the ace:tree component? The button itself, which is responsible for calling the menu, looks like this:
Code:
                <h:commandLink immediate="true"
                   actionListener="#{node.userObject.showPopupMenu}" value=""
                   style="display: inline;">
                   <f:ajax execute="@all" render="@all"/>
                   <f:verbatim />
                   <h:outputText value="" style="display: inline;" />
                 </h:commandLink>

artzambrano wrote:
Hello Maksim_A,

I don't see anything wrong with your markup. Perhaps using JSF 2.3 could have something to do with it, as it's not fully supported yet, but I doubt it has anything to do with it.

Our showcase examples have context menu's with submenus that have labels, and they don't present this issue.

Can you please do this test? Just build the context menu without using c:forEach, maybe just put one or two submenus, and see if you can reproduce the same issue or not.

Art 


The same problem without a c:forEach. The problem is in the tag label. Without it everything is working fine. I'll try an earlier version of JSF, but I'm not sure that this will help.
Greetings. I have a context menu, there is a submenu in it. The situation is such that when I add a label to my submenu, the menu ceases to come off (it appears, but immediately closes). If I remove the label on submenu, then everything works. What could be wrong?

Code:
<ace:contextMenu id="webDesktopPopup">
 					<c:forEach var="menuItem" items="${popupMenuBean.menuItems}">
 						<ace:menuItem value="#{menuItem.value}" actionListener="#{popupMenuBean.actionPerformed}" icon="#{menuItem.icon}"
 									  rendered="#{menuItem.childCount == 0}">
 						</ace:menuItem>
 							<ace:submenu rendered="#{menuItem.childCount > 0}" label="#{menuItem.value}">
 								<c:forEach var="subMenuItem" items="${menuItem.children}">
 									<ace:menuItem value="#{subMenuItem.value}" actionListener="#{popupMenuBean.actionPerformed}">
 									</ace:menuItem>
 								</c:forEach>
 							</ace:submenu>
 					</c:forEach>
 				</ace:contextMenu>

I use Icefaces 4.2 and JSF 2.3
There was a problem when the scrolling function was turned on. The body of the table is shifted relative to the headers if the context of the body is increased. How can i solve this problem?
When I try to go through my components and give them a description, the menu does not open. If I remove the label for the submenu, then everything works. But how do I put the text for the submenu?

Code:
				<ace:contextMenu id="wdContextMenu">
 					<c:forEach var="item" items="${contextMenu.items}">
 						<c:choose>
 						<c:when test="${item.childCount == 0}">
 						<ace:menuItem value="#{item.value}" actionListener="#{contextMenu.listener}">
 						</ace:menuItem>
 						</c:when>
 						<c:otherwise>
 							<ace:submenu value="#{item.value}" label="#{item.value}">
 								<c:forEach var="subMenuItem" items="${item.children}">
 									<ace:menuItem value="#{subMenuItem.value}" actionListener="#{contextMenu.listener}">
 									</ace:menuItem>
 								</c:forEach>
 							</ace:submenu>
 						</c:otherwise>
 						</c:choose>
 					</c:forEach>
 				</ace:contextMenu>
 
Profile for Maksim_A -> Messages posted by Maksim_A [18] Go to Page: 1, 2 Next 
Go to:   
Powered by JForum 2.1.7ice © JForum Team