You need to sign in to do that
Don't have an account?
Inputtextarea with styleClass not updating value in controller
Hello.
I have been looking at an unusual situation.
I have a visualforce page with some inputtextareas with a style. When loading the page, it works fine as in getting the values from the controller. When the user changes this values on the page and submits the form, the values are not being set!
The unusual thing is that when I remove the class from the inputtextarea, it works perfectly, but if I keep the class not so much.
Here is an example of a textarea input and the Css code:
<!-- Input textarea --> <div class="title-form text-bold">Title:</div> <apex:inputtextarea styleClass="input-textarea" id="msg6" value="{!button.Message_title__c}" rows="2" cols="100"/>
When the form is submited I have a script that verifies if the input is not empty.
If someone could help me find a workaround for this I would be very thankful.
Best Regards,
ACB
Hello ACB,
Try like this:
<apex:page>
<apex:stylesheet value="{!$Resource.TestStyles}"/>
<apex:outputText value="Styled Text in a sample style class" styleClass="sample"/>
</apex:page>
I am wondering how are you including the <Div> tag in visual force.
Hello Vinirta_SFDC
I'm not sure I understand what you mean, I have the CSS code in my page, its goes something like this:
The problem is in the inputtext, that is not working with the CSS class.