RE: users, please give us your opinion: what is your take on generics with Wicket

2008-06-04 Thread Stefan Lindner
Igor Vaynberg wrote >i am wondering how many of the "keep as is in trunk" votes came from people who only imagined what their code would look like and havent >actually hit the numerous pain points those of us who did code gainst it hit. I'm one of the "keep as is in trunk" users and I use 1.4 tru

Re: users, please give us your opinion: what is your take on generics with Wicket

2008-06-04 Thread Jan Kriesten
hi stefan, Maybe the posts like "I do not use Models" or "Only 20% or our components have Models" come from the same background as my early wicket adoption. i don't think you use compoundpropertymodels very often, so your mileage may be very different how often you use component models. an

Re: setPageExpiredErrorPage(PageExpired.class) -> Login page loaded instead of PageExpired page

2008-06-04 Thread Maurice Marrink
I thought it better to reply here, so everyone can find it back later :) As said before by default any self especting authorization strategy will redirect to a login page if it detects that the user is not authorized for the page / component currently being created. So the trick is to make sure th

Inmethod grid: Paging calls DataSource.query twice

2008-06-04 Thread RUMikeP
Hi Please can someone let me know if it is bug or if there is a reason why when paging using the inmethod data grid, two calls are made to the datasource, one to get the current page's data and one to get the data for the page that you are navigating to. Setting a breakpoint on the datasource.qu

Re: wicket-auth-roles - Redirect to LoginPage instead of SessionExpiry Page

2008-06-04 Thread Maurice Marrink
See my reply in the other thread. Oh and next time could you keep it to one thread ;) thanks. Maurice On Wed, Jun 4, 2008 at 3:12 AM, mfs <[EMAIL PROTECTED]> wrote: > > Guys, > > I am using wicket-auth-roles which so far is working greaet serving all my > purposes. > > Though I am stuck in this

Re: (Class>) casting troubles

2008-06-04 Thread Rod Good
Hi, I'm getting inconvertible type errors when I compile from Maven on the command line with Java 6. Does anyone know if this issue was resolved ? I am building against 1.4-m2 - downloaded today (04-06-2008). The issue is the same as noted by Ryan Mckinley on 05/21/2008 : > > strangely, th

Re: (Class>) casting troubles

2008-06-04 Thread Johan Compagner
Yeah it is very strange that you get different errors in eclipse and javac. I wonder which one is correcct.. But you have to generify the Page then it should work fine (like ) I think we just need to drop the in that example What do you exactly call? johan On Wed, Jun 4, 2008 at 9:39 AM, Rod

Re: Example of wicketstuff-minis' Veil

2008-06-04 Thread Nino Saturnino Martinez Vazquez Wael
I think I ran into that problem with veil too... Igor Vaynberg wrote: can you paste the stack trace please? are you using latest trunk? -igor On Tue, Jun 3, 2008 at 6:38 AM, nitinkc <[EMAIL PROTECTED]> wrote: I need an example of wicketstuff-minis' veil behavior. I added this to one of my

Re: setPageExpiredErrorPage(PageExpired.class) -> Login page loaded instead of PageExpired page

2008-06-04 Thread mfs
sure will take a look...thanks Mr Mean wrote: > > I thought it better to reply here, so everyone can find it back later :) > > As said before by default any self especting authorization strategy > will redirect to a login page if it detects that the user is not > authorized for the page / comp

Re: users, please give us your opinion: what is your take on generics with Wicket

2008-06-04 Thread Eelco Hillenius
> it all depends, on how and what you're developing. Yeah. I actually use less and less models in the regular way nowadays. I use plenty of panels (the app I work on hardly uses separate pages) that nest other panels in them (typically detail views or dialogs) that reuse models of the parent. But

Re: (Class>) casting troubles

2008-06-04 Thread Peter Ertl
I remember that having more than one wildcard in an type expression seems to be inherently broken. Usually you can rewrite something like void foo(Class> pageClass) into something like > void foo(Class pageClass) I would bet this solves your problem :-) However, nobody can explain why.

Re: users, please give us your opinion: what is your take on generics with Wicket

2008-06-04 Thread Johan Compagner
i think the only real other way is what is already possible Just dont keep references to the Component (just add them to there parents) and keep references to the models of those components. and work with models only johan On Wed, Jun 4, 2008 at 10:24 AM, Eelco Hillenius <[EMAIL PROTECTED]> wrot

Re: Wicket cheat sheet, solve your wicket problem fast?

2008-06-04 Thread Frank Bille
It appears that we can't do so much at the moment. What you can do is to fax a CLA to Apache[0] and when that is registered then you should be part of the asf-cla group which now has the appropriate rights to add attachments. Frank [0]: http://www.apache.org/licenses/#clas On Tue, Jun 3, 2008 at

Re: Inmethod grid: Paging calls DataSource.query twice

2008-06-04 Thread Matej Knopp
Hi, it shouldn't be called twice. I'll take a look into it. -Matej On Wed, Jun 4, 2008 at 9:36 AM, RUMikeP <[EMAIL PROTECTED]> wrote: > > Hi > > Please can someone let me know if it is bug or if there is a reason why when > paging using the inmethod data grid, two calls are made to the datasourc

Problem: Check within a ListView

2008-06-04 Thread Kai Mütz
Hi, I have a ListView nested in a CheckGroup which works actually fine. In some cases I have to disable (or make invisible) a certain Check within the Checkgroup. e.g. CheckGroup roleGroup = new CheckGroup("roles"); add(roleGroup); roleGroup.add(new CheckGroupSelector("selector")); ListView roleL

Re: Wicket cheat sheet, solve your wicket problem fast?

2008-06-04 Thread Nino Saturnino Martinez Vazquez Wael
It looks like I can also email a scanned copy, but to where do I email? Frank Bille wrote: It appears that we can't do so much at the moment. What you can do is to fax a CLA to Apache[0] and when that is registered then you should be part of the asf-cla group which now has the appropriate rights

Re: Wicket cheat sheet, solve your wicket problem fast?

2008-06-04 Thread Frank Bille
secretary@ it says in that page. Frank On Wed, Jun 4, 2008 at 11:53 AM, Nino Saturnino Martinez Vazquez Wael < [EMAIL PROTECTED]> wrote: > It looks like I can also email a scanned copy, but to where do I email? > > > Frank Bille wrote: > >> It appears that we can't do so much at the moment. What

How to use the NavOMatic?

2008-06-04 Thread BurnInHell
Hi, we have developed a framework with a bunch of sites, each in a own package. What we need is a navigation bar, in the functionality of navomatic, which works. Our problems with navomatic are the following: 1)You have to define the s only in the html, and the pages have to be in the same directo

Re: users, please give us your opinion: what is your take on generics with Wicket

2008-06-04 Thread James Carman
On Wed, Jun 4, 2008 at 4:24 AM, Eelco Hillenius <[EMAIL PROTECTED]> wrote: >> it all depends, on how and what you're developing. > > Yeah. I actually use less and less models in the regular way nowadays. > I use plenty of panels (the app I work on hardly uses separate pages) > that nest other panel

Re: What is cool on Wicket?

2008-06-04 Thread Eyal Golan
Thanks Gwyn and John, Anyway, here's what I wrote up till now: Clean / clear separation of presentation and logic Supports Ajax Security Enabling reuse Manages state Markup inheritance }POJO for logic No XML, no configuration files Stateful i18n Manipulate HTML tags and header via Java Any though

Re: Wicket cheat sheet, solve your wicket problem fast?

2008-06-04 Thread Nino Saturnino Martinez Vazquez Wael
doh, dont make me think again:) Thats the nice thing with wicket. I get the point though Frank Bille wrote: secretary@ it says in that page. Frank On Wed, Jun 4, 2008 at 11:53 AM, Nino Saturnino Martinez Vazquez Wael < [EMAIL PROTECTED]> wrote: It looks like I can also email a scanned cop

Re: users, please give us your opinion: what is your take on generics with Wicket

2008-06-04 Thread Matej Knopp
There are also implementation issues that need to be considered. Currently the model is stored in a way that it doesn't take any place when not used. Having multiple models is rare, however, having one model that can (but doesn't have to) be used is more common imho. Wicket is kinda optimized for t

[FINALISED SCHEDULE] London Wicket Event at Google UK, tonight

2008-06-04 Thread jWeekend
Here's the schedule for tonight: 18:15 Pizza 18:30 Cemal - Welcome, Schedule 18:35 Richard - "Wicket Overlay Panel For Google Maps" 19:00 Cemal & Al - Round the room (30 seconds each: introduction, what you are doing with Wicket) 19:15 Cemal - Announcements/Draw details and then "More Control Us

Re: [FINALISED SCHEDULE] London Wicket Event at Google UK, tonight

2008-06-04 Thread James Carman
Is there a webcast? I'm interested in the Stateless vs. Stateful On Wed, Jun 4, 2008 at 7:48 AM, jWeekend <[EMAIL PROTECTED]> wrote: > > Here's the schedule for tonight: > > 18:15 Pizza > 18:30 Cemal - Welcome, Schedule > 18:35 Richard - "Wicket Overlay Panel For Google Maps" > 19:00 Cemal & Al -

Re: users, please give us your opinion: what is your take on generics with Wicket

2008-06-04 Thread Johan Compagner
soo interface IModelComponent { public IModel getModel() } and remove getModel/getModelObject methods from component itself? But then everybody that does use models have to implement it.. On Wed, Jun 4, 2008 at 12:37 PM, James Carman <[EMAIL PROTECTED]> wrote: > On Wed, Jun 4, 2008 at

Re: users, please give us your opinion: what is your take on generics with Wicket

2008-06-04 Thread Matej Knopp
I don't really think this is the right discussion we should be having now :) Maybe 1.5 would be the right release for changes like that (if they are justified, which i'm not really convinced it is. Anyway, as I said before, storing (single) model in component has no overhead, so I don't really see

recursive component

2008-06-04 Thread Stefan Selariu
Hi guys! I need to make generate something like this dynamically:    select      This is a tree

Re: users, please give us your opinion: what is your take on generics with Wicket

2008-06-04 Thread Jan Kriesten
hi johan, and remove getModel/getModelObject methods from component itself? But then everybody that does use models have to implement it.. that would be the consequence with it's tradeoff. i wouldn't have a problem with that though: val myLabel = new Label('id') with StringModel( ":-P" ) b

Re: recursive component

2008-06-04 Thread Martijn Dashorst
RecursivePanel extends Panel { public RecursivePanel() { if(somecondition) add(new RecursivePanel("recurse")); else add(new EmptyPanel("recurse")); } } Martijn On Wed, Jun 4, 2008 at 2:04 PM, Stefan Selariu <[EMAIL PROTECTED]> wrote: > Hi guys! > > I need to make g

Re: [FINALISED SCHEDULE] London Wicket Event at Google UK, tonight

2008-06-04 Thread jWeekend
We've had mixed success with our video technology - we will try again tonight. I suggested the topic to Ian, who kindly put some thoughts down for a brief presentation. Having seen the slides, it seems the key points are now covered, but I find this is an area where there is a lack of clear defin

Re: (Class>) casting troubles

2008-06-04 Thread Martin Funk
Hi Peter, 2008/6/4 Peter Ertl <[EMAIL PROTECTED]>: > I remember that having more than one wildcard in an type expression seems > to be inherently broken. I hope it is not, I hope it is just hard to understand. > > Usually you can rewrite something like > > void foo(Class> pageClass) I think

Re: Css and path issues

2008-06-04 Thread Manuel Corrales
Hi, i fixed this issue yesterday thanks to the help on the irc channel. My issue was the way i was defining the css, i was using add(new StyleSheetReference("pageCSS", *getClass()*, "styles/fenix.css")); and the getClass() part was the problem. I change that for nameOfTheClass.class and then the

Re: recursive component

2008-06-04 Thread Stefan Selariu
Some corrections :) I don't need to generate wicket markup. The example is the desirable wicket markup that will support the dynamical generation. Each node component is thought as a Loop. The think is the markup is required to be like this. The only thing I'd like to reduce is the written java

Re: recursive component

2008-06-04 Thread Jan Kriesten
hi stefan, The think is the markup is required to be like this. The only thing I'd like to reduce is the written java code. In short I'd like to create a reusable node component that I can configure (with populateCaption() and populateChildren() callback methods perhaps) just like the Loop :)

Re: recursive component

2008-06-04 Thread Stefan Selariu
Thanks for the answers. The only annoying thing is that I have to create a different panel for each node since the captions differ on each level. Or am I wrong? Stefan On Wed, 2008-06-04 at 14:22 +0200, Jan Kriesten wrote: > hi stefan, > > > The think is the markup is required to be like this.

Stateless vs Stateful

2008-06-04 Thread jWeekend
continuing on from jwcarman's http://www.nabble.com/Re%3A--FINALISED-SCHEDULE--London-Wicket-Event-at-Google-UK%2C-tonight-p17644874.html post ... We do get questions directly about, or that turn out to be about "stateful vs stateless" in Wicket. One of my colleagues at jWeekend posted http:/

Re: recursive component

2008-06-04 Thread Martijn Dashorst
Yes. you are wrong. Read about Models: http://cwiki.apache.org/WICKET/working-with-wicket-models.html Martijn On Wed, Jun 4, 2008 at 2:29 PM, Stefan Selariu <[EMAIL PROTECTED]> wrote: > Thanks for the answers. > > The only annoying thing is that I have to create a different panel for > each node

how to pass parameters while setting page expired error page

2008-06-04 Thread Patel, Sanjay
I want to redirect to LoginPage if session expires and want to show message that "your session expired, please login again." Is there any way that I can pass parameters to LoginPage ?? getApplicationSettings().setPageExpiredErrorPage(LoginPage.class); Thanks, Sanjay. ---

Re: Example of wicketstuff-minis' Veil

2008-06-04 Thread nitinkc
Here is the stack trace: Root cause:java.lang.IllegalStateException: This behavior is already bound to component. An instance of this behavior cannot be reused between components. Bound component: [MarkupContainer [Component id = test, page = , path = test.Button]] at org.wicketstuff.minis.vei

Re: recursive component

2008-06-04 Thread Alexis
Here's a basic treeview component i use (The backing models contain TreeNode objects) I made it abstract so the implementors just provide the fragment or panels that represent nodes. TreeView.java : public abstract class TreeView extends Panel { public TreeView(String markupId, final I

Re: recursive component

2008-06-04 Thread Stefan Selariu
I'm sorry but reading that didn't help. I was not able to find the answer for my problem. Maybe I'm to tired. If I do this: -- Loop is used here -- this comes from the page markup -- th

Re: recursive component

2008-06-04 Thread Stefan Selariu
Thanks, I know now where I went wrong. Best regards, Stefan On Wed, 2008-06-04 at 06:16 -0700, Alexis wrote: > Here's a basic treeview component i use (The backing models contain TreeNode > objects) > I made it abstract so the implementors just provide the fragment or panels > that represent node

New Window/Tab Scope

2008-06-04 Thread geke
Hi, I need a scope for every new window/tab, where I can put some data. I read, that is in the wishlist for wicket 1.5, but are there any best practices or suggestions? Kind regards, Georg -- View this message in context: http://www.nabble.com/New-Window-Tab-Scope-tp17648112p17648112.html S

Re: New Window/Tab Scope

2008-06-04 Thread Igor Vaynberg
nothing right now because its not implemented yet. in the future you will have access to a Window class and be able to subclass it to store your own data, just like you do with Session now... -igor On Wed, Jun 4, 2008 at 7:29 AM, geke <[EMAIL PROTECTED]> wrote: > > Hi, > > I need a scope for ever

Re: wicket-auth-roles - Redirect to LoginPage instead of SessionExpiry Page

2008-06-04 Thread Igor Vaynberg
but if you start two threads you are twice as likely to get an answer... -igor On Wed, Jun 4, 2008 at 12:38 AM, Maurice Marrink <[EMAIL PROTECTED]> wrote: > See my reply in the other thread. > > Oh and next time could you keep it to one thread ;) thanks. > > Maurice > > On Wed, Jun 4, 2008 at 3:1

Re: wicket-auth-roles - Redirect to LoginPage instead of SessionExpiry Page

2008-06-04 Thread Martijn Dashorst
But how does that work when I have a lock on you? Will the universe deadlock? Martijn On Wed, Jun 4, 2008 at 4:34 PM, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > but if you start two threads you are twice as likely to get an answer... > > -igor > > On Wed, Jun 4, 2008 at 12:38 AM, Maurice Marrink

Re: Use Spring with Wicket

2008-06-04 Thread Samit
Thanx Guys for ur quick response... Now i want to learn Integration of Wicket with Spring and Hibernate... Any help Thanks - Samit :confused: -- View this message in context: http://www.nabble.com/Use-Spring-with-Wicket-tp17600138p17648634.html Sent from the W

Re: wicket-auth-roles - Redirect to LoginPage instead of SessionExpiry Page

2008-06-04 Thread Igor Vaynberg
i dont think the universe will deadlock, but you will block for a very very long time :) there are already three threads that acquired the lock :) -igor On Wed, Jun 4, 2008 at 7:48 AM, Martijn Dashorst <[EMAIL PROTECTED]> wrote: > But how does that work when I have a lock on you? Will the univers

Re: Problem: Check within a ListView

2008-06-04 Thread Igor Vaynberg
you are not doing anything wrong, that is how things are meant to work. -igor On Wed, Jun 4, 2008 at 2:40 AM, Kai Mütz <[EMAIL PROTECTED]> wrote: > Hi, > > I have a ListView nested in a CheckGroup which works actually fine. In some > cases I have to disable (or make invisible) a certain Check wit

Re: how to pass parameters while setting page expired error page

2008-06-04 Thread Ryan Gravener
I haven't had to deal with this issue yet, but perhaps you can put this information in a cookie and read it when necessary? On Wed, Jun 4, 2008 at 9:04 AM, Patel, Sanjay <[EMAIL PROTECTED]> wrote: > I want to redirect to LoginPage if session expires and want to show > message that "your session e

Re: New Window/Tab Scope

2008-06-04 Thread Johan Compagner
it can be done i guess.. Turn on the multi window support/check in the settings. then extend: SecondLevelCacheSessionStore override createPageMap() now the bad thing is that you need to do super call to create it because that api is not really open But do a super call. And wrap it in your own I

Re: users, please give us your opinion: what is your take on generics with Wicket

2008-06-04 Thread Igor Vaynberg
why even have an interface? just detach all imodel fields via reflection! -igor On Wed, Jun 4, 2008 at 3:37 AM, James Carman <[EMAIL PROTECTED]> wrote: > On Wed, Jun 4, 2008 at 4:24 AM, Eelco Hillenius > <[EMAIL PROTECTED]> wrote: >>> it all depends, on how and what you're developing. >> >> Yeah

RE: Problem: Check within a ListView

2008-06-04 Thread Kai Mütz
Igor Vaynberg wrote: > you are not doing anything wrong, that is how things are meant to > work. > So, isn't it possible to add a disabled checkbox to a listview without removing the item from the corresponding collection? Kai -

Re: Use Spring with Wicket

2008-06-04 Thread James Carman
Well, the example I showed before does have hibernate working also. On Wed, Jun 4, 2008 at 10:50 AM, Samit <[EMAIL PROTECTED]> wrote: > > Thanx Guys for ur quick response... > > Now i want to learn Integration of Wicket with Spring and > Hibernate... > > Any help > > Th

Re: users, please give us your opinion: what is your take on generics with Wicket

2008-06-04 Thread Johan Compagner
and if i store it in metadata ;) On Wed, Jun 4, 2008 at 5:16 PM, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > why even have an interface? just detach all imodel fields via reflection! > > -igor > > > On Wed, Jun 4, 2008 at 3:37 AM, James Carman <[EMAIL PROTECTED]> > wrote: > > On Wed, Jun 4, 2008

Re: how to pass parameters while setting page expired error page

2008-06-04 Thread James Carman
Or in the session as sort of a "flash" memory. On Wed, Jun 4, 2008 at 10:53 AM, Ryan Gravener <[EMAIL PROTECTED]> wrote: > I haven't had to deal with this issue yet, but perhaps you can put this > information in a cookie and read it when necessary? > > On Wed, Jun 4, 2008 at 9:04 AM, Patel, Sanjay

Re: how to pass parameters while setting page expired error page

2008-06-04 Thread Johan Compagner
What param is that? What info do you want to pass in? On 6/4/08, Patel, Sanjay <[EMAIL PROTECTED]> wrote: > I want to redirect to LoginPage if session expires and want to show > message that "your session expired, please login again." > Is there any way that I can pass parameters to LoginPage ??

RE: (Class>) casting troubles

2008-06-04 Thread Zappaterrini, Larry
This is my take on it: http://www.nabble.com/RE%3A-%28Class%3C--extends-Page%3C-%3E%3E%29-casti ng-troubles-p17370699.html I feel it covers the topic pretty thoroughly but I am by no means an expert on the matter. -Original Message- From: Martin Funk [mailto:[EMAIL PROTECTED] Sent: Wed

RE: how to pass parameters while setting page expired error page

2008-06-04 Thread Patel, Sanjay
I want to pass some param so I can know in LoginPage that it is called because of session expired and I can show appropriate message (e.g your session is expired, please login again.) -Original Message- From: Johan Compagner [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 04, 2008 12:11 P

Contructor model

2008-06-04 Thread Manuel Corrales
Hi, let assume i have a class with no empty constructors (at least no publics). And i want to use a wicket page to instantiate this class. It is possible to create a model for this, so i dont have to use another object or add setters. I dont know if i made myself clear. Please feel free to ask. Th

Re: how to pass parameters while setting page expired error page

2008-06-04 Thread James Carman
getSession().info() and add a FeedbackPanel to your login page? On Wed, Jun 4, 2008 at 12:25 PM, Patel, Sanjay <[EMAIL PROTECTED]> wrote: > I want to pass some param so I can know in LoginPage that it is called > because of session expired and I can show appropriate message (e.g your > session is

Re: users, please give us your opinion: what is your take on generics with Wicket

2008-06-04 Thread John Patterson
Eelco Hillenius wrote: > et an idea of what you think. > > 1) Generifying* Wicket >[ x] Can best be done like currently in the 1.4 branch, where models > and components are both generified. I care most about the improved > static type checking generified models and components give Wicket. >

Re: users, please give us your opinion: what is your take on generics with Wicket

2008-06-04 Thread Igor Vaynberg
you still have ondetach()...but for convinience we can automatically detach any imodel fields, i actually wanted to do this for a while... -igor On Wed, Jun 4, 2008 at 8:43 AM, Johan Compagner <[EMAIL PROTECTED]> wrote: > and if i store it in metadata ;) > > > On Wed, Jun 4, 2008 at 5:16 PM, Igor

jsesionid written into url when using tomcat behind apache & mod_jk

2008-06-04 Thread Joel Halbert
Hi, This is probably not a wicket related query as such (so apologies) but just in case here goes I have placed our tomcat server behind apache and we are using mod_jk. When I do this we see the jsessionid being written out in the url for the very first request response to the user (so we

Re: Problem: Check within a ListView

2008-06-04 Thread Igor Vaynberg
it is possible, just depends on how you set up your models. it is not possible by directly reading the collection of checkgroup, but you can come up with a different way. -igor On Wed, Jun 4, 2008 at 8:29 AM, Kai Mütz <[EMAIL PROTECTED]> wrote: > Igor Vaynberg wrote: >>

Re: users, please give us your opinion: what is your take on generics with Wicket

2008-06-04 Thread Eelco Hillenius
> Having multiple models is rare, however, having one model that can > (but doesn't have to) be used is more common imho. Not that rare if I look at my code, especially if you take panels and fragments into account. I have plenty of places where I use two or three models. > Wicket is kinda optimi

Re: users, please give us your opinion: what is your take on generics with Wicket

2008-06-04 Thread Matej Knopp
I was talking about the model slot. If you don't have a model in component it doesn't cost you anything. -Matej On Wed, Jun 4, 2008 at 6:49 PM, Eelco Hillenius <[EMAIL PROTECTED]> wrote: >> Having multiple models is rare, however, having one model that can >> (but doesn't have to) be used is more

Re: jsesionid written into url when using tomcat behind apache & mod_j

2008-06-04 Thread Igor Vaynberg
this has been asked a ton of times already...so do search the lists next time. just to reiterate, servlet container always does this on first request because it doesnt know if the cookies are enabled or not until the second request. if cookies are enabled jsessionid will go away on second request.

Wicket 1.3 - SNAPSHOT release dates

2008-06-04 Thread Ricky
Hi, Is there an estimated release date for Wicket 1.3.4 or for 1.3-SNAPSHOT ? Regards, Vyas, Anirudh

RE: how to pass parameters while setting page expired error page

2008-06-04 Thread Patel, Sanjay
I want to redirect to LoginPage when session expires. If I can pass page parameter while setting expired page, I can use that parameter in LoginPage to know that LoginPage is called because of Session is expired. getApplicationSettings().setPageExpiredErrorPage(LoginPage.class, new PageParameters

Re: users, please give us your opinion: what is your take on generics with Wicket

2008-06-04 Thread Eelco Hillenius
On Wed, Jun 4, 2008 at 9:43 AM, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > you still have ondetach()...but for convinience we can automatically > detach any imodel fields, i actually wanted to do this for a while... I tried to write this two days ago, but wasn't able to pull it off... I wrote an i

Re: users, please give us your opinion: what is your take on generics with Wicket

2008-06-04 Thread Eelco Hillenius
On Wed, Jun 4, 2008 at 9:52 AM, Matej Knopp <[EMAIL PROTECTED]> wrote: > I was talking about the model slot. If you don't have a model in > component it doesn't cost you anything. The cost in this case is the fact that having the model slot, even when not used, results in the assumption that a com

Re: users, please give us your opinion: what is your take on generics with Wicket

2008-06-04 Thread Martijn Dashorst
but IModel implementations can have Imodels inside too And the LDM doesn't play wel with detach unfortunately as it keeps an attached boolean that prevents the detach from entering the nested IModel Martijn On Wed, Jun 4, 2008 at 6:43 PM, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > you still hav

Re: Wicket 1.3 - SNAPSHOT release dates

2008-06-04 Thread Igor Vaynberg
snapshots are available daily from wicketstuff repo. we have a teamcity instance that builds them quiet often. -igor On Wed, Jun 4, 2008 at 9:58 AM, Ricky <[EMAIL PROTECTED]> wrote: > Hi, > > Is there an estimated release date for Wicket 1.3.4 or for 1.3-SNAPSHOT ? > > Regards, > Vyas, Anirudh >

Re: users, please give us your opinion: what is your take on generics with Wicket

2008-06-04 Thread Eelco Hillenius
On Wed, Jun 4, 2008 at 10:05 AM, Martijn Dashorst <[EMAIL PROTECTED]> wrote: > but IModel implementations can have Imodels inside too Whether done automatically or by components as we do now, ultimately the calls to detach will be the same, right? Eelco --

Re: users, please give us your opinion: what is your take on generics with Wicket

2008-06-04 Thread Igor Vaynberg
sounds way too complicated to me dude... component.detach() { for (field:fields) { if (imodel.class.isassignablefrom(field.gettype)) { ((imodel)field.get(this)).detach(); } } onDetach(); } with proper caching of the actual fields lookup this should be pretty performant -igo

Re: users, please give us your opinion: what is your take on generics with Wicket

2008-06-04 Thread Johan Compagner
If besides formcomponent you get links/buttons and so on, then i still think the example i see of verbosity is still there, like dropdownchoice is then generified?? On 6/4/08, Eelco Hillenius <[EMAIL PROTECTED]> wrote: > On Wed, Jun 4, 2008 at 9:43 AM, Igor Vaynberg <[EMAIL PROTECTED]> > wrote: >>

Re: users, please give us your opinion: what is your take on generics with Wicket

2008-06-04 Thread Eelco Hillenius
On Wed, Jun 4, 2008 at 10:10 AM, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > sounds way too complicated to me dude... > > component.detach() { > for (field:fields) { >if (imodel.class.isassignablefrom(field.gettype)) { >((imodel)field.get(this)).detach(); >} > } > onDetach(); > }

Re: [FINALISED SCHEDULE] London Wicket Event at Google UK, tonight

2008-06-04 Thread Eelco Hillenius
> Is there a webcast? I'm interested in the Stateless vs. Stateful Me too. Eelco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: users, please give us your opinion: what is your take on generics with Wicket

2008-06-04 Thread Igor Vaynberg
On Wed, Jun 4, 2008 at 10:23 AM, Eelco Hillenius <[EMAIL PROTECTED]> wrote: > On Wed, Jun 4, 2008 at 10:10 AM, Igor Vaynberg <[EMAIL PROTECTED]> wrote: >> sounds way too complicated to me dude... >> >> component.detach() { >> for (field:fields) { >>if (imodel.class.isassignablefrom(field.getty

Re: users, please give us your opinion: what is your take on generics with Wicket

2008-06-04 Thread Patrick Angeles
igor.vaynberg wrote: > > component.detach() { > for (field:fields) { > if (imodel.class.isassignablefrom(field.gettype)) { > ((imodel)field.get(this)).detach(); > } > } > onDetach(); > } > +1 I'm also for moving getModel()/getModelObject() out of Component and only putti

Re: users, please give us your opinion: what is your take on generics with Wicket

2008-06-04 Thread Matej Knopp
We should definitely discuss this after 1.4. -Matej On Wed, Jun 4, 2008 at 7:30 PM, Patrick Angeles <[EMAIL PROTECTED]> wrote: > > > igor.vaynberg wrote: >> >> component.detach() { >> for (field:fields) { >> if (imodel.class.isassignablefrom(field.gettype)) { >> ((imodel)field.get(t

Re: users, please give us your opinion: what is your take on generics with Wicket

2008-06-04 Thread Brill Pappin
So it would be no generics or it would be: MyComponent mycom = new MyComponent(); and I was saying that the suppress *should not* be in the API because people need the ability to control that sort of thing at their own code level, which should address your issue. - Brill Pappin On Tue, Jun 3, 2

Re: users, please give us your opinion: what is your take on generics with Wicket

2008-06-04 Thread Brill Pappin
Opinion, not statement :) But i get where your coming from. - Brill On Tue, Jun 3, 2008 at 11:29 PM, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > no worries, i wasnt holding my breath. its just that when i make > sweeping statements i tend to have something to back them up that > other people can s

Re: users, please give us your opinion: what is your take on generics with Wicket

2008-06-04 Thread Brill Pappin
I *have* used the m1 release and although its not yet an RC and there are some issues to work out, it was a breath of fresh air. The biggest problem I had was understanding kind of type to set things to, but once I sorted that out for a component, it made working with it later much easier. It no

Re: AJAX slower than full page update

2008-06-04 Thread Niels Bo
Yes, but we have many other things on the page. But why is it so slow? Is Wicket using some js functions that is extra slow in IE? If you google for "IE javascript performance" there are some recommendations, like here: http://blogs.msdn.com/ie/archive/2006/08/28/728654.aspx IE + JavaScript Per

Re: users, please give us your opinion: what is your take on generics with Wicket

2008-06-04 Thread Brill Pappin
If the type of component is getting in the way doesn't that mean the problem (non-trivial) component may need to be redesigned? - Brill Pappin On Wed, Jun 4, 2008 at 2:50 AM, Jan Kriesten <[EMAIL PROTECTED]> wrote: > > >> i was of the "generify component and model" mind while i was >> generifying

Re: users, please give us your opinion: what is your take on generics with Wicket

2008-06-04 Thread Brill Pappin
I agree with that and I think that is *the* key point. If implementing regular language features exposes a flaw, fix the flaw. I'm one of those that would rather have to refactor my code to "upgrade" to a new major version than try and work around some "flaw" just to maintain compatibility. - Bri

Re: users, please give us your opinion: what is your take on generics with Wicket

2008-06-04 Thread Brill Pappin
Thats a pretty major api change (although it looks simple) maybe that should be in the next major release? - Brill On Wed, Jun 4, 2008 at 1:30 PM, Patrick Angeles <[EMAIL PROTECTED]> wrote: > > > igor.vaynberg wrote: >> >> component.detach() { >> for (field:fields) { >> if (imodel.class.isa

Re: AJAX slower than full page update

2008-06-04 Thread Igor Vaynberg
honestly i havent noticed any slow performance on ie... -igor On Wed, Jun 4, 2008 at 11:25 AM, Niels Bo <[EMAIL PROTECTED]> wrote: > > Yes, but we have many other things on the page. > > But why is it so slow? Is Wicket using some js functions that is extra slow > in IE? > > If you google for "I

Re: Wicket Session and non-Wicket Servlet

2008-06-04 Thread Matthew Hanlon
Guys, thanks for your help. I finally figured it out. I had my filters set up all wrong, as Larry pointed out. My previous web.xml, which worked in 2.0 was this: WicketSessionFilter wicket.protocol.http.servlet.WicketSessionFilter

Re: users, please give us your opinion: what is your take on generics with Wicket

2008-06-04 Thread Igor Vaynberg
i dont think it exposes anything, or that anything is flawed. the component provides a slot for a default model - it is there totally out of convinience. i think what is flawed here is that we tied the two types via generics. for example, sometimes i want to have a webmarkupcontainer with a model

Re: Wicket 1.3 - SNAPSHOT release dates

2008-06-04 Thread Frank Bille
1.3.4 is sometime this week. Frank On Wed, Jun 4, 2008 at 6:58 PM, Ricky <[EMAIL PROTECTED]> wrote: > Hi, > > Is there an estimated release date for Wicket 1.3.4 or for 1.3-SNAPSHOT ? > > Regards, > Vyas, Anirudh >

Does wicket favor composite session obj?

2008-06-04 Thread smallufo
According to wicket API docs , I have a question. Does wicket favor composite session object ? That is , if my site has some independent apps , each has its custom setting object. It seems I have to associate these objects to one root session object : like this : App1Setting setting1 = ((RootSess

Re: Does wicket favor composite session obj?

2008-06-04 Thread Eelco Hillenius
By default, Wicket will create separate session objects for each application. If you want to share info between multiple Wicket sessions, you'll have to access the underlying HttpSession object. Should be relatively easy to create an abstraction for that yourself. Eelco On Wed, Jun 4, 2008 at 11:

Re: users, please give us your opinion: what is your take on generics with Wicket

2008-06-04 Thread Eelco Hillenius
On Wed, Jun 4, 2008 at 11:35 AM, Brill Pappin <[EMAIL PROTECTED]> wrote: > Thats a pretty major api change (although it looks simple) maybe that > should be in the next major release? It's something we can consider yeah. We'll have to think it through and get back to the drawing board to see what

Re: Wicket 1.3 - SNAPSHOT release dates

2008-06-04 Thread Ricky
Thanks. I meant 1.3 - SNAPSHOT being finalized to a "release" version. appreciate your response. -- Regards Vyas, Anirudh || ॐ || On Wed, Jun 4, 2008 at 2:51 PM, Frank Bille <[EMAIL PROTECTED]> wrote: > 1.3.4 is sometime this week. > Frank > > On Wed, Jun 4, 2008 at 6:58 PM, Ricky <[EMAIL PROT

Re: users, please give us your opinion: what is your take on generics with Wicket

2008-06-04 Thread Daniel Frisk
I have to admit I haven't read thru all of this thread, so my answer might be to something else... But here we go: I think we actually do something very similar to this in our system, we automatically detach any instances of jpa-enitities (replacing them with a surrogate with only the class

Re: Wicket 1.3 - SNAPSHOT release dates

2008-06-04 Thread Frank Bille
1.3 has entered maintainance since all development effort is going into 1.4. It should therefore be safe to use snapshot releases since they will only be bug-fixes from a final 1.3.4 release. Frank On Wed, Jun 4, 2008 at 9:10 PM, Ricky <[EMAIL PROTECTED]> wrote: > Thanks. I meant 1.3 - SNAPSHOT b

Re: users, please give us your opinion: what is your take on generics with Wicket

2008-06-04 Thread Eelco Hillenius
> I implemented this by hooking in to serialization, just checking each object > in ObjectOutputStream.replaceObject and ObjectInputStream.resolveObject. > Also had to use my own PageMapEntries to get a suitable hook. Might work as > an idea for your implementation perhaps? That's a cool idea for

  1   2   >