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

2005-07-31 Thread Juergen Donnerstag
It is only the formcomponent's value, not the form, which is stored in a cookie. A typical use case is to remember the login and password to provide a rememberMe functionality and signin2 actually does it like that. Very straight forward, very easy to use. Juergen On 8/1/05, Phil Kulak <[EMAIL PR

Re: [Wicket-user] Save and reload scrollposition

2005-07-31 Thread Matej Knopp
In one project, I did this using javascript, it worked fairy well. In each link I called function, that saved the scroll position as cookie and after refresh I reloaded the position and scrolled the document. function setCookie(name, value, expires, path, domain, secure) { var curCookie

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

2005-07-31 Thread Eelco Hillenius
:) I couldn't commit yesterday either. But I can now. Eelco Phil Kulak wrote: 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: Exce

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 a

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 ser

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

2005-07-31 Thread Phil Kulak
No, you're going to want to use a cookie there. I've never actually figured out the use case for saving a form in cookies. Also, I don't think I'm comfortable with sending all that data across every request regardless of weather it's needed or not. On 7/31/05, Gili <[EMAIL PROTECTED]> wrote: > Hi

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

2005-07-31 Thread Tao Lin
Hi, Jonathan Thank you for your reply. In fact, I am very new for both wicket and jfreechart. And I am also new for Java too. So I don't think I can make a wicket dynamic chart component, but what I can do is put my code in here and show how to create a dynamic image, and let the wicket expert

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

2005-07-31 Thread Gili
Hi Juergen, I want to remember the user's shopping cart ID across browser sessions. FormComponent's Javadoc is too brief. What does this do? When is it supposed to be used? Thanks, Gili Gili, are you sure you need it? You didn't say what you try to do. But in many cases FormComponent.setP

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

Re: [Wicket-user] Save and reload scrollposition

2005-07-31 Thread Jonathan Locke
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 a full page reload. On 7/31/05, pommeslk <[EMAIL PROTECTED]> wrote: H

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 ed

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

[Wicket-user] Class ImageMap & jfreechart ImageMapUtilities.writeImageMap

2005-07-31 Thread Tao Lin
Hi, all I try to use Wicket ImageMap with jfreechart ImageMapUtilities.writeImageMap function. I read through the wicket linkomatic example and ImageMap class document. It looks like it have to use addXXXLink() to create a link for the image. But in jfreechart I have to use ImageMapUtilities.writ

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

[Wicket-user] PageableListView

2005-07-31 Thread Dzenan Ridjanovic
... 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 "database"), so please keep ListView and PageableLis

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

[Wicket-user] Save and reload scrollposition

2005-07-31 Thread pommeslk
Hi, in my application I have a table where each row can be selected for editing like in Phils Weblog (http://jroller.com/page/pKulak/20050729). But when I click on the row I always start at the top of the page. How can I save the scroll position and load it after the refresh? Is there any

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 s

Re: [Wicket-user] Feedback Refactor Idea

2005-07-31 Thread Phil Kulak
Oh, okay. I really like that. It's a lot more control then we have now and a lot more intuitive. --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, infor

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

2005-07-31 Thread Eelco Hillenius
Yeah, you're right. It is a bug, as I think it should work. Markup inheritance is still pretty new... I opened: http://sourceforge.net/tracker/index.php?func=detail&aid=1248778&group_id=119783&atid=684975 Eelco Erik van Oosten wrote: I hate to answer my own questions, but after an hour of co

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 '' [markup = file:/../classes/zout/site/menu/SimpleMenuItem.html, index = 3, current = '' (line 5, column 2)] at

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 Hil

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] Hibernate Sessions and Wicket

2005-07-31 Thread Eelco Hillenius
Models are a core concept in Wicket. You don't have to use models; implement your own custom objects. But as in the end a model is just an interface (IModel), you can do pretty much anything you want. We ship some models that we think are convenient for users, but you can follow any scheme 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 personall

[Wicket-user] Markup inheritence in a component?

2005-07-31 Thread Erik van Oosten
Hi, Can I do the markup inheritence trick as described on Phil's weblog with any component and not just pages? Or do I need to use a Border? I am still working on my menu :) and I want to introduce different types of MenuI

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 coul

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 t

Re: [Wicket-user] Hibernate Sessions and Wicket

2005-07-31 Thread Matej Knopp
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 could get into concuren

RE: [Wicket-user] Hibernate Sessions and Wicket

2005-07-31 Thread Peter Veentjer - Anchor Men
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 that controle attaching/detaching. It

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

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

[Wicket-user] Hibernate Sessions and Wicket

2005-07-31 Thread Peter Veentjer - Anchor Men
I have a question about Hibernate and Wicket. The company I work for is preparing to replace our current webframework: Maverick by Wicket/Tapestry but we first want to understand a few problems. One of the problems with the frameworks I mentioned above is that it we have to deal with detached ob

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] How to invalidate session?

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

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

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) { ... ((AbstractFeed

[Fwd: Re: [Wicket-user] Feedback Refactor Idea]

2005-07-31 Thread Jonathan Locke
so the usage for multiple feedback panels on multiple forms and a feedback panel for the whole page that doesn't include the forms would look like this: public MyPage extends WebPage { public MyPage() { // Add feedback panel for page that doesn't include subforms FeedbackPan

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 Container

Re: [Wicket-user] Feedback Refactor Idea

2005-07-31 Thread Jonathan Locke
no. i failed to convey something important. the location of the feedback component and the component(s) it collects messages from are completely independent. it doesn't matter where either one is located. looks like this: public AbstractFeedback { ... public void add(Component comp

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

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