Calendar is not displayed, please help me :-(

UI Components for JSF
Post Reply
AndreaNobili
Posts: 13
Joined: 13 Oct 2011, 20:36

02 Dec 2011, 13:28

Hello,
I having some problem displayng a Calendar component in my page.

This is my xhtml view:

Code: Select all

<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.prime.com.tr/ui"
	template="/WEB-INF/flows/shome/userprofile/view.xhtml">

	<ui:define name="operativeArea">
		<p:outputPanel id="pnlDatiPersonali">
			<h:form>
				<p:panel header="Gestione Dati Personali">
					<f:facet name="options">
						<p:menu id="mnuPanel">
							<p:menuitem icon="ui-icon ui-icon-print" value="Stampa" url="#" />
							<p:menuitem icon="ui-icon ui-icon-close" value="Chiudi"
								action="gotoUserProfile" update="layoutContainer" />
						</p:menu>
					</f:facet>
					<h:outputText
					value="Utilizzare il form di seguito riportato per l'inserimento dei dati." />
					<br />
					<br />
					<h:panelGrid columns="3" cellpadding="2" cellspacing="2">
						<h:column>
							<h:outputLabel class="labelAlignBottomLeft" value="Nome" for="nome" /><br/>
							<p:inputText id="nome" value="#{changeDatiPersonaliForm.firstName}" />
						</h:column>
					
						<h:column>
							<h:outputLabel class="labelAlignBottomLeft" value="Cognome" for="cognome" /><br/>
							<p:inputText id="cognome" value="#{changeDatiPersonaliForm.lastName}" />
						</h:column>
						
						<h:column>
							<h:outputLabel class="labelAlignBottomLeft" value="Compagnia" for="compagnia" /><br/>
							<p:inputText id="compagnia" value="#{changeDatiPersonaliForm.companyName}" />
						</h:column>
						
						<h:column>
							<h:outputLabel class="labelAlignBottomLeft" value="Luogo di nascita" for="birthPlace" /><br/>
							<p:inputText id="birthPlace" value="#{changeDatiPersonaliForm.birthPlace}" />
						</h:column>
						
					</h:panelGrid>
					
					<p:calendar value="#{dateBean.date}" mode="inline" />
				</p:panel>
		
			</h:form>
		</p:outputPanel>
	</ui:define>
</ui:composition>
The problem is that when I put the calendar component with: <p:calendar value="#{dateBean.date}" mode="inline" /> line, the calendar IS NOT DISPLAYED on the page

At the moment there is dateBean because I have not yet implemented the bean that contain the date field (dateBean class do not exist ad the moment on my application)

May depend on it?

Thanks
Andrea

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 20 guests