you can use SPEL concept to achieve this. Try to understand PPR concept explained in below link.
Set SPEL expression to Readonly property to the desired item instead of Rendered property in your case.
Thanks for your reply
My question is that the item what I want to make read only is not created in the time of development. today only I added by using page personalization.
As you telling use PPR but how can I get the item in my controller which I created by using personalization. can you give any site or doc where they explained this with example
We can change the bean properties in process form request method ( when user takes some action on page) using SPEL. Above PPR example will give you basic idea on how to use this and will help you to implement.
You don't need to get control of the item you created using personalization instead you have to set VO attribute value to either true or false.
Also check how to add VO dynamically to AM if you are personalizing the standard page ( you will find code snippets in this forum) , it will help you in linking the new VO ( created for SPEL) with base page AM.
The sample code is explaining the how to hide button, but My question is
I want to make message input text item as read only or make it as message styled text, and also I added this by using personalization. So is there any way to get the item in controller and I can write my logic for that item.