EL « Component « JSF Q&A





1. How to access html components in JSF EL?    stackoverflow.com

I want some code in facelet (jsf 2.0) to work:

  <h:inputText id="q" />
  <h:button outcome="/search.xhtml?q=#{q.value}" />
but when I press the button, search page opens without any parameters. I think, my ...

2. javax.el.PropertyNotFoundException with CompositeComponent?    stackoverflow.com

I'm currently trying to build a composite component, and this is how i make use of my component :


Include it with xmlns:albert="http://java.sun.com/jsf/composite/albert"
And here's the usage example
<albert:infoButton
    infoId="infoSingleRecord"
  ...

3. JSF/Facelets component using bindings    stackoverflow.com

I'm creating a simple JSF/Facelets component, useful to specify time intervals:

<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page"
xmlns:c="http://java.sun.com/jstl/core"
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:rich="http://richfaces.org/rich"
xmlns:a4j="http://richfaces.org/a4j"
xmlns:t="http://myfaces.apache.org/tomahawk"
xmlns="http://www.w3.org/1999/xhtml"
xmlns:jstl="http://java.sun.com/jsp/jstl/functions" version="2.0">
<ui:component>
    <h:panelGrid columns="2" cellpadding="2">
        <rich:inputNumberSpinner value="#{durationBean.duration}"/>
    ...

4. JSF 2 Composote Component EL Problem    stackoverflow.com

I have a JSF Composite Component that has a EL Expression on the Interface part, code snippet below.

<cc:interface>
     <cc:attribute name="label" type="java.lang.String"/>
     <cc:attribute name="labelRendered" ...

5. Error in creating Seam Custom EL function    stackoverflow.com

I tried to create a custom el function in seam 2.2 by following http://seamframework.org/Documentation/CreatingCustomELFunctions The taglib content is:

<?xml version="1.0"?>
<!DOCTYPE facelet-taglib PUBLIC "-//Sun Microsystems, Inc.//DTD Facelet Taglib 1.0//EN" "facelet-taglib_1_0.dtd">
<facelet-taglib>
   ...