Re: unit test of AjaxLazyLoadPanel and ModalWindow

2008-04-25 Thread Frank Bille
On Thu, Apr 24, 2008 at 8:10 PM, qk [EMAIL PROTECTED] wrote: 1. after the page was rendered using WicketTester.startPage(), the real content (the one that returned by getLazyLoadComponent()) was not loaded by default. I always got an empty panel. Is there a way that I can have the real

Re: Using AJAX to change style of component

2008-04-25 Thread Frank Bille
You have to set outMarkupId when creating the component. It's too late to do it in the ajax callback. Frank On Thu, Apr 24, 2008 at 9:32 PM, Ryan O'Hara [EMAIL PROTECTED] wrote: I'm fairly new to Wicket and was wondering if there is a way to use AJAX to change the style of a

Re: Problems with FileUploadField

2008-04-25 Thread Rüdiger Schulz
You dont have to package it just for me... I just wanted to take a look at the code and was curious if and how this can be done without iframe :-) 2008/4/25, Michael Mehrle [EMAIL PROTECTED]: It creates a new frame via JS, yes. I want to send this to you, but it has to be packaged properly and

Re: External Error, Expiry , AccessDenied Pages

2008-04-25 Thread Johan Compagner
What do you mean? You have more then 1 type of accessdenied page? And why would you redirect your self to those pages? They are used by the framework. You can use them yourself ofcourst. Just get the class from the settings and set that as a response page. On 4/25/08, mfs [EMAIL PROTECTED] wrote:

Re: Load Modal Window before the page loads

2008-04-25 Thread Maurice Marrink
You cannot show a modal window directly from a page/component constructor. It needs a valid AjaxRequestTarget, giving it a new ART is not going to work. In the construcor you should simply add the modalwindow to your page/component and then use a real ajax request to show it. You can add an

Re: External Error, Expiry , AccessDenied Pages

2008-04-25 Thread mfs
No i have a static html page against each of the above (AccessDenied.html, SessionExpiry.html and Error.html) but these pages are not defined in wicket and are part of another external application i am integrating my wicket application with, and want to use the same pages for the error scenarios.

BookmarkablePageLink question

2008-04-25 Thread Fabien D.
I try to use BookmarkablePageLink : I 've done this : mountBookmarkablePage(projet, ProjetPage.class); BookmarkablePageLink link = new BookmarkablePageLink(lien_projet, ProjetPage.class); link.setParameter(projet, inf.getNom()); the result is : ./projet/projet/MySQL I want just

wicket maven dependency

2008-04-25 Thread dvd
Hello: A dumb question. I tried to build wicket from its source (say 1.3.3) (thinking about working on wicket) and realized that several dependent artifacts such as slf4j ,portlet were not on repo1.maven.org.  Does wicket team (or anyone building from source) have to install those locally or is

Re: BookmarkablePageLink question

2008-04-25 Thread Martijn Dashorst
See Application#mount() and the various URL coding strategies that are available. I think you are looking for IndexedStrategy Martijn On 4/25/08, Fabien D. [EMAIL PROTECTED] wrote: I try to use BookmarkablePageLink : I 've done this : mountBookmarkablePage(projet,

Panel that replaces surrogate element rather than contained within it

2008-04-25 Thread Sam Hough
Is there a nice way to make a component that behaves like Panel but replaces the surrogate element AND supports Ajax partial updates? So if my parent HTML is: lt;span wicket:id=here to be replacedlt;/span and my child panel is: lt;wicket:panelulliMust only have a single root

AW: Wicket 1.4 and Wicketstuff/Dojo/DragAndDrop

2008-04-25 Thread Stefan Lindner
Ok, before I lay ma hands on it: Is there another LIVING project, that deals with drag and drop for wicket? Are there other users of wicketstuff dojo out there, who want to migrate to wicket 1.4? Does it still make sense to investigate in wicketstuff/doho? Are there commercial solutions fprt

Re: Gzipping of pages (HTML output, not only resources)

2008-04-25 Thread Artur W.
Nino.Martinez wrote: At our wug CPH yesterday we talked about something similar (ajax), I think theres no direct way currently. However you can setup a filter which does that. http://www.onjava.com/pub/a/onjava/2003/11/19/filters.html This filter doesn't work with Wicket because

RE: image resource

2008-04-25 Thread i ii
thank you! image component can be used, no? Date: Thu, 24 Apr 2008 13:45:39 -0700 From: [EMAIL PROTECTED] To: users@wicket.apache.org Subject: Re: image resource new WebMarkupContainer(wicketId) { private static final long serialVersionUID = 1L; @Override

Re: Panel that replaces surrogate element rather than contained within it

2008-04-25 Thread Maurice Marrink
setRenderBodyOnly is indeed the way but as you have already found out, you loose the id required for ajax. Where would we put the id? there is no element. If you have another parent element that you can use, you could update that, or perhaps you can update the ul element. Maurice On Fri, Apr 25,

Re: Panel that replaces surrogate element rather than contained within it

2008-04-25 Thread Martijn Dashorst
override onComponentTag and set tagname to ul in your panel. ul wicket:panel li wicket:id=items./li /wicket:panel /ul MyPanel extends Panel { @Override void onComponentTag(Tag tag) { super.onComponentTag(tag); tag.setName(ul); } } On 4/25/08, Sam Hough

Re: BookmarkablePageLink question

2008-04-25 Thread Fabien D.
I will search in this way, thank you Martijn Dashorst wrote: See Application#mount() and the various URL coding strategies that are available. I think you are looking for IndexedStrategy Martijn On 4/25/08, Fabien D. [EMAIL PROTECTED] wrote: I try to use BookmarkablePageLink

Re: Panel that replaces surrogate element rather than contained within it

2008-04-25 Thread Doug Donohoe
I think in order to support updates, you need an output id on the lt;ul element. I assume that is what you want to replace ... Have you tried adding a wicket:id to the lt;ul and then calling setOutputMarkupId() on that element? -Doug Sam Hough wrote: Is there a nice way to make a

Re: Panel that replaces surrogate element rather than contained within it

2008-04-25 Thread Sam Hough
Yep. That is the bit I'm stuck on. I think the id should be the id in the parent document but I don't know how to get that onto the HTML coming out of the child component. Although I think that is the way to go it means the root element in the Panel should/must not declare a wicket:id...

WicketTester in spring, question about springinjection

2008-04-25 Thread Sarkast
Hello there, I have a question which came up when trying to test my wicket pages. Currently a working implementation is the following in my test class: Creating an ApplicationContextMock, populating it with the beans, creating the WebApplication, injecting the context and initializing the

Re: Panel that replaces surrogate element rather than contained within it

2008-04-25 Thread Sam Hough
Thanks Martijn, Is there a way to eat the first element in the Panel so I don't have to hardcode the element name? Martijn Dashorst wrote: override onComponentTag and set tagname to ul in your panel. ul wicket:panel li wicket:id=items./li /wicket:panel /ul MyPanel extends Panel

Re: Panel that replaces surrogate element rather than contained within it

2008-04-25 Thread Martijn Dashorst
yes it is called setRenderBodyOnly(true). you could also tell your monkey (sic) to use wicket:container for those panel elements and you then have to add a WebMarkupContainer to your ul element and setOutputMarkupId(true) on it. Martijn On 4/25/08, Sam Hough [EMAIL PROTECTED] wrote: Thanks

Re: WicketTester in spring, question about springinjection

2008-04-25 Thread James Carman
Can't you just put setters on your page/components that take the dependencies? Then, during testing, you can just inject mock objects. On Fri, Apr 25, 2008 at 9:21 AM, Sarkast [EMAIL PROTECTED] wrote: Hello there, I have a question which came up when trying to test my wicket pages.

AuthenticatedWebSession

2008-04-25 Thread Alexander Landsnes Keül
Hi, I'm trying to have a user signed on directly with an id rather than the username/pwd when a new user is created. This gives me some trouble seeing as the boolean signedIn is private. I considered writing my own WebSession to handle this, but the problem here is that there is no

ListView + SubmitLink + RequiredTextField

2008-04-25 Thread nanotech
Hi All, I have a Required TextField and SubmitLink inside a ListView (which is dynamic). When I click the submit link for a row...it validates all the text fields in List View rather than the textfield against that link (and shows that field is required .) Is there a way to get around this ?

Re: WicketTester in spring, question about springinjection

2008-04-25 Thread Daniel Stoch
Hi, You can do it in this way: in your application class you can define a method: protected IComponentInstantiationListener newComponentInjectionListener() { return new SpringComponentInjector(this); } and then change init method to: protected void init() { super.init(); mount(/pages,

Re: Wicket 1.4 and Wicketstuff/Dojo/DragAndDrop

2008-04-25 Thread Ryan Sonnek
the wicketstuff-scriptaculous project has drag/drop support. I haven't updated it to reflect 1.4 changes yet. are 1.4 snapshots available for wicket yet on the bamboo snapshot repository? On Fri, Apr 25, 2008 at 5:38 AM, Stefan Lindner [EMAIL PROTECTED] wrote: Ok, before I lay ma hands on it:

Re: AuthenticatedWebSession

2008-04-25 Thread Maurice Marrink
Wicket-auth-roles is actually more of an example then an api to follow. So feel free to customize. Maurice On Fri, Apr 25, 2008 at 3:39 PM, Alexander Landsnes Keül [EMAIL PROTECTED] wrote: Hi, I'm trying to have a user signed on directly with an id rather than the username/pwd when a new

Re: ListView + SubmitLink + RequiredTextField

2008-04-25 Thread Martijn Dashorst
submit works on forms not fields. This is basic HTML. So you need to make each row a form instead of all rows in the form. Martijn On 4/25/08, nanotech [EMAIL PROTECTED] wrote: Hi All, I have a Required TextField and SubmitLink inside a ListView (which is dynamic). When I click the

Re: ListView + SubmitLink + RequiredTextField

2008-04-25 Thread Maurice Marrink
You can use setDefaultFormProcessing(false) on the submitlink. That way you can manually trigger the validation of a single component. Maurice On Fri, Apr 25, 2008 at 3:45 PM, nanotech [EMAIL PROTECTED] wrote: Hi All, I have a Required TextField and SubmitLink inside a ListView (which is

Re: BookmarkablePageLink question

2008-04-25 Thread Fabien D.
I have another question : About the BookmarkablePageLink, and the display url, it is possible to do not display the JSESSIONID??? thank you in advance Fabien D. wrote: I will search in this way, thank you Martijn Dashorst wrote: See Application#mount() and the various URL coding

Re: BookmarkablePageLink question

2008-04-25 Thread Maurice Marrink
Please search the mailing list before asking a question, JSessionId is added to the url by the application container and is thus pretty much outside the scope of what wicket can do. However if memory serves me there are a few things you can do, just search the list. Maurice On Fri, Apr 25, 2008

Re: BookmarkablePageLink question

2008-04-25 Thread Martijn Dashorst
Yes, enable cookies in your browser. Martijn On 4/25/08, Fabien D. [EMAIL PROTECTED] wrote: I have another question : About the BookmarkablePageLink, and the display url, it is possible to do not display the JSESSIONID??? thank you in advance Fabien D. wrote: I will search

Re: Wicket 1.4 and Wicketstuff/Dojo/DragAndDrop

2008-04-25 Thread Maurice Marrink
snapshots should be available, And i think a 1.4-m1 should be available any time soon too. Maurice On Fri, Apr 25, 2008 at 3:49 PM, Ryan Sonnek [EMAIL PROTECTED] wrote: the wicketstuff-scriptaculous project has drag/drop support. I haven't updated it to reflect 1.4 changes yet. are 1.4

Re: BookmarkablePageLink question

2008-04-25 Thread James Carman
On Fri, Apr 25, 2008 at 10:02 AM, Martijn Dashorst [EMAIL PROTECTED] wrote: Yes, enable cookies in your browser. The JSESSIONID will still appear at least one time even if cookies are enabled, correct? Once a link/submit happens and the server sees that cookie come in, it knows not to append

Re: BookmarkablePageLink question

2008-04-25 Thread Martijn Dashorst
The server typically redirects to set the jsessionid iirc from the previous discussion. Martijn On 4/25/08, James Carman [EMAIL PROTECTED] wrote: On Fri, Apr 25, 2008 at 10:02 AM, Martijn Dashorst [EMAIL PROTECTED] wrote: Yes, enable cookies in your browser. The JSESSIONID will still

Re: BookmarkablePageLink question

2008-04-25 Thread James Carman
Well, I know I've seen JSESSIONIDs appended to my wicket URLs and I do have cookies enabled. So, apparently Jetty isn't doing that in my case? On Fri, Apr 25, 2008 at 10:12 AM, Martijn Dashorst [EMAIL PROTECTED] wrote: The server typically redirects to set the jsessionid iirc from the

what is the preferred way to include a javascript library to a wicket project?

2008-04-25 Thread Vitaly Tsaplin
Hi everyone, There are many usecases when it could be necessary to write some javascript by hands directly in the html file. So I need to reference the library I use in a head section of my html file. But having a reusable component written in java which is depending on the same javascript

Re: what is the preferred way to include a javascript library to a wicket project?

2008-04-25 Thread Nino Saturnino Martinez Vazquez Wael
If you just need the javascript library, I also use header contribution. You can also take a look at wicket input events or datepicker etc... If you have your js files locally(in your project) you can use the packagedRessource so it gets gziped..

Re: WicketTester in spring, question about springinjection

2008-04-25 Thread Nino Saturnino Martinez Vazquez Wael
take a look at the wicket blog tutorial: http://cwiki.apache.org/WICKET/blog-tutorial.html Or even better the wicket-persistence-template: https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicket-persistence-template Sarkast wrote: Hello there, I have a question which

Re: AuthenticatedWebSession

2008-04-25 Thread Nino Saturnino Martinez Vazquez Wael
But it could be much more with just some simple changes, like allowing enums in annotations and the signin thing Alexander mentions. But on the otherhand with the upcomming changes to swarm(im thinking of annotations), the choice probably would be simple:) Maurice Marrink wrote:

Re: BookmarkablePageLink question

2008-04-25 Thread Nino Saturnino Martinez Vazquez Wael
Hmm I've seen the same a couple of times after restarting the server. However it seems to disapear after the server is warmed... It can also be a problem if you run apache http server in front and you do not forward cookies etc... I wrote an example on this earlier in some thread around

Re: what is the preferred way to include a javascript library to a wicket project?

2008-04-25 Thread Vitaly Tsaplin
I mean sometimes the library like prototype or whatever is necessary just to make some decorations in a markup. A good example is 100% height correction. So there is no reason to start a web server just to see a page markup with a working script. And what about duplicating entries of the same

Re: BookmarkablePageLink question

2008-04-25 Thread James Carman
On Fri, Apr 25, 2008 at 11:06 AM, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote: Hmm I've seen the same a couple of times after restarting the server. However it seems to disapear after the server is warmed... Yes, once it knows that cookies are working, it doesn't append them

Re: what is the preferred way to include a javascript library to a wicket project?

2008-04-25 Thread Nino Saturnino Martinez Vazquez Wael
Vitaly Tsaplin wrote: I mean sometimes the library like prototype or whatever is necessary just to make some decorations in a markup. A good example is 100% height correction. So there is no reason to start a web server just to see a page markup with a working script. What do you mean?

Re: what is the preferred way to include a javascript library to a wicket project?

2008-04-25 Thread Vitaly Tsaplin
Isn't it often better to explicitly declare the list of javascript libraries the component uses and let the user add this libraries to the web content folder manually on his/her preferred location? On Fri, Apr 25, 2008 at 4:51 PM, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote:

Re: Problems with Palette

2008-04-25 Thread NTS
Hi, Check whether all the items in the list has the same value in the generated html source. For example, select option value=0One/option option value=0Two/option /select If it is so, try to give a proper ChoiceRenderer like new ChoiceRenderer(displayName, internalld); The values need to be

Re: what is the preferred way to include a javascript library to a wicket project?

2008-04-25 Thread Vitaly Tsaplin
Yep. I meant the javascript sometimes can be considered as a css html extension if those're lacking :) I am not sure that wicket can scan for duplicates since I can refer to src/scriptaculous.js and you to scripts/scriptaculous/src/scriptaculous.js... On Fri, Apr 25, 2008 at 5:12 PM, Nino

Re: WicketTester in spring, question about springinjection

2008-04-25 Thread cwilkes
Sarkast wrote: protected void init() { super.init(); mount(/pages, PackageName.forPackage(Login.class.getPackage())); // commented out for testing addComponentInstantiationListener(new SpringComponentInjector(this)); } You could do something like

Re: WicketTester in spring, question about springinjection

2008-04-25 Thread Sarkast
Thanks, much more elegant then what I came up with. (novice programmer -.-) -- View this message in context: http://www.nabble.com/WicketTester-in-spring%2C-question-about-springinjection-tp16895558p16896956.html Sent from the Wicket - User mailing list archive at Nabble.com.

AW: Wicket 1.4 and Wicketstuff/Dojo/DragAndDrop

2008-04-25 Thread Stefan Lindner
Thank you Ryan, nice to hear that some WicketStuff projects are still alive. On question about Scriptaculous drag/drop: Is it possible to have a drop element (some div or span) containing drag elements? And is it possible to move another element onto the drag element and the target is the

Re: Wicket 1.4 and Wicketstuff/Dojo/DragAndDrop

2008-04-25 Thread Ryan Sonnek
Stefan, i'm not 100% sure what your usecase is. the wicketstuff-scriptaculous library supports pretty much everything that scriptaculous supports. we do support adding sortable elements to the drop target. scriptaculous only allows for one drop element per page though... On Fri, Apr 25, 2008

Re: what is the preferred way to include a javascript library to a wicket project?

2008-04-25 Thread Nino Saturnino Martinez Vazquez Wael
Vitaly Tsaplin wrote: Isn't it often better to explicitly declare the list of javascript libraries the component uses and let the user add this libraries to the web content folder manually on his/her preferred location? I like that you package your component to run off the fly, and then

Wicket Auto complete text Issue

2008-04-25 Thread Ricky
Hi, I am trying to get a model object when an autocomplete selection is made; but model object comes back as a string rather than the model that was selected. Is there a way to get the selected Model (Actor) in the example below ? final AutoCompleteTextField actorAutoComplete = new

Re: append HTML to a page ONE time

2008-04-25 Thread Ryan Gravener
Just add it to the bottom of your highest level page and have all other pages extend that page. Then have its visibility be determined by iterating over all the components on the page and if one matches your component return true. On Fri, Apr 25, 2008 at 12:06 PM, Clay Lehman [EMAIL PROTECTED]

Re: append HTML to a page ONE time

2008-04-25 Thread Nino Saturnino Martinez Vazquez Wael
Can you elaborate on why you need to do this? Maybe it can be twisted a bit to fit in? Clay Lehman wrote: I am making a component that has to have a DIV appended to the page to work properly, but the problem is, this DIV has to be appended exactly once, even if multiple objects of the

Re: Wicket Auto complete text Issue

2008-04-25 Thread Ryan Gravener
Take a look at http://www.nabble.com/1.3%2C-resource-locator-and-properties-to16707905.html#a16708440 control+f to help wanted for autocomplete On Fri, Apr 25, 2008 at 12:29 PM, Ricky [EMAIL PROTECTED] wrote: Hi, I am trying to get a model object when an autocomplete selection is made; but

RE: append HTML to a page ONE time

2008-04-25 Thread Clay Lehman
Im working with the javascript tooltip shows here: http://codylindley.com/Javascript/219/finding-a-javascript-tool-tip-scri pt It requires that you add a DIV to the bottom of the page, and call some javascript (after any links/tooltips have been added) and if I add the DIV more than once, all

Generate excel spreadsheet

2008-04-25 Thread Bushby
Does anyone have example code for generating an excel spreadsheet. I am using Wicket 1.3 and I have used wicket.contrib.jasperreports to successfully generate pdf files in IE but FireFox returns nothing. Changing JRPdfResource to JRCsvResource returns a comma separated list but the type it is

Re: AW: Wicket 1.4 and Wicketstuff/Dojo/DragAndDrop

2008-04-25 Thread Nino Saturnino Martinez Vazquez Wael
Stefan Lindner wrote: Thank you Ryan, nice to hear that some WicketStuff projects are still alive. On question about Scriptaculous drag/drop: Is it possible to have a drop element (some div or span) containing drag elements? And is it possible to move another element onto the drag element

Re: append HTML to a page ONE time

2008-04-25 Thread Nino Saturnino Martinez Vazquez Wael
Just use prototip from minies, very flexible. Only cons are missing ajax support, and a little trouble with modal windows. http://www.nickstakenburg.com/projects/prototip/ http://wicketstuff.org/confluence/display/STUFFWIKI/wicketstuff-minis-prototip Theres also something in the scriptaculus

Re: append HTML to a page ONE time

2008-04-25 Thread Igor Vaynberg
you can use requestcycle's metadata facility to store a flag of whether or not the div has been rendered... -igor On Fri, Apr 25, 2008 at 9:06 AM, Clay Lehman [EMAIL PROTECTED] wrote: I am making a component that has to have a DIV appended to the page to work properly, but the problem is,

RE: Wicket 1.4 and Wicketstuff/Dojo/DragAndDrop

2008-04-25 Thread Stefan Lindner
Yes, just the old version from trunk, mofified for wicket 1.4. If the former project developers agree I can commit it to wicketstuff. I have to search for my commit account login data Stefan -Ursprüngliche Nachricht- Von: Nino Saturnino Martinez Vazquez Wael [mailto:[EMAIL

RE: append HTML to a page ONE time

2008-04-25 Thread Clay Lehman
That's Awesome!! Thanks Igor, that was exactly what I needed :) Clay Lehman Phone: (919) 882-2856 [EMAIL PROTECTED] -Original Message- From: Igor Vaynberg [mailto:[EMAIL PROTECTED] Sent: Friday, April 25, 2008 1:37 PM To: users@wicket.apache.org Subject: Re: append HTML to a page ONE

Re: Wicket Auto complete text Issue

2008-04-25 Thread Ricky
Hi, I took a look at the solution below, unfortunately the above solution doesn't work because if the model in getTextValue( ) method is set (for the containing panel or any component for that matter) the *last* choice is selected and set as a model instead of the right one. It works only when

Problem converting options of ListMultipleChoice

2008-04-25 Thread Ronald Pieterse
Hello. I an trying to use the ListMultipleChoice and want to use my list of custom Authority object as options. The form is shown correctly with the right options and values and everything. The problem arises when I submit the form. For some reason the selected values are not converted correctly

Re: wicket maven dependency

2008-04-25 Thread Gwyn Evans
That doesn't sound correct - are you sure your Maven installation hasn't been pointed somewhere else, as we don't manually install them locally they are on repo1 - What particular artifacts are showing as unavailable? See http://repo1.maven.org/maven2/org/slf4j/

Re: Need to turn off Markupparser : Problem with param tag

2008-04-25 Thread hjuturu
Hi Martin/All In my page the HTML that is created is dynamic (has embedded widgets or gadgets) and we dont have control over the tags in the wicket page. or tags doesnt have a end tag in its html representation , so it is legitimate. So what i would like to know is if there is someway to

Wicket Unit Test: No WebApplicationContext found: no ContextLoaderListener registered?

2008-04-25 Thread Jorge Gallardo
Hi everyone, I'm setting up an app with wicket 1.3.3 I have my Application class defined this way, to use Spring injection with annotations public class WicketApplication extends SpringWebApplication { /** * Constructor */ public WicketApplication() { } @Override

Re: Wicket Unit Test: No WebApplicationContext found: no ContextLoaderListener registered?

2008-04-25 Thread James Carman
Why are you using the Spring injector to inject your dependencies? Can you not manually inject your dependencies? Adding stuff manually to a Spring context and then having the Spring injector inject it doesn't really test what's going to be going on in production anyway. If it were me, I'd

RedirectPage - gets stuck in an endless loop

2008-04-25 Thread mfs
Guys, I am using RedirectPage class to redirect to an external url, and strangely it just gets stuck in an endless loop..any idea as to what the problem could be ? i.e. new RedirectPage(Host.getHttpsUrl() + /login) Thanks in advance.. -- View this message in context:

Multiple Applications In a Single Context?

2008-04-25 Thread Jeremy Thomerson
Has anyone done this and might have suggestions? What I want to be able to do is have multiple applications all running within one context. They will basically be different versions of the same site, with some differences in style, and occasionally HTML. Other things, like sections of the site,

Re: Wicket Unit Test: No WebApplicationContext found: no ContextLoaderListener registered?

2008-04-25 Thread Nino Saturnino Martinez Vazquez Wael
James Carman wrote: Why are you using the Spring injector to inject your dependencies? Can you not manually inject your dependencies? Adding stuff manually to a Spring context and then having the Spring injector inject it doesn't really test what's going to be going on in production anyway.

Re: Wicket Unit Test: No WebApplicationContext found: no ContextLoaderListener registered?

2008-04-25 Thread Nino Saturnino Martinez Vazquez Wael
I think you also need to put your beans in there aswell: ApplicationContext appcxt = new ClassPathXmlApplicationContext( applicationContext.xml); generalDao = (GeneralDao) appcxt.getBean(GeneralDao); // 2. setup mock injection environment

Re: Multiple Applications In a Single Context?

2008-04-25 Thread Nino Saturnino Martinez Vazquez Wael
Well there are some different things you could do. One could be just mapping them(the applications) with diffrent filters. The same goes with your spring context. And you could control which stylesheets should be used by different header contributors, and injected spring context. That should