Expression « Data « JSF Q&A





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

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

alert('#{bundle.chinese}');
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?    stackoverflow.com

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

<p:dataTable id="gridRPBDetails" var="rpbDetail"
  value="#{tInputBean.detailList}"
  selection="#{tInputBean.selectedDetails}">

....

   <p:commandButton 
      process="@this" 
  ...

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

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

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

5. JSF Expression Language: scope for expression language syntax    coderanch.com

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="http://java.sun.com/jsp/jstl/core" prefix="c" %> <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %> <%@ taglib ...

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

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 = [ '/', '.', '*', '+', '?', '|', '(', ')', '[', ']', ...