facelets

jsf-facelets forward bypass servlet filters

For one week, i am playing with appfuse-jsf-basic but i noticed something. If i do not put tag to my navigation rules, i can view a page that require ROLE_ADMIN with ROLE_USER rights. Then i understand something that facelets doesnt use "servlet.forward" methods for forwarding so filters does not catch facelets forwards in navigation ru...

error in combobox using SEAM 2.1.2 and JBOSS 4.2.3GA

Hi, I'm trying to create a combobox on a sean project and the sean tags are not recognizing my session bean method, but if i display the list in a simple table everything is ok. My session bean PaisSB.java: package br.com.logical.prepark.session; import java.util.List; import javax.persistence.EntityManager; import org.jboss.seam.S...

Facelets and JSP in same project?

Is it possible to use Facelets pages and .jsp style ICEfaces pages in the same project? In looking at the ICEFaces Facelets tutorial, the migration appears to be an all-or-nothing switch. Is it possible to support both (for a slow migration)? ...

Accessing the value of a Richfaces calendar during validation.

I am trying to validate a field based on another field's value. <h:form id="item"> <s:validateAll/> <h:selectBooleanCheckbox id="selected" value="#{bean.selected}" validator="selectedValidator"/> <rich:calendar id="startDate" value="#{bean.startDate}"/> </h:form> However, inside my validator. public void validate(FacesContext c...

cannot use values from beans in facelets custom component

Hi, i cannot use any bean value in my custom control.: for instance: this is my foo.taglib.xml file. <facelet-taglib> <namespace>http://www.penguenyuvasi.org/tags&lt;/namespace&gt; <tag> <tag-name>test</tag-name> <component> <component-type>test.Data</component-type> </component> </tag> </facelet-taglib> faces...

How can I make Netbeans 6.7 recognize JSF tags in facelets?

I would like to upgrade from Netbeans 6.5 to Netbeans 6.7. However, I've encountered an annoyance. Netbeans 6.5 recognizes jsf tags, but Netbeans 6.7 does not. Here are the screenshots: Why isn't Netbeans 6.7.1 not recognizing and matching JSF tags? ...

Redirecting on session timeout in JSF-Richfaces-facelet

I am using JSF with RichFacecs to create a web portal .I want to redirect the user to the login page on session time out. I was trying to throw a SecurityException in session expiry/logged out stage as follows <error-page> <exception-type>java.lang.SecurityException</exception-type> <location>/Login.jsf</location> </error-page> ...

facelets totally escape xml

Hi, always i use el expressions like this; <h:outputText value="#{bean.value}" escape="true" />; and i cannot escape from xml in input fields: <h:inputText value="#{bean.value}" /> is there a way to totally escape xml in facelets. for instance a context parameter; <context-param> <param-name>facelets.ESCAPE_XML</param-name> <...

Displaying the panels dynamically in jsf + RichFaces +Facelets

I am creating a portal in jsf with a left menu(rich:panelMenu) and with a content area on the right side. I want to refresh only the content area with different forms on clicking the menu items in the left menu. The menu selection needs to retained. Which is the proper technique to handle this ? ...

Use argument in EL expression

Hello guys, I need to use function with argument in a EL expression (with JSF) like this: <h:outputText value="#{object.test(10)}" ></h:outputText> But it doesn't work. I read on the web that it's impossible to do this with JSF. I use facelet with JSF. Someone knows how to do that ? Thanks. ...

Include non-Facelet content in a Facelet template

Is there a way to have the content of an html file inserted into a Facelet template? The Facelets tag will not work since it is only for including Facelet content. To put it another way, I am looking for the Facelets equivalent to the JSP include directive (<%@ include file="..." %>). ...

Facelet Custom Component - prevent rendering ui:insert content in custom component

Hi, this is my custom component definition: <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:c="http://java.sun.com/jstl/core" xmlns:fn="http://java.sun.com/jsp/jstl/functions"...

Creating an "Edit my Item"-page in Java Server Faces with Facelets

Let's say that you have the following Facelet ( Using Facelets 1.1.12 ): edit_item.xhtml which i access with edit_item.jsf Now i have another page sending me to edit_item.jsf with the GET-paremeter ID the uri looks like this: http://mysite.com/edit_item.jsf?ID=200 How do you access a Bean and fetch the Information, and display this o...

Using managed-property with CommandButton in Java Server Faces

In addition to my question "Creating an “Edit my Item”-page in Java Server Faces with Facelets" I would liek to cover an issue that this provided. When I press the commandButton the ID=100 is removed and the page is refreshed, and this is Before it even runs the method, right, so this means that I do not have the ID when i press the but...

Using commandButton or commandLink to for Postback and managing the HTML Control Values

In many cases you want to add HTML-Controls or Facelets to your Website, but how easy is it really to just access these when you call upon an action? I have the following commandLink to execute an Action <h:commandLink action="#{MyBean.save}" value=""> <f:verbatim><input type="button" value="Save"/></f:verbatim> <f:param name="...

Netbeans Facelets code completion

Does anyone know how one can enable the code completion for xhtml (facelets) files in Netbeans (6.7.1)? According to some information I found on Google it is a known issue that there is no code completion for xml namespaces as used in the xhtml files, but that should be resolved by installing the netbeans facelets support module. But eve...

Richfaced rendering takes longer time

Hi we are using various combination of data table and rich combobox and tab panel. the rendering is taking too long. is i did the performance tuning suggestions from stackoverflow and other websites <context-param> <param-name>javax.faces.STATE_SAVING_METHOD</param-name> <param-value>server</param-value> </context-param> <context-pa...

Creating your own Validators in JSF 1.2 with Facelets 1.1.12

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 to create a Regular Expression Validator which takes input: regex and error message. Meaning I would want to have a control like this: ...

Navigation in JavaServer Faces, redirecting with correct parameters

I have a page: http://mypage.com/items.jsf. This page takes the following for granted: ID is set by GET or ID is set by POST. Now, I can manually call items.jsf?ID=10 But what I really want to do is have a Button which calls a function that returns the navigation URL. public String test() { return "10"; } Now having the foll...

Replacing JavaServer Faces Error Pages

Is it possible to replace the standard error pages from JavaServer Faces such as 500 Internal Server Error ? These include information such as the stack trace, etc. But for the users, when the page is in Production Mode, I want to show a friendlier page saying that the request did not succeed. ...