p:calendar issue (was issue 820)

UI Components for JSF
Post Reply
timotius_pamungkas
Posts: 117
Joined: 19 May 2010, 03:50

27 Jul 2010, 16:20

Hi catagay,
Congratz for 2.1 release. However, regarding my previous issue : http://code.google.com/p/primefaces/iss ... ail?id=820
it still has error

This code

Code: Select all

	<h:form>
		<p:calendar mindate="07/27/2010"/>
	</h:form>
works fine, and also this code

Code: Select all

<p:calendar pattern="dd-MMM-yyyy" />
but try to combine both attribte like this

Code: Select all

<p:calendar pattern="dd-MMM-yyyy" mindate="07/27/2010"/>
then instead of getting 27 July 2010 for mindate, it shows 1 march 2016 as minimum date.

I've tried both approach using string and using instance of java.util.Date, but the combination seems throw something wrong.

Thanks
Tomcat 7.0.25
Mojarra 2.1.6
Primefaces 3.1, 3.2
Firefox 10 and IE 7/IE 8

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

28 Jul 2010, 11:40

Hi timotius,

I've tried using that dd-MM-yyyy pattern and it worked so marked it as fixed.

The issue you've linked does not mention anything about mindate/maxdate combination issue so please create a new issue about this one.

Thanks!

timotius_pamungkas
Posts: 117
Joined: 19 May 2010, 03:50

29 Jul 2010, 07:10

OK, i'll create new issue
anyway it should be dd-MMM-yyyy (3 "M", 3-Jul-2010), and funny thing, i've encountered some date which throws error when enter following date using dd-MMM-yyyy format:
- dates on August 2010
- dates on October 2010
It displays message defined on javax.faces.component.UIInput.CONVERSION so i guess conversion still has some problem for dd-MMM-yyyy (05-Aug-2010, etc)

the calendar code is just

Code: Select all

<p:calendar pattern="dd-MMM-yyyy"/>
so i guess this issue still open, or should i create new one, along with min/max date combination?

thanks
Tomcat 7.0.25
Mojarra 2.1.6
Primefaces 3.1, 3.2
Firefox 10 and IE 7/IE 8

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

29 Jul 2010, 11:44

Yes, please create a new issue for min max problem. I've reopened 820.

timotius_pamungkas
Posts: 117
Joined: 19 May 2010, 03:50

30 Jul 2010, 06:36

Tomcat 7.0.25
Mojarra 2.1.6
Primefaces 3.1, 3.2
Firefox 10 and IE 7/IE 8

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

30 Jul 2010, 11:30

Thanks Timotius!

timotius_pamungkas
Posts: 117
Joined: 19 May 2010, 03:50

01 Aug 2010, 10:16

great optimus

anyway, calendar's navigator shows only about 15 years on its year drop down combo box. How can I display more than 15, say 50 (for birth date purpose)

thanks?
Tomcat 7.0.25
Mojarra 2.1.6
Primefaces 3.1, 3.2
Firefox 10 and IE 7/IE 8

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

01 Aug 2010, 20:15

Hi,

I think we need to add an attribute for this to make is customizable.

Just created the following ticket, targeting upcoming release, this is pretty trivial to add since underlying jquery ui datepicker has an option already;

http://code.google.com/p/primefaces/iss ... il?id=1092

Thanks for your feedback!

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 33 guests