Re: [Wicket-user] WicketTester and mocking up next page rendered.
We also suffer the same issues here. But due to unmanaged nature of Wicket, there is no chance to intercept construction of page B unless you build your own factory for page. class Page A { MyFactory myFactory ; public Page A { add(new Link(toBPage) { setResponsePage(myFactory.newBPage()); }); } } and swapping mock MyFactory while testing. But such extra indirection make code slight complex and MyFactory is still hard to test, either. On 7/17/07, Craig Lenzen [EMAIL PROTECTED] wrote: I'm looking for some feedback as to an issue I'm having with the WicketTester. To start I'd like to point out that I'm using Spring and injecting my pages / components via the wicket spring project's component injector. Here is the situation, I have page A that has a link to page B. In the test of page A I test that the click in fact goes to page B. This is fine but the problem is, is that page B relies on a Spring service during its construction and the fact that the WicketTester actually tries to render page B which calls the service. The easy fix to this is to simply create a mock implementation of that service and set it in the mock context when testing page A, and don't forget you need to also setup the expected calls and returns. The problem here is that fact that I'm only testing page A, I don't care about the functionality of page B nor which services it might call. So is there a better way? Is there a way that you can mock the rendering of page B? Has anyone else ran into this issue and or questioned it, or has someone came up with a solution? To get a little more advanced you could also say that when testing a Page that added a number of panels I don't want those panels to render during the testing of the page, I only want to know the panels where added to the page. Thanks for everyone's help, Craig -- View this message in context: http://www.nabble.com/WicketTester-and-mocking-up-next-page-rendered.-tf4093923.html#a11641094 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Ingram Chen online share order: http://dinbendon.net blog: http://www.javaworld.com.tw/roller/page/ingramchen - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] WicketTester and Spring
for wicket 1.2, see http://cwiki.apache.org/WICKET/spring.html for reference (button) Wicket 1.3 can use actual WebApplication so it should be no problem. On 7/11/07, Evan Chooly [EMAIL PROTECTED] wrote: Does anyone have any documentation on using WicketTester with annotation based spring injection? I tried creating a WicketTester using my own Application rather then the DummyApplication that's used by default but spring complains with: java.lang.IllegalStateException: No WebApplicationContext found: no ContextLoaderListener registered? But it's not immediately clear how I can do that from my test code. Anyone have any ideas? All the google results i've found so far deal with creating mocks and manully injecting them which is not really what I want. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Ingram Chen online share order: http://dinbendon.net blog: http://www.javaworld.com.tw/roller/page/ingramchen - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] do not want to log ERROR when visiting a nonexistant page
This anonys me too. IMHO I think by default, it should log error in development mode, and keep silent in deployment mode. On 7/10/07, Eelco Hillenius [EMAIL PROTECTED] wrote: In my web app, when someone visits a page that doesn't exist (eg. by manually mucking with the url), they might end up at an error page with a stack trace, and also when that happens, wicket logs an ERROR like: ERROR [RequestCycle] - Unable to load class with name: com.foo.bar. I don't like that this is an ERROR, since our monitoring picks it up and will send spurious warning emails to our team. Is there a better way I can be dealing with this? In Wicket 1.3 you can provide a custom request cycle and override RequestCycle#logRuntimeException Eelco - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Ingram Chen online share order: http://dinbendon.net blog: http://www.javaworld.com.tw/roller/page/ingramchen - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Random page expiration
Hi all, We have experience random page expiration after using wicket 1.2.7(latest Snapshot) I search mailing list archive found http://www.nabble.com/Page-Expiration-when-first-clicking-AJAX-tf3729176.html#a10438002 discuss similar issue. But it seems that no further discuss on solution... It's hard to reproduce such random expiration, but at least I found one kind of reproducible steps: step 1: link to homepage url is http://localhost:8081/quickstart/app step 2: double click link on homepage, go to 2nd instance of page B url becomes http://localhost:8081/quickstart/app/?wicket:interface=:2:: (double click create two instances of page B) step 3: use browser back button go back to first instance of page B url becomes http://localhost:8081/quickstart/app/?wicket:interface=:1:: step 4: do anything on first instance of page B will cause expiration. Ideally 1st instance of page B should in pageMap but it seems got lost. Attachement is quickstart to reproduce such problem. any help ? -- Ingram Chen ��便��啦: http://dinbendon.net blog: http://www.javaworld.com.tw/roller/page/ingramchen quickstart.tar.gz Description: GNU Zip compressed data - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Random page expiration
all, I found another way to reproduce this problem, which may happened in slow network: (1) make a link that require 5 seconds to process. (2) click that link three times, after 5 seconds, go to page B (3) do any thing on page B cause expire. It seems that this is caused by race condition ? I think mulitple clicks is quite normal under slow network. The user may click link several times because web site is not responsive. attachement is another quickstart to reproduce this problem. (I have changed LeastRecentlyAccessedEvictionStrategy(100) up to 100 access to eliminate eviction issues) ps. My Test Environment is Linux 2.6, sun jdk6, firefox 2.0.4 On 6/21/07, Ingram Chen [EMAIL PROTECTED] wrote: Hi all, We have experience random page expiration after using wicket 1.2.7(latest Snapshot) I search mailing list archive found http://www.nabble.com/Page-Expiration-when-first-clicking-AJAX-tf3729176.html#a10438002 discuss similar issue. But it seems that no further discuss on solution... It's hard to reproduce such random expiration, but at least I found one kind of reproducible steps: step 1: link to homepage url is http://localhost:8081/quickstart/app step 2: double click link on homepage, go to 2nd instance of page B url becomes http://localhost:8081/quickstart/app/?wicket:interface=:2:: (double click create two instances of page B) step 3: use browser back button go back to first instance of page B url becomes http://localhost:8081/quickstart/app/?wicket:interface=:1 :: step 4: do anything on first instance of page B will cause expiration. Ideally 1st instance of page B should in pageMap but it seems got lost. Attachement is quickstart to reproduce such problem. any help ? -- Ingram Chen ��便��啦: http://dinbendon.net blog: http://www.javaworld.com.tw/roller/page/ingramchen -- Ingram Chen ��便��啦: http://dinbendon.net blog: http://www.javaworld.com.tw/roller/page/ingramchen quickstart-click3times.tar.gz Description: GNU Zip compressed data - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Random page expiration
done: *WICKET-683 https://issues.apache.org/jira/browse/WICKET-683* On 6/22/07, Eelco Hillenius [EMAIL PROTECTED] wrote: Could you please open a JIRA issue for this and attach the project? Thanks! Eelco On 6/21/07, Ingram Chen [EMAIL PROTECTED] wrote: all, I found another way to reproduce this problem, which may happened in slow network: (1) make a link that require 5 seconds to process. (2) click that link three times, after 5 seconds, go to page B (3) do any thing on page B cause expire. It seems that this is caused by race condition ? I think mulitple clicks is quite normal under slow network. The user may click link several times because web site is not responsive. attachement is another quickstart to reproduce this problem. (I have changed LeastRecentlyAccessedEvictionStrategy(100) up to 100 access to eliminate eviction issues) ps. My Test Environment is Linux 2.6, sun jdk6, firefox 2.0.4 On 6/21/07, Ingram Chen [EMAIL PROTECTED] wrote: Hi all, We have experience random page expiration after using wicket 1.2.7 (latest Snapshot) I search mailing list archive found http://www.nabble.com/Page-Expiration-when-first-clicking-AJAX-tf3729176.html#a10438002 discuss similar issue. But it seems that no further discuss on solution... It's hard to reproduce such random expiration, but at least I found one kind of reproducible steps: step 1: link to homepage url is http://localhost:8081/quickstart/app step 2: double click link on homepage, go to 2nd instance of page B url becomes http://localhost:8081/quickstart/app/?wicket:interface=:2 :: (double click create two instances of page B) step 3: use browser back button go back to first instance of page B url becomes http://localhost:8081/quickstart/app/?wicket:interface=:1 :: step 4: do anything on first instance of page B will cause expiration. Ideally 1st instance of page B should in pageMap but it seems got lost. Attachement is quickstart to reproduce such problem. any help ? -- Ingram Chen ��便��啦: http://dinbendon.net blog: http://www.javaworld.com.tw/roller/page/ingramchen -- Ingram Chen ��便��啦: http://dinbendon.net blog: http://www.javaworld.com.tw/roller/page/ingramchen - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Ingram Chen ��便��啦: http://dinbendon.net blog: http://www.javaworld.com.tw/roller/page/ingramchen - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Tree testing
indeed, we internally develop small extension to allow using partial path to allocate component. tester.clickLink(foo:bar:navigation:i:6:nodeLink) can be written like tester.clickLink(foo, 6, nodeLink) On 6/9/07, Timo Rantalaiho [EMAIL PROTECTED] wrote: On Fri, 08 Jun 2007, Ingram Chen wrote: I use 1.2.6 and tester.clickLink(foo:bar:navigation:i:6:nodeLink) work for And instead of using the full path like that (which can be tedious to maintain when the component hierarchy changes) you can also use an Ivistor to access the component (and then ask its path from itself). It depends on the case which is wiser. We also use a the hardcoded path a lot in tests, but with repeaters it can get a bit fragile. - Timo -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi/ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Ingram Chen ��便��啦: http://dinbendon.net blog: http://www.javaworld.com.tw/roller/page/ingramchen - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Tree testing
I use 1.2.6 and tester.clickLink(foo:bar:navigation:i:6:nodeLink) work for me. On 6/8/07, Sven Schliesing [EMAIL PROTECTED] wrote: Hi, I'm trying to heavily rely on test driven development while building my application. Fortunately wicket does a really good job for unit-testing. But unfortunately I do not succeed in simulating a click on a node in a Tree with AjaxLinks. I already searched the svn for a test already handling this part. But i had no luck. Is this possible at all? Thanks in advance! Sven - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Ingram Chen ��便��啦: http://dinbendon.net blog: http://www.javaworld.com.tw/roller/page/ingramchen - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] FormTester, DropDownChoice Validation
I dig into 1.3 trunk, and yes, in FormTester constructor: *else* *if* ( (formComponent *instanceof* DropDownChoice) || (formComponent *instanceof* RadioChoice) || (formComponent *instanceof* CheckBox)) { setFormComponentValue(formComponent, formComponent.getValue()); } current implementation does not consider null model object. I think possible fix is: *else* *if* ( (formComponent *instanceof* DropDownChoice) || (formComponent *instanceof* RadioChoice) || (formComponent *instanceof* CheckBox)) { if(formComponent.getModelObject() == null) { setFormComponentValue(formComponent, formComponent.getValue()); } } and It seems FormTester lack support for RadioGroup while construction, (only CheckGroup supported). On 6/7/07, severian [EMAIL PROTECTED] wrote: I'm having a problem with DropDownChoice components FormTester. I've declared my DropDownChoice as required, which works fine via the browser - the correct validation feedback is given when I fail to make a selection. However, when trying to write a test demonstrating this, no validation feedback is given. It seems that when using the browser, FormComponent.checkRequired() is given the input as (empty string), and so correctly declares this as invalid. But when using FormTester, FormComponent.checkRequired() is given the input as -1, and so correctly declares this as valid. This smells like a bug somewhere inside FormTester - the value -1 should not be set for a DropDownChoice with no selection. If I call FormTester.setValue(dropDownId, ) before calling FormTester.submit(), I get the desired behaviour, but obviously that's pretty ugly. Anyone got any ideas or should I raise a JIRA? -- View this message in context: http://www.nabble.com/FormTester%2C-DropDownChoice---Validation-tf3884382.html#a11009710 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Ingram Chen ��便��啦: http://dinbendon.net blog: http://www.javaworld.com.tw/roller/page/ingramchen - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] 1.2.x trunk stack overflow
All, I build 1.2.x trunk today to try some fixed bugs (which found in 1.2.6) . After I deploy I got stack overflow: java.lang.StackOverflowError at java.lang.ThreadLocal.get(ThreadLocal.java:125) at wicket.RequestCycle.get(RequestCycle.java:211) at wicket.settings.Settings.getContextPath(Settings.java:451) at wicket.protocol.http.servlet.ServletWebRequest.getContextPath( ServletWebRequest.java:69) at wicket.settings.Settings.getContextPath(Settings.java:453) at wicket.protocol.http.servlet.ServletWebRequest.getContextPath( ServletWebRequest.java:69) at wicket.settings.Settings.getContextPath(Settings.java:453) I notice ServletWebRequest.getContextPath implmentaton changed: in 1.2.6: public String getContextPath() { return httpServletRequest.getContextPath(); } in 1.2.x trunk public String getContextPath() { String contextPath = Application.get ().getApplicationSettings().getContextPath(); return contextPath != null ? contextPath : httpServletRequest.getContextPath(); } so the problem is caused by additional Application.get().getApplicationSettings().getContextPath(); I know wicket has a bamboo to build trunk continuously, but I can't find it to check trunk's health. -- Ingram Chen ��便��啦: http://dinbendon.net blog: http://www.javaworld.com.tw/roller/page/ingramchen - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] PasswordTextField reset bug
All, In wicket 1.2.6, I try to do passwordTextField.setResetPassword(false). But I found that password field always got reset if model object is blank. It seems that password field never use preserved rawInput to render: protected final void onComponentTag(final ComponentTag tag) { super.onComponentTag(tag); tag.put(value, getResetPassword() ? : getModelObjectAsString()); } I think that more accurate implementation should be: if(getResetPassword()) { tag.put(value, ); } I will file a bug report if confirmed. thanks in advance. -- Ingram Chen ��便��啦: http://dinbendon.net blog: http://www.javaworld.com.tw/roller/page/ingramchen - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Problem with concurren ajax requests on page
Is there any progress on this issue ? I search JIRA but there is no related issue... On 5/11/07, Alex Objelean [EMAIL PROTECTED] wrote: I'll add a quickstart as soon as possible... (tomorrow by noon) Thank you! Matej Knopp-2 wrote: Okay. Can you please create a quickstart that can be used to reproduce this and add attach it to a jira bug entry? Thanks -Matej On 5/10/07, Alex Objelean [EMAIL PROTECTED] wrote: I managed to migrate my application to wicket-1.3 ... but the same problem still persist...:( - this time it is complaining that he is unable to find the componentRelativePath of the component which is supposed to be added to the target. :( The problem with NPE in DefaultRequestTargetResolverStrategy:295 seems to be the way wicket retrieves the component using its relative component path... [code] page.get(pageRelativeComponentPath); [code] The component which cause the problem was removed and then added back by the AjaxTabbedPanel before the exception is thrown. PS: Btw, when the stable wicket-1.3 version is planned to be released? Regards, Alex. Matej Knopp-2 wrote: Well, there is no DefaultRequestTargetResolverStrategy in 1.3, as there was a refactoring done. But even if you have problem with the NPE, we can fix much easier than in 1.2. As for the migration, it depends on how complex your application is. -Matej On 5/9/07, Alex Objelean [EMAIL PROTECTED] wrote: Well, it's a bad-bad news for me :( As far as I know, the wicket-1.3 does not have yet stable release, is it correct? If so, when approximately it will be available? And another two questions: 1) Does the wicket-1.3 solve the java.lang.NullPointerException at wicket.request.compound.DefaultRequestTargetResolverStrategy.resolveListenerInterfaceTarget (DefaultRequestTargetResolverStrategy.java:295) problem? 2) How much pain involves the process of migration from wicket-1.2.6 to wicket-1.3? Thank you! Matej Knopp-2 wrote: If you are developing ajax-heavy web application I'd certainly suggest you migrating to 1.3. There are issues in 1.2 with AJAX that are unfixable, because they would require API breaks, which is something we can't do. -Matej -- View this message in context: http://www.nabble.com/Problem-with-concurren-ajax-requests-on-page-tf3667503.html#a10419990 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- View this message in context: http://www.nabble.com/Problem-with-concurren-ajax-requests-on-page-tf3667503.html#a10421801 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Ingram Chen ��便��啦: http://dinbendon.net blog: http://www.javaworld.com.tw/roller/page/ingramchen - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Unit Testing Pages with @SpringBeans
Do you check this ? http://www.wicket-wiki.org.uk/wiki/index.php/Spring On 5/6/07, behlma [EMAIL PROTECTED] wrote: Futhermore I just noticed that when I do tester.startPage(new LoginPage()); instead of tester.startPage(LoginPage.class); I get loads of serialisation errors. i.e. Caused by: java.io.NotSerializableException: org.apache.wicket.util.tester.WicketTester -- View this message in context: http://www.nabble.com/Unit-Testing-Pages-with-%40SpringBeans-tf3699578.html#a10345372 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Ingram Chen ��便��啦: http://dinbendon.net blog: http://www.javaworld.com.tw/roller/page/ingramchen - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] BookmarkablePageLink with multiple window support in 1.2.6
After trying various combination, I found this may be caused by QueryStringUrlCodingStrategy I create jira with quickstart: https://issues.apache.org/jira/browse/WICKET-539 thanks for help On 5/5/07, Jean-Baptiste Quenot [EMAIL PROTECTED] wrote: * Ingram Chen: another problem in 1.2.6. I use BookarmablePageLink: public ToIdineLink(String id, Shop shop) { super(id, ShopPage.class); setParameter(shop, shop.getId()); } so the url is: /context/app/foo?shop=123 if we open this link in new window, url will add pageMapName: /context/app/foo?shop=123wicket:pageMapName=wicket-0 this is fine.. but in 1.2.6 the link become: /context/app/foo?shop=%5BLjava.lang.String%3B%406f0241wicket:pageMapName=wicket-0 the number become string array and this url is un-resolvable Can you file a JIRA issue, attaching a quickstart project? I can't reproduce this on 1.2.6. I tried with the Click this BookmarkablePageLink to go to Page3 link in wicket-examples/linkomatic/ -- Jean-Baptiste Quenot aka John Banana Qwerty http://caraldi.com/jbq/ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Ingram Chen ��便��啦: http://dinbendon.net blog: http://www.javaworld.com.tw/roller/page/ingramchen - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] wicket 1.2.6 tail / of url
Hi all I upgrade from 1.2.3 to 1.2.6, and everything is fine. but I notice that the url changed: http://example.com/mycontext/app?wicket:interface=:6:: become: http://example.com/mycontext/app/?wicket:interface=:6:: the tailing slash of app cause many css, javascript path broken !! how do i fix this ? my web.xml: (i don't change this while upgrade) servlet servlet-nameWicketApplication/servlet-name servlet-classwicket.protocol.http.WicketServlet/servlet-class init-param param-nameapplicationFactoryClassName/param-name param-valuewicket.spring.SpringWebApplicationFactory /param-value /init-param load-on-startup1/load-on-startup /servlet servlet-mapping servlet-nameWicketApplication/servlet-name url-pattern/app/*/url-pattern /servlet-mapping -- Ingram Chen ��便��啦: http://dinbendon.net blog: http://www.javaworld.com.tw/roller/page/ingramchen - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] wicket 1.2.6 tail / of url
Thank information.. but it seems no conclusion on how to solve, especially if path is specified in javascript. I finally use wicket component to generate script path by prepand contextPath manually. Another critical issue is cookie path. My application relies on browser default cookie path (I don't specify it explicit) which is /mycontext/app before 1.2.6. Now it suddently change to /mycontext/app/ and some client would lost cookies :-( On 5/2/07, Gwyn Evans [EMAIL PROTECTED] wrote: On Wednesday, May 2, 2007, 12:18:54 PM, Ingram [EMAIL PROTECTED] wrote: Hi all I upgrade from 1.2.3 to 1.2.6, and everything is fine. but I notice that the url changed: http://example.com/mycontext/app?wicket:interface=:6 :: become: http://example.com/mycontext/app/?wicket:interface=:6 :: the tailing slash of app cause many css, javascript path broken !! how do i fix this ? Does the thread at http://www.nabble.com/from-1.2.5-to-1.2.6-tf3647980.html#a10189203 help? /Gwyn - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Ingram Chen ��便��啦: http://dinbendon.net blog: http://www.javaworld.com.tw/roller/page/ingramchen - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] BookmarkablePageLink with multiple window support in 1.2.6
Hi all, another problem in 1.2.6. I use BookarmablePageLink: public ToIdineLink(String id, Shop shop) { super(id, ShopPage.class); setParameter(shop, shop.getId()); } so the url is: /context/app/foo?shop=123 if we open this link in new window, url will add pageMapName: /context/app/foo?shop=123wicket:pageMapName=wicket-0 this is fine.. but in 1.2.6 the link become: /context/app/foo?shop=%5BLjava.lang.String%3B%406f0241wicket:pageMapName=wicket-0 the number become string array and this url is un-resolvable any help ? -- Ingram Chen ��便��啦: http://dinbendon.net blog: http://www.javaworld.com.tw/roller/page/ingramchen - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] WicketTester Best Practices
well, while testing panel, one should prepend panel in wicket path like: tester.startPanel(MyPanel.class); tester.clickLink(panel:logout); this is pain and ugly but current WicketTester only support full absolute path to refer certain component. On 4/18/07, craigdd [EMAIL PROTECTED] wrote: I'm looking for some input on what is the best practices for testing Panels that aren't inner classes to WebPage objects If I do the following; WicketTester tester = new WicketTester(); tester.startPanel(MyPanel.class); tester.clickLink(logout); I get an exception saying path: 'logout' does no exist for page: DummyPanelPage My alternative is to set a startPage to a WebPage that contains my panel. However, I don't think that a panel should have to rely on a WebPage...meaning I can create and test a new Panel without it being attached to a WebPage. In the past I've created some abstraction objects that allow you to do this but is seems like a lot of work and I was hoping that there is a better way. -Craig -- View this message in context: http://www.nabble.com/WicketTester-Best-Practices-tf3598521.html#a10050859 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Ingram Chen ��便��啦: http://dinbendon.net blog: http://www.javaworld.com.tw/roller/page/ingramchen - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] wicket:message without escape
Hi, how do I turn off escape string in wicket:message ? a typical use case is: wicket:message key=copyright[Copyright here]/wicket:message copyright=Copyright copy; 2005 I search the doc and source but nothing found... It would be better one can add an attribute like wicket:message key=foo escape=false any suggestion ? -- Ingram Chen ��便��啦: http://dinbendon.net blog: http://www.javaworld.com.tw/roller/page/ingramchen - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] JS Error: Object expected - but only with wicket 1.2.5
I also experience the same problem after upgrade 1.2.3 - 1.2.5 wicket-ajax.js is missing after several ajax actions. Still investigating what's going on... On 2/12/07, Niels Bo [EMAIL PROTECTED] wrote: After switching from 1.2.4 to 1.2.5, I am seeing a lot of JavaScript errors Object expected on AjaxFallbackLink links. In development mode I also found that the WICKET AJAX DEBUG is often missing after using a AJAX link followed by a link to a bookmarkable/mounted page. Looking a the html source in the browser, shows that the wicket-ajax.js is missing from the head section. Niels -- View this message in context: http://www.nabble.com/JS-Error%3A-Object-expected---but-only-with-wicket-1.2.5-tf3210112.html#a8914493 Sent from the Wicket - User mailing list archive at Nabble.com. - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Ingram Chen ��便��啦: http://dinbendon.net blog: http://www.javaworld.com.tw/roller/page/ingramchen - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] SURVEY: Are you using Page.before/afterCallComponent
never use it! (what is that ? :-p On 1/23/07, Igor Vaynberg [EMAIL PROTECTED] wrote: are you using Page.before/afterCallComponent? and if so what is the usecase? -igor - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Ingram Chen ��便��啦: http://dinbendon.net blog: http://www.javaworld.com.tw/roller/page/ingramchen - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Could not find root ajax-response element with AjaxFormSubmitBehavior+ browser back botton
I trace the code and found the cause is some AjaxBehavior calling AbstractAjaxBehavior.getCallbackScript(boolean recordPageVersion, boolean onlyTargetActivePage) with onlyTargetActivePage=true. by this, ajax behavior is only actived in latest access page. I check core component and those AjaxFormSubmitBehavior, AjaxSelfUpdatingTimerBehavior, and AjaxFormComponentUpdatingBehavior are setting flag as true and don't have alternative option. Is there any concern why these behaviors have to use latest access page ? On 1/13/07, Ingram Chen [EMAIL PROTECTED] wrote: I turn on log4j.logger.wicket=DEBUG and only see one message: DEBUG - Session- wicket.Session=updateSession(): Attaching session to PageMap [PageMap name=null, access=[[Access id=0, version=0], [Access id=1, version=0], [Access id=2, version=0]]] and no exception. It doesn't go to further steps like: Getting page [path = 1:form:go, versionNumber = -1]... either. On 1/13/07, Matej Knopp [EMAIL PROTECTED] wrote: This is weird. Can you please check if there is no exception in the log? -Matej Ingram Chen wrote: Hi all, I just found a bug (?) about AjaxFormSubmitBehavior when doing some browser back botton, like: (1) X page has a Form and use AjaxFormSubmitBehavior (2) navigate X to Y by a link (3) browser back to X (4) submit form of X by AjaxFormSubmitBehavior (5) then: *INFO: * *INFO: *Initiating Ajax POST request on /quickstart/app?wicket:interface=:2:form:go:-1:IUnversionedBehaviorListenerwicket:behaviorId=0wicket:ignoreIfNotActive=truerandom= 0.9194877543437688 *INFO: *Invoking pre-call handler(s)... *INFO: *Received ajax response (0 characters) *INFO: * *ERROR: *Error while parsing response: Could not find root ajax-response element *INFO: *Invoking post-call handler(s)... *INFO: *Invoking failure handler(s)... I just got Received ajax response (0 characters) and no idea how to investigate futher more. tested with 1.2.3 and 1.2.4 (both in IE and Firefox) attachment is quickstart for 1.2.4 Any help ? -- Ingram Chen ��便��啦: http://dinbendon.net blog: http://www.javaworld.com.tw/roller/page/ingramchen - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Ingram Chen ��便��啦: http://dinbendon.net blog: http://www.javaworld.com.tw/roller/page/ingramchen -- Ingram Chen ��便��啦: http://dinbendon.net blog: http://www.javaworld.com.tw/roller/page/ingramchen - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Could not find root ajax-response element with AjaxFormSubmitBehavior+ browser back botton
Hi all, I just found a bug (?) about AjaxFormSubmitBehavior when doing some browser back botton, like: (1) X page has a Form and use AjaxFormSubmitBehavior (2) navigate X to Y by a link (3) browser back to X (4) submit form of X by AjaxFormSubmitBehavior (5) then: *INFO: * *INFO: * Initiating Ajax POST request on /quickstart/app?wicket:interface=:2:form:go:-1:IUnversionedBehaviorListenerwicket:behaviorId=0wicket:ignoreIfNotActive=truerandom= 0.9194877543437688 *INFO: *Invoking pre-call handler(s)... *INFO: *Received ajax response (0 characters) *INFO: * *ERROR: * Error while parsing response: Could not find root ajax-response element *INFO: *Invoking post-call handler(s)... *INFO: *Invoking failure handler(s)... I just got Received ajax response (0 characters) and no idea how to investigate futher more. tested with 1.2.3 and 1.2.4 (both in IE and Firefox) attachment is quickstart for 1.2.4 Any help ? -- Ingram Chen ��便��啦: http://dinbendon.net blog: http://www.javaworld.com.tw/roller/page/ingramchen quickstart.IamZip Description: Binary data - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Could not find root ajax-response element with AjaxFormSubmitBehavior+ browser back botton
I turn on log4j.logger.wicket=DEBUG and only see one message: DEBUG - Session- wicket.Session=updateSession(): Attaching session to PageMap [PageMap name=null, access=[[Access id=0, version=0], [Access id=1, version=0], [Access id=2, version=0]]] and no exception. It doesn't go to further steps like: Getting page [path = 1:form:go, versionNumber = -1]... either. On 1/13/07, Matej Knopp [EMAIL PROTECTED] wrote: This is weird. Can you please check if there is no exception in the log? -Matej Ingram Chen wrote: Hi all, I just found a bug (?) about AjaxFormSubmitBehavior when doing some browser back botton, like: (1) X page has a Form and use AjaxFormSubmitBehavior (2) navigate X to Y by a link (3) browser back to X (4) submit form of X by AjaxFormSubmitBehavior (5) then: *INFO: * *INFO: *Initiating Ajax POST request on /quickstart/app?wicket:interface=:2:form:go:-1:IUnversionedBehaviorListenerwicket:behaviorId=0wicket:ignoreIfNotActive=truerandom= 0.9194877543437688 *INFO: *Invoking pre-call handler(s)... *INFO: *Received ajax response (0 characters) *INFO: * *ERROR: *Error while parsing response: Could not find root ajax-response element *INFO: *Invoking post-call handler(s)... *INFO: *Invoking failure handler(s)... I just got Received ajax response (0 characters) and no idea how to investigate futher more. tested with 1.2.3 and 1.2.4 (both in IE and Firefox) attachment is quickstart for 1.2.4 Any help ? -- Ingram Chen ��便��啦: http://dinbendon.net blog: http://www.javaworld.com.tw/roller/page/ingramchen - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Ingram Chen ��便��啦: http://dinbendon.net blog: http://www.javaworld.com.tw/roller/page/ingramchen - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] FeedBackPanel
that can be customized by css, like: li.feedbackPanelERROR { background-image: url(../images/warn.gif) ; padding-left: 25px; background-repeat: no-repeat; background-position: 5px; list-style-type: none; } FeedbackPanel will generate feedbackPanelERROR/feedbackPanelINFO class for each li On 12/28/06, tbt [EMAIL PROTECTED] wrote: I'm a newbie to wicket and would like to know how to add a customized icon near the error message which is generated by the feedback panel. Any help would be appreciated. -- View this message in context: http://www.nabble.com/FeedBackPanel-tf2889265.html#a8071827 Sent from the Wicket - User mailing list archive at Nabble.com. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Ingram Chen ��便��啦: http://dinbendon.net blog: http://www.javaworld.com.tw/roller/page/ingramchen - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] How do I obtain row index in a DataTable ?
Hi all DataTable + AbstractColumn are already satisfied almost our requirement. But occasionally I require row index of table, not just cell-index in AbstractColumn cols.add(new AbstractColumn(new Model(#), no) { public void populateItem(Item cellItem, String componentId, IModel rowModel) { int cellIndex = cellItem.getIndex(); int rowIndex = } }); is there any way to obtain row index ? my intuitive thought is using Item = cellItem.getRowItem(); thanks in advanced! -- Ingram Chen ��便��啦: http://dinbendon.net blog: http://www.javaworld.com.tw/roller/page/ingramchen - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Terracotta open source and tested with wicket-examples
hhmm as Wicket always check serializable, I think my app's session does not refererence to non-serializable WebApplication. but the stack trace shows: com.tc.object.ClientObjectManagerImpl.lookupOrCreate(ClientObjectManagerImpl.java:306) com.tc.object.tx.ClientTransactionManagerImpl.fieldChanged(ClientTransactionManagerImpl.java:507) com.tc.object.TCObjectImpl.objectFieldChanged(TCObjectImpl.java:272) wicket.Session.__tc_setsessionStore(Session.java) wicket.Session.getSessionStore(Session.java:900) wicket.Session.getAttributeNames(Session.java:881) wicket.Session.visitPageMaps(Session.java:753) wicket.Session.init(Session.java:581) wicket.RequestCycle.prepare(RequestCycle.java:911) wicket.RequestCycle.step(RequestCycle.java:986) wicket.RequestCycle.steps(RequestCycle.java:1084) wicket.RequestCycle.request(RequestCycle.java:454) wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:219) javax.servlet.http.HttpServlet.service(HttpServlet.java:689) I use Wicket 1.2.3 so Session.java:900 is public class Session { protected ISessionStore getSessionStore() { if (sessionStore == null) { sessionStore = getApplication().getSessionStore(); // line no 900 } return sessionStore; } } it looks like terracotta intercept assignment sessionStore = and add a setter wicket.Session.__tc_setsessionStore(Session.java) but sessionStore referenced by Application On 12/5/06, Eelco Hillenius [EMAIL PROTECTED] wrote: Why would you put a reference to the application in your session anyway? You can get the current app like Application.get(). Otherwise, you can make the field transient, though when it gets deserialized, you'd have to set the field yourself somehow. Eelco On 12/4/06, Ingram Chen [EMAIL PROTECTED] wrote: I just test terracotta-session, but it report error: com.tc.exception.TCNonPortableObjectError: *** Attempt to share an instance of a non-portable class referenced by a portable class. This unshareable class is a subclass of a JVM- or host machine-specific resource. Please either modify the class hierarchy or ensure that instances of this class don't enter the shared object graph. Referring class : com.myapp.MyWebApplication Referring field : wicket.protocol.http.WebApplication.wicketServlet Thread : http-9081-Processor3 JVM ID : VM(0) Unshareable superclass names: javax.servlet.GenericServlet *** It seems that I can't store any WebApplication reference in session... On 12/5/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, I also have just tested terracotta with my springframework / wicket application. It works perfect. I think, that teracotta meets wicket needs for parallel and loadbalanced execution envoronement the way we are looking for. Maciej -Ursprüngliche Nachricht- Von: wicket-user@lists.sourceforge.net Gesendet: 04.12.06 20:50:41 An: Wicket User List wicket-user@lists.sourceforge.net Betreff: [Wicket-user] Terracotta open source and tested with wicket-examples Hi all, Sorry to spam you with this, but you might be interested in this announcement http://www.infoq.com/news/2006/12/terracotta-jvm-clustering. We successfully tested wicket-examples (with the help of some people from Terracotta), and it looks like Terracotta is very promising indeed - certainly now that it is open sourced! Anyway, just FYI, and I'd be interested to learn the experiences of others. Eelco - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- mfG Bednarz, Hannover - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Ingram Chen Java [EMAIL
Re: [Wicket-user] Terracotta open source and tested with wicket-examples
I just test terracotta-session, but it report error: com.tc.exception.TCNonPortableObjectError: *** Attempt to share an instance of a non-portable class referenced by a portable class. This unshareable class is a subclass of a JVM- or host machine-specific resource. Please either modify the class hierarchy or ensure that instances of this class don't enter the shared object graph. Referring class : com.myapp.MyWebApplication Referring field : wicket.protocol.http.WebApplication.wicketServlet Thread : http-9081-Processor3 JVM ID : VM(0) Unshareable superclass names: javax.servlet.GenericServlet *** It seems that I can't store any WebApplication reference in session... On 12/5/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, I also have just tested terracotta with my springframework / wicket application. It works perfect. I think, that teracotta meets wicket needs for parallel and loadbalanced execution envoronement the way we are looking for. Maciej -Ursprüngliche Nachricht- Von: wicket-user@lists.sourceforge.net Gesendet: 04.12.06 20:50:41 An: Wicket User List wicket-user@lists.sourceforge.net Betreff: [Wicket-user] Terracotta open source and tested with wicket-examples Hi all, Sorry to spam you with this, but you might be interested in this announcement http://www.infoq.com/news/2006/12/terracotta-jvm-clustering . We successfully tested wicket-examples (with the help of some people from Terracotta), and it looks like Terracotta is very promising indeed - certainly now that it is open sourced! Anyway, just FYI, and I'd be interested to learn the experiences of others. Eelco - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- mfG Bednarz, Hannover - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Ingram Chen Java [EMAIL PROTECTED] Institue of BioMedical Sciences Academia Sinica Taiwan blog: http://www.javaworld.com.tw/roller/page/ingramchen - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] ListView and setRenderBodyOnly
FAQ.you should use item.setRenderBodyOnly(true) insteadOn 11/14/06, Erik van Oosten [EMAIL PROTECTED] wrote:Hello,Is there a particular reason why ListView does not respect the RenderBodyOnly flag?I have something like this: span wicket:id=menuitems span class=menuitem wicket:id=menuitem/span /span I want it to render as: span class=menuitemitem 1/span span class=menuitemitem 2/span span class=menuitemitem 3/span etc.Regards,Erik.--Erik van Oostenhttp://www.day-to-day-stuff.blogspot.com/- Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user -- Ingram ChenJava [EMAIL PROTECTED]Institue of BioMedical Sciences Academia Sinica Taiwanblog: http://www.javaworld.com.tw/roller/page/ingramchen - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] CheckBox and GridView
I try to write a model which equals if beckendObject equals: private final class BackendEqualsThenModelEqualsModel extends Model { private BackendEqualsThenModelEqualsModel(Serializable object) { super(object); } @Override public boolean equals(Object obj) { return getObject(null).equals(((IModel) obj).getObject(null)); } @Override public int hashCode() { return getObject(null).hashCode(); } }and that GridView use this model:new GridView(checks, new ListDataProvider(dataList)) { @Override protected Item newItem(String id, int index, IModel model) {return super.newItem(id, index, new BackendEqualsThenModelEqualsModel( (Serializable) model.getObject(null))); } @Override protected void populateItem(Item item) {item.add(new Check(check, item.getModel())); } @Override protected void populateEmptyItem(Item item) {item.add(new Label(check)); }};It doesn't work... It must be something wrong somewhere. Could you give me correct implemetation ? Thanks!On 11/14/06, Igor Vaynberg [EMAIL PROTECTED] wrote:the rowitems do not matter, they hold no state. it is the cell items (individual squares in the grid) whose component hierarchy must be preserved, and it looks to me like it is because those are managed by the dataview. are you sure you overrode equals and hashcode on the IModel not on the model objects?-igorOn 11/12/06, Ingram Chen [EMAIL PROTECTED] wrote:Yes, I do try ReuseIfModelsEqualStrategybut... it does not work for me. I dig into source code and found GridView internally use another RepeatingView for rows, and it doesn't utilize IItemReuseStrategy. Maybe I just do wrong configuration...On 11/13/06, Igor Vaynberg [EMAIL PROTECTED] wrote: thats not true, see GridView.setItemReuseStrategy, IItemReuseStrategy, and ReuseIfModelsEqualStrategy -igorOn 11/12/06, Ingram Chen [EMAIL PROTECTED] wrote:This reminds me bad experiences with check + gridview sometime ago. GridView does not support Item reuse. i.e. If any form validation error occur,user input are just disappeared. use with care! On 11/9/06, Frank Bille [EMAIL PROTECTED] wrote: On 11/9/06, Flemming Seerup [EMAIL PROTECTED] wrote public ThumbnailImageFragment(String id, final ImageReferencereference, IModelitemModel) {super(id);CheckBox checkBox = new CheckBox(select, itemModel);add(checkBox); Try to use Check instead of CheckBox. I think that is your problem :) http://wicket.sourceforge.net/apidocs/wicket/markup/html/form/CheckGroup.html Frank -Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user -- Ingram ChenJava [EMAIL PROTECTED]Institue of BioMedical Sciences Academia Sinica Taiwanblog: http://www.javaworld.com.tw/roller/page/ingramchen -Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user -Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user -- Ingram ChenJava [EMAIL PROTECTED]Institue of BioMedical Sciences Academia Sinica Taiwanblog: http://www.javaworld.com.tw/roller/page/ingramchen -Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] CheckBox and GridView
ok, I change to: ListDataProvider listDataProvider = new ListDataProvider(dataList) { @Override public IModel model(Object object) {return new BackendEqualsThenModelEqualsModel( (Serializable) object); } }; checkGroup.add(new GridView(checks, listDataProvider) { @Override protected void populateItem(Item item) { item.add(new Check(check, item.getModel())); } @Override protected void populateEmptyItem(Item item) {item.add(new Label(check)); } }.setItemReuseStrategy(ReuseIfModelsEqualStrategy.getInstance()));still failed... attachement is quickstart.On 11/14/06, Igor Vaynberg [EMAIL PROTECTED] wrote: why are you overriding newItem ? the idataprovider implementation must return the correct model in its model(Object) method-igor On 11/13/06, Ingram Chen [EMAIL PROTECTED] wrote: I try to write a model which equals if beckendObject equals: private final class BackendEqualsThenModelEqualsModel extends Model { private BackendEqualsThenModelEqualsModel(Serializable object) { super(object); } @Override public boolean equals(Object obj) { return getObject(null).equals(((IModel) obj).getObject(null)); } @Override public int hashCode() { return getObject(null).hashCode(); } }and that GridView use this model:new GridView(checks, new ListDataProvider(dataList)) { @Override protected Item newItem(String id, int index, IModel model) {return super.newItem(id, index, new BackendEqualsThenModelEqualsModel( (Serializable) model.getObject(null))); } @Override protected void populateItem(Item item) {item.add (new Check(check, item.getModel())); } @Override protected void populateEmptyItem(Item item) {item.add(new Label(check)); } };It doesn't work... It must be something wrong somewhere. Could you give me correct implemetation ? Thanks!On 11/14/06, Igor Vaynberg [EMAIL PROTECTED] wrote:the rowitems do not matter, they hold no state. it is the cell items (individual squares in the grid) whose component hierarchy must be preserved, and it looks to me like it is because those are managed by the dataview. are you sure you overrode equals and hashcode on the IModel not on the model objects?-igorOn 11/12/06, Ingram Chen [EMAIL PROTECTED] wrote:Yes, I do try ReuseIfModelsEqualStrategybut... it does not work for me. I dig into source code and found GridView internally use another RepeatingView for rows, and it doesn't utilize IItemReuseStrategy. Maybe I just do wrong configuration...On 11/13/06, Igor Vaynberg [EMAIL PROTECTED] wrote: thats not true, see GridView.setItemReuseStrategy, IItemReuseStrategy, and ReuseIfModelsEqualStrategy -igorOn 11/12/06, Ingram Chen [EMAIL PROTECTED] wrote:This reminds me bad experiences with check + gridview sometime ago. GridView does not support Item reuse. i.e. If any form validation error occur,user input are just disappeared. use with care! On 11/9/06, Frank Bille [EMAIL PROTECTED] wrote: On 11/9/06, Flemming Seerup [EMAIL PROTECTED] wrote public ThumbnailImageFragment(String id, final ImageReferencereference, IModelitemModel) {super(id);CheckBox checkBox = new CheckBox(select, itemModel);add(checkBox); Try to use Check instead of CheckBox. I think that is your problem :) http://wicket.sourceforge.net/apidocs/wicket/markup/html/form/CheckGroup.html Frank -Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user -- Ingram ChenJava [EMAIL PROTECTED]Institue of BioMedical Sciences Academia Sinica Taiwanblog: http://www.javaworld.com.tw/roller/page/ingramchen -Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user -Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat
Re: [Wicket-user] CheckBox and GridView
This reminds me bad experiences with check + gridview sometime ago.GridView does not support Item reuse. i.e. If any form validation error occur,user input are just disappeared. use with care! On 11/9/06, Frank Bille [EMAIL PROTECTED] wrote: On 11/9/06, Flemming Seerup [EMAIL PROTECTED] wrote public ThumbnailImageFragment(String id, final ImageReferencereference, IModelitemModel) {super(id);CheckBox checkBox = new CheckBox(select, itemModel);add(checkBox); Try to use Check instead of CheckBox. I think that is your problem :) http://wicket.sourceforge.net/apidocs/wicket/markup/html/form/CheckGroup.html Frank -Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user -- Ingram ChenJava [EMAIL PROTECTED]Institue of BioMedical Sciences Academia Sinica Taiwanblog: http://www.javaworld.com.tw/roller/page/ingramchen - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] CheckBox and GridView
Yes, I do try ReuseIfModelsEqualStrategybut... it does not work for me. I dig into source code and found GridView internally use another RepeatingView for rows, and it doesn't utilize IItemReuseStrategy. Maybe I just do wrong configuration...On 11/13/06, Igor Vaynberg [EMAIL PROTECTED] wrote: thats not true, see GridView.setItemReuseStrategy, IItemReuseStrategy, and ReuseIfModelsEqualStrategy -igorOn 11/12/06, Ingram Chen [EMAIL PROTECTED] wrote:This reminds me bad experiences with check + gridview sometime ago. GridView does not support Item reuse. i.e. If any form validation error occur,user input are just disappeared. use with care! On 11/9/06, Frank Bille [EMAIL PROTECTED] wrote: On 11/9/06, Flemming Seerup [EMAIL PROTECTED] wrote public ThumbnailImageFragment(String id, final ImageReferencereference, IModelitemModel) {super(id);CheckBox checkBox = new CheckBox(select, itemModel);add(checkBox); Try to use Check instead of CheckBox. I think that is your problem :) http://wicket.sourceforge.net/apidocs/wicket/markup/html/form/CheckGroup.html Frank -Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user -- Ingram ChenJava [EMAIL PROTECTED]Institue of BioMedical Sciences Academia Sinica Taiwanblog: http://www.javaworld.com.tw/roller/page/ingramchen -Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user -Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user -- Ingram ChenJava [EMAIL PROTECTED]Institue of BioMedical Sciences Academia Sinica Taiwanblog: http://www.javaworld.com.tw/roller/page/ingramchen - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] What is path to component at WicketTester.assertComponent() ??
the path used in assertComponent() is absolute path to that component in last rendered page. so it could be:tester.assertComponent(myLabel, Label.class);tester.assertComponent(foo:bar:myDeeperLabel, Label.class); tester.assertComponent(myForm:userNameField, TextField.class); etcuse : to seperate component id.On 11/1/06, Carfield Yim [EMAIL PROTECTED] wrote:Do you mean that if this component is wrapped within other component, then it is other_component/this_componentOtherwise this is just the component id? Am I correct?On 11/1/06, Igor Vaynberg [EMAIL PROTECTED] wrote: i would imagine it is the relative path of the component from the page. every component is in the hierarchy at the top of which is the page. -igor On 10/31/06, Carfield Yim [EMAIL PROTECTED] wrote: Is that mean the package name? Or the Relative path? But why will a component have relative path? If it is something extend Panel class? - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user- Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user -- Ingram ChenJava [EMAIL PROTECTED]Institue of BioMedical Sciences Academia Sinica Taiwanblog: http://www.javaworld.com.tw/roller/page/ingramchen - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] How to unit test component?
for assertRenderedPanel(), it is easy to add by yourself, like: public Panel getLastRenderedPanel() { return (Panel) getLastRenderedPage().get(DummyPanelPage.TEST_PANEL_ID); } public void assertRenderedPanel(Class panelClass) { if (!getLastRenderedPanel().getClass().isAssignableFrom(panelClass)) { Assert.assertEquals(panelClass.getSimpleName(), getLastRenderedPanel().getClass().getSimpleName()); } }On 11/1/06, Carfield Yim [EMAIL PROTECTED] wrote: I can see method startPanel() at WicketTester but look like there isno corresponding assertRenderedPanel(), is that only run startPanel()is enough?- Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user -- Ingram ChenJava [EMAIL PROTECTED]Institue of BioMedical Sciences Academia Sinica Taiwanblog: http://www.javaworld.com.tw/roller/page/ingramchen - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] any tips to make template validate?
done :-)http://issues.apache.org/jira/browse/WICKET-11btw, JIRA is a much better issue tracking tools, good move! On 10/19/06, Eelco Hillenius [EMAIL PROTECTED] wrote: Could you add a feature request if you want this? Onissues.apache.org/jira/browse/WICKET.EelcoOn 10/14/06, Ingram Chen [EMAIL PROTECTED] wrote: All, I occasionally encounter a problem, for example, a template like: tr span wicket:id=groupABtdfield A/td tdfield B/td /span tdfield C/td /tr groupAB is just funtional group and will always setRenderBodyOnly(true), so rendered page will be validated. But the problem is the template is not validted... Is it possible to create a psuedo tag like: trwicket:psuedo wicket:id=groupAB tdfield A/td tdfield B/td /wicket:psuedotdfield C/td/tr or something like wicket:taghoder. such tag dose nothing and always render body only. By seperateing namespace, it makes template clean and validated. Currently I use wicket:component as tag placeholder. It works like my want but I guess wicket:component is not for such purpose. Any idea ? -- Ingram Chen Java [EMAIL PROTECTED] Institue of BioMedical Sciences Academia Sinica Taiwan blog: http://www.javaworld.com.tw/roller/page/ingramchen - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user- Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user -- Ingram ChenJava [EMAIL PROTECTED]Institue of BioMedical Sciences Academia Sinica Taiwanblog: http://www.javaworld.com.tw/roller/page/ingramchen - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] any tips to make template validate?
All, I occasionally encounter a problem, for example, a template like:tr span wicket:id=groupAB tdfield A/td tdfield B/td /span tdfield C/td/trgroupAB is just funtional group and will always setRenderBodyOnly(true), so rendered page will be validated.But the problem is the template is not validted... Is it possible to create a psuedo tag like: tr wicket:psuedo wicket:id=groupAB tdfield A/td tdfield B/td /wicket:psuedo tdfield C/td /tror something like wicket:taghoder. such tag dose nothing and always render body only. By seperateing namespace, it makes template clean and validated.Currently I use wicket:component as tag placeholder. It works like my want but I guess wicket:component is not for such purpose.Any idea ?-- Ingram ChenJava [EMAIL PROTECTED]Institue of BioMedical Sciences Academia Sinica Taiwanblog: http://www.javaworld.com.tw/roller/page/ingramchen - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] [ wicket-Bugs-1555039 ] Infinite loop on internal parsing error with error page
wow! so fast! Thanks a lotCurrently my workaround is disable exception_page completely: getExceptionSettings().setUnexpectedExceptionDisplay(IExceptionSettings.SHOW_NO_EXCEPTION_PAGE); and wait 1.2.3 to release :-)On 10/10/06, Johan Compagner [EMAIL PROTECTED] wrote: fixed.On 10/10/06, Ingram Chen [EMAIL PROTECTED] wrote: I cound not attach file to sourceforge, here is quickstart to reproduce this bugjust configure(DEPLOYMENT); and walk with some wrong url...-ivaynberg:because i wasnt able to reproduce it. if you would provide a quickstart with instructions on how to enter the inifiniteloop i would be happy to fix it.and dont forget you are also free to provide a patch.-- Ingram Chen Java [EMAIL PROTECTED] Institue of BioMedical Sciences Academia Sinica Taiwanblog: http://www.javaworld.com.tw/roller/page/ingramchen -Take Surveys. Earn Cash. Influence the Future of ITJoin SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user -Take Surveys. Earn Cash. Influence the Future of ITJoin SourceForge.net's Techsay panel and you'll get the chance to share youropinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___Wicket-user mailing listWicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Ingram ChenJava [EMAIL PROTECTED]Institue of BioMedical Sciences Academia Sinica Taiwanblog: http://www.javaworld.com.tw/roller/page/ingramchen - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] [ wicket-Bugs-1555039 ] Infinite loop on internal parsing error with error page
I cound not attach file to sourceforge, here is quickstart to reproduce this bugjust configure(DEPLOYMENT); and walk with some wrong url...-ivaynberg:because i wasnt able to reproduce it. if you would provide a quickstart with instructions on how to enter the inifiniteloop i would be happy to fix it.and dont forget you are also free to provide a patch.-- Ingram ChenJava [EMAIL PROTECTED] Institue of BioMedical Sciences Academia Sinica Taiwanblog: http://www.javaworld.com.tw/roller/page/ingramchen quickstart.IAmZip Description: Binary data - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] The problem about encoding and event in ajax
(weird, I sent mail two days ago, but it is rejected. I send again)anyway, I found that Ajax request are all encoded as UTF-8 no matter what encoding used in the web page. And Tomcat always re-encode ajax request to ISO8859-1 (don't known why...) so I need to recover encoding back to UTF-8 manually for all request parameters: new String(parameter.getBytes(ISO8859-1), UTF-8);To solve this gloably I use a ServletFilter:public class FixAjaxEncodingFilter extends Filter { private static final String WICKET_AJAX = Wicket-Ajax; @Override protected void doFilter(ServletRequest request, ServletResponse response, FilterChain filterChain) throws ServletException, IOException { //Skip some casting... String wicketAjaxHeader = request.getHeader(WICKET_AJAX); if (wicketAjaxHeader == null || wicketAjaxHeader.trim().length() == 0) { filterChain.doFilter(request, response); } else { filterChain.doFilter(new AjaxEncodingFixHttpServletRequest( request), response); } } /** * The request wrapper to fix ajax request encoding for encoding other than * UTF-8 */ private static class AjaxEncodingFixHttpServletRequest extends HttpServletRequestWrapper { private final HashMapString, Object encodedParameterMap; @SuppressWarnings(unchecked) public AjaxEncodingFixHttpServletRequest( final HttpServletRequest orgHttpServletRequest) { super(orgHttpServletRequest); encodedParameterMap = new HashMapString, Object(); final MapString, Object orgParameterMap = getRequest() .getParameterMap(); for ( Map.Entry String, Object entry : orgParameterMap.entrySet()) { if (entry.getValue() == null) { encodedParameterMap.put(entry.getKey(), entry.getValue()); continue; } try { if (entry.getValue().getClass().isArray()) { String[] values = (String[]) entry.getValue(); String[] newValues = new String[ values.length]; for (int i = 0; i values.length; i++) { if (values[i] == null) { continue; } newValues[i] = new String(values[i] .getBytes(ISO8859-1), UTF-8); } encodedParameterMap.put (entry.getKey(), newValues); } else { String value = (String) entry.getValue(); encodedParameterMap.put(entry.getKey(), new String( value.getBytes(ISO8859-1), UTF-8)); } } catch (UnsupportedEncodingException e) { throw new RuntimeException(unexpected, e); } } } @Override public Map getParameterMap() { return encodedParameterMap; } @Override public String getParameter(String name) { Object object = encodedParameterMap.get(name); if (object == null) return null; if (object.getClass().isArray()) { String[] values = (String[]) object; if ( values.length == 0) return null; return values[0]; } else { return object.toString(); } } @Override public String[] getParameterValues(String name) { Object object = encodedParameterMap.get(name); if (object == null) return null; if (object.getClass().isArray()) { return (String[]) object; } else { return new String[] { object.toString() }; } } }}If request is Wicket Ajax, then wrap original HttpSerlvetRequest and re-encode all request parameters. This filter also solve get problems such as AjaxEditableLabel, which originally requiring additional seeting on URIEncoding . Don't know if there is any Native Wicket way to solve this ?-- Ingram ChenJava [EMAIL PROTECTED]Institue of BioMedical Sciences Academia Sinica Taiwanblog: http://www.javaworld.com.tw/roller/page/ingramchen - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] The problem about encoding and event in ajax
sorry.. I don't exactly understand what you mean, do you mean browser's charactor encoding mode ? if so, my browser's Charactor Encoding switch to Big5 when request set to Big5.anyway, I just create a quickstart with encoding cp866, a Russian encoding. I can't read Runssian, either. but it should be enough to demo the problem. please see attachement. In quickstart I do :(1) set QuickStartApplication: getMarkupSettings().setDefaultMarkupEncoding(cp866); getRequestCycleSettings().setResponseRequestEncoding(cp866); (2) template use cp866 ecoding both in ?xml and meta tag. On 9/26/06, Johan Compagner [EMAIL PROTECTED] wrote:If you set the request encoding to Big5.What does the browser say when you ask for where it is in? johanOn 9/26/06, Ingram Chen [EMAIL PROTECTED] wrote: Thanks the advice!Some chars just can't translated into Big5. Big5 is popular Chinese encoding before unicode in Taiwan... etc and it lack some rare chars defined in unicode. make conversion at DAO layer would be good or even migrate db to unicode is better but it require a lot effort. My problem is just Wicket Ajax not work correctly in different encoding. If it couldn't be solved, we are forced to give up wicket ajax and fallback to plain request...sigh Is there anything I could check or trace... ?-- Ingram ChenJava [EMAIL PROTECTED]Institue of BioMedical Sciences Academia Sinica Taiwan blog: http://www.javaworld.com.tw/roller/page/ingramchen encodingProblem.IAmZip Description: Binary data - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] The problem about encoding and event in ajax
Ouch! I also has similar problem... except that my encoding is Big5 (tranditional chinese)I try to build latest 1.x branch but maven complain:===Reason: Unable to download the artifact from any repository wicket:wicket-parent:pom:1.2-SNAPSHOTfrom the specified remote repositories: central (http://repo1.maven.org/maven2)=== How do I build latest branch ? or is there any nightly-snapshop ?On 9/22/06, Johan Compagner [EMAIL PROTECTED] wrote:for this we need to have a sample case.Also i checked in a encoding problem in the 1.2.x branch (and 2.0 but i don't think that one is completely fixed yet...)So if you could build/test it from svn maybe it is fixed then. johanOn 9/22/06, 王磊 [EMAIL PROTECTED] wrote: Also it brings some trouble,but i can solve the problem of encoding.But i can't know why there is not a event in the server while i input or paste a chinese word in the AutoCompleteTextField.I am not familiarwith _javascript_. Thanks for your advice .- Original Message -From: Martijn Dashorst [EMAIL PROTECTED]To: wicket-user@lists.sourceforge.netSent: Friday, September 22, 2006 3:52 PMSubject: Re: [Wicket-user] The problem about encoding and event in ajax We have had some problems with Ajax and UTF-8 encoding. You'll have to configure the uri encoding on your httpconnector to use UTF-8. In tomcat that would go into your server.xml Martijn On 9/22/06, 王磊 [EMAIL PROTECTED] wrote: In fact, i use utf-8 as my coding. The following is the content of the html. ?xml version=1.0 encoding=UTF-8? html head meta http-equiv=Content-Type content=text/html; charset=UTF-8 /head body form wicket:id=formCountry: input type=text wicket:id=ac size=50 //form /body /html I also tried many ways 1.keep meta charset or remove it. 2.keep ?xml version=1.0 encoding=UTF-8? or remove it. I can't get the right result. Another problem You can copy a chinese word and paste to the AutoCompleteTextField, no event will fired.You can see it in the server side. - Original Message - From: Erik van Oosten [EMAIL PROTECTED] To: wicket-user@lists.sourceforge.net Sent: Friday, September 22, 2006 3:03 PM Subject: Re: [Wicket-user] The problem about encoding and event in ajax Dear ??, The problem is because you can not encode Chinese characters in ISO-8859-1. You must use UTF-8 throughout your application.String newInput = new String( input.getBytes(iso8859-1), UTF-8); first converts the string to ISO8859-1 and thereby replaces all Chinese characters with a ?. Please make sure that the HTML pages that Wicket renders are in UTF-8. This true by default, but to be sure you could do getRequestCycleSettings().setResponseRequestEncoding(UTF-8) Then replace the line above with: String newInput = input; Regards, Erik.王磊 schreef: I just try to write a book about wicket.(It's written in chinese,and it's free to get a e-book). But while i writing a ajax example,i got a stange problem. I writed a auto-complete text application with AutoCompleteTextField control. But i got the following 2 problems. 1. If i input a chinese word,no request is sent to the server side.(I write println in server application,no output). 2. If in input a chinese word,then input a letter like 'd',the server side will get a string input like ???d, it's in wrong code. I use the following code to get the right input. String newInput = new String(input.getBytes(iso8859-1), UTF-8);I think these problems are caused by _javascript_,because i am not familiar with _javascript_. So i can't give reasons. May somebody can give a patch. -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Download Wicket 1.2.2 now! New Ajax components: Tree, TreeTable and ModalWindow -- http://wicketframework.org - Take Surveys. Earn
Re: [Wicket-user] The problem about encoding and event in ajax
Thanks information, I just manually compile and test latest snapshop. But unfortunately the encoding still not work right...I will create a quickstart to reproduce it!On 9/25/06, Martijn Dashorst [EMAIL PROTECTED] wrote: http://www.wicket-wiki.org.uk/wiki/index.php/WicketfromsourceOn 9/25/06, Ingram Chen [EMAIL PROTECTED] wrote: Ouch! I also has similar problem... except that my encoding is Big5 (tranditional chinese) I try to build latest 1.x branch but maven complain: === Reason: Unable to download the artifact from any repository wicket:wicket-parent:pom:1.2-SNAPSHOT from the specified remote repositories: central ( http://repo1.maven.org/maven2) === How do I build latest branch ?or is there any nightly-snapshop? On 9/22/06, Johan Compagner [EMAIL PROTECTED] wrote: for this we need to have a sample case. Also i checked in a encoding problem in the 1.2.x branch (and 2.0 but i don't think that one is completely fixed yet...) So if you could build/test it from svn maybe it is fixed then. johan On 9/22/06, 王磊 [EMAIL PROTECTED] wrote: Also it brings some trouble,but i can solve the problem of encoding. But i can't know why there is not a event in the server while i input or paste a chinese word in the AutoCompleteTextField. I am not familiarwith _javascript_. Thanks for your advice . - Original Message - From: Martijn Dashorst [EMAIL PROTECTED] To: wicket-user@lists.sourceforge.net Sent: Friday, September 22, 2006 3:52 PM Subject: Re: [Wicket-user] The problem about encoding and event in ajax We have had some problems with Ajax and UTF-8 encoding. You'll have toconfigure the uri encoding on your httpconnector to use UTF-8. In tomcat that would go into your server.xml Martijn On 9/22/06, 王磊 [EMAIL PROTECTED] wrote:In fact, i use utf-8 as my coding.The following is the content of the html. ?xml version= 1.0 encoding=UTF-8?htmlheadmeta http-equiv=Content-Type content=text/html; charset=UTF-8 /headbodyform wicket:id=formCountry: input type=text wicket:id=ac size=50 //form /body/html I also tried many ways1.keep meta charset or remove it. 2.keep ?xml version=1.0 encoding=UTF-8? or remove it. I can't get the right result. Another problemYou can copy a chinese word and paste to the AutoCompleteTextField, no event will fired.You can see it in the server side. - Original Message -From: Erik van Oosten [EMAIL PROTECTED] To: wicket-user@lists.sourceforge.netSent: Friday, September 22, 2006 3:03 PMSubject: Re: [Wicket-user] The problem about encoding and event in ajax Dear ??, The problem is because you can not encode Chinese characters in ISO-8859-1. You must use UTF-8 throughout your application. String newInput = new String( input.getBytes(iso8859-1), UTF-8); first converts the string to ISO8859-1 and thereby replaces all Chinese characters with a ?. Please make sure that the HTML pages that Wicket renders are in UTF-8. This true by default, but to be sure you could do getRequestCycleSettings().setResponseRequestEncoding(UTF-8) Then replace the line above with: String newInput = input; Regards, Erik. 王磊 schreef: I just try to write a book about wicket.(It's written in chinese,and it's free to get a e-book). But while i writing a ajax example,i got a stange problem. I writed a auto-complete text application with AutoCompleteTextField control. But i got the following 2 problems. 1. If i input a chinese word,no request is sent to the server side.(I write println in server application,no output). 2. If in input a chinese word,then input a letter like 'd',the server side will get a string input like ???d, it's in wrong code. I use the following code to get the right input. String newInput = new String(input.getBytes(iso8859-1), UTF-8); I think these problems are caused by _javascript_,because i am not familiar with _javascript_. So i can't give reasons. May somebody can give a patch. -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/ - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] The problem about encoding and event in ajax
Ok, wicket-example can reproduce this bug:go to:http://www.wicket-library.com/wicket-examples/ajax?wicket:bookmarkablePage=:wicket.examples.ajax.builtin.EditableLabelPage and input to a EditableLabel by several chars: French êèéæøåand output become: French êèÃæøå On 9/25/06, Ingram Chen [EMAIL PROTECTED] wrote: Thanks information, I just manually compile and test latest snapshop. But unfortunately the encoding still not work right...I will create a quickstart to reproduce it! On 9/25/06, Martijn Dashorst [EMAIL PROTECTED] wrote: http://www.wicket-wiki.org.uk/wiki/index.php/WicketfromsourceOn 9/25/06, Ingram Chen [EMAIL PROTECTED] wrote: Ouch! I also has similar problem... except that my encoding is Big5 (tranditional chinese) I try to build latest 1.x branch but maven complain: === Reason: Unable to download the artifact from any repository wicket:wicket-parent:pom:1.2-SNAPSHOT from the specified remote repositories: central ( http://repo1.maven.org/maven2) === How do I build latest branch ?or is there any nightly-snapshop? On 9/22/06, Johan Compagner [EMAIL PROTECTED] wrote: for this we need to have a sample case. Also i checked in a encoding problem in the 1.2.x branch (and 2.0 but i don't think that one is completely fixed yet...) So if you could build/test it from svn maybe it is fixed then. johan On 9/22/06, 王磊 [EMAIL PROTECTED] wrote: Also it brings some trouble,but i can solve the problem of encoding. But i can't know why there is not a event in the server while i input or paste a chinese word in the AutoCompleteTextField. I am not familiarwith _javascript_. Thanks for your advice . - Original Message - From: Martijn Dashorst [EMAIL PROTECTED] To: wicket-user@lists.sourceforge.net Sent: Friday, September 22, 2006 3:52 PM Subject: Re: [Wicket-user] The problem about encoding and event in ajax We have had some problems with Ajax and UTF-8 encoding. You'll have toconfigure the uri encoding on your httpconnector to use UTF-8. In tomcat that would go into your server.xml Martijn On 9/22/06, 王磊 [EMAIL PROTECTED] wrote:In fact, i use utf-8 as my coding.The following is the content of the html. ?xml version= 1.0 encoding=UTF-8?htmlheadmeta http-equiv=Content-Type content=text/html; charset=UTF-8 /headbodyform wicket:id=formCountry: input type=text wicket:id=ac size=50 //form /body/html I also tried many ways1.keep meta charset or remove it. 2.keep ?xml version=1.0 encoding=UTF-8? or remove it. I can't get the right result. Another problemYou can copy a chinese word and paste to the AutoCompleteTextField, no event will fired.You can see it in the server side. - Original Message -From: Erik van Oosten [EMAIL PROTECTED] To: wicket-user@lists.sourceforge.netSent: Friday, September 22, 2006 3:03 PM Subject: Re: [Wicket-user] The problem about encoding and event in ajax Dear ??, The problem is because you can not encode Chinese characters in ISO-8859-1. You must use UTF-8 throughout your application. String newInput = new String( input.getBytes(iso8859-1), UTF-8); first converts the string to ISO8859-1 and thereby replaces all Chinese characters with a ?. Please make sure that the HTML pages that Wicket renders are in UTF-8. This true by default, but to be sure you could do getRequestCycleSettings().setResponseRequestEncoding(UTF-8) Then replace the line above with: String newInput = input; Regards, Erik. 王磊 schreef: I just try to write a book about wicket.(It's written in chinese,and it's free to get a e-book). But while i writing a ajax example,i got a stange problem. I writed a auto-complete text application with AutoCompleteTextField control. But i got the following 2 problems. 1. If i input a chinese word,no request is sent to the server side.(I write println in server application,no output). 2. If in input a chinese word,then input a letter like 'd',the server side will get a string input like ???d, it's in wrong code. I use the following code to get the right input. String newInput = new String(input.getBytes(iso8859-1), UTF-8); I think these problems are caused by _javascript_,because i am not familiar with _javascript_. So i can't give reasons. May somebody can give a patch. -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/ - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics
Re: [Wicket-user] The problem about encoding and event in ajax
Well, the database is only allowed to store chars encoded as Big5. If user input charactors, which defined in Unicode but outside of Big5 cover, the database only store garbage code like ???. By setting page encoding to Big5, the browser will escape non-Big5 chars to #; automatically. Althought database still store these escape chars, these chars can be re-rendered correctly on the web page. On 9/25/06, Matej Knopp [EMAIL PROTECTED] wrote: That's strange. I've tried wicket examples and the only one that didn'twork was the editable label one, which used get to send the data toserver. All other examples worked for me.I don't understand why you can't use utf-8 encoding. What has this to do with your database encoding? In java all strings are internally unicode.How does encoding of your html pages and urls affects your database?-Matej-- Ingram Chen Java [EMAIL PROTECTED]Institue of BioMedical Sciences Academia Sinica Taiwanblog: http://www.javaworld.com.tw/roller/page/ingramchen - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] The problem about encoding and event in ajax
Thanks the advice!Some chars just can't translated into Big5. Big5 is popular Chinese encoding before unicode in Taiwan... etc and it lack some rare chars defined in unicode.make conversion at DAO layer would be good or even migrate db to unicode is better but it require a lot effort. My problem is just Wicket Ajax not work correctly in different encoding. If it couldn't be solved, we are forced to give up wicket ajax and fallback to plain request...sigh Is there anything I could check or trace... ?On 9/26/06, Matej Knopp [EMAIL PROTECTED] wrote: Yeah, I also thing that web-layer is not the best place for doing suchconversion. I know it would require additional effort but I think doingthe conversion at DAO layer would be much safer.-MatejJohan Compagner wrote: Can't the driver do that conversion for you? What happens if you just create a String in java with some special chars and write that to the database? The driver should be able to convert it. Or are you saying that you need to really escape it like # ?? The char just can't be translated into Big5? johan On 9/25/06, *Ingram Chen* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Well, the database is only allowed to store chars encoded as Big5. If user input charactors, which defined in Unicode but outside of Big5 cover, the database only store garbage code like ???.By setting page encoding to Big5, the browser will escape non-Big5 chars to #; automatically. Althought database still store these escape chars, these chars can be re-rendered correctly on the web page. On 9/25/06, *Matej Knopp* [EMAIL PROTECTED] mailto: [EMAIL PROTECTED] wrote: That's strange. I've tried wicket examples and the only one that didn't work was the editable label one, which used get to send the data to server. All other examples worked for me. I don't understand why you can't use utf-8 encoding. What has this to do with your database encoding? In java all strings are internally unicode. How does encoding of your html pages and urls affects your database? -Matej -- Ingram Chen Java [EMAIL PROTECTED] Institue of BioMedical Sciences Academia Sinica Taiwan blog: http://www.javaworld.com.tw/roller/page/ingramchen - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net mailto:Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user-Take Surveys. Earn Cash. Influence the Future of ITJoin SourceForge.net 's Techsay panel and you'll get the chance to share youropinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___Wicket-user mailing listWicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user-- Ingram ChenJava [EMAIL PROTECTED] Institue of BioMedical Sciences Academia Sinica Taiwanblog: http://www.javaworld.com.tw/roller/page/ingramchen - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Auto extend webpage for plain html file ?
Thanks all ideas, I will try these to see which is better :-) On 9/7/06, Igor Vaynberg [EMAIL PROTECTED] wrote:there are examples in extensions already that load markup from a different place - all you have to do is pass a parameter to the page - maybe a file name - and that page can use the markup from that file to render itself. or another way is to use a regular page that adds a label whose model points to the html - loaded from some file? - with setescapemodelstrings(false) - better make the model detachable so the contents of the file is not kept in session. -IgorOn 9/6/06, Juergen Donnerstag [EMAIL PROTECTED] wrote: Actually I like this Page/Panel/Border class - markup enforcementbecause it means there is no magic, it is a very simple rule, it isvery easy to understand. But this of course is my own opinion. If you come up with an implemention which can be added to wicket-extension,than it is fine by me. What that means however is that is must notrequire any changes to core (such as additional settings etc.) but bebased on existing core hooks. I don't mind adding additional hooks if required though.JuergenOn 9/7/06, Ingram Chen [EMAIL PROTECTED] wrote: Hi all, Wicket provide very good page inheritance, and it's perfect for page layout. However, as far as I know, to apply layout to static, logicless page, we still need to create a blank page class: public class MyStaticPage extends MyBaseLayoutPage { //does nothing } body wicket:extend MyStaticPage content... /wicket:extend/body Is it possible we can skip such blank class ? how about configure specific directory and automatically apply Parent page ? in WebAppliction: autoExtend( somePackage, MyBaseLayoutPage.class ); or just write parent class in template: bodywicket:extend parent=com.example.MyBaseLayoutPageMyStaticPage content.../wicket:extend/body -- Ingram Chen Java [EMAIL PROTECTED] Institue of BioMedical Sciences Academia Sinica Taiwan blog: http://www.javaworld.com.tw/roller/page/ingramchen - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user-Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user -Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user -- Ingram ChenJava [EMAIL PROTECTED]Institue of BioMedical Sciences Academia Sinica Taiwanblog: http://www.javaworld.com.tw/roller/page/ingramchen - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Auto extend webpage for plain html file ?
Hi all, Wicket provide very good page inheritance, and it's perfect for page layout.However, as far as I know, to apply layout to static, logicless page, we still need to create a blank page class: public class MyStaticPage extends MyBaseLayoutPage { //does nothing}body wicket:extend MyStaticPage content... /wicket:extend /bodyIs it possible we can skip such blank class ? how about configure specific directory and automatically apply Parent page ?in WebAppliction: autoExtend( somePackage, MyBaseLayoutPage.class );or just write parent class in template:body wicket:extend parent=com.example.MyBaseLayoutPage MyStaticPage content... /wicket:extend /body -- Ingram ChenJava [EMAIL PROTECTED]Institue of BioMedical Sciences Academia Sinica Taiwanblog: http://www.javaworld.com.tw/roller/page/ingramchen - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Ajax to toggle visibility require two WebMarkupContainers
Hi all, As I tried more Ajax in my new project, I frequently encounter one feature:use ajax to toggle specific block of tag visible/invisible. To do this, one may use:div wicket:id=domIdHolderComponent div wicket:id=componentForVisibility actual content here a wicket:id=foo ... span wicket:id=bar. /div/div outer webMarkupContainer domIdHolderComponent is ajax target to re-render, inner componentForVisibility is just to toggle visibilty of content in certain condition. It is quite anony to I have to add two layers of WebMarkupContainers for this. This makescode hardly readable. It would be better we have a new component, so we can do this:div wicket:id=domIdHolderAndToggleBodyVisibility actual content here a wicket:id=foo ... span wicket:id=bar./divI tried to write a reusable Border component to simulate but it is not work as I expectCould I write a component do reverse of setRenderBodyOnly: class NewComponent { public isRenderTagOnly() { return // if false just render the tag without body, else render full body }}With this it may save time to struggle with ajax dom id place holder. Any hint to do this ? or a simpler way to solve ajax toggling visibility ?Thanks in advance!-- Ingram ChenJava [EMAIL PROTECTED]Institue of BioMedical Sciences Academia Sinica Taiwanblog: http://www.javaworld.com.tw/roller/page/ingramchen - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Ajax to toggle visibility require two WebMarkupContainers
Well, it is good for small portion of tags. One of our feature is togglevisibility by each link in grid (may be 10x10), use _javascript_ to toggle will waste some bandwidth...anyway, thank for adivse. On 8/31/06, Martijn Dashorst [EMAIL PROTECTED] wrote: Hide:target.addJavaScript(document.getElementById(' +component.getMarkupId() + ').style.display='none';);Show:target.addJavaScript(document.getElementById(' +component.getMarkupId () + ').style.display='';);It doesn't remove the component from the output stream, it justmanipulates the style of the tag itself.MartijnOn 8/31/06, Ingram Chen [EMAIL PROTECTED] wrote: Hi all,As I tried more Ajax in my new project, I frequently encounter one feature: use ajax to toggle specific block of tag visible/invisible. To do this, one may use: div wicket:id=domIdHolderComponent div wicket:id=componentForVisibility actual content here a wicket:id=foo ... span wicket:id=bar./div /div outer webMarkupContainer domIdHolderComponent is ajax target to re-render, inner componentForVisibility is just to toggle visibilty of content in certain condition. It is quite anony to I have to add two layers of WebMarkupContainers for this. This makes code hardly readable. It would be better we have a new component, so we can do this: div wicket:id=domIdHolderAndToggleBodyVisibility actual content herea wicket:id=foo ...span wicket:id=bar. /div I tried to write a reusable Border component to simulate but it is not work as I expect Could I write a component do reverse of setRenderBodyOnly: class NewComponent { public isRenderTagOnly() {return // if false just render the tag without body, else render full body} } With this it may save time to struggle with ajax dom id place holder. Any hint to do this ? or a simpler way to solve ajax toggling visibility ? Thanks in advance! -- Ingram Chen Java [EMAIL PROTECTED] Institue of BioMedical Sciences Academia Sinica Taiwan blog: http://www.javaworld.com.tw/roller/page/ingramchen - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user--Download Wicket 1.2.2 now! New Ajax components: Tree, TreeTable and ModalWindow-- http://wicketframework.org- Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user -- Ingram ChenJava [EMAIL PROTECTED]Institue of BioMedical Sciences Academia Sinica Taiwanblog: http://www.javaworld.com.tw/roller/page/ingramchen - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Ajax to toggle visibility require two WebMarkupContainers
Wow! your code give me a big hint: there is a method: setBorderBodyVisible()With this method, it's quite simple to solve this problem!AjaxBox.java-public abstract class AjaxBox extends Border { public AjaxBox(String id) { super(id); setOutputMarkupId(true); } @Override protected final void onAttach() { setBorderBodyVisible(isBodyVisible()); } @Override public final boolean isVisible() { return true; } //subclass to implement to change body visibility: protected abstract boolean isBodyVisible();}AjaxBox.html - nonthing :-)wicket:borderwicket:body//wicket:borderNow I can write my template as:a wicket:id=toggle toggle visiblity/a div wicket:id=ajaxBox actual content here a wicket:id=foo ... span wicket:id=bar./divwith source code: final AjaxBox ajaxBox = new AjaxBox(ajaxBox) { @Override protected boolean isBodyVisible() { return toggleStatus; }; add(ajaxBox); add(new AjaxLink(toggle) { @Override public void onClick(AjaxRequestTarget target) { toggleStatus = !toggleStatus; target.addComponent(ajaxBox); } }); The java code now is much simpler!On 8/31/06, ChuckDeal [EMAIL PROTECTED] wrote: Ingram Chen wrote:As I tried more Ajax in my new project, I frequently encounter one feature: use ajax to toggle specific block of tag visible/invisible. To do this, one may use:I was attempting a similar action.Attached is my first cut of thesolution.It is a Border that shows a row of text that can be cliked toshow/hide the body.It is not finished, but it should work reasonably well. http://www.nabble.com/user-files/235819/collapsableBorder.jarcollapsableBorder.jar--View this message in context: http://www.nabble.com/Ajax-to-toggle-visibility-require-two-WebMarkupContainers-tf2195506.html#a6077669Sent from the Wicket - User forum at Nabble.com.- Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user -- Ingram ChenJava [EMAIL PROTECTED]Institue of BioMedical Sciences Academia Sinica Taiwanblog: http://www.javaworld.com.tw/roller/page/ingramchen - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] AjaxTabbedPanel is broken (wicket-1.2.2)
I found that this also happend to AjaxFallBackDefaultDataTable... seems nota problem for particular component. Is this bug already fixed in SVN or any work around I can do ? My project is stopped due to this problemOn 8/28/06, Johan Compagner [EMAIL PROTECTED] wrote: can you make a bug report of this?On 8/28/06, Ingram Chen [EMAIL PROTECTED] wrote: I upgrade latest 1.2.2 from 1.2.0, but AjaxTabbedPanel is broken undercertain condition:=ERROR - RequestCycle - Cannot remove [MarkupContainer [Component id = 1, page = No Page, path = 1.Loop$LoopItem]] from null parent!java.lang.IllegalStateException: Cannot remove [MarkupContainer [Component id = 1, page = No Page, path = 1.Loop$LoopItem]] from null parent! at wicket.Component.remove (Component.java:1475) at wicket.version.undo.Add.undo(Add.java:81) at wicket.version.undo.ChangeList.undo(ChangeList.java:93) at wicket.version.undo.UndoPageVersionManager.undo(UndoPageVersionManager.java :217) at wicket.version.undo.UndoPageVersionManager.getVersion(UndoPageVersionManager.java:167) at wicket.Page.getVersion(Page.java:586) at wicket.PageMap.get(PageMap.java:461) at wicket.Session.getPage (Session.java:418) at wicket.request.compound.DefaultRequestTargetResolverStrategy.resolveRenderedPage(DefaultRequestTargetResolverStrategy.java:215) at wicket.request.compound.DefaultRequestTargetResolverStrategy.resolve (DefaultRequestTargetResolverStrategy.java:152) at wicket.request.compound.AbstractCompoundRequestCycleProcessor.resolve(AbstractCompoundRequestCycleProcessor.java:48) at wicket.RequestCycle.step(RequestCycle.java :948) at wicket.RequestCycle.steps(RequestCycle.java:1040) at wicket.RequestCycle.request(RequestCycle.java:454)=To reproduce this bug: link to a non-bookmarkable Page, then click tab link - refresh page - click tab link again - refresh page - ouch ! This bug is not found at 1.2.0 (i don't try 1.2.1) the attachment is test for QuickStart. -- Ingram Chen Java [EMAIL PROTECTED]Institue of BioMedical Sciences Academia Sinica Taiwanblog: http://www.javaworld.com.tw/roller/page/ingramchen -Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user -Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user -- Ingram ChenJava [EMAIL PROTECTED]Institue of BioMedical Sciences Academia Sinica Taiwanblog: http://www.javaworld.com.tw/roller/page/ingramchen - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] AjaxTabbedPanel is broken (wicket-1.2.2)
I found that this issue:http://www.nabble.com/--wicket-Bugs-1549248---ajax-and-versioning-tf2189645.htmlis similar, and I turn off page versioning, it works well. This is enough for my project now. Anyway, Thank your adivse.On 8/30/06, Gwyn Evans [EMAIL PROTECTED] wrote: On 30/08/06, Ingram Chen [EMAIL PROTECTED] wrote: I found that this also happend to AjaxFallBackDefaultDataTable... seems not a problem for particular component. Is this bug already fixed in SVN or any work around I can do ? My project is stopped due to this problemWell, try a fall-back to 1.2.1 see if that was OK?Was thereanything in 1.2.2 that you required as part of your project?/Gwyn-Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user-- Ingram ChenJava [EMAIL PROTECTED]Institue of BioMedical Sciences Academia Sinica Taiwanblog: http://www.javaworld.com.tw/roller/page/ingramchen - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] AjaxPreprocessingCallDecorator is strange.. (wicket 1.2.2)
The implementation in 1.2.2 is strange: /** * @see wicket.ajax.IAjaxCallDecorator#decorateScript(CharSequence) */ public CharSequence decorateScript(CharSequence script) { CharSequence s = preDecorateScript(script); return (delegate == null) ? s : delegate.decorateScript(script); }with this implementation if there is delegate, the script will not be wrapped by preDecorateScript(script) at all. Is this intended ? and why ? As opposite, AjaxPostprocessingCallDecorator will wrap script correctly. -- Ingram ChenJava [EMAIL PROTECTED]Institue of BioMedical Sciences Academia Sinica Taiwanblog: http://www.javaworld.com.tw/roller/page/ingramchen - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] How to set AjaxCallDecorator globally ?
wow ! Thanks!Would you mind give me a hint to get start ?On 8/28/06, Igor Vaynberg [EMAIL PROTECTED] wrote:there are global events available through _javascript_ for beginning,success, and failure events - so you would have to put code directly into _javascript_ instead of using decorators. -Igor On 8/27/06, Ingram Chen [EMAIL PROTECTED] wrote: Hi all, I have some general AjaxCallDecorators: such as show busy, red Loading... message orhandling ajax failure. I can subclass each Ajax* component and override getAjaxCallDecorator() but this way becomes annoy when more components are developed. And some core ajax components are composited, I have no chance to subclass AjaxBehavior inside. Is there any way to add AjaxCallDecorator globally ?-- Ingram ChenJava [EMAIL PROTECTED] Institue of BioMedical Sciences Academia Sinica Taiwan blog: http://www.javaworld.com.tw/roller/page/ingramchen -Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user -Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user -- Ingram ChenJava [EMAIL PROTECTED]Institue of BioMedical Sciences Academia Sinica Taiwanblog: http://www.javaworld.com.tw/roller/page/ingramchen - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] AjaxTabbedPanel is broken (wicket-1.2.2)
I upgrade latest 1.2.2 from 1.2.0, but AjaxTabbedPanel is broken undercertain condition:=ERROR - RequestCycle - Cannot remove [MarkupContainer [Component id = 1, page = No Page, path = 1.Loop$LoopItem]] from null parent!java.lang.IllegalStateException: Cannot remove [MarkupContainer [Component id = 1, page = No Page, path = 1.Loop$LoopItem]] from null parent! at wicket.Component.remove (Component.java:1475) at wicket.version.undo.Add.undo(Add.java:81) at wicket.version.undo.ChangeList.undo(ChangeList.java:93) at wicket.version.undo.UndoPageVersionManager.undo(UndoPageVersionManager.java :217) at wicket.version.undo.UndoPageVersionManager.getVersion(UndoPageVersionManager.java:167) at wicket.Page.getVersion(Page.java:586) at wicket.PageMap.get(PageMap.java:461) at wicket.Session.getPage (Session.java:418) at wicket.request.compound.DefaultRequestTargetResolverStrategy.resolveRenderedPage(DefaultRequestTargetResolverStrategy.java:215) at wicket.request.compound.DefaultRequestTargetResolverStrategy.resolve (DefaultRequestTargetResolverStrategy.java:152) at wicket.request.compound.AbstractCompoundRequestCycleProcessor.resolve(AbstractCompoundRequestCycleProcessor.java:48) at wicket.RequestCycle.step(RequestCycle.java :948) at wicket.RequestCycle.steps(RequestCycle.java:1040) at wicket.RequestCycle.request(RequestCycle.java:454)=To reproduce this bug: link to a non-bookmarkable Page, then click tab link - refresh page - click tab link again - refresh page - ouch ! This bug is not found at 1.2.0 (i don't try 1.2.1) the attachment is test for QuickStart. -- Ingram Chen Java [EMAIL PROTECTED]Institue of BioMedical Sciences Academia Sinica Taiwanblog: http://www.javaworld.com.tw/roller/page/ingramchen testAjaxTab.IAmZip Description: Binary data - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] How to set AjaxCallDecorator globally ?
Yea, I will try to do after migration to 1.2.2 complete. :-)On 8/28/06, Igor Vaynberg [EMAIL PROTECTED] wrote:Wicket.Ajax.registerPreCallHandler(new function() {...});Wicket.Ajax.registerPostCallHandler (..); === successWicket.Ajax.registerFailureHandler(..);mind making a wiki page?-Igor On 8/27/06, Ingram Chen [EMAIL PROTECTED] wrote: wow ! Thanks!Would you mind give me a hint to get start ?On 8/28/06, Igor Vaynberg [EMAIL PROTECTED] wrote:there are global events available through _javascript_ for beginning,success, and failure events - so you would have to put code directly into _javascript_ instead of using decorators. -Igor On 8/27/06, Ingram Chen [EMAIL PROTECTED] wrote: Hi all, I have some general AjaxCallDecorators: such as show busy, red Loading... message orhandling ajax failure. I can subclass each Ajax* component and override getAjaxCallDecorator() but this way becomes annoy when more components are developed. And some core ajax components are composited, I have no chance to subclass AjaxBehavior inside. Is there any way to add AjaxCallDecorator globally ?-- Ingram ChenJava [EMAIL PROTECTED] Institue of BioMedical Sciences Academia Sinica Taiwan blog: http://www.javaworld.com.tw/roller/page/ingramchen -Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user -Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user -- Ingram ChenJava [EMAIL PROTECTED]Institue of BioMedical Sciences Academia Sinica Taiwanblog: http://www.javaworld.com.tw/roller/page/ingramchen -Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user -Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user -- Ingram ChenJava [EMAIL PROTECTED]Institue of BioMedical Sciences Academia Sinica Taiwanblog: http://www.javaworld.com.tw/roller/page/ingramchen - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] How to set AjaxCallDecorator globally ?
Hi all, I have some general AjaxCallDecorators: such as show busy, red Loading... message orhandling ajax failure. I can subclass each Ajax* component and override getAjaxCallDecorator()but this way becomes annoy when more components are developed. And some core ajax components are composited, I have no chance to subclass AjaxBehavior inside. Is there any way to add AjaxCallDecorator globally ?-- Ingram ChenJava [EMAIL PROTECTED]Institue of BioMedical Sciences Academia Sinica Taiwan blog: http://www.javaworld.com.tw/roller/page/ingramchen - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Pro Wicket beta book available
Thanks for great information !I just buy one two minutes ago !Congratulation all Wicketers~~On 8/15/06, Per Ejeklint [EMAIL PROTECTED] wrote:Just want to inform that Apress have had problems with their downloadable beta books, but it's fixed. I just bought anddownloaded Pro Wicket http://www.apress.com/book/bookDisplay.html? bID=10189, there are 9 chapters + appendix and intro available.Looks very nice and will definitely be worth US$20 for me. So now Iwill make a nice brew (tea) and dig in.Per- Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user -- Ingram ChenJava [EMAIL PROTECTED]Institue of BioMedical Sciences Academia Sinica Taiwanblog: http://www.javaworld.com.tw/roller/page/ingramchen - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Gmail style ajax loading indicator and disabled zone
Hi, DWR project build-in red loading indicator and disable full browser window while ajax loading (aka gmail style). This is a quite useful feature and implemetation is trivial. Is there any plan to add this feature in wicket-core or extension ? it would be better we can just configuring in WebApplication, say, getAjaxSetting().setLoadingIndicator(true) and setDisableWindowWhileLoading(true) etc.-- Ingram ChenJava [EMAIL PROTECTED]Institue of BioMedical Sciences Academia Sinica Taiwanblog: http://www.javaworld.com.tw/roller/page/ingramchen - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Gmail style ajax loading indicator and disabled zone
Yes, polling is a exception for busy indicator, but how many polling will be used in a web site ? I believe 'normal' ajax processing is more than polling, so it should be good to have a global setting, and let each behavior to overwrite global setting if required. On 8/14/06, Johan Compagner [EMAIL PROTECTED] wrote: would you want that as a global setting for all ajax behaviours?just polling for example for new data i don't want to have the busy or loading indicator..If we had something like that then i guess it should be a property on the behaviour itself. johanOn 8/14/06, Ingram Chen [EMAIL PROTECTED] wrote: Hi, DWR project build-in red loading indicator and disable full browser window while ajax loading (aka gmail style). This is a quite useful feature and implemetation is trivial. Is there any plan to add this feature in wicket-core or extension ? it would be better we can just configuring in WebApplication, say, getAjaxSetting().setLoadingIndicator(true) and setDisableWindowWhileLoading(true) etc.-- Ingram ChenJava [EMAIL PROTECTED]Institue of BioMedical Sciences Academia Sinica Taiwanblog: http://www.javaworld.com.tw/roller/page/ingramchen -Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user -Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user -- Ingram ChenJava [EMAIL PROTECTED]Institue of BioMedical Sciences Academia Sinica Taiwanblog: http://www.javaworld.com.tw/roller/page/ingramchen - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] stop AjaxSelfUpdatingTimerBehavior programmatically ?
Thanks! Igor, I have created a RFE for this item. If you have time to release some code snips, it is great helpful !On 8/12/06, Igor Vaynberg [EMAIL PROTECTED] wrote:no it is not possible. i actually needed the same functionality recently and so i noticed this shortcoming as well. please file an rfe for 1.3 and i will add it in...right now i cant because it will break the api.in the meantime what i did was write an ajax poller that is similar to the timer behaviors but allows me to stop it, its only a few lines of code...i will check if i can release it monday if you would like. its not exactly what you want but it might be a good starting point. -Igorrespond(target) { if (continuepolling()) { target.addjavascript(On 8/11/06, Ingram Chen [EMAIL PROTECTED] wrote: Hi all, Is there any way to stop AjaxSelfUpdatingTimerBehavior programmatically ? I am writting a small chat app and require to stop self updating to reduce server load when user is idle. I check AbstractAjaxTimerBehavior but both updateInterval and response(target) are final... Is it possible to do ?Thanks in advance.-- Ingram ChenJava [EMAIL PROTECTED]Institue of BioMedical Sciences Academia Sinica Taiwanblog: http://www.javaworld.com.tw/roller/page/ingramchen -Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user -Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user -- Ingram ChenJava [EMAIL PROTECTED]Institue of BioMedical Sciences Academia Sinica Taiwanblog: http://www.javaworld.com.tw/roller/page/ingramchen - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Pretty URL for login page ?
All, This small problem annoys us very long time:When I first reach http://mycompany.com, with normal configuration, wecheck if user login or not and throw RestartResponseAtInterceptPageException( IndexPage.class)to redirect user to Login page.This work perfectly but the URL become unstable link like: http://mycompany.com/app?wicket:interface=:1 ::Normally user want to bookmark login page, but in this case such URL does not work at all.Is there any way to fix this 'problem' ? It would be better I could redirect to root context like http://mycompany.com/ or http://mycompany.com/appThanks in advance!-- Ingram ChenJava [EMAIL PROTECTED]Institue of BioMedical Sciences Academia Sinica Taiwan blog: http://www.javaworld.com.tw/roller/page/ingramchen - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Pretty URL for login page ?
Thanks for fast reply!If this is feasible I will create a RFE for this change. hope we'll have this feature next release :-)On 8/11/06, Johan Compagner [EMAIL PROTECTED] wrote: Mounting like Gwyn proposed doesn't work either.The problem is that we always redirect to an instance because of the pagemap method: final void redirectToInterceptPage(final Page page) { // Get the request cycle final RequestCycle cycle = RequestCycle.get(); // The intercept continuation URL should be saved exactly as the // original request specified. interceptContinuationURL = cycle.getRequest ().getURL(); // Page map is dirty session.dirtyPageMap(this); // Redirect to the page cycle.setRedirect(true); cycle.setResponsePage(page); }Maybe we should also make redirecting to a class: final void redirectToInterceptPage(final Class pageClass) { // Get the request cycle final RequestCycle cycle = RequestCycle.get(); // The intercept continuation URL should be saved exactly as the // original request specified. interceptContinuationURL = cycle.getRequest().getURL(); // Page map is dirty session.dirtyPageMap(this); // Redirect to the page cycle.setRedirect(true); cycle.setResponsePage(pageClass); }then you will get a bookmarkable url or a mount url.johan On 8/11/06, Ingram Chen [EMAIL PROTECTED] wrote: All, This small problem annoys us very long time:When I first reach http://mycompany.com, with normal configuration, we check if user login or not and throw RestartResponseAtInterceptPageException( IndexPage.class)to redirect user to Login page.This work perfectly but the URL become unstable link like: http://mycompany.com/app?wicket:interface=:1 ::Normally user want to bookmark login page, but in this case such URL does not work at all.Is there any way to fix this 'problem' ? It would be better I could redirect to root context like http://mycompany.com/ or http://mycompany.com/appThanks in advance!-- Ingram ChenJava [EMAIL PROTECTED]Institue of BioMedical Sciences Academia Sinica Taiwan blog: http://www.javaworld.com.tw/roller/page/ingramchen -Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user -Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user -- Ingram ChenJava [EMAIL PROTECTED]Institue of BioMedical Sciences Academia Sinica Taiwanblog: http://www.javaworld.com.tw/roller/page/ingramchen - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] AjaxEventBehavior + TR element + IE6
I had similar problem too. In my application, both TR and TD tags do not work properly in IE with ajax. though I didn't have time to investigate this problem at that time...On 8/12/06, Lorin Metzger [EMAIL PROTECTED] wrote: Hi,I was trying to create a DataTable that allowed row selection, by addinga AjaxEventBehavior to the Item of a DataTable.This works fine withFirefox 1.5, but I'm having problems with IE6. The onEvent() method gets called when the user clicks a row in the table, but callingAjaxRequestTarget.addComponent(item); does not cause the table item tobe updated to indicate that it has been selected in IE6. Similarly as a test calling AjaxRequestTarget.addJavascript(alert(\This is a_javascript_ Alert\)); Does not get executed in IE6.This only seems to apply to the table Item or TR element, in IE6.I can add a AjaxEventBehavior to the table itself, and the table getsupdated when addComponent() is called, and the addJavascript() getsexecuted as expected even in IE6.Does anybody know if this is a limitation with IE6? A crude example of what I'm trying do is shown below.Thanks for any help you can provide.int selected_row = -1;DataTable table = new DataTable(..., ..., ..., ...){protected Item newRowItem(String id, final int index, IModel model) { final Item item = super.newRowItem(id, index, model); item.add(new AjaxEventBehavior(onclick) {protected void onEvent(AjaxRequestTarget target) { selected_row = index; target.addComponent(item); } }; item.add(new SimpleAttributeModifier(class, selected) {public boolean isEnabled(){ return index == selected_index;} }; }};-Lorin- Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user -- Ingram ChenJava [EMAIL PROTECTED]Institue of BioMedical Sciences Academia Sinica Taiwanblog: http://www.javaworld.com.tw/roller/page/ingramchen - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] stop AjaxSelfUpdatingTimerBehavior programmatically ?
Hi all, Is there any way to stop AjaxSelfUpdatingTimerBehavior programmatically ?I am writting a small chat app and require to stop self updating to reduce server load when user is idle. I check AbstractAjaxTimerBehavior but both updateInterval and response(target) are final... Is it possible to do ?Thanks in advance.-- Ingram ChenJava [EMAIL PROTECTED]Institue of BioMedical Sciences Academia Sinica Taiwanblog: http://www.javaworld.com.tw/roller/page/ingramchen - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] CookieValuePersister not support encoding other than ISO8859-1
As RFC 2109 defined, cookie only supports ASCII code. Current implementation of CookieVAluePersister (wicket 1.2.0) does not encode cookie value as ASCII String. Thus value persistent of FormComponent does not work properly when user input Chinese, Japanese... etc. Both URLEncoder or Base64 are good approach to solve such problem.I will create a RFE if it is not in 1.2.1 -- Ingram ChenJava [EMAIL PROTECTED]Institue of BioMedical Sciences Academia Sinica Taiwan blog: http://www.javaworld.com.tw/roller/page/ingramchen - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] CookieValuePersister not support encoding other than ISO8859-1
done ;-)http://sourceforge.net/tracker/index.php?func=detailaid=1531861group_id=119783atid=684978 On 7/31/06, Juergen Donnerstag [EMAIL PROTECTED] wrote: yes please, create an RFE.JuergenOn 7/31/06, Ingram Chen [EMAIL PROTECTED] wrote: As RFC 2109 defined, cookie only supports ASCII code.Current implementationof CookieVAluePersister (wicket 1.2.0) does not encode cookie value as ASCII String. Thus value persistent of FormComponent does not work properly when user inputChinese,Japanese... etc. Both URLEncoder or Base64 are good approach to solve such problem. I will create a RFE if it is not in 1.2.1 -- Ingram Chen Java [EMAIL PROTECTED] Institue of BioMedical Sciences Academia Sinica Taiwan blog: http://www.javaworld.com.tw/roller/page/ingramchen - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user- Take Surveys. Earn Cash. Influence the Future of ITJoin SourceForge.net's Techsay panel and you'll get the chance to share youropinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___Wicket-user mailing listWicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user-- Ingram ChenJava [EMAIL PROTECTED] Institue of BioMedical Sciences Academia Sinica Taiwanblog: http://www.javaworld.com.tw/roller/page/ingramchen - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Why resources are not cached ?
It is hard to describe my question clearly... I notice that if I use resource such as _javascript_Reference or PackageResourceReference, the browser won't cache these resources and always send request to server. My page has losts of .gif, .js, .css in package and it causes a lot of overhead. I guess there is somewhere in wicket to set header like no-cache, no-store for these resource... Is this behavior intensional ? How do I turn off this ? (It's better that I can turn off this globally) -- Ingram ChenJava [EMAIL PROTECTED]Institue of BioMedical Sciences Academia Sinica Taiwanblog: http://www.javaworld.com.tw/roller/page/ingramchen - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Why resources are not cached ?
I got the cause. I configure ssl in web.xml as: security-constraint web-resource-collection web-resource-nameWicketPage/web-resource-name url-pattern/app/*/url-pattern /web-resource-collection user-data-constraint transport-guaranteeCONFIDENTIAL/transport-guarantee /user-data-constraint /security-constraint this will cause, /app* which including /app/resources/* are all forced to go https.(the browser does not cache url via https protocol...) My requirement is all pages required high security, but .gif, .js, and .css don't. Is there any suggestion to configure SSL for all of wicket page but not including other resources ? On 7/15/06, Ingram Chen [EMAIL PROTECTED] wrote:It is hard to describe my question clearly... I notice that if I use resource such as _javascript_Reference or PackageResourceReference, the browser won't cache these resources and always send request to server. My page has losts of .gif, .js, .css in package and it causes a lot of overhead. I guess there is somewhere in wicket to set header like no-cache, no-store for these resource... Is this behavior intensional ? How do I turn off this ? (It's better that I can turn off this globally) -- Ingram ChenJava [EMAIL PROTECTED]Institue of BioMedical Sciences Academia Sinica Taiwanblog: http://www.javaworld.com.tw/roller/page/ingramchen -- Ingram ChenJava [EMAIL PROTECTED]Institue of BioMedical Sciences Academia Sinica Taiwanblog: http://www.javaworld.com.tw/roller/page/ingramchen - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] setRenderBodyOnly() not work on ListView ?
I search old mailing list and found that setRenderBodyOnly(true) on ListView can turning off produced repeat wrapper tag. But after trying, it doesn't work.Is this intended ? or I just miss something ? Thanks in advance.-- Ingram ChenJava [EMAIL PROTECTED]Institue of BioMedical Sciences Academia Sinica Taiwanblog: http://www.javaworld.com.tw/roller/page/ingramchen Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] setRenderBodyOnly() not work on ListView ?
Ouch! My bad... I think this had become a FAQ... may be let ListView.setRenderBodyOnly() throw UnsupportedOperationException(Please use ListItem instead) forbetter clarity ? On 7/7/06, Martijn Dashorst [EMAIL PROTECTED] wrote: item.setRenderBodyOnly(true)A listview doesn't have markup of its own.MartijnOn 7/7/06, Ingram Chen [EMAIL PROTECTED] wrote: I search old mailing list and found that setRenderBodyOnly(true) on ListView can turning offproduced repeat wrapper tag. But after trying, it doesn't work. Is this intended ? or I just miss something ? Thanks in advance. -- Ingram Chen Java [EMAIL PROTECTED] Institue of BioMedical Sciences Academia Sinica Taiwan blog: http://www.javaworld.com.tw/roller/page/ingramchen Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user--Download Wicket 1.2 now! Write Ajax applications without touching _javascript_!-- http://wicketframework.orgUsing Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimohttp://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___Wicket-user mailing listWicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user-- Ingram ChenJava [EMAIL PROTECTED]Institue of BioMedical Sciences Academia Sinica Taiwanblog: http://www.javaworld.com.tw/roller/page/ingramchen Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] How to customize multiple validate message in ListView ?
I have a table of data need to do form submission: Name Data === Item1 [ ] Item2 [ ] new ListView(items, items) { populateItem(ListItem item) { item.add(new Lebel(name) item.add(new RequiredTextField(data)); }} ;if I leave all data blank, I will got multiple messages with the same messages:'data' is required.'data' is required. which is useless for client It seems that RequiredValidator, NumberValidator... etcdon't allow to do things like: data.RequiredValidator= Data of ${0} is required. and produce messages as:Data of Item1 is required.Data of Item2 is required. Should I need to write my own Validator ? if so, how to do that ?Thanks.-- Ingram ChenJava [EMAIL PROTECTED]Institue of BioMedical Sciences Academia Sinica Taiwanblog: http://www.javaworld.com.tw/roller/page/ingramchen Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Is it possible to embed jsp in wicket ?
We want to merge wicket into exist struts project and there are some parts of system still requires jsp. Could I include jsp (output of jsp) in wicket page ? Any suggestion are welcome ! -- Ingram ChenJava [EMAIL PROTECTED]Institue of BioMedical Sciences Academia Sinica Taiwanblog: http://www.javaworld.com.tw/roller/page/ingramchen Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Is it possible to embed jsp in wicket ?
Thanks your suggestion, sitemesh doesn't work for us... so we need to find another solution. I had tried Include component, it includes static content of the resource. this is useful in another case. but what I looking for is including dynamic output of jsp (the jsp contains struts, acegi...etc custom tags). I think this seems require to send 2nd request to jsp and capture output of it, then merge into Wicket's response stream... or use _javascript_/ajax to update partial content of result page. err... Both are weird... On 6/29/06, Eelco Hillenius [EMAIL PROTECTED] wrote: There is the Include component, which does stuff like that in a verybasic way. There is an open issue for improving the Include component. It's been there for quite a while, but as I don't use the componentmyself (and neither is any of the core developers to my knowledge) I'dprefer for someone that actually uses it to pick it up.Maybe you can check out the component, see if it already does what you want, and if not, help us to improve it?Btw, some people suggested that sitemesh is a better way to go forthings like this. It wouldn't be my approach, but I guess it couldwork for people, though not yet perfectly judging from your email earlier this week :)Cheers,EelcoOn 6/28/06, Ingram Chen [EMAIL PROTECTED] wrote: We want to merge wicket into exist struts project and there are some parts of system still requires jsp. Could I include jsp (output of jsp) in wicket page ? Any suggestion are welcome !-- Ingram Chen Java [EMAIL PROTECTED] Institue of BioMedical Sciences Academia Sinica Taiwan blog: http://www.javaworld.com.tw/roller/page/ingramchen Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-userUsing Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user-- Ingram ChenJava [EMAIL PROTECTED]Institue of BioMedical Sciences Academia Sinica Taiwanblog: http://www.javaworld.com.tw/roller/page/ingramchen Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Is it possible to embed jsp in wicket ?
Wow! this will be great help, Could you give us a simple example ?On 6/29/06, Ittay Dror [EMAIL PROTECTED] wrote:i have done the reverse: embedding wicket in a jsp page. if that interests you, i'll be glad to help Ingram Chen wrote: We want to merge wicket into exist struts project and there are some parts of system still requires jsp. Could I include jsp (output of jsp) in wicket page ? Any suggestion are welcome ! -- Ingram Chen Java [EMAIL PROTECTED] Institue of BioMedical Sciences Academia Sinica Taiwan blog: http://www.javaworld.com.tw/roller/page/ingramchen http://www.javaworld.com.tw/roller/page/ingramchen Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user--=== Ittay Dror,Chief architect, openQRM TL,RD, Qlusters Inc.[EMAIL PROTECTED]+972-3-6081994 Fax: +972-3-6081841http://www.openQRM.org - Keeps your Data-Center Up and RunningUsing Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimohttp://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___Wicket-user mailing listWicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user-- Ingram ChenJava [EMAIL PROTECTED]Institue of BioMedical Sciences Academia Sinica Taiwanblog: http://www.javaworld.com.tw/roller/page/ingramchen Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Wicket + Sitemesh - Page truncation problem
I will post it after sourceforge allow login. On 6/29/06, Eelco Hillenius [EMAIL PROTECTED] wrote: Thanks. Would you mind attaching that to an issue on sourceforge please?Eelco On 6/27/06, Ingram Chen [EMAIL PROTECTED] wrote: Is there any progress on this issue ? I tried Wicket 1.2 + SiteMesh but still out of luck... I create a quick-start to reproduce this problem: The attachment includes (1) a small decorate page src/webapp/decorators/default .jsp, which only add one lineheader and footer. (2) Index.html includes a DefaultDataTable from wicket-extension. the reason to use DefaultDataTable is just it reproduce page truncation in our production code base. OK, When first visit http://localhost:8081/quickstart, the render is correct. But after navigate pagination link, the page just got truncated ! There are several portions of our code base still require jsp + sitemesh to work probably. I hope this issue can be solved regards ps. I only include sitemesh.jar in the attachment because size limit. the rest of missing jars are: #from Tomcat 5.5 commons-el.jar jasper-compiler-jdt.jar jasper-compiler.jar jasper-runtime.jar servlet-api.jar jsp-api.jar #from wicket wicket-1.2.jar wicket-extensions-1.2.jar #from jetty org.mortbay.jetty.jar #others commons-logging-1.0.4.jar log4j-1.2.13.jar On 11/22/05, Eelco Hillenius [EMAIL PROTECTED] wrote: In case you have a small test project or something, I would be very interested in taking a look at that and see if there's anything we need to do to make Wicket behave better with sitemesh. There has been more interest in it, so we might setup a small project for it too (wicket-stuff). Eelco On 11/21/05, John Evans [EMAIL PROTECTED] wrote: I have never used Sitemesh or Wicket on a real project, although I've played with both and they both seem to work exactly as advertised -- now I'm trying to use them both together on a real project for the first time and I'm having a problem.The problem only happens when I'm accessing a wicket-generated page that has a sitemesh decorator applied to it -- everything works fine if I turn off sitemesh or if I access a non-wicket-generated page through sitemesh.The problem is that fairly often when I access a wicket-generated page through sitemesh the output appears as if the wicket-generated page was truncated -- for example if my wicket generated page were this: body 1 2 3 4 5 /body And my decorator was: body decorator:body/ /body Then the output would be something like this: body 1 2 3 /body The sitemesh template always shows up in it's entirety, but the wicket page is cut short.If I do a refresh this will almost always fix it -- I also haven't been able to re-create the problem with one of wicket's bookmarkable pages, so it makes debugging the problem difficult. My guess is that maybe there is a problem with wicket returning the wrong content-length or something -- but it appears to generate the appropriate values when I run it outside of sitemesh. I'm going to try to get my environment set up in a debugger so that I can debug the entire application with source for wicket and sitemesh attached and see if I can track down the problem, but I thought I would post here (and to the sitemesh forums) first and see if anyone had encountered the same or similar problem and already solved it -- or if anyone has any suggestions for where to start. Thanks, - John --- This SF.Net email is sponsored by the JBoss Inc.Get Certified Today Register for a JBoss Training Course.Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_idv28alloc_id845opclick ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Ingram Chen Java [EMAIL PROTECTED] Institue of BioMedical Sciences Academia Sinica Taiwan blog: http://www.javaworld.com.tw/roller/page/ingramchen Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-userUsing Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimohttp://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___Wicket-user mailing listWicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user-- Ingram ChenJava [EMAIL
Re: [Wicket-user] export excel with full DataTable
DataTable (from repeater) doesn't has getItemsPerPage()... etc method, I try to get internal component to change paging setting:new ComponentRequestTarget(dataTable) { @Override public void respond( wicket.RequestCycle requestCycle) { DataGridView dataGridView = (DataGridView) dataTable.get(rows); final int oldRowsPerPage = dataGridView.getRowsPerPage(); dataGridView.setRowsPerPage (Integer.MAX_VALUE); super.respond(requestCycle); dataGridView.setRowsPerPage(oldRowsPerPage); }});And it finally works, thanks a lot! On 6/27/06, Igor Vaynberg [EMAIL PROTECTED] wrote: dont know if it will work, but have you tried:Link exportExcel = new Link(exportExcel) { @Override public void onClick() { getRequestCycle().setRequestTar get( new ComponentRequestTarget(dataTable)) { respond() { final int oldipp=datatable.getItemsPerPage(); datatable.setItemsPerPage (Integer.MAX_VALUE); super.respond(); datatable.setItemsPerPage(oldipp) } };WebResponse wr = (WebResponse) getResponse();wr.setContentType(application/vnd.ms-excel; charset=UTF-8); wr.setCharacterEncoding(UTF-8);wr.setHeader(content-disposition, attachment;filename=excel.xls); } } -Igor On 6/26/06, Ingram Chen [EMAIL PROTECTED] wrote: Hi, I search old discussion and find export excel can be done by: Link exportExcel = new Link(exportExcel) { @Override public void onClick() {getRequestCycle().setRequestTarget( new ComponentRequestTarget(dataTable));WebResponse wr = (WebResponse) getResponse();wr.setContentType(application/vnd.ms-excel; charset=UTF-8); wr.setCharacterEncoding(UTF-8);wr.setHeader(content-disposition, attachment;filename=excel.xls); } } This works great... but this only export paged dataTable. Is there any way to tweak dataTable so I could export full dataTable without paging ? Thanks in advance!-- Ingram ChenJava [EMAIL PROTECTED] Institue of BioMedical Sciences Academia Sinica Taiwanblog: http://www.javaworld.com.tw/roller/page/ingramchen Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimohttp://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___Wicket-user mailing listWicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___Wicket-user mailing listWicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Ingram ChenJava [EMAIL PROTECTED]Institue of BioMedical Sciences Academia Sinica Taiwanblog: http://www.javaworld.com.tw/roller/page/ingramchen Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] export excel with full DataTable
Hi, I search old discussion and find export excel can be done by: Link exportExcel = new Link(exportExcel) { @Override public void onClick() {getRequestCycle().setRequestTarget( new ComponentRequestTarget(dataTable));WebResponse wr = (WebResponse) getResponse();wr.setContentType(application/vnd.ms-excel; charset=UTF-8); wr.setCharacterEncoding(UTF-8);wr.setHeader(content-disposition, attachment;filename=excel.xls); } } This works great... but this only export paged dataTable. Is there any way to tweak dataTable so I could export full dataTable without paging ? Thanks in advance!-- Ingram ChenJava [EMAIL PROTECTED] Institue of BioMedical Sciences Academia Sinica Taiwanblog: http://www.javaworld.com.tw/roller/page/ingramchen Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] WicketTester in 1.2 causing internal error cloning object errors.
It is just a bug. Thanks a lot !On 6/23/06, Eelco Hillenius [EMAIL PROTECTED] wrote: Fixed now.EelcoOn 6/22/06, Juergen Donnerstag [EMAIL PROTECTED] wrote: I guess it is a bug. Juergen On 6/22/06, Eelco Hillenius [EMAIL PROTECTED] wrote: ITestPageSource is not serializable. If it was, you wouldn't have this problem. I don't use that part of Wicket myself, nor wrote it, so I'm not sure if that interface not being serializable is intentional. Maybe Ingram Chen can comment on that? EelcoOn 6/22/06, Gert Jan Verhoog [EMAIL PROTECTED] wrote: Juergen Donnerstag wrote:HTTP sessions and hence Wicket Pages get serialized and hence all itcomponents and variable must be serializable or transient. We enforced that policy a little bit to make sure the error are detected earlierand late when the application is deployed already. Just make sure yourcomponents and component variable implement Serializable. I am aware of that. Please look at the example code I included in my previous post. It's a trivial WebPage with a single label, and some WicketTester test code. That's all that's needed to cause the exception. This is code that I almost copied verbatim from the WicketTester api docs. There are no custom beans, so I don't see what I could make Serializable. In the actual project where I'm running into these problems, all beans are serializable or transient, and all business objects are injected with Spring proxies. (using @SpringBean annotations). The webapplication runs fine, it's *just* the WicketTester code that fails. Maybe there is a simple solution to this problem, but I'm obviously overlooking it. cheers, Gert wicket.WicketRuntimeException: Internal error cloning object. Make sureall dependent objects implement Serializable. Class: wicket.util.tester.DummyHomePage On 6/21/06, Gert Jan Verhoog [EMAIL PROTECTED] wrote: Hi list, After upgrading to Wicket 1.2, wicket tests for my project don't workanymore. Testing a page that is initialized using a custom constructor causes a WicketRuntimeException: wicket.WicketRuntimeException: Internal error cloning object. Make sureall dependent objects implement Serializable. Class: wicket.util.tester.DummyHomePageatwicket.protocol.http.HttpSessionStore.setAttribute(HttpSessionStore.java:62)[... bits of stacktrace omitted for brevity ...] Caused by: java.io.NotSerializableException: com.example.MyPageTest$1 at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1075) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1369)[... rest of stacktrace omitted for brevity ...] I created the initialized page with an anonymous ITestPageSource, as perthe WicketTester javadocs. Consider the following example code that causes the error: MyPage.html:- - - - - - - - - - - - - - - - - - - - - - - - - -html xmlns:wicket= http://wicket.sourceforge.net/headtitlebla/title/headbodyh1span wicket:id=title(title)/span/h1 /body/html- - - - - - - - - - - - - - - - - - - - - - - - - - MyPage.java:- - - - - - - - - - - - - - - - - - - - - - - - - -package com.example; import wicket.markup.html.WebPage;import wicket.markup.html.basic.Label; public class MyPage extends WebPage { public MyPage() { this(empty);} public MyPage(String title) {add(new Label(title,title)); }}- - - - - - - - - - - - - - - - - - - - - - - - - - and finally, MyPageTest.java:- - - - - - - - - - - - - - - - - - - - - - - - - -package com.example; import junit.framework.TestCase ;import wicket.Page;import wicket.util.tester.ITestPageSource;import wicket.util.tester.WicketTester; public class MyPageTest extends TestCase { public void testRenderMyPage() {WicketTester tester = new WicketTester(); // the following statement throws the exception: tester.startPage(new ITestPageSource() {public Page getTestPage() {return new MyPage(hello world);} });}}- - - - - - - - - - - - - - - - - - - - - - - - - - What's happening here? Most of my pages use custom constructors to initialize the page, and every test method that use these cause theerror. What can I do about it? cheers,Gert --Gert Jan VerhoogFunc. Internet IntegrationW http://www.func.nlT +31 30 2109750F +31 30 2109751 ___ Wicket-user mailing listWicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user ___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user -- Gert Jan Verhoog Func
Re: [Wicket-user] Seam-like solution for Wicket + EJB3?
I am not familiar with Seam... but I guess it uses stateful session beanto manage all session/transaction to support long-transaction, which named as conversational scope.The whole idea may like: Session's life cycle is the same as SFSB, and is live for multi-requests.so you won't worry about LIE. Each request will open/close physical transaction and db connection. When SFSB destroyed, session will got reclaim finally. On 6/1/06, Vincent Jenks [EMAIL PROTECTED] wrote: Yeah, that'd be quite simple for Hibernate alone where you'reutilizing the session manually...however I've never had the problemsI'm having w/ plain Hibernate due to the OpenSessionInViewpattern...which has always worked in that sense. However, that's very interestinggood approach for a long runningsession/transaction outside of EJB3.On 5/31/06, Igor Vaynberg [EMAIL PROTECTED] wrote: i would imagine if i was working with hibernate directly and wanted to achieve this i would get a session instance, and pass it around to the pages that are part of the same conversation so something like session s=getsession(); user u=getUser(s); setResponsePage(new ConfirmDeleteUserPage(u, s) and thats all there is to it, now confirmdeleteuserpage can operate on the same conversation that the page that invoked it the only trick is to diconnect and reconnect the session, but that can be done with a simple facade -Igor On 5/31/06, Vincent Jenks [EMAIL PROTECTED] wrote: Easy enough to say, however, I don't know *how* Seam does what it does - I have no idea how to implement something like this. And yes, it's a long-running transaction (I suppose?)Perhaps they're just storing the transaction in an http session so it's still relevant to the user throughout the application before it's comitted and the session is flushed. I'm not really sure... I guess that's the question then...would I have to resort to bean-managed transactions, go outside of the container, and pass the transaction around in a session until I decide to commit it?I'm afraid that's out of the question and would complex enough *not* to use EJB3 and just resort to using Wicket + Hibernate or Wicket + Hibernate + Spring. OpenSessionInView does work great, if you're using Hibernate!I'm not using Hibernate.I'm using an entirely managed environment and am not manually working w/ the session or the transaction. I'm a relative newbie to most of you, I'm sure, so hopefully someone can correct me where I'm making false assumptions. On 5/31/06, Matej Knopp [EMAIL PROTECTED] wrote: I don't know why but I just don't like the idea of long-running transactions. I think web applications are just too unpredictable to hold one transaction during multiple request. You can never be sure when (and if) the next request will come. OpenSessionInView filter has always be sufficient for me. I either load all lazyly loaded collections in advance or re-associate the object with session on every request. I don't know seam internals either, but can't see a reason why it shouldn't be possible to have long running transaction with wicket. After all, transactions are not web layers responsibility. -MAtej Vincent Jenks wrote: I'm not sure how familiar anyone here is w/ Seam and how it applies to JSF when working w/ EJB3...but I thought I'd bring this up anyhow. You'll have to forgive my ignorance as I'm not entirely clear *how* Seam works internally and haven't built a project w/ it yet...but it seems to ease the pain that Hibernate users have long experienced w/ LazyInitializationExceptions. I realize there's some sort of solition for plain 'ol Hibernate users in wicket-stuff, something about Spring?However, it's a different story when using EJB3 in the JBoss container w/ container-managed persistence. Apparently, Seam creates a long-running Hibernate session in the container that supposidly eliminates the LazyInitializationException. I've gotten quite comfortable w/ Wicket and hope to continue to use it for projects here at work...however working around lazily-loaded collections in EJB3 is becoming messy for me at times when the domain model becomes more than trivial.I have a great distaste for JSF and would rather not use it, believe me, but Seam is very compelling for large, complex projects where the LIE exception will be come much more likely. How hard would it be to implement something like Seam has to ease this problem?That is, assuming no one has come up w/ a solution yet...if there is one, please let me know! I've mentioned something like this in passing before and have gotten the usual response, which is you need to use a session-per-request pattern.The problem is; I'm using a container...I don't have control of the hibernate session, the transactions (per se), etc.In an entirely container-managed environment I don't have the options I would w/ plain Hibernate.Thanks in advance!
Re: [Wicket-user] WicketTester .properties file
You can alter locale in webSession, for example:wicketTester.getWicketSession().setLocale(new Locale(fa_IR));On 5/22/06, BramB [EMAIL PROTECTED] wrote: I'm using the getString(String key) method in a few Components, to accesslocalized Strings from the properties file.When testing the components with WicketTester, how do i point WicketTesterto the properties file i want it to use? --View this message in context: http://www.nabble.com/WicketTester+-+.properties+file-t1663331.html#a4506775Sent from the Wicket - User forum at Nabble.com.---Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimohttp://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___Wicket-user mailing listWicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user-- Ingram ChenJava [EMAIL PROTECTED]Institue of BioMedical Sciences Academia Sinica Taiwanblog: http://www.javaworld.com.tw/roller/page/ingramchen
[Wicket-user] Make WicketTester support file upload
All, I have implemented testing file upload in WicketTester/FormTester.for example:byte[] bytesOfGif = new byte[]{1,2,3,4,5} ;formTester.upload(myUploadField, bytesOfGif , myImage.gif ); formTester.submit() ;the implementation is simple and limited (not support event such as onUploadStarted... etc)If anyone interests this, I could supply a patch for 1.2 branch or truck. -- Ingram ChenJava [EMAIL PROTECTED]Institue of BioMedical Sciences Academia Sinica Taiwanblog: http://www.javaworld.com.tw/roller/page/ingramchen
[Wicket-user] Obtain httpSession in WicketSession ?
Dear all, We try to merge Wicket into a legacy servlet application which useplain HttpSession to manage loginUser or some resources. I know there is a WicketFilter to set WebSession into HttpSession,but we want to keep touch legacy code as few as possible. How do I obtain httpSession in WebSession ?Thanks in advance.-- Ingram ChenJava [EMAIL PROTECTED]Institue of BioMedical Sciences Academia Sinica Taiwanblog: http://www.javaworld.com.tw/roller/page/ingramchen
Re: [Wicket-user] Wicket 1.2-rc2 available for download
Here is FormInput example for zh_TW locale, please see attachement.And as zh_CN do, FormInputApplication.init() should add below code for font:protected void init(){//...//for zh_TW locale (Tranditional Chinese, Taiwan) Font fontTW = new Font(MingLiu, Font.BOLD, 16);DefaultButtonImageResource imgSaveTW = new DefaultButtonImageResource(\u5132\u5B58);imgSaveTW.setFont(fontTW);DefaultButtonImageResource imgResetTW = new DefaultButtonImageResource(\u91CD\u7F6E); imgResetTW.setFont(fontTW);getSharedResources().add(save, Locale.TAIWAN, imgSaveTW);getSharedResources().add(reset, Locale.TAIWAN, imgResetTW);}and in FormInput, add Locale.TAIWAN to LOCALES:private static final List LOCALES = Arrays.asList(new Locale[] { Locale.ENGLISH, new Locale(nl), Locale.GERMAN, Locale.SIMPLIFIED_CHINESE, Locale.TAIWAN });On 4/21/06, Eelco Hillenius [EMAIL PROTECTED] wrote: 3: FormInput_zh_CN.html is not completely translated to chinese. and , I don't like the current style it used to present chinese: #20351;#29992;#22320;#28857; generally, I write html file in utf8 encoding , then I can directly enter chinese , and it seems more friendly.Agreed. We didn't do that as CVS only had the choice for ASCII orbinary. I just comitted your file (reply to another thread,FormInput_zh_CN.html), which seems to work fine now. Much nicer to work like that.Eelco---Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimohttp://sel.as-us.falkag.net/sel?cmdlnkkid0709bid3057dat1642 ___Wicket-user mailing listWicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user-- Ingram ChenJava [EMAIL PROTECTED]Institue of BioMedical Sciences Academia Sinica Taiwanblog: http://www.javaworld.com.tw/roller/page/ingramchen FormInput_zh_TW.IamZip Description: Binary data
Re: [Wicket-user] proposal: internationalization project
For several *.properties or webPage, I'm ok for zh_TW (Tranditional Chinese at Taiwan)Beside Application_x.properties and wicket-examples, Is it possible including i18n for DataPicker ? I know this is not wicket's business. but it seems that jscalendar project has no activity now On 4/21/06, Eelco Hillenius [EMAIL PROTECTED] wrote: Hi all,Thanks for the recent inputs of Application_x.properties. However, Inow realize that we need more than just a one time contribution.I think internationalization is a strong point for Wicket, and we should keep pushing to make this even stronger. It's cool to see thatpeople from all over the world use it. And I was hoping to leveragethat fact.What I propose is this:We start a seperate project in wicket-stuff (http://wicket-stuff.sf.net) specifically for internationalization.This project will have:- Standard messages for validators and maybe more (some of thecommon error messages?). These messages will be in that project so that they can be easily maintained by all the committers on thatproject, and I/ other core devs of Wicket will put them in the mainwicket project regularly.- An example that shows off the languages/ variants we have. Much like FormInput in wicket-examples now, but maybe more complete andfocussed on internationalisation.For every language that will be in that project, there should be one'owner'. The owner gets commit rights on wicket-stuff in case he/she didn't already have that.Who is interested in contributing to this project? What I have in mindis pretty small/ low maintenance; besides the initial contribution ofone or two web pages and one or two properties files, there will only be a fix now and then. We would use this list or wicket-dev to discussany topics that arise when working on it.If you are interested, please reply to this email (or send me anoffline message if you prefer that). If we have enough people that want to work on this, I'll take the lead and create that project inwicket-stuff.Cheers,Eelco---Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmdlnkkid0709bid3057dat1642___Wicket-user mailing listWicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user-- Ingram ChenJava [EMAIL PROTECTED] Institue of BioMedical Sciences Academia Sinica Taiwanblog: http://www.javaworld.com.tw/roller/page/ingramchen
Re: [Wicket-user] explicitly remove page
getPageMap().remove(page) is no longer work in 1.2rc2... I do not get expired error page when I back to explicitly removed page.Is recent pageMap refactoring broken this feature ? On 1/28/06, Ingram Chen [EMAIL PROTECTED] wrote: yeh, it works now !Thanks !On 1/28/06, Igor Vaynberg [EMAIL PROTECTED] wrote: ok plugged that.-Igor On 1/27/06, Ingram Chen [EMAIL PROTECTED] wrote: I tried getPageMap().removePage(this) and found one critical problem:After I explicitly remove page, then navigate through 4~5 pages I got below exception:27-01-06 22:58:53,563 ERROR wicket.protocol.http.WebRequestCycle - java.lang.NullPointerException at wicket.PageMap.remove(PageMap.java:310) at wicket.session.pagemap.LeastRecentlyAccessedEvictionStrategy.evict(LeastRecentlyAccessedEvictionStrategy.java:83) at wicket.PageMap.put(PageMap.java:463) at wicket.Session.touch(Session.java:588) at wicket.Page.doRender(Page.java:367) at wicket.protocol.http.WebRequestCycle.redirectTo(WebRequestCycle.java:143) Can you help to check this ?On 1/27/06, Ingram Chen [EMAIL PROTECTED] wrote: I will check it when anonymous CVS ready !Thanks a lot !On 1/27/06, Igor Vaynberg [EMAIL PROTECTED] wrote:ok what i did is add PageMap.removePage(Page) which should be sufficient for your needs. you can do Session.getPageMap(name).removePage() or from within the page getPageMap().removePage(this) although i havent tried doing this one myself. let me know if it works for you. -Igor On 1/26/06, Igor Vaynberg [EMAIL PROTECTED] wrote: sounds reasonable to me. if you would like you can add an rfe for it, but i should be able to get to it tonight at some point. -Igor On 1/26/06, Ingram Chen [EMAIL PROTECTED] wrote: My usecase is to prevent the user back to the previous page to submit stale data: page A with form -- the user submits --- page B show success messageif the user navigate back to page A, and resumit page A again, he should get a expired page. On 1/27/06, Igor Vaynberg [EMAIL PROTECTED] wrote: we are not against adding that back, but we would love to hear the usecase first.the eviction strategy is much more flexible/poweful now and we were hoping it would be able to cope with most usecases. -Igor On 1/26/06, Ingram Chen [EMAIL PROTECTED] wrote: I upgrade to Latest 1.2 HEAD but found that session.remove() is removed... I used to use this method to explicitly remove page instance:getSession().remove(getPage())How do I do this now ? Any suggestion ? -- Ingram ChenJava [EMAIL PROTECTED]Institue of BioMedical Sciences Academia Sinica Taiwanblog: http://www.javaworld.com.tw/roller/page/ingramchen -- Ingram ChenJava [EMAIL PROTECTED]Institue of BioMedical Sciences Academia Sinica Taiwanblog: http://www.javaworld.com.tw/roller/page/ingramchen -- Ingram ChenJava [EMAIL PROTECTED]Institue of BioMedical Sciences Academia Sinica Taiwanblog: http://www.javaworld.com.tw/roller/page/ingramchen -- Ingram ChenJava [EMAIL PROTECTED]Institue of BioMedical Sciences Academia Sinica Taiwanblog: http://www.javaworld.com.tw/roller/page/ingramchen -- Ingram ChenJava [EMAIL PROTECTED]Institue of BioMedical Sciences Academia Sinica Taiwanblog: http://www.javaworld.com.tw/roller/page/ingramchen -- Ingram ChenJava [EMAIL PROTECTED]Institue of BioMedical Sciences Academia Sinica Taiwanblog: http://www.javaworld.com.tw/roller/page/ingramchen
Re: [Wicket-user] explicitly remove page
Strange... I could not reproduce this problem in QuickStart.anyway, I will continue investigating what's going on and file a bug reportif I can build a reproduceable case.thanks On 4/21/06, Johan Compagner [EMAIL PROTECTED] wrote: no that call will still remove the page from the session and delete all entries out of the pagemap stack.Please add a bug report for this with a reproduceable case. johan On 4/21/06, Ingram Chen [EMAIL PROTECTED] wrote: getPageMap().remove(page) is no longer work in 1.2rc2... I do not get expired error page when I back to explicitly removed page.Is recent pageMap refactoring broken this feature ? On 1/28/06, Ingram Chen [EMAIL PROTECTED] wrote: yeh, it works now !Thanks !On 1/28/06, Igor Vaynberg [EMAIL PROTECTED] wrote: ok plugged that.-Igor On 1/27/06, Ingram Chen [EMAIL PROTECTED] wrote: I tried getPageMap().removePage(this) and found one critical problem:After I explicitly remove page, then navigate through 4~5 pages I got below exception:27-01-06 22:58:53,563 ERROR wicket.protocol.http.WebRequestCycle - java.lang.NullPointerException at wicket.PageMap.remove(PageMap.java:310) at wicket.session.pagemap.LeastRecentlyAccessedEvictionStrategy.evict(LeastRecentlyAccessedEvictionStrategy.java:83) at wicket.PageMap.put(PageMap.java:463) at wicket.Session.touch(Session.java:588) at wicket.Page.doRender(Page.java:367) at wicket.protocol.http.WebRequestCycle.redirectTo(WebRequestCycle.java:143) Can you help to check this ?On 1/27/06, Ingram Chen [EMAIL PROTECTED] wrote: I will check it when anonymous CVS ready !Thanks a lot !On 1/27/06, Igor Vaynberg [EMAIL PROTECTED] wrote:ok what i did is add PageMap.removePage(Page) which should be sufficient for your needs. you can do Session.getPageMap(name).removePage() or from within the page getPageMap().removePage(this) although i havent tried doing this one myself. let me know if it works for you. -Igor On 1/26/06, Igor Vaynberg [EMAIL PROTECTED] wrote: sounds reasonable to me. if you would like you can add an rfe for it, but i should be able to get to it tonight at some point. -Igor On 1/26/06, Ingram Chen [EMAIL PROTECTED] wrote: My usecase is to prevent the user back to the previous page to submit stale data: page A with form -- the user submits --- page B show success messageif the user navigate back to page A, and resumit page A again, he should get a expired page. On 1/27/06, Igor Vaynberg [EMAIL PROTECTED] wrote: we are not against adding that back, but we would love to hear the usecase first.the eviction strategy is much more flexible/poweful now and we were hoping it would be able to cope with most usecases. -Igor On 1/26/06, Ingram Chen [EMAIL PROTECTED] wrote: I upgrade to Latest 1.2 HEAD but found that session.remove() is removed... I used to use this method to explicitly remove page instance:getSession().remove(getPage())How do I do this now ? Any suggestion ? -- Ingram ChenJava [EMAIL PROTECTED]Institue of BioMedical Sciences Academia Sinica Taiwanblog: http://www.javaworld.com.tw/roller/page/ingramchen -- Ingram ChenJava [EMAIL PROTECTED]Institue of BioMedical Sciences Academia Sinica Taiwanblog: http://www.javaworld.com.tw/roller/page/ingramchen -- Ingram ChenJava [EMAIL PROTECTED]Institue of BioMedical Sciences Academia Sinica Taiwanblog: http://www.javaworld.com.tw/roller/page/ingramchen -- Ingram ChenJava [EMAIL PROTECTED]Institue of BioMedical Sciences Academia Sinica Taiwanblog: http://www.javaworld.com.tw/roller/page/ingramchen -- Ingram ChenJava [EMAIL PROTECTED]Institue of BioMedical Sciences Academia Sinica Taiwanblog: http://www.javaworld.com.tw/roller/page/ingramchen -- Ingram ChenJava [EMAIL PROTECTED]Institue of BioMedical Sciences Academia Sinica Taiwanblog: http://www.javaworld.com.tw/roller/page/ingramchen -- Ingram ChenJava [EMAIL PROTECTED]Institue of BioMedical Sciences Academia Sinica Taiwanblog: http://www.javaworld.com.tw/roller/page/ingramchen
[Wicket-user] Some concern about default Application.properties message
I have some concern about ${input} in Applicaiton_*.properties, for example: StringValidator.maximum='${input}' must be at most ${maximum} chars. Why we use ${input} instead of ${label} here? If I limit maximum of chars as 200 and the user input 201 chars. He/she will get a huge long error message! case 2: for password field, I will get message like: 'mySecretPassword' must be at most 12 chars. which make password visible! case 3: If I have two Date TextField, one is for startDate, the other is for endDate. Both fields are constraint by DateValidator.maximum. If the user input both fields as '2005/02/05'. He will get message: '2005/02/05' must be smaller than 2004/01/01. but he/she has no idea which field is wrong! Is there any reason why we prefer ${input} over ${label} ? -- Ingram ChenJava [EMAIL PROTECTED]Institue of BioMedical Sciences Academia Sinica Taiwanblog: http://www.javaworld.com.tw/roller/page/ingramchen
Re: [Wicket-user] Bug: Message from EmailAddressPatternValidator not displayed correctly
Is this being fixed ? This is still incorrect in rc2.On 4/20/06, Rüdiger Schulz [EMAIL PROTECTED] wrote: Juergen Donnerstag wrote on 19.04.2006 at 18:05: Where does the a come from? this is what I entered in the textfield.--greetings from Berlin,Rüdiger Schulz Juergen On 4/19/06, Rüdiger Schulz [EMAIL PROTECTED] wrote: Hello list, in a form I have a TextField for an email, simply like this: final TextField email = new TextField(email); email.add (EmailAddressPatternValidator.getInstance()); add(email); In the properties for the enclosing page, I defined a message for invalid emails: editForm.email.EmailAddressPatternValidator This worked well before upgrading from 1.1.1 to 1.2rc1. Other messages in this properties file for other form components still do. Now I get the message 'a' does not match pattern '[EMAIL PROTECTED]'. I'd say several thing go wrong here: * My custom message gets ignored. * Instead of the default message for EmailAddressPatternValidator, the one for PatternValidator is displayed. * The message for PatternValidator does not display the pattern itself, but its class and adress. Another thing is, although I set another Locale in my application's init(), the english default error is displayed (and I see a german file in the wicket jar). I set the Locale like this: getApplicationSettings().setDefaultLocale(Locale.GERMAN); (I also tried Locale.GERMANY) -- greetings from Berlin, Rüdiger Schulz --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmdlnkkid0709bid3057dat1642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmdlnkkid0709bid3057dat1642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user ---Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimohttp://sel.as-us.falkag.net/sel?cmdlnkkid0709bid3057dat1642 ___Wicket-user mailing listWicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user-- Ingram ChenJava [EMAIL PROTECTED]Institue of BioMedical Sciences Academia Sinica Taiwanblog: http://www.javaworld.com.tw/roller/page/ingramchen
Re: [Wicket-user] Some concern about default Application.properties message
hmm In my case I always specify label because (1) RequireValidator use it and lots of fields I used is required.(2) For locale reason, we must provide chinese label for each field, even for fields with obvious name like 'date' or 'address'...etc. well, maybe it's just me...If we keep using ${input}, I wish that StringValidator can mask input of PasswordFieldand support truncating long ${input}. (but it should be configurable, 50 chars is still too long for easten language like Chinese!)On 4/20/06, Johan Compagner [EMAIL PROTECTED] wrote: but if we don't use input but label everywhere by default then a label must be really specified Because i really don't know when i get 'myTextField' must be at most 12 charsor'datefieldX' smaller than 2004/01/01.What is myTextfield or datefieldX. Is it always one on one or is the Label model always specified?Input i get. That is on the page i see what input i typed wrong. And with that date i see immediantly both values compare to each other.That password thing is wrong for EqualsInputFormValidator we made a special case yesterday.But we could improve it somehow. johan On 4/20/06, Ingram Chen [EMAIL PROTECTED] wrote: I have some concern about ${input} in Applicaiton_*.properties, for example: StringValidator.maximum='${input}' must be at most ${maximum} chars. Why we use ${input} instead of ${label} here? If I limit maximum of chars as 200 and the user input 201 chars. He/she will get a huge long error message! case 2: for password field, I will get message like: 'mySecretPassword' must be at most 12 chars. which make password visible! case 3: If I have two Date TextField, one is for startDate, the other is for endDate. Both fields are constraint by DateValidator.maximum. If the user input both fields as '2005/02/05'. He will get message: '2005/02/05' must be smaller than 2004/01/01. but he/she has no idea which field is wrong! Is there any reason why we prefer ${input} over ${label} ? -- Ingram ChenJava [EMAIL PROTECTED]Institue of BioMedical Sciences Academia Sinica Taiwanblog: http://www.javaworld.com.tw/roller/page/ingramchen -- Ingram ChenJava [EMAIL PROTECTED]Institue of BioMedical Sciences Academia Sinica Taiwanblog: http://www.javaworld.com.tw/roller/page/ingramchen
[Wicket-user] Re: Some concern about default Application.properties message
Another concern is about PatternValidator:'${input}' does not match pattern '${pattern}'This will leak regular _expression_ to end user accidently. It just like to tell end user: Hey! That's my validation rule, welcome to lie it or hack it! May be we should introduce ${patternLabel}...-- Ingram ChenJava [EMAIL PROTECTED]Institue of BioMedical Sciences Academia Sinica Taiwanblog: http://www.javaworld.com.tw/roller/page/ingramchen
Re: [Wicket-user] call for i18n contributions
An updated version for zh_TW (including EqualPasswordInputValidator)On 4/17/06, Eelco Hillenius [EMAIL PROTECTED] wrote:Hi all,As you might have noticed, we implemented some default validator messages (Application.properties). We currently have that in languagesEnglish (default), Chinese (zh_TW), German (de) and Dutch (nl).It would be great if your language is not in that list, you couldcontribute it. At the end of this email, Iincluded the English contents. Please contribute by either responding to this email, or -the preferred way - to add your file to http://sourceforge.net/tracker/index.php?func=detailaid=1471603group_id=119783atid=684977Thanks!EelcoRequiredValidator=field '${label}' is required.TypeValidator='${input}' is not a valid ${type}. NumberValidator.range=${input} must be between ${minimum} and ${maximum}.NumberValidator.minimum='${input}' must be greater than ${minimum}.NumberValidator.maximum='${input}' must be smaller than ${maximum}. StringValidator.range='${input}' must be between ${minimum} and${maximum} chars.StringValidator.minimum='${input}' must be at least ${mimimum} chars.StringValidator.maximum='${input}' must be at most ${maximum} chars. DateValidator.range='${input}' must be between ${minimum} and ${maximum}.DateValidator.minimum='${input}' must be greater than ${minimum}.DateValidator.maximum='${input}' must be smaller than ${maximum}. PatternValidator='${input}' does not match pattern '${pattern}'EmailAddressPatternValidator='${input}' is not a valid email address.EqualInputValidator='${input0}' from ${label0} and '${input1}' from${label1} must be equal. null=Choose OnenullValid=---This SF.Net email is sponsored by xPML, a groundbreaking scripting languagethat extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory!http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642 ___Wicket-user mailing listWicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user-- Ingram ChenJava [EMAIL PROTECTED]Institue of BioMedical Sciences Academia Sinica Taiwanblog: http://www.javaworld.com.tw/roller/page/ingramchen Application_zh_TW.properties Description: Binary data
Re: [Wicket-user] WebPage generated script problem
Wow, so fast! I will try it after rc1 out. Thanks a lot.On 4/17/06, Eelco Hillenius [EMAIL PROTECTED] wrote:Done. It's setting automaticMultiWindowSupport.Eelco On 4/16/06, Eelco Hillenius [EMAIL PROTECTED] wrote: That code is for automatically opening new page maps when new windows are opened (e.g. when doing ctrl+click or ctrl+n in IE). That code had some problems though, and we rewrote it using cookies when they are available, using the history trick as a last fall back. There was a thread about this earlier this week btw. I agree, any checking like this should be a configuration option. I'll build that in now. Eelco On 4/16/06, Ingram Chen [EMAIL PROTECTED] wrote: The WebPage from latest beta generate some _javascript_: if((history.length == 0 document.all) || (history.length == 1 !document.all)) I am not sure what this for but while in testing we may dump whole page source and preview it in browser. This script always do redirect because there is no history for such standalone page. Is it possible to turn it off via PageSetting ? or at least it can be turned off in MockWebApplication. -- Ingram Chen Java [EMAIL PROTECTED] Institue of BioMedical Sciences Academia Sinica Taiwan blog: http://www.javaworld.com.tw/roller/page/ingramchen---This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcastand join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642___Wicket-user mailing listWicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user-- Ingram ChenJava [EMAIL PROTECTED] Institue of BioMedical Sciences Academia Sinica Taiwanblog: http://www.javaworld.com.tw/roller/page/ingramchen
[Wicket-user] Serializable issue in DefaultDataTable
DefaultDataTable in wicket-extension relies on a component OrderByLink to sort:public class OrderByLink extends Link { /** locator for sort state object */ private ISortStateLocator stateLocator; .}However, DefaultDataTable uses SortableDataProvider as ISortStateLocator. By this, DataProvider will be serialized too. Is this a bug or do I miss something ?regards.-- Ingram Chen Java [EMAIL PROTECTED]Institue of BioMedical Sciences Academia Sinica Taiwanblog: http://www.javaworld.com.tw/roller/page/ingramchen
Re: [Wicket-user] Serializable issue in DefaultDataTable
hm... seems unavoidable. So maybe we can(1) make ISortStateLocator extends Serializable(2) warn the user that SortableDataProvider will be serialized and do not reference any system facility like DAO inside it. or(2) split ISortStateLocator part of SortableDataProvider and use delegate:public abstract class SortableDataProvider implements IDataProvider { private transient ISortStateLocator internalSortStateLocator = new SortStateLocator(); // for DefaultDataTable public final ISortStateLocator getSortStateLocator() {.}; //delegate public SortParam getSort() { internalSortStateLocator.getSort(); } //rest of delegate } On 4/16/06, Johan Compagner [EMAIL PROTECTED] wrote:but that is state that needs to be there after the link is deserialized Where must i come from if it where transient?johan On 4/16/06, Ingram Chen [EMAIL PROTECTED] wrote: DefaultDataTable in wicket-extension relies on a component OrderByLink to sort:public class OrderByLink extends Link { /** locator for sort state object */ private ISortStateLocator stateLocator; .}However, DefaultDataTable uses SortableDataProvider as ISortStateLocator. By this, DataProvider will be serialized too. Is this a bug or do I miss something ?regards. -- Ingram Chen Java [EMAIL PROTECTED]Institue of BioMedical Sciences Academia Sinica Taiwanblog: http://www.javaworld.com.tw/roller/page/ingramchen -- Ingram ChenJava [EMAIL PROTECTED]Institue of BioMedical Sciences Academia Sinica Taiwanblog: http://www.javaworld.com.tw/roller/page/ingramchen
Re: [Wicket-user] Possible Enhancement for FormTester
Here you are. The attachment contains a patch to FormTester.java and related TestCase.Beside select() method, my patch of FormTester also contains some minor things:(1) change scope constructor of FormTester from default to protected for better extensibility. (2) fix bugs about fillBlankString in constructor and add a method submit(buttonPath) for the issue discuss on http://sourceforge.net/mailarchive/forum.php?thread_id=10171730forum_id=42411 Hope these can be incorporated into next release too.On 4/14/06, Juergen Donnerstag [EMAIL PROTECTED] wrote:sure, everything that makes life easier and doesn't break existing code is welcome. Send it to me.JuergenOn 4/14/06, Ingram Chen [EMAIL PROTECTED] wrote: Currently FormTester only does raw String on request parameters. As http://www.wicket-wiki.org.uk/wiki/index.php/Testing states, selecting value from Component such as RadioGroup, DropDownChoice... etc is pain: form.setValue(offSiteAccessEnabled, 0:form:offSiteAccessEnabled:Yes); In my team we define a new method like: select(String path, final int index) This simplified selection to just an index. The method supports built-in component: AbstractChoice, RadioGroup, and CheckGroup but the implementation rely on reflection heavily. Further, it may require addtional methods such as:selectMulti(String path, final int[] indexes)//for ListMultiChoice and CheckGroup Though I'm not sure that just invoking select() multiple times is better. I could donate the code if anyone interests this improvement. -- Ingram Chen Java [EMAIL PROTECTED] Institue of BioMedical Sciences Academia Sinica Taiwan blog: http://www.javaworld.com.tw/roller/page/ingramchen---This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcastand join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642___Wicket-user mailing listWicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user-- Ingram ChenJava [EMAIL PROTECTED] Institue of BioMedical Sciences Academia Sinica Taiwanblog: http://www.javaworld.com.tw/roller/page/ingramchen FormTester.iAmZip Description: Binary data
Re: [Wicket-user] FormTester and multiple submits
Yes, this is bug/limitation, a better implementation may be: FormTester(final String path, final Form workingForm, final WicketTester wicketTester, boolean fillBlankString){ // workingForm.visitFormComponents(new FormComponent.IVisitor() { public void formComponent(FormComponent formComponent) { // donothing for invisible component if (!formComponent.isVisibleInHierarchy()) { return; } // not require gahter button value if (formComponent instanceof Button) { return; } // if component is text field and do not have exist value, fill // blank String if required if (formComponent instanceof AbstractTextComponent) { if ( Strings.isEmpty(formComponent.getValue()) fillBlankString) { tester.getServletRequest().setParameter( formComponent.getInputName (), ); return; } } } });FormTester should populate blank String only for visible, non-button and TextComponent. And if AbstractTextComponent already contains value, it should not overwrite as blank String too.On 4/14/06, Gustavo Hexsel [EMAIL PROTECTED] wrote:I think I've found a bug in FormTester.Or maybe just a limitation.When submitting a form you have no way of specifying the button that was actually clicked.All buttons are marked as pressed, so the form visitor just finds the first one and marks it as the sender.My suggestion is that FormTester shouldn't add a marker string to buttons, and a new submit(buttonName) method should be created.I'd submit a formal patch, but I've never used 'patch' and the long weekend starts in an hour :) Here's the changes I'm proposing:FormTester(final String path, final Form workingForm, final WicketTester wicketTester, boolean fillBlankString){this.path = path; this.workingForm = workingForm;this.wicketTester = wicketTester;this.wicketTester.setupRequestAndResponse();if (fillBlankString){ workingForm.visitFormComponents(new FormComponent.IVisitor(){public void formComponent(FormComponent formComponent){if ( formComponent.isEnabled() !(formComponent instanceof Button)) { // JUST ADDED THE SECOND PARTsetValue(formComponent.getInputName(), );} }});}} And the new submit method (keep the old one!):public void submit(String submitButtonPath) {checkClosed(); try {wicketTester.getServletRequest().setParameter(submitButtonPath, marker);wicketTester.getServletRequest().setRequestToComponent(workingForm); wicketTester.processRequestCycle();} finally {closed = true;}}Seems to have worked for my test cases. []s Gus---This SF.Net email is sponsored by xPML, a groundbreaking scripting languagethat extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory!http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642 ___Wicket-user mailing listWicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user-- Ingram ChenJava [EMAIL PROTECTED]Institue of BioMedical Sciences Academia Sinica Taiwanblog: http://www.javaworld.com.tw/roller/page/ingramchen
[Wicket-user] Possible Enhancement for FormTester
Currently FormTester only does raw String on request parameters.As http://www.wicket-wiki.org.uk/wiki/index.php/Testing states, selecting value from Component such as RadioGroup, DropDownChoice... etc is pain: form.setValue(offSiteAccessEnabled, 0:form:offSiteAccessEnabled:Yes);In my team we define a new method like: select(String path, final int index) This simplified selection to just an index. The method supports built-in component: AbstractChoice, RadioGroup, and CheckGroup but the implementation rely on reflection heavily.Further, it may require addtional methods such as: selectMulti(String path, final int[] indexes) //for ListMultiChoice and CheckGroupThough I'm not sure that just invoking select() multiple times is better.I could donate the code if anyone interests this improvement. -- Ingram ChenJava [EMAIL PROTECTED]Institue of BioMedical Sciences Academia Sinica Taiwanblog: http://www.javaworld.com.tw/roller/page/ingramchen
[Wicket-user] Any Wicket presentation material ?
Hi, all Our team decides to start to adopt Wicket next month. And I am reponsible for introducing and training. Are there any exist materials or slices for reference ? There is a pdf in JavaPolis but unfortunately it is broken... I highly appreciate any help, thanks.-- Ingram ChenJava [EMAIL PROTECTED]Institue of BioMedical Sciences Academia Sinica Taiwan blog: http://www.javaworld.com.tw/roller/page/ingramchen