You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@wicket.apache.org by br...@gmail.com on 2008/09/23 23:39:08 UTC

Throw IllegalStateException on subsequent calls of initializeComponents()

Shouldn't wicket throw an IllegalStateException on subsequente calls of  
Application.initializeComponents().

Afterall,

/**
* THIS METHOD IS NOT PART OF THE WICKET PUBLIC API. DO NOT CALL.
*
* Initializes wicket components.
*/
public final void initializeComponents() { ... }

Is there any reason to not throw this exception? Or simply, return if it is  
been called a second time, giving a warning.

cheers
Bruno

Re: Throw IllegalStateException on subsequent calls of initializeComponents()

Posted by Igor Vaynberg <ig...@gmail.com>.
add an rfe into jira

-igor

On Tue, Sep 23, 2008 at 2:39 PM,  <br...@gmail.com> wrote:
> Shouldn't wicket throw an IllegalStateException on subsequente calls of
> Application.initializeComponents().
>
> Afterall,
>
> /**
> * THIS METHOD IS NOT PART OF THE WICKET PUBLIC API. DO NOT CALL.
> *
> * Initializes wicket components.
> */
> public final void initializeComponents() { ... }
>
> Is there any reason to not throw this exception? Or simply, return if it is
> been called a second time, giving a warning.
>
> cheers
> Bruno
>