File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Java » JSF
Bookmark "JSF if tag" Watch "JSF if tag" New topic

JSF if tag

N Naresh
Ranch Hand

Joined: Nov 04, 2008
Posts: 66
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: 17421

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.

An IDE is no substitute for an Intelligent Developer.
I agree. Here's the link:
subject: JSF if tag
It's not a secret anymore!