This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
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 OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA 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.
 
Don't get me started about those stupid light bulbs.
 
subject: Mismatch in size of textfield