aspose 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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 15624
    
  15

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
 
Similar Threads
validation
know the current status of command button
JSF Components does not appear on the browser
fieldset tag in JSF
commandbutton inside panelgroup dont work