Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Mismatch in size of textfield

 
ram gaurav
Ranch Hand
Posts: 208
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 536
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i do not understand your question.
 
Ravi Katam
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic