java.lang.VerfiyError with @SpringBean

2007-09-04 Thread Sebastiaan van Erk
Hi, I'm using the entire Wicket/Spring/Hibernate stack to build an application, and I'm using AspectJ to do AOP stuff for me at load time (LTW). I deploy on Tomcat 5.5 with the -javaagent:aspectjweaver.jar option. However, the combination with this and the wicket-spring-annot (@SpringBean)

Re: java.lang.VerfiyError with @SpringBean

2007-09-04 Thread Sebastiaan van Erk
van Erk [EMAIL PROTECTED] wrote: Hi, I'm using the entire Wicket/Spring/Hibernate stack to build an application, and I'm using AspectJ to do AOP stuff for me at load time (LTW). I deploy on Tomcat 5.5 with the -javaagent:aspectjweaver.jaroption. However, the combination with this and the wicket

Two small questions

2007-09-07 Thread Sebastiaan van Erk
Hi, I am trying to display a date in my own format in Wicket 1.3.0 beta 3, and the JavaDocs at http://people.apache.org/~tobrien/wicket/apidocs/index.html list a DateLabel component, however I cannot find it in my version of wicket. Is it removed, or is it going to be added to the next

Re: Two small questions

2007-09-08 Thread Sebastiaan van Erk
Thanks guys for the quick answers! :-) Regards, Sebastiaan Martijn Dashorst wrote: On 9/8/07, Eelco Hillenius [EMAIL PROTECTED] wrote: Nope, add wicket-datetime. Hmm, memory needs reboot at 2:30 am. Martijn smime.p7s Description: S/MIME Cryptographic Signature

Re: Two small questions

2007-09-08 Thread Sebastiaan van Erk
depends on wicket, wicket-extensions, and yoda-time. Regards, Sebastiaan Eelco Hillenius schrieb: On 9/7/07, Martijn Dashorst [EMAIL PROTECTED] wrote: On 9/8/07, Sebastiaan van Erk [EMAIL PROTECTED] wrote: DateLabel component, however I cannot find it in my version of wicket. Add wicket

Re: Two small questions

2007-09-08 Thread Sebastiaan van Erk
Ok, to answer my own question, it seems that ExternalLink does not have the ability to be disabled like Link. Regards, Sebastiaan Sebastiaan van Erk wrote: I have the following code: final ExternalLink link = new ExternalLink(link, model.bind(website)) { @Override

Re: Two small questions

2007-09-09 Thread Sebastiaan van Erk
Hi, It indeed looks more like an omission than a bug. I'll make a feature request out of it. :-) Regards, Sebastiaan Jonathan Locke wrote: yeah, more like an omission, but this is definitely a problem so far as i recall. Kent Tong wrote: Sebastiaan van Erk wrote: Ok, to answer my own

Re: 1.3.0-SNAPSHOT maven error

2007-09-11 Thread Sebastiaan van Erk
of build triggers that exactly? johan On 9/11/07, Sebastiaan van Erk [EMAIL PROTECTED] wrote: Hi, I'm trying to use the latest snapshot version of wicket, but maven complains: [INFO] snapshot org.apache.wicket:wicket:1.3.0-SNAPSHOT: checking for updates from wicket Downloading: http

Re: PageNavigator Vs Nice Url

2007-09-11 Thread Sebastiaan van Erk
I have exactly the same issue, and was thinking of writing a special PageNavigation to do the job for me. Many times the only relevant state is the page number (and possibly the filter used). The use case (which I think occurs very often) is a list of comments in a guestbook or blog, or the

Re: PageNavigator Vs Nice Url

2007-09-11 Thread Sebastiaan van Erk
Hi, chickabee wrote: I think it will be easily achievable by adding one more constructor to PageNavigator which can take the starting page param: Exising: add(new PagingNavigator(navigator, gridView)); Proposed: add(new PagingNavigator(navigator, gridView, startPage)); This startPage can be

Re: Two small questions

2007-09-12 Thread Sebastiaan van Erk
()); externalLink.setEnabled(enabled); add(externalLink); The output is exactly the same as with Link. You can also specify beforeDisabledLink and afterDisabledLink strings in the constructor of DisableLinkBehavior if you don't like the default i /i. Regards, Sebastiaan Sebastiaan van Erk

Re: Bug in IndexedParamUrlCodingStrategy 1.3 Beta3

2007-09-14 Thread Sebastiaan van Erk
I had the same problem; it was caused by a StatelessForm on the page. When replacing StatelessForm with Form it went away. Are you using a stateless form as well? BTW, I made a JIRA issue for this: https://issues.apache.org/jira/browse/WICKET-950 Regards, Sebastiaan Chris Lintz wrote: Hi

Re: Too many open Files

2007-09-14 Thread Sebastiaan van Erk
Do you open any files (streams) in your webapplication that you forgot to close? That would cause the files to run out and cause wicket to complain when it tries to open a new file. On linux you can easily see WHICH resources are being left open by doing lsof. Once you know which resource is

Re: Too many open Files

2007-09-14 Thread Sebastiaan van Erk
for any help in advance, Benjamin 2007/9/14, Sebastiaan van Erk [EMAIL PROTECTED]: Do you open any files (streams) in your webapplication that you forgot to close? That would cause the files to run out and cause wicket to complain when it tries to open a new file. On linux you can easily see

Re: Too many open Files

2007-09-14 Thread Sebastiaan van Erk
what could cause this? There were only 15 users in the test. Thanks for any help in advance, Benjamin 2007/9/14, Sebastiaan van Erk [EMAIL PROTECTED]: Do you open any files (streams) in your webapplication that you forgot to close? That would cause the files to run out and cause wicket to complain

Re: Too many open Files

2007-09-14 Thread Sebastiaan van Erk
it is running on the server at our client and so far we couldn't reproduce the error on our own server. Is it also possible that this is a configuration-issue? Can we tell tomcat to upper the limit for open files? Benjamin 2007/9/14, Sebastiaan van Erk [EMAIL PROTECTED]: Hi, Did you try looking at which

Re: Too many open Files

2007-09-14 Thread Sebastiaan van Erk
is opend for every single image. And id multiple user do that the same time this could cause the error. But I dont't know how to fix this. Our client wants to use IE. Benjamin 2007/9/14, Sebastiaan van Erk [EMAIL PROTECTED]: Hi, I don't know if those jars should be open multiple times (unless you do

Re: Bug in IndexedParamUrlCodingStrategy 1.3 Beta3

2007-09-14 Thread Sebastiaan van Erk
Maybe WICKET-950 should be marked as a duplicate of this one then. Regards, Sebastiaan Chris Lintz wrote: I Have submitted the following Jira on this issue: http://issues.apache.org/jira/browse/WICKET-976 Chris Lintz wrote: Actually I just realized what causes this but have no idea how to

Re: Null values in Lists question

2007-10-04 Thread Sebastiaan van Erk
Cool, thanks Martijn, learned something useful today! (which is a pleasant escape from my philosophy homework where I have to try understand what stuff like It follows that trying to give tensed thoughts or sentences non-token-reflexive truth-conditions, tensed or tenseless, always leads to

Re: Null values in Lists question

2007-10-04 Thread Sebastiaan van Erk
Well I only have up to chapter 4 so far... too bad, maybe it would have helped :-)) Sebastiaan Martijn Dashorst wrote: On 10/4/07, Sebastiaan van Erk [EMAIL PROTECTED] wrote: (which is a pleasant escape from my philosophy homework where I have to try understand what stuff like It follows

wicket:enclosure and authorization

2007-10-31 Thread Sebastiaan van Erk
Hi, I have a main menu with an admin link which only renders when the user has the ADMIN role (MainMenu.java): final BookmarkablePageLink adminLink = new BookmarkablePageLink(adminLink, AdminHomePage.class); MetaDataRoleAuthorizationStrategy.authorize(adminLink, RENDER, ADMIN);

Re: wicket:enclosure and authorization

2007-10-31 Thread Sebastiaan van Erk
this you have to put the link into a webmarkupcontainer, and authorize that container instead of a link. -igor On 10/31/07, Sebastiaan van Erk [EMAIL PROTECTED] wrote: Hi, I have a main menu with an admin link which only renders when the user has the ADMIN role (MainMenu.java): final

Re: wicket:enclosure and authorization

2007-11-02 Thread Sebastiaan van Erk
Just some thoughts I have on the issue... Johan Compagner wrote: they are not really 2 concepts, if something is not visible then it wont be rendered or if something is not rendered then it is not visible, so isRenderedAllowed() is just isVisibleAllowed(), So rename it?? Note that your

Re: wicket:enclosure and authorization

2007-11-02 Thread Sebastiaan van Erk
Johan Compagner wrote: true that if something is not rendered then it is not visible. The problem is that the you're confusing the name of the visible property with what it means, namely: isVisible() means is visible IF the component is allowed to render But the problem is that that line

empty wicket:message

2007-11-03 Thread Sebastiaan van Erk
Hi, I was wondering if it is possible to configure wicket to make wicket:message output the key in braces when the key is not found (at least in development mode), because that would make it a lot easier to spot missing labels... That is, what I'd like to do is: wicket:message

Re: empty wicket:message

2007-11-03 Thread Sebastiaan van Erk
define it to be empty in the properties file. Just my two cents... :-) Regards, Sebastiaan to do what you want we need to change that contract. i am not opposed to that per se, but there needs to be a discussion followed by a vote. -igor On 11/3/07, Sebastiaan van Erk [EMAIL PROTECTED

Re: empty wicket:message

2007-11-03 Thread Sebastiaan van Erk
Eelco Hillenius wrote: Btw, I would mind a decision about this in this weekend, as I'm finishing the chapter on localization right now :-) FWIW, I don't like the silent failure we have now, and believe that using the body as a default isn't very helpful; e.g. if you have the default body the

Re: empty wicket:message

2007-11-04 Thread Sebastiaan van Erk
Johan Compagner wrote: thats better. I think that throw exceptions on missing resources shouldn't happen in deployment mode anyway i think there is no much use for it a good log statement in the server log should be enough. i dont find it very dangerous that it shows the body IF it has a body

Localizer cache

2007-11-04 Thread Sebastiaan van Erk
Hi, I was wondering if I could somehow turn off caching of the localizer in development mode (from the current source it doesn't look like it). The reason I ask is because now the cache is only flushed if a resource that is being watched is changed. However: * if you add a new properties

Re: Localizer cache

2007-11-05 Thread Sebastiaan van Erk
content I don't really know if the message mechanism is the right way to go? Regards, Sebastiaan On 11/4/07, Sebastiaan van Erk [EMAIL PROTECTED] wrote: Hi, I was wondering if I could somehow turn off caching of the localizer in development mode (from the current source it doesn't look like

Re: Localizer cache

2007-11-05 Thread Sebastiaan van Erk
Ok, I created a JIRA for this: https://issues.apache.org/jira/browse/WICKET-1128 Regards, Sebastiaan Eelco Hillenius wrote: Best to open a proper feature request for this in JIRA. Eelco On 11/4/07, Sebastiaan van Erk [EMAIL PROTECTED] wrote: Hi, I was wondering if I could somehow turn off

Re: empty wicket:message

2007-11-05 Thread Sebastiaan van Erk
BTW, I just wanted to say how much I love Wicket! (Which you can tell by the minor issues that I'm mailing about on this list, which underlines the fact that I can't find any major ones...) :-) The resulting code is so short and so clean, Wicket it is so easy to work with, and everything

Re: empty wicket:message

2007-11-05 Thread Sebastiaan van Erk
Johan Compagner wrote: On 11/5/07, Sebastiaan van Erk [EMAIL PROTECTED] wrote: BTW, I just wanted to say how much I love Wicket! As long as you don't give all your Love to Wicket, you have to keep some for Morena! (and her beautiful wicket site http://www.denherdervarga.com/ ) Don't worry

Re: Localizer cache

2007-11-05 Thread Sebastiaan van Erk
or not. Regards, Sebastiaan Sebastiaan van Erk wrote: Ok, I created a JIRA for this: https://issues.apache.org/jira/browse/WICKET-1128 Regards, Sebastiaan Eelco Hillenius wrote: Best to open a proper feature request for this in JIRA. Eelco On 11/4/07, Sebastiaan van Erk [EMAIL PROTECTED] wrote: Hi

Re: Problem with wicket authentication

2007-11-06 Thread Sebastiaan van Erk
Looks good to me. I'm using just like you are. Are you sure that your wicket application class is correct (i.e., that your filter is actually using WicketApplication, and not WebApplication or something like that)? I sugguest putting some breakpoints and checking the logs. Your

Re: Problem with wicket authentication

2007-11-07 Thread Sebastiaan van Erk
Hugues Pichereau wrote: Sebastiaan van Erk wrote: [...] If you do override init, make sure to call super.init() Whao! well done, Sebastiaan, I was overriding init(), and not calling super.init(); Now it works. But what bugs me is that it solves my own application (where init

Re: Multiple wicket:child / tags on a single base page?

2007-11-07 Thread Sebastiaan van Erk
Korbinian Bachl wrote: you missed solution3: the real-wicket-way(tm) for multiple content-places in a tied page-area: Whaaa, I seriously hope this is not the real-wicket-way! My brain hurts! A framework is supposed to make things easy and readable! The code below is just way too complicated

Re: Multiple wicket:child / tags on a single base page?

2007-11-07 Thread Sebastiaan van Erk
John Krasnay wrote: You've just illustrated one of the major problems with the panel-from-a-subclass approach: it's easy to get it wrong. In your example, addAbstract1 and addAbstract2 will be called in a class whose constructor has not yet been called. Consider: public DerivedPage extends

Attempted summary of multiple wicket:child / thread

2007-11-07 Thread Sebastiaan van Erk
Hi, Since the thread on multiple wicket:child/ support is insanely long I'm going to try make a clear and concise summary of what has been proposed and what the arguments for and against were. Bear with me. :-) 1. What is proposed? Currently Wicket supports *merging* of markup on a base

Re: Attempted summary of multiple wicket:child / thread

2007-11-08 Thread Sebastiaan van Erk
Eelco wrote: The thing is though, even though it is 100% backwards compatible, it is something we'll have to support. It adds complexity to the implementation, and we'll have to answer questions about it on the list. That would be fine if everyone would have been wildly enthusiastic about it,

Re: Multiple wicket:child / tags on a single base page?

2007-11-07 Thread Sebastiaan van Erk
Hi, I haven't really heard any real arguments against this patch. Basically it's just relaxing a constraint on the current implementation of child/extend. It's not so much a new feature as improving the current feature. I am honestly interested in why people are so against it. Igor Vaynberg

Re: Several localized buttons in a form

2007-11-08 Thread Sebastiaan van Erk
You could use Button.setDefaultFormProcessing(false) to turn of form validation. From the javadoc: /** * Sets the defaultFormProcessing property. When false (default is true), * all validation and form updating is bypassed and the onSubmit method of * that

Re: Multiple wicket:child / tags on a single base page?

2007-11-08 Thread Sebastiaan van Erk
Eelco Hillenius wrote: On Nov 7, 2007 5:53 PM, Chris Colman [EMAIL PROTECTED] wrote: heh, wellyou can be against this, but i think if we take a vote right now most core-devs with binding votes will vote this down I still can't see the reason for the negativity of some of the core-devs:

Re: Attempted summary of multiple wicket:child / thread

2007-11-08 Thread Sebastiaan van Erk
Hi, Eelco Hillenius wrote: In conclusion, the proposed change: - is useful - does not have to be used if you don't like it - is 100% backwards compatible - it introduces no new tags (if using child/extends) The thing is though, even though it is 100% backwards

Re: Attempted summary of multiple wicket:child / thread

2007-11-08 Thread Sebastiaan van Erk
Jan Kriesten wrote: hi everyone, actually, i wonder what is wrong with al's suggestion to add id's to wicket:child and wicket:extend? regards, --- jan. That is what I'd suggest as well, since it involves the least amount of change. As an added bonus, if no id's are added and 2 wicket:child

Re: Disabling serialization/storage of pages in session?

2007-11-09 Thread Sebastiaan van Erk
Hi, You should use a second level cache to cache objects and queries from your database; and that's not Wicket's job, Wicket is a Web framework. For example, use Hibernate + ehcache. Regards, Sebastiaan serban.balamaci wrote: Why is everybody pointing out not to have database data inside

Re: Attempted summary of multiple wicket:child / thread

2007-11-09 Thread Sebastiaan van Erk
Hi, Actually, Wicket already works like this. It does *NOT* require the wicket:extend, and if it's not present it just renders the contents of the wicket:child. (Just tested this with beta4). Furthermore, your patch works exactly the same as far for multilple child sections (as far as I can

Re: wicket:enclosure and authorization

2007-11-09 Thread Sebastiaan van Erk
be an improvement to aligh auth strategy with visibility rather then render...what do others think? -igor On 10/31/07, Sebastiaan van Erk [EMAIL PROTECTED] wrote: Hi, OK, figured it might be something like this! Thanks for the fast reply. :-) Regards, Sebastiaan Igor Vaynberg wrote: enclosures

Re: question about HybridUrlCodingStrategy

2007-11-12 Thread Sebastiaan van Erk
6:33 PM, Sebastiaan van Erk [EMAIL PROTECTED] wrote: Hi, I have a page mounted using the hybrid coding strategy. In the page I have a language link, to change the locale in the session (to show another language). Now what happens is, I have http://mysite/mypage.1.1 (in Dutch) click English link

Re: Label: Render HTML content from String

2007-11-12 Thread Sebastiaan van Erk
Hehe, nasty! :-) I suggest doing it in one replaceAll though: text.replaceAll([^]*, *) This has the added benefit of correctly treating unexpected and as yet unknown tags, and thus is more future proof! Regards, Sebastiaan Martijn Dashorst wrote: this should get what you want: add(new

Re: question about HybridUrlCodingStrategy

2007-11-13 Thread Sebastiaan van Erk
Turns out I had a listview on the page which was generating new versions of the page. Setting setReuseItems(true) solved the versioning problem. (Which was basically the only real problem I was having). Regards, Sebastiaan Sebastiaan van Erk wrote: Hi, Thanks for the reply! Actually

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

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 sebs...@sebster.comwrote: 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

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

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/style/locale/images

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: wicket:enclosure child=comp1 div wicket:id=comp1/div div wicket:id=comp2/div /wicket:enclosure In the code I say comp1 is invisible, so the whole enclosure is invisible. However, in

Re: WicketTester, enclosures, and assertInvisible

2011-10-31 Thread Sebastiaan van Erk
Hi, Thanks for the answer. I guess this is the expected behavior of WicketTester then. Best regards, Sebastiaan On 2011-10-31 14:12, Martin Grigorov wrote: Hi, I hit the very same problem while trying to make a test case for https://issues.apache.org/jira/browse/WICKET-4172. It seems

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() { },

Re: WicketTester and ajax call from javascript

2011-11-27 Thread Sebastiaan van Erk
Hi, Thanks for your answer. Unfortunately for the moment I don't have the opportunity to upgrade to Wicket 1.5 on this project. Is there a way to achieve this using Wicket 1.4? If not, I can live with it, but it would be nice if possible. Best regards, Sebastiaan On 11/28/2011 07:35 AM,

Re: WicketTester and ajax call from javascript

2011-11-27 Thread Sebastiaan van Erk
().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 opportunity to upgrade to Wicket 1.5 on this project

Wicket + OSGI + Session

2007-11-21 Thread Sebastiaan van Erk
Hi, When Wicket pages are serialized/deserialized to the page store, they are serialized/deserialized using the IObjectStreamFactory set in the Objects class, and (in trunk) the DefaultObjectStreamFactory overrides the resolveClass method of ObjectInputStream to consult the application's

Re: Wicket + OSGI + Session

2007-11-21 Thread Sebastiaan van Erk
matej did try to avoid double serialization (by us and by the container) So i would say that it would go automatic already Isn't this the case matej? johan On Nov 21, 2007 10:39 AM, Sebastiaan van Erk [EMAIL PROTECTED] wrote: Hi, When Wicket pages are serialized/deserialized to the page store

Re: How to determine absolute URL of a mounted page?

2007-11-23 Thread Sebastiaan van Erk
What's wrong with putting this in a configuration file or just a constant. Because in general this does not really work. For example, your web server may be behind a proxy or firewall, it may be clustered (and thus you have many machines instead of just one and they can't all have the same

Re: How to determine absolute URL of a mounted page?

2007-11-25 Thread Sebastiaan van Erk
and preferred Wicket way to determine the URLs. Thanks alot, Oliver Sebastiaan van Erk wrote: What's wrong with putting this in a configuration file or just a constant. Because in general this does not really work. For example, your web server may be behind a proxy or firewall, it may

Re: Wicket + OSGI + Session

2007-11-26 Thread Sebastiaan van Erk
this is an undeterministic error but in Opera it occurs every time I've clicked the link. Best regards, Daniel On Nov 21, 2007 10:39 AM, Sebastiaan van Erk [EMAIL PROTECTED] wrote: Hi, When Wicket pages are serialized/deserialized to the page store, they are serialized/deserialized using

Re: [RFE] packed JS in DEPLOYMENT mode.

2007-11-29 Thread Sebastiaan van Erk
I don't really understand the desire to pack js. For who do you want to reduce the overall traffic? The client, or the hoster? I experimented with the packed js, but in general I hardly notice the overhead for some js (the sum of the size of images is often bigger than the sum of all the

Re: [RFE] packed JS in DEPLOYMENT mode.

2007-11-29 Thread Sebastiaan van Erk
for this purpose. It is indeed does not result in a performance boost, but it is still an improvement. Sebastiaan van Erk wrote: I don't really understand the desire to pack js. For who do you want to reduce the overall traffic? The client, or the hoster? I experimented with the packed js

Re: [RFE] packed JS in DEPLOYMENT mode.

2007-11-29 Thread Sebastiaan van Erk
( AbstractDefaultAjaxBehavior.class, wicket-ajax.js))); } Alex. Sebastiaan van Erk wrote: I'm talking about packers (like the jQuery packed version): What I see in jQuery.pack.js: eval(function(p,a,c,k,e,r){e=function(c){return(ca?'':e(parseInt(c/a)))+ ((c=c%a)35?String.fromCharCode(c+29

Re: [RFE] packed JS in DEPLOYMENT mode.

2007-11-29 Thread Sebastiaan van Erk
Didn't know that; that's nice. :-) Learn something new every day. Do you also serve the HTML gzipped? Regards, Sebastiaan Matej Knopp wrote: We do also serve javascript gzipped, so there is no reason for using mod_gzip either. -Matej On Nov 29, 2007 1:48 PM, Sebastiaan van Erk [EMAIL

Re: [RFE] packed JS in DEPLOYMENT mode.

2007-11-29 Thread Sebastiaan van Erk
make the pages snappier by gzipping it to limit the bandwidth required by the *client*, I think it's worth it. Regards, Sebastiaan -Matej On Nov 29, 2007 1:52 PM, Sebastiaan van Erk [EMAIL PROTECTED] wrote: Didn't know that; that's nice. :-) Learn something new every day. Do you also serve

Re: [RFE] packed JS in DEPLOYMENT mode.

2007-11-30 Thread Sebastiaan van Erk
* stream the data immediately. Regards, Sebastiaan Johan Compagner wrote: Personally i dont like gzipped html sites, because has to load first the complete stream before it does anything, or is that changed nowadays? On 11/29/07, Sebastiaan van Erk [EMAIL PROTECTED] wrote: Matej Knopp wrote

Re: How to secure passwords?

2007-12-03 Thread Sebastiaan van Erk
Korbinian Bachl wrote: However, they *CAN NOT* generate a collision for an arbitrary hash. Furthermore, doing this in a limited size string (like a password) adds another complication. they can and did ! - if you have a hashvalue e.g: 79054025255fb1a26e4bc422aef54eb4 you can use various

Re: How to secure passwords?

2007-12-03 Thread Sebastiaan van Erk
them on their monitor. ;-) And since all of this has nothing to do with Wicket (other than the fact that many Wicket apps probably have user accounts with passwords in a database), I'm going to leave it at this. :-) Regards, Sebastiaan On Dec 3, 2007 1:33 PM, Sebastiaan van Erk [EMAIL

Re: How to secure passwords?

2007-12-04 Thread Sebastiaan van Erk
John Krasnay wrote: I see from your later posts that your requirements are not that strict, but if anyone else on the list needs to do password hashing, here's one of the best articles I've seen on it:

Re: How to secure passwords?

2007-12-04 Thread Sebastiaan van Erk
Sebastiaan van Erk wrote: Next he goes on to state: Speed is exactly what you don’t want in a password hash function. You don’t care if password tests take twice as long, or even ten times as long, because password hashes aren’t in the 80/20 hot spot. Now the attacker. This is easy

Re: How to secure passwords?

2007-12-04 Thread Sebastiaan van Erk
John Krasnay wrote: For example: 1. take a “dictionary” —- say, of all combinations of alphanumerics less than 15 characters 2. hash all of them 3. burn the results onto a DVD. The keyspace is size is 62^15-1 = 76890970494878552634367. That means if you can save a hash

Re: wicket cluster on tomcat 6

2007-12-04 Thread Sebastiaan van Erk
It has to do with the page store. Note that the back button will work, but clicking on links on the page after you use the back button will cause page expired. See: http://www.slideshare.net/jcompagner/session-stores-page-maps-and-pages/ if you want the nitty gritty details. But I still

Re: How to get session from panel ?

2007-12-20 Thread Sebastiaan van Erk
Or Session.get(), or better yet use MySession.get() where in MySession you define the static method: public static MySession get() { return (MySession) Session.get(); } which avoids casts. (Use can use the same trick to get the application). Regards, Sebastiaan Suad AlShamsi wrote:

Re: How to get session from panel ?

2007-12-20 Thread Sebastiaan van Erk
() Will this reliably work in WicketTester or are there implication you should be aware of? Regards Peter Am 20.12.2007 um 10:27 schrieb Sebastiaan van Erk: Or Session.get(), or better yet use MySession.get() where in MySession you define the static method: public static MySession get() { return

Wicket Session and threading

2008-01-03 Thread Sebastiaan van Erk
Hi, Am I right in concluding that I must make my wicket session thread-safe? That is, if I want to store an int value in the session, I should use a volatile or AtomicInteger? Using a debugger I just tested and found that I could get the same instance of my MySession class in two different

Re: Wicket Session and threading

2008-01-03 Thread Sebastiaan van Erk
Eelco Hillenius wrote: Am I right in concluding that I must make my wicket session thread-safe? That is, if I want to store an int value in the session, I should use a volatile or AtomicInteger? Yes. We try our best to make pages/ components as thread safe as possible, but making the session

Re: @SpringBean and serialization

2008-02-07 Thread Sebastiaan van Erk
dfernandez wrote: Hello everyone, I have a question regarding the relation between the @SpringBean annotation and the serialization of objects being referenced in a Page. If I have: @SpringBean(name=myBean) protected MyService myService; May I suppose that the proxy object that @SpringBean

Re: Serialization question

2008-02-08 Thread Sebastiaan van Erk
Hi, I don't see any problem with the code below, that is, from what you pasted I don't see any references to a TextFieldDecorator being kept. However when Wicket says that something is not serializable it gives you the entire object graph path to the object that is causing the problem, so

Re: Serialization question

2008-02-08 Thread Sebastiaan van Erk
) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java :326) at org.apache.wicket.util.io.IObjectStreamFactory$2.writeObjectOverride( IObjectStreamFactory.java:117) ... 29 more 2008/2/8, Sebastiaan van Erk [EMAIL PROTECTED]: Hi, I don't see any problem with the code below, that is, from what you pasted I don't

Re: Switching locales with the same link

2008-02-13 Thread Sebastiaan van Erk
Like in the code given, you can just use : HomePage.this.getString(header.versionLanguage) in the anonymous inner class instead of using the trick you mention. The reference of the page is *already* passed to the anonymous inner class (by java itself, since anonymous inner classes are not and

Re: Wicket LinkTree subtree collapse/expand

2008-02-22 Thread Sebastiaan van Erk
Ok, thanks for the quick reply. :-) https://issues.apache.org/jira/browse/WICKET-1366 Regards, Sebastiaan Igor Vaynberg wrote: looks like a bug in the tree, please file a jira issue -igor On Fri, Feb 22, 2008 at 9:57 AM, Sebastiaan van Erk [EMAIL PROTECTED] wrote: Hi, I'm trying to have

Small shared resource question...

2008-02-24 Thread Sebastiaan van Erk
Hi, I register some DynamicWebResources in my Application's init method, as well as mount them (in a loop, a different one for every locale): getSharedResources().add(name, resource); mountSharedResource(/downloads/ + name, new ResourceReference(name).getSharedResourceKey()); I

Re: Small shared resource question...

2008-02-24 Thread Sebastiaan van Erk
want to do is mount the English resource on /downloads/cvs_en.pdf, the Dutch resource on /downloads/cvs_nl.pdf and have a resource link on my page which links to the proper one depending on the locale. Regards, Sebastiaan On 2/24/08, Sebastiaan van Erk [EMAIL PROTECTED] wrote: Hi, I

Re: CompoundModel based on proxies

2008-02-26 Thread Sebastiaan van Erk
Matej Knopp wrote: model.getFirstName() can't really return IModel, if Customer.getFirstName() returns string. Anyway, I like the idea, but I don't like the syntax. instead of one line [add(new TextField(id, model).setRequred(true)) ] you have now three separate lines. So I was thinking of

Re: CompoundModel based on proxies

2008-02-26 Thread Sebastiaan van Erk
Matej Knopp wrote: Hi, On Tue, Feb 26, 2008 at 11:13 AM, Sebastiaan van Erk [EMAIL PROTECTED] wrote: Matej Knopp wrote: model.getFirstName() can't really return IModel, if Customer.getFirstName() returns string. Anyway, I like the idea, but I don't like the syntax. instead of one

Re: CompoundModel based on proxies

2008-02-26 Thread Sebastiaan van Erk
to the JIRA issue: https://issues.apache.org/jira/browse/WICKET-1327 -Matej On Tue, Feb 26, 2008 at 11:32 AM, Sebastiaan van Erk [EMAIL PROTECTED] wrote: Matej Knopp wrote: Hi, On Tue, Feb 26, 2008 at 11:13 AM, Sebastiaan van Erk [EMAIL PROTECTED] wrote: Matej Knopp wrote

Re: Small shared resource question...

2008-02-27 Thread Sebastiaan van Erk
the fact that I don't get the resource key and have to make a new throwaway ResourceReference to get at it. I was wondering, could add not just return the resource key of the added resource? Regards, Sebastiaan Sebastiaan van Erk wrote: Johan Compagner wrote: Isnt the getResourceKey

Re: Small shared resource question...

2008-02-27 Thread Sebastiaan van Erk
on the current locale... Currently I just have multiple links, one to each (version of the) resource, with only one link visible at a time, but that feels like a hack to me. Regards, Sebastiaan Kent Tong wrote: Sebastiaan van Erk wrote: In my web page with the resource link I do

Re: Small shared resource question...

2008-02-27 Thread Sebastiaan van Erk
Kent Tong wrote: Sebastiaan van Erk wrote: As far as I can tell, there's still only 1 resource, which has the locale of the page (at creation time). Every time the page is rendered, it will generate a different variant of the resource reference due to the setLocale() call. Sebastiaan

Re: SpringBean in AuthenticatedWebSession

2008-02-29 Thread Sebastiaan van Erk
One option is to add: InjectorHolder.getInjector().inject(this) In your session constructor. Regards, Sebastiaan Bert Radke wrote: Hi List, thanks to the help i received so far here, i managed to load objects through JPA using DAOs. The DAOs get injected just fine using the wicket-spring

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

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

Re: Security Features offered by Wicket

2008-03-04 Thread Sebastiaan van Erk
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 van Erk [EMAIL PROTECTED

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

Re: Security Features offered by Wicket

2008-03-04 Thread Sebastiaan van Erk
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:interface type URLs than

  1   2   >