This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JSF and the fly likes removing zero from h:inputfield Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "removing zero from h:inputfield" Watch "removing zero from h:inputfield" New topic
Author

removing zero from h:inputfield

Jignesh Patel
Ranch Hand

Joined: Nov 03, 2001
Posts: 626

I am trying to display

in which areaCode is of type integer. Because of that I am seeing areaCode populated as zero when the form loads first time. I don't want to display any value when the form loads first time.
Venkat Sadasivam
Ranch Hand

Joined: May 10, 2008
Posts: 139
Use "Integer" wrapper object, don't use primitive type "int".


“Any fool can write code that a computer can understand. Good programmers write code that humans can understand. ”<br>
-Martin Fowler
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: removing zero from h:inputfield
 
Similar Threads
Forward Referencing
Ajax Calls not refereshed.
NPE on Load for a search box
Creating table inside div
More on nulls and null return values