p:selectOneMenu with custom content within dialog

UI Components for JSF
Post Reply
tanskanm
Posts: 13
Joined: 27 Jul 2011, 10:58

17 Aug 2011, 08:20

I can't get my selectOneMenu to show images as it's done in show case. I have:

Code: Select all

<p:dialog widgetVar="new_foo_dialog" modal="true">
		<div class="dialog-container">
			<h:form id="newFooForm">
				<h:panelGrid columns="1">					
					<h:outputLabel value="new image" />
					<p:selectOneMenu value="#{newFooView.Foo.imageUrl}"
						var="imageUrl">

						<f:selectItems value="#{newFooView.images}" var="image"
							itemLabel="#{image}" itemValue="#{image}" />
						 <p:column>  
			                           <p:graphicImage value="/resources/styles/images/type_icons/#{imageUrl}"/>  
			                        </p:column>  
				      </p:selectOneMenu>
				</h:panelGrid>
			</h:form>
		</div>
	</p:dialog>
But now images are shown, only itemLabel is listed.

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 17 guests