icefaces

How to change display format of data on icefaces(jsf) xhtml pages?

喜你入骨 提交于 2019-12-12 03:15:58
问题 I have a List<String> in my JSF managed bean that I am trying to get on Facelets page with ICEfaces components. Below is the view: <ice:panelGrid> <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}"/>--> <p:selectItem itemLabel="#{beanInfo.Properties}" itemValue="#{beanInfo.Properties

Change the upload directory path for an ice:inputFile component

允我心安 提交于 2019-12-12 03:15:11
问题 I've noticed that the ice:inputFile component will only upload files to the directory $TOMCAT_HOME/webapps/MyAppName/upload/. I want this directory to be dependent on the user initials for the current user (i.e. user with initials abc wants to upload a file, the file goes to $TOMCAT_HOME/webapps/MyAppName/upload/abc/). How can I dynamically set this attribute? 回答1: As indicated in the reference guide http://www.icefaces.org/docs/v1_8_2/htmlguide/devguide/references5.html web.xml file: To

Downloading file from IceFaces tree

拥有回忆 提交于 2019-12-12 03:04:56
问题 I'm still on the road of learning JSF. I have an IceFaces tree with an IceFaces commandLink to try to download a file. So far this is my xhtml and my backing bean. When I click the commandLink it just prints the two messages and then it does nothing and it does not show any warning any error at all... How to know what's happening? What am I missing? Cheers XHTML <?xml version='1.0' encoding='UTF-8' ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1

Why ace:fileEntry does not work?

不想你离开。 提交于 2019-12-11 14:58:10
问题 I'm using jsf 2.0 and icefaces 3 component to upload files: <h:form enctype="multipart/form-data"> <ace:fileEntry id="file-entry" relativePath="/files/" maxFileCount="10" maxFileCountMessage="Limited to 10 files uploaded concurrantly." fileEntryListener="#{uploadFileBean.sampleListener}" maxFileSize="6291456" maxFileSizeMessage="Submitted file is too large." maxTotalSize="18874368" maxTotalSizeMessage="Total size of submitted files is too large." required="true" requiredMessage="The file is

JavaEE compiling files

一笑奈何 提交于 2019-12-11 14:19:48
问题 I feel like a 4-year old who has a slice of bread with pb and a slice with jelly and is asking how to make a sandwich.. I've been given the responsibility of maintaining a javaEE website that was done by our parent company that no loner supports us. I'm relatively new to JavaEE and I'm trying to figure out how to recompile the files that need to be modified from within the root folder of the site. I downloaded NetBeans to help me with this, but still can't figure it out. My problem is that

java.lang.ClassNotFoundException: org.icefaces.x.context.BridgeFacesContext2

跟風遠走 提交于 2019-12-11 12:43:19
问题 I have developed JSF application using icefaces component but when I am trying to run application I am getting below error. SEVERE: Problem encountered during View.servePage java.lang.ClassNotFoundException: org.icefaces.x.context.BridgeFacesContext2 at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1720) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1571) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName

Passing values with ui:param and access them in Backing bean

北战南征 提交于 2019-12-11 05:48:51
问题 -xhtml File I cannot accsses the passed Parameter <ui:insert> <ui:include src="#{PopUpBean.includeUrl}"> <ui:param name="includeParam" id="includeParam" value="HalloWert!" /> </ui:include> </ui:insert> Thats the way i tried to accses the parameters, i have lookedup every variable with help of the debugger, but it seems as if the ui:param value isn't passed: private void init () { FacesContext ctx = FacesContext.getCurrentInstance(); ExternalContext ectx = ctx.getExternalContext(); Object o =

Jsf implementation version NullPointerException when migrating from Tomcat 7 to 8

末鹿安然 提交于 2019-12-11 00:58:55
问题 I am currently using JSF 2.2.7 and Icefaces version 4.0.0. My project was running on Tomcat 7, but I am having trouble trying to get it working on Tomcat 8. I am getting a null pointer exception as a method in the icefaces code seems to check the current version of jsf being used. This always return null and i do not seem to be setting the correct implementation of jsf. The stack trace is as follows: java.lang.NullPointerException at org.icefaces.util.EnvUtils.isJSF22(EnvUtils.java:976) at

How to Dynamically adding fields in JSF?

假装没事ソ 提交于 2019-12-11 00:18:17
问题 HI All, I am desperately looking for the assistance on adding and removing the fields and rows using JSF. I am using ICE Faces for the rich UI look. The following is my problem: I have to add one text box and two buttons (+) and (-) in a row. When user clicks on the + button, one new row should be added with the above components. When user clicks on the - button, the corresponding row should be removed from the display. I am able to add the individual components like text box and remove it.

IllegalStateException: getAttribute: Session already invalidated

旧巷老猫 提交于 2019-12-10 19:55:52
问题 I have a problem with my first JSF/IceFaces (version 1.8.2) application running on JBoss 5.1.0. I recieve an exception after a while, telling me about session problems. This is weird, because i do not use sessions in my code at all. The following logs show that none of my backing beans can be instantiated because of this error (from JBoss): com.sun.faces.mgbean.ManagedBeanCreationException: Cant instantiate class: bean.Abgrenzungsreise. at com.sun.faces.mgbean.BeanBuilder.newBeanInstance