Organigram Date issue

UI Components for JSF
Post Reply
tony.herstell
Posts: 214
Joined: 29 Nov 2011, 00:40

22 Jun 2021, 01:03

Hi Team,
Any idea why dateStyle long is not honoured...
The date always shows as 2021-03-09 no matter what I do...
(elsewhere this line of code does now the date correctly)
Date is a LocalDate.

Code: Select all

	<p:organigramNode type="root" style="border-radius: 10px" skipLeafHandling="true">

		<h:outputText escape="false" value="&lt;b&gt;Req&lt;/b&gt;: #{node.data.releasedDeliveryDate}">
			<f:convertDateTime type="localDate" dateStyle="long"/>
		</h:outputText>
PF12+, Quarkus 3.2+ (CDI, JPA etc.), JSF Bridge (MyFaces 4.0.1)
Dont forget the classifier:

Code: Select all

   ...primefaces
  <classifier>jakarta</classifier>
     ... theme
  <classifier>jakarta</classifier>

tony.herstell
Posts: 214
Joined: 29 Nov 2011, 00:40

22 Jun 2021, 01:10

I figured it out...
Adding in the text to the field messed it up...
&lt;b&gt;Req&lt;/b&gt;:
Makes sense... the date formatter could not parse it
PF12+, Quarkus 3.2+ (CDI, JPA etc.), JSF Bridge (MyFaces 4.0.1)
Dont forget the classifier:

Code: Select all

   ...primefaces
  <classifier>jakarta</classifier>
     ... theme
  <classifier>jakarta</classifier>

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 46 guests