Wicket page test

2012-10-22 Thread Arunachalam Sibisakkaravarthi
Hai, Here we are using wicket 1.5.7. We have a simple test for each wicket page to assert rendering like this: WicketTester.assertRenderedPage(Page.class); In our module we have 52 tests w.r.t wicket pages. It takes so long to run these tests. Please give suggestion to improve test

Re: Wicket page test

2012-10-22 Thread Martin Grigorov
Hi, Do you call wicketTester.destroy() at the end of your tests ? On Mon, Oct 22, 2012 at 9:10 AM, Arunachalam Sibisakkaravarthi arunacha...@mcruncher.com wrote: Hai, Here we are using wicket 1.5.7. We have a simple test for each wicket page to assert rendering like this:

Re: Wicket page test

2012-10-22 Thread Arunachalam Sibisakkaravarthi
No, We don't call wicketTester.destroy() at the end of tests. On Mon, Oct 22, 2012 at 5:01 PM, Martin Grigorov mgrigo...@apache.orgwrote: Hi, Do you call wicketTester.destroy() at the end of your tests ? On Mon, Oct 22, 2012 at 9:10 AM, Arunachalam Sibisakkaravarthi

Re: JSON response in wicket = 6.0.0

2012-10-22 Thread Martin Grigorov
Hi, On Sun, Oct 21, 2012 at 11:54 AM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Hi, On Sun, Oct 21, 2012 at 10:57 AM, Gonzalo Aguilar Delgado gagui...@aguilardelgado.com wrote: Hello Ernesto, I sometimes get confused myself. ;-) I think that I don't understand well this piece

Re: Which Twitter Bootstrap to use?

2012-10-22 Thread Martijn Dashorst
The core Wicket Bootstrap currently just provides the bootstrap artifacts. And for the foreseeable future, I don't expect it to go beyond that too much. I still am on the fence on: - whether a Bootstrap component library should be part of Wicket - whether l0rdn1kk0n's implementation is the way

Re: Wicket page test

2012-10-22 Thread Martin Grigorov
Call it and try again. On Mon, Oct 22, 2012 at 11:45 AM, Arunachalam Sibisakkaravarthi arunacha...@mcruncher.com wrote: No, We don't call wicketTester.destroy() at the end of tests. On Mon, Oct 22, 2012 at 5:01 PM, Martin Grigorov mgrigo...@apache.orgwrote: Hi, Do you call

Re: Migration from 1.5.8 to 6.1

2012-10-22 Thread Marco Di Sabatino Di Diodoro
Hi, I implemented following your suggestions. Currently, the list item is deleted if I press ok or cancel in the dialog. item.add(new AjaxDecoratedCheckbox(toRemove, new ModelBoolean(Boolean.FALSE)) { private static final long serialVersionUID =

Re: JSON response in wicket = 6.0.0

2012-10-22 Thread Ernesto Reinaldo Barreiro
Hi Martin, Thanks for the clarification. AJAX requests are handled int two steps (please Martin and/or other core developers correct me if I'm saying something wrong;-). First is is Actually everything is in two steps, not only Ajax. The first step is the ACTION phase and the second is

RE: Which Twitter Bootstrap to use?

2012-10-22 Thread Chris Colman
Ok, thanks for that summary. On another note: Is there a correct pronunciation of l0rdn1kk0n? If so, what is it? =] -Original Message- From: Martijn Dashorst [mailto:martijn.dasho...@gmail.com] Sent: Monday, 22 October 2012 9:00 PM To: users@wicket.apache.org Subject: Re: Which Twitter

Re: Load table rows lazy when click browser scrollbar

2012-10-22 Thread steven.li
I have run the demo application, found that, the Scroll on Page link only show 13 rows result without go to next page when i pull down the page scroll bar. I test it on IE8. do you have the same issue ? Thanks. - Steven Li Skyworthglobal www.skyworthglobal.com -- View this message in

Re: Which Twitter Bootstrap to use?

2012-10-22 Thread S├ębastien Gautrin
It's just some classic use of numbers instead of vowels. Read it as you'd read Lord Nikkon (if I'm not mistaken, it's a reference to the 1995 movie, Hackers) Original Message Subject: Re: Which Twitter Bootstrap to use? From: Chris Colman chr...@stepaheadsoftware.com To:

Re: Migration from 1.5.8 to 6.1

2012-10-22 Thread vineet semwal
i can't reproduce your problem,on clicking cancel ,the precondition should fail ie. return false which is what the code is doing,what browser are you using? i tested it on chrome/firefox On Mon, Oct 22, 2012 at 3:33 PM, Marco Di Sabatino Di Diodoro marco.disabat...@tirasa.net wrote: Hi, I

Re: modal window before submitting ajax-less form

2012-10-22 Thread lukuperman
We are using 1.4.15 for now. Lucas Kuperman -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/modal-window-before-submitting-ajax-less-form-tp4653108p4653196.html Sent from the Users forum mailing list archive at Nabble.com.

Re: Migration from 1.5.8 to 6.1

2012-10-22 Thread Marco Di Sabatino Di Diodoro
I tested with chrome and firefox. The method onUpdate is invoked always and the item is removed. On Oct 22, 2012, at 12:34 PM, vineet semwal wrote: i can't reproduce your problem,on clicking cancel ,the precondition should fail ie. return false which is what the code is doing,what browser

Re: Load table rows lazy when click browser scrollbar

2012-10-22 Thread vineet semwal
hi, i tested successfully on chrome/firefox , i don't have IE8 on my system so didn't test,might be a bug in IE8,it might work in IE9 .. but i will improve it later today so that it will work on IE8 too.. On Mon, Oct 22, 2012 at 3:51 PM, steven.li steven...@skyworthglobal.com wrote: I have run

Re: Wicket 6 trees

2012-10-22 Thread PDiefent
Hi, this helped a lot. But I'm struggling with the link component of the node. If I'm using a StyledLinkLabel inside the newContentComponent method I get a link for the textual part of the node but there is no icon for toggling the subtree. Do you have a hint for me to solve this problem. Thanks a

something similar with setOutputMarkupContainerClassName

2012-10-22 Thread Decebal Suiu
Hi I want to implement something like setOutputMarkupContainerClassName but more dynamic (not a simple flag in IDebugSettings and not a hard-coded html comment). My situation is that I want to offer an application as a service. In my application, in design mode (an url parameter in request), I

Re: something similar with setOutputMarkupContainerClassName

2012-10-22 Thread Martin Grigorov
Hi, You can use a Behavior#beforeRender() for that. See how org.apache.wicket.devutils.inspector.RenderPerformanceListener works. On Mon, Oct 22, 2012 at 4:04 PM, Decebal Suiu decebal.s...@asf.ro wrote: Hi I want to implement something like setOutputMarkupContainerClassName but more dynamic

Re: Migration from 1.5.8 to 6.1

2012-10-22 Thread vineet semwal
i can't reproduce your problem and i can't guess too, attach a quickstart that demonstrates your problem .. On Mon, Oct 22, 2012 at 4:12 PM, Marco Di Sabatino Di Diodoro marco.disabat...@tirasa.net wrote: I tested with chrome and firefox. The method onUpdate is invoked always and the item is

Re: something similar with setOutputMarkupContainerClassName

2012-10-22 Thread Decebal Suiu
Thanks Martin for response. I implemented an DesignModeListener that implements IComponentInstantiationListener. The main problem is that my comment is placed before the container markup tag. Example: div id=container div id=header ... /div

Re: something similar with setOutputMarkupContainerClassName

2012-10-22 Thread Martin Grigorov
Show us your code please. How do you use it ? On Mon, Oct 22, 2012 at 5:17 PM, Decebal Suiu decebal.s...@asf.ro wrote: Thanks Martin for response. I implemented an DesignModeListener that implements IComponentInstantiationListener. The main problem is that my comment is placed before the

Re: Migration from 1.5.8 to 6.1

2012-10-22 Thread Marco Di Sabatino Di Diodoro
Thanks for your help. The problem was into AjaxDecoratedCheckBox. M On Oct 22, 2012, at 3:57 PM, vineet semwal wrote: i can't reproduce your problem and i can't guess too, attach a quickstart that demonstrates your problem .. On Mon, Oct 22, 2012 at 4:12 PM, Marco Di Sabatino Di Diodoro

(String)RessourceModel and Location of resources in the *.props files

2012-10-22 Thread Dmitriy Neretin
Hello everybody, I have a little problem. I use in my webpages ressource models. For example: public class MyPage{ ... add(new Label(id, new ResourceModel(myResourceKey)); ... I also have a MyPage.properties where I placed following String: myResourceKey=Hello World!

Re: (String)RessourceModel and Location of resources in the *.props files

2012-10-22 Thread Martin Grigorov
Hi, This should work. Make sure MyPage.properties goes next to .class after compiling. On Mon, Oct 22, 2012 at 6:35 PM, Dmitriy Neretin dmitriy.nere...@googlemail.com wrote: Hello everybody, I have a little problem. I use in my webpages ressource models. For example: public class MyPage{

Re: Upgrade Advice

2012-10-22 Thread Jered Myers
Thanks! That is what I needed to know. On 10/20/2012 06:10 AM, Sebastien wrote: +1, perfectly explained IMHO. Migrating from 1.4 to 6 directly is much more complicated than performing the migration in 2 steps and much more error prone. On Sat, Oct 20, 2012 at 2:55 PM, Chris Colman

Re: image folder causes ClassNotFoundException

2012-10-22 Thread suomick88
I have exactly the same problem. This is the stack trace: java.lang.ClassNotFoundException: images at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1701) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1546)

Re: Custom CSS for Feedback message is broken in 1.5

2012-10-22 Thread Sven Meier
Please open a Jira issue and provide a patch as you suggested. Thanks Sven On 10/21/2012 01:06 AM, Sebastien wrote: Sven, If you agree to have two methods: getListCSSClass and getLabelCSSClass (which apply respectively on li and span), and mark getCSSClass as deprecated (until marked as

Re: Wicket 6 trees

2012-10-22 Thread Sven Meier
Are you sure you've overriden #newContentComponent() ? The component returned by #newNodeComponent() renders the toggle link and uses #newContentComponent() to represent the actual content of the node. Sven On 10/22/2012 02:57 PM, PDiefent wrote: Hi, this helped a lot. But I'm struggling

Re: [DISCUSS] Security Frameworks

2012-10-22 Thread Erik van Oosten
[ X ] I use my own custom framework [ X ] I use Shiro For my current Wicket project we started out with Shiro as it promised to be easy to use. However, even though Shiro is feature rich, it still lacks the feature we needed to make it secure (1) and stable (2). We ended up using Shiro as

Re: Custom CSS for Feedback message is broken in 1.5

2012-10-22 Thread Sebastien
Done, https://issues.apache.org/jira/browse/WICKET-4831 Please let me know if your encounter any issue (wrong base code for instance) or if you have any questions... Thanks, Sebastien. On Mon, Oct 22, 2012 at 8:06 PM, Sven Meier s...@meiers.net wrote: Please open a Jira issue and provide a

Re: modal window before submitting ajax-less form

2012-10-22 Thread lukuperman
Thanks Eduardo! I managed to get the modal shown, following your hint. But taking a closer look, I realize I have new challenges to solve: - currently (and I believe I saw it in wicket 6 also) the getWindowOpenJavascript() script generates a new div element in the DOM, with a form inside, when it

Using Autocomplete with a

2012-10-22 Thread Gaetan Zoritchak
Hi, I want to have a behavior similar to AutoCompleteTextField but without the conversion. That's my use case: - the user has to select a customer in a field, - he starts to type some characters, - the list shows some possibilities based on a database request using the first and last names, the

Re: Load table rows lazy when click browser scrollbar

2012-10-22 Thread vineet semwal
i have fixed that and tested it in IE8,firefox,chrome,i have created a new tag 1.5.8.2 for this.you can download it from the below link https://github.com/vineetsemwal/quickview/tags On Mon, Oct 22, 2012 at 5:39 PM, vineet semwal vineetsemwa...@gmail.com wrote: hi, i tested successfully on

Re: modal window before submitting ajax-less form

2012-10-22 Thread lukuperman
Trying client-side now. In the meantime, for clarity: I need a form with checkboxes and a dropdown be submitted. The sequence should be: 1) select desired checkboxes in the page, 2) click a button and show a modal window with the dropdown, 3) select the option from the dropdown, 4) click an

Re: [DISCUSS] Security Frameworks

2012-10-22 Thread Leonardo D'Alimonte
[x] I use WASP/Swarm Since we started our project we adopted Swarm as our security framework and for several reasons we didn't scout other possibilities to secure our pages. By the way our experience with Swarm is pretty good, we don't need any changes in our dependencies... -- View this

RE: Appending to CSS url to prevent caching.

2012-10-22 Thread dickster
followup just so in case someone else might find this useful. the wicket, out of the box css url handling works for resources in the classpath. it will not work for stuff you might have tucked away in the webapp directory which was my case. for those cases i added a custom header response

Can't post variables to a wicket page

2012-10-22 Thread Douglas Ferguson
I'm trying to support both get and post to a wicket page. When I do a post, the containterRequest object is reporting it as a GET and I can't seem to find my post variables. What am I missing? --- Douglas W. Ferguson Software Development Manager Escalation Point, Inc.

WiQuery 6.0

2012-10-22 Thread Nick Pratt
I added an AutocompleteAjaxComponent to a Form on a Page. While the component renders, Im not seeing any of the associated WiQuery JS bindings in the rendered page (so my getValues() method never gets invoked) - I copied the example code from the WiQuery-examples project, and that sample has the

Re: WiQuery 6.0

2012-10-22 Thread Nick Pratt
I do see the imports of jquery and jquery.ui.autocomplete (which I checked are available and served by the web server) - there's just no wiquery-gen-uniqueid script in the page On Mon, Oct 22, 2012 at 7:24 PM, Nick Pratt nbpr...@gmail.com wrote: I added an AutocompleteAjaxComponent to a Form on

Patch provided for WICKET-4829

2012-10-22 Thread Chris Colman
I have found the cause of issue 4829 and provided a patch for this issue in the JIRA comments here: https://issues.apache.org/jira/browse/WICKET-4829 Cause: Common component resolvers created by the app during init ignore namespace settings in the current markup and so some of the resolvers