File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSF and the fly likes JSF if tag Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "JSF if tag" Watch "JSF if tag" New topic
Author

JSF if tag

N Naresh
Ranch Hand

Joined: Nov 04, 2008
Posts: 66
Hi,
i want to call java method inside jsf file using if tag could any one help in this
N Naresh
Ranch Hand

Joined: Nov 04, 2008
Posts: 66
i am using
if tag like this in jsf file

<if com.pipeline.content.ContentGenerator.SupportsProperty property="section_image">

And ContentGenerator class has SupportsProperty method which accepts argument property is there anything wrong above if tag syntax?
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16141
    
  21

The first thing that's wrong is that JSF has no "if" tag. In fact, JSF's tags are display-oriented. Logic is supposed to go in the backing beans, not on the View.

Some people try to put logic in the View anyway by mixing JSF and JSTL. This often causes them problems.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JSF if tag