icefaces

JSF - Component Libraries, migrate or not migrate?

一个人想着一个人 提交于 2019-12-19 21:54:44
问题 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

Dynamic Action in JSF page

两盒软妹~` 提交于 2019-12-19 08:55:44
问题 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, 回答1: You can use the brace notation for that. <h:commandButton value="submit" action="#{someBean[headerBean.actionValue]}" /> When the #

JavaScript click function not triggering JSF action method immediately on IE

↘锁芯ラ 提交于 2019-12-13 20:17:17
问题 I've recognized that when a click is done via JavaScript it won't trigger the action method immediately on IE, instead the browser wait's until the code has gone through the function where click is made and after that triggers the action method. On Chrome the action method is triggered immediately when the click is done. Here is an example xhtml code: <h:form> <ace:pushButton id="button1" action="#{someBean.someFunction1}" label="Button1" /> </h:form> <h:form> <ace:pushButton id="button2"

Unexpected survival of a @ViewScoped bean

孤者浪人 提交于 2019-12-13 04:06:50
问题 I'm developing a view which consists of an object creation form and the existing object list, creablocco.xhtml : <?xml version="1.0"?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:ace="http://www.icefaces.org/icefaces/components" xmlns:ice="http://www.icesoft.com/icefaces/component" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun

What's the generated prefix j_idt33 in JSF component id?

夙愿已清 提交于 2019-12-12 21:25:01
问题 i define h:messages component as follows: <h:messages id="summary" styleClass="summary" globalOnly="true"/> but when i inspected element with firebug, i noticed that the id is translated to something like: j_idt33:summary what's that prefix, and why it's generated ? 回答1: That's the ID of the parent NamingContainer component like <h:form> , <h:dataTable> , <ui:repeat> , <f:subview> , a composite component, etc. JSF prepends the generated HTML client ID with the ID of the parent namingcontainer

Icefaces ace:dataTable lazy loading

…衆ロ難τιáo~ 提交于 2019-12-12 14:15:50
问题 Is there anybody who have a little example of a lazy loading with ace:dataTable?.. I can't understand how to implement the load method of the class LazyDataModel.. and how to fetch data from a Database through this method.. thanks! 回答1: ace:dataTable has already a "built in" lazy loading mechanism in ICEFaces (at least for release 3.x and up). No need to extend an AbstractList for this anymore. All you need to do is add the lazy="true" to your tag, and make sure the " value " attribute points

How to use Javascript in jsf action with Icefaces to update page status ?

人走茶凉 提交于 2019-12-12 10:15:55
问题 How do I fire either server side or client side event handler on completion of h:commondButton action ? This server side process takes sometime to complete. When I click the button, it needs some time to finish the work and update the UI. I want to fire something, when UI gets updated. I'm new to JSF. Please help me with this. Thanks! 回答1: Icefaces has a javascript library that can queue events on client side. Icefaces refreshes DOM after the completion of action so you can queue an event at

Is there a better Ajax Push for JSF 2.0 than Icefaces

一笑奈何 提交于 2019-12-12 08:13:58
问题 I am in a situation where I would like to implement Ajax Push in a Java based web app to update things like counts of item in stock on the web page as they change without any interaction from the user. I understand that the technology needed to do this is called Ajax Push. I also have some experience with JSF 2.0, and this is preferred but not required. First we need a demo showing this in about a couple of weeks, but if the demo is accepted we will have sufficient time to do it right. I've

How to get selected icefaces datatable row using radiobutton?

一个人想着一个人 提交于 2019-12-12 06:07:26
问题 How can I select a row in icefaces datatable using radio button? I tried with the following <h:selectOneRadio styleClass="none" valueChangeListener="#{bean.setSelectedItem}" onclick="dataTableSelectOneRadio(this);"> <f:selectItem itemValue="null" /> </h:selectOneRadio> And my javascript function dataTableSelectOneRadio(radio) { var id = radio.name.substring(radio.name.lastIndexOf(':')); var el = radio.form.elements; for (var i = 0; i < el.length; i++) { if (el[i].name.substring(el[i].name

How to configure rime style in ICEfaces 3

℡╲_俬逩灬. 提交于 2019-12-12 04:48:00
问题 in icefaces 2 i was configuring rime style as follows: <h:head> <link href="./xmlhttp/css/xp/xp.css" rel="stylesheet" type="text/css"/> </h:head> <h:body styleClass="ice-skin-rime"> </h:body> <h:outputStylesheet library="org.icefaces.component.skins" name="rime.css" /> and i was wondering how to configure it in icefaces 3 because i tried the following and it doesn't work <context-param> <param-name>org.icefaces.ace.theme</param-name> <param-value>rime</param-value> </context-param> please