jsf-2

Primefaces layout bug

拟墨画扇 提交于 2019-12-24 10:34:47
问题 I'm using Primefaces 3.0.M4 with JSF2. I created a page divided into some layout units. In one layout unit I have a selectOneMenu. When the page is rendered the select works just fine, but if I collapse the layout unit and restore it back, the select doesn't work anymore. I can see it, I click it but nothing happens. Is there a solution to this? 来源: https://stackoverflow.com/questions/7790277/primefaces-layout-bug

How can I improve this design that calls third party methods from JSF based front end

故事扮演 提交于 2019-12-24 10:02:45
问题 I want opinions and expert advice on design . I am developing an application using JSF2 and EJB3 and I am not using CDI. I have been given an API (jar) from an other team and there are three main methods in it. One searches the database and returns a list of cars and one returns a list of pushbikes and one returns list of boats. So basically we have three different lists of different vehicles. At the ui side user has a search form with three radio buttons one for each type of vehicle that

JSF1005: Cannot instantiate validator of type javax.faces.Bean

本秂侑毒 提交于 2019-12-24 09:59:57
问题 I am getting error below on every action after migrating from JSF 1.2 and RF 3.3 to JSF 2.1 and RF 4. Also my CSS styles is not as to be. I think my CSS problem can related to this issue. 23.Ara.2011 23:03:42 com.sun.faces.application.ApplicationImpl createValidator SEVERE: JSF1005: Cannot instantiate validator of type javax.faces.Bean I search on the net but couldn't find any solution. How is this caused and how can I solve it? 回答1: Your webapp's runtime classpath is dirty. This is a pretty

JSF2: How to initiate services at deployment [duplicate]

馋奶兔 提交于 2019-12-24 09:59:36
问题 This question already has an answer here : Using special auto start servlet to initialize on startup and share application data (1 answer) Closed 4 years ago . For university project I am developing a webapplication with JSF. My excercise is to do the frontend. A fellow studend is supposed to do backend stuff. Both parts are designed to be seerate applications. Both communicate through RMI. I want to open the connection once at deployment. I am at the point to settle up the connection now. I

ui:fragment rendered attribute not working after upgrading Facelets to JSF 2

守給你的承諾、 提交于 2019-12-24 09:58:54
问题 I am upgrading a project from JSF1.2/Facelets1.1 to JSF2.1 with built in facelets. The following no longer works and I don't know why. Both ui:fragments apparently evaluate to true, and both the link version and the plain text version are rendered: <ui:fragment rendered="#{rootcauseid ne rc.id}"> <a href="#{request.contextPath}/viewrootcause.jsf?rootcausenum=#{rc.id}">Root Cause #{rcRowCounter + 1}</a> </ui:fragment> <ui:fragment rendered="#{rootcauseid eq rc.id}"> <h:outputText value="Root

Primefaces FileUpload Extensions Filter

北城以北 提交于 2019-12-24 09:52:37
问题 I need to view only some list of extensions in the dialog not even choosing them as a possible variant of file. Using p:FileUpload. 回答1: Per the Primefaces Development Guide 2.2, allowTypes - Semi colon separated list of file extensions to accept. The following is an attribute of the fileUpload component tag. 来源: https://stackoverflow.com/questions/6343184/primefaces-fileupload-extensions-filter

JSF 2.0 Javascript and CSS table

試著忘記壹切 提交于 2019-12-24 09:49:41
问题 I'm new to JSF 2.0 and I'm having troubles with js/css events. Basically I have this html code: <!-- CSS goes in the document HEAD or added to your external stylesheet --> <style type="text/css"> table.hovertable { font-family: verdana,arial,sans-serif; font-size:11px; color:#333333; border-width: 1px; border-color: #999999; border-collapse: collapse; } table.hovertable th { background-color:#c3dde0; border-width: 1px; padding: 8px; border-style: solid; border-color: #a9c6c9; } table

Richfaces not working without old ViewHandler?

别来无恙 提交于 2019-12-24 09:27:35
问题 In JSF application we are using richfaces (Final.3.3.3). In pom.xml there is dependency on jsf-api-2.0.2 , jsf-impl-2.0.2 and jsf-facelets-1.1.15.jar , and in faces-config.xml there is <view-handler> configured like this: <application> <view-handler>com.sun.facelets.FaceletViewHandler</view-handler> </application> I know that in JSF2 you don't need jsf-facelets. You also don't need to configure <view-handler> in faces-config.xml. So I removed facelets jar and <view-handler> line from faces

JSF/PrimeFaces: Issue in pages with a layout

青春壹個敷衍的年華 提交于 2019-12-24 09:26:35
问题 I have a problem with my JSF page which uses PrimeFaces components. As it may get long and boring quickly, I try to be as brief as possible. Consider this managed bean: @Named(value = "testBean") @RequestScoped public class TestBean implements Serializable { private String test; public String update() { test = "Updated."; return "test"; } // Getters and Setters... } Here's the body of test.xhtml , with irrelevant content and styles removed: <h:body> <p:layout id="layout" fullPage="true"> <p

primefaces 3.5 uploadfile not working, i using netbean 7.2.1

邮差的信 提交于 2019-12-24 09:13:02
问题 the problem is with file uploader from primefaces web.xml <filter> <filter-name>PrimeFaces FileUpload Filter</filter-name> <filter-class>org.primefaces.webapp.filter.FileUploadFilter</filter-class> </filter> <filter-mapping> <filter-name>PrimeFaces FileUpload Filter</filter-name> <servlet-name>Faces Servlet</servlet-name> </filter-mapping> .xhtml </h:form> ... </h:form> <h:form enctype="multipart/form-data"> <p:fileUpload value="#{contratosMB.fileContrato}" mode="simple"/> <p:commandButton