form helper nice create/update but what about read

2 views
Skip to first unread message

Mike Henke

unread,
Nov 7, 2009, 4:54:07 PM11/7/09
to ColdFusion on Wheels
Hi,

I am working on a form which has crud. I am able to easily do the
create, delete with the same partial. When it comes to read, I wonder
if the form helpers should hand this also. maybe switch on readonly.
Then I could use the same partial for all three.

My partial is the code between the form start and end without the
submit button.

Any thoughts?

tpet...@gmail.com

unread,
Nov 8, 2009, 7:47:41 AM11/8/09
to ColdFusion on Wheels
if i'm reading you correctly, what you want to do is display a
readonly form to the user in the read action?

personally i don't think that that's a good idea. what happens if you
have a form field that has a size of 50 but a maxlength of 255? if the
property value for that field is 75 then the user is only going to see
the first 50 characters in the field and have to scroll the field to
see the other 25.

Mike Henke

unread,
Nov 8, 2009, 9:33:42 AM11/8/09
to ColdFusion on Wheels
True, I was thinking more about this last night. I used js to disable
all the fields for my demo.

Still I wonder if CFWheels form helpers could help display an
individual record using the same partial to keep the code dry instead
of duplicated coding for an output page or the coder having to do a
bunch of cfelse statements.
Reply all
Reply to author
Forward
0 new messages