Re: A question about IHeaderContributor

2008-05-14 Thread nate roe
Well I made a new behavior, extending AbstractBehavior implementing
IHeaderContributor.  I gave this behavior a reference to the Form that might
have errors, and I added the behavior to the Page on which the Form lives.
In this case, the behavior's renderHead(...) is called as expected.

I'm not going to open a JIRA because I'm not completely sure this is a bug
and I can't easily switch to Wicket 1.3 to confirm that it still exists.
The question though, is, "can a Component implement IHeaderContributor
successfully?"

On Wed, May 14, 2008 at 12:03 PM, Gerolf Seitz <[EMAIL PROTECTED]>
wrote:

> gotcha, thx
>
> On Wed, May 14, 2008 at 6:40 PM, Eelco Hillenius <
> [EMAIL PROTECTED]>
> wrote:
>
> > >> If you think it is a bug, please open a JIRA
> > >> issue for it.
> > >
> > >
> > > didn't we EOL Wicket 1.2.x?
> > >
> >
> http://martijndashorst.com/blog/2008/03/23/wicket-127-the-last-maintenance-release/
> >
> > Yeah, I actually meant for Wicket 1.3 and up, because the bug is in
> > there as well.
> >
> > Eelco
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>


Re: A question about IHeaderContributor

2008-05-14 Thread Gerolf Seitz
gotcha, thx

On Wed, May 14, 2008 at 6:40 PM, Eelco Hillenius <[EMAIL PROTECTED]>
wrote:

> >> If you think it is a bug, please open a JIRA
> >> issue for it.
> >
> >
> > didn't we EOL Wicket 1.2.x?
> >
> http://martijndashorst.com/blog/2008/03/23/wicket-127-the-last-maintenance-release/
>
> Yeah, I actually meant for Wicket 1.3 and up, because the bug is in
> there as well.
>
> Eelco
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: A question about IHeaderContributor

2008-05-14 Thread Eelco Hillenius
>> If you think it is a bug, please open a JIRA
>> issue for it.
>
>
> didn't we EOL Wicket 1.2.x?
> http://martijndashorst.com/blog/2008/03/23/wicket-127-the-last-maintenance-release/

Yeah, I actually meant for Wicket 1.3 and up, because the bug is in
there as well.

Eelco

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



Re: A question about IHeaderContributor

2008-05-14 Thread Johan Compagner
as long as eelco wants to fix it i dont mind

On Wed, May 14, 2008 at 9:59 AM, Gerolf Seitz <[EMAIL PROTECTED]>
wrote:

> On Wed, May 14, 2008 at 2:33 AM, Eelco Hillenius <
> [EMAIL PROTECTED]>
> wrote:
>
> > If you think it is a bug, please open a JIRA
> > issue for it.
>
>
> didn't we EOL Wicket 1.2.x?
>
> http://martijndashorst.com/blog/2008/03/23/wicket-127-the-last-maintenance-release/
>
>  Gerolf
>


Re: A question about IHeaderContributor

2008-05-14 Thread Gerolf Seitz
On Wed, May 14, 2008 at 2:33 AM, Eelco Hillenius <[EMAIL PROTECTED]>
wrote:

> If you think it is a bug, please open a JIRA
> issue for it.


didn't we EOL Wicket 1.2.x?
http://martijndashorst.com/blog/2008/03/23/wicket-127-the-last-maintenance-release/

  Gerolf


Re: A question about IHeaderContributor

2008-05-13 Thread Eelco Hillenius
On Tue, May 13, 2008 at 5:28 PM, nate roe <[EMAIL PROTECTED]> wrote:
> I can try that I suppose.
>
>  The Javadoc for 1.2 seems to mention Component quite a lot though:
>  
> http://wicket.sourceforge.net/apidocs/wicket/markup/html/IHeaderContributor.html

Right. I guess I just lost track of what was implemented when. If the
docs say it and it doesn't work it might be a bug or you might be
overlooking something. If you think it is a bug, please open a JIRA
issue for it. Though I would think someone would have reported it
earlier, so pls make sure you check your code well.

Eelco

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



Re: A question about IHeaderContributor

2008-05-13 Thread nate roe
I can try that I suppose.

The Javadoc for 1.2 seems to mention Component quite a lot though:
http://wicket.sourceforge.net/apidocs/wicket/markup/html/IHeaderContributor.html

On Tue, May 13, 2008 at 5:22 PM, Eelco Hillenius <[EMAIL PROTECTED]>
wrote:

> I'm not sure, but I think in 1.2 you can only use this interface for
> behaviors. Am I right Matej/ others? Nate, can you try adding what you
> want as a behavior to the form?
>
> Eelco
>
> On Tue, May 13, 2008 at 4:33 PM, nate roe <[EMAIL PROTECTED]> wrote:
> > I'm using Wicket 1.2.
> >
> >  I have a Form that implements IHeaderContributor.  My intent is to use
> >  renderHead(Response) to write some JavaScript to the response.  The
> Form is
> >  added to the Page.  However, renderHead(...) on my Form is never
> called.
> >
> >  Am I using this interface incorrectly?
> >
> >  Thanks,
> >  Nate
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: A question about IHeaderContributor

2008-05-13 Thread Eelco Hillenius
I'm not sure, but I think in 1.2 you can only use this interface for
behaviors. Am I right Matej/ others? Nate, can you try adding what you
want as a behavior to the form?

Eelco

On Tue, May 13, 2008 at 4:33 PM, nate roe <[EMAIL PROTECTED]> wrote:
> I'm using Wicket 1.2.
>
>  I have a Form that implements IHeaderContributor.  My intent is to use
>  renderHead(Response) to write some JavaScript to the response.  The Form is
>  added to the Page.  However, renderHead(...) on my Form is never called.
>
>  Am I using this interface incorrectly?
>
>  Thanks,
>  Nate
>

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



A question about IHeaderContributor

2008-05-13 Thread nate roe
I'm using Wicket 1.2.

I have a Form that implements IHeaderContributor.  My intent is to use
renderHead(Response) to write some JavaScript to the response.  The Form is
added to the Page.  However, renderHead(...) on my Form is never called.

Am I using this interface incorrectly?

Thanks,
Nate