Re: Wicket And EasyMock
Look at the blog tutorial. it uses easy mock for some of the testing... http://cwiki.apache.org/WICKET/blog-tutorial.html carloc wrote: Hi I'm trying to use wicketTester and FormTester together with easymock. I seem to be getting a lot of notserializableexceptions and my form won't submit properly. Is there anything that I should do? ERROR - Objects- Error serializing object class com.ccti.bo.login.LoginPage [object=[Page class = com.ccti.bo.login.LoginPage, id = 0, version = 0]] org.apache.wicket.util.io.SerializableChecker$WicketNotSerializableException: Unable to serialize class: org.easymock.internal.ObjectMethodsFilter Field hierarchy is: 0 [class=com.ccti.bo.login.LoginPage, path=0] private com.ccti.service.user.UserService com.ccti.bo.login.LoginPage.userService [class=$Proxy0] protected java.lang.reflect.InvocationHandler java.lang.reflect.Proxy.h [class=org.easymock.internal.ObjectMethodsFilter] - field that is not serializable at org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:342) at org.apache.wicket.util.io.SerializableChecker.checkFields(SerializableChecker.java:610) at org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:533) at org.apache.wicket.util.io.SerializableChecker.checkFields(SerializableChecker.java:610) at org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:533) at org.apache.wicket.util.io.SerializableChecker.writeObjectOverride(SerializableChecker.java:678) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:298) at org.apache.wicket.util.io.IObjectStreamFactory$2.writeObjectOverride(IObjectStreamFactory.java:125) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:298) at org.apache.wicket.util.lang.Objects.objectToByteArray(Objects.java:1085) at org.apache.wicket.protocol.http.pagestore.AbstractPageStore.serializePage(AbstractPageStore.java:197) at org.apache.wicket.protocol.http.pagestore.DiskPageStore.storePage(DiskPageStore.java:806) at org.apache.wicket.protocol.http.SecondLevelCacheSessionStore$SecondLevelCachePageMap.put(SecondLevelCacheSessionStore.java:332) at org.apache.wicket.Session.requestDetached(Session.java:1364) at org.apache.wicket.RequestCycle.detach(RequestCycle.java:1091) at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1334) at org.apache.wicket.RequestCycle.request(RequestCycle.java:493) at org.apache.wicket.protocol.http.MockWebApplication.processRequestCycle(MockWebApplication.java:384) at org.apache.wicket.protocol.http.MockWebApplication.processRequestCycle(MockWebApplication.java:372) at org.apache.wicket.util.tester.BaseWicketTester.executeListener(BaseWicketTester.java:248) at com.ccti.bo.login.LoginPageTest.testFailedLogin(LoginPageTest.java:64) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at junit.framework.TestCase.runTest(TestCase.java:154) at junit.framework.TestCase.runBare(TestCase.java:127) 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:118) at junit.framework.TestSuite.runTest(TestSuite.java:208) at junit.framework.TestSuite.run(TestSuite.java:203) at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196) Caused by: java.io.NotSerializableException: org.easymock.internal.ObjectMethodsFilter at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1081) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079) at
Dynamic form components and disabling them
Hi everyone! I have a form built dynamically using a GridView and a bunch of in-panel components.. It works pretty fine, but I have to alter its behavior in this way: I need to initialise every component to be disabled, and enable them by pressing an enable form button.. My problem is that even if on submit I call setEnable(true) on every component, afterwards they are still disabled.. Is this because the GridView recreates the components every time, so the state is lost? Or is it supposed to work? (which would mean I'm doing something wrong of course :) ) Many thanks for your time! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Roles and Tabbed Panel
Hi, I'm looking at using Roles more fully in our application, and I'm trying to hide the tabs if the user isn't authorized for it. The way I'm doing it now is manually checking before I add each Abstract Tab to the List. If the user has the right role, well and good. What I'm wondering, is if there's something similar to @AuthorizeAction(action=RENDER, roles = { ADMIN, EMPLOYEE } ) Which could be added to the Panel or tab? So far I haven't found a way to do that. Am I just daft or do I have to keep the check manually? Alexander
Parallel execution of AjaxLazyLoadPanel
Hi, I am using various AjaxLazyLoadPanel in one page to load data from a slow service. The problem is that each panel is updated sequentially. As an example, if I have 4 panels where the first takes 20sec to load and the remaining 3 panels takes 1sec to load, these 3 'fast' panels will only be loaded after the first ('slow') is rendered. How can I change this behavior so AjaxLazyLoadPanel can do these updates in parallel? Thank you, Nuno -- Nuno Fernandes [EMAIL PROTECTED] UFP-UV - Universidade Virtual Universidade Fernando Pessoa [www.ufp.pt] Praça 9 de Abril, 349 4249-004 Porto tel: + 351 22 507 13 00 fax: + 351 22 550 82 69 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Wicket as a front controller ?
smallufo smallufo at gmail.com writes: I just need to redirect. If bbAuth token is correct , then set correct Wicket Session and redirect to proper page. If incorrect , then redirect to another page. To redirect, try: public class P1 extends WebPage { @Override protected void onBeforeRender() { super.onBeforeRender(); throw new RestartResponseException(P2.class); } } -- Kent Tong Wicket book with free chapters at http://www.agileskills2.org/EWDW - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Monitoring Wicket using JAMon
I've been looking at doing something similar to this in my application. any thoughts on contributing this to a new wicketstuff project? On Thu, Jan 31, 2008 at 9:14 AM, Johan Compagner [EMAIL PROTECTED] wrote: I am not sure if I follow you here. What do you mean by testing two pages? Here is how I think it works (and want it to work): 1. User clicks on component on Page1 that will result in navigating to Page2. In this case JAMon shows: Page2 30ms. 2. User clicks on component on Page2 that will result in a refresh (ajax or not) of Page2. IN this case JAMon shows: Page2 30 ms. yes in situation 2 you are testing page2 completely, so the request phase (handling of the click event) and the response phase (the render of page2) but in situation 1 you are testing the request phase of page1 (the click event) and then the rendering of pag2 (thats the respond) And it all depends what takes a lot of time, is it the render because loads of new data is queried from the db with loads of stuff on the page. Or is it the action that does a heavy query or other backend action? johan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Wicket 1.3.x PageParameters
Guys, I'm migrating to Wicket 1.3.x but my application is raising the following exception java.lang.IllegalArgumentException: PageParameters can only contain String or String[] at org.apache.wicket.request.target.coding.WebRequestEncoder.addValue( WebRequestEncoder.java:71) at org.apache.wicket.request.target.coding.QueryStringUrlCodingStrategy.appendParameters (QueryStringUrlCodingStrategy.java:139) at org.apache.wicket.request.target.coding.BookmarkablePageRequestTargetUrlCodingStrategy.encode (BookmarkablePageRequestTargetUrlCodingStrategy.java:135) at org.apache.wicket.protocol.http.request.WebRequestCodingStrategy.pathForTarget (WebRequestCodingStrategy.java:459) at org.apache.wicket.protocol.http.request.WebRequestCodingStrategy.encode( WebRequestCodingStrategy.java:236) at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.respond (BookmarkablePageRequestTarget.java:224) at org.apache.wicket.request.AbstractRequestCycleProcessor.respond( AbstractRequestCycleProcessor.java:103) at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java :1172) Is the PageParameters contract changed to contains only String as values?! Any workaround to have to change all my PageParameters composition? Thank you, / Paolo
Re: Monitoring Wicket using JAMon
I would be glad to contribute something. Are you related to the wicketstuff project? Or should I just appy for commit access as described on: http://wicketstuff.org/confluence/display/STUFFWEB/Home. Cheers, Lars On Mon, Feb 25, 2008 at 5:00 PM, Ryan Sonnek [EMAIL PROTECTED] wrote: I've been looking at doing something similar to this in my application. any thoughts on contributing this to a new wicketstuff project? On Thu, Jan 31, 2008 at 9:14 AM, Johan Compagner [EMAIL PROTECTED] wrote: I am not sure if I follow you here. What do you mean by testing two pages? Here is how I think it works (and want it to work): 1. User clicks on component on Page1 that will result in navigating to Page2. In this case JAMon shows: Page2 30ms. 2. User clicks on component on Page2 that will result in a refresh (ajax or not) of Page2. IN this case JAMon shows: Page2 30 ms. yes in situation 2 you are testing page2 completely, so the request phase (handling of the click event) and the response phase (the render of page2) but in situation 1 you are testing the request phase of page1 (the click event) and then the rendering of pag2 (thats the respond) And it all depends what takes a lot of time, is it the render because loads of new data is queried from the db with loads of stuff on the page. Or is it the action that does a heavy query or other backend action? johan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Wicket as a front controller ?
Thank you , it's almost done. But it still have problems : Calling setResponsePage() at the end of onBeforeRender() not working. How to solve it ? 2008/2/25, Kent Tong [EMAIL PROTECTED]: smallufo smallufo at gmail.com writes: I just need to redirect. If bbAuth token is correct , then set correct Wicket Session and redirect to proper page. If incorrect , then redirect to another page. To redirect, try: public class P1 extends WebPage { @Override protected void onBeforeRender() { super.onBeforeRender(); throw new RestartResponseException(P2.class); } }
Re: Roles and Tabbed Panel
you have to subclass TabbedPanel and make it aware of the annotation. i think there is a SecureTabbedPanel in wasp/swarm if you are looking for inspiration. -igor On Mon, Feb 25, 2008 at 3:27 AM, Alexander Landsnes Keül [EMAIL PROTECTED] wrote: Hi, I'm looking at using Roles more fully in our application, and I'm trying to hide the tabs if the user isn't authorized for it. The way I'm doing it now is manually checking before I add each Abstract Tab to the List. If the user has the right role, well and good. What I'm wondering, is if there's something similar to @AuthorizeAction(action=RENDER, roles = { ADMIN, EMPLOYEE } ) Which could be added to the Panel or tab? So far I haven't found a way to do that. Am I just daft or do I have to keep the check manually? Alexander - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Wicket 1.3.x PageParameters
it could always only contain strings, since it is added to the url. now you might have to call .tostring() on your objects youself... -igor On Mon, Feb 25, 2008 at 8:36 AM, Paolo Di Tommaso [EMAIL PROTECTED] wrote: Guys, I'm migrating to Wicket 1.3.x but my application is raising the following exception java.lang.IllegalArgumentException: PageParameters can only contain String or String[] at org.apache.wicket.request.target.coding.WebRequestEncoder.addValue( WebRequestEncoder.java:71) at org.apache.wicket.request.target.coding.QueryStringUrlCodingStrategy.appendParameters (QueryStringUrlCodingStrategy.java:139) at org.apache.wicket.request.target.coding.BookmarkablePageRequestTargetUrlCodingStrategy.encode (BookmarkablePageRequestTargetUrlCodingStrategy.java:135) at org.apache.wicket.protocol.http.request.WebRequestCodingStrategy.pathForTarget (WebRequestCodingStrategy.java:459) at org.apache.wicket.protocol.http.request.WebRequestCodingStrategy.encode( WebRequestCodingStrategy.java:236) at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.respond (BookmarkablePageRequestTarget.java:224) at org.apache.wicket.request.AbstractRequestCycleProcessor.respond( AbstractRequestCycleProcessor.java:103) at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java :1172) Is the PageParameters contract changed to contains only String as values?! Any workaround to have to change all my PageParameters composition? Thank you, / Paolo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Dynamic form components and disabling them
yeah, the components are recreated. you have to set an item reuse strategy for the gridview, see setItemReuseStrategy ... -igor On Mon, Feb 25, 2008 at 1:54 AM, Federico Fanton [EMAIL PROTECTED] wrote: Hi everyone! I have a form built dynamically using a GridView and a bunch of in-panel components.. It works pretty fine, but I have to alter its behavior in this way: I need to initialise every component to be disabled, and enable them by pressing an enable form button.. My problem is that even if on submit I call setEnable(true) on every component, afterwards they are still disabled.. Is this because the GridView recreates the components every time, so the state is lost? Or is it supposed to work? (which would mean I'm doing something wrong of course :) ) Many thanks for your time! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Binding component visibility attribute to another form value
I'm writing a form (non-ajax) in which a selection from a DropDownChoice makes various other items on the form visible or invisible. I'd like to bind this behavior up lazily using properties, instead of making field variables for all the visible/invisible components. It seems like writing a custom behavior is the right way to do this, but once I call setVisible(false) on a component the beforeRender() method in my behavior doesn't get called anymore, and the component never becomes visible. Here's a sketch of the code: Form form = new Form(form); add(form); DropDownChoice report = new DropDownChoice(report ; new PropertyModel(this, selectedReport), reportOptions ); WebMarkdupContainer f1 = new WebMarkupContainer(f1); f1.add(new AbstractBehavior() { public void onComponentTag(Component component, ComponentTag tag) { // only show the component if it's enabled for the selected report component.setVisible(selectedReport != null selectedReport.isField1Enabled()); super.onComponentTag(component, tag); } } ); form.add(f1); f1.add(new TextField(myTextField)); It seems like the isTemporary() method in my behavior gets called, even if the component is invisible. This hardly seems like the right place to put the code, though. Should I always keep the component visible and have my behavior replace all the contents after rendering? -Sam Barnum
Re: Wicket as a front controller ?
2008/2/26, smallufo [EMAIL PROTECTED]: Thank you , it's almost done. But it still have problems : Calling setResponsePage() at the end of onBeforeRender() not working. How to solve it ? I found the answer . just add : setRedirect(true); And it works.
Re: Monitoring Wicket using JAMon
I'd be happy to help if you need any since I commit to a few separate wicketstuff projects, but applying for your own commit access would probably be best. On Mon, Feb 25, 2008 at 10:45 AM, lars vonk [EMAIL PROTECTED] wrote: I would be glad to contribute something. Are you related to the wicketstuff project? Or should I just appy for commit access as described on: http://wicketstuff.org/confluence/display/STUFFWEB/Home. Cheers, Lars On Mon, Feb 25, 2008 at 5:00 PM, Ryan Sonnek [EMAIL PROTECTED] wrote: I've been looking at doing something similar to this in my application. any thoughts on contributing this to a new wicketstuff project? On Thu, Jan 31, 2008 at 9:14 AM, Johan Compagner [EMAIL PROTECTED] wrote: I am not sure if I follow you here. What do you mean by testing two pages? Here is how I think it works (and want it to work): 1. User clicks on component on Page1 that will result in navigating to Page2. In this case JAMon shows: Page2 30ms. 2. User clicks on component on Page2 that will result in a refresh (ajax or not) of Page2. IN this case JAMon shows: Page2 30 ms. yes in situation 2 you are testing page2 completely, so the request phase (handling of the click event) and the response phase (the render of page2) but in situation 1 you are testing the request phase of page1 (the click event) and then the rendering of pag2 (thats the respond) And it all depends what takes a lot of time, is it the render because loads of new data is queried from the db with loads of stuff on the page. Or is it the action that does a heavy query or other backend action? johan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Endless View/Table/Grid
Hi, Does anyone tried to make endless loading of View/Table/Grid items ? Something like Google's Spreadsheets, www.thoof.com (Jonathan) but for non-page component, i.e. a component in div element with y-overflow enabled. It would be cool if instead of PagingNavigator I could use a behavior that calls for example onEndReached/onTopReached(). martin-g _ http://www.e-card.bg/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with multiwindow app
Hi thx for reply, I use wicket 1.2.6 and i don't use pagemap. Could you give me some example how to do this? Pzdr, legol Johan Compagner wrote: What wicket version is this? If it is 1.2 do you use pagemaps (new onces for every tab you open?) On 2/22/08, legol [EMAIL PROTECTED] wrote: Hi all!!! I have application with 2 pages. First page lists users names and each element of list is link to second page that shows user details. I want to have this second page shown in other tab or window. Everything works fine when I click one user link, detail page is loaded and i can operate on it. But when i click on i.e. 5 links in very short time and 5 tabs are opened i get 'page expired' on each of them. Thanks to logs I discovered that when i open page in other tab or window it renders twice. Maybe this is the problem. Do you have any idea how to solve it? pzdr, Legol -- View this message in context: http://www.nabble.com/Problem-with-multiwindow-app-tp15632896p15632896.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Problem-with-multiwindow-app-tp15632896p15674566.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Howto use .xhtml instead of .html for template file extension
Out of curiosity, since pages in a Wicket application aren't accessed as directly as something like a JSP might be, what reasoning is there for using an XHTML file extension instead of HTML? -Brandon MYoung wrote: I follow this: http://cwiki.apache.org/confluence/display/WICKET/Use+a+different+extension+for+template+files added this to MyPage: @Override public String getMarkupType() { return xhtml; } and it doesn't work. Firefox wants to download the file instead of showing the page. http://www.nabble.com/file/p15641885/no-go-xhtml.jpg IE7 cannot even download the file. What am I doing wrong? -- View this message in context: http://www.nabble.com/Howto-use-.xhtml-instead-of-.html-for-template-file-extension-tp15641885p15674567.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Roles and Tabbed Panel
See http://markmail.org/message/m4p7czefy6gdngue For how someone solved it using auth-roles. Maurice On Mon, Feb 25, 2008 at 5:59 PM, Igor Vaynberg [EMAIL PROTECTED] wrote: you have to subclass TabbedPanel and make it aware of the annotation. i think there is a SecureTabbedPanel in wasp/swarm if you are looking for inspiration. -igor On Mon, Feb 25, 2008 at 3:27 AM, Alexander Landsnes Keül [EMAIL PROTECTED] wrote: Hi, I'm looking at using Roles more fully in our application, and I'm trying to hide the tabs if the user isn't authorized for it. The way I'm doing it now is manually checking before I add each Abstract Tab to the List. If the user has the right role, well and good. What I'm wondering, is if there's something similar to @AuthorizeAction(action=RENDER, roles = { ADMIN, EMPLOYEE } ) Which could be added to the Panel or tab? So far I haven't found a way to do that. Am I just daft or do I have to keep the check manually? Alexander - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Wicket-FBML Released
Wicket-FBML (facebook markup language) 0.1 has been released on sourceforge. It doesn't have much, but I'd like to think it'll help.
Re: Binding component visibility attribute to another form value
On Mon, 25 Feb 2008, Sam Barnum wrote: It seems like writing a custom behavior is the right way to do this, but once I call setVisible(false) on a component the beforeRender() method in my behavior doesn't get called anymore, and the component never becomes visible. ... DropDownChoice report = new DropDownChoice(report ; new PropertyModel(this, selectedReport), reportOptions ); WebMarkdupContainer f1 = new WebMarkupContainer(f1); f1.add(new AbstractBehavior() { public void onComponentTag(Component component, ComponentTag tag) { // only show the component if it's enabled for the selected report component.setVisible(selectedReport != null selectedReport.isField1Enabled()); super.onComponentTag(component, tag); } } ); class ReportDependentWebMarkupContainer extends WebMarkupContainer { public ReportDependentWebMarkupContainer(String id) { super(id); } @Override public boolean isVisible() { if (selectedReport == null) { return false; } return selectedReport.isField1Enabled()); } } WebMarkupContainer f1 = new ReportDependentWebMarkupContainer(f1); If you don't want to override isVisible(), you can do setting the visiblity in Component.onBeforeRender(). I'm not sure if you can control visibility in a Behavior, but have a vague memory that we tried it sometime and couldn't do it either. Should I always keep the component visible and have my behavior replace all the contents after rendering? No. Best wishes, Timo -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
newbie Quick Start question
What's the most automatic way to get Jetty to pick up changes to the application in development mode, using IntelliJ IDEA? I'm following the quick start instructions on http://wicket.apache.org/quickstart.html (which, btw, is in conflict with the more easily googlable http://wicket.sourceforge.net/wicket-quickstart/index.html). Currently I have to restart the application to see changes. I'm a rank newbie when it comes to Java IDE's, btw. My web Java experience consists of developing a couple of web apps using JSP and Tomcat. Emacs + gmake was my IDE, so you can see where I'm starting from ;-) Thanks, Kevin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: newbie Quick Start question
Are you using the Start class? Are you sure you're running in Debug mode? Also, do you hit Ctrl-F9 (make)? It should pick up the changes if you do that. On 2/25/08, Kevin Murphy [EMAIL PROTECTED] wrote: What's the most automatic way to get Jetty to pick up changes to the application in development mode, using IntelliJ IDEA? I'm following the quick start instructions on http://wicket.apache.org/quickstart.html (which, btw, is in conflict with the more easily googlable http://wicket.sourceforge.net/wicket-quickstart/index.html). Currently I have to restart the application to see changes. I'm a rank newbie when it comes to Java IDE's, btw. My web Java experience consists of developing a couple of web apps using JSP and Tomcat. Emacs + gmake was my IDE, so you can see where I'm starting from ;-) Thanks, Kevin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with multiwindow app
See PageMap and the Page constructor with the pagemap param. Just make sure if open in a new tab/window that that page resides in another one. But we also should have a setting in our app settings that auto detects multi tabs/window. But maybe if you click really fast something can go out of sync much better would be to upgrade to 1.3.1 On 2/25/08, legol [EMAIL PROTECTED] wrote: Hi thx for reply, I use wicket 1.2.6 and i don't use pagemap. Could you give me some example how to do this? Pzdr, legol Johan Compagner wrote: What wicket version is this? If it is 1.2 do you use pagemaps (new onces for every tab you open?) On 2/22/08, legol [EMAIL PROTECTED] wrote: Hi all!!! I have application with 2 pages. First page lists users names and each element of list is link to second page that shows user details. I want to have this second page shown in other tab or window. Everything works fine when I click one user link, detail page is loaded and i can operate on it. But when i click on i.e. 5 links in very short time and 5 tabs are opened i get 'page expired' on each of them. Thanks to logs I discovered that when i open page in other tab or window it renders twice. Maybe this is the problem. Do you have any idea how to solve it? pzdr, Legol -- View this message in context: http://www.nabble.com/Problem-with-multiwindow-app-tp15632896p15632896.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Problem-with-multiwindow-app-tp15632896p15674566.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Parallel execution of AjaxLazyLoadPanel
Thats currently not possible, if you want something like that you can go around it by using shared resources for it those are not synched. There are talks about lifting that up (by choice like a multithreadedpage) but that is in my eyes very hard to get really right. On 2/25/08, Nuno Fernandes [EMAIL PROTECTED] wrote: Hi, I am using various AjaxLazyLoadPanel in one page to load data from a slow service. The problem is that each panel is updated sequentially. As an example, if I have 4 panels where the first takes 20sec to load and the remaining 3 panels takes 1sec to load, these 3 'fast' panels will only be loaded after the first ('slow') is rendered. How can I change this behavior so AjaxLazyLoadPanel can do these updates in parallel? Thank you, Nuno -- Nuno Fernandes [EMAIL PROTECTED] UFP-UV - Universidade Virtual Universidade Fernando Pessoa [www.ufp.pt] Praça 9 de Abril, 349 4249-004 Porto tel: + 351 22 507 13 00 fax: + 351 22 550 82 69 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
FW: Problem while updating model within DojoDropDownChoice
Anybody with experiences in DojoDropDownChoice? Furthermore I have read about the wickettools-extjs libs. Are there any example out there how to use it? Regrads, Kai [EMAIL PROTECTED] wrote: Hello list, I am new to wicket and playing around with the DojoDropDownChoice from wicketstuff-dojo-1.3.0-beta. I want to use it similar to a normal DropDownChoice component with ChoiceRenderer. But after selecting an entry of the list and submiting the form the model is not updated correctly. The corresponding ModelObject is set to null. Has anybody experience in this issue? Can anybody help me? Is it possible to use DojoDropDownChoice similar to a DropDownChoice within a form. Do I have to use the DojoSubmitButton in this case? Which methods of DojoDropDownChoice do I have to override exactly? Example: public final class MyModelChoiceRenderer implements IChoiceRenderer { public Object getDisplayValue(final Object object) { MyModel model = (MyModel) object; return model.getValue(); } public String getIdValue(final Object object, final int index) { MyModel model = (MyModel) object; return String.valueOf(model.getId()); } } public final class MyDropDownChoice extends DojoDropDownChoice { public MyDropDownChoice(final String id, final IModel model, final List ? extends MyModel data) { super(id, model, data, new MyModelChoiceRenderer()); super.setHandleSelectionChange(true); } } ListMyModel models = getModels(); form.add(new MyDropDownChoice(id, new PropertyModel(myObject, myModel), models)); form.add(new MySubmitButton); Where myObject is a field of type MyModel with corresponding getter/setter. Any ideas? Regards, Kai - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Dynamic form components and disabling them
On Mon, 25 Feb 2008 08:58:11 -0800 Igor Vaynberg [EMAIL PROTECTED] wrote: yeah, the components are recreated. you have to set an item reuse strategy for the gridview, see setItemReuseStrategy ... Yes, I'm using ReuseIfModelsEqualStrategy.. I'll try to tweak it a little then! Many thanks! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]