Re: [ANN] wicket-tree project

2009-07-26 Thread Sven Meier
Sure, wicket-tree is still in its conception phase. I'll tidy up the project structure soon. Sven On Sa, 2009-07-25 at 18:57 -0400, James Carman wrote: So is the project a war (since it runs with jetty:run)? Wouldn't that make it hard to use in other projects? On Jul 25, 2009 6:18 PM,

Re: [ANN] wicket-tree project

2009-07-26 Thread Vladimir K
Nested tree and tree table seems promicing. What I missed in your example is single-selection mode, and sortable headers with filters. One of my the upcoming tasks is to build a selector component that knows whether the object is hierarchical and puts inside a datatable with navigator or

Re: [ANN] wicket-tree project

2009-07-26 Thread Vladimir K
Why you don't extend ITreeProvider from IDataProvider? They looks compatible for now. I can add IDataProvider to my implementation class and delegate roots() to iterator(). From the other hand it is just extra method. One thing to mention. There should be full row select option. You just need to

Re: [ANN] wicket-tree project

2009-07-26 Thread Vladimir K
I find the source code pretty clean and easy to understand. Especially if you are familiar with DataTable component. For instance I see that it is easy to use Ajax versions of Toolbars instead of static (however DefaultAjaxFallbackTreeTable would be usefull) Looking forward for the

Re: Reading Wicket source code

2009-07-26 Thread Vladimir K
For me the magic is how wicket is managing pages and their versions. For instance I realized that it increments version when preparing the page for render. But when I was debugging the code related to version manager I felt lost :) All the other stuff is pretty complex but not difficult to

Re: Reading Wicket source code

2009-07-26 Thread Martin Makundi
Coding style is not the best in all parts, fro reading point of view, definitely ... ** Martin 2009/7/26 Vladimir K koval...@gmail.com: For me the magic is how wicket is managing pages and their versions. For instance I realized that it increments version when preparing the page for render.

Re: [ANN] wicket-tree project

2009-07-26 Thread Sven Meier
Hi, I've added single selection to the example. I'm not sure how sorting and filtering applies to hierarchical data though. API will be finalized after sufficient feedback from the Wicket community - so keep on firing questions ;). Sven On So, 2009-07-26 at 01:51 -0700, Vladimir K wrote:

Re: [ANN] wicket-tree project

2009-07-26 Thread Vladimir K
Just make IDataProvider in charge for sorting and filtering like DataTable does. Filtering in tree could be seen in Eclipse preferences for instance. svenmeier wrote: Hi, I've added single selection to the example. I'm not sure how sorting and filtering applies to hierarchical data

Re: [ANN] wicket-tree project

2009-07-26 Thread Sven Meier
Hi, ITreeProvider and IDataProvider are not exactly compatible, I don't think we gain anything by extending the former from the latter. Selection is not part of the tree components. There are just to many different notions of selection: - single/multiple selection - subtree selection -

Re: Ajax indicator turning off

2009-07-26 Thread Paolo Di Tommaso
Yep, intercept the ajax call and inc/dec a counter -- paolo On Sat, Jul 25, 2009 at 10:03 AM, John Patterson jdpatter...@gmail.comwrote: Hi, I notice that when I have two ajax requests overlapping the indicator is turned off when the first one completes. Start AJAX request A - turns on the

Re: [ANN] wicket-tree project

2009-07-26 Thread Vladimir K
svenmeier wrote: ITreeProvider and IDataProvider are not exactly compatible, I don't think we gain anything by extending the former from the latter. I don't insist. But you do have IDataProvider wrapper over ITreeProvider in TableTree.java :) Selection is not part of the tree

Re: [ANN] wicket-tree project

2009-07-26 Thread Matej Knopp
Does TableTree support partial (ajax) updates? -Matej On Sun, Jul 26, 2009 at 3:00 PM, Vladimir Kkoval...@gmail.com wrote: svenmeier wrote: ITreeProvider and IDataProvider are not exactly compatible, I don't think we gain anything by extending the former from the latter. I don't insist.

Re: [ANN] wicket-tree project

2009-07-26 Thread Vladimir K
It does not. It is stated at the bottom of the home page http://code.google.com/p/wicket-tree/ For ajax updates it should behave not worse than DataTable component. Matej, I find the idea of re-using data provider, columns and cells developed for DataTable very important. Matej Knopp-2 wrote:

Questions about Wicket sessions

2009-07-26 Thread David Chang
Reading Wicket in Action to learn Wicket, I understand that sessions are not thread-safe. I have the following questions about a Wicket app: 1. If I open another tab on the same browser (IE or FF), visitor activities on the same Wicket app are considered in the same session? 2. If I start

AjaxSubmitLink does not work in 1.4-rc7

2009-07-26 Thread Martin Makundi
Hi! AjaxSubmitLink does not work in 1.4-rc7 Anybody know a workaround: https://issues.apache.org/jira/browse/WICKET-2400 ? ** Martin - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands,

Re: Questions about Wicket sessions

2009-07-26 Thread David Chang
Another question: By default, Wicket's SessionStore stores older pages to a temporary directory. It is stored as files, correct? In case of a large website demanding high performance, it should be stored in a high-performance database, correct? Thanks! --- On Sun, 7/26/09, David Chang

Re: [ANN] wicket-tree project

2009-07-26 Thread Sven Meier
ITreeProvider and IDataProvider are not exactly compatible, I don't think we gain anything by extending the former from the latter. I don't insist. But you do have IDataProvider wrapper over ITreeProvider in TableTree.java :) Yes, indeed ;). I din't find API to control expanded state of

UnauthorizedActionException wrapped in an InvalidUrlException - how to deal with it ?

2009-07-26 Thread Olger Warnier
Hi Developers, Slowly but surely I move through the tests of the wicket security framework. In one test, the SecureFormTest, i ran into some strange behaviour. It starts with an exception like this: org.apache.wicket.protocol.http.request.InvalidUrlException:

Re: Questions about Wicket sessions

2009-07-26 Thread Erik van Oosten
David, Please note Sessions are not thread-safe in Wicket context means that the Session /object/ is not thread-safe. Note that requests that fall within a session (except for resources) are handled serially. Only when you use session clustering this guarantee can not be made. 1. It depends

Re: AjaxSubmitLink does not work in 1.4-rc7

2009-07-26 Thread Igor Vaynberg
the link works just fine, wicket tester doesnt work right. -igor On Sun, Jul 26, 2009 at 9:15 AM, Martin Makundimartin.maku...@koodaripalvelut.com wrote: Hi! AjaxSubmitLink does not work in 1.4-rc7 Anybody know a workaround: https://issues.apache.org/jira/browse/WICKET-2400 ? ** Martin

Re: Questions about Wicket sessions

2009-07-26 Thread Igor Vaynberg
On Sun, Jul 26, 2009 at 8:53 AM, David Changdavid_q_zh...@yahoo.com wrote: 1. If I open another tab on the same browser (IE or FF), visitor activities on the same Wicket app are considered in the same session? same session, this is why we provide browser auto-multiwindow support, so we can

Re: AjaxSubmitLink does not work in 1.4-rc7

2009-07-26 Thread Martin Makundi
the link works just fine, wicket tester doesnt work right. Sorry for the inconcise title, yes, the link works, the test doesn't. I am doing test-first approach so I sometimes exaggerate, but yes, the test does not work. ** Martin On Sun, Jul 26, 2009 at 9:15 AM, Martin

Re: UnauthorizedActionException wrapped in an InvalidUrlException - how to deal with it ?

2009-07-26 Thread Igor Vaynberg
if the form is disabled why is it allowed to be submitted? -igor On Sun, Jul 26, 2009 at 10:58 AM, Olger Warnierol...@xs4all.nl wrote: Hi Developers, Slowly but surely I move through the tests of the wicket security framework. In one test, the SecureFormTest, i ran into some strange

Re: AjaxSubmitLink does not work in 1.4-rc7

2009-07-26 Thread Matej Knopp
you can always submit a patch you know. -Matej On Sun, Jul 26, 2009 at 8:53 PM, Martin Makundimartin.maku...@koodaripalvelut.com wrote: the link works just fine, wicket tester doesnt work right. Sorry for the inconcise title, yes, the link works, the test doesn't. I am doing test-first

Re: AjaxSubmitLink does not work in 1.4-rc7

2009-07-26 Thread Martin Makundi
you can always submit a patch you know. I haven't a clue how to fix it, unfortunately. This is the part I am most unfamiliar with in Wicket. I don't even know how it is supposed to work (=on code level). -Matej On Sun, Jul 26, 2009 at 8:53 PM, Martin

Re: UnauthorizedActionException wrapped in an InvalidUrlException - how to deal with it ?

2009-07-26 Thread Olger Warnier
Hi Igor, if the form is disabled why is it allowed to be submitted? In a test you can ;) When you know what to submit, it is possible to submit those values without a page, although I can imagine that it is quite hard to achieve due to the way wicket handles form variables and stuff (via

AW: AW: SSL - ajax login

2009-07-26 Thread Arthur Leigh Allen
Hi Igor, I used Firebug to have a look at the onClick event. I've inspected two links, one usual ajax link and one for the ssl login. Regarding the first link: href=?wicket:interface=:6:content:container:areaTop:2:panelTop:container:loginForm:linkForgotLogin:container:link::ILinkListener::

Re: UnauthorizedActionException wrapped in an InvalidUrlException - how to deal with it ?

2009-07-26 Thread Igor Vaynberg
then we are getting in a debate of what use an invalidurlexception really is. if we forward page expired and a bunch of other exceptions, why do we even need an invalidurlexception... the point is the user has submitted a form that they should not have been able to, it is an invalid url... i

Re: Questions about Wicket sessions

2009-07-26 Thread David Chang
Erik, thanks for your input. Please note Sessions are not thread-safe in Wicket context means that the Session /object/ is not thread-safe. Note that requests that fall within a session (except for resources) are handled serially. Only when you use session clustering this guarantee can

AW: AW: SSL - ajax login

2009-07-26 Thread Arthur Leigh Allen
btw: the xml code I saw showed me, that the login was successfully executed because login content was presented in the xml code. Von: Igor Vaynberg igor.vaynb...@gmail.com An: users@wicket.apache.org Gesendet: Freitag, den 24. Juli 2009, 21:51:48 Uhr Betreff:

Re: AW: SSL - ajax login

2009-07-26 Thread Igor Vaynberg
the href is not a problem; you seeing # appended to the end of the url is the correct behavior. what should have happened was the ajax call to that https url in the background. so what you should be looking into is why the ajax call with that https url was never made or response from it not

Re: Questions about Wicket sessions

2009-07-26 Thread Igor Vaynberg
no, incorrect. multiple browser tabs can be used to access the same session instance simultaneously. -igor On Sun, Jul 26, 2009 at 1:17 PM, David Changdavid_q_zh...@yahoo.com wrote: Erik, thanks for your input. Please note Sessions are not thread-safe in Wicket context means that the

Re: UnauthorizedActionException wrapped in an InvalidUrlException - how to deal with it ?

2009-07-26 Thread Alex Objelean
I just want to remind the reason why the InvalidUrlException was introduced: to avoid situations when user would tweak somehow the url and get the InternalError Page... I introduced a request for enhancement for InvalidUrlException feature and if there are any problems related to it, you can

Re: Questions about Wicket sessions

2009-07-26 Thread David Chang
Igor, thank you for the correction. Really appreciated. Thanks! --- On Sun, 7/26/09, Igor Vaynberg igor.vaynb...@gmail.com wrote: From: Igor Vaynberg igor.vaynb...@gmail.com Subject: Re: Questions about Wicket sessions To: users@wicket.apache.org Date: Sunday, July 26, 2009, 4:23 PM no,

Re: UnauthorizedActionException wrapped in an InvalidUrlException - how to deal with it ?

2009-07-26 Thread Igor Vaynberg
my point is that this case is on the fence. it is an invalid url, and it is a security violation. so which one should take precendence? my other concern is that we would have to maintain a long list of exceptions that should be passed through, which becomes a pita. -igor On Sun, Jul 26, 2009

Re: UnauthorizedActionException wrapped in an InvalidUrlException - how to deal with it ?

2009-07-26 Thread Alex Objelean
If you think this would help, then you could remove InvalidUrlException and invalidate the jira RFE created by me... I don't think this would heart anyone... Alex igor.vaynberg wrote: my point is that this case is on the fence. it is an invalid url, and it is a security violation. so

Re: advice about ImageSubmitButton and AjaxImageSubmitButton

2009-07-26 Thread Vladimir K
In addition I need something like AjaxFallbackImageSubmitButton. Just to let you know that he is not alone :) From my perspective Wicket should provide basic Button and mixins (mostly behaviours) to add Ajax, AjaxFallback, Image, Submit etc. So users could just get the button they need by adding

Re: [ANN] wicket-tree project

2009-07-26 Thread Vladimir K
Sven, i added TableTree (why not TreeTable?) to my panel and added a button to switch between tree and table representation. The problem is that DataTable relies on the user that binds it to the table tag at the time when your TableTree contains table within. It is not a big deal just an

Re: [ANN] wicket-tree project

2009-07-26 Thread Vladimir K
Since you update AbstractTree in ajax request I can't omit etra 'div' tag that encloses table tag neither by using wicket:component nor by calling setRenderBodyOnly(true). Vladimir K wrote: Sven, i added TableTree (why not TreeTable?) to my panel and added a button to switch between tree

Re: [ANN] wicket-tree project

2009-07-26 Thread Sven Meier
Hi, *Nested*Tree... *Table*Tree... I hope this makes sense ;). I will align the markup for TableTree with the markup of DataTable, thanks for the hint. Sven On So, 2009-07-26 at 16:29 -0700, Vladimir K wrote: Sven, i added TableTree (why not TreeTable?) to my panel and added a button to