Hi Dario,
Would you mind posting your code?
MARK
Well... maybe I didn't explain myself very well. The thing is that I
wanted a component that could act as an input of some type or as an
@Insert, depending on the context and some parameters. I just coded
it, I called it @InputOrInsert, and does exactly what I described. I
had a little difficulty catching the type of the object to bind to the
component, in order to display a DatePicker when it is of type
java.util.Date, but it's working now.
Thanks,
Dario
On 4/25/06, Shing Hing Man <[EMAIL PROTECTED]> wrote:
In case you did not know, the InsertText component (in
T3) has a parameter disabled.
On the confirmation page, you could just set the
disabled parameter to true. Note that, the value of a
disabled InsertText will be ignored when the form is
submitted. Please see the document for more details
http://jakarta.apache.org/tapestry/3.0.4/doc/ComponentReference/TextField.html
Shing
--- Darío Vasconcelos <[EMAIL PROTECTED]>
wrote:
I'm wondering what is the best and more elegant way
to solve a problem
that I guess we've all faced: there's an input form
that has 20+
fields, that on submit needs to go to a
"confirmation" page, which
shows the same 20+ fields to the user, so he can
review his inputs and
go back or commit them.
The obvious way to do it is to create two .html
pages that are almost
the same but one with @Insert fields and the other
one with
@TextFields, but I don't want to do that because the
number of fields
and the final HTML design will surely change often.
I also don't want to fill my .html with
@Conditionals for each field,
there should be a better option. If only there was a
component called
@InsertOrTextField that, depending on the value of
a, say, "inputMode"
parameter, would display an @Insert, @DatePicker, or
a @TextField.
I'm using TP3. Do you think I should try to code my
@InsertOrTextField
component or am I not seeing another obvious
solution?
Regards,
Dario
--
Times have not become more violent. They have just
become more televised.
Marilyn Manson
---------------------------------------------------------------------
To unsubscribe, e-mail:
[EMAIL PROTECTED]
For additional commands, e-mail:
[EMAIL PROTECTED]
Home page :
http://uk.geocities.com/matmsh/index.html
___________________________________________________________
To help you stay safe and secure online, we've developed the all new Yahoo!
Security Centre. http://uk.security.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Times have not become more violent. They have just become more televised.
Marilyn Manson
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]