facelets

What is the namespace to use for adding JSP taglib support into facelets pages?

Something like the following xmlns:jsp="http://java.sun.com/JSP/Page" seems to not work, any hint? alternatively how can I inject beans into JSF lifecycle flow at startup without the filter usage? ...

With facelets what is the equivalent to fmt:formatDate?

I am converting a JSP web page to facelets view handler. What is the equivalent to fmt:formatDate etc.? I know that it isn't supported. But is there an alternative? A third level implementation? ...

Troubles Iterating Over A HashMap with JSF, MyFaces & Facelets

Hi all, I'm having some trouble looping over a HashMap to print out it's values to the screen. Could someone double check my code to see what I'm doing wrong. I can't seem to find anything wrong but there must be something. In a servlet, I am adding the following to the request: Map<String, String> facetValues = new HashMap<String, ...

MyFaces to JSF RI migration issue

I'm migration from MyFaces 1.2.6 to JSF RI 1.2. My application also use Facelets, Tomahawk and Richfaces. Using MyFaces 1.2.6, it works without problemas. Using JSF RI 1.2, I got some problems. It keeps printing this error: This page contains the following errors: error on line 141 at column 36: xmlParseEntityRef: no name Below is a ...

ForEach and Facelets

Hello, My managed bean : public List<String> getLiQuickNav(){ System.out.println("I'm here..."); List<String> l = new ArrayList<String>(); l.add("toto"); l.add("tata"); l.add("titi"); return l; } My forEach : <c:forEach var="categorie" items="#{mainControleur.liQuickNav}"> <h:outputLabel value="${categorie}"/> </c:for...

How to create in-page configuration. Via c:set?

I've got a web application that I need to be able to configure parts of from a JSF page. So for example, imagine my application was split into several smaller parts each with a folder/file structure like below: /partname /config config.xhtml /template generaltemplate.xhtml search.xhtml results.xhtml Se...

Is it possible to override facelets.development for different environments?

We'd like to set facelets.development to false to suppress stack traces in non-development environments, but we'd like to have it set to true in dev for debugging. Our deployment process dictates one CI build that is migrated through the environments up to production, so we can't use an approach that requires rebuilding the app / rewrit...

Available NetBeans tools for JavaServer Faces (JSF/Facelet) support

Which NetBeans plug-ins or tools would you recommend for JSF development? ...

How can I create an error handling page in ICEfaces (with Facelets)?

I need a little help creating a catch-all error handling page in my ICEfaces application. I'd like to present a user-friendly message along with an exception stack trace. I can redirect to an error page using the following directive in web.xml: <error-page> <error-code>500</error-code> <location>/error.xhtml</location> </error-page...

Getting the component tree from UIViewRoot with Facelets as view

Hi everyone, I have an application that was coded with JSPs and now we are in the process to migrate to the pages to Facelets. One of our PhaseListeners is manipulating the component tree, because it needs to find out some components in the tree and extract some of its values. But with Facelets, UIViewRoot does not return any children....

How to set bean property value in jsf page?

I have Facelet component and I have backing bean for it. When I include my component to some page I pass bean from page to my component: <ui:include src="./WEB-INF/templates/myTemplate.xhtml"> <ui:param name="pageBean" value="#{thisPageBean}" /> </ui:include> My component also have backing bean and I try to pass va...

Why won't my Facelets loop variable go out of scope?

Hi! I know this looks like a lot of text, but I think it's a pretty simple concept I'm missing. I'm writing a web application with Facelets. I've got a custom tag rq:request-list that takes a list of requests as a parameter and outputs a lovely table to display them. So far, so good. rq:request-list starts out like you'd expect: <!--...

How to create a InputText Tag File with a value attribute and a backing bean?

I want to create a Tag (Source) File to get a custom tag in facelets (as described here). I want it to get used like this: <my:inputText value="#{myBean.someString}"/> <my:inputText inputText="#{myBean.inputText}"/> In the first case, one could bind it to a simple String property within my bean. In the second case myBean should provid...

Resolving facelets components at runtime

Hello, do you know a way to select a different facelets component at runtime? I've got some of code similar to this: <s:fragment rendered="#{r== 'case1'}"> <div> <ui:include src="case1.xhtml" /> </div> </s:fragment> <s:fragment rendered="#{r== 'case2'}"> <div> <ui:include src="case2.xhtml" /> ...

warning in faces-config.xml integrating spring with jsf

Hello, I am trying to integrate spring into a jsf application. In faces-config.xml I have included this: <application> <el-resolver>org.springframework.web.jsf.el.SpringBeanFacesELResolver</el-resolver> <view-handler>com.sun.facelets.FaceletViewHandler</view-handler> </application> but it shows a weird warning which I...

JSF+Facelets treating bean action as property

Guys, for some reason EL is not telling actions from properties. I have this page test.xhtml: <?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; <html xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.su...

JSF/Facelets: set `action` attribute to a dynamically evaluated string

In my JSF/Facelets application, I want to dynamically generate a breadcrumb trail from a list of page IDs using a custom tag: <foo:breadcrumbs trail="foo,bar,baz"/> This should generate something like: <h:commandLink action="foo" ... /> <h:commandLink action="bar" ... /> <!-- (etc.) --> My code looks something like this: <ui:repea...

JSF Core issue: javax.servlet.ServletException

Explanation: I have a JSF command link that sets a member in the backing bean, however, when setting the backing bean member using setPropertyActionListener I get a tag not recognized error. The project builds and deploys with no issues. The default page is displayed then the error is thrown on the page request with the setPropertyAct...

How do you call List.size() from a JSF 2.0 Facelets Template?

What is the syntax for calling list.size() in a JSF 2.0 Facelets template (eg, using an h:outputText element)? ...

JSP useBean equivalent in JSF

Hello, Is there any way can declare a bean in just like JSP UseBean in JSF? for example if i have nested objected inside a VO, I don't want to call to many get methods again and again For Example i have ManagedBean(MB) hold VO. VO hold (CVO), CVO Hold CVO1. if want methods of CVO. i need to write MB.VO.CVO.CVO1.method1, MB.VO.CVO.CVO...