icefaces

Dynamic Action in JSF page

半世苍凉 提交于 2019-12-04 09:08:11
I have a JSF page. My CommandButton action method value is dependent on the bean variable value. Example: Bean headerBean has varaible actionValue with value "someBean.doAction1()" When I use , It says headerBean.actionValue is not a method which is right. How can I get the action value as "someBean.doAction1" instead of headerBean.actionValue. Thanks, BalusC You can use the brace notation for that. <h:commandButton value="submit" action="#{someBean[headerBean.actionValue]}" /> When the #{headerBean.actionValue} returns a String of for example doAction1 , then this will effectively invoke #

Hide .xhtml source - facelets/icefaces?

我是研究僧i 提交于 2019-12-03 16:53:22
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? 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> <display-name>Restrict XHTML Documents</display-name> <web-resource-collection> <web-resource-name>XHTML<

ICE Faces and error in creation of a bean in WindowScoped

荒凉一梦 提交于 2019-12-02 23:35:47
问题 After some questions about WindowScoped and after an answer of BalusC I understand that I would use MyFaces CODI I should before rewrite all my previous code because I can't use Mojarra, so I would use ICEFaces because it have also the "window scope" and some other things that help me later and it is based on mojarra! Ok, now I have a big problem, and I wrote also in ICE forum at this link: http://www.icefaces.org/JForum/posts/list/0/20426.page#72064 , and it is that when I launch the

Icefaces 3.0.1 FileEntry: FileEntryListener is never called

故事扮演 提交于 2019-12-02 21:54:05
问题 1.1, IceFaces 3.0.1 and JSF 2.1 and was trying to work with ace:fileentry. I can't understand why the listener is never called! Even the IDE sends me a warning "pruebaBean.sampleListener is an unknown property". Here is a short example of what i'm doing. When click the submit button nothing happen. Can someone help me ?? Could be some kind of bug? prueba.xhtml: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org /TR/xhtml1

Icefaces 3.0.1 FileEntry: FileEntryListener is never called

时光怂恿深爱的人放手 提交于 2019-12-02 12:31:05
1.1, IceFaces 3.0.1 and JSF 2.1 and was trying to work with ace:fileentry. I can't understand why the listener is never called! Even the IDE sends me a warning "pruebaBean.sampleListener is an unknown property". Here is a short example of what i'm doing. When click the submit button nothing happen. Can someone help me ?? Could be some kind of bug? prueba.xhtml: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org /TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com

ICE Faces and error in creation of a bean in WindowScoped

断了今生、忘了曾经 提交于 2019-12-02 10:12:27
After some questions about WindowScoped and after an answer of BalusC I understand that I would use MyFaces CODI I should before rewrite all my previous code because I can't use Mojarra, so I would use ICEFaces because it have also the "window scope" and some other things that help me later and it is based on mojarra! Ok, now I have a big problem, and I wrote also in ICE forum at this link: http://www.icefaces.org/JForum/posts/list/0/20426.page#72064 , and it is that when I launch the application I have many of this link: <h:form> <h:commandLink action="#{logicBean.action('/WEB-INF/jsfpage1

JSF : Issues with File Upload using Icefaces component

心不动则不痛 提交于 2019-12-02 07:02:28
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" href="/xmlhttp/css/rime/rime.css"/> </h:head> <h:body> <h:form enctype="multipart/form-data"> <ace

Radio buttons in different parts of the page

£可爱£侵袭症+ 提交于 2019-12-02 02:08:16
I need to place radio button controls with ICEFaces in different parts of my page, according to a layout specification I must meet. SelectOneRadio control allows me to instantiate several radio buttons in the same container , but I need to place just two radio buttons inside certain table cells, and I then need some controls to be activated or not according to which radio button is selected. With plain HTML, I obviously need to place the two <input s wherever I need and give them the same name. How can I achieve the same using ICEFaces so I can enable/disable controls according to the

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

自作多情 提交于 2019-12-02 02:04:47
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: <f:convertDateTime pattern="dd/MM/yyyy" /> it formats correct the value in GUI, but when setting it on

JSF - Component Libraries, migrate or not migrate?

馋奶兔 提交于 2019-12-01 20:52:16
I am using an old component library called Woodstock. Whenever I try to change something I get stuck with not find finding adequate documents about this library. I am thinking about migrating to another library like ICE Faces or Prime Faces. But I suspect that migrating to another library will end up with the same result in 3-4 years, no documents, no support anymore. Should I use JSF standard library and not use component libraries anymore, or is there a library that lasts more than 3 years Woodstock was rather unique. The Woodstock components generates generally JavaScript code instead of