Re: Browser file download complete callback

2008-11-04 Thread Igor Vaynberg
hmm, seems like a bug. it looks like we now close the input stream directly instead of using close() which allows users not to have to keep a reference to the stream. #close() can probably be removed. please open a jira issue. -igor On Mon, Nov 3, 2008 at 3:28 AM, bjolletz [EMAIL PROTECTED]

Re: Browser file download complete callback

2008-11-04 Thread bjolletz
Thanks for the reply! So you're suggesting that the close() method of the IResourceStream should be removed? Isn't there a point in having the close() method? In my case, by overriding the close() method, it would be possible to be notified when a download is complete. Don't know how else I

WASP/SWARM status

2008-11-04 Thread Wayne Pope
Hi, After the staggering loss of Maurice I was wondering if anyone had picked up the baton with WASP/SWARM? I look at svn and the last update was from mrmean so I presume not. I just wanted to check Thanks Wayne

Re: WASP/SWARM status

2008-11-04 Thread Wayne Pope
hi Nino, no I was looking at : https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicket-security/ let me checkout the other and have a look I never know where I'm ment to find things with Wicket! On Tue, Nov 4, 2008 at 10:10 AM, Nino Saturnino Martinez Vazquez Wael [EMAIL

Re: attribute modifier on onclick

2008-11-04 Thread Michael Sparer
show us some code miro wrote: I have a linkthis contains a label , now I want to change the style of the label whenever user clicks on the link , to do this I override the method onClick() in link component I am retrieving the label and adding simpleattributemodifier to the

Re: AjaxFallbackButton and setDefaultFormProcessing(false)

2008-11-04 Thread Michael Sparer
you could try nesting two forms - the inner form would then be the username that gets submitted by the ajaxbutton. if you then submit the outer form eventually the inner form gets resubmitted as well ... AFAIK and in case you're wondering: wicket supports nested forms (HTML doesn't) and converts

Re: WASP/SWARM status

2008-11-04 Thread Nino Saturnino Martinez Vazquez Wael
Hehe, I can understand... I figure that Maurice where playing around with wicket 1.4 and wicket security, and created a branch for it.. So my bet are that it probably need a lot of updates, to get it going.. If it's still unmaintained. And I actually wrote an mail to the dev list about the

Re: WASP/SWARM status

2008-11-04 Thread Wayne Pope
I'm going to see if I can get it working against 1.4 m3 On Tue, Nov 4, 2008 at 10:25 AM, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote: Hehe, I can understand... I figure that Maurice where playing around with wicket 1.4 and wicket security, and created a branch for it.. So my

Re: QueryStringUrlCodingStrategy question

2008-11-04 Thread Martijn Dashorst
don't use cryptedurlencodingstrategy. That will encrypt your URLs. Martijn On 11/3/08, jchappelle [EMAIL PROTECTED] wrote: I have the following code: PageParameters parms = new PageParameters(); parms.put(answerId, Long.toString(answer.getEntityId()));

Wicket integration with good charts api

2008-11-04 Thread Tomasz Dziurko
My client needs in his application very good looking charts (simple bars with some gradienst and 3D effects). Unfortunately he didn't like what JFreeChart library offers so I must find and implement another solution. Questions are: 1. Is there any other chart library easy to integrate with Wicket?

Re: Illegal State Exception on DefaultTeeModel.removeNodeFromParent

2008-11-04 Thread Hannes Schubert
Hi all, so far I did not isolate the issue. However, I found a workaround: exception was thrown only if node had been expanded. If I do collapse the node before removal, it does not fail again... Best regards Hannes Matej Knopp wrote: Might be a big. Jira issue with attached quickstart

Re: Where is code for ActionPanel used in repeater examples?

2008-11-04 Thread James Carman
Look at FormPage.java (the FormPage$ActionPanel.html file gave me a hint :). On Tue, Nov 4, 2008 at 4:51 AM, palun [EMAIL PROTECTED] wrote: Where is the code for ActionPanel used in the examples on

RE: Wicket 1.4 and Wicketstuff/Dojo/DragAndDrop

2008-11-04 Thread Reinout van Schouwen
Op maandag 28-04-2008 om 14:18 uur [tijdzone +0200], schreef Arthur Bogaart: Hi Stefan, I presume this build is based on the 'old' dojo-0.4 version? If so, are there any plans in updating the wicketstuff-dojo project to dojo-1.1.0 or is there to much resistance since Dojo has changed it's

Re: How does serialization work?

2008-11-04 Thread Adriano dos Santos Fernandes
I had a serialization problem (when redeploying the application in Tomcat) that I can't understand... Basically, I had this on my Page.onBeforeRender: --- visitChildren(TextField.class, new VisitorTextField?() { private static final long serialVersionUID =

Re: attribute modifier on onclick

2008-11-04 Thread miro
I found the problem its because of ListView setReuseItems(boolean reuseItems) . by default it is false setting it to true will not create new instances of my ListItems. Alex Objelean wrote: You probably want to use AjaxLink and when the link is clicked - add to the target the link

Re: PageParameters in wicket 1.2.7 problem

2008-11-04 Thread Rik Overvelde
This is what the 1.2 javadoc says about it: protected WebPage(PageParameters parameters) Constructor which receives wrapped query string parameters for a request. Having this constructor public means that your page is 'bookmarkable' and hence can be called/ created from anywhere. For

find if an item in my case a link was clicked in a listView

2008-11-04 Thread miro
ListView contains listItem in my case I have links . We have a method onClick in a link from which I can knowthe link which was clicked , is there a way to find among the listItems if a Item was clicked in method renderItem(ListItem item) ? I am changing the color of my link to red

Re: How does serialization work?

2008-11-04 Thread Johan Compagner
thats simple what you there create is an inner class in an inner class... so your textfield has a ajax behavior that is an inner class fo the Visitor inner class so that behavior has a parent reference to the visitor.. make that ajax behavior his own class and your problem is solved johan On

RE: Wicket 1.4 and Wicketstuff/Dojo/DragAndDrop

2008-11-04 Thread Stefan Lindner
My work was for the wicket 1.4 trunk 6 months ago. Some things have changed since then. Actually I'm stuck into converting a huge wicket 2.0 Application to 1.4. It's a pain! I think I will get back to the Dojo project in 3 weeks. Then I will try to build a version for current wicket 1.4 trunk.

Re: How does serialization work?

2008-11-04 Thread Adriano dos Santos Fernandes
Johan Compagner escreveu: thats simple what you there create is an inner class in an inner class... so your textfield has a ajax behavior that is an inner class fo the Visitor inner class so that behavior has a parent reference to the visitor.. make that ajax behavior his own class and your

Re: wicket-spring dependency in maven repository

2008-11-04 Thread Antony Stubbs
I've opened a jira issue https://issues.apache.org/jira/browse/WICKET-1913 Erik van Oosten wrote: Doug Donohoe wrote: I'm using wicket-spring-annot and ran into a small problem with maven dependencies. The wicket-spring-annot project depends on wicket-spring. This has come up a

Problem using UTF-8 and QueryStringUrlCodingStrategy

2008-11-04 Thread ssanchez
Hello, I'm trying to use UTF-8 as the default encoding in a web application using Wicket and Spring. Although everything seems to be working properly, I'm facing a problem when dealing with a page mounted using the QueryStringUrlCodingStrategy. The application configuration * The html pages

No behavior listener found

2008-11-04 Thread Martin Makundi
Hi! What does this error mean? No behavior listener found with behaviorId 0 What is being done wrong? Normally, the site works ok but the error log shows this kind of error. Am I manifesting some known Wicket antipattern which causes this error? Or is it just a result of another illegal state?

Re: Browser file download complete callback

2008-11-04 Thread Igor Vaynberg
the problem is that we would have to pass around the inputstream and iresourcestream unless we put the burden on you to make getreinputstream() return the same inputstream for the same request... you can pretty easily create a decorator for inputstream and intercept close(), its not perfect but

Re: Browser file download complete callback

2008-11-04 Thread Igor Vaynberg
another problem with close is that you would have to internally keep a reference to the inputstream(), and what if getinputstream() was called more then once because for example you are generating a xls, a csv, and a png all at once...then your close() has to keep track of multiple references?

Render a Wicket page to a string for HTML email

2008-11-04 Thread Jörn Zaefferer
Hi, I've found this article on how to render a page to a String: http://www.danwalmsley.com/2008/10/21/render-a-wicket-page-to-a-string-for-html-email/ It seemed to be exactly what I was looking for. Copying the code into my app, I got a compiler error on the line where the WebRequest is

ApacheCon live video streaming available; keynotes and Apache 101 are free

2008-11-04 Thread Martijn Dashorst
Can't make ApacheCon this week in New Orleans? You can still watch all the keynotes, Apache 101 sessions, and system administration track in live video streams: http://streaming.linux-magazin.de/en/program_apacheconus08.htm?ann Keynotes and the Apache 101 lunchtime sessions are free; the full

Re: find if an item in my case a link was clicked in a listView

2008-11-04 Thread Igor Vaynberg
you can provide your own impl of listitem that has an attribute that you set to true when it is clicked. then override oncomponenttag() and perform any magic there based on the attribute. -igor On Tue, Nov 4, 2008 at 8:33 AM, miro [EMAIL PROTECTED] wrote: ListView contains listItem in my case

Re: No behavior listener found

2008-11-04 Thread Igor Vaynberg
looks like the behavior that generated the callbakc url being invoked is no longer there... do you have any temporary behaviors on that component? -igor On Tue, Nov 4, 2008 at 9:07 AM, Martin Makundi [EMAIL PROTECTED] wrote: Hi! What does this error mean? No behavior listener found with

Re: Render a Wicket page to a string for HTML email

2008-11-04 Thread Igor Vaynberg
without seeing your code we have to resort to waving a dead chicken in front of our screens or making swags. -igor On Tue, Nov 4, 2008 at 9:19 AM, Jörn Zaefferer [EMAIL PROTECTED] wrote: Hi, I've found this article on how to render a page to a String:

Re: Render a Wicket page to a string for HTML email

2008-11-04 Thread Martijn Dashorst
Are you in New Orleans in some voodoo bar? Why not join us at ApacheCon? :) Martijn On Tue, Nov 4, 2008 at 10:43 AM, Igor Vaynberg [EMAIL PROTECTED] wrote: without seeing your code we have to resort to waving a dead chicken in front of our screens or making swags. -igor On Tue, Nov 4,

RE: Losing session information

2008-11-04 Thread Dane Laverty
Great, I'll check that out. I didn't realize that the mail list would chop up my code formatting so horribly -- thanks for taking the time to slog through it anyway. -Original Message- From: Igor Vaynberg [mailto:[EMAIL PROTECTED] Sent: Monday, November 03, 2008 12:02 PM To:

Re: Render a Wicket page to a string for HTML email

2008-11-04 Thread Igor Vaynberg
saving up vacation days for the caribbean baby :) -igor On Tue, Nov 4, 2008 at 9:55 AM, Martijn Dashorst [EMAIL PROTECTED] wrote: Are you in New Orleans in some voodoo bar? Why not join us at ApacheCon? :) Martijn On Tue, Nov 4, 2008 at 10:43 AM, Igor Vaynberg [EMAIL PROTECTED] wrote:

Re: No behavior listener found

2008-11-04 Thread Martin Makundi
What is a temporary behavior? I do not understand conceptually how a behavior can be invoked if it is no longer there.. The error log shows a nearby nullpointer exception which might have occurred during the same OnAjaxChangeBehavior .. maybe it led into an illegal state: at

Re: No behavior listener found

2008-11-04 Thread James Carman
Bad example, because AttributeAppender isn't temporary, but I've written one for requesting the focus onload and that had to be temporary. On Tue, Nov 4, 2008 at 12:03 PM, James Carman [EMAIL PROTECTED] wrote: A temporary behavior returns true from isTemporary(). Some behaviors don't need to

Re: No behavior listener found

2008-11-04 Thread Igor Vaynberg
the error means that a behavior constructed the url, but when the user followed the url the behavior could no longer be found. what npe? can you show the full stack trace? -igor On Tue, Nov 4, 2008 at 10:01 AM, Martin Makundi [EMAIL PROTECTED] wrote: What is a temporary behavior? I do not

Re: No behavior listener found

2008-11-04 Thread James Carman
A temporary behavior returns true from isTemporary(). Some behaviors don't need to be remembered on the server-side (like AttributeAppender, for example). On Tue, Nov 4, 2008 at 12:01 PM, Martin Makundi [EMAIL PROTECTED] wrote: What is a temporary behavior? I do not understand conceptually

Re: No behavior listener found

2008-11-04 Thread Martin Makundi
The behavior might actually by a button's ajax submit. The npe occurs finally at the setModelObject: 2008-11-04 17:29:24,730 30836229 [btpool0-40] ERROR RequestCycle - java.lang.NullPointerException at com.xx.view.EditorPanel$ListOfStuff$1.setObject(EditorPanel.java:481) ** Martin

Re: How does serialization work?

2008-11-04 Thread Johan Compagner
we still have a last x pages stored on disk. it is just not a number of pages but it is how many pages fit in the default window size of the file on disk (1 file per pagemap) by default it is 10MB per pagemap and 100MB per total session. so by default you can hold 10 pagemaps of 10MB after that

Re: Feedback/Error message.

2008-11-04 Thread Nick Heudecker
Or just style it with CSS. On Tue, Nov 4, 2008 at 9:46 AM, Graeme Knight [EMAIL PROTECTED] wrote: Hey! Cool - add a feedback panel then set error - I like that! I didn't get to that part in the Wicket in Action as yet but I see how it works! Actually - my authentication method is very

Re: Handling exceptions during render

2008-11-04 Thread aditsu
Alex Objelean wrote: Can you be more specific? What kind of unexpected runtime exceptions are you talking about? I don't think I understood you correctly. It could be anything.. NPE (probably the most popular), IllegalArgumentException and its descendants, ArithmeticException,

Re: Moving from Tapestry to Wicket?

2008-11-04 Thread Eelco Hillenius
Honestly in our application (we have a roadmap for scalability) we are likely to get several hundred concurrent sessions per server with a few kb of state stored in the HTTPSession. Its not that much. That's definitively no problem for even a very modest setup. What I was more concerned

Re: Feedback/Error message.

2008-11-04 Thread Graeme Knight
Hey! Cool - add a feedback panel then set error - I like that! I didn't get to that part in the Wicket in Action as yet but I see how it works! Actually - my authentication method is very similar to the one on the book (again not got to that part yet), so I'm pretty psyched I'm heading in the

Re: Moving from Tapestry to Wicket?

2008-11-04 Thread Graeme Knight
Hey Eelco! Awesome! Thanks for your answers - they really helped. I appreciate the time. BTW, Wicket in Action is a really well written book compared to others in the genre. Thanks to you and Martijn for the hard work! It came at the right time for me and we have decided to make the move from

Re: Advice for a YUI Button Component

2008-11-04 Thread Nino Saturnino Martinez Vazquez Wael
Sure.. Just make the javascript call what ever the link calls.. You can see the input events contrib on wicketstuff on howto do this.. Adriano dos Santos Fernandes wrote: Hi! I didn't found any project integrating YUI Button with Wicket, and I'd want it. The problem that I'm seen is that

Re: attribute modifier on onclick

2008-11-04 Thread Alex Objelean
You probably want to use AjaxLink and when the link is clicked - add to the target the link itself, in order to see the change. miro wrote: upon debugging i foundthe constructor MyLink() was getting called afteronClick() so any changes I make in onClick to components behaviour

Re: AW: Wicket 1.4 and Wicketstuff/Dojo/DragAndDrop

2008-11-04 Thread Reinout van Schouwen
Hi Stefan, Op vrijdag 25-04-2008 om 18:03 uur [tijdzone +0200], schreef Stefan Lindner: To all the other WicketStuff Dojo users: I have successfully built a version for current wicket 1.4 trunk. If someone nedds it, please let me know! Actually I'm trying to get it for wicket 1.3.5, but

Re: Wicket integration with good charts api

2008-11-04 Thread Martijn Dashorst
If you don't mind sending your chart data to google, google charts might be a good solution. Other than that, you'll probably be heading into the flash chart area (there are a lot of flash libraries for creating flashy charts). I haven't used any of them, so you should try some out. Martijn On

Advice for a YUI Button Component

2008-11-04 Thread Adriano dos Santos Fernandes
Hi! I didn't found any project integrating YUI Button with Wicket, and I'd want it. The problem that I'm seen is that onclick should not be on the button tag, but specified from javascript. Would be possible to have *Link classes working (inheriting, or with behaviors) this way without need

Re: Advice for a YUI Button Component

2008-11-04 Thread Adriano dos Santos Fernandes
Thanks, Nino. That is the good and easy way that I want to know. Adriano Nino Saturnino Martinez Vazquez Wael escreveu: Sure.. Just make the javascript call what ever the link calls.. You can see the input events contrib on wicketstuff on howto do this.. Adriano dos Santos Fernandes

Question about property expressions

2008-11-04 Thread Jan Stette
Hi all, if I have a class like this: class SomeClass { String getValue(String key); } ...is there a way I can use a property expression to get values out of this class? E.g. using an expression like value[myKey]. In other words, something very similar to if the class looked like this:

Re: Wicket integration with good charts api

2008-11-04 Thread Nino Saturnino Martinez Vazquez Wael
You do know there are an abundance of jfreecharts right, they are highly customizable.. And theres even a javaweb start thing where they demo it... But you probably did show them this... http://www.jfree.org/jfreechart/jfreechart-1.0.11-demo.jnlp Tomasz Dziurko wrote: My client needs in his

Re: No behavior listener found

2008-11-04 Thread Nino Saturnino Martinez Vazquez Wael
Hi Martin I got them a lot when creating the wicket reaction game.. For me the problem where that I added new components all the time and if in the mean time the component disappared (we are talking miliseconds) and the user managed to click the cells then they would get the problem..

Re: Question about property expressions

2008-11-04 Thread Igor Vaynberg
no you cannot use propertymodel, but you can easily write your own model that calls the method directly. -igor On Tue, Nov 4, 2008 at 12:52 PM, Jan Stette [EMAIL PROTECTED] wrote: Hi all, if I have a class like this: class SomeClass { String getValue(String key); } ...is there a way I

Re: Wicket integration with good charts api

2008-11-04 Thread Rob Sonke
Google charts good enough? (see wicket stuff projects) Tomasz Dziurko wrote: My client needs in his application very good looking charts (simple bars with some gradienst and 3D effects). Unfortunately he didn't like what JFreeChart library offers so I must find and implement another solution.

Re: WASP/SWARM status

2008-11-04 Thread Nino Saturnino Martinez Vazquez Wael
I've been wondering the same thing... Where this what you looked at? https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/branches/wicket-security-1.4-earlyaccess/ Wayne Pope wrote: Hi, After the staggering loss of Maurice I was wondering if anyone had picked up the baton with

Where is code for ActionPanel used in repeater examples?

2008-11-04 Thread palun
Where is the code for ActionPanel used in the examples on http://wicketstuff.org/wicket13/repeater/?wicket:bookmarkablePage=sources:org.apache.wicket.examples.repeater.Index ? I'm using Wicket vers. 1.3.4. (Is that the problem?) Thanks, /ulf -- View this message in context:

Re: attribute modifier on onclick

2008-11-04 Thread miro
upon debugging i foundthe constructor MyLink() was getting called after onClick() so any changes I make in onClick to components behaviour will get washed away because its adding the componentsagain , to better understand what happens when a link is clicked ? the component is

Re: WASP/SWARM status

2008-11-04 Thread Nino Saturnino Martinez Vazquez Wael
Great :) And please ask if you run into troubles..And if no one comes back on this say that they have something that they just need to checkin (which are unlikely to happen). You can check it in, do you have svn rights? Wayne Pope wrote: I'm going to see if I can get it working against 1.4

Re: WASP/SWARM status

2008-11-04 Thread Wayne Pope
Last touched in July by maurice: 'initial compilation against wicket 1.4 (no generics yet)' On Tue, Nov 4, 2008 at 10:16 AM, Wayne Pope [EMAIL PROTECTED] wrote: hi Nino, no I was looking at : https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicket-security/ let me

Re: ApacheCon live video streaming available; keynotes and Apache 101 are free

2008-11-04 Thread Jeremy Thomerson
I also have the privilege of attending, so I am planning on live blogging from the sessions that I attend. You will definitely get at least a picture or two of Martijn presenting tomorrow's session: Wicket in Action. My blog is here: http://www.jeremythomerson.com/blog/ Bruno Borges is also

Slogging through Wicket's guts

2008-11-04 Thread danelav
I'm trying to understand how Wicket's RequestCycle works in order to resolve the problem I explained in my previous post, Losing session information. I'm using Eclipse's debugger to step through the process, but I've hit a wall. I'm using Wicket 1.3.4, and I get stuck at

Looking for an example of Remember-me login functionality

2008-11-04 Thread fatefree
I'm hoping to find a working example of a remember-me type login. I don't mean that the username is stored in a cookie, but rather the user doesn't need to go to a login page as they are authenticated through cookies immediately. I have struggled to try and piece together the code from this

Re: Slogging through Wicket's guts

2008-11-04 Thread Igor Vaynberg
it uses reflection to invoke the proper methods. the contract of the listener interface is that they contain a single void method that takes no arguments, this method is then invoked on the component via reflection. so since form implements iformsubmitlsitener its onformsubmitted() method will be

Re: Looking for an example of Remember-me login functionality

2008-11-04 Thread Igor Vaynberg
this kind of code needs to go into your authorization strategy. there instead of redirecting to login page you first check for cookies and if the proper cookie is found simply return true instead of redirecting to login page. you can use (webrequest)requestcycle.get().getrequest() to get to

Re: Question about property expressions

2008-11-04 Thread Jan Stette
Sure. To explain a bit more why I'm asking: I have a table component that's configured using property expressions as to what's shown in each column. The types of objects to be shown in the table are not known in advance, hence having a hard coded model for a specific type of class isn't really

PropertyColumn and generics

2008-11-04 Thread Luke Ma
I'm writing a custom BooleanChoiceFilteredPropertyColumnT extends ChoiceFilteredPropertyColumnT (on 1.4-m3). When implementing @Override public void populateItem(final Item cellItem, final String componentId, final IModel model) I get a warning about Item and IModel needing to

Re: Looking for an example of Remember-me login functionality

2008-11-04 Thread fatefree
Thanks igor, I looked into that and unfortunately the method that controls that is declared final in auth roles' AuthenticatedWebApplication (public final void onUnauthorizedInstantiation(final Component component)) What I came to realize is that by configuring acegi's standard remember-me

Design question : accessing components between panels

2008-11-04 Thread Arun Wagle
Hello , I have an application which renders a page. This page has two panels , panel A and panel B Each panel has some components in it. Now I want to access some component in panel B from panel A. Can someone tell me how do I get a handle to panel B in panel A ? If I have an instance of the

Re: Handling exceptions during render

2008-11-04 Thread aditsu
igor.vaynberg wrote: i would hate a user to look at a signup form without a signup button because something inside it caused an error. i would also hate to see a user at a checkout page with a missing $500.00 discount amount shown because there was an error in the discount label.

Re: Handling exceptions during render

2008-11-04 Thread aditsu
aditsu wrote: Anyway, I want to have the option to catch exceptions from child components at certain points that I can define. And I think I got a new idea.. involving replace and RestartResponseException Well, it seems to work, except I had to call setAuto(true) on the replacement

Re: Design question : accessing components between panels

2008-11-04 Thread Igor Vaynberg
component#getPage() -igor On Tue, Nov 4, 2008 at 9:28 PM, Arun Wagle [EMAIL PROTECTED] wrote: Hello , I have an application which renders a page. This page has two panels , panel A and panel B Each panel has some components in it. Now I want to access some component in panel B from panel

adding favicon using behavior

2008-11-04 Thread Eyal Golan
Hi, We have a behavior that is added to our main page (we use markup inheritance). In the behavior we add CSS links (and JS). We want to add a favicon as well. Here's what we did: response.getResponse().write(link rel=\SHORTCUT ICON\ href=\/resources/favicon.ico\/\n); Is this the best way?

Re: adding favicon using behavior

2008-11-04 Thread Igor Vaynberg
use iheadercontributor -igor On Tue, Nov 4, 2008 at 11:43 PM, Eyal Golan [EMAIL PROTECTED] wrote: Hi, We have a behavior that is added to our main page (we use markup inheritance). In the behavior we add CSS links (and JS). We want to add a favicon as well. Here's what we did: