Hi,
Does any one have an idea how to generate and populate nested tables with JSF.
An example of the expected output:
<table align="center" width="100%" border="1">
<tr>
<th colspan="6" scope="col">School
</th>
</tr>
<tr>
<th colspan="6" scope="col">Time
</th>
</tr>
<tr>
<th colspan="6" scope="col"> Seme...
Hi all,
Imagine a text box, bound to a ManagedBean:
<h:inputText id="name" value="#{mb.name}"/>
I would like to default the field to a value.
I know I can set the value in the ManagedBean at construction time, but that doesn't work for me as I use the same ManagedBean as a backing bean in different xhtml pages. And I don't want the...
Hi all,
Can somebody recommend any framework to facilitate CRUD development in JSF 2.0?
Aspects I value most:
As lightweight as possible; limited dependencies on third party libraries
Support for an evolving domain model
Limited need for repetitive coding; support for scaffolding and/or metaannotations
Any hints highly appreciated...
Hello friends I am getting problem when injecting JSF bean into a bean that extends StoredProcedure abstract class...
The Bean return null values...
...
I was working in Netbeans IDE and switched to Eclipse.
I created a simple JSF 2.0 based using wizard in eclipse. The complete file is this.
index.jsp
<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@ taglib prefix="h" u...
By default JSF appears to be very 'stateful'. I need to allow people to use our application with multiple tabs doing many things in different parts of the application.
I can't seem to find decent instruction on making this happen without a whole lot of re-engineering.
We do not currently use ICEfaces, but I just found this in the ICEfa...
I am using JSF 2.0, Spring, Hibernate and I need to implement Log4J for centralized error catching. Can anybody help?
...
Hi,
On a WAS 7, I deployed my EAR with a single WAR in it. The EAR classloading mode is set to PARENT_LAST, and the WAR classloading mode is also set to PARENT_LAST. The WAR's WEB-INF/lib has the Mojarra JSF 2 RI, and the Unified EL 2.1 jars.
Despite all this, when the application starts, it tries to load some MyFaces stuff, from the i...
Possible Duplicate:
How to implement AOP with Spring
i am using spring for hibernate only not as spring mvc and i am using jsf2.0 and now i need to implement AOP but I am not getting at what to do i am not following Spring MVC..
...
I have a many-to-many relationship between the two entities called events and artists, both are annotated to be lazy loaded. When I load an artist, I initialize its events because the session will be closed afterwards using
Hibernate.initialize(artist.getEvents());
A test in pure Java works fine and I can access the events and its pro...
Hi,
I'm having a simple form on which I want to check some basic functions - edit, delete, add. The web bean (supplier) has 4-5 attributes - id, name, surname and comment. After I load the view, I can invoke some web bean methods like add, delete and stuff. I use a simple commandButton as a submit component:
<tr>
<td><h:commandButton ...
In analysing the performance of a JSF2 (Mojara) page returning 200 tabular rows I'm seeing 50% of the time taken to respond being in just rendering. For the 4 seconds on a dev box, 2 are purely down to the rendering of this page.
What is the best path to improve performance?
(I've been told to replace ui:repeat with jstl code?)
Due t...
I installed M2Eclipse Plug-In for Eclipse. I'm not very experienced with maven. My Problem is that I can't download two Artifacts:
13.07.10 08:53:30 MESZ: Build errors for test; org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project test: Missing:
----------
1) com.sun.faces:jsf-api:jar:2.0.0-b13
...
This code, a test case for a custom component using JSF2
Just for the record, the file: panel.xhtml , located at /resources/panels/panel.xhtml
test.xhtml:
<head>
</head>
<body>
<panels:panel/>
</body>
</html>
Returns the following html:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/...
I'm using Java EE6 and JSF for making a simple CRUD application.
In many of my JSF pages, I have a selectOneMenu for the user to select an existing item. For example, if the user is adding an "Exam", he/she can choose a "Department" from the combo-box, since they have a one-to-many relationship.
The problem is that whenever a new Depar...
Hi folks,
I'm designing the template for my new JSF2.0 App and I want to use the resources folder to store my css-file. Now I started to create a template-file, but I don't know how to link the css.
I tried:
<link rel="stylesheet" type="text/css" href="resources/css/style.css"/>
..but didn't work
Can somebody help me, pls.
THX
<...
In a JSF backing bean (Managed Bean, Weld Bean, doesn't matter), i can get the context path the client is on by calling
FacesContext ctx = FacesContext.getCurrentInstance();
String path = ctx.getExternalContext().getRequestContextPath();
This gives me the path the client currently accesses, like /myapplication.
Is it also possible to...
Hi all.
Have a quit strange behaviour of f:ajax.
Scenario:
registration form with 2 step registration
1. user fill base info (name, email, phone) and send it
- email sending to user
- user confirm his email
- by clicking on link he comes to the same page but now he have many fields to fill
2. user fill all fields, but f:ajax not ...
Hi,
I have a calendar, editor, fileUpload and a dataTable primefaces controls on a jsf facelet.
Code is as follows,
<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns:ui="http://java.sun.com/js...
On my JSF2 page, i'm using internationalized error messages.
In my backing bean, i'm putting the messages into the flash Scope:
flash.put("error", exception.getType());
On the page, this string gets translated this way:
<h:outputText value="#{bundle[flash.error]}"/>
Works fine.
NOW i want to be also able to put (an arbitrary num...