error messages due to hack/search-bots

2008-12-22 Thread Antoine van Wel
Heya, we're trying to catch all errors caused by hack search-bots on our wicket-app. AFAIK these bots take existing links, chop 'em up in smaller chunks and try to append all kind of . We've caught most of the errors which result due to these bots, but this one still stands: XXX.XXX.XXX.XXX

Re: error messages due to hack/search-bots

2008-12-22 Thread Antoine van Wel
org.apache.wicket.request.target.resource.SharedResourceRequestTarget where the message equals unable to lazily register shared resource). On Mon, 22 Dec 2008 14:05 +0100, Antoine van Wel antoine.van@gmail.com wrote: Heya, we're trying to catch all errors caused by hack search-bots on our wicket-app. AFAIK these bots take

Re: error messages due to hack/search-bots

2008-12-22 Thread Antoine van Wel
org.apache.wicket.request.target.resource.SharedResourceRequestTarget where the message equals unable to lazily register shared resource). On Mon, 22 Dec 2008 14:05 +0100, Antoine van Wel antoine.van@gmail.com wrote: Heya, we're trying to catch all errors caused by hack search-bots on our wicket-app. AFAIK these bots take

Re: error messages due to hack/search-bots

2008-12-22 Thread Antoine van Wel
, and a 404 should be sufficient (without ERRORs in the log). Regards, Sebastiaan On Mon, 22 Dec 2008 14:05 +0100, Antoine van Wel antoine.van@gmail.com wrote: Heya, we're trying to catch all errors caused by hack search-bots on our wicket-app. AFAIK these bots take existing links, chop

bug? RequestUtils.toAbsolutePath using AJAX is not constructing a valid path

2009-03-07 Thread Antoine van Wel
Hey hey, trying to construct a URL like this: RequestUtils.toAbsolutePath(urlFor(MyPage.class, null).toString()); this works fine in general, but when executed using AJAX calls, it produces http:/mypagemountpath instead of the expected http://my.host.name/mypagemountpath Am I missing

Re: Have a feature, want to contribute

2009-03-14 Thread Antoine van Wel
Same here! Great idea Marat... I missed the original post. And I can use it right now... Antoine. On Fri, Mar 13, 2009 at 11:10 PM, Alex Objelean alexandru.objel...@isdc.rowrote: Marat, as you can see people are interested and waiting for this feature to be published somewhere Alex

getRequestUrl behavior difference between page call and ajax call

2008-07-30 Thread Antoine van Wel
Hi, When calling (WebRequest)RequestCycle.get().getRequest()).getHttpServletRequest().getRequestURL() on a page with page parameters, I'm seeing different results: - when loading the page from the browser, the URL is returned including the page parameters; - when updating through AJAX, the URL

Re: getRequestUrl behavior difference between page call and ajax call

2008-07-30 Thread Antoine van Wel
AM, Antoine van Wel [EMAIL PROTECTED] wrote: Hi, When calling (WebRequest)RequestCycle.get().getRequest()).getHttpServletRequest().getRequestURL() on a page with page parameters, I'm seeing different results: - when loading the page from the browser, the URL is returned including the page

htmlvalidator / responsefilter not executed through wickettester?

2009-08-24 Thread Antoine van Wel
Hi, HtmlValidator [1] turns out to be a great help for those who care about valid (x)html. Now I'm trying to get it to work in my unit tests, it doesn't seem to be picked up; in fact I wonder if any responsefilter is being executed at all when running from wickettester. What do you think? The

Re: htmlvalidator / responsefilter not executed through wickettester?

2009-08-24 Thread Antoine van Wel
Thanks for the quick response. Somehow I get the feeling a patch will take quite some effort and time is kind of scarce now... :-) Antoine On Mon, Aug 24, 2009 at 12:00 PM, Martijn Dashorst martijn.dasho...@gmail.com wrote: HtmlValidator was not designed for use in WicketTester, see my

Re: UTF-8

2009-09-02 Thread Antoine van Wel
On Tue, Sep 1, 2009 at 3:39 PM, Johan Compagner jcompag...@gmail.comwrote: Everybody should stop using any other encoding then UTF-8 Common people we should start this change from happening now :) Drop all charsets and all over the world. ban them everywhere, it should be illegal to use

better way to strip wicket markup / tags per page?

2009-09-29 Thread Antoine van Wel
Hi, on the wiki[1] it is described how to get rid of wicket markup such as wicket:id attributes on a page basis. The solution looks like a dirty hack to me which may go wrong when for instance exceptions occur. Does anybody know of a better way? For completeness sake, here is the code duplicated

Re: better way to strip wicket markup / tags per page?

2009-09-29 Thread Antoine van Wel
, Sep 29, 2009 at 7:46 PM, Marat Radchenko slonopotamusor...@gmail.com wrote: In some situations during development... With that in mind, this solution is absolutely ok. 2009/9/29 Antoine van Wel antoine.van@gmail.com Hi, on the wiki[1] it is described how to get rid of wicket

Re: better way to strip wicket markup / tags per page?

2009-09-30 Thread Antoine van Wel
the setting to false while another page has just started rendering (e.g. the line immediately after change the setting to true) then that page will render with the wrong value. Craig -Original Message- From: Antoine van Wel [mailto:antoine.van@gmail.com] Sent: Tuesday, September 29, 2009

how to update a form model when clicking a link

2009-10-21 Thread Antoine van Wel
On a page there's a form with a textarea. Somewhere else on the page there is a wicket link, which is not inside the form. The user types something in the textarea and then presses the link. Now what I'd like to achieve is when the code of the link is executed, the model of the form is up-to-date

Re: how to update a form model when clicking a link

2009-10-21 Thread Antoine van Wel
= new TextField(txt, model); in Link Execution - tf.setModel(mode); - Ursprüngliche Mail Von: Antoine van Wel antoine.van@gmail.com An: users@wicket.apache.org Gesendet: Mittwoch, den 21. Oktober 2009, 13:22:01 Uhr Betreff: how to update a form model when clicking a link

Re: how to update a form model when clicking a link

2009-10-21 Thread Antoine van Wel
:18 AM, Antoine van Wel antoine.van@gmail.com wrote: Thanks for the replies. Peter: that won't work - the contents of the textarea are not transferred to the wicket app without some javascript / ajax magic happening under the hood Pedro: Using that I could let the component listen

Re: how to update a form model when clicking a link

2009-10-21 Thread Antoine van Wel
Problem solved, no need to touch the action attribute, just put the call in onsubmit and leave the action untouched. Antoine On Wed, Oct 21, 2009 at 10:30 PM, Antoine van Wel antoine.van@gmail.com wrote: Thanks, it works! In my case submitting the form is not natural at all - the form

Re: OnChangeAjaxBehavior only first time

2010-01-18 Thread Antoine van Wel
Hi, Does anybody have ideas how to solve this by *not* updating the form? I'm running into the same issue when putting an OnChangeAjaxBehavior on a TextField inside a form (triggered only once). The component to be updated is outside the form. Updating the form like suggested solves the issue;

Re: OnChangeAjaxBehavior only first time

2010-01-19 Thread Antoine van Wel
focus off the textfield, hook into the onkeyup (or down) event instead. -- Jeremy Thomerson http://www.wickettraining.com On Mon, Jan 18, 2010 at 3:03 PM, Antoine van Wel antoine.van@gmail.comwrote: Hi, Does anybody have ideas how to solve this by *not* updating the form? I'm

Re: CryptedUrlWebRequestCodingStrategy + WebRequestCodingStrategy = resource URLs are not encrypted (bug?).

2010-01-21 Thread Antoine van Wel
What can you do if you need to enforce that no fqn's are ever generated in (resource) paths? Best I can think of now is putting a breakpoint in the resourceKey method where the fqn is retrieved, and then stepping through your full webapp - which is a rather poor solution. Any other ideas?

urlFor troubles

2009-04-20 Thread Antoine van Wel
One issue I keep running into when programming with Wicket is using urlFor... I guess I am missing something. Now I am trying to redirect to a page; /hello is mounted to HelloPage using an indexed mounting strategy /user is mounted to UserPage when a user types /hello/username, HelloPage

Re: urlFor troubles

2009-04-20 Thread Antoine van Wel
...@wickettraining.com wrote: Have you tried setResponsePage after calling setRedirect(true)? -- Jeremy Thomerson http://www.wickettraining.com On Mon, Apr 20, 2009 at 2:14 PM, Antoine van Wel antoine.van@gmail.comwrote: One issue I keep running into when programming with Wicket is using urlFor... I

QueryStringUrlCodingStrategy not encoding te?t - is this correct?

2009-04-23 Thread Antoine van Wel
Hi all, using 1.3.5 : mounted a bookmarkable page using the QueryStringUrlCodingStrategy, now I'm passing in a page parameter with key search and value te?t -- the target url is ?search=te?t tracing this, turns out the QueryStringUrlCodingStrategy just applies UTF-8 encoding (or whatever

Re: QueryStringUrlCodingStrategy not encoding te?t - is this correct?

2009-04-24 Thread Antoine van Wel
=value pairs and one frequently used value is a reference to another URI, it is sometimes better for usability to avoid percent-encoding those characters. On 4/23/09, Antoine van Wel antoine.van@gmail.com wrote: Hi all, using 1.3.5 : mounted a bookmarkable page using

Re: Failed to handle wicket:container

2009-07-01 Thread Antoine van Wel
replace the wicket:container by a div, and a better error message may appear. in my case the error appeared for a wrong wicket:id (using 1.3.6) it would be helpful if the error message made more sense, shall i file a jira issue for this? (don't know if the same message occurs in 1.4) Antoine

form inside table not displayed on ajax call

2009-07-01 Thread Antoine van Wel
Hi all, I have a table with various rows in them with an action link per row. When pressing the action link, that row disappears, and new rows are inserted. It works as a charm, except when the newly inserted rows are surrounded by a form tag, so inside the form, there are tr tags. What happens

Re: form inside table not displayed on ajax call

2009-07-01 Thread Antoine van Wel
why, of course... thanks for your quick reply! Antoine. On Wed, Jul 1, 2009 at 11:47 PM, Igor Vaynberg igor.vaynb...@gmail.comwrote: html spec does not allow you to nest a form tag inside a table tag unless the form is inside a td -igor On Wed, Jul 1, 2009 at 2:06 PM, Antoine van

Re: CryptedUrlWebRequestCodingStrategy + WebRequestCodingStrategy = resource URLs are not encrypted (bug?).

2010-02-09 Thread Antoine van Wel
a quiet arbitrary requirement, especially when it comes to security. an fqn does not give anything away security-wise. -igor On Thu, Jan 21, 2010 at 1:18 AM, Antoine van Wel antoine.van@gmail.com wrote: What can you do if you need to enforce that no fqn's are ever generated in (resource

Re: Form validation without a form component

2010-02-11 Thread Antoine van Wel
for the archive-searchers :) simply override onValidate in the Form class, check your listsize there call error() when applicable Antoine On Fri, Apr 3, 2009 at 12:25 PM, triswork tristan.k...@gmail.com wrote: Thanks for the suggestion Martijn. I tried return new FormComponent[0]; and got

expecting different behavior from form validation - potential bug?

2010-02-11 Thread Antoine van Wel
hi, In a nested form the onValidate() is overridden. It sets an error message on a component inside this form - so not on the form itself. However the submit on the form itself is executed as if no error exists. What I see when debugging is that hasErrorMessages on the inside nested form returns

Re: Validate with info messages, instead of errors

2010-02-25 Thread Antoine van Wel
As for the link you show, the author is building something which is available in the Wicket core, which he seems to have missed or perhaps it's just an outdated article. Make a FeedbackPanel for every FormComponent you want to have messages for and initialize it with a

Re: jWicket release 0.5.0

2010-03-01 Thread Antoine van Wel
Hi Stefan, I'm a bit lost in the wicketstuff maven repository - when I browse I only see 1.4.1 and 1.4.2-SNAPSHOT. Any idea when this version will be in the maven repo? But for now it would be great if you could send me the pre-build jar. Thanks! Antoine On Fri, Feb 26, 2010 at 2:57 PM,

Re: How to encrypt/obfuscate resource reference?

2010-03-01 Thread Antoine van Wel
for a discussion and suggestion see http://old.nabble.com/CryptedUrlWebRequestCodingStrategy-%2B-WebRequestCodingStrategy-%3D-resource-URLs-are-not-encrypted-(bug-).-td27209560.html quote I was able to get around this by subclassing WebRequestCodingStrategy and overriding methods:

Re: How to encrypt/obfuscate resource reference?

2010-03-01 Thread Antoine van Wel
other solution. Antoine van Wel wrote: for a discussion and suggestion see http://old.nabble.com/CryptedUrlWebRequestCodingStrategy-%2B-WebRequestCodingStrategy-%3D-resource-URLs-are-not-encrypted-(bug-).-td27209560.html -- View this message in context: http://old.nabble.com/How

Re: How to encrypt/obfuscate resource reference?

2010-03-02 Thread Antoine van Wel
A flag has been introduced that when set will throw an error when an fqn would be used. It will be in 1.4.7, which is currently in the voting phase, so it will be available within a week. But this would mean you'd have to alias all the classes anyway. Antoine On Tue, Mar 2, 2010 at 12:33 PM,

jquery/qtip integration troubles - ajax post stopped

2010-03-09 Thread Antoine van Wel
Hi everybody, Integrating a Jquery tooltip (qtip) went smoothly until I tried to do an Ajax form submit. The Wicket Ajax Debug panel shows an Ajax POST stopped because of precondition check, so an Ajax response is never sent. What I'm doing is simply render the text for the tooltip on the same

Re: jquery/qtip integration troubles - ajax post stopped

2010-03-09 Thread Antoine van Wel
:05, Antoine van Wel antoine.van@gmail.com wrote: Hi everybody, Integrating a Jquery tooltip (qtip) went smoothly until I tried to do an Ajax form submit. The Wicket Ajax Debug panel shows an Ajax POST stopped because of precondition check, so an Ajax response is never sent. What I'm doing

Re: jquery/qtip integration troubles - ajax post stopped

2010-03-10 Thread Antoine van Wel
:-) Antoine On Tue, Mar 9, 2010 at 6:44 PM, Antoine van Wel antoine.van@gmail.com wrote: Hi Richard, Thanks for the reply. It didn't bring me further though. When debugging, Wicket.$$(this) and the other one both return true, so that doesn't seem to be the problem. When tracking

Re: jquery/qtip integration troubles - ajax post stopped

2010-03-11 Thread Antoine van Wel
( content: $('# + contentMarkupId + ').html(),) by .append( content: $('# + contentMarkupId + ').remove(),) and now everything works as a charm. Antoine. On Wed, Mar 10, 2010 at 6:04 PM, Antoine van Wel antoine.van@gmail.com wrote: Turns out Wicket.$$(this) returned false after

Re: Bookmarkable Links Session

2010-03-16 Thread Antoine van Wel
When you have a stateless page, no session is created when you land on such a page first, or to be more precise: a temporary session is created. So that should explain the difference you see. Calling Session.get().bind() when logging in should fix that. Better, call

Re: Trailing / on parameter name/value pairs

2010-03-19 Thread Antoine van Wel
On Fri, Mar 19, 2010 at 6:43 AM, Chris Colman chr...@stepaheadsoftware.com wrote: all servlet containers do that on first request. if you dont care about browsers with cookies disabled you can tweak tomcat to never append jsessionid to the url, afair there is a setting for that. -igor I

Re: Avoiding wickety URLs in login form

2010-03-22 Thread Antoine van Wel
3. I tried setting up the CryptedUrlWebRequestCodingStrategy. This successfully managed to encrypt the resulting wicket specific URL to ?x=a325u0234usdajfasdf, but the thing is, the login page now started expiring again. The reason is that CryptedUrlWebRequestCodingStrategy uses a key

Re: Caching components

2010-03-24 Thread Antoine van Wel
Maybe this will get you started http://twenty-six-wicket-tricks.googlecode.com/svn/trunk/twenty-six-wicket-tricks/src/main/java/com/locke/library/web/panels/caching/CachingPanel.java After reading Jeremy's reply I think this code suffers some thread-safeness issues though. Antoine On Wed,

MarkupComponentBorder and deprecation

2010-04-14 Thread Antoine van Wel
Hi, quick question: since IComponentBorder and Component.setComponentBorder are deprecated, how should I use MarkupComponentBorder - or shouldn't I use that at all? You can't attach a markup file to a behavior, right? Antoine

attaching a border to a component instead of vice versa - how?

2010-04-14 Thread Antoine van Wel
Hi, is it possible to somehow attach a border to a component? I.e. currently afaik you have to do this in markup when using a border: div wicket:id=border span wicket:id=component/ /div and in the code something like: add(new Border(border) .add(new Component(component)) Instead

Re: MarkupComponentBorder and deprecation

2010-04-15 Thread Antoine van Wel
...@gmail.comwrote: no, you cant attach markup to behavior but you can create an equivalent of MarkupComponentBorder using a behavior. -igor On Wed, Apr 14, 2010 at 1:40 AM, Antoine van Wel antoine.van@gmail.com wrote: Hi, quick question: since IComponentBorder

Re: Correct way of setting charset

2010-07-04 Thread Antoine van Wel
Maybe this is what you need, in your WebApplication's init method : getMarkupSettings().setDefaultMarkupEncoding(UTF-8); On Fri, Jul 2, 2010 at 9:29 AM, Sigmar Muuga meedi...@gmail.com wrote: Hello, what is the correct way of setting my pages charset? I did something like this and it

Re: EXception handling in Wicket

2010-08-28 Thread Antoine van Wel
I think you should prevent that SQLException from happening in the first place by validating the form input. Then use a FeedbackPanel to display suitable error messages. Just google for example code with forms, it's basic stuff. Otherwise, create a FeedbackPanel on your page, put a try .. catch

Re: [1.5] new wicket URL-related questions

2010-08-28 Thread Antoine van Wel
Q2: (a little n00b question) how can I find out which component makes my page stateful? Check the wicket-devutils and StatelessChecker. It allows you to use an annotation to validate the component is really stateless. Antoine

Re: Just 100K per session? That would be my dream come true! (Anyone here who has tuned session size before?)

2011-03-01 Thread Antoine van Wel
*bump* I'm one of those people who is reading :-) Antoine On Mon, Feb 21, 2011 at 3:11 PM, Per p...@hamburg.de wrote: Hi, I am measuring it in a profiler after the request has been completed, but thanks for the hint. In case anyone else is reading, I have been playing with the

Re: Just 100K per session? That would be my dream come true! (Anyone here who has tuned session size before?)

2011-03-01 Thread Antoine van Wel
Hi Per, easy to read, good advice... Even the easiest stuff made me wonder whether I did that right... Excellent to see all these tips together. Thanks a bunch! Antoine On Tue, Mar 1, 2011 at 8:21 PM, Per p...@hamburg.de wrote: Hi Antoine, I have started collecting my hints over here:

shift / ctrl / alt keys + ajax

2011-03-08 Thread Antoine van Wel
Hi, when clicking an (ajax)link, or a checkbox, etc, on the server side I'd like to know whether the shift, ctrl or alt keys are pressed at the same time. So I figure I need to fetch via JavaScript and adapt the ajax call with some extra parameters. Any thoughts how to do that in a nice clean

Re: preferred php framework by wicketeers...

2011-03-09 Thread Antoine van Wel
On Tue, Mar 8, 2011 at 3:34 PM, Frank van Lankvelt f.vanlankv...@onehippo.com wrote: On Tue, Mar 8, 2011 at 1:21 PM, Antoine van Wel antoine.van@gmail.com wrote: Since you can't always have what you want.. Is there any PHP framework out there which comes even close to Wicket; component

Re: shift / ctrl / alt keys + ajax

2011-03-10 Thread Antoine van Wel
if the key(s) were pressed. cheers, Richard. On Tue, Mar 8, 2011 at 9:59 PM, Antoine van Wel antoine.van@gmail.comwrote: Hi, when clicking an (ajax)link, or a checkbox, etc, on the server side I'd like to know whether the shift, ctrl or alt keys are pressed at the same time. So I

Re: Wicket 1.5 and Tomcat 7 encoding issues?

2011-03-30 Thread Antoine van Wel
Maybe this in application startup? getMarkupSettings().setDefaultMarkupEncoding(UTF-8); Antoine On Wed, Mar 30, 2011 at 8:13 AM, nino martinez wael nino.martinez.w...@gmail.com wrote: A screen shot? it's the text that should have shown this: IT support vest æ ø å

Re: IllegalStateException with AjaxFallbackDefaultDataTable

2008-02-28 Thread Antoine van Wel
PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Antoine van Wel http://www.wellawaretech.com - 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-02 Thread Antoine van Wel
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. This is the only solution that makes sense, the other options are