facelets
  1. facelets
  2. FACELETS-374

Composite components arguments are passed to ui:insert

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      If I define composite component with name comp like this:

      <ui:component xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:c="http://java.sun.com/jstl/core" xmlns:f="http://java.sun.com/jsf/core" xmlns:ui="http://java.sun.com/jsf/facelets">	
        Argument: #{empty argument? 'empty': argument}.
        <ui:insert/>
      </ui:component>
      

      then:

      <comp argument="value">
        <comp/>
      </comp>
      

      will generate:

      Argument: value. Argument: value.
      

      but it should generate:

      Argument: value. Argument: empty.
      

      What is more, when we define component like this:

      <ui:component xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:c="http://java.sun.com/jstl/core" xmlns:f="http://java.sun.com/jsf/core" xmlns:ui="http://java.sun.com/jsf/facelets">	
        Argument: #{empty argument? 'empty': argument}.
        <c:set var="argument" value="foo"/>
        <ui:insert/>
      </ui:component>
      

      then

      <comp argument="value">
        <comp/>
      </comp>
      

      will generate:

      Argument: value. Argument: foo.
      

      but it should generate:

      Argument: value. Argument: empty.
      

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            piojas
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: