SV: Error out in middle of page without filling in remaining components

2010-05-02 Thread Wilhelmsen Tor Iver
Let's say you encounter an error halfway through the constructor of a page, and you want to display error(error message) and then return without processing rest of components? It doesn't seem like this is possible in wicket because it makes you fill in all components or else it barfs. Am I

Error out in middle of page without filling in remaining components

2010-05-01 Thread jobiwan11
Let's say you encounter an error halfway through the constructor of a page, and you want to display error(error message) and then return without processing rest of components? It doesn't seem like this is possible in wicket because it makes you fill in all components or else it barfs. Am I

Re: Error out in middle of page without filling in remaining components

2010-05-01 Thread Jeremy Thomerson
you would have to fill in the component hierarchy. i suppose you could fill the rest of the components as invisible webmarkupcontainers, but this sounds very cumbersome. My typical mode of operation for this sort of thing is to do this: getSession().error(your error) throw new