richfaces

richface tree with selectitem (checkbox)

我的未来我决定 提交于 2019-12-08 07:16:32
问题 I am trying to put checkbox in tree node. My code is as below. I used richfaces - SC. In JSP page : <h:panelGrid> <sc:tree value="#{templateCategoriesBackingBean.rootNode}"> </sc:tree> </h:panelGrid> In BackingBean : private TreeNode<SelectItem> rootNode; public TreeNode<SelectItem> getRootNode() { rootNode = new TreeNodeImpl<SelectItem>(); for (int i = 0; i < 10; i++) { TreeNodeImpl<SelectItem> treeNodeImpl = new TreeNodeImpl<SelectItem>(); treeNodeImpl.setData(new SelectItem(i, "Hello : "+i

Getting started with JSF - Richfaces on Eclipse

早过忘川 提交于 2019-12-08 07:10:52
问题 I used to work with JSF - Richfaces but had no idea of how to start it and I quit before I learned it. Is there any easy way to start? What do I need to add. Like splitting projects into 4 or so and what server to use, etc. 回答1: You can also find many RichFaces resources on my blog: http://mkblog.exadel.com/tag/richfaces-howto/, including this project template: http://mkblog.exadel.com/2010/04/the-easiest-way-to-start-with-richfaces/ 回答2: Here is hello world and Practical Richfaces But I

Elegant handling of attributes without a session bean

亡梦爱人 提交于 2019-12-08 05:51:58
问题 I'm working on an application using JSF 2.0 and Richfaces 4, that consists of many tables that display elements and of course, the usual View/Edit/Delete options. After some SO browsing and Google search I've decided to post a question because the answers I found did not solve my problem. Right now, and going straight to the point, my application is having issues when handling certain attributes that are stored in request beans and, on certain points, are lost due to successive requests. For

RichFaces rich:columns and sorting

荒凉一梦 提交于 2019-12-08 05:23:06
问题 does anyone know how to properly enable sorting on a rich:dataTable with columns generated on the fly using rich:columns tag? Setting sortBy with an expression like #{row[column]} doesn't work for me. I'm using RichFaces 3.3.1GA. Here's the example: <rich:dataTable id="table" value="#{localeHandler.locales}" var="row"> <rich:columns value="#{localeHandler.columns}" var="column" sortBy="#{row[column]}" > <f:facet name="header"> <h:outputText value="#{column}"/> </f:facet> <h:outputText value="

Incorrect popup shadow position after moving popup in RichFaces 4.x

倖福魔咒の 提交于 2019-12-08 05:22:55
问题 I have popup with autosized attribute. Panel contains fields for search, search button, datatable and datascroller. After press search button or select page in datascroller javascript is called. Javascript is used for move popup to center of browser visible area. All work fine, except popup shadow is stay for previous panel position when popup is already moved. Button code: <a4j:commandButton id="searchButton" value="#{msg.search}" action="#{chAction.searchSegments}" styleClass="richButton"

JSF to JQuery Component Integration

我是研究僧i 提交于 2019-12-08 04:55:31
问题 Since any JSF page gets transformed at the server side into its equivalent HTML and sent to the client for rendering, and JQuery at the client side takes the HTML and re renders it. In theory it should be possible to take the HTML that is a generated by JSF and wrap it into JQuery, if so I would like to know how it's done. Specifically using RichFaces as the JSF implementation if possible. <rich:dataTable id="table"> <rich:column> </rich:column> </rich:dataTable> The above snippet of JSF is

URL rewrite in Wildfly?

非 Y 不嫁゛ 提交于 2019-12-08 04:44:49
问题 I built up an app using RichFaces, PrimeFaces, and Java in the back. The outcome (mysite.war) I let run within Wildfly 8. Now my pages are like this: www.mysite.com/index.jsf www.mysite.com/report.jsf?no=1 www.mysite.com/report.jsf?no=2 www.mysite.com/report.jsf?no=3 www.mysite.com/report.jsf?no=4 www.mysite.com/legal.jsf I would like to change that to more readable URLs. Especially the reports! Taking the example order, I am looking forward to having something like this: www.mysite.com www

DocType is not showing in the rendered output from JSF

本秂侑毒 提交于 2019-12-08 04:28:15
问题 I am trying into integrate JSF1.2, Richfaces 3.3.0 GA, Facelets1.1 and JQuery. The issue i am facing is the rendered output is starting from i.e its missing the Doc type and HTML Tag. For example <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core"><ui:composition> <head> <

How to pass an argument to method from rendered h:outputText?

扶醉桌前 提交于 2019-12-08 04:26:15
问题 I am displaying a table of data from an sql query and want to render a section of code based on one of the field values from this sql query. View: records.xthml <table> <thead> <tr> <td>#{messages['table.header.id']}</td> <td>#{messages['table.header.name']}</td> <td>#{messages['table.header.date.added']}</td> <td> </td> </tr> </thead> <tbody> <a4j:repeat value="recordListBean.records" var="listedRecord" rowKeyVar="index"> <tr> <td><h:outputText value="#{listedRecord.id}</td> <td><h

rich:popupPanel always show scrollbars

醉酒当歌 提交于 2019-12-08 04:24:13
问题 My JSF form contains a popup panel. The code is here: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:h="http://java.sun.com/jsf/html" xmlns:a4j="http://richfaces.org/a4j" xmlns:rich="http://richfaces.org/rich" xmlns:f="http://java.sun.com/jsf/core"> <h:head> <title>Partner Manager</title> <link href="stylesheet/reset.css" rel=