RE: wicket 6.0

2012-05-09 Thread Hielke Hoeve
Hi Tom, We now have a working WiQuery 6. I will release a new snapshot tonight, but you can clone it from github already. Hielke -Original Message- From: Tom Eugelink [mailto:t...@tbee.org] Sent: vrijdag 13 april 2012 14:44 To: users@wicket.apache.org Subject: Re: wicket 6.0 On

Re: wicket 6.0

2012-05-09 Thread Tom Eugelink
I'm back on my Wicket project tomorrow, so I'll give it spin. Dank je. Tom On 2012-05-09 10:31, Hielke Hoeve wrote: Hi Tom, We now have a working WiQuery 6. I will release a new snapshot tonight, but you can clone it from github already. Hielke -Original Message- From: Tom

RE: Status of wicketstuff jquery integration

2012-05-09 Thread Hielke Hoeve
Hi Jesse, Your 10mb of WiQuery puzzles me. The wiquery-core jar is 256 KB and the wiquery-jquery-ui jar is 857KB. I wonder which jars you include in your war. If you do not use jQuery UI then there is no need for wiquery-jquery-ui. Hielke -Original Message- From: Jesse Long

Wicket 1.5.6 Relative URL rendering

2012-05-09 Thread Thomas Heigl
Hello, Since Wicket 1.5.6, the UrlRender generates all URLs prefixed with ./ when using RequestCycle.get().urlFor(pageClass). The Problem is that for my application's homepage the generated URL is ./. which does not really make sense. Is there any reason for doing this? What caused the change to

Re: Wicket 1.5.6 Relative URL rendering

2012-05-09 Thread Martin Grigorov
Hi, They have always been relative. Before 1.5.6: some/relative/url After 1.5.6: ./somerelative/url Both are the same. The reason is https://issues.apache.org/jira/browse/WICKET-4260 How exactly the home page is broken ? Do you have custom RequestMapper for the home page ? On Wed, May 9, 2012

Force child component enabled

2012-05-09 Thread Jürgen Lind
Hi, I have a little problem in my application and maybe someone has an idea how to solve it: I have a complex form that is structured using a custom collapsible AJAX-panel to show/hide certain parts of the form. Now, if a user does not have the write permission for the form, the form is

Re: Wicket 1.5.6 Relative URL rendering

2012-05-09 Thread Thomas Heigl
Hey Martin, Thanks for the explanation! How exactly the home page is broken ? Do you have custom RequestMapper for the home page ? The problem is in absolute URL generation. I generate absolute URLs for sitemaps, canonical URL tags etc and my logic broke after upgrading to Wicket 1.5.6

Re: Wicket 1.5.6 Relative URL rendering

2012-05-09 Thread Martin Grigorov
to create an absolute url use: requestCycle.getUrlRenderer().renderFullUrl(relativeUrl.toString()) On Wed, May 9, 2012 at 12:07 PM, Thomas Heigl tho...@umschalt.com wrote: Hey Martin, Thanks for the explanation! How exactly the home page is broken ? Do you have custom RequestMapper for

Re: Force child component enabled

2012-05-09 Thread Martin Grigorov
Hi, Why don't use plain Javascript for this. It will be faster because it wont make roundtrip to the server and wont be disabled as a Wicket component ? On Wed, May 9, 2012 at 12:06 PM, Jürgen Lind juergen.l...@iteratec.de wrote: Hi, I have a little problem in my application and maybe someone

Re: Force child component enabled

2012-05-09 Thread Alexander Cherednichenko
Hi! I'd make this case more general -- we have faced the one like this in non-JS-case. For instance, there is a Panel which contains a DataTable. Each row of datatable represents a Document. Each row contains a set of buttons - Edit Confirm and Download. When panel is hidden due to security

MarkupNotFoundException for Fragment and TransparentWebMarkupContainer

2012-05-09 Thread Dirk Forchel
Hello, I've a question regarding Fragements inside a TransparentWebMarkupContainer. I've a base WebPage with a TransparentWebMarkupContainer to allow subclasses register CSS classes on the body tag. If I add a Fragment to one of these subsclasses, the markup of the Fragment is not found.

Re: Force child component enabled

2012-05-09 Thread Jürgen Lind
Hi Martin, that was my initial approach. However, I would like the collapsible panels to keep their state between form submits, therefore I would need some sort of Javascript state management or I would simply use ajax links for that purpose. Which is what I would prefer... A later post

Re: MarkupNotFoundException for Fragment and TransparentWebMarkupContainer

2012-05-09 Thread Martin Grigorov
Hi, Create a ticket with a quickstart please. As a workaround you can put the fragment in the base page's html. On Wed, May 9, 2012 at 1:18 PM, Dirk Forchel dirk.forc...@exedio.com wrote: Hello, I've a question regarding Fragements inside a TransparentWebMarkupContainer. I've a base WebPage

Re: MarkupNotFoundException for Fragment and TransparentWebMarkupContainer

2012-05-09 Thread Thomas Heigl
I had the same problem. I solved it by using the transparent container as markup provider for the fragment: add(new MyFragment(fragmentId, getTransparentBodyContainer())) It works, but is kind of awkward, as subclasses shouldn't really know about transparent containers in the base class. Thomas

Re: Force child component enabled

2012-05-09 Thread Martin Grigorov
Hi, I think it is possible to do that for links. You'll need to override org.apache.wicket.markup.html.link.AbstractLink#isLinkEnabled() and org.apache.wicket.Component#canCallListenerInterface(Method) The first is needed to not render the link as disabled. The second is needed to be able to

Wicket 1.5 and nested forms

2012-05-09 Thread Thomas Heigl
Hello, I notices a strange behavior after upgrading to Wicket 1.5. Nested forms are submitted in a different order. I have structures like this: - Compound Form -- Subform 1 -- Subform 2 -- Subform 3 - Submit Link/Button for Compound Form In Wicket 1.4 the order of calls to onSubmit was

Re: Wicket 1.5 and nested forms

2012-05-09 Thread Martin Grigorov
Hi Thomas, On Wed, May 9, 2012 at 2:12 PM, Thomas Heigl tho...@umschalt.com wrote: Hello, I notices a strange behavior after upgrading to Wicket 1.5. Nested forms are submitted in a different order. I have structures like this: - Compound Form -- Subform 1 -- Subform 2 -- Subform 3 -

Re: Wicket 1.5 and nested forms

2012-05-09 Thread Martin Grigorov
On Wed, May 9, 2012 at 2:22 PM, Martin Grigorov mgrigo...@apache.org wrote: Hi Thomas, On Wed, May 9, 2012 at 2:12 PM, Thomas Heigl tho...@umschalt.com wrote: Hello, I notices a strange behavior after upgrading to Wicket 1.5. Nested forms are submitted in a different order. I have

Re: MarkupNotFoundException for Fragment and TransparentWebMarkupContainer

2012-05-09 Thread Dirk Forchel
JIRA Issue https://issues.apache.org/jira/browse/WICKET-4545 with quickstart created. Thanks for the awkward hint and for the quick hack. I'll use a Panel instead. -- View this message in context:

igor's select2 script

2012-05-09 Thread Uwe Schäfer
hi in order not to duplicate work: is there a wicket wrapper component out there using igor's select2 script, already? cu uwe - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail:

Re: Force child component enabled

2012-05-09 Thread Jürgen Lind
Hi Martin, thanks for the hint, unfortunatly, it does not work :-( I've been looking through the relevant code and the approach seems right, however at some point, the returned values seem to be ignored and the link is still disabled (i.e. the onclick-handler is not rendered)... I will have

Re: TableComponentAsXlsHandler Problem

2012-05-09 Thread khanshan
Hi there, I am almost handled my problem but. I have annoying problem with excel. I get excell output file via ByteArrayResource byteArrayResource = new ByteArrayResource(application/vnd.ms-excel, bai, ayrint.xls); RequestCycle.get().scheduleRequestHandlerAfterCurrent(new

Re: TableComponentAsXlsHandler Problem

2012-05-09 Thread Martin Grigorov
It seems bai (the byte array) is corrupted. Try to save it on the file system with FileOutputStream and open it in Excel. If it still says there is an error then this is the problem. On Wed, May 9, 2012 at 3:43 PM, khanshan hakansende...@yahoo.com wrote: Hi there, I am almost handled my

Re: TableComponentAsXlsHandler Problem

2012-05-09 Thread khanshan
well, if you say so, we have problem :) I use FileOutputStream while generating excel file. For last hope I write my logic below here, onClick(){ HSSFWorkbook hwb; FileOutputStream fileOut; hwb.write(fileOut); byte[] bai = hwb.getBytes(); ByteArrayResource byteArrayResource = new

Re: Wicket 1.5 and nested forms

2012-05-09 Thread Thomas Heigl
Hey Martin, WICKET-3705 links to https://issues.apache.org/jira/browse/WICKET-1894 which says that this order is changed in 1.4.15 I upgraded to Wicket 1.5 from Wicket 1.4.20 and it still has been working with 1.4.20. This is the way how it works in 1.5/6.x. I'm not sure why it is not

Re: Status of wicketstuff jquery integration

2012-05-09 Thread Jesse Long
Hi Hielke, It seems I was using an outdated version of WiQuery (1.2.3), but even then, I cant reproduce the extra 10M. It may be that I had the dependencies for WiQuery and something else added to the war at the same time, my apologies. wiquery-core 1.5.5 (and dependencies) adds just over

Single sign on (SSO) for two WicketApplication

2012-05-09 Thread jensiator
Anyone got some experience on this? 1. Maybe using the tomcat built in SSO for two applications? 2. Could one add a filter/Servlet that handles it for the two Wicket Applications? 3. Some products that anyone have good experience with? I have google on this but have not found any good 'how to' or

Re: TableComponentAsXlsHandler Problem

2012-05-09 Thread khanshan
Mr. Grigorov, Any idea? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/TableComponentAsXlsHandler-Problem-tp4616754p4620558.html Sent from the Users forum mailing list archive at Nabble.com. - To

Re: TableComponentAsXlsHandler Problem

2012-05-09 Thread Martin Grigorov
On Wed, May 9, 2012 at 5:15 PM, khanshan hakansende...@yahoo.com wrote: Mr. Grigorov, Any idea? You didn't tell us what happens after saving the HSSFWorkbook to a file with FileOutputStream. Or I didn't understand your previous message... -- View this message in context:

Re: TableComponentAsXlsHandler Problem

2012-05-09 Thread khanshan
it works! I export data to excell file, browser downloads excell file, but when I want to open excel file, it gives error as corrupt in file and doesnt open file, but I reopen file by the help. (as you can guess with the help of excell, corrupted files from left bar) I can say that

Re: Force child component enabled

2012-05-09 Thread Jürgen Lind
Ok, I stripped down everything to a very basic setup that should work according to Martins suggestions and the wicket documentation. Any ideas why canCallListenerInterface is never called here? J. import java.lang.reflect.Method; import org.apache.wicket.ajax.AjaxRequestTarget; import

Re: TableComponentAsXlsHandler Problem

2012-05-09 Thread Martin Grigorov
Well, find out what are the differences between: hwb.write(fileOut); vs. byte[] bai = hwb.getBytes(); It seems hwb.getBytes() doesn't return all bytes ... On Wed, May 9, 2012 at 5:37 PM, khanshan hakansende...@yahoo.com wrote: it works! I export data to excell file, browser downloads excell

Re: igor's select2 script

2012-05-09 Thread Igor Vaynberg
hi Uwe, Dan Retzlaff has created a wrapper, but as far as i know he hasnt publicly shared it yet. i havent really had much time to work on my own wrapper or to look at his yet. my recommendation, barring Dan doesnt share his code, is to create a very thin integration that you can later replace

SwingTree to WicketTree + Drag Drop + Different Objects

2012-05-09 Thread ttboy_01
Hi Community, I've got a problem here with a (javax.swing.) tree in Wicket 1.5.4. Everything is working fine, besides the update after dragdrop. Everything according to the database is handled fine and if I recall the page the tree (and its model) is fine. Some theoretical: I'd like to display

Re: igor's select2 script

2012-05-09 Thread Dan Retzlaff
I'll post to github shortly. I was thinking it'd be more accessible if rolled into one of these existing Wicket component libraries, but since I haven't had time to coordinate that, I'll just license it ASL and somebody else can do it if desired. Good timing on the reminder... I leave on Friday

Loadable-detachable model for ListView

2012-05-09 Thread sudeivas
Hello, Can any one please provide an example for implementing a list view with loadable-detachable model? I am trying to minimize the size of the session. Because sometimes, the size of the list view can be more than 2000, and this occupies lot of space in session. Also is there a better

Re: SwingTree to WicketTree + Drag Drop + Different Objects

2012-05-09 Thread Sven Meier
Hi Erik, since you're using wicket-dnd already, I'd strongly recommend to use wicket-tree (http://code.google.com/p/wicket-tree/) instead of LinkTree. Updating nodes works hassle-free with this new implementation. See wicket-tree's examples. Or do absolutely have to use a swing tree model?

Re: Loadable-detachable model for ListView

2012-05-09 Thread Igor Vaynberg
use DataView/IDataProvider -igor On Wed, May 9, 2012 at 10:54 AM, sudeivas sureshkumar@gmail.com wrote: Hello,     Can any one please provide an example for implementing a list view with loadable-detachable model? I am trying to minimize the size of the session. Because sometimes, the

Re: igor's select2 script

2012-05-09 Thread Dan Retzlaff
Here you go, Uwe (and all): https://github.com/dretzlaff/wicket-select2 If you provide feedback in the next couple of days I'm happy to address it. Props to Igor for sharing Select2 itself. On Wed, May 9, 2012 at 10:01 AM, Dan Retzlaff dretzl...@gmail.com wrote: I'll post to github shortly. I

Re: igor's select2 script

2012-05-09 Thread Emmanouil Batsis (Manos)
this is cool! Any chance it works with wicket 1.4.x? Manos - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

Re: igor's select2 script

2012-05-09 Thread Dan Retzlaff
Use in 1.4 requires some relatively simple code changes. For example the resource syntax (for serving Select2 AJAX requests) is different. But after little changes like that, it should work fine. On Wed, May 9, 2012 at 1:04 PM, Emmanouil Batsis (Manos) ma...@abiss.grwrote: this is cool! Any

Re: Loadable-detachable model for ListView

2012-05-09 Thread sudeivas
I am using the below code in my application. But the data provider makes a call to my service wrapper asking for all the entries. For example: if total size of the list of 750, the first - 0 and count - 750. This is not different from using list view. How can I make sure that this data view loads

Re: Loadable-detachable model for ListView

2012-05-09 Thread Igor Vaynberg
call dataview.setitemsperpage(x) -igor On Wed, May 9, 2012 at 3:32 PM, sudeivas sureshkumar@gmail.com wrote: I am using the below code in my application. But the data provider makes a call to my service wrapper asking for all the entries. For example: if total size of the list of 750, the

Re: Loadable-detachable model for ListView

2012-05-09 Thread sudeivas
Thanks Igor for the response. If I use dataview.setItemsPerPage(50), then my Data View loads only the first 50 entries. But how can I trigger or ask the data view to load the next 50 entries when we scroll down the list or when we reach the end of the list? -Suresh -- View this message in

Re: Loadable-detachable model for ListView

2012-05-09 Thread Igor Vaynberg
use PagingNavigator. there are examples here: http://www.wicket-library.com/wicket-examples/repeater/ -igor On Wed, May 9, 2012 at 4:11 PM, sudeivas sureshkumar@gmail.com wrote: Thanks Igor for the response. If I use dataview.setItemsPerPage(50), then my Data View loads only the first

Re: Loadable-detachable model for ListView

2012-05-09 Thread Dan Retzlaff
Suresh, I haven't seen a packaged solution for inifinte scroll in Wicket. But the way I'd implement it is to detect that more content is needed with JavaScript (some kind of jQuery event listeners), then make a request to a Wicket AJAX behavior. I'd have the behavior render content into a hidden

Re: Loadable-detachable model for ListView

2012-05-09 Thread sudeivas
thanks for the info Dan. I haven't worked with Jquery before. I will explore more on that. But I am curious to know why DataView stores information in the session. Because I use LoadableDetachableModel in my above example. The main objective for me is minimize the information stored in session.