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 Mismatch in size of textfield Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Mismatch in size of textfield" Watch "Mismatch in size of textfield" New topic
Author

Mismatch in size of textfield

ram gaurav
Ranch Hand

Joined: Mar 29, 2006
Posts: 208
Hi

I am developing two textfields in a JSP page using JSF.



but by default there is mismatch in there size, please tell me that what to do and what i am making wrong in above code.

Thanks
Regards
Gaurav
Richard Green
Ranch Hand

Joined: Aug 25, 2005
Posts: 536
i do not understand your question.


MCSD, SCJP, SCWCD, SCBCD, SCJD (in progress - URLybird 1.2.1)
Ravi Katam
Greenhorn

Joined: Apr 29, 2005
Posts: 6
<h:inputText id="username" value="#{loginbean.userName}" size="20"/> <h:inputSecretredisplay="false" id="password" value="#loginbean.password}" size="22"/>


"size" here represents the maximum number of charachters you can type in the field.

If you are looking for width try something like (style="width:50px;") property from CSS.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Mismatch in size of textfield