<h:head>
<title>OATIA - Ohio Auto Theft Investigators Association Membership Profile</title>
<ui:include src="googleanalytics.xhtml" />
<style>
.ui-inputfield {
width:250px !important;
box-shadow: none;
}
.ui-selectonemenu-label{
width:100% !important;
padding-right: 0 !important;
}
.ui-selectonemenu{
width: 90%;
padding-right: 1em !important;
}
</style>
</h:head>
<p:outputLabel value="Phone Type: *" />
<p:selectOneMenu id="phoneType1"
value="#{controller.user.phoneType1}" >
<f:selectItems value="#{controller.phoneTypes}" var="a" itemLabel="#{a.desc}" itemValue="#{a.value}"/>
</p:selectOneMenu>
<p:message for="phoneType1" />
This works in PrimeFaces 5.3 to control the size of p:selectOneMenu, but in PrimeFaces 6.0 this is not respected.
Am i doing it wrong, or did something break in Primefaces 6.
PrimeFaces 6.0
-
- Posts: 5281
- Joined: 29 Jun 2013, 12:38
Please try with;
Code: Select all
<p:selectOneMenu autoWidth="false" ... />
Github Profile: https://github.com/mertsincan
- andyba
- Expert Member
- Posts: 2473
- Joined: 31 Mar 2011, 16:27
- Location: Steinfeld, near Bremen/Osnabrück, DE
- Contact:
And read the Forum Rules, please use code tags when posting code.
PF 4.x (Elite versions), PF 5, Pf 5.1, PF 6.0
Glassfish 4.1, Mojarra 2.x, Java 8, Payara 4.1.1.
If you haven't read the forum rules read them now
Glassfish 4.1, Mojarra 2.x, Java 8, Payara 4.1.1.
If you haven't read the forum rules read them now
-
- Information
-
Who is online
Users browsing this forum: No registered users and 23 guests