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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T23:34:44+00:00 2026-06-05T23:34:44+00:00

I need color picker on my page. First, I placed Primefaces’ colorpicker, but when

  • 0

I need color picker on my page.
First, I placed Primefaces’ colorpicker, but when I tried to use it, I received “IllegalArgumentException: text/xml is not a supported mime type”. Probably this occurs because I use my own jquery library, which has no colorpicker element, and it overrides Primefaces’ one.

So, I tried it in other way. I used “jscolor” library which turns any input field to colorpicker. I got component:

<h:inputText value="#{searchManagedBean.selectedColor}" class="color"/>

It works perfectly, but when I submit form, value in backing bean doesn’t update. In backing bean I have getter and setter for this field, so I can’t figure out what is the reason of this problem.

Could you help me with one of these problems, or maybe provide another solution?
Thanks!

  • 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-05T23:34:45+00:00Added an answer on June 5, 2026 at 11:34 pm

    I found the solution. If I update the value in some other element, value in backing bean updates too. So, now I have something like this:

    <h:inputText value="#{searchManagedBean.selectedColor}" class="color">
        <p:ajax event="change" update="outcolor"/>
    </h:inputText>
    <h:outputText style="display: none" id="outcolor" value="#searchManagedBean.selectedColor}"/>
    

    For me, it’s very strange behaviour. I don’t know why it works, but it works!

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

Sidebar

Related Questions

I need to use some color picker in my application, so I searched google
I am using farbtastic color picker and working fine but now I need to
I need a Wordpress Theme Option page with color picker (farbtastic) to change any
I need to color events in calendar list view. I use _spbodyonloadfunctionnames.push(myFunction) , but
I need to add a color picker to some input elements. I'm using: $(".element").colorPicker(){
I need to have a JQuery color Picker, where I can change the different
How do I add a color picker in Komodo? I need to have a
i need change color of SystemTray.ProgressIndicator color, how i can do it? I tried
I need to set the color of the font every time I add text
I am using the jquery based eyeCon color picker(http://www.eyecon.ro/colorpicker/). When I click and drag

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.