History | Log In     View a printable version of the current page. Get help!  
Issue Details [XML]

Key: JSF-20
Type: Bug Bug
Status: Open Open
Priority: Minor Minor
Assignee: Chad Brandon
Reporter: Leif Johansson
Votes: (View)
Watchers: (View)
Operations

If you were logged in you would be able to see more operations.
JSF cartridge

required readonly validation problem

Created: 26/Jul/06 12:07 AM   Updated: 01/Aug/06 12:24 AM
Component/s: None
Affects Version/s: None
Fix Version/s: None

File Attachments: 1. File readonly.diff (2 kb)



 Description   
If you tag a readonly action parameter as readonly _and_ required the validation javascript is full of errors. I'm not sure if this is worth spending time on but maybe it should be checked for.

 All   Comments   Change History      Sort Order:
Comment by Samuel Solon [01/Aug/06 12:24 AM]
I just ran into this problem.

It's a little more annoying since I didn't seem able to convince the validation routines that the field was not required and/or doesn't need validation.

Since there was no input element generated for the readonly field, there is a javascript error getting the valie of the non-existent elemet which prevents the page from working.

I have attached the changes I made to 3.2 to not generate any validation for readOnly fields.

It works with my model but I have not done an extensive testing.

The change to the inputText tag in renderActionFormInput.vm didn't seem to have any effect (it was the first thing I tried) but I left it in for completeness and I don't understand ADF well enough to make a judgement that it shouldn't be there.