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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T21:36:05+00:00 2026-06-14T21:36:05+00:00

The issues I am having is with the prime faces calendar input field. At

  • 0

The issues I am having is with the prime faces calendar input field.
At you moment I have it working fine using the popup button. So you click the button and the calendar appears so you can select a date. The required affect for the page I’m working on however is that the calendar will appear when the input field has focus.

On the Primesfaces Calendar Showcase the functionality I’m looking for is shown in the example labeled “Popup”.

From the examples on the site I assumed, possibly naively, that all i had to do to change from button to focus activated calendar was to remove the showOn=”button” attribute.

Before:

                    <p:calendar id="fldDateOfBirth"
                    value="#{pc_CreatePatient.patient.dateOfBirth}"
                    binding="#{pc_CreatePatient.dobComp}" navigator="true"
                    display="inline" pattern="dd/mm/yyyy" yearRange="-100"
                    title="#{msg.user_date_format_default_tip}" showOn="button" />

After:

                    <p:calendar id="fldDateOfBirth"
                    value="#{pc_CreatePatient.patient.dateOfBirth}"
                    binding="#{pc_CreatePatient.dobComp}" navigator="true"
                    display="inline" pattern="dd/mm/yyyy" yearRange="-100"
                    title="#{msg.user_date_format_default_tip}"/>

After making the change the portlet doesn’t render at all and the logs hold the error information below:

[11/19/12 18:47:30:942 GMT] 00000043 RpmMaintainUs E RpmExceptionHandler handle Throwable=>class java.lang.IllegalArgumentException<==>component identifier must not be a zero-length Stringnent identifier must not be a zero-length Stringcomponent identifier must not be a zero-length String

Thank you in advance for any help with this.

  • 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-14T21:36:06+00:00Added an answer on June 14, 2026 at 9:36 pm

    I found that the solution to my problem was that to markup a calendar input field without a button you need to remove a number of attributes. I originally thought that you only needed to remove ‘showOn=”button”‘ but I also had to remove ‘display=”inline”‘ to get it to work. Final mark up below:

                        <p:calendar id="fldDateOfBirth"
                        value="#{pc_CreatePatient.patient.dateOfBirth}"
                        binding="#{pc_CreatePatient.dobComp}" navigator="true"
                        pattern="dd/mm/yyyy" yearRange="-100"
                        title="#{msg.user_date_format_default_tip}"/>
    

    I realise this is probably a rookie issue but I have to say I didn’t find the primefaces website very helpful in the actual implementation of some of it’s toys. If anyone has any good sites or tutorials for the primefaces library please add to the comments.

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

Sidebar

Related Questions

Im having issues vertically positioning text inside of a text input field in Firefox.
Am having issues with printing different sized PDF's using GhostScript (V9.05). The PDF in
Im having issues getting this to work, maybe its not even possible? I have
I am having issues passing a dynamic parameter to a JavaScript function using innerHTML.
I am having some trouble with using h:selectOneRadio . I have a list of
I am having some issues coming up with the correct answer using OpenSSL's BIGNUM
I am having some issues creating the code which should show a button only
I was having issues in printing a series of prime numbers from one to
The problem I am having is with the PrimesFaces 3.4.1 calendar. When using the
I am having issues with using in_array() inside a foreach loop. Not sure if

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.