<p:selectOneMenu> width does not match widest element

UI Components for JSF
Post Reply
toao_cyrus
Posts: 1
Joined: 13 Jun 2014, 22:40

10 Sep 2014, 21:20

Instead it resizes itself every time you select a different element

Code: Select all

<div class="row">
     <div class="col-xs-8">
          <h:panelGrid columns="6" cellpadding="5">
               <p:outputLabel value="Period" id="periodLabel"
		for="selectPeriod" />
	   <p:selectOneMenu id="selectPeriod"
	         value="#{ben.value}">
	         <f:selectItems value="#{bean.values}" var="value"
	         itemValue="#{value.value}"
	         itemLabel="#{value.label}" />
	        <p:ajax event="change" process="@this" update="rangeForm"
	        listener="#{bean.method()}" />
          </p:selectOneMenu>
          ....

Another issue is the white background is only large enough for the text and does not fill the entire box. I am not overriding any of the primefaces CSS.

screenshots

Image
Image

JSF version/implementation: mojarra 2.2.7
Primefaces version: 5.0

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 30 guests