Hello,
You need to create a custom tab panel that will render all the tabs when
the page is rendered but only the active tab will have the 'display:
block' set which effectively hides the others.
Tab switching uses javascript for the 'onclick' action for the tab links
to switch which of the tabs is visible.
The form submission processing doesn't care about the javascript so all
of the fields on all of the tabs regardless of their visibility will be
submitted with the form.
For example I have a panel that uses a drop down choice to trigger the
input panel to display ; one option shows a text field for direct input
and the other allows the user to upload a file. On the server side the
value of the ddc is used to figure out which value to use.
Regards,
Mike
I'm also have a similar issues - I'm like to store user captures detail, but
only do validate when the entirely form is sumbitted, not when I'll switch
between tabs. Is this possibly?
The Pokker
Jörn Zaefferer-2 wrote:
Using JavaScript to "store" tabs means that all tabs are rendered at
once, so there is no need to store anything between switching tabs.
Jörn
On Mon, Sep 8, 2008 at 10:00 AM, thebeard <[EMAIL PROTECTED]>
wrote:
Thanks for your response Igor.
It makes sense that the validation for field type is done ie: if a String
is
entered but an int is expected.
Is there a simple way to conditionally bypass custom validation only eg:
String length less than 64 characters?
Also if we use javascript to switch tabs, how we can store the values
that
have been inputted.
Thanks
-The Beard
igor.vaynberg wrote:
you cannot bind non-validated input to your model objects. what
happens if your model object is of type integer but the user entered
"a", how do you store that?
the easiest way to accomplish what you want is to simply use
javascript tabs so switching tabs does not result in another request.
-igor
On Mon, Sep 8, 2008 at 12:02 AM, thebeard <[EMAIL PROTECTED]>
wrote:
We have a number of tabs that is contained within a single form. Each
of
the
tabs has some fields on them, but when we navigate from tab to tab, we
would
like to bypass validation BUT still have it bind to our property model
object.
Additionally we have 1 button on the form, which when submitted, should
do
validation across all the tabs.
We have tried changing the links to submit links in order to get it to
bind
to our property model and then setDefaultFormProcessing(false) in order
to
bypass the validation per tab, but this hasn't worked for us.
Any ideas would be appreciated,
Beardie
--
View this message in context:
http://www.nabble.com/Bypass-validation-conditionally-tp19366878p19366878.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
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]
--
View this message in context:
http://www.nabble.com/Bypass-validation-conditionally-tp19366878p19367605.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
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]