jsf-2

Tabs in JSF page are not working

十年热恋 提交于 2019-12-13 03:57:06
问题 I have a problem which I cannot solve. When I open JSF tab and I try to click on the buttons the page is not working. Main page: <?xml version='1.0' encoding='UTF-8' ?> <!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" xml:lang="en" lang="en" 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

loader constraint violation: when resolving interface method “javax.servlet.jsp.JspApplicationContext.addELResolver(Ljavax/el/ELResolver;)V”

人盡茶涼 提交于 2019-12-13 03:52:56
问题 I got this error while deploying the WAR in Tomcat 7. I have carried out the development using JDeveloper 11. "java.lang.LinkageError: loader constraint violation: when resolving interface method "javax.servlet.jsp.JspApplicationContext.addELResolver(Ljavax/el/ELResolver;)V" the class loader (instance of org/apache/catalina/loader/WebappClassLoader) of the current class, com/sun/faces/config/ConfigureListener, and the class loader (instance of org/apache/catalina/loader/StandardClassLoader)

jsf2 f:ajax render issue in datatable

不羁的心 提交于 2019-12-13 03:44:35
问题 I have a datatable and for each line have a delete linkcommand, as following: <h:dataTable value='#{glbProjectDtoList}' var='projectDto' binding='#{projectController.projectDataTable}' styleClass='display' id='tblProject' rowClasses='gradeA, gradeA' columnClasses='projectTableName, projectTableProgress, projectTableAction'> ...... <h:commandLink action="#{projectController.delete(projectDto.projectId)}"> <img class="btnDeleteProject mr5" src="#{request.contextPath}/resources/images/icons/dark

How to add request parameter in jsf2?

ⅰ亾dé卋堺 提交于 2019-12-13 03:20:29
问题 In my app, before upgrading to jsf 2, when doing a custom redirect I used to manually put a request parameter with a specific value in external context like this: FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap() .put(CmwNavigationControllerBean.PARAM_DISPLAY_TARGET_POPUP, "true"); Now this line, throws an exception because it seems that this map is no longer allowed to be modified: at java.util.Collections$UnmodifiableMap.put(Unknown Source) [rt.jar:1.7.0] Isn't

A problem in h:dataTable implementation

依然范特西╮ 提交于 2019-12-13 03:17:32
问题 I am unable to get table values by using h:dataTable. Please reply? Bean class:- public class Employee implements Serializable{ private int eId; private String eName; private ResultSet viewEmployee; public Connection getVConnection() throws Exception{ String driver = "oracle.jdbc.driver.OracleDriver"; String url = "jdbc:oracle:thin:@localhost:1521:globldb3"; String username = "scott"; String password = "tiger"; Class.forName(driver); Connection conn = DriverManager.getConnection(url, username

JSF2: why does empty test in rendered of panelGroup in composite prevent action from being called?

若如初见. 提交于 2019-12-13 03:12:23
问题 I am having problems getting an action of a managed bean to be called when certain other JSF elements from custom composite components are present in the same page as the h:commandButton that submits the h:form. I can narrow down the page elements that cause problems to those that perform the following harmless (to me) looking rendering tests: <h:panelGroup rendered="#{not empty cc.attrs.element}"> or: <h:panelGroup rendered="#{empty cc.attrs.element}"> where 'element' is a required attribute

Netbeans tells “Unknown property” on <p:poll listener>

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-13 02:59:56
问题 I havent worked out how to call/invoke a method dynamically without using the @PostContruct method and initialising @ the page creation. At the moment I am simply trying to get the primeface p:poll example working. I have placed the method in its own class for now to keep it clean and simple & looks like so: @ManagedBean(name="counterBean") @SessionScoped public class CounterBean implements Serializable { private int count; public int getCount() { return count; } public void setCount(int

How to execute another <h:form> using <f:ajax>?

自古美人都是妖i 提交于 2019-12-13 02:58:21
问题 I've noticed that this doesn't work for me and I'm wondering if it's just not possible: <h:form id="one" prependid="false" > <h:commandButton> <f:ajax execute=":two"> </h:commandButton> </h:form> <h:form id="two" prependid="false"> ... content ... </h:form> Whenever I click the button above ,I can see that the values on form two are not executed as expected. Is this the normal JSF behavior? To 'trick' it, I usually insert a hidden button in form two and trigger it using JavaScript code when

Cell Selection DataTable PRIMEFACES?

限于喜欢 提交于 2019-12-13 02:37:58
问题 i have a table and i wanna click a cell and show me a dialog but only i have rowSelect event , it is possible to do that?... so in this case i click in a row and then show me the object values in a dialog, but i wanna click a block to show me a dialog <h:form id="frm1"> <p:growl id="growl" showDetail="true"/> <p:commandButton value="List" actionListener="#{tableBean.listCars()}" update="dtCar"/> <p:dataTable id="dtCar" var="car" value="#{tableBean.carModel}" selectionMode="single" > <p:ajax

org.apache.xerces.impl.dv.DVFactoryException: DTD factory class org.apache.xerces.impl.dv.dtd.DTDDVFactoryImpl does not extend from DTDDVFactory [duplicate]

白昼怎懂夜的黑 提交于 2019-12-13 02:36:16
问题 This question already has answers here : Xerces error: org.apache.xerces.impl.dv.dtd.DTDDVFactoryImpl (2 answers) Closed 2 years ago . I'm creating a JSF application in NetBeans7.1 using GlassFish3.1.1, when I make changes to a managed bean or any other .java file and try to redeploy the web app to GlassFish using NetBeans I get the exception posted below. I have tried clearing the NetBeans cache and have also tried downloading various versions of NetBeans and GlassFish and have gotten the