richfaces

rich:select on drop down jump to the currently selected item in list

烂漫一生 提交于 2020-01-07 03:40:10
问题 We are using rich:select for our drop down inputs. <rich:select id="select" value="#{controller.attrs.value}" > <f:selectItems value="#{controller.attrs.items}" var="foo" itemValue="#{foo}" itemLabel="#{foo.bar}" /> <f:ajax event="#{ajaxActionController.action}" render="input" /> </rich:select> Our problem is that when the drop down is triggered it always starts with the first element in the list. However we would like it to jump to the position of the currently selected item. 回答1: Not

jars required to be added to use rich notify messages in jsf?

断了今生、忘了曾经 提交于 2020-01-06 15:14:13
问题 i am using rich notify messages and added all related jars namely richfaces-components-ui-4.1.0.Final , richfaces-core-impl-4.0.0.Final , standard-1.1.2 , jstl-1.2 , validation-api-1.0.0.GA , richfaces-core-api-4.0.0.Final , richfaces-components-api-4.0.0.Final jsf-impl-2.0.2 , cssparser-0.9.5 , guava-r08 , jhighlight-1.0. but i am getting class not found exception:org.richfaces.component.NotifyAttributes. sample.xhtml: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http:/

Integrate JQuery with Richfaces

余生长醉 提交于 2020-01-06 12:17:34
问题 im newbie in the world of Js , my Jquery doesn't work with richfaces. I want to do something like this : http://jsfiddle.net/bFuEv/ . This is my code in my xhtml file : <!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:s="http://jboss.com/products/seam/taglib" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http:/

Integrate JQuery with Richfaces

♀尐吖头ヾ 提交于 2020-01-06 12:15:23
问题 im newbie in the world of Js , my Jquery doesn't work with richfaces. I want to do something like this : http://jsfiddle.net/bFuEv/ . This is my code in my xhtml file : <!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:s="http://jboss.com/products/seam/taglib" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http:/

Not Able to Save/Update details from richfaces popup panel

[亡魂溺海] 提交于 2020-01-06 08:39:18
问题 I am working on richfaces4, when i am trying to edit details from a popup panel,i am not able to save/update the edited details into my database.can anybody help me to solve this. My XHTML Page is as follows: <!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:h="http://java.sun.com/jsf/html" xmlns:a4j="http://richfaces.org/a4j" xmlns:rich="http://richfaces.org/rich" xmlns:f=

Nesting h:form tags in RichFaces a4j:included content

◇◆丶佛笑我妖孽 提交于 2020-01-06 08:27:12
问题 How is it possible to enclose ajax-related elements with h:form tags in a jsp file which I want to then a4j:include in another jsp file given the suggestion (EDIT 3) to fix another problem by enclosing my a4j:include in an h:form tag? If my included code also has forms in that would suggest a nested form structure which will likely cause problems. A solution to how to go about this would be greatly appreciated. I'm creating a webapp which uses ajax components so there is no page to page

Why the accordion richfaces does not work after being rendered using the tag f: ajax?

随声附和 提交于 2020-01-06 07:31:05
问题 These are my pages: marcarConsulta.xhtml <ui:composition template="templates/main_template.xhtml" xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:a4j="http://richfaces.org/a4j" xmlns:rich="http://richfaces.org/rich" xmlns:c="http://java.sun.com/jsp/jstl/core"> <ui:define name="conteudo"> <h:panelGroup layout="block" id="ajax_especialidade"> <h:panelGroup layout="block" rendered

How to set a bean property before uploading a file using rich:fileUpload?

白昼怎懂夜的黑 提交于 2020-01-06 07:13:40
问题 My application has a modal panel where the user can upload files and choose a "document type" in a drop-down select. I was using an <f:setPropertyActionListener> to set the document type value during the upload event, but sometimes the property is set after the upload has been processed. Probably it's happening because another request is being generated, and this request is handled by another web container thread. <rich:modalPanel id="attachFiles" autosized="true"> <h:form id="formUpload"

How to set a bean property before uploading a file using rich:fileUpload?

落爺英雄遲暮 提交于 2020-01-06 07:13:05
问题 My application has a modal panel where the user can upload files and choose a "document type" in a drop-down select. I was using an <f:setPropertyActionListener> to set the document type value during the upload event, but sometimes the property is set after the upload has been processed. Probably it's happening because another request is being generated, and this request is handled by another web container thread. <rich:modalPanel id="attachFiles" autosized="true"> <h:form id="formUpload"

RichFaces rich:panelMenu from RF demo causes error

丶灬走出姿态 提交于 2020-01-06 02:33:06
问题 I've got the RichFaces demo panelMenu source verbatim in an index.jsp page. As the demo doesn't supply any backing bean code to support this source, I created these methods in panelMenu.java : public void updateCurrent(String n) { logger.info("updateCurrent called with " + n); setCurrent(n); } public String getCurrent() { return current; } public void setCurrent(String c) { current = c; } When I run this, navigating the menu is fine, but selecting an item to output the selected element text