<div jsf:rendered> is not interpreted as passthrough element

651 Views Asked by At

I want to display a div, if a boolean is false.

This is my Bean:

@Named
@RequestScoped
public class NewUserBean implements Serializable {
    private static final long serialVersionUID = 1L;

    private boolean bool = false;

public boolean isBool() {
    return bool;
}


public void setBool(boolean bool) {
    this.bool = bool;
}

And this is a part of my .xhtml File

<div jsf:rendered="#{!newUserBean.bool}">

//Display something
</div>

The view displays nothing, but if I change it 2

<div jsf:rendered="#{newUserBean.bool}">

the View displays the div-element although the boolean is false.

My HTML div-element mets all conditions (1. There's at least one jsf:xxx attribute from http://xmlns.jcp.org/jsf namespace. 2.There's at least one "identifying attribute" associated with a specific JSF component. ) to become a passthrough-element. However it doesn´t work.

0

There are 0 best solutions below