Re: Easier/simplier way to do read-only versions of pages?

2007-09-17 Thread Geoffrey Gallaway
Right, but that's exactly what I want to avoid. I don't want the user to see that there is a field there. Example: flickr. By default you see only text for photos except the ones you own.. then the field becomes editable if you click on it. Thanks, Geoffeg On Sep 16, 2007, at 11:23 PM,

Re: Easier/simplier way to do read-only versions of pages?

2007-09-17 Thread Paul Benedict
I haven't used the feature yet. But does a readOnly form print the text for text fields? I'd like to know. On 9/17/07, Geoffrey Gallaway [EMAIL PROTECTED] wrote: Right, but that's exactly what I want to avoid. I don't want the user to see that there is a field there. Example: flickr. By

Re: Easier/simplier way to do read-only versions of pages?

2007-09-17 Thread Dave Newton
--- Geoffrey Gallaway [EMAIL PROTECTED] wrote: Right, but that's exactly what I want to avoid. I don't want the user to see that there is a field there. Example: flickr. By default you see only text for photos except the ones you own.. then the field becomes editable if you click on it.

Re: Easier/simplier way to do read-only versions of pages?

2007-09-17 Thread Geoffrey Gallaway
On Sep 17, 2007, at 9:57 AM, Dave Newton wrote: That's not what most people think you mean when you say a read-only field. What you need to do is render either a tag or simple text depending on J. Random Criteria (although you might be able to get away with a read-only field and a borderless

Re: Easier/simplier way to do read-only versions of pages?

2007-09-16 Thread Paul Benedict
Struts 1.3 contains a readonly attribute on the Form element. If you set it to true, all inner components will render without the ability to accept input. Much easier than you think :) Paul On 9/14/07, Angelo zerr [EMAIL PROTECTED] wrote: Hi, You could use Formview Taglib. See at

Easier/simplier way to do read-only versions of pages?

2007-09-14 Thread Geoffrey Gallaway
Hello, I've been looking for a solution that allows me to create form and read-only versions of the same page. Each page will have a version where a logged-in user can enter the data and a version where a non logged in user will only be able to view the data. This is my current solution:

Re: Easier/simplier way to do read-only versions of pages?

2007-09-14 Thread Angelo zerr
Hi, You could use Formview Taglib. See at http://formview.sourceforge.net/ With Formview you can manage any fields mode (READONLY, READWRITE, INVISIBLE...) on server side. With Formview you must not use javascript or not use a lot of logic:equal. For instance of you have JSP, like this :