aspose file tools*
The moose likes JSF and the fly likes Problem integration between JSF and JSP with rendered= Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Problem integration between JSF and JSP with rendered="#{...}"" Watch "Problem integration between JSF and JSP with rendered="#{...}"" New topic
Author

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

Ashraf Abu-Aisheh
Ranch Hand

Joined: Apr 17, 2009
Posts: 88
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.


SCJP 5 - 79%
SCWCD 5 - 100%
Ashraf Abu-Aisheh
Ranch Hand

Joined: Apr 17, 2009
Posts: 88
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

Joined: Apr 17, 2009
Posts: 88
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


 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem integration between JSF and JSP with rendered="#{...}"
 
Similar Threads
nested h:datatable question
Strange selectOneListbox problem
Bean request Scope won't Call method
Setter Methods are not being called
Rich:Datatable rerendering problem