voyent
Messages posted by: Maksim_A  XML
Profile for Maksim_A -> Messages posted by Maksim_A [18] Go to Page: Previous  1, 2
Author Message
I'm using icefaces 4.2 and jsf 2.3. I'm trying to get dialog window on client side. My code:

Code:
<ace:dialog id="dialogWindow" modal="true" clientOnly="true" autoCentre="false">
 <div class="md-dialog">
 <f:facet name="header">
     <ui:fragment rendered="#{sC.isFileUpl==null}">
         <div class="md-dialog-header">
                     <h:outputText value="#{sC.mCompat.component.title}"/>
                     <h:commandLink partialSubmit="true"
                                      title="#{res['web_close]}"
                                      actionListener="#{sC.modComponent.closePopup}"
                                      styleClass="dialogButton" style="border: none;">
                         <ace:ajax/>
                         <img border="0" alt="#{res['web_close']}"
                              src="#{sC.style.closeIcon}"/>
                     </h:commandLink>
         </div>
     </ui:fragment>
 
     <ui:fragment rendered="#{sC.isFileUpl!=null}">
       <div class="mod-dialog-2">
                     <h:outputText value="#{sC.file.title}"/>
 
                     <h:commandLink partialSubmit="true"
                                      title="#{res['web_close']}"
                                      actionListener="#{sC.file.cancel}"
                                      styleClass="dialogButton"
                                      style="border: none;">
                         <ace:ajax/>
                         <img border="0" alt="#{res['web_close']}"
                              src="#{sC.style.closeIcon}"/>
                     </h:commandLink>
         </div>
     </ui:fragment>
 </f:facet>
 
 <f:facet name="body">
     <ui:fragment rendered="#{sC.isFileUpl==null}">
     <div class="#{sC.modComponent.component.fClass}">
         <ui:include src="#{sC.modComponent.component.facelet}">
             <ui:param name="#{sC.modComponent.component.paramName}"
                       value="#{sC.modComponent.component}"/>
         </ui:include>
     </div>
         <ace:contextMenu id="wdPopup">
             <c:forEach var="mItem" items="${menuBean.items}">
                 <ace:menuItem action="#{menuBean.action}">
                 </ace:menuItem>
             </c:forEach>
         </ace:contextMenu>
     </ui:fragment>
 </f:facet>


It's not work, but it seems that all actions are invoked (on the client and server side), judging by the logs. But when i'm changin ace:dialog to ice:panelPopup it's get window to me. How can i fix that? I should use ace, not ice component.

I'm trying to call a dialog like this:

Code:
JavaScriptRunner.runScript(FacesContext.getCurrentInstance(), "ice.ace.instance('dialogWindow').show();");


But on client side i got an error:
HTML parsing or JS evaluation error [code: 200]: Cannot read property 'show' of null
Hello. I have a button on my page that is responsible for calling the action performance.
Code:
<h:commandLink partialSubmit="true"
                              title="#{controller.description}"
                              actionListener="#{controller.actionPerformed}"
                              styleClass="toolbarButtonText"
                              immediate="#{controller.action.immediate}">
                 <ace:ajax/>
                 <img border="0" alt="#{controller.description}"
                      src="#{controller.icon!=null?(controller.icon):(sessionContext.styleManager.zeroIcon)}"/>
                 <h:outputText value="#{controller.title}"
                                 rendered="#{controller.icon==null}"/>
             </h:commandLink>

Action performance executes, no erros in logs (server side and client in browser), event is triggered in the browser. But nothing happens.

I'm use IceFaces 4.2. It's works in IceFaces 3.

UPD: Okay, it looks like for some buttons the problem is this one
Code:
<ace:fileEntry id="fileEntryC"
                                relativePath="#{editor.uploadDirectory}"
                                fileEntryListener="#{editor.action}"
                                useOriginalFilename="false"
                                useSessionSubdir="true"
                                autoUpload="false"
                                maxFileCount="#{f.max}"/>

If I comment this, then some buttons start to work. I tried to wrap this with a <ace:panel> and <h:form>, but it did not work.
Hello. I'm trying to move my project from ICEfaces 3 to ICEfaces 4. But the problem is that my classes use classes from icefaces-compat library. When I try to run a project, I get errors:

java.lang.IllegalStateException: Could not find backup for factory javax.faces.application.ApplicationFactory.
java.lang.RuntimeException: com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED! org.icefaces.facelets.tag.icefaces.core.IceComponentHandler

When I delete compat library all going fine (no errors at server startup). But the application falls when I run any page because all of my components and renderers in the code use icefaces-compat library.
Maybe there is a guide for replacing classes from the compat library with new ones?
 
Profile for Maksim_A -> Messages posted by Maksim_A [18] Go to Page: Previous  1, 2
Go to:   
Powered by JForum 2.1.7ice © JForum Team