Expression « Data « JSF Q&A

1. JSF EL expression renders question marks (?) for Chinese characters inside JavaScript

I am using an EL expression inside JavaScript for rendering Chinese value.

But it renders question marks (?) instead of actual characters. When I use it outside a script tag in the same ...

2. How to call method expression with parameters?

Can i pass an expression as a method expression parameter like this ?

<p:dataTable id="gridRPBDetails" var="rpbDetail"



3. JSF2 redirect with includeViewParams allows users to enter EL expression which are resolved into text fields

I have a JSF2 XHTML page that defines view parameters, this allows one to have bookmarkable URLs. The XHTML page includes the parameters:

  <f:viewParam name="searchName" value="#{nbsearchpage.searchName}" />
  <!-- More ...

5. JSF Expression Language: scope for expression language syntax

Hi all, I have a simple question: what is the scope where I can use JSF EL? The point is that I need to use a value from a backing bean in the JSTL tag even before I use . Here is an example: <%@ page contentType="text/html;charset=UTF-8" language="java" %> <%@ taglib uri="" prefix="c" %> <%@ taglib uri="" prefix="h" %> <%@ taglib ...

6. How to escape regular expression's special characters using javascript?

HI to all, I am in need of escaping the regular expression special characters like '/', '.', '*', '+', '?', '|','(', ')', '[', ']', '{', '}', '\\'. I have try with this by the following javascript but i can not achieve that. RegExp.escape=function(str) { if (!arguments.callee.sRE) { var specials = [ '/', '.', '*', '+', '?', '|', '(', ')', '[', ']', ...