This week's book giveaway is in the General Computing forum.
We're giving away four copies of Learning Regular Expressions and have Ben Forta on-line!
See this thread for details.
Win a copy of Learning Regular Expressions this week in the General Computing forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

Handling JSF error messages at Apply Request Value Phase  RSS feed

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I'm using JSF 2.1.2 with Richfaces 4.

I'm trying to find a solution for the following problem.

- A user installs the 'Tamper Data' plugin for firefox (Used to intercept and modify http requests values when submitting forms).
- The user visits a page on my application and fills out some input fields. One of the input fields is a richfaces calendar component, they select a date from the calendar popup and the input field beside it is populated.
- They open the 'Tamper Data' plugin and select 'Start Tamper'.
- They submit the form (normal synchronous request).
- The use the Tamper Data plugin to add invalid charchters to some of the calendar components request values.
- The request is sent with tampered data to Bean.
- The page is returned with the following error messages displayed:


For the page the request is performed on, I have a <f:messages /> component

I believe this is happening due to the component values not been converted to the appropriate objects at the 'Apply Request Values' phase (Due to their values been tampered with).

I want to send users to a generic error page when these type of errors occur.

Options I have tried without any success include:
1:


2:
I created a custom converter on the calendar component but also is of no use.

Has anyone created something similar to handle JSF error messages at this 'Apply Request Values' phase?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!