Up and including CQ 5.5 the Sling ValueMap can be used only for reading. For writing you have to use either JCR or the Sling PostServlet.
is there a way to set/update value property of a textfield in a component on my current page with a request attribute value, or can it be done through extJs.
I think you have to use ExtJs and set the value property of the widget representing the textarea
If you have a value in a request attribute, and you want to use it, then you have to do it on the server side, as the request attribute is a part of the serverside servlet API.
You should describe your usecase more in detail, so we can give you further advice.
Here is my usecase:-
I have product component placed on different pages.I am trying to reuse the values entered in akready droppped component so that if the same component is droppped again on another page their is no need for user to reenter all the details again in the component, rather he can reuse content already enetered for the same component on different pages by referencing component on that page.
I have achieved the first part:- refering a component on different page and access a property say :url
I am using paragraph reference widget for refering the component on other page and using resourceresolver and valuemap i could access the url property in the component's jsp.
2. Now i am trying to update all the referenece component properties in the current page component text fields. Say the url field that i have fetched from the reference component i am trying to update current page component url field with the furl field value that i have fetched from another componet.
I don't know how I can achieve this, i thought i would set the fetched url value in request and in current page component in edit mode i would set the url value from request so that once the user clicks edit mode url field is already prefilled with the reference component url field.
pls let me know how we could achieve this with extjs.What have seen id's generated by components are not fixed and keep on changing.