richfaces

Is ajax4jsf dead? What other AJAX libraries for JSF are there?

*爱你&永不变心* 提交于 2020-01-02 07:10:52
问题 I am currently using the JBoss RichFaces JSF component library for the project I am working on. It works quite well in general, especially the AJAX support provided by ajax4jsf (A4J), but I find the usually very inflexible table-markup used for almost every component and all this "skin" stuff of RichFaces quite annoying. It would be nice if there were some components which just provided the functionality and only minimal markup/style. Originally I had planned to use ICEfaces, but that didn't

How can I use <h:outputScript /> with a remote file?

纵饮孤独 提交于 2020-01-01 09:57:13
问题 I have a server dedicated for static contents so I don't want to use the resources dir for storing javascript files but I don't want to stop using the <h:outputScript /> tag. How can I make that tag generate a link to my static server where the files are located instead of RES_NOT_FOUND . I don't even need JSF to check if the files are there... I tried: <h:outputScript name="#{requestBean.staticURL}/javascript.js"/> To generate: <script type="text/javascript" src="http://static.server.com

JSF ReRender support with selectBooleanCheckbox

隐身守侯 提交于 2020-01-01 06:18:06
问题 I have a JSF page on which I want to have a checkbox that, when clicked, will add/remove certain other form fields from the page. Here is the (simplified) code I currently have for the checkbox: <h:selectBooleanCheckbox title="showComponentToReRender" value="#{backingBean.showComponentToReRender}"> <a4j:support event="onsubmit" reRender="componentToReRender" /> </h:selectBooleanCheckbox> Here is the code for the component I want to hide: <h:selectOneMenu id="componentToReRender" value="#

difference between JSF, RichFaces, PrimeFaces and IceFaces

Deadly 提交于 2019-12-31 08:46:11
问题 I am new to jsf and want to know about the clear difference between JSF, Rich-/Prime-/IceFaces. In JSF we create pages with .jsp extension and write java code in the backing beans. But how exactly all "faces" are different and related to jsf. 回答1: I think if you put it very simply . ref : Source JSF is a request-driven MVC web framework for constructing user interfaces using components. And PrimeFaces/RichFaces/IceFaces are components/JSF libraries that you can use on top of JSF RichFaces :

call a4j:commandButton from javascript on window unload

别等时光非礼了梦想. 提交于 2019-12-31 04:28:05
问题 I am not able to call a4j:commandButton click on window unload. my jsf code is here 1st the javascript in which i have window unload method and i have called button click in that function. <script type="text/javascript"> window.onbeforeunload = function() { document.getElementById('pForm:closeTime').click(); } </script> 2nd i have hidden a4j:commandButton in body <h:form id="pForm"> <a4j:commandButton id="closeTime" value="" action="#{controller.update}" oncomplete="javascript:window.close()"

Making Glassfish respond to ajax request JSF 2

百般思念 提交于 2019-12-30 11:30:30
问题 I'm trying to do an ajax request to my server (Glassfish v3.1 open source edition) and for any reason the request never go to the server, running the same proyect on tomcat 7 it works correctly, there's any configuration that i should make on glassfich or anything?? im using eclipse helios, jsf 2 MyFaces 2.1.1, richfaces 4.0.0, and glassfish 3.1 open source edition here's my code <h:panelGroup> <h:inputText id="firstName" value="#{RegistrationForm.first_name}" required="true" requiredMessage=

Why usage of any a4j element in jsf add to page code second body and head tags?

爱⌒轻易说出口 提交于 2019-12-30 10:45:34
问题 In my jsf page code I have a structure similiar to this one : <frameset id="navframeset"> <frame name="navframe" src='<c:url value="TopNavigation.jsf"/>'/> <frameset> <frame name="leftframe" src='<c:url value="Test1.jsf"/>'/> <frame name="tabbedframe" src='<c:url value="Test2.jsf"/>' /> </frameset> In Test2.jsf i included following richfaces libraries : <%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%> <%@ taglib uri="http://richfaces.org/rich" prefix="rich"%> When I try to use any of

RichFaces4 don't render the components

风格不统一 提交于 2019-12-29 08:14:08
问题 I try to run RichFaces4 app but the components don't render. For example when I try this demo: Demo I get something like this: Here is an example of default tab panel with 3 tabs. j_id1475365623_57f04a9f j_id1475365623_57f04a9f j_id1475365623_57f04a9f j_id1475365623_57f04a75 j_id1475365623_57f04a75 j_id1475365623_57f04a75 j_id1475365623_57f04a6b j_id1475365623_57f04a6b j_id1475365623_57f04a6b « ↓ » Here is tab #1 Here is an example of tab panel switched in "ajax" style. Second tab is disabled

RichFaces 3 to RichFaces 4 migration

故事扮演 提交于 2019-12-28 18:44:08
问题 I am currently working on a project that I would like to migrate over to RichFaces 4 from version 3.3.3.Final. I was wondering... is there anything major I should think about or know or think about before migration? (might be a silly question but...) can you "mix" richfaces 3 with richfaces 4? One of the main reasons I wanted to make the switch is to use richfaces 4 autocomplete, is there a way to do something like this useing richfaces 3 or would migrating over be the easiest? I am using JSF

JSF2 logs with tomcat

女生的网名这么多〃 提交于 2019-12-28 12:09:32
问题 I'm having a project using JSF2 (2.1.2), Richfaces4 (4.0.0.Final) on tomcat6 (6.0.28). In order to manage portability between Tomcat and WebSphere7 for my EARs, I have the following jars inside my tomcat lib: el-api-2.2.jar, jsf-api-2.1.2.jar, jsf-impl-2.1.2.jar, validation-api-1.0.0.GA.jar. My problem is that I never managed to change the log levels of JSF or Richfaces and except from the initialization ones, I don't see any inside my console. Even when I get exceptions in my server response