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 9170531
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T16:02:11+00:00 2026-06-17T16:02:11+00:00

I am new to Web development, primefaces and stackoverflow. I am not even sure

  • 0

I am new to Web development, primefaces and stackoverflow.
I am not even sure if I am allowed to ask generic questions like this here, but I thought I give it a shot since it is driving me crazy!!

So I am using Primefaces schedule component to develop a scheduler. This scheduler reads events for each day from a database, and displays it on the scheduler. of course users are able to add/edit/delete these events by clicking on the date and a dialog opens and user manipulates the data.

It’s a shift scheduler, so the number of shifts per day is limited and consistent (and mandatory). For example, everyday has a

1) moderator (MM)
2) morning security guard (MSG)
3) afternoon security guard (ASG)
4) overnight security guard (NSG)

it’s only a matter of who takes these shifts, otherwise these shifts must be filled in 2 days in advance. So what I would like to do is

1) read data from DB and populate the day with those that are already assigned (easy)
2) if they are not assigned yet, show an empty field (not from database anymore, a view only event)

such as

Wednesday     Thursday        Friday    
MM  bob       MM  mike        MM    <empty>
MSG mike      MSG john        MSG   <empty>
ASG john      ASG <empty>     ASG   <empty>
NSG dave      NSG bob         NSG   <empty>

here, all those that are assigned already are read from the database, but I have no idea how to display those that are not yet assigned. Note that they are not in the database, they are just in the view until a user clicks on it to assign it to himself.

Any suggestion, peace of code, or any other help would be very much appreciated. Even if you know a better choice (than primefaces), feel free to let me know.

  • 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-06-17T16:02:12+00:00Added an answer on June 17, 2026 at 4:02 pm

    My suggestion would be to retrieve the values from database and loop them. When you should have a value for a specific date, and you don’t (because not in database) then add an empty one (to the variable in your bean)
    Or you could instantiate a whole list of empty entries in your bean (constructor) and when retrieving results from database, loop them and add then (replace the empty one) to you bean variable. That way you end up with a list of empty and filled in spots.
    How do you read in these values from database? Is it a list?

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

Sidebar

Related Questions

I am somewhat new to web development, so I'm not sure how stupid this
new to web development, here. I have a form like this: <form name=myForm id=myForm
I'm new to web development, I'm sure there's a simple answer to this, but
I'm fairly new to web development and I'd like to think I am getting
I am completely new to Web Development, still a student. Kindly bare this extremely
I'm new to web development, so I apologize if this question is noobish. I
I am completely new to web development, so please forgive me in case this
I'm very new to web development and I know this might be stupid approach
Firstly I'm very new to web development so forgive me if this is a
I'm new to web development (though not new to WinForms developmet) and I wanted

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.