facelets

Mixing JSP and XHTML (Facelets) in JSF2 Project - possible?

I have a client who wants to use JSF2 and they like that XHTML is now the default (Facelets). However, they have a huge amount of "legacy" JSP from their JSF1.x codebase. I know it's probably not desirable, but will it be possible to support a mix of both in JSF2, at least for a transition period whilst they port? I know it was possib...

How to display menu items from database

I have two classes representing menu items. First one is Category, it represents the parent menu items. @Entity @Table(name = "category") @NamedQueries({ @NamedQuery(name = "Category.findAll", query = "SELECT c FROM Category c"), @NamedQuery(name = "Category.findByCateId", query = "SELECT c FROM Category c WHERE c.cateId = :cat...

JSF: logic based on iteration index

Pardon me for the title, that's the best my limited brain can came up this late. So, i have a list of string, something like [abc, def, ghi]. The question: in JSF, how do I iterate the list and create a string that look like this "abc, def, ghi" (notice the commas)? For those who have the urge to tell me that I'd better use a Java me...

How to remove Message Ui:include not found on java build path in eclipse, While developing .xhtml file using richfaces and facelets?

Hi, I am getting error message like... The tag handler class for "ui:include" (null) was not found on the Java Build Path when i placed or in my .xhtml file. What is the reason behind this.. I am using: jsf 1.2 RichFaces 3.3 ...

<ui:debug/> tag not working in Facelets (JSF 2.0)

I am doing a project using JSF 2.0 and Facelets. I have read documentations that the <ui:debug/> tag gives valuable troubleshooting information upon pressing CTRL-SHIFT-D. But this never works for me. Please anyone tell me what am I missing. (I tried with various hotkeys, still no success. eg: <ui:debug hotkey="a"/>) ...

Ecplise autocomplete primefaces tags

I am using Eclipse to work with PrimeFaces like this: <ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core" xmlns:p="http://primefaces.prime.com.tr/ui" template="/template/ui.xhtml"> I saw Bozho question and a...