Perhaps you can show us the code snippet of these two inputs ... The best way to determine the size of these elements is to use CSS classes:
.myInput {
width: 60px;
}
and then use this class in JSF components:
<h:inputText ... styleClass="myInput"/>
...
<h:inputSecret ... styleClass="myInput"/>
source
share