Empy choices durring unit tests with DropDownChoice

2013-06-17 Thread Dmitriy Neretin
Hi everyone! I have a little problem. When I unit test a wicket panel with a DropDownChoice I can't get the choices list into dropdown... So, that is how I use it: a) ... new DropDownChoice(aWicketId, new ChoicesModel.getObject(), myOwnChoicesRenderer) b) The choices Model ist a

Re: Wicket context menu component

2013-06-17 Thread bronius
Hi Sebastien, Thats great news, I prefer to use library version as it has a lot of advantages over rolling my own solution. I tried yours and it works fine for me. I think example of how to recognize which link was clicked in demo would be helpful for others, as context menu will certainly need

Re: Wicket context menu component

2013-06-17 Thread Sebastien
Hi Bronius, You're welcome! Yes, the usage you performed is the intended one. In your case however, maybe you can optimize it, because when a menu-item is clicked, both IMenuItem#onClick() and Menu#onClick() are triggered (in that order). So instead of a 'switch' statement in Menu#onClick(), you

Haritha Juturu

2013-06-17 Thread Haritha Juturu
wer http://www.technicboisnouvelle.fr/uk/tkqrgioxcqp/pxztowtdx/unyjzl.php Haritha Juturu

Re: Wicket context menu component

2013-06-17 Thread bronius
Yes I agree, thanks again :) -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-context-menu-component-tp4659306p4659544.html Sent from the Users forum mailing list archive at Nabble.com. - To

Re: Form submit without redirection

2013-06-17 Thread divad91
Hi thanks for your response. The errors that I want to send back are my form business error. I use jQuery validate to do my frontend validation and to display them. We build a custom plugin to display the business errors the same way the frontend errors are displayed. So basically, I send back a

Server side caching of generated resources

2013-06-17 Thread Thomas Heigl
Hi all, I was wondering if Wicket has a built-in mechanism for caching the generated byte[] of package resources. I use concatenated resource bundles that are compressed using the YUI CSS/JS compressors. Using the default settings, compression is performed for every request that does not have it

Re: Server side caching of generated resources

2013-06-17 Thread Michael Haitz
Hi Thomas, it depends on your deployment mode: if (application.usesDevelopmentConfig()) { // development mode: // use last-modified timestamp of packaged resource for resource caching // cache the version information for the lifetime of the current http request

Re: Server side caching of generated resources

2013-06-17 Thread Thomas Heigl
Hi Michael, This caches only the resource version, e.g. message digest, but not the actual contents of the resouce. Kind regards, Thomas On Mon, Jun 17, 2013 at 4:02 PM, Michael Haitz michael.ha...@1und1.dewrote: Hi Thomas, it depends on your deployment mode: if

Re: How to dynamically add a hyperlink (BookmarkablePageLink) to DefaultDataTable that is rendered as an anchor

2013-06-17 Thread David Solum
Hi, As I said in my original post, that markup works, but the BookmarkablePageLinks that I add are rendered as div tags with onclick handlers. I am trying to get anchor tags. I believe the post that Sven referred to is a step in the right direction, but my markup gives me the unclosed tag

Re: How to dynamically add a hyperlink (BookmarkablePageLink) to DefaultDataTable that is rendered as an anchor

2013-06-17 Thread Martin Grigorov
Show us your new markup. On Mon, Jun 17, 2013 at 5:09 PM, David Solum djso...@yahoo.com wrote: Hi, As I said in my original post, that markup works, but the BookmarkablePageLinks that I add are rendered as div tags with onclick handlers. I am trying to get anchor tags. I believe the

Re: Server side caching of generated resources

2013-06-17 Thread Martin Grigorov
Hi, At the moment there is no caching of the content. The only library that does such kind of caching is wicket-bootstrap:bootstrap-less ( https://github.com/l0rdn1kk0n/wicket-bootstrap/tree/master/bootstrap-less/src/main/java/de/agilecoders/wicket/less ) On Mon, Jun 17, 2013 at 5:06 PM, Thomas

Re: Server side caching of generated resources

2013-06-17 Thread Michael Haitz
Hi, but isn't it enough to send the correct cache headers + a calculated filename that contains the hash of file? I think caching on your container isn't the best option (using nginx or varnish or a CDN like Akamai or something similar is way better), else you've to compile each resource on

Re: How to dynamically add a hyperlink (BookmarkablePageLink) to DefaultDataTable that is rendered as an anchor

2013-06-17 Thread David Solum
Here is the simplest thing I've tried: wicket:panel table wicket:id=dataTable border=0 cellpadding=1 cellspacing=1 width=90% a href=# wicket:id=link /a /table /wicket:panel (I added the spaces after the angled brackets just for

Re: How to dynamically add a hyperlink (BookmarkablePageLink) to DefaultDataTable that is rendered as an anchor

2013-06-17 Thread Martin Grigorov
You have to use just table wicket:id=... .../table for the DataTable. And a separate markup for the cell content. For example with a Fragment: wicket:fragment id=linkFragmenta wicket:id=link/a/wicket:fragment Or use Panel if you don't have experience with Fragments On Mon, Jun 17, 2013 at 6:19

Re: Server side caching of generated resources

2013-06-17 Thread Thomas Heigl
Hey Michael, but isn't it enough to send the correct cache headers + a calculated filename that contains the hash of file? I actually have aggressive caching and a CDN in front of my resources. So in 90% of cases, a resource is only generated once per deployment. My problem is that I need to

Re: Injecting proxy services in page.

2013-06-17 Thread eugenebalt
We've heard that there is a fix for this available in Wicket 1.5. However, we are stuck with Wicket 1.4.7 and cannot upgrade, for various reasons. (We're also already using the AnnotationConfigWebApplicationContext referred to in the previous post.) Are there any other workarounds for this

Scala

2013-06-17 Thread Michael Pence
Hello again. Is it cool to ask Scala + Wicket questions here, or is there a better place for that. No hate, but I have been so spoiled by Ruby's conciseness, that I would struggle to go back to the more verbose (though much, much faster) Java syntax, and would prefer Scala for other reasons,

Re: Scala

2013-06-17 Thread Martin Grigorov
Sure. We will try to help. On Mon, Jun 17, 2013 at 11:21 PM, Michael Pence mike.pe...@gmail.comwrote: Hello again. Is it cool to ask Scala + Wicket questions here, or is there a better place for that. No hate, but I have been so spoiled by Ruby's conciseness, that I would struggle to go

Re: How to dynamically add a hyperlink (BookmarkablePageLink) to DefaultDataTable that is rendered as an anchor

2013-06-17 Thread David Solum
If you're saying to add the fragment tag outside the table tag, I don't get any errors, but the Links I add are still rendered as div tags with onclick handlers. What would tie the BookmarkablePageLinks that I add to the DefaultDataTable to the anchor tags in your markup? Thank you. -- View

Re: How to dynamically add a hyperlink (BookmarkablePageLink) to DefaultDataTable that is rendered as an anchor

2013-06-17 Thread Martin Grigorov
Please create a mini application (a quickstart) that shows the problem and upload it somewhere. Or put it in GitHub/BitBucket. Then someone of us will fix it and send it back to you. On Tue, Jun 18, 2013 at 12:25 AM, David Solum djso...@yahoo.com wrote: If you're saying to add the fragment tag

Re: How to dynamically add a hyperlink (BookmarkablePageLink) to DefaultDataTable that is rendered as an anchor

2013-06-17 Thread Jesse Long
Hi David, The IColumn#populateItem method populates a cell in the HTML table. It is as if you are adding your components to markup like this: td wicket:id=xyz/td If you have that, and you do: add(new LinkVoid(xyz){...}); then you will have the same results. Why? Because Link was not