facelets

JSF selectCheckBoxMenu not working properly in IE

强颜欢笑 提交于 2019-12-01 13:53:33
问题 I am facing an issue with my jsf application while running it on IE. The selectcheckboxmenu on jsf behaves faulty and has the checkboxes of the menu items shifted below the items, The checkboxes are still there. Below is the screenshot of what i am facing : [IMG]http://i43.tinypic.com/8yb976.jpg[/IMG] the code for the selectcheckboxmenu is given below : <p:selectCheckboxMenu value="#{formBean.selectedMovies}" label="Movies" filter="true" filterText="Filter" filterMatchMode="startsWith"

How to use jQuery with in xhtml?

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-01 13:33:59
问题 i am using facelets,richfaces,and ajax, in XHTML i am facing error while creating datepicker! What is the solution for my problem? the code is: <?xml version="1.0" encoding="ISO-8859-1" ?> <!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:f="http://java.sun.com/jsf/core" xmlns:a4j="https:/

How to stop recursive composite component from including itself recursively

三世轮回 提交于 2019-12-01 12:33:11
Is it possible to have a JSF component that has ui:repeat and inside the repeat call the same component? It's because I'm building tree of question: <cc:interface> <cc:attribute name="questions" required="true" /> <cc:attribute name="renderQuestions" required="true" default="true" /> </cc:interface> <cc:implementation> <c:if test="#{cc.attrs.renderQuestions}"> <ui:repeat value="#{cc.attrs.questions}" var="q"> <p:panelGrid columns="2"> <h:outputLabel value="#{q.question}"></h:outputLabel> <p:selectBooleanButton onLabel="#{messages['commons.yes']}" offLabel="#{messages['commons.no']}" onIcon="ui

How to put data in view scope via EL in JSF page

橙三吉。 提交于 2019-12-01 11:07:33
In my JSF page this works: ${requestScope.put('test', 'data')} ${requestScope.get('test')} This causes exception: ${viewScope.put('test', 'data')} ${viewScope.get('test')} Exception: java.lang.NullPointerException javax.el.BeanELResolver.invoke(BeanELResolver.java:159) javax.el.CompositeELResolver.invoke(CompositeELResolver.java:84) org.apache.el.parser.AstValue.getValue(AstValue.java:157) org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:184) com.sun.faces.facelets.el.ELText$ELTextVariable.writeText(ELText.java:238) com.sun.faces.facelets.el.ELText$ELTextComposite.writeText

What is the difference between Custom Components and Composite Components?

帅比萌擦擦* 提交于 2019-12-01 10:57:34
What is the difference between JSF Custom Components and Facelets Composite Components? BalusC JSF custom components are Java classes which extend UIComponent . Facelets composite components are XHTML files which use http://java.sun.com/jsf/composite namespace. See also: When to use <ui:include>, tag files, composite components and/or custom components? 来源: https://stackoverflow.com/questions/5704620/what-is-the-difference-between-custom-components-and-composite-components

Passing EL method expression as attribute of custom Facelets tagfile

不想你离开。 提交于 2019-12-01 10:47:06
I created a custom JSF tag: <ui:composition> <h:panelGroup> <rich:dataScroller id="#{id}" for="#{table}" execute="#{table}" page="#{scrollerPage}" render="#{table}-sc1" maxPages="5" fastControls="hide" oncomplete="#{onCompl}" scrollListener="#{scrollListenerBean[scrollListenerMethod]}" /> <h:inputText value="#{scrollerPage}" id="#{table}-sc1" size="2"> <f:convertNumber integerOnly="true" /> </h:inputText> <h:outputText styleClass="outputText" value=" of #{scrollPagesCount} " /> <h:commandButton value="GO! " /> </h:panelGroup> </ui:composition> To pass the listener method, I used the solution

How to stop recursive composite component from including itself recursively

纵然是瞬间 提交于 2019-12-01 09:58:39
问题 Is it possible to have a JSF component that has ui:repeat and inside the repeat call the same component? It's because I'm building tree of question: <cc:interface> <cc:attribute name="questions" required="true" /> <cc:attribute name="renderQuestions" required="true" default="true" /> </cc:interface> <cc:implementation> <c:if test="#{cc.attrs.renderQuestions}"> <ui:repeat value="#{cc.attrs.questions}" var="q"> <p:panelGrid columns="2"> <h:outputLabel value="#{q.question}"></h:outputLabel> <p

How to put data in view scope via EL in JSF page

瘦欲@ 提交于 2019-12-01 06:58:37
问题 In my JSF page this works: ${requestScope.put('test', 'data')} ${requestScope.get('test')} This causes exception: ${viewScope.put('test', 'data')} ${viewScope.get('test')} Exception: java.lang.NullPointerException javax.el.BeanELResolver.invoke(BeanELResolver.java:159) javax.el.CompositeELResolver.invoke(CompositeELResolver.java:84) org.apache.el.parser.AstValue.getValue(AstValue.java:157) org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:184) com.sun.faces.facelets.el

JSF2: how achieve site-wide viewParam handling policy using a template

做~自己de王妃 提交于 2019-12-01 06:42:07
问题 The following seems to be ignore inside XHTML facelet templates: <f:metadata> <f:viewParam name="id" value="#{backingBean.id}" /> </f:metadata> (At least with Mojarra as per Glassfish2.2) Java Server Faces 2.0 Complete Reference says p.540: The f:metadata tag encapsulates the set of elements used to specify the metadata for a Facelet view, and therefore must be a child of the f:view tag and may not appear in a template. As of JSF2.0, the only purpose of this tag is to encapsulate f:viewParam

Use <ui:param> in a listener into a tag <p:ajax>

别等时光非礼了梦想. 提交于 2019-12-01 06:21:31
I'm using <ui:include> to load a data table (I'm using Primefaces). I want use <ui:param> in the listener into the tag <p:ajax> . I tested the code that is down, but not trigger the event onRowEdit or onRowCancel . This is my page: ... <ui:include src="../Componentes/tablaEditable.xhtml"> <ui:param name="columnas" value="#{tabla2FuentesHL7.dataTableColumns}" /> <ui:param name="bean" value="#{tabla2FuentesHL7.listTabla2FuenteDTO}" /> <ui:param name="aceptarEdicion" value="#{tabla2FuentesHL7.onRowEdit}" /> <ui:param name="cancelarEdicion" value="#{tabla2FuentesHL7.onRowCancel}" /> </ui:include>