[Wicket-user] inconsistent exception

2006-09-03 Thread Tomer Mevorach
Hi, My application works fine most of the time, however, sometimes an exception indicating a mismatch between java and html component's hierarchy is thrown. I can't think of a test case that generates this exception as it is thrown inconsistently. can anyone please help figure out the problem.

[Wicket-user] wicket-spring-annot: SpringComponentInjector problem...

2006-09-03 Thread Erik Brakkee
Hi, I have done some work to locate the Spring application context in another way. Both wicket-spring and wicket-spring-annot assume that the application context can be obtained with WebApplicationContextUtils.getRequiredApplicationContext(aServletContext). Luckily, it is easy to write my own IW

[Wicket-user] Markup cache

2006-09-03 Thread Tim Fletcher
Hi, in Wicket 1.2.2, is there any way of manually refreshing the markup cache. I know this has been discused previously, and methods for doing this in 2.0 (and perhaps 1.3) have been discused. The markup for my compenents is being generated by a database, and I would like to be able to tell wicket

[Wicket-user] wicket-spring-annot: behavior when bean not found...

2006-09-03 Thread Erik Brakkee
Hi, Just to experiment, I removed a bean definition from my spring configuration files but kept the @SpringBean annotation. What happened was that a non-null object was still injected (a proxy). Only after dereferencing it a Null pointer exception occurred. How about the following behavior to ma

Re: [Wicket-user] wicket-spring-annot: behavior when bean not found...

2006-09-03 Thread Erik Brakkee
Erik Brakkee wrote: > 2. The @SpringBean annotation should be extended with a 'mandatory' > attribute, defaulting to false. If the bean is mandatory, then an > exception should be thrown by the injector in case a bean can not be found. > Thinking about it some more, I think, the default should b

Re: [Wicket-user] wicket-spring-annot: SpringComponentInjector problem...

2006-09-03 Thread Juergen Donnerstag
What is the use case where the context can not be found via WebApplicationContextUtils.getRequiredApplicationContext(aServletContext).? Juergen On 9/3/06, Erik Brakkee <[EMAIL PROTECTED]> wrote: > Hi, > > > I have done some work to locate the Spring application context in > another way. Both wick

Re: [Wicket-user] wicket-spring-annot: SpringComponentInjector problem...

2006-09-03 Thread Erik Brakkee
Juergen Donnerstag wrote: What is the use case where the context can not be found via WebApplicationContextUtils.getRequiredApplicationContext(aServletContext).? The use case is where existing code is used which has its own method of accessing Spring configuration such as using  BeanFa

Re: [Wicket-user] Markup cache

2006-09-03 Thread Tim Fletcher
hi again, a little more information: I am trying to create something a little like Archetypes for Zope. This will allow a site admin to create new types of components based on others previously created (although the very base types, Axioms, are Wicket Components). I'm struggling a little with the

Re: [Wicket-user] Markup cache

2006-09-03 Thread Juergen Donnerstag
I don't think so, the markup is not versioned 1.2.2 MarkupCache: what might work, but I haven't tested it. I assume you either subclassed MarkupContainer.newMarkupResourceStream() or you created your own IResourceStream implemented and registered a resource stream locator with the application. Eit

Re: [Wicket-user] wicket-spring-annot: SpringComponentInjector problem...

2006-09-03 Thread Igor Vaynberg
fair enough, its in svn-IgorOn 9/3/06, Erik Brakkee <[EMAIL PROTECTED]> wrote: Hi,I have done some work to locate the Spring application context inanother way. Both wicket-spring and wicket-spring-annot assume that theapplication context can be obtained withWebApplicationContextUtils.getRequiredApp

Re: [Wicket-user] Markup cache

2006-09-03 Thread Tim Fletcher
Juergen, Looking at the javadoc online (http://wicket.sourceforge.net/apidocs/wicket/markup/MarkupCache.html), MarkupCache doesn't have the removeMarkup method. could this be 2.0 stuff? Thanks Tim On 03/09/06, Juergen Donnerstag <[EMAIL PROTECTED]> wrote: > I don't think so, the markup is not ver

Re: [Wicket-user] wicket-spring-annot: behavior when bean not found...

2006-09-03 Thread Igor Vaynberg
i changed it so that the locators are always tested now, so it will fail on injection. i dont know if we need mandatory or not.-IgorOn 9/3/06, Erik Brakkee <[EMAIL PROTECTED]> wrote: Erik Brakkee wrote:> 2. The @SpringBean annotation should be extended with a 'mandatory'> attribute, defaulting to

Re: [Wicket-user] Markup cache

2006-09-03 Thread Juergen Donnerstag
yes, sorry in 1.2 it is still private. I assume MarkupCache.clear() is too heavy to remove all markup from the cache, correct? And relying on ModificationWatcher to remove it after X secs is not a solid solution either. Sorry I don't have any other idea. In order to make sure feature finds it way

[Wicket-user] IFrames

2006-09-03 Thread Andrew Berman
All,Just a minor note that IFRAME stands for Inline Frame (http://www.w3.org/TR/REC-html40/present/frames.html#h-16.5), not Internal Frame as it is in the API using InternalFrame.  Maybe we should rename it in 2.0?--Andrew - U

[Wicket-user] previous page

2006-09-03 Thread wicketmarsh
hi everdody .. i need help.. i have a form on a page, when i submit the page and go to next page, now i want to add back button on my second page to go back to first page. as i understand wicket store pages. in session, is it possible that i on click of back button i can get my previous page with

Re: [Wicket-user] previous page

2006-09-03 Thread Igor Vaynberg
just pass the reference of the old page into the new pagePage page=new ViewUserDetailsPage(this, user); // this==current pagesetResponsePage(page);then in ViewUserDetailsPageViewUserDetailsPage(Page back, User user) {     add(new PageLink("back-link", back));}-IgorOn 9/3/06, wicketmarsh < [EMAI

[Wicket-user] Editable tree table in 2.0?

2006-09-03 Thread Per Ejeklint
I looked at the live examples and found that the Editable Tree Table would be very useful for me. But it seems that this is not in 2.0 extensions yet. Any words on when it will be?/Per Per Ejeklint: Consultant at Heimore Group AB, Kungsg. 33 11th floor, SE-111 56 Stockholm, Swede