I am trying to change the size of the autoComplete (primefaces 3.3), I tried all the below options but the size remains the same.
size="600"
Style="width:600px;"
StyleClass > css file with width:600px;
but none of them increases the size, so how do i do it.
Note: I noticed that if I specify (width > PanelGrid size) then the panel grid size changes automatically but autoComplete is still in default size.
Update: my autoComplete code
<p:autoComplete id="autoTest" value="#{testMB.selectedTest}"
completeMethod="#{testMB.completeTest}" var="test"
itemLabel="#{test.name}" itemValue="#{test}" converter="#{testConverter}"
forceSelection="TRUE" queryDelay="1000" multiple="TRUE" size="600"
process="@this">
I changed the default size for AutoComplete in Primefaces 5.2 by using the inputStyle
attribute.
Example:
inputStyle="width: 100px"
It is just need to change of size
;
size="30"
<p:autoComplete id="yourId" value="#{YourBean.value}" completeMethod="#{YurBean.complete}" size="30"/>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With