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 a

Re: IllegalStateException with AjaxFallbackDefaultDataTable

2008-02-28 Thread Antoine van Wel
; View this message in context: > >> > http://www.nabble.com/IllegalStateException-with-AjaxFallbackDefaultDataTable-tp15347366p15360512.html > >> > >> Sent from the Wicket - User mailing list archive at Nabble.com. > >> > >> > >> ---

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

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 wrote: > > Marat, as you can see people are interested and waiting for this > feature > to be published somewhere > > Alex > > > Marat Radchenko

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 captu

Re: urlFor troubles

2009-04-20 Thread Antoine van Wel
Thomerson 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 > wrote: > > > One issue I keep running into when programmin

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
ata from path data when looking for > hierarchical separators. However, as query components are often used > to carry identifying information in the form of "key=value" pairs and > one frequently used value is a reference to another URI, it is > sometimes better for usability

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 On

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 tag, so inside the form, there are tags. What happens then is

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

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 filt

Re: htmlvalidator / responsefilter not executed through wickettester?

2009-08-24 Thread Antoine van Wel
r, see my > response to this question [1]. > > That said, I'd like to extend HtmlValidator to be useful with > wickettester and will gladly accept patches :-) > > Martijn > > [1] http://osdir.com/ml/users-wicket.apache.org/2009-08/msg00260.html > > On Mon, Aug 2

Re: htmlvalidator / responsefilter not executed through wickettester?

2009-08-24 Thread Antoine van Wel
be useful with > > wickettester and will gladly accept patches :-) > This doesn't answer why response filters are not executed. > Maybe there is a bug. > > > > Martijn > > > > [1] http://osdir.com/ml/users-wicket.apache.org/2009-08/msg00260.html > > > &

Re: UTF-8

2009-09-02 Thread Antoine van Wel
On Tue, Sep 1, 2009 at 3:39 PM, Johan Compagner wrote: > 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 them, if you do stil

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
. Antoine On Tue, 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 > > > Hi, > > > &

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

2009-09-30 Thread Antoine van Wel
s > rendering and changes 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 [

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
. >> i.e. final TextField tf = new TextField("txt", model); >> >> in Link Execution >> -> tf.setModel(mode); >> >> >> >> - Ursprüngliche Mail >> Von: Antoine van Wel >> An: users@wicket.apache.org >> Gesendet:

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

2009-10-21 Thread Antoine van Wel
submit the form that contains the > textarea. > > On Wed, Oct 21, 2009 at 10:18 AM, Antoine van Wel > wrote: > >> Thanks for the replies. >> >> Peter: that won't work - the contents of the textarea are not >> transferred to the wicket app without some ja

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 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
ing that is going > to work without taking 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 > wrote: > >> Hi, &

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? Antoin

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 > wrote: >> What can you do if you need to enforce that no fqn's are ever >&g

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 wrote: > > Thanks for the suggestion Martijn. > I tried return new FormComponent[0]; and got exactly the same er

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 ComponentFeedbackMessageFilt

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, Stefa

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

Re: How to encrypt/obfuscate resource reference?

2010-03-01 Thread Antoine van Wel
So it is necessary to come up with some 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-).-td272

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, S

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
at helps. > > -- > Regards - Richard Wilkinson > Developer, > jWeekend: OO & Java Technologies - Development and Training > http://jWeekend.com > > > On 9 March 2010 13:05, Antoine van Wel wrote: >> Hi everybody, >> >> Integrating a Jquery tooltip

Re: jquery/qtip integration troubles - ajax post stopped

2010-03-10 Thread Antoine van Wel
e done is not such a good idea :-) Antoine On Tue, Mar 9, 2010 at 6:44 PM, Antoine van Wel 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 b

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 wrote: &g

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 Session.get().replaceSession()

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 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 wish I didn't have t

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, Mar

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: and in the code something like: add(new Border("border") .add(new Component("component")) Instead I'd just want to specify and in the code

Re: MarkupComponentBorder and deprecation

2010-04-15 Thread Antoine van Wel
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 > wrote: > > Hi, > > > > quick question: > > > > since IComponentBorder and

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
target.resource.SharedResourceRequestTarget > where the message equals "unable to lazily register shared resource"). > > > On Mon, 22 Dec 2008 14:05 +0100, "Antoine van Wel" > wrote: >> Heya, >> >> we're trying to catch all errors ca

Re: error messages due to hack/search-bots

2008-12-22 Thread Antoine van Wel
target.resource.SharedResourceRequestTarget > where the message equals "unable to lazily register shared resource"). > > > On Mon, 22 Dec 2008 14:05 +0100, "Antoine van Wel" > wrote: >> Heya, >> >> we're trying to catch all errors ca

Re: error messages due to hack/search-bots

2008-12-22 Thread Antoine van Wel
u to know a lot about wicket internals (is this a real error, >>> or >>> should this be considered a warning?). And it is cumbersome (every time a >>> new exception appears, you have to go through this process again). >>> >>> To the Wicket developers: why i

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 wrote: > Hello, > what is the correct way of setting my pages charset? > > I did something like this and it didnt have any e

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 bl

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

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 wrote: > Hi Antoine, > > I have started collecting my hints over here: > > http://www.

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 w

preferred php framework by wicketeers...

2011-03-08 Thread Antoine van Wel
Since "you can't always have what you want".. Is there any PHP framework out there which comes even close to Wicket; component based, strict separation between HTML and programming, stateful, out-of-the-box Ajax support, event handling, URL mapping, excellent testing features, and great community

Re: preferred php framework by wicketeers...

2011-03-08 Thread Antoine van Wel
Now wait a moment, let me be very clear that I prefer Wicket .. I don't want misunderstandings about that ;-) Sadly reality is that PHP is more widely adopted. Apache comes almost by default with PHP. So I was wondering, does anything come close to Wicket, to ease the pain.. Or to have a stronger

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 wrote: > On Tue, Mar 8, 2011 at 1:21 PM, Antoine van Wel > wrote: >> >> Since "you can't always have what you want".. >> >> Is there any PHP framework out there which comes even close to Wicket; >&

Re: shift / ctrl / alt keys + ajax

2011-03-10 Thread Antoine van Wel
input is bound to to determine if the key(s) were pressed. > > cheers, > Richard. > > On Tue, Mar 8, 2011 at 9:59 PM, Antoine van Wel > wrote: > >> Hi, >> >> when clicking an (ajax)link, or a checkbox, etc, on the server side >> I'd like to know w

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 wrote: > A screen shot? it's the text that should have shown this: > > "IT support vest æ ø å" > > http://www.imageupload.org/?d=4D92CA9C1 > >