icefaces

JSF/IceFaces Conditional Rendering

随声附和 提交于 2019-12-24 09:55:48
问题 I am using Icefaces to conditonally render a component but it cant pick up the boolean: BeanCode: public boolean isEmpty(){ return true; } public int getCount(){ if (isEmpty()){ return 0; } return 1; } IceFaces <ice:panelGroup rendered="#{coverage.empty}"> //this doesnt work <ice:panelGroup rendered="#{coverage.count==0}"> //this does work Error message: Error Parsing: #{coverage.empty} Why is IceFaces not recognising the boolean? 回答1: As you stated, empty is a reserved word in Expression

Custom selectItems

有些话、适合烂在心里 提交于 2019-12-24 08:58:42
问题 i want to customize selectItems to display an image conditionally beside each checkbox so first i tried to display the image for all checkboxes but it gets displayed only once, here's what i tried: <h:selectManyCheckbox value="#{myBean.checkboxesArry}" layout="pageDirection"> <f:selectItems value="#{myBean.mapOfCheckBoxes}" var="entry"> <label> <ice:graphicImage url="/resources/images/myImage.bmp"/> <b>#{entry.value}</b> </label> </f:selectItems> </h:selectManyCheckbox> please advise how to

how to make error page (http 500) work in IceFaces?

空扰寡人 提交于 2019-12-24 02:33:09
问题 Using Icefaces 2, if an error occurs during execution of an action method on a standard (=not icefaces) h:commandButton, it just seems the button has no action. No error page is displayed, although it is configured to do so in web.xml. I can make it work by surrounding the tag with <f:ajax disabled="true">...</f:ajax> But I'd want to either disable this automatic ajax from Icefaces (see question How to disable unsollicited ajax on standard components (h:commandButton) while using Icefaces? ),

Jsf file download doesn't work

纵饮孤独 提交于 2019-12-24 01:27:43
问题 When I click the h:commandButton it execute the myBean.dowanlod() method, but it doesn't download any files. Here is my methods in the backing bean. No exceptions. Cursor gets busy and seems like waiting for a response. Are there any additional configurations for this kind of operations or is there any wrong with this code? <h:commandButton value="download" action="#{myBean.download()}" /> @ManagedBean @SessionScoped public class MyBean implements Serializable{ //.... public String download{

Alternative JSF implementation with JBoss 71

拜拜、爱过 提交于 2019-12-24 01:22:29
问题 I am trying to use icefaces 1.7.1 in a war application deployed on JBoss 7.0.0.Final Deployment is failing with an error "Could not compile stylesheet" in icefaces-comp.jar/META-INF/faces-config.xml. I assume this is because JBoss 7 is expecting me to use the JSF implementation that comes with JBoss 7. I can not change or upgrade the JSF implementation. JBoss 6 allowed legacy applications to add the following to web.xml so that the JSF implementation bundled with JBoss is ignored: <context

ICEfaces/Seam file upload component not uploading files

大兔子大兔子 提交于 2019-12-23 12:16:18
问题 Update I'm currently over at the ICEfaces forums to get my problem solved - sadly, none of the provided options led to a solution now, but they indeed gave me some more insight into the whole JSF topic (credits go to BalusC for that, as often :-)). I will try to keep this thread up to date and post an answer if the problem is finally solved to help others which may encounter it. My findings so far are: Disabling the Seam Multipart Filter is required because it prevents the fileEntry-component

How can a JSF/ICEfaces component's parameters be updated immediately?

余生长醉 提交于 2019-12-21 23:37:42
问题 I have an ICEfaces web app which contains a component with a property linked to a backing bean variable. In theory, variable value is programmatically modified, and the component sees the change and updates its appearance/properties accordingly. However, it seems that the change in variable isn't "noticed" by the component until the end of the JSF cycle (which, from my basic understanding, is the render response phase). The problem is, I have a long file-copy operation to perform, and I would

Server-initiated Rendering: EJB -> FacesContext?

梦想的初衷 提交于 2019-12-21 21:50:11
问题 I've already asked this question on the Icefaces forum, but meanwhile I realized that this is a more generic problem. I'd like to update parts of a JSF page when I get a message in my MDB. The problem is, how do I get the FacesContext from the EJB container? In the message processing function FacesContext.getCurrentInstance() returns null. I've also tried to make a JSF managed bean be a MDB, but I couldn't (it seems you can't have both in the same class?). Since I'm a beginner in the JSF

How to enable/disable components in jsf/icefaces? [duplicate]

江枫思渺然 提交于 2019-12-21 05:41:31
问题 This question already has answers here : Conditionally displaying JSF components (2 answers) Closed 3 years ago . I am looking for how to enable and disable the icefaces components based on the user login ? For example: if login as admin i need to enable the come more components and login as user, disable some components as well as add some other components in one page ? How to do this function in jsf/icefaces ? These two enable and disable in one page . I appericate your suggestions. 回答1:

Radio buttons in different parts of the page

做~自己de王妃 提交于 2019-12-20 03:19:49
问题 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