richfaces

How to enforce loading of jQuery in RichFaces?

穿精又带淫゛_ 提交于 2019-12-22 08:45:00
问题 I'm using jQuery on my page. However, I do NOT use RichFaces tags on every page. Subsequently, jQuery is NOT injected by RF in every page. In order to avoid loading an additional jQuery library, how do I properly instruct RichFaces to load its jQuery own library? This is an issue, because the RF-jQuery library overwrites my custom jQuery that I load. Also, the RF-jQuery libraries are always the last libraries to load, which is not good neither, because I need jquery-ui.js and jquery-migrate-1

How to render a component only if another component is not rendered?

会有一股神秘感。 提交于 2019-12-22 06:57:22
问题 I have a page that the user can access via Android, iPhone, BlackBerry or via an unknown browser. I have 4 rich:panel s, one for each platform and the latter is a generic one. The code: <rich:panel id="dlAndroid" rendered="#{fn:containsIgnoreCase(request.getHeader('User-Agent'), 'Android')}"> ... </rich:panel> <rich:panel id="dlIphone" rendered="#{fn:containsIgnoreCase(request.getHeader('User-Agent'), 'iPhone')}"> ... </rich:panel> <rich:panel id="dlBlackberry" rendered="#{fn

Attach rich:toggleControl to radio buttons or select items

牧云@^-^@ 提交于 2019-12-22 00:41:52
问题 Has anyone had any success attaching a rich:toggleControl component to a radio button component ( h:selectOneRadio ) or alternatively any of its children select items (in this case s:enumItem ). Basic code example: <h:selectOneRadio value="#{backingValue}"> <s:enumItem enumValue="VAL_1" itemLabel="Value One" /> <s:enumItem enumValue="VAL_2" itemLabel="Value Two" /> <s:convertEnum /> </h:selectOneRadio> The ideal thing would be to attach the toggle control to the s:enumItem s so I could have

Changing language by clicking a button

别说谁变了你拦得住时间么 提交于 2019-12-21 21:26:49
问题 I have a JSF/RichFaces setup, and I found this tutorial. I followed it step by step, but I can't manage to get it. Also: language.jsp is mentioned in the tutorial, can anybody tell me what exaclty it is? Or if you think this is not an appropiate tutorial and have a better one, please, let me know. 回答1: All the steps in the tutorial are not really needed. What I did (And it works) is: 1. In loging.xhtm , for instance: <f:view locale="#{languageDetails.locale}" > <head> ..... <f:loadBundle

JSF 2.0 view file name extension other than xhtml

只愿长相守 提交于 2019-12-21 20:57:49
问题 How can I use view files with a different extension, other than XHTML, still map to the Faces Servlet in a JSF 2.0 application ? I am migrating a JSF 1.2 app to 2.0, and I use file name extensions jspx. I dont want to change them to xhtml. Thanks in advance for any help. Here is my web.xml as of now <?xml version="1.0" encoding="UTF-8"?> <web-app id="JSF2Sample" version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=

<meta http-equiv=“X-UA-Compatible” content=“IE=8” /> ignored in RichFaces webapp

◇◆丶佛笑我妖孽 提交于 2019-12-21 19:28:12
问题 I'm using JSF 2.0 and RichFaces 3.3.3 on Glassfish 2.1. I've created a web application with a modal panel that works great in my computer (local server). Because of IE9 incompatibility of the specific RichFaces version, I'm using the X-UA-Compatible: IE=8 meta tag in my HTML head: <meta http-equiv="X-UA-Compatible" content="IE=8" /> The modal panel look like this when I deploy in my local environment: But when I deploy in the production server, I've a problem. If I use IE with compatibility

How to refresh parent jsf page from richfaces popup

十年热恋 提交于 2019-12-21 17:50:24
问题 I have a JSF page with a few fields. I followed this tutorial from BalusC and all is good. I then added RichFaces support to it, which is working fine. I can see popups etc working. Now what I am trying to do is that once a person has been registered, I want to show the name in the popup (this is also fine I can see that in the popup). Then I want to be able to change that name inside the popup and have that reflected in the parent, but I have no clue how to do that. Please have a look. XHTML

How to rerender part of page with form in JSF 2.0?

喜夏-厌秋 提交于 2019-12-21 04:50:43
问题 Currently we're trying to move to JSF 2.0 from JSF 1.2 and one of the problem we've faced is that it's impossible to rerender part of the page that contains form. Like this (rerender outerDiv or forms themselves): <h:panelGroup id="outerDiv"> <h:form id="form1">...</h:form> <h:form id="form2">...</h:form> </h:panelGroup> I mean that if i update outerDiv everything is updated but the form (or forms) itself becomes broken and behaves strangely, at least ajax calls either don't work when first

Server-side DataTable Sorting in RichFaces

余生颓废 提交于 2019-12-21 04:14:14
问题 I have a data table with a variable number of columns and a data scroller. How can I enable server side sorting? I prefer that it be fired by the user clicking the column header. <rich:datascroller for="instanceList" actionListener="#{pageDataModel.pageChange}"/> <rich:dataTable id="instanceList" rows="10" value="#{pageDataModel}" var="fieldValues" rowKeyVar="rowKey"> <rich:columns value="#{pageDataModel.columnNames}" var="column" index="idx"> <f:facet name="header"> <h:outputText value="#

JSF 2.x + Spring 3.2 Integration?

被刻印的时光 ゝ 提交于 2019-12-21 02:56:08
问题 Sorry to ask this question and it may be a duplicate of other similar threads in Stack overflow.Those similar thready does not work in my situation. I am having a quite enough knowledge in spring 3.2 and completed one small project in spring . Now I am new to JSF and I some created basic JSF example .I would like to use the JSF features and its components for my new Spring + JSF project. The links that I came out for JSF + Spring Integration are given below , http://papweb.wordpress.com/2011