el « Data « JSF Q&A

1. Passing a Enum value as a parameter from JSF    stackoverflow.com

I am trying to migrate my existing code to using Enum and I run into some problems due to my lack experience with Enum. First of all here is my structures. ...

2. JSF 2: Using enums in the rendered attribute    stackoverflow.com

Is there any way to check declaratively whether an enum has a specified value. For example:

<h:graphicImage name="error.png" library="images" 
  rendered="#{viewController.current.status == Status.ERROR}" />
It's a little bit tedious to define a ...

3. Put parameter from JavaScript into EL function call in JSF2    stackoverflow.com

In JSF2 we can use parameters in EL, which is great. However, I don't know how to use parameters from JavaScript there. This code doesn't work:

<script type="text/javascript">
  var dirty = ...

4. Prevent converting null request parameter to zero in websphere jsf    stackoverflow.com

We use #{param.customId} in faces-config for getting parameter from request. In the glassfish2 it works fine, but under websphere 7.0 undefined BigDecimal null values change to zero (0). How to configure ...

5. jsf 2 method parameters action listener    stackoverflow.com

Is there a way to pass a variable into a method param:

 <h:commandButton value="Add to Order" 
This always seems to pass 0 into the method for some reason.

6. JSF: ui:include param for "for"-attribute    stackoverflow.com

I have swapped out a composition to re-use it. The composition contains tags like this:

<t:radio for=":someForm:someComponent" index="#{index}" />
I include the composition like this:
<ui:include src="/theComposition.xhtml">
    <ui:param name="someParam" value="#{someBean}" />
But ...

7. JSF: HTTP GET Parameter Array    stackoverflow.com

I'd like to pass an array as a GET parameter, say: http://localhost/index.jsf?myArray=1stValue&myArray=2ndValue&myArray=3rdValue Then I want to loop over that array:

<c:forEach var="p" items="#{param['myArray']}">
    <h:outputText value="#{p}" />    ...

8. Passing a Enum value as a parameter from JSF (revisited)    stackoverflow.com

Passing a Enum value as a parameter from JSF This question already deals with this issue, however the proposed solution has not worked for me. I define the following enumeration in ...

9. JSF 2.1 ValueExpression in action-attribute    stackoverflow.com

Section 3.1.4 of the JSF 2.1 Specification says that all attributes of standard components are value expression enabled. I want to assign a value expression to the action attribute of a commandButton:

<h:commandButton ...

10. Resolving Boolean properties in EL not working    stackoverflow.com

I have the following tree node class:

public abstract class DocumentTreeNode extends TreeNodeImpl implements javax.swing.tree.TreeNode
    private Boolean isToC;


    public Boolean isToC()

11. How to invoke a method with parameter from link    stackoverflow.com

I have a method in the backing bean that takes a Question object as parameter. I want to pass the question variable in the datatable as argument in a method that ...

14. request scope params not getting rendered with jsf 1.2 EL?    coderanch.com

Hello all and thank you in advance for any help. I am not seeming to get request scope params rendered into the following code snippet: <%@ taglib prefix="f" uri="http://java.sun.com/jsf/core" %> <%@ taglib prefix="h" uri="http://java.sun.com/jsf/html" %> <%@taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %> <%-- Created by IntelliJ IDEA. User: Yucca Date: 11 Nov 2010 Time: 12:38:43 PM To change this template use File | Settings ...

15. Parameter from URL inside EL    coderanch.com

param is an implicit object, will #{param['key']} work? Just to be clear, use the text "param", don't replace this with your parameter name. I tend to use these things in system event listeners rather than in the page so can't speak from experience. If this doesn't work I have a plan B, but that's got to wait for tomorrow. Regards, Brendan. ...

16. Parameter passing method is not working in JSF 2 (with el api jars el-api-2.2.jar & el-impl-2.2.jar)    coderanch.com

Hi Gurus, When I use the parameter passing method in the view, I am getting el parser error. I use the below jars for el el-api-2.2.jar el-impl-2.2.jar. I placed in the WEB-INF/lib folder. I had issues. So I placed them in a folder and set the class path in the server (weblogic server) startup. But still I encounter the el parse ...