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: If you have that, and you do: add(new Link("xyz"){...}); then you will have the same results. Why? Because Link was not designed to be added to ma

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 wrote: > If you're saying to add the fragment tag outside the tabl

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 th

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 wrote: > 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

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, as

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 proble

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 f

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 for the DataTable. And a separate markup for the cell content. For example with a Fragment: Or use Panel if you don't have experience with Fragments On Mon, Jun 17, 2013 at 6:19 PM, David Solum wrote: > Here is the simplest thing I've tried: > > < wicket:panel> >

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 a

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 al

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: 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 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 post that Sven

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 error.

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 wrote: > Hi Thomas, > > it depends on your deployment mode: > > if (application.usesDevelopmentConfig()) > {

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 r

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: 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

Re: Dynamic Context Menu using wicket-jquery-ui

2013-06-17 Thread Sebastien
Hi Colin, Thank you! :) Yes, I confirm you that the issue raised in the previous mail has been solved... Best regards, Sebastien. On Mon, Jun 17, 2013 at 3:54 AM, Colin Rogers < colin.rog...@objectconsulting.com.au> wrote: > Sebestien, > > I did get the chance to look at your first suggestion.

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 u

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 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

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 th

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 loadabledetach