Re: Isssues in Modal Window display in IE8
Why not change that.. should not be a problem. ** Martin 2009/11/17 vela vela@gmail.com: Hello again, We use wicket 1.3 in the production environment. That's why, other wise no issues -- View this message in context: http://old.nabble.com/Isssues-in-Modal-Window-display-in-IE8-tp26047156p26385784.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
how to disable pagination in inmethod grid?
Hi *, does anybody know how to hide pagination and Showing x of y message in inmethod grid component? Regards Roman - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Isssues in Modal Window display in IE8
Hmm Martin, we switched almost every 1.3 version and always had issues. Like changed checkbox behavior and so on. Don't know all our bugs anymore but we always had to write new tests because of missing tested behavior. So it could be troublish. Cheers Per - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Isssues in Modal Window display in IE8
Ah.. so the solution is to write more tests in any case :) ** Martin 2009/11/17 Per Newgro per.new...@gmx.ch: Hmm Martin, we switched almost every 1.3 version and always had issues. Like changed checkbox behavior and so on. Don't know all our bugs anymore but we always had to write new tests because of missing tested behavior. So it could be troublish. Cheers Per - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
StringResourceModel referencing another component
Hi, I've set up a custom MyTabbedPanel by modifying class TabbedPanel. It will include a row of buttons, added on setSelectedTab which will be the same for all tabs. Now, I'd like each tab (panel) to be able to override the text of each button, like this: public final void setSelectedTab(int index){ ... // Add Panel with content for the tab to global form variable final MyTabPanel panel = tabs.get(index).getPanel(TAB_PANEL_ID); form.addOrReplace(panel); // Add generic buttons to form, with specific settings depending on panel's properties Button button1 = new Button(button1){ ... }; button1.setModel(new StringResourceModel(button1.label,panel, null)); form.addOrReplace(button1); ... } The problem is that the StringResourceModel is always pointing to the property in MyTabbedPanel.xml, and not the panel's. I've noticed that if I remove button1.label from MyTabbedPanel's property file, Wicket gets the panel's button1.label property, but I'd like to provide some kind of 'default' label for the buttons so that panels aren't forced to explicitly define this property. I expected specifying the 'panel' component on StringResourceModel's constructor would do the trick, but it doesn't work. Is it possible to accomplish what I'm trying to do ? Thanks, Xavier
Re: Wicket + Spring + Hibernate - Wicket-In-Action
On Mon, Nov 16, 2009 at 12:38 PM, Jeffrey Schneller jeffrey.schnel...@envisa.com wrote: Also how would one move the configuration of the jdbc connection to code? It is desirable to db connection information reside at the server level so when deploying code from dev to stage to production, you do not need change or replace a file. The configuration is at the server level [in the server context] and it is pulled from there. Isn't this a Spring question? The Wicket/Spring integration basically lets you talk to your Spring beans (by using @SpringBean annotation to inject them). It doesn't do anything fancy with Spring itself. You don't even use a Wicket way to bootstrap the context (you use Spring's context listener for that). How you configure your Spring beans is up to you. I'd recommend either picking up Spring in Action or just read the online documentation (it's pretty good). - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: Wicket + Spring + Hibernate - Wicket-In-Action
I'm not sure the purpose of the interceptor, but until you have a need to extend and use it, you can use the org.hibernate.EmptyInterceptor class instead of creating your own. I have had no problems with using that class. -Original Message- From: Jeffrey Schneller [mailto:jeffrey.schnel...@envisa.com] Sent: Monday, November 16, 2009 12:38 PM To: users@wicket.apache.org Subject: Wicket + Spring + Hibernate - Wicket-In-Action At the link[1] it describes how to configure wicket to use Spring and Hibernate. In the applicationContext.xml file there is reference to a n interceptor bean. What is this interceptor bean? What is the definition of this bean? Everything else seems to make sense. Also how would one move the configuration of the jdbc connection to code? It is desirable to db connection information reside at the server level so when deploying code from dev to stage to production, you do not need change or replace a file. The configuration is at the server level [in the server context] and it is pulled from there. Thanks. [1] http://wicketinaction.com/2009/06/wicketspringhibernate-configuration/ - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Getting server-url ?
Hi, how can I get the server-url on which the wicket application is running? like http://www.serverurl.com/WicketApp/ it should return http://www.serverurl.com Thank you __ Do You Yahoo!? Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails. http://mail.yahoo.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
TextField escape characters
Hello, In a web page subclass we have a text field and the characters (“*R#246;sch *”)is set as model object. When the page is displayed the text field displays the characters as “*Rösch” * not as “*R#246;sch”*. The setEscapeModelStrings() for the text field is not set as false. The text field should display the characters exactly same like “*R#246;sch*”. Could anyone tell how to achieve this. Wicket 1.3 version is used.
Re: TextField escape characters
On Tue, 2009-11-17 at 20:22 +0530, sakthi vel wrote: Hello, In a web page subclass we have a text field and the characters (“*R#246;sch *”)is set as model object. When the page is displayed the text field displays the characters as “*Rösch” * not as “*R#246;sch”*. The setEscapeModelStrings() for the text field is not set as false. what happens if you set it to false ? The text field should display the characters exactly same like “*R#246;sch*”. Could anyone tell how to achieve this. Wicket 1.3 version is used. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Getting server-url ?
On Tue, 2009-11-17 at 14:34 +, Peter Arnulf Lustig wrote: Hi, how can I get the server-url on which the wicket application is running? like http://www.serverurl.com/WicketApp/ it should return http://www.serverurl.com ((WebRequest) getRequest()).getHttpServletRequest().getServerHost() or something like that Thank you __ Do You Yahoo!? Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails. http://mail.yahoo.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Listview in a listview refresh with AjaxLink don't work
Pedro, Improved version now works. Here is my onclick for the AjaxFallBackLink. Much of it I think is not best practice. Any tips on making this code better? Thanks a million for your help! P AjaxFallbackLink up = new AjaxFallbackLink(up) { @Override public void onClick(AjaxRequestTarget target) { AbstractDataSet dataset = datasetmodel.getEntity(); MarkupContainer container=null; container=getParent(); while(!container.getId().equals(rows)){ container=container.getParent(); } ListView view=null; if (container instanceof ListView){ view=(ListView)container; } dataset.moveQuestionUp(question); //update the domain model List list=QuestionProcessor.getMatrixToList(view.getList()); //extract the listview model data QuestionProcessor.moveQuestionUp(list, question); view.setList(QuestionProcessor.getListToMatrix(list, Boolean.TRUE)); //reset the listview model data adsf.store(dataset); //store my domain data to persist target.addComponent(outercontainer); //repaint the whole lot } }; On Tue, Nov 17, 2009 at 1:47 PM, Pedro Santos pedros...@gmail.com wrote: Hi Pieter, When you call template.moveQuestionUp(question) you are altering the order of the template entity questions list. I think this isn't the same list on the row listview model, although both have the same objects. All lists used by repeaters are created by QuestionProcessor, you can make sure of using those lists operation over rowlistview.getlist() on moveQuestionUp implementation. On Sun, Nov 15, 2009 at 6:56 AM, pieter claassen pieter.claas...@gmail.com wrote: Hi Pedro, Here it is. So, I basically move the question up or down the array. public void moveQuestionUp(QuestionBase question) { int idx = questions.indexOf(question); if (idx 0) { questions.remove(question); questions.add(idx - 1, question); } } I think that the listview is being redrawn in HTML but the matrix of data underlying it (that I retrieve here in the main page) ListListQuestionBase rows = QuestionProcessor.getQuestionMatrix(templateWebModel.getEntity().getQuestions(),true); does not get refreshed. I think I need to find a way to reload the data for the listview, from within my panel on a page. Cheers, Pieter On Sun, Nov 15, 2009 at 12:14 AM, Pedro Santos pedros...@gmail.com wrote: Can you send the moveQuestionUp implementation? On Sat, Nov 14, 2009 at 9:03 PM, pieter claassen pieter.claas...@gmail.com wrote: I am trying to follow wicket in action advice P263 but I have a ListView in a ListView with a panel added to my inner listview. On that panel, I have an AjaxLink and I want to move items in the order of the listview around. But to display them, I need to refresh my matrix. Nothing seems to work. Any tips or references. QuestionEditPanel.html = wicket:extend div id=document span wicket:id=parent div wicket:id=rows span wicket:id=row span wicket:id=question / /span /div /span /div /wicket:extend QuestionEditPanel.java == final WebMarkupContainer parent=new WebMarkupContainer(parent); add(parent); parent.setOutputMarkupId(true); ListListQuestionBase rows = QuestionProcessor.getQuestionMatrix(templateWebModel.getEntity().getQuestions(),true); ListView rowslistview = new ListView(rows, rows) { @Override protected void populateItem(ListItem item) { ListQuestionBase row = (ListQuestionBase) item.getModelObject(); ListView rowlistview = new ListView(row, row) { @Override protected void populateItem(ListItem item) { final QuestionBase question = (QuestionBase) item.getModelObject(); item.setModel(new CompoundPropertyModel(question)); EditableQuestionPanel questionpanel=new EditableQuestionPanel(question, new QuestionBaseWebModel(question),templateWebModel,parent); item.add(questionpanel); and then on my EditableQuestionPanel.java I have : AjaxLink up = new AjaxLink(up) { @Override public void onClick(AjaxRequestTarget target) { target.addComponent(parent); Template template = templatemodel.getEntity(); template.moveQuestionUp(question);
Re: wicket 1.4 : Link with no model
On Mon, Nov 16, 2009 at 6:23 PM, Jeremy Thomerson jer...@wickettraining.com wrote: Two things: 1 - use LinkVoid foo = new LinkVoid or a shorter Link? foo = new LinkVoid -- Marcelo Morales - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: StringResourceModel referencing another component
you can write your own model that first tries to get the resource from the panel and then falls back. -igor On Tue, Nov 17, 2009 at 2:58 AM, Xavier López xavil...@gmail.com wrote: Hi, I've set up a custom MyTabbedPanel by modifying class TabbedPanel. It will include a row of buttons, added on setSelectedTab which will be the same for all tabs. Now, I'd like each tab (panel) to be able to override the text of each button, like this: public final void setSelectedTab(int index) { ... // Add Panel with content for the tab to global form variable final MyTabPanel panel = tabs.get(index).getPanel(TAB_PANEL_ID); form.addOrReplace(panel); // Add generic buttons to form, with specific settings depending on panel's properties Button button1 = new Button(button1){ ... }; button1.setModel(new StringResourceModel(button1.label,panel, null)); form.addOrReplace(button1); ... } The problem is that the StringResourceModel is always pointing to the property in MyTabbedPanel.xml, and not the panel's. I've noticed that if I remove button1.label from MyTabbedPanel's property file, Wicket gets the panel's button1.label property, but I'd like to provide some kind of 'default' label for the buttons so that panels aren't forced to explicitly define this property. I expected specifying the 'panel' component on StringResourceModel's constructor would do the trick, but it doesn't work. Is it possible to accomplish what I'm trying to do ? Thanks, Xavier - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Getting server-url ?
Martin Grigorov schrieb: it should return http://www.serverurl.com ((WebRequest) getRequest()).getHttpServletRequest().getServerHost() or something like that pass the httpServletRequest to public static StringBuffer getContextUrl(final HttpServletRequest req) { String protocol = req.isSecure() ? https://; : http://;; String hostname = req.getServerName(); int port = req.getServerPort(); StringBuffer url = new StringBuffer(128); url.append(protocol); url.append(hostname); if ((port != 80) (port != 443)) { url.append(:); url.append(port); } String ctx = req.getSession().getServletContext().getContextPath(); if (!ctx.startsWith(/)) { url.append('/'); } url.append(ctx); if (!ctx.endsWith(/)) { url.append('/'); } return url; } cu uwe - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
AjaxFallBackLink driving me nuts!
Can anybody please enlighten me why this doesn't work (ok end of the day, maybe it really is something small). I am clearly changing the underlying model data, but how to tell questionEditPanel to pick that change up. I tried setDefaultModel(new TemplateWebModel(template)), templateEditPanel.modelChanged() and nothing works. Any tips appreciated. P AjaxFallbackLink newpage = new AjaxFallbackLink(newpage) { @Override public void onClick(AjaxRequestTarget target) { QuestionBase newpage = new NewPage(); Template template = templatewebmodel.getEntity(); template.addQuestion(newpage); templateFactory.store(template); target.addComponent(questionEditPanel); } }; add(newpage); questionEditPanel = new QuestionEditPanel(questionrenderpanel, templatewebmodel); questionEditPanel.setOutputMarkupId(true); add(questionEditPanel); --
Re: Isssues in Modal Window display in IE8
Have you tried the patch include in the jira : https://issues.apache.org/jira/browse/WICKET-2207 https://issues.apache.org/jira/browse/WICKET-2207 Also you can get the source in the svn repo : http://svn.apache.org/repos/asf/wicket/trunk/wicket-extensions/src/main/java/org/apache/wicket/extensions/ajax/markup/html/modal/res/modal.js http://svn.apache.org/repos/asf/wicket/trunk/wicket-extensions/src/main/java/org/apache/wicket/extensions/ajax/markup/html/modal/res/modal.js Regards, Gabriel. vela wrote: Hello again, It is working fine with wicket 1.3.6. But is there any way to make modal window work in IE8 with wicket.1.3? -- View this message in context: http://old.nabble.com/Isssues-in-Modal-Window-display-in-IE8-tp26047156p26394210.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: AjaxFallBackLink driving me nuts!
are you using a list view in your question edit panel? you might need to call setreuseitems(false) -- Jeremy Thomerson http://www.wickettraining.com On Tue, Nov 17, 2009 at 11:04 AM, pieter claassen pie...@claassen.co.ukwrote: Can anybody please enlighten me why this doesn't work (ok end of the day, maybe it really is something small). I am clearly changing the underlying model data, but how to tell questionEditPanel to pick that change up. I tried setDefaultModel(new TemplateWebModel(template)), templateEditPanel.modelChanged() and nothing works. Any tips appreciated. P AjaxFallbackLink newpage = new AjaxFallbackLink(newpage) { @Override public void onClick(AjaxRequestTarget target) { QuestionBase newpage = new NewPage(); Template template = templatewebmodel.getEntity(); template.addQuestion(newpage); templateFactory.store(template); target.addComponent(questionEditPanel); } }; add(newpage); questionEditPanel = new QuestionEditPanel(questionrenderpanel, templatewebmodel); questionEditPanel.setOutputMarkupId(true); add(questionEditPanel); --
wicketstuff-minis status?
We are about to integrate wicketstuff-minis in our project. However, we noticed on Nabble that prototip is out of date based on some comments by the community. I have wicketstuff commit rights and more than willing to update to the latest. However, when I looked at the MVN repository for wicketstuff-minis (http://wicketstuff.org/maven/repository/org/wicketstuff/wicketstuff-minis/1.4.0-SNAPSHOT/), the timestamps are all in 2008. If I change/commit the necessary code, will the MVN repository be updated with the new version on the next build? or do I need to request a build to be placed out there? Or are there other options? Thanks - Doug - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
SV: wicket 1.4 : Link with no model
or a shorter Link? foo = new LinkVoid ... or wait for JDK 1.7 where you can do LinkVoid foo = new Link Which is more useful in cases like MapString, ListFoo fie = new HashMap(); - Tor Iver
tomcat live remote war redeploy
1. Does anyone have success undeploying/redeploying a wicket .war to a remote tomcat (5.5.x, poss. 6.x) instance, without cycling tomcat? (eg, using mvn tomcat:deploy or ant with the tomcat deployment components) It looks like the undeploy is not happening 100% - the app name continues to appear in the list, no matter how the undeploy step happens. 2. If not (1), can any developer comment on whether this is a known issue, and if it might be addressed any time soon or how a n00b might tackle it and / or what might wicket be doing to hamper undeployment? (I didn't see anything in the bug db). Without this capability (which exists with all the other frameworks we use), we cannot use wicket. We have many other unrelated web-apps running in the same tomcat instance and obviously to cycle those (because tomcat has to start/stop without live redeploy) is a non-starter in my org. Thanks - Steve
YUI Integration
Where in the wicket-stuff library is the most recent attempt at creating a integration layer for YUI? Is it at the trunk level or at the branch level?
Re: wicketstuff-minis status?
But wouldn't i see the timestamp change on the jars, etc change with each deployment? from http://wicketstuff.org/maven/repository/org/wicketstuff/wicketstuff-minis/1.4.0-SNAPSHOT/ maven-metadata.xml 0.3 kb Tue, 28 Oct 2008 23:16:32 GMT maven-metadata.xml.md5 0.1 kb Tue, 28 Oct 2008 23:16:32 GMT maven-metadata.xml.sha1 0.1 kb Tue, 28 Oct 2008 23:16:32 GMT wicketstuff-minis-1.4.0-SNAPSHOT.jar 116.9 kbTue, 28 Oct 2008 23:16:32 GMT wicketstuff-minis-1.4.0-SNAPSHOT.jar.md5 0.1 kb Tue, 28 Oct 2008 23:16:32 GMT wicketstuff-minis-1.4.0-SNAPSHOT.jar.sha10.1 kb Tue, 28 Oct 2008 23:16:32 GMT wicketstuff-minis-1.4.0-SNAPSHOT.pom 3.0 kb Tue, 28 Oct 2008 23:16:32 GMT wicketstuff-minis-1.4.0-SNAPSHOT.pom.md5 0.1 kb Tue, 28 Oct 2008 23:16:32 GMT wicketstuff-minis-1.4.0-SNAPSHOT.pom.sha10.1 kb Tue, 28 Oct 2008 23:16:32 GMT Also, how often do snapshots get built and distributed to the maven repositories? Thanks - Doug -- View this message in context: http://old.nabble.com/wicketstuff-minis-status--tp26394666p26396127.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: AjaxFallBackLink driving me nuts!
For starters, I'd try to eliminate possible causes. E.g. make sure the model change is seen from QuestionEditPanel. A way to do this is either run your app in a debugger and set some checkpoints around onRender and/or onBeforeRender, or simply override onBeforeRender() and log the model contents. Since we don't see what kind of model your templatewebmodel is, it could also be that this class is caching its value. Bas Pieter Claassen wrote: Can anybody please enlighten me why this doesn't work (ok end of the day, maybe it really is something small). I am clearly changing the underlying model data, but how to tell questionEditPanel to pick that change up. I tried setDefaultModel(new TemplateWebModel(template)), templateEditPanel.modelChanged() and nothing works. Any tips appreciated. -- View this message in context: http://old.nabble.com/AjaxFallBackLink-driving-me-nuts%21-tp26393621p26396450.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Spring/Wicket/Hibernate testing driving me banana nuts
application.xml I initially had a setup that worked with both a Web context and a JUnit context. The problem was the amount of hand coding and adjusting of the Spring context the approach needed. I finally got the Spring's transaction interceptor working with the auto-wiring (the key is using an interface). So now my problem is that while I've saved myself the headache of making changes to a bunch of files every time I add a new service, my unit tests are now failing. I've traced the failure to a specific class that is decorated with the InjectorHolder--although I believe that is merely because it is the first component that does any Hibernate requests. I'll include the stacktrace at the bottom of the message. I had to remove the line that specified that sessions would be thread bound in Hibernate to take advantage of the Spring managed transactions, and adding that configuration item back in makes no difference for the tests. I'm hoping I'm just missing something simple, but all my Googling is turning up dead ends. Any help out there? org.apache.wicket.WicketRuntimeException: Error attaching this container for rendering: [MarkupContainer [Component id = content]] at org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer .java:1739) at org.apache.wicket.Component.onBeforeRender(Component.java:3854) at org.apache.wicket.Component.internalBeforeRender(Component.java:1061) at org.apache.wicket.Component.beforeRender(Component.java:1095) at org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer .java:1727) at org.apache.wicket.Component.onBeforeRender(Component.java:3854) at org.apache.wicket.Page.onBeforeRender(Page.java:1501) at com.gdais.incidents.view.SiteTemplate.onBeforeRender(SiteTemplate.java:3 3) at org.apache.wicket.Component.internalBeforeRender(Component.java:1061) at org.apache.wicket.Component.beforeRender(Component.java:1095) at org.apache.wicket.Component.prepareForRender(Component.java:2223) at org.apache.wicket.Component.prepareForRender(Component.java:2260) at org.apache.wicket.Page.renderPage(Page.java:893) at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget .respond(BookmarkablePageRequestTarget.java:262) at org.apache.wicket.request.AbstractRequestCycleProcessor.respond(Abstract RequestCycleProcessor.java:105) at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java :1258) at org.apache.wicket.RequestCycle.step(RequestCycle.java:1329) at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1428) at org.apache.wicket.RequestCycle.request(RequestCycle.java:594) at org.apache.wicket.protocol.http.MockWebApplication.processRequestCycle(M ockWebApplication.java:478) at org.apache.wicket.protocol.http.MockWebApplication.processRequestCycle(M ockWebApplication.java:390) at org.apache.wicket.util.tester.BaseWicketTester.startPage(BaseWicketTeste r.java:301) at com.gdais.incidents.view.TestTriagePanel.assertTriageNotAvailableFor(Tes tTriagePanel.java:33) at com.gdais.incidents.view.TestTriagePanel.testTriagePanelNotForAdministra tor(TestTriagePanel.java:27) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav a:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor Impl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at junit.framework.TestCase.runTest(TestCase.java:164) at junit.framework.TestCase.runBare(TestCase.java:130) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:120) at junit.framework.TestSuite.runTest(TestSuite.java:230) at junit.framework.TestSuite.run(TestSuite.java:225) at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUn it3TestReference.java:130) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.ja va:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTe stRunner.java:460) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTe stRunner.java:673) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRun ner.java:386) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRu nner.java:196) Caused by: org.hibernate.HibernateException: No Hibernate Session bound to thread, and configuration does not allow creation of non-transactional one here at org.springframework.orm.hibernate3.SpringSessionContext.currentSession(S
Re: Spring/Wicket/Hibernate testing driving me banana nuts
i see you are using MockWebApplication in your tests. this application does not install the SpringComponentInjector and so @SpringBean has no effect. you should either give wickettester an instance of your actual application class, or create a mock one that installs springcomponentinjector. -igor On Tue, Nov 17, 2009 at 1:00 PM, Loritsch, Berin C. berin.lorit...@gd-ais.com wrote: application.xml I initially had a setup that worked with both a Web context and a JUnit context. The problem was the amount of hand coding and adjusting of the Spring context the approach needed. I finally got the Spring's transaction interceptor working with the auto-wiring (the key is using an interface). So now my problem is that while I've saved myself the headache of making changes to a bunch of files every time I add a new service, my unit tests are now failing. I've traced the failure to a specific class that is decorated with the InjectorHolder--although I believe that is merely because it is the first component that does any Hibernate requests. I'll include the stacktrace at the bottom of the message. I had to remove the line that specified that sessions would be thread bound in Hibernate to take advantage of the Spring managed transactions, and adding that configuration item back in makes no difference for the tests. I'm hoping I'm just missing something simple, but all my Googling is turning up dead ends. Any help out there? org.apache.wicket.WicketRuntimeException: Error attaching this container for rendering: [MarkupContainer [Component id = content]] at org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer .java:1739) at org.apache.wicket.Component.onBeforeRender(Component.java:3854) at org.apache.wicket.Component.internalBeforeRender(Component.java:1061) at org.apache.wicket.Component.beforeRender(Component.java:1095) at org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer .java:1727) at org.apache.wicket.Component.onBeforeRender(Component.java:3854) at org.apache.wicket.Page.onBeforeRender(Page.java:1501) at com.gdais.incidents.view.SiteTemplate.onBeforeRender(SiteTemplate.java:3 3) at org.apache.wicket.Component.internalBeforeRender(Component.java:1061) at org.apache.wicket.Component.beforeRender(Component.java:1095) at org.apache.wicket.Component.prepareForRender(Component.java:2223) at org.apache.wicket.Component.prepareForRender(Component.java:2260) at org.apache.wicket.Page.renderPage(Page.java:893) at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget .respond(BookmarkablePageRequestTarget.java:262) at org.apache.wicket.request.AbstractRequestCycleProcessor.respond(Abstract RequestCycleProcessor.java:105) at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java :1258) at org.apache.wicket.RequestCycle.step(RequestCycle.java:1329) at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1428) at org.apache.wicket.RequestCycle.request(RequestCycle.java:594) at org.apache.wicket.protocol.http.MockWebApplication.processRequestCycle(M ockWebApplication.java:478) at org.apache.wicket.protocol.http.MockWebApplication.processRequestCycle(M ockWebApplication.java:390) at org.apache.wicket.util.tester.BaseWicketTester.startPage(BaseWicketTeste r.java:301) at com.gdais.incidents.view.TestTriagePanel.assertTriageNotAvailableFor(Tes tTriagePanel.java:33) at com.gdais.incidents.view.TestTriagePanel.testTriagePanelNotForAdministra tor(TestTriagePanel.java:27) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav a:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor Impl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at junit.framework.TestCase.runTest(TestCase.java:164) at junit.framework.TestCase.runBare(TestCase.java:130) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:120) at junit.framework.TestSuite.runTest(TestSuite.java:230) at junit.framework.TestSuite.run(TestSuite.java:225) at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUn it3TestReference.java:130) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.ja va:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTe stRunner.java:460) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTe stRunner.java:673)
RE: Spring/Wicket/Hibernate testing driving me banana nuts
I've got the part that injects a Spring WebApplicationContext into the WicketTester already (Source attached). I should be using the application class, if I'm not then something has changed unbeknownst to me. Is there any place it would swap out what I told it to use for what it decided on its own to use? -Original Message- From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com] Sent: Tuesday, November 17, 2009 4:05 PM To: users@wicket.apache.org Subject: Re: Spring/Wicket/Hibernate testing driving me banana nuts i see you are using MockWebApplication in your tests. this application does not install the SpringComponentInjector and so @SpringBean has no effect. you should either give wickettester an instance of your actual application class, or create a mock one that installs springcomponentinjector. -igor On Tue, Nov 17, 2009 at 1:00 PM, Loritsch, Berin C. berin.lorit...@gd-ais.com wrote: application.xml I initially had a setup that worked with both a Web context and a JUnit context. The problem was the amount of hand coding and adjusting of the Spring context the approach needed. I finally got the Spring's transaction interceptor working with the auto-wiring (the key is using an interface). So now my problem is that while I've saved myself the headache of making changes to a bunch of files every time I add a new service, my unit tests are now failing. I've traced the failure to a specific class that is decorated with the InjectorHolder--although I believe that is merely because it is the first component that does any Hibernate requests. I'll include the stacktrace at the bottom of the message. I had to remove the line that specified that sessions would be thread bound in Hibernate to take advantage of the Spring managed transactions, and adding that configuration item back in makes no difference for the tests. I'm hoping I'm just missing something simple, but all my Googling is turning up dead ends. Any help out there? org.apache.wicket.WicketRuntimeException: Error attaching this container for rendering: [MarkupContainer [Component id = content]] at org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer .java:1739) at org.apache.wicket.Component.onBeforeRender(Component.java:3854) at org.apache.wicket.Component.internalBeforeRender(Component.java:1061) at org.apache.wicket.Component.beforeRender(Component.java:1095) at org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer .java:1727) at org.apache.wicket.Component.onBeforeRender(Component.java:3854) at org.apache.wicket.Page.onBeforeRender(Page.java:1501) at com.gdais.incidents.view.SiteTemplate.onBeforeRender(SiteTemplate.java:3 3) at org.apache.wicket.Component.internalBeforeRender(Component.java:1061) at org.apache.wicket.Component.beforeRender(Component.java:1095) at org.apache.wicket.Component.prepareForRender(Component.java:2223) at org.apache.wicket.Component.prepareForRender(Component.java:2260) at org.apache.wicket.Page.renderPage(Page.java:893) at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget .respond(BookmarkablePageRequestTarget.java:262) at org.apache.wicket.request.AbstractRequestCycleProcessor.respond(Abstract RequestCycleProcessor.java:105) at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java :1258) at org.apache.wicket.RequestCycle.step(RequestCycle.java:1329) at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1428) at org.apache.wicket.RequestCycle.request(RequestCycle.java:594) at org.apache.wicket.protocol.http.MockWebApplication.processRequestCycle(M ockWebApplication.java:478) at org.apache.wicket.protocol.http.MockWebApplication.processRequestCycle(M ockWebApplication.java:390) at org.apache.wicket.util.tester.BaseWicketTester.startPage(BaseWicketTeste r.java:301) at com.gdais.incidents.view.TestTriagePanel.assertTriageNotAvailableFor(Tes tTriagePanel.java:33) at com.gdais.incidents.view.TestTriagePanel.testTriagePanelNotForAdministra tor(TestTriagePanel.java:27) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav a:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor Impl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at junit.framework.TestCase.runTest(TestCase.java:164) at junit.framework.TestCase.runBare(TestCase.java:130) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:120) at
Re: Spring/Wicket/Hibernate testing driving me banana nuts
Attachments don't come through these lists. -- Jeremy Thomerson http://www.wickettraining.com On Tue, Nov 17, 2009 at 3:14 PM, Loritsch, Berin C. berin.lorit...@gd-ais.com wrote: I've got the part that injects a Spring WebApplicationContext into the WicketTester already (Source attached). I should be using the application class, if I'm not then something has changed unbeknownst to me. Is there any place it would swap out what I told it to use for what it decided on its own to use? -Original Message- From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com] Sent: Tuesday, November 17, 2009 4:05 PM To: users@wicket.apache.org Subject: Re: Spring/Wicket/Hibernate testing driving me banana nuts i see you are using MockWebApplication in your tests. this application does not install the SpringComponentInjector and so @SpringBean has no effect. you should either give wickettester an instance of your actual application class, or create a mock one that installs springcomponentinjector. -igor On Tue, Nov 17, 2009 at 1:00 PM, Loritsch, Berin C. berin.lorit...@gd-ais.com wrote: application.xml I initially had a setup that worked with both a Web context and a JUnit context. The problem was the amount of hand coding and adjusting of the Spring context the approach needed. I finally got the Spring's transaction interceptor working with the auto-wiring (the key is using an interface). So now my problem is that while I've saved myself the headache of making changes to a bunch of files every time I add a new service, my unit tests are now failing. I've traced the failure to a specific class that is decorated with the InjectorHolder--although I believe that is merely because it is the first component that does any Hibernate requests. I'll include the stacktrace at the bottom of the message. I had to remove the line that specified that sessions would be thread bound in Hibernate to take advantage of the Spring managed transactions, and adding that configuration item back in makes no difference for the tests. I'm hoping I'm just missing something simple, but all my Googling is turning up dead ends. Any help out there? org.apache.wicket.WicketRuntimeException: Error attaching this container for rendering: [MarkupContainer [Component id = content]] at org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer .java:1739) at org.apache.wicket.Component.onBeforeRender(Component.java:3854) at org.apache.wicket.Component.internalBeforeRender(Component.java:1061) at org.apache.wicket.Component.beforeRender(Component.java:1095) at org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer .java:1727) at org.apache.wicket.Component.onBeforeRender(Component.java:3854) at org.apache.wicket.Page.onBeforeRender(Page.java:1501) at com.gdais.incidents.view.SiteTemplate.onBeforeRender(SiteTemplate.java:3 3) at org.apache.wicket.Component.internalBeforeRender(Component.java:1061) at org.apache.wicket.Component.beforeRender(Component.java:1095) at org.apache.wicket.Component.prepareForRender(Component.java:2223) at org.apache.wicket.Component.prepareForRender(Component.java:2260) at org.apache.wicket.Page.renderPage(Page.java:893) at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget .respond(BookmarkablePageRequestTarget.java:262) at org.apache.wicket.request.AbstractRequestCycleProcessor.respond(Abstract RequestCycleProcessor.java:105) at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java :1258) at org.apache.wicket.RequestCycle.step(RequestCycle.java:1329) at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1428) at org.apache.wicket.RequestCycle.request(RequestCycle.java:594) at org.apache.wicket.protocol.http.MockWebApplication.processRequestCycle(M ockWebApplication.java:478) at org.apache.wicket.protocol.http.MockWebApplication.processRequestCycle(M ockWebApplication.java:390) at org.apache.wicket.util.tester.BaseWicketTester.startPage(BaseWicketTeste r.java:301) at com.gdais.incidents.view.TestTriagePanel.assertTriageNotAvailableFor(Tes tTriagePanel.java:33) at com.gdais.incidents.view.TestTriagePanel.testTriagePanelNotForAdministra tor(TestTriagePanel.java:27) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav a:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor Impl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at junit.framework.TestCase.runTest(TestCase.java:164) at
RE: Spring/Wicket/Hibernate testing driving me banana nuts
Hmm, OK attachments are stripped here. Having gone back up through the stack trace, WicketTester extends BaseWicketTester which then extends MockWebApplication. Essentially MockWebApplication has the base implementations for setting up the WebRequestCycle. The @SpringBean is having an effect, because my exception is a HibernateException and not a NullPointerException. I think it has something to do with how the tx:annotation-driven transaction-manager=txManager / interacts with the WicketTester that is unclear to me. The thing that has changed is that while I had that declaration, I introduced using the @Transactional attributes on some of my Hibernate objects. Spring is giving me a proxied class that is supposed to take care of the hibernate sessions and transactions for me. It's having a hard time in the JUnit environment. I'm using the following TransactionManager: bean id=txManager class=org.springframework.orm.hibernate3.HibernateTransactionManager property name=sessionFactory ref=sessionFactory / /bean -Original Message- From: Loritsch, Berin C. [mailto:berin.lorit...@gd-ais.com] Sent: Tuesday, November 17, 2009 4:15 PM To: users@wicket.apache.org Subject: RE: Spring/Wicket/Hibernate testing driving me banana nuts I've got the part that injects a Spring WebApplicationContext into the WicketTester already (Source attached). I should be using the application class, if I'm not then something has changed unbeknownst to me. Is there any place it would swap out what I told it to use for what it decided on its own to use? -Original Message- From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com] Sent: Tuesday, November 17, 2009 4:05 PM To: users@wicket.apache.org Subject: Re: Spring/Wicket/Hibernate testing driving me banana nuts i see you are using MockWebApplication in your tests. this application does not install the SpringComponentInjector and so @SpringBean has no effect. you should either give wickettester an instance of your actual application class, or create a mock one that installs springcomponentinjector. -igor On Tue, Nov 17, 2009 at 1:00 PM, Loritsch, Berin C. berin.lorit...@gd-ais.com wrote: application.xml I initially had a setup that worked with both a Web context and a JUnit context. The problem was the amount of hand coding and adjusting of the Spring context the approach needed. I finally got the Spring's transaction interceptor working with the auto-wiring (the key is using an interface). So now my problem is that while I've saved myself the headache of making changes to a bunch of files every time I add a new service, my unit tests are now failing. I've traced the failure to a specific class that is decorated with the InjectorHolder--although I believe that is merely because it is the first component that does any Hibernate requests. I'll include the stacktrace at the bottom of the message. I had to remove the line that specified that sessions would be thread bound in Hibernate to take advantage of the Spring managed transactions, and adding that configuration item back in makes no difference for the tests. I'm hoping I'm just missing something simple, but all my Googling is turning up dead ends. Any help out there? org.apache.wicket.WicketRuntimeException: Error attaching this container for rendering: [MarkupContainer [Component id = content]] at org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContain er .java:1739) at org.apache.wicket.Component.onBeforeRender(Component.java:3854) at org.apache.wicket.Component.internalBeforeRender(Component.java:1061) at org.apache.wicket.Component.beforeRender(Component.java:1095) at org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContain er .java:1727) at org.apache.wicket.Component.onBeforeRender(Component.java:3854) at org.apache.wicket.Page.onBeforeRender(Page.java:1501) at com.gdais.incidents.view.SiteTemplate.onBeforeRender(SiteTemplate.java :3 3) at org.apache.wicket.Component.internalBeforeRender(Component.java:1061) at org.apache.wicket.Component.beforeRender(Component.java:1095) at org.apache.wicket.Component.prepareForRender(Component.java:2223) at org.apache.wicket.Component.prepareForRender(Component.java:2260) at org.apache.wicket.Page.renderPage(Page.java:893) at org.apache.wicket.request.target.component.BookmarkablePageRequestTarg et .respond(BookmarkablePageRequestTarget.java:262) at org.apache.wicket.request.AbstractRequestCycleProcessor.respond(Abstra ct RequestCycleProcessor.java:105) at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.ja va :1258) at org.apache.wicket.RequestCycle.step(RequestCycle.java:1329) at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1428) at
Re: London Wicket Event, Saturday November 21st
Ioannis, I'll provide a video recorder on Saturday and we can give it another try; it doesn't support an external mic but it should be good enough for viewers with good speakers! I have a couple of ideas that could improve our chances of success here too - more soon. Do you want to be our official camera man? Any other volunteers to share the load? For those coming but not signed-up yet, we'll keep registrations [1] open for another couple of days or until we reach capacity ... remember the Jazz starts at 13:00 and it looks like a few of us will be starting with that in, Foyle's cafe, on the 3rd floor. Regards - Cemal jWeekend OO Java Technologies, Wicket Consulting, Development, Training http://jWeekend.com [1] http://jWeekend.com/dev/LWUGReg Ioannis Mavroukakis wrote: If my mate can't lend me his handheld, I'll see about perhaps renting something for the day... Y. On 7 Oct 2009, at 16:15, Igor Vaynberg wrote: until i see some video proof i will continue to operate under my assumption - there are no presentations, this is just an excuse to get out of the house and go to a pub :) -igor On Wed, Oct 7, 2009 at 3:42 AM, jWeekend jweekend_for...@cabouge.com wrote: Igor, Are you bringing your video-recorder? We'll get you over here sooner or later, maybe for our 3rd year anniversary event in the Summer! Several people have tried to help us with this, but so far the results have not been good enough (really!). We've even knocked-up a special app to publish these wonderful presentations we've been lucky enough to enjoy so many of, so I expect we will give it another go for sure this time, but no promises yet. Regards - Cemal jWeekend OO Java Technologies, Wicket Training and Development igor.vaynberg wrote: can we expect video this time? :) -igor On Tue, Oct 6, 2009 at 6:10 AM, jWeekend jweekend_for...@cabouge.com wrote: Our next London Wicket Event will be held on Saturday, November 21st. This is going to be quite some event again, with Matej Knopp (SVK), Jeremy Thomerson (USA) and Alastair Maw (UK), all core developers, amongst our 5 or 6 presenters. I am still working on securing a suitable location and fine tuning the schedule (probably at least 5 or 6 hours) and the exact format, but keep your diary clear if you'd like to come along and we will set up registration at the usual place [1] in the next few days (do not register until we've updated the data for the registration page) once the location/format/logistics are nailed down. Watch this space ... Regards - Cemal jWeekend OO Java Technologies, Wicket Training and Development http://jWeekend.com [1] http://jweekend.com/dev/LWUGReg - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://www.nabble.com/London-Wicket-Event%2C-Saturday-November-21st-tp25768507p25783880.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __ - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://old.nabble.com/London-Wicket-Event%2C-Saturday-November-21st-tp25768507p26396490.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Modal window and resource request target
Thats Ernesto, that certainly is one rather clean alternative. Thanks, Farhan. reiern70 wrote: Maybe the solution Sven proposes here can be of some help http://cwiki.apache.org/WICKET/ajax-update-and-file-download-in-one-blow.html http://cwiki.apache.org/WICKET/ajax-update-and-file-download-in-one-blow.html Best, Ernesto On Tue, Nov 17, 2009 at 6:51 AM, mfs farhan.sar...@gmail.com wrote: Am looking for something very similar. Matej can you elaborate on what you meant by getting the url of the request listener ? Thanks in advance Farhan. jwray wrote: Hi, thanks for the prompt reply. Can you give me some details about where to get the URL or request listener from? thanks Jonny Matej Knopp-2 wrote: This is a bit tricky thing to do. You'd have to redirect from ajax request. so you could get URL for the request listener and then use RedirectRequestTarget. -Matej On Tue, Jul 8, 2008 at 10:23 PM, jwray jonny.w...@fiveprime.com wrote: Hi, I have the situation in which an action applied to a specific object needs to obtain some information from the user then construct a dynamic resource (pdf file) based on the object and obtained information. The list of object are contained in AjaxFallbackDefaultDataTable and I am currently approaching the problem by using a modal window to obtain the extra parameters when the user clicks a specific AjaxFallbackLink on a table row. This works fine but, when I try and stream the constructed resource nothing happens. This is the code in my WindowClosedCallback function: public void onClose(AjaxRequestTarget target) { if(panel.getNumberOfDays() != null){ System.out.println(Visiting resource); TubeLabelsResource resource = new TubeLabelsResource(study.getId(), searchServices); ResourceStreamRequestTarget requestTarget = new ResourceStreamRequestTarget(resource.getResourceStream()); RequestCycle.get().setRequestTarget(requestTarget); } } any pointers as to how to get the resource to stream in the onClose, or an alternative approach to the problem would be gratefully received. thanks Jonny -- View this message in context: http://www.nabble.com/Modal-window-and-resource-request-target-tp18348263p18348263.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://old.nabble.com/Modal-window-and-resource-request-target-tp18348263p26384787.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://old.nabble.com/Modal-window-and-resource-request-target-tp18348263p26399891.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: tomcat live remote war redeploy
D'oh! I forgot context.xml. META-INF/context.xml: Context antiJARLocking=true antiResourceLocking=true !-- whatever additional context config needed, or nothing -- /Context - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: tomcat live remote war redeploy
when you undeploy the app what files are left behind in your context? -igor On Tue, Nov 17, 2009 at 3:40 PM, Steve Jensen Widmar swidm...@irf.com wrote: D'oh! I forgot context.xml. META-INF/context.xml: Context antiJARLocking=true antiResourceLocking=true !-- whatever additional context config needed, or nothing -- /Context - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Spring/Wicket/Hibernate testing driving me banana nuts
So in typical web applications, people would install a session filter (like https://www.hibernate.org/43.html), which would open a session at the start of a request, and close it afterwards. You probably need to find an alternative for that filter in your test code. Eelco On Tue, Nov 17, 2009 at 4:26 PM, Loritsch, Berin C. berin.lorit...@gd-ais.com wrote: Hmm, OK attachments are stripped here. Having gone back up through the stack trace, WicketTester extends BaseWicketTester which then extends MockWebApplication. Essentially MockWebApplication has the base implementations for setting up the WebRequestCycle. The @SpringBean is having an effect, because my exception is a HibernateException and not a NullPointerException. I think it has something to do with how the tx:annotation-driven transaction-manager=txManager / interacts with the WicketTester that is unclear to me. The thing that has changed is that while I had that declaration, I introduced using the @Transactional attributes on some of my Hibernate objects. Spring is giving me a proxied class that is supposed to take care of the hibernate sessions and transactions for me. It's having a hard time in the JUnit environment. I'm using the following TransactionManager: bean id=txManager class=org.springframework.orm.hibernate3.HibernateTransactionManager property name=sessionFactory ref=sessionFactory / /bean -Original Message- From: Loritsch, Berin C. [mailto:berin.lorit...@gd-ais.com] Sent: Tuesday, November 17, 2009 4:15 PM To: users@wicket.apache.org Subject: RE: Spring/Wicket/Hibernate testing driving me banana nuts I've got the part that injects a Spring WebApplicationContext into the WicketTester already (Source attached). I should be using the application class, if I'm not then something has changed unbeknownst to me. Is there any place it would swap out what I told it to use for what it decided on its own to use? -Original Message- From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com] Sent: Tuesday, November 17, 2009 4:05 PM To: users@wicket.apache.org Subject: Re: Spring/Wicket/Hibernate testing driving me banana nuts i see you are using MockWebApplication in your tests. this application does not install the SpringComponentInjector and so @SpringBean has no effect. you should either give wickettester an instance of your actual application class, or create a mock one that installs springcomponentinjector. -igor On Tue, Nov 17, 2009 at 1:00 PM, Loritsch, Berin C. berin.lorit...@gd-ais.com wrote: application.xml I initially had a setup that worked with both a Web context and a JUnit context. The problem was the amount of hand coding and adjusting of the Spring context the approach needed. I finally got the Spring's transaction interceptor working with the auto-wiring (the key is using an interface). So now my problem is that while I've saved myself the headache of making changes to a bunch of files every time I add a new service, my unit tests are now failing. I've traced the failure to a specific class that is decorated with the InjectorHolder--although I believe that is merely because it is the first component that does any Hibernate requests. I'll include the stacktrace at the bottom of the message. I had to remove the line that specified that sessions would be thread bound in Hibernate to take advantage of the Spring managed transactions, and adding that configuration item back in makes no difference for the tests. I'm hoping I'm just missing something simple, but all my Googling is turning up dead ends. Any help out there? org.apache.wicket.WicketRuntimeException: Error attaching this container for rendering: [MarkupContainer [Component id = content]] at org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContain er .java:1739) at org.apache.wicket.Component.onBeforeRender(Component.java:3854) at org.apache.wicket.Component.internalBeforeRender(Component.java:1061) at org.apache.wicket.Component.beforeRender(Component.java:1095) at org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContain er .java:1727) at org.apache.wicket.Component.onBeforeRender(Component.java:3854) at org.apache.wicket.Page.onBeforeRender(Page.java:1501) at com.gdais.incidents.view.SiteTemplate.onBeforeRender(SiteTemplate.java :3 3) at org.apache.wicket.Component.internalBeforeRender(Component.java:1061) at org.apache.wicket.Component.beforeRender(Component.java:1095) at org.apache.wicket.Component.prepareForRender(Component.java:2223) at org.apache.wicket.Component.prepareForRender(Component.java:2260) at org.apache.wicket.Page.renderPage(Page.java:893) at org.apache.wicket.request.target.component.BookmarkablePageRequestTarg et
RE: tomcat live remote war redeploy
Hi, Igor. Well, before I remembered the context.xml requirements in this situation, the app directory was being left under the tomcat webapps directory, with the only file being the wicket jar (1.4.1). I've since updated to 1.4.3, things are still working OK. Cheers - Steve - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: tomcat live remote war redeploy
cheers -igor On Tue, Nov 17, 2009 at 4:11 PM, Steve Jensen Widmar swidm...@irf.com wrote: Hi, Igor. Well, before I remembered the context.xml requirements in this situation, the app directory was being left under the tomcat webapps directory, with the only file being the wicket jar (1.4.1). I've since updated to 1.4.3, things are still working OK. Cheers - Steve - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: London Wicket Event, Saturday November 21st
Nicolas: On Wed, Oct 7, 2009 at 3:25 PM, Nicolas Melendez nmelen...@getsense.com.arwrote: When a Wicket Event in Buenos Aires, Argentina ?? We also have lots of pubs :) I'm expecting for that event too. =) Cheers! -- Mauro Ciancio
[1.4] override getObject() return type not the same with original model ?
Hi all I've already converted most of my code from 1.3 to 1.4 , except this situation : Label intToStringLabel = new Label(intToString , new PropertyModel(this , integer) { @Override public Object getObject() { int value = ((Integer) super.getObject()).intValue(); switch(value) { case 1: return one; case 2: return two; case 3: return three; } return ; } }); add(intToStringLabel); In the code , I want to output Integer of 1,2,3 to one , two and three In the code , PropertyModel is not parameterized , so I change to : new PropertyModelInteger(this , integer) and eclipse warns getObject() 's return type should be Integer But what I want to return is String , not Integer . This doesn't work. OK , then , I change my code to new PropertyModelString(this , integer) and eclipse warns ((Integer) super.getObject()).intValue(); Cannot cast from String to Integer. I don't know what else can I do , How to parameterize this situation ?
Re: [1.4] override getObject() return type not the same with original model ?
Well, you can't make a subclass a different parameterized type than it's parent. It won't work. You should be using an Integer model for this and using a converter rather than a nested model to make it a string. That's what converters are for. -- Jeremy Thomerson http://www.wickettraining.com On Tue, Nov 17, 2009 at 11:11 PM, smallufo small...@gmail.com wrote: Hi all I've already converted most of my code from 1.3 to 1.4 , except this situation : Label intToStringLabel = new Label(intToString , new PropertyModel(this , integer) { @Override public Object getObject() { int value = ((Integer) super.getObject()).intValue(); switch(value) { case 1: return one; case 2: return two; case 3: return three; } return ; } }); add(intToStringLabel); In the code , I want to output Integer of 1,2,3 to one , two and three In the code , PropertyModel is not parameterized , so I change to : new PropertyModelInteger(this , integer) and eclipse warns getObject() 's return type should be Integer But what I want to return is String , not Integer . This doesn't work. OK , then , I change my code to new PropertyModelString(this , integer) and eclipse warns ((Integer) super.getObject()).intValue(); Cannot cast from String to Integer. I don't know what else can I do , How to parameterize this situation ?
web projct of wicket can be changed to swing?
Hi: There is a web project which uses the wicket framework as present tier ,can I change them to swing?
Re: web projct of wicket can be changed to swing?
Yeah - you can do anything you want. You could also convert it to flash, Tapestry, or c++ . But it will require rewriting the entire UI. Wicket components can't be used as Swing components. Sorry -- Jeremy Thomerson http://www.wickettraining.com On Tue, Nov 17, 2009 at 11:34 PM, maven apache apachemav...@gmail.comwrote: Hi: There is a web project which uses the wicket framework as present tier ,can I change them to swing?
Re: London Wicket Event, Saturday November 21st
or in Porto Alegre, Brazil ;) Mauro Ciancio wrote: Nicolas: On Wed, Oct 7, 2009 at 3:25 PM, Nicolas Melendez nmelen...@getsense.com.arwrote: When a Wicket Event in Buenos Aires, Argentina ?? We also have lots of pubs :) I'm expecting for that event too. =) Cheers!
Re: TextField escape characters
Hello again, Even setEscapeModelStrings() is set to false, the character ö is only displayed not the “R#246;sch” (R followed by ampersand followed by hash followed by 246 followed by seimcolon followed by sch ). In a web page subclass we have a text field and the characters “R#246;sch” (R followed by ampersand followed by hash followed by 246 followed by seimcolon followed by sch ) is set as model object. When the page is displayed the text field displays the characters as “*Rösch” * not as exact value entered. The setEscapeModelStrings() for the text field is not set as false. -- View this message in context: http://old.nabble.com/TextField---escape-characters-tp26391281p26402981.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: [1.4] override getObject() return type not the same with original model ?
chain the two models: class numstringmodel extends abstractreadonlymodelstring { private final imodelinteger intmodel; public numstringmodel(imodelinteger intmodel) { this.intmodel=intmodel; } public string getobject() { int val=intmodel.getobject(); switch (val) } public void detach() { intmodel.detach(); } } add(new label(.., new numstringmodel(new propertymodel(... -igor On Tue, Nov 17, 2009 at 9:11 PM, smallufo small...@gmail.com wrote: Hi all I've already converted most of my code from 1.3 to 1.4 , except this situation : Label intToStringLabel = new Label(intToString , new PropertyModel(this , integer) { �...@override public Object getObject() { int value = ((Integer) super.getObject()).intValue(); switch(value) { case 1: return one; case 2: return two; case 3: return three; } return ; } }); add(intToStringLabel); In the code , I want to output Integer of 1,2,3 to one , two and three In the code , PropertyModel is not parameterized , so I change to : new PropertyModelInteger(this , integer) and eclipse warns getObject() 's return type should be Integer But what I want to return is String , not Integer . This doesn't work. OK , then , I change my code to new PropertyModelString(this , integer) and eclipse warns ((Integer) super.getObject()).intValue(); Cannot cast from String to Integer. I don't know what else can I do , How to parameterize this situation ? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
How to use IAuthorizationStrategy to control TabbedPanel title?
Hi, I use IAuthorizationStrategy to control all my applications, but I do not know how to control TabbedPanel. I have three panels, I can control the panel itself, but in the same way, I write code to control the tabbledPanel title to display or not, it does not work. Is there a way to control that? Thanks. -- Thanks! VVThumb Production Location: Shumagang 6H-8, Jinan, Shandong, China 25 Mobile: +086-15864011231 email: haulynja...@vvthumb.com website: http://haulynjason.net gtalk: saharab...@gmail.com skype: saharabear QQ: 378606292 msn:saharab...@gmail.com msn%3asaharab...@gmail.com yahoo:jia_hao...@yahoo.com yahoo%3ajia_hao...@yahoo.com Twitter: http://twitter.com/saharabear Linkedin: http://www.linkedin.com/in/haulyn Haulyn Jason
500 error from server with very quickly click on component
Hi: My architecture is using wicket as UI layer, then use Hessian as RPC web service. I find a problem, everything works well in common condition, if I click a link very quickly twice or more at the same time, the page must be crashed or the server will return 500 error. I try to use JMeter to test my service server, I believe that my service server has no problem, I mean it can not because of service server performance issue for 500. Maybe wicket is stateful but hessian is stateless? I try to debug it but nothing was found. Can anyone help me ? -- Thanks! VVThumb Production Location: Shumagang 6H-8, Jinan, Shandong, China 25 Mobile: +086-15864011231 email: haulynja...@vvthumb.com website: http://haulynjason.net gtalk: saharab...@gmail.com skype: saharabear QQ: 378606292 msn:saharab...@gmail.com msn%3asaharab...@gmail.com yahoo:jia_hao...@yahoo.com yahoo%3ajia_hao...@yahoo.com Twitter: http://twitter.com/saharabear Linkedin: http://www.linkedin.com/in/haulyn Haulyn Jason
Re: 500 error from server with very quickly click on component
Hi, Makundi, I try to set threadpool to the max, always 500 on the way On Wed, Nov 18, 2009 at 3:51 PM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: Not knowing anything about anything.. maybe your threadpool runs short? ** Martin 2009/11/18 Haulyn R. Jason saharab...@gmail.com: Hi: My architecture is using wicket as UI layer, then use Hessian as RPC web service. I find a problem, everything works well in common condition, if I click a link very quickly twice or more at the same time, the page must be crashed or the server will return 500 error. I try to use JMeter to test my service server, I believe that my service server has no problem, I mean it can not because of service server performance issue for 500. Maybe wicket is stateful but hessian is stateless? I try to debug it but nothing was found. Can anyone help me ? -- Thanks! VVThumb Production Location: Shumagang 6H-8, Jinan, Shandong, China 25 Mobile: +086-15864011231 email: haulynja...@vvthumb.com website: http://haulynjason.net gtalk: saharab...@gmail.com skype: saharabear QQ: 378606292 msn:saharab...@gmail.com msn%3asaharab...@gmail.com msn%3asaharab...@gmail.com msn%253asaharab...@gmail.com yahoo:jia_hao...@yahoo.com yahoo%3ajia_hao...@yahoo.com yahoo%3ajia_hao...@yahoo.com yahoo%253ajia_hao...@yahoo.com Twitter: http://twitter.com/saharabear Linkedin: http://www.linkedin.com/in/haulyn Haulyn Jason - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Thanks! VVThumb Production Location: Shumagang 6H-8, Jinan, Shandong, China 25 Mobile: +086-15864011231 email: haulynja...@vvthumb.com website: http://haulynjason.net gtalk: saharab...@gmail.com skype: saharabear QQ: 378606292 msn:saharab...@gmail.com msn%3asaharab...@gmail.com yahoo:jia_hao...@yahoo.com yahoo%3ajia_hao...@yahoo.com Twitter: http://twitter.com/saharabear Linkedin: http://www.linkedin.com/in/haulyn Haulyn Jason