jsf-2.2

#{cc.clientId} evaluated in wrong composite after upgrading to JSF 2.2

血红的双手。 提交于 2019-12-02 02:04:37
I have a tag library which was written in JSF 2.0 + PrimeFaces 3.4, now i am trying to update to JSF 2.2 and PrimeFaces 4.0. But i realized that the value of attributes passed to component evaluated in composite component and it leads to wrong id for rendering. enum.xhtml (composite component) <cc:interface> <cc:attribute name="render" default="@this"/> ..... </cc:interface> <cc:implementation> <h:selectOneMenu ......../> <p:ajax update="#{cc.attrs.render}" process="#{cc.attrs.execute}" /> </cc:implementation> usage : <t:enum id="authenticationSource" value="#{authenticationStrategy}" .....

java.lang.NoSuchMethodError: javax.faces.component.UIComponent.getPassThroughAttributes(Z)Ljava/util/Map; after migrating to JSF 2.2

橙三吉。 提交于 2019-12-02 00:07:42
问题 I am getting the below exception after migrating to JSF 2.2. Specifically, I'm upgrading Mojarra 2.1.17 to Mojarra 2.2.8. java.lang.NoSuchMethodError: javax.faces.component.UIComponent.getPassThroughAttributes(Z)Ljava/util/Map; at org.primefaces.renderkit.RendererUtils.renderPassThroughAttributes(RendererUtils.java:79) at org.primefaces.renderkit.CoreRenderer.renderDynamicPassThruAttributes(CoreRenderer.java:119) at org.primefaces.renderkit.CoreRenderer.renderPassThruAttributes(CoreRenderer

How to reset input components on change of <p:selectOneMenu> after certain validations are violated

ⅰ亾dé卋堺 提交于 2019-12-01 22:39:22
I'm populating <p:selectOneMenu> from a database which contains a list of zones, when a JSF page loaded. When a zone in this menu is selected, a set of <p:inputText> is displayed in which a user can insert charge that corresponds to product weight which is to be transferred by a transporter to the selected zone in the menu. This can be shown in the following snap shot . As can be seen, when non numeric values are entered by a user, validation violations occurs, when the given save button <p:commandButton> is pressed (the numbers displayed on top of each text field correspond to weight). If a

java.lang.IllegalStateException: Could not find backup for factory javax.faces.application.ApplicationFactory

守給你的承諾、 提交于 2019-12-01 22:00:41
I have upgraded application to use javax.faces-2.2.4 and primefaces-4.0 jars.After deploying my application to weblogic from myeclipse I am getting below error: Jan 10, 2014 2:37:13 PM javax.faces.FactoryFinder$FactoryManager getFactory SEVERE: Application was not properly initialized at startup, could not find Factory: javax.faces.application.ApplicationFactory. Attempting to find backup. Jan 10, 2014 2:37:13 PM com.sun.faces.config.ConfigureListener contextDestroyed SEVERE: Unexpected exception when attempting to tear down the Mojarra runtime java.lang.IllegalStateException: Could not find

java.lang.NoSuchMethodError: javax.faces.component.UIComponent.getPassThroughAttributes(Z)Ljava/util/Map; after migrating to JSF 2.2

a 夏天 提交于 2019-12-01 21:20:58
I am getting the below exception after migrating to JSF 2.2. Specifically, I'm upgrading Mojarra 2.1.17 to Mojarra 2.2.8. java.lang.NoSuchMethodError: javax.faces.component.UIComponent.getPassThroughAttributes(Z)Ljava/util/Map; at org.primefaces.renderkit.RendererUtils.renderPassThroughAttributes(RendererUtils.java:79) at org.primefaces.renderkit.CoreRenderer.renderDynamicPassThruAttributes(CoreRenderer.java:119) at org.primefaces.renderkit.CoreRenderer.renderPassThruAttributes(CoreRenderer.java:114) at org.primefaces.renderkit.BodyRenderer.encodeBegin(BodyRenderer.java:44) at javax.faces

UI Layout Initialization Error PrimeFaces 6.2

好久不见. 提交于 2019-12-01 19:57:04
The following code works fine with PrimeFaces 6.0 and 6.1 , but with 6.2 when I click on button Validate I see the dialog with the message: / UI Layout Initialization Error The center-pane element does not exist. The center-pane is a required element. I Use: JSF 2.2 , PrimeFaces 6.2 , Tomcat 8.5.23 Is there something wrong with the code or the problem is in PrimeFaces 6.2 ? Company.java import java.io.Serializable; import javax.faces.bean.ManagedBean; import javax.faces.bean.ViewScoped; import com.company.helper.MessagesHelper; @ManagedBean(name = "company") @ViewScoped public class Company

Escape Number 9 in p:inputmask

↘锁芯ラ 提交于 2019-12-01 19:06:09
问题 I want to prepend +90 (Turkey's phone code) to every phone numbers a user enters. For that reason I am using a mask like this: <p:inputMask id="homePhone" value="#{personController.model.homePhone}" mask="+90 (999) 999-9999" size="20" converter="converterPhone" /> But displays it like this: +_0 (___) ___-____ However, I want it to look like this: +90 (___) ___-____ <!-- pay attention to 9 --> Is there a way to escape the first 9 like this: mask="+\90 (999) 999-9999" ? Thank you all... 回答1:

f:viewAction ignored, when commandButton navigates to page

孤街浪徒 提交于 2019-12-01 18:35:20
I have a problem with the JSF 2.2 Feature <f:viewAction action="#{...}/> . I placed this tag in my XHTML-Page, it's called viewActionStart.xhtml : <?xml version="1.0" encoding="UTF-8"?> <html 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:p="http://primefaces.org/ui"> <h:head /> <h:body> <f:view> <f:metadata> <f:viewAction action="#{redirect.getView()}" onPostback="true" immediate="true" /> </f:metadata> </f:view> <h:outputText value="If you see that text, the viewAction was

java.lang.UnsupportedOperationException: getRowData(String rowKey) must be implemented when basic rowKey algorithm is not used

点点圈 提交于 2019-12-01 15:53:11
I have upgraded PrimeFaces from 5.1 final to 5.2 final (the Community Release). I have a <p:dataTable> which is lazily loaded as follows (a minimal example to reproduce the problem for a pure testing purpose only). <p:dataTable var="row" value="#{testManagedBean}" lazy="true" editable="true" rowKey="#{row.fruitId}" selection="#{testManagedBean.selectedValues}" rows="50"> <p:column selectionMode="multiple"/> <p:ajax event="rowEdit" listener="#{testManagedBean.onRowEdit}"/> <p:column headerText="Id"> <h:outputText value="#{row.fruitId}"/> </p:column> <p:column headerText="Fruit Name"> <p

includeViewParams=true converts null model value to empty string in query string

余生颓废 提交于 2019-12-01 15:20:37
问题 Given a <p:selectOneMenu> as follows. <f:metadata> <f:viewParam name="id" value="#{testManagedBean.id}" converter="javax.faces.Long"/> </f:metadata> <p:selectOneMenu value="#{localeBean.language}" onchange="changeLanguage();"> <f:selectItem itemValue="en" itemLabel="English" /> <f:selectItem itemValue="hi" itemLabel="Hindi" /> </p:selectOneMenu> <p:remoteCommand action="#{testManagedBean.submitAction}" name="changeLanguage" process="@this" update="@none"/> The corresponding managed bean :