escape special characters while rendering the values in JSF.
Purushotham Royal Pasupuleti
posted 3 years ago
I have an issue in JSF combination of special charactres wtih backing bean. In test.xhtml page there is password text field. while entering data with special characters combination in password text box(eg::: !%55Card) in xhtml page, we are mapping with backing bean object, but in backing bean object value going as (!UCard) as encoded value. Please suggest me how we can prevent from this scenario.
Actual value in xhtml is !%55Card, but its going to backing bean value as !UCard intead of '%55' its decode as 'U'.
So, Could you please suggest me how to escape special characters while rendering the values in JSF.