calendar with showOn="both" dosn't render popup icon

UI Components for JSF
Post Reply
User avatar
kwintesencja
Posts: 316
Joined: 08 Feb 2010, 20:33
Location: Brazil

17 Aug 2010, 05:24

Hello to everyone,

im trying to use p:calendar with a predefined popupIcon but my icon isn't rendered when i use the property showOn="both", the icon is rendered properly when i use showOn="button". Can anyone reproduce this bug?

some code below

Code: Select all

<p:calendar id="date" value="#{addBean.finance.date}" pattern="dd/MM/yyyy" effect="drop" effectDuration="0.5"  showOtherMonths="true"  readOnlyInputText="true" timeZone="America/Sao_Paulo" locale="pt_BR" navigator="true" showOn="both"  popupIcon="../resources/images/calendar.png"/>
it renders a button without my icon as in the image below.

Image

thanks in advance!
Last edited by kwintesencja on 17 Aug 2010, 17:55, edited 1 time in total.
Att,

--

Rafael Mauricio Pestano


Primefaces 5.x + JavaEE7(Glassfish 4.x and Wildfly 8)
Conventions Framework
Blog
@realpestano

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

17 Aug 2010, 16:13

What is the rendered html regarding p:calendar?

User avatar
kwintesencja
Posts: 316
Joined: 08 Feb 2010, 20:33
Location: Brazil

17 Aug 2010, 18:06

Hi Cagatay,


here is the code:

Code: Select all

<td><span id="main_form:date" class="calendar"><input id="main_form:date_input" name="main_form:date_input" type="text" readonly="readonly" /></span><script type="text/javascript">jQuery(function(){widget_main_form_date = new PrimeFaces.widget.Calendar('main_form:date', {popup:true,locale:'pt_BR',dateFormat:'dd/mm/yy',changeMonth:true,changeYear:true,showAnim:'drop',duration:'0.5',showOn:'both',showOtherMonths:true,selectOtherMonths:false});});</script></td>

and here is the code when i use showOn="button" and the icon is rendered properly

Code: Select all

<td><span id="main_form:date" class="calendar"><input id="main_form:date_input" name="main_form:date_input" type="text" readonly="readonly" /></span><script type="text/javascript">jQuery(function(){widget_main_form_date = new PrimeFaces.widget.Calendar('main_form:date', {popup:true,locale:'pt_BR',dateFormat:'dd/mm/yy',changeMonth:true,changeYear:true,showAnim:'drop',duration:'0.5',showOn:'button',buttonImage:'../resources/images/calendar.png',buttonImageOnly:false,showOtherMonths:true,selectOtherMonths:false});});</script></td>
Att,

--

Rafael Mauricio Pestano


Primefaces 5.x + JavaEE7(Glassfish 4.x and Wildfly 8)
Conventions Framework
Blog
@realpestano

User avatar
kwintesencja
Posts: 316
Joined: 08 Feb 2010, 20:33
Location: Brazil

25 Aug 2010, 16:35

Hi there, i just want to know if this is a bug or i am doing something wrong. Anyone can reproduce it? can i use popup button AND focus on calendar or its not allowed?

thanks in advance.
Att,

--

Rafael Mauricio Pestano


Primefaces 5.x + JavaEE7(Glassfish 4.x and Wildfly 8)
Conventions Framework
Blog
@realpestano

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

26 Aug 2010, 00:04

Please create an issue ticket so we can look in detail.

User avatar
kwintesencja
Posts: 316
Joined: 08 Feb 2010, 20:33
Location: Brazil

26 Aug 2010, 05:18

issue created 1179
Att,

--

Rafael Mauricio Pestano


Primefaces 5.x + JavaEE7(Glassfish 4.x and Wildfly 8)
Conventions Framework
Blog
@realpestano

User avatar
vellgarath
Posts: 4
Joined: 03 Nov 2010, 10:59

03 Nov 2010, 11:05

Hi, this is my firft time that write here, and I have a problem...

I have the same error with de p:calendar, because I use primefaces 1.1 (I cant use the version 2 because that version not support the WAS server)... there is some solution to save this problem in the version 1.1 or I have to leave the button with the 3 points?

Thank you so much for all

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

03 Nov 2010, 11:39

Hi, 1.x is not developed and maintained anymore.

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 26 guests