PrimeFaces 6.0

UI Components for JSF
Post Reply
merl.crepsjr
Posts: 15
Joined: 23 Sep 2013, 02:59

23 Jun 2016, 00:51

<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.

mert.sincan
Posts: 5281
Joined: 29 Jun 2013, 12:38

23 Jun 2016, 15:57

Please try with;

Code: Select all

 <p:selectOneMenu autoWidth="false" ... />

User avatar
andyba
Expert Member
Posts: 2473
Joined: 31 Mar 2011, 16:27
Location: Steinfeld, near Bremen/Osnabrück, DE
Contact:

24 Jun 2016, 13:49

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

merl.crepsjr
Posts: 15
Joined: 23 Sep 2013, 02:59

26 Jun 2016, 02:46

That worked thanks...

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 23 guests