Re: WicketTester and ajax call from javascript

2011-11-27 Thread Sebastiaan van Erk
tupRequestAndResponse(true); tester.getServletRequest().setRequestToRedirectString(url.toString()); tester.processRequestCycle(cycle); } Regards, Sebastiaan On 11/28/2011 08:20 AM, Sebastiaan van Erk wrote: Hi, Thanks for your answer. Unfortunately for the moment I don't have the opportuni

Re: WicketTester and ajax call from javascript

2011-11-27 Thread Sebastiaan van Erk
35 AM, Martin Grigorov wrote: Hi, With Wicket 1.5 you can use executeUrl() to do that. p = startPage c = p.get("") b = c.getBehaviorByXyz() u = b.getCallbackUrl() fullUrl = u + "&foo=bar&wicket-ajax=true" executeUrl(fullUrl) On Mon, Nov 28, 2011 at 6:59 AM, Sebastia

WicketTester and ajax call from javascript

2011-11-27 Thread Sebastiaan van Erk
Hi all, I've got a page which calls wicket from javascript as described by the page: https://cwiki.apache.org/WICKET/calling-wicket-from-javascript.html That is, in my JavaScript I call a function: function callWicket() { var wcall = wicketAjaxGet('$url$' + '$args$', function() { }, functi

Re: WicketTester, enclosures, and assertInvisible

2011-10-31 Thread Sebastiaan van Erk
page as string. On Mon, Oct 31, 2011 at 3:01 PM, Sebastiaan van Erk wrote: Hi, I'm using WicketTester to assertInvisible some components. Now I have the following situation: In the code I say comp1 is invisible, so the whole enclosure is invisible. However, in WicketTester, assertI

WicketTester, enclosures, and assertInvisible

2011-10-31 Thread Sebastiaan van Erk
Hi, I'm using WicketTester to assertInvisible some components. Now I have the following situation: In the code I say comp1 is invisible, so the whole enclosure is invisible. However, in WicketTester, assertInvisible("comp2") fails. I am aware of a previous post about this: http://

Custom resource loading

2009-12-06 Thread Sebastiaan van Erk
Hi, I'm implementing a Wicket application that has heavy use of styling and localization. I want to place the resources for these styles and locales in an external directory structure (not in the war). Basically, I want the following structure: /external/

validation string resource name prefix

2009-12-01 Thread Sebastiaan van Erk
Hi, I would like all the validation strings on a specific page to have a specified prefix, e.g., if I have a field "password" with a length validator on my page, I would like the following resource strings tried in the listed order: myPageLabel.password.StringValidator.minimum password.Strin

Re: error messages due to hack/search-bots

2008-12-22 Thread Sebastiaan van Erk
it isn't. I think it should remain an error. Just my 0.02 though. On Mon, Dec 22, 2008 at 7:56 AM, Sebastiaan van Erk wrote: Pointbreak wrote: Not an answer to your question, but why fight this kind of stuff? It's an invalid request, so it should result in an error. I actually pre

Re: error messages due to hack/search-bots

2008-12-22 Thread Sebastiaan van Erk
Pointbreak wrote: Not an answer to your question, but why fight this kind of stuff? It's an invalid request, so it should result in an error. I actually prefer it would result in a 404 for the client and nothing more. Perhaps, when enabling DEBUG, it can log the message + exception it is curr

Re: (Class>) casting troubles

2008-06-09 Thread Sebastiaan van Erk
c type Foo should be parameterized Regards, Sebastiaan Cheers, Larry -Original Message----- From: Sebastiaan van Erk [mailto:[EMAIL PROTECTED] Sent: Saturday, June 07, 2008 3:57 AM To: users@wicket.apache.org Subject: Re: (Class>) casting troubles Zappaterrini, Larry wrote: Sorry,

Re: Can't get round this problem

2008-06-09 Thread Sebastiaan van Erk
Don't use a HiddenField on the Wicket side but a WebMarkupContainer. The HTML side remains the same (i.e., input tag). Regards, Sebastiaan Mathias P.W Nilsson wrote: I have a page that has 2 fragment. One for normal ordering and one for credit card ordering. When sending the input type hidden

Re: wicket generics

2008-06-07 Thread Sebastiaan van Erk
I'm +1 for trying to decouple model from component, and if it takes longer then so be it. I'm pretty convinced that the problem is the 1-1 model-component coupling and that generics only pointed out this problem. Regards, Sebastiaan Igor Vaynberg wrote: so i tried to remove the generic type

Re: (Class>) casting troubles

2008-06-07 Thread Sebastiaan van Erk
illegal). 2) How do you get rid of the warning in Class clazz = Foo.class without using Class? Because it would seem strange if there is no warning free way to use a certain language construct... Regards, Sebastiaan -Original Message- From: Sebastiaan van Erk [mailto:[EMAIL PROTECTE

Re: (Class>) casting troubles

2008-06-06 Thread Sebastiaan van Erk
Martin Funk wrote: Foo> rawbar = new Foo(); // DOES NOT WORK - THIS IS CAUSING ONE HALF OF ALL OUR HEADACHES Btw, this does work (like you expect): Foo> rawbar2 = new Foo>(); maybe some more wisdom can be found here: http://www.angelikalanger.com/GenericsFAQ/FAQSections/TechnicalDetails.

Re: (Class>) casting troubles

2008-06-06 Thread Sebastiaan van Erk
casts): Bar bar = new RawBar(); So is it then a subtype? Or isn't it? It's all terribly inconsistent if you ask me. :-( Regards, Sebastiaan -Original Message----- From: Sebastiaan van Erk [mailto:[EMAIL PROTECTED] Sent: Friday, June 06, 2008 11:31 AM To: users@wicket.

Re: (Class>) casting troubles

2008-06-06 Thread Sebastiaan van Erk
ARgh, you always make typos with this stuff. See correction. Sebastiaan van Erk wrote: Martin Funk wrote: Class> means "class of (anything that extends (page of anything))". I'm not so sure. There are 2 separate issues: ISSUE 1: Foo> is not assignable from a Foo

Re: (Class>) casting troubles

2008-06-06 Thread Sebastiaan van Erk
Martin Funk wrote: Class> means "class of (anything that extends (page of anything))". I'm not so sure. There are 2 separate issues: ISSUE 1: Foo> is not assignable from a Foo where RawBar extends Bar as a raw type. That is, given: static class Foo { } static class Bar { } st

Re: (Class>) casting troubles

2008-06-06 Thread Sebastiaan van Erk
Martin Funk wrote: Jeremy Thomerson wrote: I haven't read the whole thread, but you should be fine as long as your returned page class uses generics... Here's what I use in one app, no warnings, no casts: @Override public Class> getHomePage() { return Home.class; } public

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

2008-06-02 Thread Sebastiaan van Erk
Yes, property model (and compound friends) don't mix well with generics. With generics a type safe alternative is wanted (and a very good start is Matej and Johan's type-safe model implementation). Regards, Sebastiaan Jan Kriesten wrote: hi al, The second is almost certainly worth doing. Th

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

2008-06-02 Thread Sebastiaan van Erk
You could use Java's covariant return types to override getModel() to return a specific type. Which would mean that you would need to subclass to "simulate" generics (with a new subclass for each type). Also, when using anonymous subclasses it becomes rather pointless and you'd be back to casti

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

2008-06-02 Thread Sebastiaan van Erk
Maybe I don't understand what you mean by "raw type". - Brill Pappin -----Original Message- From: Sebastiaan van Erk [mailto:[EMAIL PROTECTED] Sent: Monday, June 02, 2008 11:53 AM To: users@wicket.apache.org Subject: Re: users, please give us your opinion: what is your take on gene

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

2008-06-02 Thread Sebastiaan van Erk
Jan Kriesten wrote: Hi Sebastiaan, I *really* would like to see a clarification of this statement. In Wicket the component and model are very tightly coupled. that's part of the problem, agreed. Kind of "late in the game" to do anything about that it seems though. And I don't know if I ag

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

2008-06-02 Thread Sebastiaan van Erk
Brill Pappin wrote: Why can't this be done the way the java API does it, and allow people to use it or not as they want? Wicket is pretty clean in terms of the API, and there are interfaces for most things... So what's the problem with adding the generics to the interfaces? AFAIK this would allo

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

2008-06-02 Thread Sebastiaan van Erk
James Carman wrote: I'm adding a "Gotchas" section now. Your pallete gotcha seems more like a JIRA to me. :-) It's not really about generics in general, but about a specific choice in 1 component (which really seems incorrect to me, i.e., PECS). One of the gotcha's I think is the getHomePag

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

2008-06-02 Thread Sebastiaan van Erk
Hi, But IMHO putting generics on Component is a bad design, since it per se touches all of Wicket's Components without urgent need. I *really* would like to see a clarification of this statement. In Wicket the component and model are very tightly coupled. What is a *good design* alternative,

Re: (Class>) casting troubles

2008-05-22 Thread Sebastiaan van Erk
Jeremy Thomerson wrote: I haven't said anything up to this point, but we really don't seem to be getting anywhere with what is turning into a religious war. I, for one, have already started using 1.4, and love the generics, despite the extra verbosity. It gives me extra type safety and code sel

Re: (Class>) casting troubles

2008-05-22 Thread Sebastiaan van Erk
Jan Kriesten wrote: hi johan, But if you have a lot of Link for you cases then make 1 simple subclass of Link so anyone make your own wrapper to get readable sources again? let me think: how many webmarkupcontainer, link, page etc. classes do i use with void? i don't think that's a serio

Re: (Class>) casting troubles

2008-05-22 Thread Sebastiaan van Erk
Jan Kriesten wrote: Hi Johan, ahh yes thats true i overlooked your changes.. then yes currently you have to do new Link (to get rid of the warnings) there are quite annoying many cases of this kind, where you really just don't need to add models to components and have to boilerplate these

Re: (Class>) casting troubles

2008-05-21 Thread Sebastiaan van Erk
: IModel x = getModel(); IModel y = getModel(); and it will compile just fine... :-( I'd rather have no generics than a dirty hack like this. Regards, Sebastiaan johan On Wed, May 21, 2008 at 3:01 PM, Joni Freeman <[EMAIL PROTECTED]> wrote: On Wed, 2008-05-21 at 14:44 +0200, Sebasti

Re: (Class>) casting troubles

2008-05-21 Thread Sebastiaan van Erk
Joni Freeman wrote: On Wed, 2008-05-21 at 14:44 +0200, Sebastiaan van Erk wrote: Martijn Dashorst wrote: Generified component touches *ALL* code in Wicket, wether you care or not. IModel itself is rather contained. Yes, but in my opinion rather useless as well. Plus you get heaps of

Re: (Class>) casting troubles

2008-05-21 Thread Sebastiaan van Erk
Martijn Dashorst wrote: On Wed, May 21, 2008 at 2:44 PM, Sebastiaan van Erk <[EMAIL PROTECTED]> wrote: Generified component touches *ALL* code in Wicket, wether you care or not. IModel itself is rather contained. Yes, but in my opinion rather useless as well. Plus you get he

Re: (Class>) casting troubles

2008-05-21 Thread Sebastiaan van Erk
Martijn Dashorst wrote: On Wed, May 21, 2008 at 2:19 PM, Sebastiaan van Erk <[EMAIL PROTECTED]> wrote: Generics are hard, especially for library/framework designers: it's hard to get them exactly right, especially with wildcards in complex cases. But just because they are not curren

Re: (Class>) casting troubles

2008-05-21 Thread Sebastiaan van Erk
Martijn Dashorst wrote: That is not my problem. The problem is that Component is confusing as hell and opens up the box of pandorra wrt generics. I *like* IModel but I fail to see how setResponsePage(>>) is necessary for this. The only reason iirc to generify component is to remove the casts for

Re: Using generics with some non-generic classes in Wicket

2008-05-14 Thread Sebastiaan van Erk
here declares he's using generics, but then inserts a raw type of a known generic type - a situation that should not happen. Regards, Sebastiaan -igor On Wed, May 14, 2008 at 2:37 PM, Sebastiaan van Erk <[EMAIL PROTECTED]> wrote: Igor Vaynberg wrote: since then the thread

Re: Using generics with some non-generic classes in Wicket

2008-05-14 Thread Sebastiaan van Erk
second gives warnings only in code that is not properly generified... Regards, Sebastiaan On Wed, May 14, 2008 at 1:54 PM, Sebastiaan van Erk <[EMAIL PROTECTED]> wrote: Igor Vaynberg wrote: i do like generics. did i ever say otherwise? the problem here is that if we scope something

Re: Using generics with some non-generic classes in Wicket

2008-05-14 Thread Sebastiaan van Erk
Igor Vaynberg wrote: i do like generics. did i ever say otherwise? the problem here is that if we scope something as Class then even though you ARE using generics in your code you will still get a warning because we did not scope the class as Class>. on the other hand if we do scope it as Class

Re: Using generics with some non-generic classes in Wicket

2008-05-14 Thread Sebastiaan van Erk
orces is that it must now be a generic class which is annoying. Not to mention that in that area eclipse and javac accept different things So or we in wicket dont use any where and have supress warning everywhere for that or we do use it and then suddenly it is in my eyes restricte

Re: Using generics with some non-generic classes in Wicket

2008-05-14 Thread Sebastiaan van Erk
e do use it and then suddenly it is in my eyes restricted to much. I don't understand On 5/14/08, Sebastiaan van Erk <[EMAIL PROTECTED]> wrote: Johan Compagner wrote: yes thats the reason you are calling the method add with a generified component but that container itself is not gen

Re: Using generics with some non-generic classes in Wicket

2008-05-13 Thread Sebastiaan van Erk
Johan Compagner wrote: yes thats the reason you are calling the method add with a generified component but that container itself is not generified i dont like this about generics expecially the onces like this: add(MarkupContainer container) then suddenly a none generified component cant be a

Re: "unmount" sub url

2008-05-09 Thread Sebastiaan van Erk
I made a JIRA for this (with patch). https://issues.apache.org/jira/browse/WICKET-1603 Regards, Sebastiaan Sebastiaan van Erk wrote: Eelco Hillenius wrote: On Thu, May 8, 2008 at 3:15 PM, Sebastiaan van Erk <[EMAIL PROTECTED]> wrote: 2) using a special RequestCodingStrateg

Re: "unmount" sub url

2008-05-08 Thread Sebastiaan van Erk
Eelco Hillenius wrote: On Thu, May 8, 2008 at 3:15 PM, Sebastiaan van Erk <[EMAIL PROTECTED]> wrote: 2) using a special RequestCodingStrategy, i.e. UnmountedRequestCodingStrategy and tweaking isWicketRequest to return false if it detects this request coding strategy... What do you guys

Re: "unmount" sub url

2008-05-08 Thread Sebastiaan van Erk
up being ugly string compares)... The second solution is cleaner in my opinion and it would allow you to "unmount" or mount as a "pass through" specific urls... What do you guys think? Regards, Sebastiaan Sebastiaan van Erk wrote: smime.p7s Description: S/MIME Cryptographic Signature

"unmount" sub url

2008-05-08 Thread Sebastiaan van Erk
Hi, I've got a page mounted on "/path1". I've got some files in a directory in my webapp root on "/path1/dir" How can I tell Wicket to give control back to the servlet container for dir? Currently (even using QueryStringUrlCodingStrategy) the mount eats /path1/dir and doesn't let me access th

wicket webapp starts and stops immediately

2008-04-30 Thread Sebastiaan van Erk
Hi, I've got a bit of strange error which I don't understand. I'm using the tomcat sysdeo plugin to start my Wicket webapp (which I always do in development), but all of a sudden for this webapp I get that it starts and immediately stops again. If I do "update context" the webapp is reloaded

Re: VOTE: Generics of IDataProvider

2008-04-24 Thread Sebastiaan van Erk
[ ] IDataProvider [X] Iterator> , drop model [ ] Leave as is. Regards, Sebastiaan Jan Kriesten wrote: Hi, I have a usecase where the current proposed generic Interface for IDataProvider with upcoming v1.4 of Wicket would break the implementation concept working with Wicket 1.3. The usecase

Re: Localization, Bookmarkable pages, and mounting strategies

2008-04-15 Thread Sebastiaan van Erk
Erik van Oosten wrote: Johan Compagner wrote: So then we should give a Page a locale field. I am in favour of doing this, even if Sebastiaan's problem is solved differently. I have a part of my site that is multilingual (the public pages), and another part is not (the admin screens, in English)

Re: Localization, Bookmarkable pages, and mounting strategies

2008-04-14 Thread Sebastiaan van Erk
ld be weird if the next page you go to is suddenly in German, even if your session locale is German... 2) if it is not explicitly the session locale should be used... Regards, Sebastiaan johan On Mon, Apr 14, 2008 at 6:14 PM, Sebastiaan van Erk <[EMAIL PROTECTED]> wrote: Johan Compagner

Re: Localization, Bookmarkable pages, and mounting strategies

2008-04-14 Thread Sebastiaan van Erk
Nope, no questions, readable enough. I'll give it a shot in my application Thanks a lot! Btw: do you have a change locale link? How do you make sure it plays nice with bookmarkable urls? I was thinking of using a redirect if the page is bookmarkable, but haven't worked it out yet... Than

Re: Localization, Bookmarkable pages, and mounting strategies

2008-04-14 Thread Sebastiaan van Erk
Hmm.. Scala :-) I guess I'll opt for English then :-) I don't quite understand what you do... taking it out of the filter is easy enough I guess, but then? When you set a property on the application how does this work with different threads? Do you use thread local? Then you do you render the

Re: Localization, Bookmarkable pages, and mounting strategies

2008-04-14 Thread Sebastiaan van Erk
;s weird that I cannot mount 2 locales of a page on two different paths... leading to the crawler and reference issues I mentioned before... What the best solution is, is probably something that needs to be discussed further. :-) Regards, Sebastiaan Regards, Sebastiaan johan On Mon, Apr 14,

Re: Localization, Bookmarkable pages, and mounting strategies

2008-04-14 Thread Sebastiaan van Erk
Hi Jan, Would you be willing to share that code? Because in the short term I think it's the best solution. Regards, Sebastiaan Jan Kriesten wrote: hi sebastiaan, Any ideas on this? Anybody already implemented the coding strategy for the locale in the root? Anybody got another easier worka

Re: Localization, Bookmarkable pages, and mounting strategies

2008-04-14 Thread Sebastiaan van Erk
Gwyn Evans wrote: On Mon, Apr 14, 2008 at 11:40 AM, Sebastiaan van Erk <[EMAIL PROTECTED]> wrote: However they're still workarounds for something that I think is conceptually not quite right in Wicket currently: the fact that it should be possible to mount different locales o

DynamicWebResource filename

2008-04-14 Thread Sebastiaan van Erk
Hi, Any reason why the filename field in DynamicWebResource does not at least have a protected getter so you can use it in subclasses without having to add the field again? Regards, Sebastiaan smime.p7s Description: S/MIME Cryptographic Signature

Localization, Bookmarkable pages, and mounting strategies

2008-04-14 Thread Sebastiaan van Erk
Hi, I have localized my Wicket site, but I have a problem with localization + (mounted) bookmarkable pages. When mounting a bookmarkable page: mount(new WhateverUrlCodingStrategy("/mypage", MyPage.class)); there is no locale parameter... This means: 1) I cannot give my stat

Re: SingleSortState multiple sorts?

2008-03-21 Thread Sebastiaan van Erk
id incompatibility issues? public List getSorts() { return state.getSorts(); } public SortParam getSort() { return (state.getSorts().isEmpty()) ? null : state.getSorts().get(0); } -Original Message----- From: Sebastiaan van Erk [mail

Re: SingleSortState multiple sorts?

2008-03-21 Thread Sebastiaan van Erk
EMAIL PROTECTED] Sent: Friday, March 21, 2008 9:23 AM To: users@wicket.apache.org Subject: RE: SingleSortState multiple sorts? Ironically, your code looks very similar to what I have done on my end. Can we create a feature request for this? -Original Message- From: Sebastiaan van Erk

Re: SingleSortState multiple sorts?

2008-03-21 Thread Sebastiaan van Erk
I wanted to have this the other day, so I came up with (see attached). I'd like to see your ideas about it, since this was just a 20 minute first hack... IClusterable is just a tagging interface for the sole purpose of clustering via Terracotta. So if you don't need TC, then Serializable shou

Re: Display of own message in FeedbackPanel

2008-03-21 Thread Sebastiaan van Erk
This is elementary Java... you should probably use an IDE like eclipse, works much better than finding errors later on with a build tool like ant. You're declaring a method and you don't declare it's return type... add the workd "void" before validate... the compiler gives you the exact locatio

Re: "Redirect after post" Issue

2008-03-21 Thread Sebastiaan van Erk
absolute URL's (for example in emails) will be wrong. Regards, Sebastiaan Sebastiaan van Erk wrote: Hi, Jeremy Levy wrote: I have been having trouble with this for a couple of months, it seems that redirects in Wicket 1.3.x seem to be writing out the URL incorrectly in our set up. We a

Re: "Redirect after post" Issue

2008-03-20 Thread Sebastiaan van Erk
Hi, Jeremy Levy wrote: I have been having trouble with this for a couple of months, it seems that redirects in Wicket 1.3.x seem to be writing out the URL incorrectly in our set up. We are running JBoss 4.2 with embedded Tomcat 5.5 using Apache/2.2.4 with mod_proxy. The Tomcat URL for the appl

Re: "Multiple panels" like behaviour

2008-03-20 Thread Sebastiaan van Erk
intuitive... Regards, Sebastiaan Igor Vaynberg wrote: the "workaround" is quiet easy class mypage extends webpage { onbeforerender() { if (get("panel1")==null) { add(newPanel1("panel1")); } super.onbeforerender(); } } -igor On Thu,

Re: "Multiple panels" like behaviour

2008-03-20 Thread Sebastiaan van Erk
Gerolf Seitz wrote: > you can provide factory methods in your base page like > protected abstract Component newHeader(String id, IModel model); > > in the constructor of base page do: > add(newHeader("header", someModelOrNull)); > > and just override/implement the factory method in your concrete p

Re: Amsterdam Community meeting 2008

2008-03-18 Thread Sebastiaan van Erk
from book writing - web framework shoot out: jsf vs tapestry vs wicket vs spring mvc - top 10 ways to mess up your Wicket application - top 10 ways to speed up your Wicket application - scaling out (show how to run your wicket application in a cluster) Martijn On 3/18/08, Sebastiaan van E

Re: Amsterdam Community meeting 2008

2008-03-18 Thread Sebastiaan van Erk
at *are* people interested in having presented? If there is something that I feel is within my Wicket skills, who knows. :-) Regards, Sebastiaan Martijn Dashorst wrote: I see that you haven't volunteered yet to present something. Martijn On 3/18/08, Sebastiaan van Erk <[EMAIL PROTECT

Re: Amsterdam Community meeting 2008

2008-03-18 Thread Sebastiaan van Erk
Since it's pretty close, I was wondering if there is anything known about: 1) what time does it start? 2) what presentations are being held? Regards, Sebastiaan Martijn Dashorst wrote: Yes, it is tuesday april 8th. Martijn On 3/18/08, Uwe Schäfer <[EMAIL PROTECTED]> wrote: hi is there a

Re: Wicketstuff source pages - can we make them stateless?

2008-03-18 Thread Sebastiaan van Erk
erything in wicket can be bookmarkable and not everything can be statelesss. None of the ajax examples could work on stateless pages for example. -Matej On Tue, Mar 18, 2008 at 10:52 AM, Sebastiaan van Erk <[EMAIL PROTECTED]> wrote: > Matej Knopp wrote: > > Why can&#

Re: Wicketstuff source pages - can we make them stateless?

2008-03-18 Thread Sebastiaan van Erk
Regards, Sebastiaan -Matej On Tue, Mar 18, 2008 at 8:52 AM, Sebastiaan van Erk <[EMAIL PROTECTED]> wrote: Martijn Dashorst wrote: > Making the source code viewing pages stateless won't help: next > question: but when I close the source code, my page doesn't work >

Re: Wicketstuff source pages - can we make them stateless?

2008-03-18 Thread Sebastiaan van Erk
Martijn Dashorst wrote: Making the source code viewing pages stateless won't help: next question: but when I close the source code, my page doesn't work anymore. The source code opens up in separate window. If the URL's there were bookmarkable pages they would always work. Since the source is

Re: Wicketstuff source pages - can we make them stateless?

2008-03-18 Thread Sebastiaan van Erk
Yes, or just even increase the timeout as a temporary fix. :-) It's like 5 minutes now, which means that if you go to your own code to implement something like in the example, and then want to view the source code of the next logical file, it says "page expired". If it was 30 minutes, then for

Re: [vote] Release 1.4 with only generics and stop support for 1.3

2008-03-17 Thread Sebastiaan van Erk
[X] +1, Wicket 1.4 is 1.3 + generics, drop support for 1.3 Regards, Sebastiaan smime.p7s Description: S/MIME Cryptographic Signature

Re: [discuss] Release 1.4 with only generics and stop support for 1.3

2008-03-17 Thread Sebastiaan van Erk
Johan Compagner wrote: dont think you can compile java 5 source (with generics) to 1.4 you have to use something like retroweaver then On Mon, Mar 17, 2008 at 9:27 AM, Sebastiaan van Erk <[EMAIL PROTECTED]> wrote: Hi, I was wondering to what extent it is possible to have generics added to 1.3

Re: [discuss] Release 1.4 with only generics and stop support for 1.3

2008-03-17 Thread Sebastiaan van Erk
Hi, I was wondering to what extent it is possible to have generics added to 1.3 but have it compile to 1.4 if necessary? Isn't that a just a question of not using other Java 1.5 constructs such as enums and new JDK classes? Wouldn't that solve most people's problems that need to stick to Java

Re: getPageParameters() NullPointer

2008-03-16 Thread Sebastiaan van Erk
Hi, I was actually trying to use getPageParameters() as well, and it was returning null too... The reason I want to use it is, I have a base page which adds a "context panel" fragment in the page, which it gets by an abstract method "getContextPanel()". Now in the sub page I wanted to use th

Re: setBefore/AfterDisabledLink and chaining

2008-03-15 Thread Sebastiaan van Erk
Ok. :-) Just put it on here before reporting in the jira just in case it's was a stupid idea. ;-) https://issues.apache.org/jira/browse/WICKET-1427 Regards, Sebastiaan Igor Vaynberg wrote: jira... -igor On Sat, Mar 15, 2008 at 6:18 AM, Sebastiaan van Erk <[EMAIL PROTECTED]>

setBefore/AfterDisabledLink and chaining

2008-03-15 Thread Sebastiaan van Erk
Hi, Is it possible to make setAfterDisabledLink on AbstractLink return "this" so that chaining is possible. Now I have somthing similar to the following: fragment.add(new BookmarkablePageLink("season2Link", ProgramsPage.class, new PageParameters("0=2008")) { {

Re: StringResourceModel labels within values

2008-03-13 Thread Sebastiaan van Erk
Sebastiaan van Erk wrote: How's this: public class RecursiveStringResourceModel extends AbstractReadOnlyModel { private final String resourceKey; private final Component component; public RecursiveStringResourceModel(final String resourceKey, final Component comp

Re: StringResourceModel labels within values

2008-03-13 Thread Sebastiaan van Erk
How's this: public class RecursiveStringResourceModel extends AbstractReadOnlyModel { private final String resourceKey; private final Component component; public RecursiveStringResourceModel(final String resourceKey, final Component component) {

Re: object sharing between pages

2008-03-13 Thread Sebastiaan van Erk
Frank van Lankvelt wrote: ok, I'll go ahead with storing the object in the session directly (as meta-data) and use models in the pages to access this object. May I ask what your use case is? it's very simple; when carrying out an action on page A, I want to display a modal window ("are you sur

Re: object sharing between pages

2008-03-13 Thread Sebastiaan van Erk
Frank van Lankvelt wrote: Assuming B has a reference to Page A, wont A be Serialized with B, when you go to C, and both still share the same serialized object? When B is serialized, so is A, and serialization makes sure the instances to your object are kept shared how can this be? Aren't

Re: object sharing between pages

2008-03-13 Thread Sebastiaan van Erk
Sebastiaan van Erk wrote: Maurice Marrink wrote: Assuming B has a reference to Page A, wont A be Serialized with B, when you go to C, and both still share the same serialized object? When B is serialized, so is A, and serialization makes sure the instances to your object are kept shared

Re: object sharing between pages

2008-03-13 Thread Sebastiaan van Erk
Maurice Marrink wrote: Assuming B has a reference to Page A, wont A be Serialized with B, when you go to C, and both still share the same serialized object? When B is serialized, so is A, and serialization makes sure the instances to your object are kept shared But when A is serialized a

Re: StringResourceModel labels within values

2008-03-13 Thread Sebastiaan van Erk
At one point I wanted to do interpolation in constant strings, so I just used the property interpolator directly: PropertyVariableInterpolator.interpolate(value, modelObject); You can use that to build a model that recursively interpolates until there are no more ${...} occurrences in the valu

Re: Serialisation/serialization documentation?

2008-03-12 Thread Sebastiaan van Erk
I just remember Johan gave a presentation about this at the last WUG in Amsterdam: http://www.slideshare.net/jcompagner/session-stores-page-maps-and-pages Regards, Sebastiaan Sam Hough wrote: Dear All, I'm trying to get a better understanding off when/how/where Wicket serialises components a

Re: Serialisation/serialization documentation?

2008-03-12 Thread Sebastiaan van Erk
Look for page store in the archives and the IPageStore interface. To get your application to deserialize stuff, simply press the back button on a wicket page, and click on a wicket link in the resulting page. That should get your page loaded from the page store. Regards, Sebastiaan Sam Hough

Re: Nabble users: don't edit your posts!

2008-03-12 Thread Sebastiaan van Erk
I posted the problem to their support forum, hopefully it will help. :-) http://www.nabble.com/Double-posts-to-mailing-lists-due-to-edits-on-nabble-to16000975.html Regards, Sebastiaan Martijn Dashorst wrote: On 3/12/08, Sebastiaan van Erk <[EMAIL PROTECTED]> wrote: Considering the num

Re: Nabble users: don't edit your posts!

2008-03-12 Thread Sebastiaan van Erk
Considering the number of times certain questions are asked on this list that are answered 1000 times in the archive, I'm kind of afraid this isn't really going to help (unless it's posted frequently). Is it not possible for nabble to disable the edit function for specifically the wicket lists

Re: Default Focus Behavior?

2008-03-11 Thread Sebastiaan van Erk
Gerolf Seitz wrote: how about boolean WebPage#isAutoFocusEnabled and the possibility to provide several IFocusStrategy instances with different priority? this would allow to eg only set the focus on the first formcomponent of the first form if no other formcomponent has an error... I like somet

Re: Default Focus Behavior?

2008-03-11 Thread Sebastiaan van Erk
Sebastiaan van Erk wrote: Johan Compagner wrote: i still think that behaviors to control focus is a bit wrong focus should have 1 entry point I agree. and i guess that is WebPage.focusComponent() I agree on that one too. or maybe Form (but you could have 2) Exactly, so not a good idea

Re: Default Focus Behavior?

2008-03-11 Thread Sebastiaan van Erk
Johan Compagner wrote: i still think that behaviors to control focus is a bit wrong focus should have 1 entry point I agree. and i guess that is WebPage.focusComponent() I agree on that one too. or maybe Form (but you could have 2) Exactly, so not a good idea. The page should determine

Re: Custom Exception/Error page

2008-03-10 Thread Sebastiaan van Erk
/08, Edvin Syse <[EMAIL PROTECTED]> wrote: Wow, that's a very nice solution. Thanks :)) -- Edvin Sebastiaan van Erk skrev: I would say that the standard practice is probably to use your logging > subsystem to email you the exception. > > For example, if you are using lo

Re: Custom Exception/Error page

2008-03-10 Thread Sebastiaan van Erk
I would say that the standard practice is probably to use your logging subsystem to email you the exception. For example, if you are using log4j to log, you could add something like this to your log4j.xml file:

Re: Default Focus Behavior?

2008-03-09 Thread Sebastiaan van Erk
I think he means that, suppose you have a username and password field; then if the username is already filled in (e.g. from a cookie), then focus should go to the next field (password field). It probably should be the same as the tab order (first empty field in tab order gets focus) from a ui

Re: Security Features offered by Wicket

2008-03-04 Thread Sebastiaan van Erk
Hi, Igor Vaynberg wrote: On Tue, Mar 4, 2008 at 4:42 AM, Sebastiaan van Erk <[EMAIL PROTECTED]> wrote: The form with the token looks good, the question I have is, why is something like it not the default (since almost everybody's site will be vulnerable without it)? becau

Re: Page title when using markup inheritance

2008-03-04 Thread Sebastiaan van Erk
James Carman wrote: The problem with this approach is that you're not able to localize the title if you hard-code it. What I've done is actually specify a key for my messages file and I use that. So, every page has to define its page.title key in its PageClass.properties file. That's what I

Re: Page title when using markup inheritance

2008-03-04 Thread Sebastiaan van Erk
I do basically the same thing, but since the title does not change on my pages I see no need to have a (dynamic) model for the property, plus I just use the constructor to set it, which saves some loc. In other words: public abstract class BasePage extends WebPage { // ... public BasePage(S

Re: Security Features offered by Wicket

2008-03-04 Thread Sebastiaan van Erk
the normal form get then also still works but i am not sure On Tue, Mar 4, 2008 at 11:42 AM, Sebastiaan van Erk <[EMAIL PROTECTED]> wrote: Wicket does nothing to protect from CSRF attacks, and it is trivially vulnerable. Sure it's a lot more difficult with the standard ?wicket:int

Re: Security Features offered by Wicket

2008-03-04 Thread Sebastiaan van Erk
Hi, Nino Saturnino Martinez Vazquez Wael wrote: As with all thing's you can make them more or less secure. As stated before, depending on a level of paranoia nothing are secure! But that's got nothing to do with the question: does Wicket offer security feature X? Nor does it help answer the f

Re: Security Features offered by Wicket

2008-03-04 Thread Sebastiaan van Erk
s, so vulnerable to CSRF attacks. I want to emphasize that I think that these tasks (avoid CSRF attacks, to offer confidentiality, avoid tampering data in forms) would must be resolved by default by frameworks like Wicket to offer "a security framework". Arthur. 2008/3/4, Sebastiaan

Re: Security Features offered by Wicket

2008-03-04 Thread Sebastiaan van Erk
The point of CSRF attack is that you *DONT* have to hijack the session. By including for example an image on the attacking website with a src reference to the vulnerable website, the browser load the page of vulnerable website, and if you currently have a session, the browser will be tricked i

Re: Security Features offered by Wicket

2008-03-04 Thread Sebastiaan van Erk
Wicket does nothing to protect from CSRF attacks, and it is trivially vulnerable. Sure it's a lot more difficult with the standard ?wicket:interface type URLs than it would be with more predictable URLs, but you can still quite easily guess the URLs, and futhermore, to improve your chances of s

  1   2   >