Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8117291
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T04:07:03+00:00 2026-06-06T04:07:03+00:00

I have a Facelets Composite component that includes, among other things, a commandButton: <?xml

  • 0

I have a Facelets Composite component that includes, among other things, a commandButton:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<ui:component xmlns="http://www.w3.org/1999/xhtml" 
          xmlns:h="http://java.sun.com/jsf/html"
          xmlns:ui="http://java.sun.com/jsf/facelets"
          xmlns:cc="http://java.sun.com/jsf/composite" 
          xmlns:ice="http://www.icesoft.com/icefaces/component"
          xmlns:nc="http://compositecomps.sss.evla.nrao.edu/jsf"
          xmlns:opt="http://java.sun.com/jsf/composite/components/opt"
          xmlns:undo="http://undo.sss.evla.nrao.edu/jsf"
          xmlns:n="http://sss.evla.nrao.edu/jsf"
          xmlns:f="http://java.sun.com/jsf/core">
<cc:interface>
  <cc:attribute name="value" type="edu.nrao.sss.tools.obsprep.bulkedit.BulkEditor"                      required="true"/>
  <cc:attribute name="loop"  type="edu.nrao.sss.tools.obsprep.uiactions.project.scan.ScanLoopUIActions" required="true"/>
</cc:interface>

<cc:implementation>
  <ui:param name="loop" value="#{cc.attrs.loop}"/>
  <ui:param name="val"  value="#{cc.attrs.value}"/>

  <ice:panelGroup id="wizStep1"
                  rendered="#{val.readyToSelect}">
    <nc:header value="select fields to filter on"/>
    <ice:commandButton value="#{val.nameField.value}" action="#{val.select}"/>
    <table cellpadding="5">
      <thead>
        <tr>
          <th></th><th>Field</th><th>Search For</th><th></th>
        </tr>
      </thead>
      <tbody>
        <opt:bulkEditField value="#{val.nameField}">
          <f:facet name="summary">
            <ice:inputText value="#{val.nameField.value}"/>
          </f:facet>
        </opt:bulkEditField>
      </tbody>
    </table>
    <ice:commandButton value="Select" action="#{val.select}"/>
  </ice:panelGroup>
</cc:implementation>
</ui:component>

I’ve changed the code to use val.nameField.value as the label for the first command button to demonstrate the problem.

When I use this component in a page, it renders the button and a list of searchable fields below it. If I change the value of the name field, the button label changes.

However, if I click the button, I get a target unreachable exception:

Caused by: javax.el.PropertyNotFoundException: /resources/components /opt/bulkEdit.xhtml @25,79 action="#{val.select}": Target Unreachable, identifier 'val' resolved to null

I feel like I must be missing something fundamental to how these composite components work. This worked fine as a tag file under facelets/JSF 1.2. In the process of upgrading to JSF 2.0, I wanted to move on to using composite components so I can have a defined interface.

If I stop using <ui:param/> and put cc.attrs.value in directly, it tells me that cc is null.

I thought this could be a bug in icefaces, but switching to plain <h:commandButton/> does the same thing.

Thanks for any advice you may have.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T04:07:05+00:00Added an answer on June 6, 2026 at 4:07 am

    This is a bug in ICEfaces 2.0. You have a UISeries (panelTabSet or dataTable) that contains the composite component. See http://jira.icesoft.org/browse/ICE-7142. It’s fixed in 3.0.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this simple code in facelets numbers.xhtml: <?xml version='1.0' encoding='UTF-8' ?> <!DOCTYPE html
I have a simple JSF 2.0 composite component example. <!DOCTYPE html PUBLIC -//W3C//DTD XHTML
I have to write a composite component that shows a login form and can
I have a Java EE App that has JSF2 + PrettyFaces + Facelets +
I have a problem with my facelets: I constricted a nav part that displays
I have a jsf component that must access to a javascript file, i added
I have a simple composite component with an optional ajax listener implemented with the
I have created a custom facelets component and I need to set some value
I want to have a component that looks like a button, but instead of
Let's say that you have the following Facelet ( Using Facelets 1.1.12 ): edit_item.xhtml

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.