jsf-1.2

#{facesContext} EL expression not resolved at runtime

僤鯓⒐⒋嵵緔 提交于 2019-12-23 19:38:03
问题 I am working on JSF 1.x On an example stated in JavaServer Faces in Action. My EL expression of 'Faces Context' is not executing at run time in command button on retrieving the image. My Project Structure is as follows: I have not used any Java code in this example, And it contains only one Login Page. The login.jsp is as follows: <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%> <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%> <f:view> <html> <head> <link rel="stylesheet"

Cannot convert 4/23/12 12:00 AM of type class java.util.Date to class java.sql.Date

▼魔方 西西 提交于 2019-12-23 12:32:04
问题 I'm migrating my project from WebSphere 7 to WebSphere 8 and I'm using JSF 1.2. I was facing a problem with IBM JSF/html_extended tags and also standard converters, which are mainly JSF 1.2 core components. I'm also updating my Java EE version from 5 to 6 (which might not be the reason). Finally, there is also a component tree given. Below is my stack trace: javax.faces.component.UpdateModelException: org.apache.jasper.el.JspELException: /sc40/NewContract.jsp(130,5) '#{pc_NewContract

How to pass a parameter to an included page with JSF 1.2

有些话、适合烂在心里 提交于 2019-12-23 02:32:21
问题 Is this possible to pass a parameter to an included page in JSF1.2 environment? I have a page a.jsp in which b.jsp is included twice (I tested all jsp:include, a4j:include, c:import) once at top of the page and once at the bottom. I want to figure out in b.jsp if it's now including in top or in bottom of a.jsp. BTW, I do not have facelets. 回答1: There the <jsp:param> tag is for. E.g. <jsp:include page="/WEB-INF/include.jsp"> <jsp:param name="position" value="top" /> </jsp:include> ... <jsp

java.lang.NoClassDefFoundError: Could not initialize class org.apache.poi.POIXMLDocument on Jboss 5.0 EAP

微笑、不失礼 提交于 2019-12-22 18:39:18
问题 Getting following exception in Jboss 5.0 EAP but it work fine in JBoss 5.1 GA. we are using POI 3.7 and jars included are poi-3.7.jar poi-ooxml-schemas.jar poi-ooxml.jar The stack trace is ERROR [org.apache.catalina.core.ContainerBase.[jboss.ueb].[localhost].[fesbcon-Fig].[Faces Servlet]] 3;13;44.4g3pM (http-0.0.0.0-8280-1) Servlet.service() -For servlet Faces Servlet threu exception java.lang.NoClassDe-FFoundError: Could not initialize class org.apache.poi.POIXMLDocument at org.apache.poi.ss

JSF 1.x generic exception handling

霸气de小男生 提交于 2019-12-20 10:12:10
问题 If I have an exception in my business layer (e.g. a SQL exception in my JDBC connection bean), how can I propagate it with a custom message to a global error.jsp page? 回答1: JSF 1.x doesn't provide any implicit error handling of this type, though you can redirect to an error page using navigation rules (assuming a form post)... <navigation-case> <description> Handle a generic error outcome that might be returned by any application Action. </description> <display-name>Generic Error Outcome<

@EJB annotation vs JNDI lookup

有些话、适合烂在心里 提交于 2019-12-18 17:25:14
问题 Is there any situation where it's better to use JNDI than to inject a stateless session bean using the @EJB annotation? We're using JSF 1.2 with Sun Application Server 9.0_01. Our team is debating which approach is better when using SLSBs in a Managed Bean. I've read the following questions, but was wondering if there was a situation where lookup is preferred. EJB3 - obtaining bean via injection vs lookup - what are the differences, implications, gotchas? @EJB injection vs lookup -

Iterating over a list in JSF 1.2

China☆狼群 提交于 2019-12-18 07:00:07
问题 Is there any way of iterating over a list in JSF 1.2 without using any third party components? I know I can do it using Tomahawk. I also know that it can be done using JSTL, but I am keeping that as my last resort. Also I cannot use <ui:repeat> since we are using JSF 1.2. Is there any elegant way like <ui:repeat> to do it in jsf 1.2? 回答1: The only JSF 1.2 component which can iterate over a List is the <h:dataTable>. In JSP, the only other "standard" (i.e. not "3rd party") tag which can

How to Dynamically add a row in a table in JSF?

假如想象 提交于 2019-12-17 07:38:02
问题 In my application i need to add a row on a click of a button and this button will be in all the rows. Need help to do this? Item Class public class Item { public Item() { } private String value; public Item(String value) { this.value = value; } public void setValue(String value) { this.value = value; } public String getValue() { return value; } } Manage Bean Class public class MyMB { private List<Item> list; public void addItem() { // JSF action method list.add(new Item("Default")); Iterator

why a:commandLink's action attribute works but h:commandLink's does not?

隐身守侯 提交于 2019-12-13 15:37:58
问题 I had a very simple task today that I needed help with. First let me explain my environment. We are on a Java/Hibernate/SEAM/Facelets/JSF/RichFaces & A4J setup.. and I don't know to much about it. I work with it when all of the work on the old asp platform is complete. SO I had something like this (I just cannot remember if I had () after stockCheck.. I am home now): <h:commandLink value="Submit" action="session.stockCheck()"/> The stockCheck() method would NOT run though! It does not return

How to force the build phase in a JSF 1.2 page using JSTL?

左心房为你撑大大i 提交于 2019-12-13 13:07:17
问题 I am making use of JSTL tags in my JSF application. With certain actions, I need the component tree to be rebuilt as if it was an initial build. My current symptoms are incorrect object to component associations, duplicate ids, and other issues with stale components. This is using a c:foreach (cannot use a repeat tag, see example link) tag which is used in the build phase. My understanding is that it is possible to force a rebuild, but I haven't been able to find where or how that occurs. I