Bug in Calendar component?

UI Components for JSF
Post Reply
colm
Posts: 11
Joined: 05 Sep 2009, 00:43

30 Sep 2009, 22:30

Hi Civici,

I am currently using primefaces 0.9.2. I have noticed a potential bug in the Calendar component. The component offers a input parameter called "popupIcon", but this field is ignored in the calendar renderer.

Instead the calendar renderer always uses the default icon from Primefaces. The code in CalendarRenderer.java shows the problem.

writer.writeAttribute("src", ResourceUtils.getResourceURL(facesContext, DEFAULT_POPUP_ICON), null);

I would imagine that it was intended to use the popupIcon parameter instead of the default icon if the parameter was supplied into the tag?

We are having to use client side script to override the image icon on a page render. It would be preferable to use primefaces "out of the box" functionality.

Thank you

Colm

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

30 Sep 2009, 22:44

Hi colm, you're right, we added that attribute to make the icon customizable but turns out it's ignored. This is a trivial fix that'll be included in 0.9.3. Thanks for notifying us.

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

30 Sep 2009, 23:43

Good news, issue is fixed, please see;

http://code.google.com/p/primefaces/iss ... ail?id=233

You can get it via a 0.9.3-SNAPSHOT;

http://repository.prime.com.tr/org/prim ... -SNAPSHOT/

Thanks!

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 54 guests