Why don't you just have a separate form wrapping your table ? Seems like the
easiest solution to me. Maybe I've missed something though.

On 10/5/06, Vinicius Carvalho <[EMAIL PROTECTED]> wrote:

Hi there Jesse! It's a master detail page: So I have a form to
register/update Seminars, and a Table with all the Seminars registred
so far.
As any form, it has validation on many fields. So, when I get a
pagination, and the user clicks on the navigation, the page renders
with errors from the validators.
I understand (or at least I believe I did) the reason for the submit,
once it submit the form, the values are preserved through navigation.
What I was expecting is that inside the table component it would clear
my delegate from any errors so no errors should be presented since I'm
not trying to persist my Entity...
I solved this on the onchage of the PropertySelection for instance, by
adding a few lines to my onRefresh method:
getDelegate().clear(); :D

For this issue with the Table component I removed every validator
bound to my form, and used manual validation on my listener:

public void onSave(){
validate(getDelegate());
}

private void validate(ValidationDelegate delegate){
//validate fields, and record errors on the delegate object
}

But would be real nice If the table component had a property like:
skipValidation="true/false" and if possible, somehow clear the
delegate / skip validation.

Anyway I've solved the issue no problems, thanks once again for all
support. I hope this demonstrates my scenario.

Regards
On 10/2/06, Jesse Kuhnert <[EMAIL PROTECTED]> wrote:
> I'm not sure what the original problem was now.
>
> Can you show a clear example of what you expect vs what is happening?
>
> On 10/2/06, Vinicius Carvalho <[EMAIL PROTECTED]> wrote:
> >
> > Still stuck on this, I'm moving to the coding each validator on hand,
> > dumping the automatic validation. I'm just sad, cuz my form has a lot
> > of validators, and It's taking quite some time, I wish it had a better
> > way...
> >
> > Regards
> >
> > On 9/29/06, Vinicius Carvalho <[EMAIL PROTECTED]> wrote:
> > > I belive this is the reason for the problem:
> > >
> > > <span jwcid="detailForm">
> > >
> > > <input jwcid="[EMAIL PROTECTED]"/>
> > >
> > > </span>
> > > <span jwcid="tableForm">
> > >
> > > <table>
> > > some checkboxes nested inside
> > > </table>
> > >
> > > </span>
> > >
> > > problem is, when I click on the imagesubmit it submits the first
form,
> > > tried to override it by using a javascript onclick =
> > > "document.forms['tableForm'].submit()"
> > >
> > > but it seems to have no effect at all :(
> > >
> > > Any help would be real nice :)
> > >
> > > Regards
> > >
> > > On 9/29/06, Vinicius Carvalho <[EMAIL PROTECTED]> wrote:
> > > > Jesse I tried this, but I'm stuck in something Im sure its a dumb
> > > > mistake from my self. Having two forms, now, the checkbox I have
on
> > > > the table does not updates the object field as it did before when
the
> > > > table was nested inside the same form as the detail form...
> > > >
> > > > Any hints?
> > > >
> > > > Regards
> > > >
> > > > On 9/28/06, Jesse Kuhnert <[EMAIL PROTECTED]> wrote:
> > > > > Why don't you just separate the table from your other form and
have
> > two
> > > > > forms instead? Most of the form based functionality of the table
is
> > best
> > > > > realized when doing things like providing a "search" component
or
> > nesting
> > > > > form fields within table columns. (Like checkboxes ..etc...Soon
to
> > be
> > > > > InlineEditBox s as well )
> > > > >
> > > > > On 9/28/06, andyhot <[EMAIL PROTECTED]> wrote:
> > > > > >
> > > > > > Vinicius Carvalho wrote:
> > > > > > > ouch... I guess I'll have to dump my validators ... and
validate
> > each
> > > > > > > input on the save button, those side effects are too
dangerous
> > for my
> > > > > > > screen.
> > > > > >
> > > > > > It's not as bad as it sounds. That's how Tap3 worked.
> > > > > > It simply made sure that on rewind you'd iterate over the same
> > elements
> > > > > > you had during render - it would throw stale link exception
> > otherwise.
> > > > > >
> > > > > > So, if that's never happens in your case, go ahead and try it.
> > > > > >
> > > > > > >
> > > > > > > :(
> > > > > > >
> > > > > > > Regards
> > > > > > >
> > > > > > > On 9/28/06, andyhot <[EMAIL PROTECTED]> wrote:
> > > > > > >> Vinicius Carvalho wrote:
> > > > > > >> > onrefresh did not work... :( I've noticed that the links
> > points to a
> > > > > > >> > Tapestry javascript function: Tapestry.submitform. Just
one
> > question,
> > > > > > >> > why pagination invokes a form submission?
> > > > > > >>
> > > > > > >> cause otherwise you would lose the updated inputs. This was
the
> > > > > > original
> > > > > > >> idea,
> > > > > > >> before refresh or cancel listeners existed.
> > > > > > >>
> > > > > > >> You can try setting volatile="true" in your form. This is :
> > > > > > >> "Only active in a form. Determines whether to avoid
creating
> > hidden
> > > > > > >> fields within a form.
> > > > > > >> Using this parameter may make the form structure different
> > during
> > > > > > render
> > > > > > >> and rewind,
> > > > > > >> and cause exceptions as a result. Please use with caution."
> > > > > > >>
> > > > > > >> As a sideffect, it forces normal links to be displayed
(instead
> > of form
> > > > > > >> submiting ones)
> > > > > > >>
> > > > > > >> > Any ideas on how to clear the delegate messages?
> > > > > > >> >
> > > > > > >> > Regards
> > > > > > >> >
> > > > > > >> > On 9/28/06, Vinicius Carvalho <[EMAIL PROTECTED]>
> > wrote:
> > > > > > >> >> Hello there! When using the pagination of the
contrib:table
> > that is
> > > > > > >> >> inside a form it is displaying errors of my validation
> > delegate
> > > > > > >> (since
> > > > > > >> >> the form fields are blank). I override this with the
> > property
> > > > > > >> >> selection using a onRefresh method, does it work for
contrib
> > as
> > > > > > well?
> > > > > > >> >>
> > > > > > >> >> Regards
> > > > > > >> >>
> > > > > > >> >> --
> > > > > > >> >> IBM Certified SOA Solution Designer
> > > > > > >> >>
> > > > > > >> >
> > > > > > >> >
> > > > > > >>
> > > > > > >>
> > > > > > >> --
> > > > > > >> Andreas Andreou - [EMAIL PROTECTED] -
http://andyhot.di.uoa.gr
> > > > > > >> Tapestry / Tacos developer
> > > > > > >> Open Source / J2EE Consulting
> > > > > > >>
> > > > > > >>
> > > > > > >>
> > ---------------------------------------------------------------------
> > > > > > >> To unsubscribe, e-mail:
[EMAIL PROTECTED]
> > > > > > >> For additional commands, e-mail:
[EMAIL PROTECTED]
> > > > > > >>
> > > > > > >>
> > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > > > --
> > > > > > Andreas Andreou - [EMAIL PROTECTED] -
http://andyhot.di.uoa.gr
> > > > > > Tapestry / Tacos developer
> > > > > > Open Source / J2EE Consulting
> > > > > >
> > > > > >
> > > > > >
> > ---------------------------------------------------------------------
> > > > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > > > For additional commands, e-mail:
[EMAIL PROTECTED]
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > > > --
> > > > > Jesse Kuhnert
> > > > > Tapestry/Dojo/(and a dash of TestNG), team member/developer
> > > > >
> > > > > Open source based consulting work centered around
> > > > > dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com
> > > > >
> > > > >
> > > >
> > > >
> > > > --
> > > > IBM Certified SOA Solution Designer
> > > >
> > >
> > >
> > > --
> > > IBM Certified SOA Solution Designer
> > >
> >
> >
> > --
> > IBM Certified SOA Solution Designer
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> --
> Jesse Kuhnert
> Tapestry/Dojo/(and a dash of TestNG), team member/developer
>
> Open source based consulting work centered around
> dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com
>
>


--
IBM Certified SOA Solution Designer
IBM Database Associate - DB2 UDB V8.1 Family

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
Jesse Kuhnert
Tapestry/Dojo/(and a dash of TestNG), team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com

Reply via email to