icefaces

ActionListener is called multiple times (Bug?) - Mojarra 2.1.3

≯℡__Kan透↙ 提交于 2019-12-01 11:11:18
I have the following button: <h:commandButton disabled="#{mybean.searching}" binding="#{mybean.searchButton}" actionListener="#{mybean.searchForLicenses}" value="Search" /> When I debug I see that the actionListener is called twice first, then three times, next click four times and so on. It seems like on every reload the actionListener is registered one more time. I'm using Mojarra 2.1.3 (also tried 2.0.6) and Tomcat 7 with IceFaces. The binding is done that way: private javax.faces.component.UICommand searchButton; public void setSearchButton(UICommand searchButton) { this.searchButton =

ActionListener is called multiple times (Bug?) - Mojarra 2.1.3

和自甴很熟 提交于 2019-12-01 08:53:17
问题 I have the following button: <h:commandButton disabled="#{mybean.searching}" binding="#{mybean.searchButton}" actionListener="#{mybean.searchForLicenses}" value="Search" /> When I debug I see that the actionListener is called twice first, then three times, next click four times and so on. It seems like on every reload the actionListener is registered one more time. I'm using Mojarra 2.1.3 (also tried 2.0.6) and Tomcat 7 with IceFaces. The binding is done that way: private javax.faces

ui:repeat doesn't work with f:selectItem

戏子无情 提交于 2019-12-01 03:49:57
问题 i am using icefaces select on menu to select a user from list of users and i want to repeat the selectItem for each user here's what i tried: <ice:selectOneMenu id="users"> <ui:repeat value="#{user.getUserList()}" var="user"> <f:selectItem itemLabel="#{user.name}" itemValue="#{user.id}"/> </ui:repeat> </ice:selectOneMenu> UserBean: @Component("user") @Scope("view") Public class UserBean{ Public List<User> getUserList() throws Exception { return userService.getAllUsers(); } } NOTE: UserBean

could not find Factory: javax.faces.application.ApplicationFactory

不羁岁月 提交于 2019-11-29 14:37:51
Hi i am trying to use following technologies together: JSF 2.1.0 ICEFaces 2.0.2 which is according to their documentation, works fine with JSF 2.1.x Tomcat 6 my web.xml : <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" version="2.5"> <display-name>appName</display-name> <listener> <listener-class> org.springframework.web.context.ContextLoaderListener </listener-class> </listener> <listener>

Using JSF with multiple tabs in one browser [duplicate]

*爱你&永不变心* 提交于 2019-11-29 04:22:05
This question already has an answer here: How to choose the right bean scope? 2 answers By default JSF appears to be very 'stateful'. I need to allow people to use our application with multiple tabs doing many things in different parts of the application. I can't seem to find decent instruction on making this happen without a whole lot of re-engineering. We do not currently use ICEfaces, but I just found this in the ICEfaces docs: 6.5.7. ICEfaces Portlets and Concurrent DOM Views ICEfaces provides a feature called Concurrent DOM Views that controls whether or not the ICEfaces framework

javascript in jsf/icefaces

谁说我不能喝 提交于 2019-11-28 12:43:32
I have file with jspx extension i write javascript like function isNumber(inputId){ var value = document.getElementById('mainForm:'+ inputId).value; var s = value.length; while(s >= 0){ var c = value.charAt(s); if(c > "9"){ alert("Value must be digit"); document.getElementById('mainForm:'+ inputId).value = ""; document.getElementById('mainForm:'+ inputId).focus(); return false; } s --; } return true; } that work perfect but when i check if condition like if(c > "9" || c < "0") it will gives error like com.sun.facelets.FaceletException: Error Parsing /WEB-INF/includes/templates/cc-classic

could not find Factory: javax.faces.application.ApplicationFactory

痴心易碎 提交于 2019-11-28 09:01:46
问题 Hi i am trying to use following technologies together: JSF 2.1.0 ICEFaces 2.0.2 which is according to their documentation, works fine with JSF 2.1.x Tomcat 6 my web.xml : <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" version="2.5"> <display-name>appName</display-name> <listener> <listener

ui:repeat doesn't work with Map

僤鯓⒐⒋嵵緔 提交于 2019-11-27 21:14:53
I have a Map of key / values, which I initialize in @PostConstruct as follows: Map<String, String> myMap; @PostConstruct public void init() { myMap=new LinkedHashMap<String, String>(); myMap.put("myKey","myValue"); } public Map<String, String> getMyMap() { return myMap; } public void setMyMap(Map<String, String> myMap) { this.myMap = myMap; } When I try to iterate over this Map with <ui:repeat> like shown bellow, and I set a break point on the getter for the Map, I notice that it is not getting called, and so nothing is printed: <ice:panelGroup> <ui:repeat items="#{myBean.myMap}" var="entry"

How to dynamically create a <f:selectItem> list?

一曲冷凌霜 提交于 2019-11-27 21:14:00
问题 Is there a way to dynamically create a selectItem list? I dont really want to have to create lots of bean code to make my lists return List<SelectItem> . I tried this: <ice:selectManyCheckbox> <ui:repeat var="product" value="#{productListingService.list}"> <f:selectItem itemLabel="#{product.description}" value="#{product.id}"/> </ui:repeat> </ice:selectManyCheckbox> but it doesnt work. Any ideas? 回答1: Use <f:selectItems> instead. It accepts next to List<SelectItem> and SelectItem[] also a Map

Using JSF with multiple tabs in one browser [duplicate]

a 夏天 提交于 2019-11-27 18:16:09
问题 This question already has an answer here: How to choose the right bean scope? 2 answers By default JSF appears to be very 'stateful'. I need to allow people to use our application with multiple tabs doing many things in different parts of the application. I can't seem to find decent instruction on making this happen without a whole lot of re-engineering. We do not currently use ICEfaces, but I just found this in the ICEfaces docs: 6.5.7. ICEfaces Portlets and Concurrent DOM Views ICEfaces