|
I will try to express myself better and I will add
bug report if needed.
In Wicket 1.1 I had a ValidatedForm class that
inherits from Form. That class does client form validation (uses fvalidate
scripts). The ValidatedForm needs to add the scripts (and css) to the Page
markup where the form is used. In Wicket I created ValidateForm.html with
<wicket:head>, put the scrripts there and use _javascript_Reference. With
Wicket 1.2 (beta) it doesn't work. The reason is that Wicket doesn't read the
associated markup for Form.
I think I can create new class out of
WebMarkupContainerWithAssociatedMarkup, add it as a member of my ValidatedForm
and in onComponentTagBody() call renderAssociatedMarkup(). But there should be
easier way.
I think, that the same problem applies to
FormComponent subclasses. If I want to tweak the Button with some clever scripts
but use it as Button in Java, I can't.
I hope I was clear enough, thanks, Jan
|
- [Wicket-user] Re: Wicket 1.2 and wicket:header jan_bar
- Re: [Wicket-user] Re: Wicket 1.2 and wicket:header Eelco Hillenius
- Re: [Wicket-user] Re: Wicket 1.2 and wicket:he... Johan Compagner
- [Wicket-user] Re: Re: Wicket 1.2 and wicke... jan_bar
- Re: [Wicket-user] Re: Re: Wicket 1.2 a... Juergen Donnerstag
- [Wicket-user] Re: Re: Re: Wicket ... jan_bar
- Re: [Wicket-user] Re: Re: Re:... Eelco Hillenius
- [Wicket-user] Re: Re: Re:... jan_bar
- Re: [Wicket-user] Re: Re:... Gili
