-
1. Re: rich:calendar to show only month and year, for credit ca
ilya_shaikovsky Sep 30, 2009 4:48 AM (in response to kipod)you could play with java script of the calendar in order to try to call only month selector and hide the calendar itself via css. But this not supported officially and we have no ready samples of such usage.
-
2. Re: rich:calendar to show only month and year, for credit ca
bloodcell2 Sep 30, 2009 6:45 AM (in response to kipod)Hi Ilya, thanks for the quick response.
Due to time constraints, I would settle for simply hiding the rich:calendar's grid of days, and showing only the top of the calendar, where you have the "month, year" info, and the ">" and ">>" arrows for changing the month and year.
Can this be accomplished easily using css ?
Thanks! -
3. Re: rich:calendar to show only month and year, for credit ca
bloodcell2 Sep 30, 2009 6:49 AM (in response to kipod)A thought - if this is indeed possible (hiding the grid of days), is there a way to auto-select the first of each month when the user chooses a year\month?
If you could kindly answer my question about hiding the grid of days, and maybe point me to where I can the JS source code\docs pertaining to the source code (I am a newbie) - that would be great. -
4. Re: rich:calendar to show only month and year, for credit ca
ilya_shaikovsky Oct 1, 2009 8:04 AM (in response to kipod)We tried with the next code for css
.special tr[id]{ display:none; }
And this is for calendar:
<rich:calendar showWeekDaysBar="false" showFooter="false" value="#{calendarBean.selectedDate}" oncurrentdateselected="event.rich.component.selectDate(event.rich.date)" popup="false" styleClass="special"/> <a4j:commandButton reRender="out" value="echo"></a4j:commandButton> <h:outputText value="#{calendarBean.selectedDate}" id="out" />
Seems works just as you need. button and output was added just for check selection date js after chaning the current month/year. -
5. Re: rich:calendar to show only month and year, for credit ca
bloodcell2 Oct 2, 2009 6:51 AM (in response to kipod)Ilya, awesome stuff !
Thanks a lot (kick ass support). -
6. rich:calendar to show only month and year, for credit card e
faisalgeek Jan 21, 2011 5:34 AM (in response to ilya_shaikovsky)Hi Ilya,
What would be trick to display only Month & Dates ?
-
7. Re: rich:calendar to show only month and year, for credit ca
gothicoil Mar 24, 2011 10:30 AM (in response to kipod)this :
.special tr[id]{ display:none; }
not work in ie6.
Somebody have a solution ?
-
8. Re: rich:calendar to show only month and year, for credit ca
gothicoil Mar 24, 2011 1:25 PM (in response to kipod)this not work in ie6, anybody have a something ?
[code]
.special tr#id {
display:none
}
[/code]
-
9. Re: Re: rich:calendar to show only month and year, for credit ca
bussard Jan 30, 2014 5:22 PM (in response to ilya_shaikovsky)For RichFaces 4 try something like this :
<rich:calendar showWeekDaysBar="false" showFooter="false" currentDate="#{variaveisInfoList.dataPeriodo}" value="#{variaveisInfoList.dataPeriodo}" oncurrentdateselect="event.rf.component.__selectDate(event.rf.data)" popup="false" styleClass="special"/> <a:commandButton render="out" value="echo"></a:commandButton> <h:outputText value="#{variaveisInfoList.dataPeriodo}" id="out" />