This week's book giveaway is in the Agile and other Processes forum. We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line! See this thread for details.
hi can anybody tell me how to set '--' if the column value return null
how will you use if condition in jsp page using jsf.
Jeff Albertson
Ranch Hand
Joined: Sep 16, 2005
Posts: 1780
posted
0
You could write a custom javax.faces.convert.Converter for that. For example, if you had Date fields that were nullable, you could define a custom DateConverter and even register it as the default converter for Dates.
There is no emoticon for what I am feeling!
gopal kishan
Ranch Hand
Joined: Feb 23, 2005
Posts: 99
posted
0
Hi Jeff,
Thanks for the reply.
But the JSF document shows that converter used to convert values to particular datatypes.
but in my situation, i getting the result from the database and i want to show it to the user.
if any column does not contain value , then i need to show "--" instead of blank.
how will you do this???
gopal kishan
Ranch Hand
Joined: Feb 23, 2005
Posts: 99
posted
0
Hi jeff,
I got my desired output. I tried like this it works fine.