<f:view>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>
JSP Page</title>
</head>
<body>
<div>
<h:outputLabel for="name" value="Enter your name:"/>
<h:inputText id="name" value="#{NameBean.name}"/>
<h:commandButton value="Submit"/>
</div>
<div>
<h:outputText value="Hello, #{NameBean.name}" rendered="#{NameBean.name!=null&& NameBean.name!=' '}"/>
</div>
</body>
</html>
</f:view>
here render part didn't work. my expected result was ------ (Hello, ******)------ here ***** means the input
string.
And NameBean is in session scope... Please help me out....