> 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
; 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.
> >>
> >>
> >> ---
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
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
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
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
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
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
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
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
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
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
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
&
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
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
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
> >
> &
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
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
.
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,
> >
> &
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 [
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
.
>> 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:
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
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
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;
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,
&
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
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
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
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
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
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
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
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
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
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
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
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
(" 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
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()
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
>
> 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
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
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
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
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
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
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
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
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
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
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
> >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
*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
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.
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
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
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
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;
>&
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
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
>
>
61 matches
Mail list logo