Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem integration between JSF and JSP with rendered="#{...}"  RSS feed

 
Ashraf Abu-Aisheh
Ranch Hand
Posts: 88
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ranchers,

I have problem in my code ecpicially in Jboss Application Server, but in Tomcat it is work properly.

I have the TLD like this:
<%@taglib prefix="pssec" uri="/WEB-INF/tlds/pssec-tags"%>

When i use the following line in my jsp page it works successfully:

<hutputText value="#{not pssec:isLdapUserLogged()}" />

but the following is not work:

<hutputText value="AAA" rendered="#{not pssec:isLdapUserLogged()}"/>

The Question here is Why? and what is the different between the value="#{not pssec:isLdapUserLogged()}" and rendered="#{not pssec:isLdapUserLogged()}" ???
Note that the isLdapUserLogged is method in real class "NOT managed bean class".

Help Please.
 
Ashraf Abu-Aisheh
Ranch Hand
Posts: 88
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have fixed it by this way (by using <c:if> </c:if> instead of rendered)

but unfortunately i got the following exception:


Please help
 
Ashraf Abu-Aisheh
Ranch Hand
Posts: 88
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The Problem Solved by using <f:verbatim>, kindly refer to the following URL to see how to use JSF with JSP in the same block:

http://www.coderanch.com/t/456186/JSF/java/java-lang-IllegalStateException-duplicate-Id#2034791


 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!