icefaces

处理“ java.lang.OutOfMemoryError:PermGen空间”错误

落爺英雄遲暮 提交于 2020-10-07 00:50:12
问题: Recently I ran into this error in my web application: 最近,我在Web应用程序中遇到此错误: java.lang.OutOfMemoryError: PermGen space java.lang.OutOfMemoryError:PermGen空间 It's a typical Hibernate/JPA + IceFaces/JSF application running on Tomcat 6 and JDK 1.6. 这是在Tomcat 6和JDK 1.6上运行的典型Hibernate / JPA + IceFaces / JSF应用程序。 Apparently this can occur after redeploying an application a few times. 显然,这可能是在重新部署应用程序几次之后发生的。 What causes it and what can be done to avoid it? 是什么原因引起的,可以采取什么措施避免它发生? How do I fix the problem? 我该如何解决该问题? 解决方案: 参考一: https://stackoom.com/question/Mx9/处理-java-lang-OutOfMemoryError-PermGen空间

处理“ java.lang.OutOfMemoryError:PermGen空间”错误

别来无恙 提交于 2020-08-20 07:32:23
问题: Recently I ran into this error in my web application: 最近,我在Web应用程序中遇到此错误: java.lang.OutOfMemoryError: PermGen space java.lang.OutOfMemoryError:PermGen空间 It's a typical Hibernate/JPA + IceFaces/JSF application running on Tomcat 6 and JDK 1.6. 这是在Tomcat 6和JDK 1.6上运行的典型Hibernate / JPA + IceFaces / JSF应用程序。 Apparently this can occur after redeploying an application a few times. 显然,这可能是在重新部署应用程序几次之后发生的。 What causes it and what can be done to avoid it? 是什么原因引起的,可以采取什么措施避免它发生? How do I fix the problem? 我该如何解决该问题? 解决方案: 参考一: https://stackoom.com/question/Mx9/处理-java-lang-OutOfMemoryError-PermGen空间

“for” cycle in JSF

青春壹個敷衍的年華 提交于 2020-01-24 02:53:05
问题 I simply need to perform a very basic for cycle in JSF/ICEFaces, basically rendering column numbers Something like the following pseudo-code for(int i=0; i<max; i++) { <td>#{i}</td> } the <c:forEach> tag iterates over collections, but I don't want to make my backing bean more complex returning a stupid collection of integers. Do you know a shorter and smarter way? Thank you 回答1: The <ui:repeat> tag is what you should really use. The JSTL tags operate outside of the JSF Lifecycle. Cay Horstman

Hide .xhtml source - facelets/icefaces?

微笑、不失礼 提交于 2020-01-22 15:27:12
问题 I'm new to Icefaces and Facelets both, but I'm using them on a new project. I've got everything working configured and working fine. However, when I visit mywebapp/file.xhtml, the entire facelets template source comes up in my browser. How could I hide this to prevent users from viewing my server-side templates? 回答1: Put all templates into WEB-INF/someDirectory/templates. Then according to the facelets documentation put this inside your web.xml for all other xhtml files: <security-constraint>

Faces messages are not cleared on subsequent requests

谁说我不能喝 提交于 2020-01-16 01:05:48
问题 Case is as follows: you have a bean method which parses a file, and if parsing fail, error message is added, and if parsing successful, success message is added. But when you make consecutive operations: fail > success , i expect that the fail message will disappear and the success message appears, but what happens is that fail message is still there, and success message is added to it. Clearing the MessageList before adding the message is not a solution, because list is already cleared, if

Unable to retrieve arraylist elements on icefaces(jsf) xhtml page

ぐ巨炮叔叔 提交于 2020-01-15 11:24:00
问题 I am having HTML table on my page and am trying to populate it with some data from my managed bean, my xhtml page looks like: <ice:panelGrid columns="2"> <ice:panelGrid> <ice:outputText value="Properties:" style="text-align:left;font-size:20px;"></ice:outputText> <ice:selectManyListbox id="CriteriaListbox" style="width: 200px; height: 250px; " partialSubmit="true"> <p:selectItem value="#{beanInfo.properties}"/> </ice:selectManyListbox> </ice:panelGrid> </ice:panelGrid> My managed bean looks

JSF 1.2 Life Cycle understanding: Executing the ValueChangeListener method in InvokeApplication phase

倾然丶 夕夏残阳落幕 提交于 2020-01-14 06:26:22
问题 I am using a <h:selectBooleanCheckbox> in the facet header of a DataTable. All the rows content for that <h:column> DataTable are <h:selectBooleanCheckbox> . The rows are getting selected perfectly the way I wanted. Below is the code I used: <h:form> <h:dataTable value="#{employeeService.employeeList }" var="empl" binding="#{employeeService.dataTablebinding }"> ...... ...... ...... <h:column> <f:facet name="header"> <h:selectBooleanCheckbox id="chkBoxAll" value="#{employeeService.checkedHdr }

ICEFaces inputFile getting the file content without upload

纵然是瞬间 提交于 2020-01-06 04:55:13
问题 Is there any way of just getting the content of the browsed file without any upload/file transfer operations? I currently use ICEFaces inputFile component but I do not need the default uploading operation of the file. Thanks. 回答1: That's not possible. The client needs to send (upload) the file content along the request body to the server side whenever you want to have the file content at the server side. If you'd expect that you can solve this by passing only the file path around and use the

JSF : Issues with File Upload using Icefaces component

女生的网名这么多〃 提交于 2019-12-31 04:59:10
问题 I am trying to get FileUpload feature working with Icefaces ace:fileEntry but my fileUploadListener on server is not called, here is the code: xhtml piece: <html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:ace="http://www.icefaces.org/icefaces/components" xmlns:ice-cc="http://www.icesoft.com/icefaces-composite-comps" xmlns:f="http://java.sun.com/jsf/core" xmlns:ice="http://www.icesoft.com/icefaces/component"> <h:head> <link rel="stylesheet" type="text/css

How to map IceFaces <ice:selectInputDate> component on a java.util.Calendar field?

邮差的信 提交于 2019-12-31 02:50:07
问题 Does anybody knows how can component <ice:selectInputDate> be mapped on a java.util.Calendar field, not java.util.Date ? I am using from IceFaces version 1.8.2, the component <ice:selectInputDate> . This component requires to be bound with a java.util.Date proeprty. For example, value="#{bean.myDate}" , the myDate field must be of type java.util.Date . But I need my date field to be of type java.util.Calendar . My trials: I have tried to use standard converter or a custom one: Standard one: