Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6923669
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T10:33:53+00:00 2026-05-27T10:33:53+00:00

I want to have a feature such that when the user clicks on a

  • 0

I want to have a feature such that when the user clicks on a Date, the calendar will render the agendaDay view of that Date. I tried as following:

<p:schedule id="timetable" widgetVar="mySchedule" editable="true"
    allDaySlot="false" value="#{cc.attrs.managedBean.eventModel}" 
    dateSelectListener="#{mrBean.onDateSelect}" 
    onDateSelectUpdate="timetable" 
    initialDate="#{mrBean.initialDate}"
    view="#{mrBean.view}">
</p:schedule>

And this is my ManagedBean:

@Named(value = "mrBean")
@RequestScoped
public class MrBean {
    private ScheduleModel eventModel;
    private String        view;
    private Date          initialDate;

    public MrBean() {
        eventModel = new DefaultScheduleModel();
    }

    public void onDateSelect(DateSelectEvent selectEvent) {
        view        = "agendaDay";
        initialDate = selectEvent.getDate();
    } 

    // Getters and Setters 
} 

When I try to click on a Date, the whole calendar disappeared and I saw this string {"events" : []} on the browser.

I’d be very grateful if someone could show me where I have done wrong.

Best regards,

James Tran

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T10:33:54+00:00Added an answer on May 27, 2026 at 10:33 am

    http://forum.primefaces.org/viewtopic.php?f=3&t=1949

    This sums it up nicely. It is used for the initial load, but beyond that it isn’t functional. You can look to 3.0M4 which has a new model (and better model) for the schedule or you can do something sneaky like override the FC Calendar it is built on

    http://www.planbox.com/blog/development/coding/full-calendar-jquery-widget-simply-awesome.html

    via the “widgetVar” attribute so that when you fire a particular click it switches views. To be honest, that’s probably faster as well as it would happen client side and it already has all the data.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an already built application and I want to add a feature that
I don't want to have the security question and answer feature that ASP.Net Membership
I have a TabControl that allows users to manage documents such as the following:
I'm working on a feature that will allow a user to click onto a
I want my language to have two features that make Python such a nicely
I like to have a feature in my website such as If a user
I want to have a feature to submit several forms on a page when
I want to have a one-click excel export feature for my application. I therefore
Suppose I have this feature branch foo. Now I want to merge it back
I have a simple jsp/servlet application and I want to add AJAX feature to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.