Discussions
Categories
- 197K All Categories
- 2.5K Data
- 546 Big Data Appliance
- 1.9K Data Science
- 450.8K Databases
- 221.9K General Database Discussions
- 3.8K Java and JavaScript in the Database
- 31 Multilingual Engine
- 552 MySQL Community Space
- 479 NoSQL Database
- 7.9K Oracle Database Express Edition (XE)
- 3.1K ORDS, SODA & JSON in the Database
- 556 SQLcl
- 4K SQL Developer Data Modeler
- 187.2K SQL & PL/SQL
- 21.4K SQL Developer
- 296.4K Development
- 17 Developer Projects
- 139 Programming Languages
- 293.1K Development Tools
- 110 DevOps
- 3.1K QA/Testing
- 646.1K Java
- 28 Java Learning Subscription
- 37K Database Connectivity
- 161 Java Community Process
- 105 Java 25
- 22.1K Java APIs
- 138.2K Java Development Tools
- 165.3K Java EE (Java Enterprise Edition)
- 19 Java Essentials
- 162 Java 8 Questions
- 86K Java Programming
- 81 Java Puzzle Ball
- 65.1K New To Java
- 1.7K Training / Learning / Certification
- 13.8K Java HotSpot Virtual Machine
- 94.3K Java SE
- 13.8K Java Security
- 205 Java User Groups
- 24 JavaScript - Nashorn
- Programs
- 473 LiveLabs
- 39 Workshops
- 10.2K Software
- 6.7K Berkeley DB Family
- 3.5K JHeadstart
- 5.7K Other Languages
- 2.3K Chinese
- 175 Deutsche Oracle Community
- 1.1K Español
- 1.9K Japanese
- 233 Portuguese
Session state protection violation: This may be caused by manual alteration of protected page item

Hi Everyone,
I am back with the age old question above. There are forum posts dating back to APEX 4 asking this. I want to keep the look of my radio groups and checkboxes while making them read only so hidden or display only will not achieve what I want. I got what I wanted by setting the read only property to always. This throws the error in the image below.
If I set Unwind Customer so it is not read only, it works. What is interesting is that the left side does not have this problem. I set all the items to read only on the left side and I can submit with no error. I am not manipulating any of these items. They are just there so that the left side and right side forms look the same. Initially users were supposed to be able to modify the entire right side but my end users changed their minds........ I'm sure they'll change their minds again so I am leaving everything as read only for now.
There is no debug message. Nothing comes on the console. I just get the error on screen. There is not javascript manipulating that data. Any help would be appreciated.
Answers
-
Set page item > custom attributes to "readonly".
-
Did not seem to work. For P10_UNWIND_CUST_1, I set as follows
When I submit I get the same error.
-
You can set an item's value that was set to be read only.
Just to get it straight, You need to prevent users from setting a checkbox/radio group on the client side, but you need to be able to set their session state, right?
- Have you tried disabled="disabled"?
-
In the original image, I want the right side items to be read only like the left side items. I am not using any of those values or setting them. They are just for looks.
The issue is when I set the radio groups and checkboxes on the right side to read only, I get the session state violation error, but I am not altering any of those items.
-
In the original image, I want the right side items to be read only like the left side items. I am not using any of those values or setting them. They are just for looks.
The issue is when I set the radio groups and checkboxes on the right side to read only, I get the session state violation error, but I am not altering any of those items.
- Have you tried disabled="disabled"?
Does this option exist for radio groups and checkboxes? Do you mean I should copy paste that somewhere?
-
Search for "P10_UNWIND_CUST_1" in the page designer to ensure you did not write any code at some point that sets it's value.
- disabled="disabled" should be written into "custom attributes" attribute like you did with "readonly", but you won't need it if you're not setting the items' values. Read only = always is adequate unless we can not figure out the problem.
- running page in debug mode will get you more information about the problem.
-
Simply turn off "Send On Page Submit" under settings of that item and it should work.
-
That's work fine !!