facelets « JSP « JSF Q&A





1. Creating your own Validators in JSF 1.2 with Facelets 1.1.12    stackoverflow.com

I was reviewing the following link and found out that javax.faces.webapp.ValidatorTag is deprecated and replaced by ValidatorELTag, however I can't seem to find any good information about this. I want ...

2. How to define an onLoad function in JSF template that will be defined elsewhere    stackoverflow.com

I'm designing the view for my site, which has a standard login and landing page, and I want to have an onLoad function called for my login page, but not for ...

3. Facelets and JSTL (Converting a Date to a String for use in a field)    stackoverflow.com

I need to convert a Date to a String within a page (I dont want to add loads of toStrings to my domain model so adding to the bean is not ...

4. Integrating JSTL With Facelets    stackoverflow.com

I am considering using Facelets and JSTL in the same web project. Are there any issues in integrating these ?

5. Using JSP 2.0 tags in Facelets    stackoverflow.com

Is someone using Facelets with JSP 2.0 tags? How to add tag library to xhtml page? In JSP I used:

<% taglib prefix="example" tagdir="/WEB-INF/tags/my" %> 
and : <example:sample/>
How can I do ...

6. Facelets error page as the response has already been committed. jsf    stackoverflow.com

I perform this redirect :-

   objExternalContext.redirect("http://blogger.blogdns.com:8080/Blogger/Common/LoginRequestProcessor.jsp;jsessionid=" + objHttpSession.getId() + "?j_username="+ userName + "&j_password=" + password + "&rememberMe=" + rememberMe);
to page LoginRequestProcessor.jsp :-
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %>
<!DOCTYPE HTML PUBLIC ...

7. JSTL in JSF2 Facelets... makes sense?    stackoverflow.com

I would like to output a bit of XHTML code conditionally. For that purpose, the JSTL tags seem to work fine:

<c:if test="${lpc.verbose}">
...
</c:if>
However, I'm not sure if this is a best practice? ...

8. How to implement some if-then logic with JSF and Facelets?    stackoverflow.com

I have a bean with field status. Depending on status value different css class should be applied to render it. So, I need something like this (very far from real things pseudocode):

if ...

9. Auto-generated ids for facelets components    stackoverflow.com

We use facelets to create some custom ajaxy components. One of the behaviours we would like to mimic from the default components is that an id is optional, and an ...





10. JSF vs Facelets vs JSP    stackoverflow.com

I can't seem to get a clear answer as to the concrete difference between Java Server Faces vs. so-called facelets. Can anyone give me a clear-as-day answer?!? Also, I understand that either ...

11. What is the alternative to after the view is built?    stackoverflow.com

what is the alternative to <c:set> after the view is built ? Generally <c:set> works when the view is being built. After that, how do I change that ? For example, what would ...

12. Can not find the tag library descriptor for http://java.sun.com/jsf/facelets    stackoverflow.com

I have received this error for <%@taglib uri="http://java.sun.com/jsf/facelets" prefix="ui" %> But I have library facelets-lib.jar I suppose that library in facelets, but file jsf-facelets-1.1.10.jar not contains tld descriptors. What file is correct?

14. How to use Facelets' ui:repeat tag in JSP?    stackoverflow.com

I am using JSF 2.0 on JSP 2.1. Is there any possibility to use Facelets' <ui:repeat> tag in JSP files? I have imported the Facelets taglib in JSP as

<%@ taglib uri="http://java.sun.com/jsf/facelets" prefix="ui"%>
But ...

15. JSP or Facelets?    coderanch.com

Actually, I do not know the reason why JSP and Facelets can be called competitors. They are very complimentary to each other. Facelets has a great and smoothly integrated with JSF templates framework (but not only it, of course). At the same time, the data iteration like jstl c:forEach is out of the scope for facelets. You cat create new JSF ...

16. Facelets and JSPs    coderanch.com





17. Facelets and JSTL    coderanch.com

18. Issue with jstl + facelets    coderanch.com