1
vote
1answer
12 views

f:convertDateTime + p:column + java.sql.Timestamp not being converted

in the same JSF page using primefaces 4, I have <p:outputLabel id="ts" value="#{issueMB.issue.ts}"> <f:convertDateTime type="both" pattern="dd-MMM-yy hh:mm"/> ...
0
votes
1answer
46 views

identifier 'sqlBean' resolved to null

I'm currently working on an sql Class for JSF website. But I've got this annoying error while trying to access my class : action="#{sqlBean.createAccount}": Target Unreachable, identifier 'sqlBean' ...
1
vote
0answers
17 views

Primefaces dynamic image in Datatable

I already found some resource : Displaying images from MySQL database in JSF datatable Display image from database with p:graphicImage But my development environment is a little different. JSF ...
0
votes
0answers
21 views

Primefaces fileUpload valueChangeListener doesn't trigger method

What am i missing here? valueChangeListener doesn't trigger method. Screen Code: <h:form> <p:fileUpload id="filePath" writeToMB="relationCompanyFileReferenceMB" ...
0
votes
0answers
20 views

Entity object is lost when submitting the form JSF

I have a form : <f:metadata> <f:viewParam name="ssId"/> <f:viewParam name="tId"/> <f:viewParam name="eId"/> <f:viewAction ...
0
votes
0answers
33 views

/myPage.xhtml @26,75 value=“#{var.attribute}”: Property 'attribute' not found on type com.sources.Class

I'm having some issues I can't solve. I'm doing a h:dataTable, there are some attributes I can access and others I don't. Don't know why... Here is the code : myPage.xhtml : <!DOCTYPE html PUBLIC ...
0
votes
1answer
36 views

How to display system date on the webpage in JSF?

I want to display the current locale system date in a jsf page. I'm having the below code but it's not working. <p:column styleClass="columnA">SOP Date</p:column> <p:column ...
0
votes
1answer
22 views

jsf. How to post backbean object from jsf form to javascript

I am using Primefaces/JSF in combination with pure javascript tools in order to implement an image viewer & annotator. Image viewer is built upon the OpenLayers framework. When the user annotates ...
0
votes
1answer
31 views

How to interact with (MySQL) Databases in JSF

I come from PHP and am trying to build a Web Application with JSF. I really like the simplicity of some tasks with JSF, (for instance the use of Ajax) but when it comes to database integration I am ...
0
votes
2answers
46 views

jsf variable lost value

I have a managed Bean called bean1.java that has a boolean var called found. The variable says if a client has been found or not. The bean has a method validate() that goes to the DB and checks if ...
0
votes
0answers
10 views

how can I deploy a maven jsf application into weblogic12c?

I´ve a jsf application that I need to deploy into weblogic 12c. When I deploy it in a windows server it works perfectly but if I deploy it in a linux server I get the next error: could not find backup ...
-1
votes
0answers
25 views

Empty files exported with primefaces DataExporter

I'm working with primefaces 4.0, poi 3.4 and itext 2.1.7 and I have as a exportation result an empty file (pdf or excel). Is a form with a table inside ant at the end two dialogs, one to delete and ...
0
votes
2answers
30 views

Infinite loop when trying to login using Servlet Filter in JSF

I am trying to create a login application using JSF and servlet filter, but when user logs in nothing happens. It redirects to login page again. Here is the project directory: Here is web.xml ...
0
votes
2answers
35 views

Logout redirects user to login page again after user tries login again when session timeouts

In order to avoid session timeout in login page and the ViewExpiredException, I switch set state saving to client using: <context-param> ...
2
votes
0answers
41 views

How access to content of dynamic page in JSF?

I have a xhtml file that initialization it with ui:repeat tag in realtime.all tags of this page placed under ui:fragment tag. <edges> <ui:repeat value="#{graphInfoBean.edges}" ...
0
votes
0answers
17 views

iviewer jquery conflict in Primefaces?

When I use ivewer in my JSF application, I get jquery conflict problem. All of my <p:calendar..> input do not work, as below image. I think, there might be others problem with other tag like ...
0
votes
1answer
27 views

p:selectonemenu with custom converter JSF

i know that this question is asked before and i found a lot of tutorials and questions which ask about this case but i look for a specific and functional answer , i use JSF 1.2 and primefaces 3.3 and ...
0
votes
2answers
21 views

How to use <h:commandButton action=“#{method here}” />?

I'm willing to call a method like this : <h:commandButton value="Register" action="#{account.action}"/> With a class like follow : package com.sources; public class Account { private ...
0
votes
1answer
67 views

Why doesn't Primefaces refresh my button?

I'm building an application that permits users to manage a task. The task monitoring screen can be accessed by two users at the same time. Each user can see if the task is currently running and can ...
0
votes
0answers
19 views

JBoss 7.1.1 + Jasper Report 5.5 + CentOS 6 ClassNotFoundException: net.sf.jasperreports.engine.fill.JRBaseFiller

When I create jasper report using jaspersoft studio 5.5 and compile it into binary and plug into my webapp, it runs smoothly in my localhost (Win 8.1 + Eclipse Kepler and Mac OSX + Eclipse Juno) by ...
1
vote
1answer
17 views

creating dynamic selectOneRadion using a bean

I need to build an app of Quiz that contains questions (each question has 2 possible answers) I stored some questions in database. once you select an answer and click "Next", you'll see the next ...
0
votes
1answer
30 views

Problems with JasperReports

I'm creating a JSF 2.0 project with JasperReports, and when i try generate a report i get this error: java.lang.ClassCastException: cannot assign instance of ...
0
votes
0answers
31 views

Strange behavior switching from JSF to JSP2 EL

I am learning JSF and was trying to implement a small exercise on EL (with JSF page and JSP2). i found a strange behavior and completely clueless of the reason behind it. Please find my code below and ...
0
votes
1answer
27 views

Maven and JSF: Dependency with native code

I have a JavaServer Faces project set up with maven and I have a dependency with native code. The problem is, that only one instance of the app can exist, as the native library would be loaded by a ...
1
vote
1answer
28 views

Glassfish 3.X, programmatically handle the termination of arbitrary HTTPSession

Consider the following scenario. I've a Java EE web application (JSF 2.2, JPA, EJB 3.0 even if the framework doesn't matter here) deployed on Glassfish 3.1.1 with a login protected area, which I'm ...
0
votes
0answers
37 views

Java JSF java.lang.IllegalStateException: PWC4016: Request.getParts is called without multipart configuration

I am using JSF and EJB 3.0 for development. When I loop through the Request.getParts() I seem to get the following Exception: java.lang.IllegalStateException: PWC4016: Request.getParts is called ...
1
vote
1answer
25 views

how to make a jsf @ManagedBean also a @WebService

I want to make a jsf managed bean also a web service simply by adding the @WebService annotation above the class definition, and @WebMethod annotations to the managed beans methods. This doesn't ...
0
votes
0answers
23 views

Command link without <h:form>

At the moment i am porting an existing website written in php to Java server faces. The website uses Twitter Boostrap 3. I have a dropdown in the navbar with a link to logout. I created an ...
-1
votes
2answers
30 views

JSF bigger sample codes/projects?

Does somebody know about resource containing some bigger JSF sample projects? I know about lots of one-bean/one-class/very-small samples (e.g. in Java EE Oracle tutorial), but I didn't find any bigger ...
0
votes
0answers
26 views

javax.faces.DATETIMECONVERTER_DEFAULT_TIMEZONE_IS_SYSTEM_TIMEZONE

When I add: <context-param> <param-name>javax.faces.DATETIMECONVERTER_DEFAULT_TIMEZONE_IS_SYSTEM_TIMEZONE</param-name> <param-value>true</param-value> ...
0
votes
1answer
44 views

java.lang.ClassNotFoundException - org.openrdf.repository.config.RepositoryConfigException in JSF

I am trying to run a JSF application on Tomcat 6 which is only for connecting to the Sesame repository. I added all the external Jar files needed for Sesame and the the project is created as Dynamic ...
0
votes
0answers
24 views

How to programatically create JSF views using FreeMarker?

I am trying to create a source code generator for JSF web projects using FreeMarker. The project is still in its infancy, the source code is available at ...
-1
votes
0answers
29 views

How can I create a database for a JSF project? [closed]

Is there an easy way to generate a database for the project in JSF? How can I generate a database in JSF? Is there a framework or template with a ready database for a online shop in JSF?
0
votes
1answer
62 views

Jsf El Expression getter and setter ArrayList

i m using inside the backing bean an private ArrayList<String> myList; init(){ myList = new ArrayList<String>(); myList.add("XYZ"); } public ArrayList<String> getMyList(){ ...
0
votes
2answers
43 views

How to use outcome in JSF 2x and keep same url in address bar?

I am quite new in developing website with JSF and PrimeFaces, I spent a lots of hours to research about my problem before post here. Thanks to everyone who spent time to read my question. Well, I'm ...
0
votes
0answers
13 views

Trying to use a Converter in a Composite Component

I am trying to use a Converter inside my composite component, where the Conveter comes from a bean that I pass to this component, but I get the following error: <f:converter> Default behavior ...
1
vote
1answer
22 views

Primefaces 3.5 How to export invisible dataTable rows with dataExporter

Im using primefaces 3.5 and I have a p:dataTable with some rows and data and i would like to export these data into a xls file or something. I used the code: <p:commandButton id="exportBtn" ...
0
votes
1answer
36 views

Button in dialog doesn't enter in function declared in bean

The problem is that when in the dialog i click the button with value "Add" the function "Add" in the bean isn't called( i noticed it with system.out) and i don't understand why. Is that some ...
0
votes
1answer
18 views

PrimeFace Datatable Implementation Poblem

I am trying to add run datatable project my class file package org.springframework.webflow.samples.booking; import java.io.Serializable; import java.util.ArrayList; import java.util.List; import ...
0
votes
0answers
15 views

Dynamic menu:open menu using hotkeys

I have dynamic menu defined like: <menu> <submenu id="menuFile" label="File" icon="ui-icon-document"> <menuitem id="menuPrint" value="Print" action="# ...
0
votes
1answer
63 views

Primefaces / JSF: selectOneMenu value is not set, ajax listener not called

I am using Primefaces and JSF to develop this frontend. My issue is that one of my selectonemenus never sets its value binding, "selectedGroup", so the second dropdown is never populated. My backing ...
-1
votes
1answer
22 views

h:commandButton not redirecting to other jsf page

Hello I have two XHTML pages: 1-login.jsf 2-menu.jsf i m trying to go from page1 to page2 by clicking on a button but it doesnt work.Here is my code: login.jsf <!DOCTYPE html PUBLIC ...
0
votes
1answer
17 views

inline define for include in jsf

It's possible to do next by jsf facelets? I want to extend reusable.xhtml with additional html columns reusable.xhtml <ui:composition> <table class="table table-striped table-hover ...
0
votes
0answers
24 views

How to @Autowire a BeanFactory in a Managed Bean(JSF)

When I need a BeanFactory in a bean managed by Spring, I use: private @Autowired BeanFactory factory; How can I achive this in a Managed Bean? I have tried: @ManagedProperty(value = ...
0
votes
0answers
18 views

IE 10 JavaScript error when we use <a4j:support> tag of JSF 1.2 and rich-faces 3.2.2GA.jar.

my application is build using JSF 1.2 and rich-faces 3.2.2GA. When I am accessing the application on IE10, <a4j:support> is not able to render the UI and its throwing the below error in AJAX.js ...
2
votes
1answer
26 views

JSF Phase Listener redirect form not iframe

I have this PhaseListener that checks whether the user is still logged in or not after restoring a view. If the session has expired, then I want the entire form to redirect to the /login.jsf page but ...
0
votes
0answers
31 views

Adding beans.xml Breaks Input File Uploading

I am building a web application that uploads files and am trying to add CDI features that require the use of a beans.xml file. The problem is that when I add a beans.xml file to the webapp it breaks ...
0
votes
1answer
34 views

how to add a primefaces contextmenu to datatable header?

i'm using primefaces and i want to add a ContextMenu only for datatable header, but i'm using the columns component to handle the dynamic columns generation, i know how to add a Contextmenu for every ...
0
votes
1answer
38 views

JSF wrapping the <h:outputLabel> text w.r.t to starting index of the its own in next line

I have a an outputlable <h:outputLabel id="label1" value="Project Name"/>.Next to that I have another <h:outputLabel id="label2" value="#{XXBean.details.projectName}"/> Both labes are ...
0
votes
0answers
20 views

java com.microsoft.sqlserver excpetion

I have developed a java website in jsf technology. In order to fullfil some tasks i need to connect and retriece data from an MS SQLServer 2008. The application works perfeclty, at least i think, but ...

15 30 50 per page