| Author |
Message |
|
|
Ok sorry...
I was totally wrong.
I understood my solution thru the facesconfig.xml file
Bal.
|
 |
|
|
Hi,
I need advice about my application structure.
I have several managedbean for several content panels.
My application has got a main page that contains one contentpanel.
So, with the menu I swap the contentPanels. But I need to be able to call them from one other. For the initialisation step for example.
To do this, I thought to do a "GeneralManager" with the singleton pattern.
And this "GeneralManager" is linked with all the managed bean of the application and can call their init method.
But I have one problem when managedBean are implementing renderable...
because in the jsp file I must use this syntax now:
<ice:panelStack id="AddEditPanelStack" styleClass="componentContentPanelStack" selectedPanel="#{GeneralManager.ManageContentPanelBean.contentPanel}">
Is there an other solution to do this?
thanks for your advice
regards,
Bal.
|
 |
|
|
Any idea? :-)
Thanks
Bal
|
 |
|
|
Hi all,
I have a problem with form validation.
On my page I have a simple table with sorted columns.
On page bottom I have a form with validation.
But when I click on the arrow to sort a column, validation check column title in the bean...
How can I disable validation on columns of my table?
thanks for your help.
regards
Bal.
|
 |
|
|
I found the solution.
I must use the parameter:
immediate="true"
into the commandButton tag.
Bal.
|
 |
|
|
Hi,
I have a form with required fields.
When I click on submit button, all is OK.
But I would like to add an other button to cancel the form and hide it.
But I don't know how to disable validation with this button.
How can I do.
Thanks
regards
Bal.
|
 |
|
|
I don't know exactly.
I have done a lot of tests... But My starting file is the default web.xml file.
And it is working fine for me.
My goal was
- to have the taglib syntax into my jsp file for having autocompletion into myeclipse.
- And to have any error on application server when launching.
Bal
|
 |
|
|
This is my Web.xml
I'm using IceFaces 1.5.1
<?xml version="1.0"?>
<!DOCTYPE web-app PUBLIC
"-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<display-name>ICEfaces Component Showcase</display-name>
<description>
ICEfaces Component Showcase was designed to make developers aware
of the rich set of features available in the custom and extended
components.
</description>
<context-param>
<param-name>javax.faces.CONFIG_FILES</param-name>
<param-value>/WEB-INF/faces-config.xml</param-value>
</context-param>
<context-param>
<param-name>com.icesoft.faces.debugDOMUpdate</param-name>
<param-value>false</param-value>
</context-param>
<context-param>
<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
<param-value>server</param-value>
<description>
State saving method: "client" or "server" (= default)
See JSF Specification 2.5.2
</description>
</context-param>
<context-param>
<param-name>com.icesoft.faces.uploadDirectory</param-name>
<param-value>upload</param-value>
</context-param>
<!-- concurrent DOM views -->
<context-param>
<param-name>com.icesoft.faces.concurrentDOMViews</param-name>
<param-value>false</param-value>
</context-param>
<!-- Asynchronous Updates -->
<context-param>
<param-name>com.icesoft.faces.synchronousUpdate</param-name>
<param-value>false</param-value>
</context-param>
<listener>
<listener-class>com.icesoft.faces.util.event.servlet.ContextEventRepeater</listener-class>
</listener>
<!-- Source Code reader servlet-->
<servlet>
<servlet-name>SourceCode Reader</servlet-name>
<servlet-class>com.icesoft.icefaces.samples.showcase.util.SourceCodeLoaderServlet</servlet-class>
</servlet>
<!-- file upload Servlet -->
<servlet>
<servlet-name>uploadServlet</servlet-name>
<servlet-class>com.icesoft.faces.component.inputfile.FileUploadServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<!-- Faces Servlet -->
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet>
<servlet-name>Persistent Faces Servlet</servlet-name>
<servlet-class>com.icesoft.faces.webapp.xmlhttp.PersistentFacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet>
<servlet-name>Blocking Servlet</servlet-name>
<servlet-class>com.icesoft.faces.webapp.xmlhttp.BlockingServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<!-- extension mapping -->
<servlet-mapping>
<servlet-name>uploadServlet</servlet-name>
<url-pattern>/uploadHtml</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>Persistent Faces Servlet</servlet-name>
<url-pattern>*.iface</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>Persistent Faces Servlet</servlet-name>
<url-pattern>/xmlhttp/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>Blocking Servlet</servlet-name>
<url-pattern>/block/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>SourceCode Reader</servlet-name>
<url-pattern>/sourcecodeStream.html</url-pattern>
</servlet-mapping>
<session-config>
<session-timeout>15</session-timeout>
</session-config>
<!-- Welcome files -->
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
<welcome-file>index.html</welcome-file>
</welcome-file-list>
</web-app>
And my faces-config.xml
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE faces-config PUBLIC
"-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
"http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
<faces-config>
<application>
<locale-config>
<default-locale>fr</default-locale>
<supported-locale>fr</supported-locale>
<supported-locale>en</supported-locale>
</locale-config>
</application>
<managed-bean>
<managed-bean-name>
Managedbean
</managed-bean-name>
<managed-bean-class>
</faces-config>
|
 |
|
|
Hi,
For my case, if I use this format:
<f:view xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:c="http://java.sun.com/jstl/core"
xmlns:ice="http://www.icesoft.com/icefaces/component">
I must name the file with ".jspx" extension and use an address like http://localhost:8080/myFile.iface
Otherwise, if I use this format:
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://www.icesoft.com/icefaces/component" prefix="ice"%>
I have autocompletion with myeclipse!
and I must name the file with ".jsp" extension and use an address like: http://localhost:8080/myFile.iface
If it doesn't work, check your faces-config.xml and your web.xml files.
I hope it will help you.
Regards,
Chris
|
 |
|
|
|
Ok, thanks for your answer.
|
 |
|
|
|
.
|
 |
|
|
Hi,
I would like to know if a popup menu (Context menu) component available in IceFaces?
thanks.
Regards,
Bal.
|
 |
|
|
|
Thanks a lot and again philip_b ! ;)
|
 |
|
|
Hi,
I use this explication of philip_b (Thanks to him):
http://www.icefaces.org/JForum/posts/list/2834.page
But I don't know how to add a separator dynamically...
Thanks for your help.
Regards,
Chris
|
 |
|
|
Hi,
All is ok. I found the problem.
I must use:
<%@ include file="./pages/inc/header.jsp" %>
I had forgotten the begining of the relative URL: "./pages"
Thanks
Bal.
|
 |
|
|