jsf-2

selectBooleanCheckBox in datatable header not calling actionListener

≡放荡痞女 提交于 2019-12-11 14:08:29
问题 I have a datatable with three columns and a checkboxes in the header of each column. When I select one checkbox, I have to update the other 2 check boxes. Each row under these columns is an input box with a validator. When I submit the form, I can see the validators executing but my actionListener is not invoked. There is no stack trace as well. Please suggest. <p:dataTable id="segmentRangeTable" var="rank" value="#{segmentSetup.ranks}"> <p:column headerText="Segment Names"> <p:outputPanel

Example for CDI-SessionScoped LogIn with TomEE

拈花ヽ惹草 提交于 2019-12-11 14:06:48
问题 i'm currently fighting with TomEE, JSF and CDI (i think). Is there any example out there which has "@javax.enterprise.context.SessionScoped" annotation using TomEE 1.5.1 (or current snapshot)? I DONT want to use @ManagedBean or something else from javax.faces, just plain CDI. My problem is: when i change some @SessionScoped user session instance i end up in having a new sessionID (session fixation problem?!?). My Use-Case: I want to have a login on one page and have the possability to login

How to make Eclipse autocomplete work with JSF composite components in JAR?

一个人想着一个人 提交于 2019-12-11 13:28:46
问题 Background / Problem I'm trying to create a reusable JSF composite component that can be shared between many applications by packaging the components in jars (similar to Deploy JSF composite components for shared use and JSF 2.0 composite component into jar). When trying to refer to these components in a facelets page of a web project in Eclipse, it doesn't autocomplete (content assist) the tags or attributes of my composite component. Using the same composite component jar in NetBeans works

f:viewParam is not working

我的梦境 提交于 2019-12-11 13:13:54
问题 I am using JSF 2.2.4 on GlassFish 3.1.2.2. I have this backing bean: import javax.faces.bean.ManagedBean; import javax.faces.bean.RequestScoped; import java.io.Serializable; @ManagedBean(name="testMB") @RequestScoped public class TestMB implements Serializable { public long id; public long getId() { return id; } public void setId(long id) { this.id = id; } } And this view test.xhtml : <html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun

Duplicate id error with primefaces dialog in template

六月ゝ 毕业季﹏ 提交于 2019-12-11 13:12:19
问题 PF 3.5.10, Mojara 2.1.21, Omnifaces 1.5 I have Facelet-Template with p:menu and p:include for dialog mytemplate.xhtml: <h:form> ... <p:menubar> <p:menuitem value="Start Dialog" oncomplete="mydialogwidget.show()"/> <p:menuitem value="open another page" action="/app/mypage.xhtml?faces-redirect=true"/> </p:menubar> ... </h:form> <ui:insert name="content" /> <ui:include="/app/mydialog.xhtml" /> mydialog.xhtml: <ui:composition> <p:dialog widgetVar="mydialogwidget" ...> <h:form> <p:datatable

PicketLink protection stops JSF 2.2 resource contract from being loaded

半腔热情 提交于 2019-12-11 13:10:46
问题 I have a JSF 2.2 webapp with a contract and several pages, located directly in the WebContent folder. The contract consists of an image, a template file template.xhtml and a css file global.css . So far everything is working as expected. Now I want to use PicketLink for user authentication and authorization and have followed a tutorial (http://www.ocpsoft.org/security/simple-java-ee-jsf-login-page-with-jboss-picketlink-security/), but when accessing my pages the image and css files are unable

<a4j:loadScript> for Loading JQuery Script Throwing Exception

为君一笑 提交于 2019-12-11 13:04:29
问题 I am trying to use JQuery in my JSF page embedded with RF3.3.1.. Here is my code snippet:- <%@page contentType="text/html" pageEncoding="UTF-8"%> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%> <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%> <%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%> <%@ taglib uri="http://richfaces.org/rich" prefix="rich"%> <html> <head>

Pagination on JSF using get parameters

好久不见. 提交于 2019-12-11 12:57:19
问题 I am on index.xhtml and I have this code snippet: <h:form> <h:commandButton action="#{blogentryListerBean.olderBlogEntries}" value="Older Blog Entries"/> </h:form> BlogEntryListerBean is RequestScoped . This is the code I have in olderBlogEntries public String olderBlogEntries() { HttpServletRequest request = (HttpServletRequest) FacesContext.getCurrentInstance().getExternalContext().getRequest(); String id = request.getParameter("id"); if (id == null || id.equals("")) { id = "0"; } int

ClassNotFoundException: ClassUtils when trying to use MyFaces 2.1.10 with IBM WebSphere 7.0

会有一股神秘感。 提交于 2019-12-11 12:40:14
问题 Because of PrimeFaces bug with p:messages I've tried to upgrade the MyFaces version used with IBM WebSphere 7.0 from 2.0.7 to 2.1.10. Unfortunatelly, the myfaces-impl jar I've downloaded from myFaces page does not contain many utility classes from package org/apache/myfaces/shared_impl/util/ that were in the version 2.0.7 that was already in the project. The whole stack trace is: java.lang.NoClassDefFoundError: org/apache/myfaces/shared_impl/util/ClassUtils at com.ibm.ws.jsf.config.annotation

h:selectoneradio validation error [duplicate]

99封情书 提交于 2019-12-11 12:37:41
问题 This question already has answers here : Validation Error: Value is not valid (3 answers) Closed 3 years ago . Please, help me to tackle with next matter. I have error "requestAccess:selectAccess: Validation Error: Value is not valid" when submit form. <h:form id="requestAccess"> <h:selectOneMenu id="orgList" value="#{requestAccessBean.currentOrg}"> <f:selectItem itemLabel="-- select --" itemValue="null" /> <f:selectItems value="#{requestAccessBean.orgList}" /> <f:ajax event="change" execute=