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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T09:06:21+00:00 2026-06-17T09:06:21+00:00

Based on the value of the inputHidden field, certain functionality should be performed on

  • 0

Based on the value of the inputHidden field, certain functionality should be performed on the javascript side.

<h:inputHidden id="onlyCaseSensitive" value="#{testBean.isPageAllowed()}"/> 

Afer the javascript is executed, the application throws an error
Property not qritable Illegal Syntax for Set Operation

  • 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-17T09:06:22+00:00Added an answer on June 17, 2026 at 9:06 am

    the application throws an error Property not writable Illegal Syntax for Set Operation

    Your EL expression #{} is invalid. It must evaluate as a value expression, not as a method expression. It isn’t possible to perform a setter method call on the given method expression, while that’s required when the JSF form is to be submitted. You need to remove the is prefix and those parentheses to make it a valid value expression.

    <h:inputHidden id="onlyCaseSensitive" value="#{testBean.pageAllowed}"/> 
    

    This requires a public boolean isPageAllowed() getter method and a public void setPageAllowed(boolean pageAllowed) setter method.


    If you actually only need to use the JSF managed bean property as a JavaScript variable, then you shouldn’t be rendering it as a hidden input at all, but just let JSF render a fullworthy JavaScript variable without the need to mess with hidden inputs and HTML DOM traversal.

    E.g.

    <script>
        var onlyCaseSensitive = #{testBean.pageAllowed};
    </script>
    

    This will end up in the JSF generated HTML output like as follows (rightclick page and do View Source to see it):

    <script>
        var onlyCaseSensitive = true;
    </script>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a loop where i create some string value based on certain conditions.
I have a javascript function that currently changes the Submit action based on value
I have a datatable. I need to fetch a certain column value based on
Are javascript objects value based or reference based? For example: obj1.list =new array(); //
I have the following submit handler which should lookup for some value based on
I want to select a value based on different column in SQL Server, say
I want to print an attribute value based on its name, take for example
i want to sort dictionary based upon value of each dictioanry item.but if i
I have a dynamically created GirdView based on value of a DropDownList. I use
I need to convert a number to another value based on a range: ie:

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.