RE: [Wicket-user] lists

2005-07-31 Thread Igor Vaynberg
Which rfe? -Igor -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Phil Kulak Sent: Saturday, July 30, 2005 10:50 PM To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] lists I just found the code you attached to the rfe. I

Re: [Wicket-user] Feedback Refactor Idea

2005-07-31 Thread Jonathan Locke
actually, i think it would be better to have a base class for feedback components that implements the recursive message gathering and which can be given a Class at which to stop. it could also include a filter method to allow the feedback to filter components in terms of which components get

Re: [Wicket-user] lists

2005-07-31 Thread Phil Kulak
Oh sorry, I meant the code that you attached to this topic about 20 or so up. On 7/30/05, Igor Vaynberg [EMAIL PROTECTED] wrote: Which rfe? -Igor --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find

Re: [Wicket-user] How to get a HttpServletResponse?

2005-07-31 Thread Juergen Donnerstag
Gili, are you sure you need it? You didn't say what you try to do. But in many cases FormComponent.setPersistent(true/false) should do it as well. Juergen On 7/30/05, Matej Knopp [EMAIL PROTECTED] wrote: page.getWebRequestCycle().getWebResponse().getHttpServletResponse() -Matej Gili

Re: [Wicket-user] Feedback Refactor Idea

2005-07-31 Thread Phil Kulak
Yea, I like that too. How do we deal with multiple forms, each with a panel just before it in the tree? Do we just require that you put the panel inside each form in that case? I'm fine with that, unless it could break (X)HTML compliance or layouts for some people. On 7/30/05, Jonathan Locke

Re: [Wicket-user] Feedback Refactor Idea

2005-07-31 Thread Jonathan Locke
but not its children. so maybe it's just this until we find a need for recursion control: public void add(Component component, boolean recurse) { } crap. it's getting late. i meant this of course: public void add(Component component) { } and if component instanceof

Re: [Wicket-user] Feedback Refactor Idea

2005-07-31 Thread Jonathan Locke
btw, it's a total hack and an ugly cast, but we should be able to support backwards compatibility with the current Form(... IFeedback) constructor by simply adding the form to the feedback. /** * * @deprecated ... */ public Form(String id, ..., IFeedback feedback) { ...

[Wicket-user] How to invalidate session?

2005-07-31 Thread Matej Knopp
Hi. I've a logout link and I want it to invalidate the session and redirect to homepage. Is there a simple way to do this? Calling Session.invalidate() in link handler throws java.lang.IllegalStateException. Thanks -Matej --- SF.Net

Re: [Wicket-user] How to invalidate session?

2005-07-31 Thread Matej Knopp
Thanks. Works like charm :) -Matej Jonathan Locke wrote: public final class SignOut extends UnauthenticatedVoiceTribeWebPage { /** * Construct */ public SignOut() { getVoiceTribeWebSession().setUser(null); } @Override protected void onEndRequest() {

Re: [Wicket-user] Hibernate Sessions and Wicket

2005-07-31 Thread Johan Compagner
I know there is some sourcecode for Wicket that can reattach objects automatically, but you need to put the entity in some sort of container (model) that can deal with the reattaching part. But I`m not too happy with this solution because it makes pages less clear. I never did this when I used

Re: [Wicket-user] lists

2005-07-31 Thread Johan Compagner
please post a mail when you have committed it so that we can look at it And maybe if more people like it then we can move it to extensions so that it becomes part of the wicket. I don't see it as a direct replacement of ListView, but maybe pagablelist. (List that are really used to display

Re: [Wicket-user] Hibernate Sessions and Wicket

2005-07-31 Thread Johan Compagner
Peter Veentjer - Anchor Men wrote: What didn't you use in swing? No models? that is not really possible you have to use models in swing (and also in wicket) I don`t think you understand my reply. I have no problems with models, but I have problems with wrappers around objects

Re: [Wicket-user] Hibernate Sessions and Wicket

2005-07-31 Thread Matej Knopp
Matej Knopp wrote: How can you ensure that a session will be closed? What if user got disconnected? Will the session hang open until the http session timeout? Another problem that comes to my mind is that hibernate session is not thread safe. Using one session through multiple request you

RE: [Wicket-user] Hibernate Sessions and Wicket

2005-07-31 Thread Peter Veentjer - Anchor Men
I still don't understand what you find so complex around a simple model that handles the detach/attach for youre components. --- To be honest I don`t think wrapping a single object can be called a model, it is just a wrapper. And I don`t have much problems with it

Re: [Wicket-user] Hibernate Sessions and Wicket

2005-07-31 Thread Johan Compagner
What are you willing to call for a component constructor? like textfield: And you don't have to worry about the underlying detachable code.. That just happens. If you use the objects in a view this wouldn`t be much of a problem. But sometimes a Page needs

Re: [Wicket-user] Re: Re: [Wicket-develop] Re: Wicket 1.1-beta2 or rc1 this weekend?

2005-07-31 Thread Dariusz Wojtas
I have just attached polish translation - derived from the 'en'. attached in this thread UTF-8 encoded (ascii had problems). Tested under Firefox 1.04 and IE 6 - works perfecty. I just added single line about the translator. I hope it's not too late for this release :) Darek On 7/30/05, Eelco

Re: [Wicket-user] Markup inheritence in a component?

2005-07-31 Thread Erik van Oosten
I hate to answer my own questions, but after an hour of coding, I found out it's not possible: wicket.markup.MarkupException: Markup for a panel component has to contain part 'wicket:panel' [markup = file:/../classes/zout/site/menu/SimpleMenuItem.html, index = 3, current =

Re: [Wicket-user] lists

2005-07-31 Thread Johan Compagner
i committed them to wicket-stuff. let's play with them some more and if more people do like it we could promote it to wicket-extentions. johan Igor Vaynberg wrote: Guys, I didn't have as much time as I thought to spend on this stuff this weekend so im just going to put out whatever I have

Re: [Wicket-user] Wicket+Spring+Hibernate Annotations

2005-07-31 Thread Phil Kulak
Well, I got it all done, but SF won't let me log in to commit it. Either I finally pushed Eelco over the edge or I'll just have to try again tomorrow. On 7/30/05, Abdullah Jibaly [EMAIL PROTECTED] wrote: Excellent, can't wait to look at it! --- Phil Kulak [EMAIL PROTECTED] wrote: cdapp2

Re: [Wicket-user] PageableListView

2005-07-31 Thread Jonathan Locke
yes. i agree. Dzenan Ridjanovic wrote: ... I don't see it as a direct replacement of ListView, but maybe pagablelist. (List that are really used to display data/object from db) johan PageableListView may be used to list data in pages that do not come from db (e.g., main memory

Re: [Wicket-user] Class ImageMap jfreechart ImageMapUtilities.writeImageMap

2005-07-31 Thread Jonathan Locke
that sounds pretty tough. seems like it would be better for jfreechart to give you the rectangles that need to be turned into the image map and then you could add the links using the normal wicket image map component. maybe look at the jfreechart source code for writeImageMap? btw, if you

Re: [Wicket-user] Save and reload scrollposition

2005-07-31 Thread Phil Kulak
You mean you want the browser to have the exact same window position after the click? The best way would be to use JavaScript instead of a full page reload. On 7/31/05, pommeslk [EMAIL PROTECTED] wrote: Hi, in my application I have a table where each row can be selected for editing

[Wicket-user] What's the state of using 1.5 generics in wicket?

2005-07-31 Thread David Liebeherr
Hi all, i read some posts about the dicsussion if generics shall be used in wicket. But those posts are realy old. So how is the state today with the generics thing? I think for exmaple for ListViews it will be a very valuable thing to use generics there! The need for doing unsafe casts

Re: [Wicket-user] What's the state of using 1.5 generics in wicket?

2005-07-31 Thread Martijn Dashorst
Considering most companies are still working on JDK 1.4 for their application servers (WebSphere being the numbero uno), there is a slim chance you will find Java 5 features in Wicket core. Of course there can be Java 5 /extensions/ and components outside of the Wicket project but that will

Re: [Wicket-user] Save and reload scrollposition

2005-07-31 Thread Martijn Dashorst
Or use the JavaScript function 'focus()'? Martijn Jonathan Locke wrote: just an idea... but maybe some fancy trick with anchor links? Phil Kulak wrote: You mean you want the browser to have the exact same window position after the click? The best way would be to use JavaScript instead of