I have a primefaces wizard which contain a simple form and a datatable. On clicking save, the record is displayed in the datatable which is just below the form. Now for the user to move on the next tab, he should at least enter a record such that he can proceed to the next tab. So I've done a check, on clicking next , it verifies if the list use to populate the datatable is empty or not. If not he can proceed. Now my problem is on clicking back ,validation is prompted. How can I prevent this? The validation …

Member Avatar
+0 forum 0

*08:30:43,413 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-9) MSC000001: Failed to start service jboss.module.service."deployment.crss-webui.war".main: org.jboss.msc.service.StartException in service jboss.module.service."deployment.crss-webui.war".main: JBAS018759: Failed to load module: deployment.crss-webui.war:main at org.jboss.as.server.moduleservice.ModuleLoadService.start(ModuleLoadService.java:92) [jboss-as-server-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8] at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.4.GA-redhat-1.jar:1.0.4.GA-redhat-1]at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.4.GA-redhat-1.jar:1.0.4.GA-redhat-1]at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [rt.jar:1.7.0_67] at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [rt.jar:1.7.0_67] at java.lang.Thread.run(Unknown Source) [rt.jar:1.7.0_67]* **Above is a part of my full stack trace** can anyone help me distinguish the error, i cant tell what is causing me this error.Thank you in advance. This is a maven project using hibernate, Jsf.

Member Avatar
+0 forum 0

i have a page with this code <?xml version='1.0' encoding='UTF-8' ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://xmlns.jcp.org/jsf/html" xmlns:f="http://xmlns.jcp.org/jsf/core"> <h:head> <title>Facelet Title</title> </h:head> <h:body> <h:outputText value="#{pros.handleIpn(request)}"/> </h:body> </html> and althought i can access this page throught internet ip:8084/path to the page when i insert this page to paypal ipn simulator it does not working. It says Please enter a valid URL. What i am doing wrong? paypal ipng is the only way that i can update my database when a new reservation is made right? Thank you

Member Avatar
+0 forum 0

I'm trying to add some mysql table columns to JSF table. And I'm getting error: /index.xhtml: The class 'logon.User' does not have the property 'description'. Please help User.java package logon; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.Table; @Entity @Table(name="users") public class User { private int id; public String name = null; public String surname = null; public String username = null; public String description = null; public String email = null; @Id @GeneratedValue(strategy = GenerationType.IDENTITY) public int getId(){ return id; } public void setId(int id){ this.id = id; } @Column(name = "Name") public String getName(){ …

Member Avatar
Member Avatar
+0 forum 1

I'm trying to show data from mysql database in JSF, but getting error: javax.servlet.ServletException: /index.xhtml @16,70 value="#{userBean.getUserList()}": The class 'com.dev.UserBean' does not have the property 'getUserList'. javax.faces.webapp.FacesServlet.service(FacesServlet.java:325) I'm using http://www.devmanuals.com/tutorials/java/jsf/database/viewdata.html tutorial UserBean.java package com.dev; import java.sql.Connection; import java.sql.DriverManager; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.util.ArrayList; import java.util.List; import javax.faces.bean.ManagedBean; import javax.faces.bean.SessionScoped; import com.dev.user.model.User; @ManagedBean(name = "userBean") @SessionScoped public class UserBean { public List<User> getUserList() { List<User> list = new ArrayList<User>(); PreparedStatement ps = null; Connection con = null; ResultSet rs = null; try { Class.forName("com.mysql.jdbc.Driver"); con = DriverManager.getConnection("jdbc:mysql://localhost:3306/mysql", "root", ""); String sql = "select * from user1"; ps= con.prepareStatement(sql); rs= ps.executeQuery(); …

Member Avatar
Member Avatar
+0 forum 1

I would like to know what means Java Web UI with html5 knowledge,flex,javascript,css? Do you have to use plain jsp jsf servlet and then use a MVC pattern? If so the views are made with html5 flex? If anyone knows more about this please explain it to me because I didn't find anything on the web. Thank you

Member Avatar
Member Avatar
+0 forum 2

Hello guys I have the following message (One or more resources have the target of 'head', but no 'head' component has been defined within the view.) showing on my jsf page and I am not sure of its root cause. Here is the code behind my page for the page. <?xml version='1.0' encoding='UTF-8' ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://xmlns.jcp.org/jsf/facelets" xmlns:f="http://xmlns.jcp.org/jsf/core" xmlns:h="http://xmlns.jcp.org/jsf/html" xmlns:p="http://primefaces.org/ui"> <h:head> <link href="/images/nbsz.ico" rel="shortcut icon" type="image/x-icon" /> <title><ui:insert>Login</ui:insert></title> </h:head> <body> <h:form> <ui:composition template="./Outertemplate.xhtml"> <ui:define name="mainTemp"> <h2 class="title"><a href="#">Login</a></h2> <div class="entry"> <h:outputText value="#{login.msg}" id="msgs"> <f:event type="preRenderComponent" listener="#{login.colorME}"/> </h:outputText><br/> Username &nbsp;<p:inputText value="#{login.username}" id="user"/><br/><br/> Password …

Member Avatar
+0 forum 0

Hie guys I am prety new to JSF and Iam working on some peice of code. I am using primefaces components and JSF backed beans. Here are a list of my questions; 1. Is there a way of running a method each time a page loads. 2. During page load how do I check that the page resulted from an initial request or its a postback. 3. i there a way to dynamically change component's properties such as enabled/disabled, change the label of the text or hidding it without using javascript Your Help will be greatly appreciated. Yours George Tsiga …

Member Avatar
+0 forum 0

Hi i need some help on jsf/primefaces layout. i created 3 tabs, but the labels and text box in tab1 is not displaying.instead it is being displayed in tab2, and content of tab2 in tab3... I would like to know why am having this issue and how to solve this? Below is my createCustomer.xhtml. NOte: the same layout i did in editCustomer.xhtml(with 3 tabs) and it works fine. <p:panel header="#{customermsgs['customer.title']} Details" style="margin-top:10px"> <p:messages /> <h:panelGrid id="main" columns="2" styleClass="grid" columnClasses="label,value"> <p:growl id="growl" showDetail="true" /> <p:tabView id="tabView" dynamic="true"> <p:ajax event="tabChange" update=":form:growl" /> <p:tab id="tab1" title="Employer Details"> <h:panelGrid id="detail" columns="2" styleClass="grid" columnClasses="label,value"> <h:outputText …

Member Avatar
Member Avatar
+0 forum 2

hi am having problem to deploy my java web application. I'm using myEclipse for spring 10 and tomcat 7. am having these errors: org.apache.catalina.core.StandardContext startInternal SEVERE: Error listenerStart org.apache.catalina.core.StandardContext startInternal SEVERE: Context [/projectname] startup failed due to previous errors Anyone know how to solve this issue?

Member Avatar
Member Avatar
+0 forum 2

hi ... am trying to use tiles-def.xlm in JSF I have configured face-config.xml and web.xml face-config.xml <application> <view-handler>org.apache.myfaces.tomahawk.application.jsp.JspTilesViewHandlerImpl</view-handler> </application> web.xml <context-param> <param-name>tiles-definitions</param-name> <param-value>/WEB-INF/tiles-def.xml</param-value> </context-param> am getting error Cannot find fully qualified class: org.apache.myfaces.tomahawk.application.jsp.JspTilesViewHandlerImpl in face-config.xml please help me to find solution.

Member Avatar
Member Avatar
+0 forum 1

This is error its throwing : javax.servlet.ServletException: /dtl.xhtml @13,75 value="#{registerBean.reteriveData()}" Error Parsing: #{registerBean.reteriveData()} javax.faces.webapp.FacesServlet.service(FacesServlet.java:606) org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:393) dtl.xhtml <h:dataTable value="#{registerBean.reteriveData()}" var="rb"> <h:column> <f:facet name="header"> <h:outputText value="Model" /> </f:facet> <h:outputText value="#{rb.fname}" /> </h:column> </h:dataTable> registerBean.java public List reteriveData() { Connection con = null; List list = null; try { DBConnection db = new DBConnection(); con = db.getConnection(); PreparedStatement ps = con.prepareStatement("select * from regtbl"); ResultSet rs=ps.executeQuery(); while(rs.next()) { registerBean rb=new registerBean(); rb.setFname(rs.getString(3)); list.add(rb); } } catch (SQLException ex) { Logger.getLogger(registerBean.class.getName()).log(Level.SEVERE, null, ex); } return list; } Please help to solve it ..... i am using tomcat/mysql

Member Avatar
Member Avatar
+0 forum 1

I did a page for adding and viewing activities in a project. The table linked with that page has an UNIQUE constraint for the activity code. As a result of which when i add a new activity with existing Activity code, it is not accepted and gives a runtime error like this > Error given by Compiler Internal Exception: org.postgresql.util.PSQLException: ERROR: duplicate key value violates unique constraint "activity_activity_code_key". Is there any way with wihich i can implement this as a custom exception so that it gives a error message to the user that " activity code already exists". I'm attaching …

Member Avatar
Member Avatar
+0 forum 1

Actually i'm planning to make a user registration page over swings and i decided that there should be a constraint that people with age below 21 cannot register. I want to make a validation of the date input of the user by calcualting the age and checking with if loop. For example : if my users input is: 21/06/2006 the code should extract the year from the input and from the current date, calculate the age and verify it with If loop. Is it possible to exrtract the year from the input... Any Built-in functions??? Pls help in this context …

Member Avatar
Member Avatar
+0 forum 12

I am creating a web-based app written in JSF and Java. One functionality of the system is that the user can select a text file from his pc and import it in order to get the data inside the text file. Do you have any idea on how can I achieved that? Thanks!

Member Avatar
+0 forum 0

Okay I am trying to get my program to read the users input as username and password and match it with my database if it is valid then i want it to move them on to the next page. Problem is i dont know how to validate and once validated move to new page I am using: Netbeans 6.0 Derby Database Here are my codes page1.jsp: [CODE]<?xml version="1.0" encoding="UTF-8"?> <!-- Document : Page1 Created on : Jun 16, 2011, 1:30:26 PM Author : sa456p --> <jsp:root version="2.1" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:webuijsf="http://www.sun.com/webui/webuijsf"> <jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/> <f:view> <webuijsf:page binding="#{Page1.page1}" id="page1"> <webuijsf:html binding="#{Page1.html1}" …

Member Avatar
Member Avatar
+0 forum 1

I'm newbie to JSF and i am confused on this portion written by Cay Horstmann in the Core Java server faces: ======================================================================================= The code: [CODE]public class QuizFormBean { private UIOutput scoreComponent; private UIInput answerComponent; // PROPERTY: scoreComponent public UIOutput getScoreComponent() { return scoreComponent; } public void setScoreComponent(UIOutput newValue) { scoreComponent = newValue; } // PROPERTY: answerComponent public UIInput getAnswerComponent() { return answerComponent; } public void setAnswerComponent(UIInput newValue) { answerComponent = newValue; } ... } [/CODE] ===================================================================================== This is the 2nd edition of this book. When you use a backing bean, you need to wire up the components on the form …

Member Avatar
+0 forum 0

jsf page: [CODE] <%@page contentType="text/html" pageEncoding="UTF-8"%> <%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%> <%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <f:view> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <title>JSP Page</title> </head> <body> <h:form> <center> <br><br><br> <h:dataTable id="dt1" value="#{tableBean.perInfoAll}" var="item" bgcolor="#F1F1F1" border="10" cellpadding="5" cellspacing="3" rows="4" width="50%" dir="LTR" frame="hsides" rules="all" summary="This is a JSF code to create dataTable." > <f:facet name="header"> <h:outputText value="This is 'dataTable' demo" /> </f:facet> <h:column> <f:facet name="header"> <h:outputText value="First Name" /> </f:facet> <h:outputText style="" value="#{item.firstName}" ></h:outputText> </h:column> <h:column> <f:facet name="header"> <h:outputText value="Last Name"/> </f:facet> <h:outputText value="#{item.lastName}"></h:outputText> </h:column> <h:column> <f:facet name="header"> <h:outputText value="Username"/> </f:facet> <h:outputText value="#{item.uname}"></h:outputText> </h:column> <f:facet name="footer"> <h:outputText …

Member Avatar
+0 forum 0

Hi, I'm writing a sample spring web flow app with jsf as view technology. I guess I've got everything right in terms of configuration. However when I click on the "login" commandbutton of the jsf page, the flow does not go the next view (Welcome). Am I missing something ? [CODE] main-flow.xml <flow xmlns="http://www.springframework.org/schema/webflow" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema/webflow http://www.springframework.org/schema/webflow/spring-webflow-2.0.xsd"> <view-state id="Login"> <transition on="login" to="Welcome" /> <transition on="cancel" to="Cancel"/> </view-state> <end-state id="Welcome" /> <end-state id="Cancel" /> </flow> Login.xhtml <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"> <h:head><title>Spring Web flow with JSF</title></h:head> <h:body> <h5>Please login to continue</h5> <h:form> <h:panelGrid columns="2"> <h:outputText value="Username"/> <h:inputText value="#{loginBean.username}"/> <h:commandButton id="loginButton" action="login" …

Member Avatar
+0 forum 0

I am wanting to have a select box populate from a database query based on the information pulled from another select box as the user chooses it (ie a user chooses a state and the city choices populate or something like that). I am using JSP, Servlets and Beans. Seems that I need to us JSF, but I was wondering if there is another way or better way. Thanks for the thoughts.

Member Avatar
Member Avatar
+0 forum 2

Hi, I need to show the loading status(wait status) in cursor for all actions. If i perform some action([B]Login[/B]), then go to the backend and perform some process and it will return some value. Here this whole process will be taken some times. Now that time i want to show processing status (wait status) in cursor. I mean, after i press Login button , i want to show that loading status(wait status) in cursor... Similarly, If i do any action in page, then i need to show the loading status...That is, every action in my application show the loading status. …

Member Avatar
Member Avatar
+0 forum 1

Hi, I have problem in rich:hotkey when using JQuery i have used rich:hotKey for h:inputText in my jsp page. And also i wrote jQuery for get the textBox value. When i use jquery, that time rich:kotKey not worked [CODE] <%@page contentType="text/html" pageEncoding="UTF-8"%> <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %> <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %> <%@ taglib uri="http://richfaces.org/a4j" prefix="a4j" %> <%@ taglib uri="http://richfaces.org/rich" prefix="rich"%> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <f:view> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>JSP Page</title> <script type="text/javascript" src="../../resource/js/jquery.min.js"/> <script type="text/javascript"> function typedName() { //Get The value using styleClass id var userName = jQuery.trim($('.textBox').val()); alert("Name is : " …

Member Avatar
Member Avatar
+0 forum 1

Hi all! i'm developing a web application in jsf 2.0 with GlassFish server.Database is MySql.Https protocol. My problem is that when i request for a page in my application sometimes the browser displays the source code of that page and not the html view for the user. It is not displayed all the times. Only sometimes it gets displayed like that.I cant trace the reason for it. Please anyone help me to find the error and solve the issue. Thanks in advance.

Member Avatar
+0 forum 0

Hi, I was wondering if there's a framework that can help me with the following: I currently have regex checks on html input fields that work 100%, I would like to also have a check to the database for duplicate records so that if the user enters an ID that is already taken, an alert will pop up and inform the user of this. --It would be easy to do it on the serverside, however, I need to do it once the page has already loaded, therefore, at runtime. Any suggestions? Perhaps open source code is out there for this …

Member Avatar
Member Avatar
+0 forum 1

Hi! When I click on h:outputLink after using the browsers back button I get a viewExpiredException. Som info of my setting in web.xml: org.apache.myfaces.SERIALIZE_STATE_IN_SESSION true javax.faces.STATE_SAVING_METHOD client How can I fix this or go around the problem. I am using jsf 1.2.

Member Avatar
+0 forum 0

The End.