richfaces

RichFaces rich:tree nodeSelectListener not being listened to

无人久伴 提交于 2020-01-06 01:55:14
问题 I have a rich:tree component used like so: <rich:tree switchType="client" value="#{MyBacking.logTree}" reRender="selectedLog" var="item" nodeFace="#{item.type}" nodeSelectListener="#{MyBacking.processLogSelection}" style="width: 50px;"> <rich:treeNode type="folder" icon="/img/logListFolderIconClosed.png" iconLeaf="/img/logListFolderIconOpen.png"> <h:outputText value="#{item.name}" /> </rich:treeNode> <rich:treeNode type="log" iconLeaf="/img/logFileIcon.png" icon="/img/logFileIcon.png"> <h

How to show month, year using rich:calendar?

你说的曾经没有我的故事 提交于 2020-01-05 07:45:10
问题 I want to show the current month and year using rich:calendar component during page initialization 回答1: I guess you want the calendar control expanded displaying current month and year. If it is what you want then you can add the following script after control rendering #{rich:component('myCalId')}.doExpand(); You can use different such component function of richfaces in that fashion defined here. 来源: https://stackoverflow.com/questions/4613037/how-to-show-month-year-using-richcalendar

Usage of multiple dataTables with a dataScroller each leads to dataScroller malfunction

旧城冷巷雨未停 提交于 2020-01-05 04:17:14
问题 I have a JSF page with three dataTables. Each of them has an associated dataScroller. When viewing the page only the last dataScroller (on the bottom) works. The others only load the page selected on the last dataTable when selecting any page in their own dataScroller. I've debugged the page with Firebug and I found nothing relevant. Neither did I find any thread here or in other forums about how to solve this issue. I post also some code, just in case it could be helpful. Thanks in advance:

Richfaces 4 rich:inputNumberSpinner: not getting “set” in backing bean

本秂侑毒 提交于 2020-01-04 11:12:09
问题 I have done JSF work before, but am new to RichFaces. To test my set up and environment, etc. I have tried to make just a simple little app where the user enters two numbers, clicks a button, and the app returns the sum and product of the numbers. Here's the code summary: web.xml <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi

h:commandLink not working when inside a list

落花浮王杯 提交于 2020-01-04 09:07:21
问题 I have a problem with RichFaces and creating lists of links. If you attempt to use any type of commandLink inside a list (I've tried ui:repeat and rich:list) the action on that link is not called. I've also tried commandButton and the a4j variations of those. I'm using JSF 2, RichFaces 4 on Jboss 6. <rich:list var="venue" value="#{searchManager.results}" type="definitions" stateVar="status"> <h:form> <h:commandLink value="CLICK IT" immediate="true" action="#{score.selectVenue}" /> </h:form> <

h:commandLink not working when inside a list

时间秒杀一切 提交于 2020-01-04 09:06:13
问题 I have a problem with RichFaces and creating lists of links. If you attempt to use any type of commandLink inside a list (I've tried ui:repeat and rich:list) the action on that link is not called. I've also tried commandButton and the a4j variations of those. I'm using JSF 2, RichFaces 4 on Jboss 6. <rich:list var="venue" value="#{searchManager.results}" type="definitions" stateVar="status"> <h:form> <h:commandLink value="CLICK IT" immediate="true" action="#{score.selectVenue}" /> </h:form> <

Pass a value from h:outputLink to JSF after onclick event

若如初见. 提交于 2020-01-03 04:19:25
问题 I need to pass an integer to a JSF backing bean after onclick event on h:outputLink . Important : I cannot use f:param to pass value as request parameters to the naviagating page as I am preventing default onclick behaviour of h:outputlink. The control instead of navigating to page defined by href attribute, goes to a javascript function . Using Primefaces 3.0M3 snapshot with JSF 2.0 My code follows: <h:outputLink id="#{item.id}" value="/itemDetails.xhtml" class="itemLink" > #{item.name} </h

content disposition with attachment doesnt work for AJAX response

一世执手 提交于 2020-01-03 04:16:07
问题 The problem for me is pretty straight forward. Onclick of an anchor tag , I execute a javascript using a4j:jsFunction and the action of this function should stream an XML file from server. The problem is , the stream sent on richfaces response doesnt give a saveAs dialog but instead renders the xml on the browser. After reading many articles I understood that Ajax response cannot give a saveAs Dialog. xhtml snippet: <h:form> <a4j:jsFunction name="updateCart" reRender="idFavouritePanel"> <a4j

What is the proper way to add a jquery plugin

隐身守侯 提交于 2020-01-03 04:04:13
问题 I am using JBOSS 3.01 and JSF 1.2 and RichFaces 3. What is the proper way to add a jquery plugin? <a:loadScript src="/scripts/jquery.cookie.js"/> or <script type="text/javascript" src="/scripts/jquery.cookie.js"></script> I get jQuery.cookie is not a function [Break On This Error] if(jQuery.cookie("cssswitch")) { When I try to use the a:loadScript. Our namespace is a: instead of a4j: 回答1: this one : <script type="text/javascript" src="/scripts/jquery.cookie.js"></script> ite a basic html

What is the proper way to add a jquery plugin

女生的网名这么多〃 提交于 2020-01-03 04:03:19
问题 I am using JBOSS 3.01 and JSF 1.2 and RichFaces 3. What is the proper way to add a jquery plugin? <a:loadScript src="/scripts/jquery.cookie.js"/> or <script type="text/javascript" src="/scripts/jquery.cookie.js"></script> I get jQuery.cookie is not a function [Break On This Error] if(jQuery.cookie("cssswitch")) { When I try to use the a:loadScript. Our namespace is a: instead of a4j: 回答1: this one : <script type="text/javascript" src="/scripts/jquery.cookie.js"></script> ite a basic html