Hi,
We also have noticed slowness loading resources with 1.4.4, I don't think it
is any resource in particular, but in our (not production thankfully) app we
experienced waits of over 30 seconds.
Regards - Richard Wilkinson
Developer,
jWeekend: OO Java Technologies - Development and Training
Hi,
You could implement your own IComponentInstantiationListener, and in it add
some sort of behavior to modify the component which removes the onclick. Or
you could try an remove the AjaxEventBehavior from the AjaxFallbackLink.
This should work globally but will only require you to modify
Hi Doug,
I originally wrote the prototip component, and the main reason why I never
upgraded the prototip js version is because the library changed to having a
commercial licence and I don't know exactly what the rules are about
including commercial code into wicket-stuff.
While I have no
Hi Jeffery,
I would be interested to know what put you off about wiquery, any feedback
is always welcome.
Anyway, for ajax communication, add an AbstractAajxBehaviour to your page /
component, and use the url this generates to pass to your jquery ajax
something like this:
String callbackurl =
to get a jQuery plugin to be used with wiQuery. The
point of the plugin is to not have to write additional code.
How would I integrate the various plugins available into wiQuery?
Thanks.
-Original Message-
From: richardwilko [mailto:richardjohnwilkin...@gmail.com]
Sent
Hi,
You could use tester.getServletResponse().getDocument() (where tester is
your wicket tester instance)
which returns the html of the processed page as a string. Then you could
test if this string contains the required text.
Hope that helps,
Regards - Richard Wilkinson
Developer,
jWeekend:
Hi,
The Terracotta SecondLevelCacheSessionStore does not contain any Terracotta
specific implementation or dependencies, and should work fine on AppEngine
(I haven't tested it though).
All it is is an implementation of IPageStore, where the pages are serialized
to byte arrays (like the disk
, and are in a position to
do so, then contributing it back would be most welcome :)
[1] http://en.wikipedia.org/wiki/Apache_License
Thanks,
Richard
A. Maza wrote:
On 20.10.2009 13:30, richardwilko wrote:
Hi,
The Terracotta SecondLevelCacheSessionStore does not contain any
Terracotta
specific
would treat it as such.
Sorry for the confusion,
Richard
A. MaOhza wrote:
On 20.10.2009 13:30, richardwilko wrote:
Hi,
The Terracotta SecondLevelCacheSessionStore does not contain any
Terracotta
specific implementation or dependencies, and should work fine on
AppEngine
(I haven't
richardwilko richardjohnwilkin...@gmail.com
hi,
The error is saying that maven cannot find the archetype catalog
file,
please make sure you can access this file in a web browser [1], and
ensure
that you do not have any line breaks in your maven command (not sure
if
it
is just how
08 13:30:48 CEST 2009
[INFO] Final Memory: 8M/14M
[INFO]
C:\projects\test
2009/10/6 richardwilko richardjohnwilkin...@gmail.com
Hi,
Yes, you will need to bind every dao (and eveything you want to inject
Nino,
We don't have a Guice 2.0 for that very reason; the warp persist guys don't
have a final 2.0 release yet.
Regards - Richard Wilkinson
Developer,
jWeekend: OO Java Technologies - Development and Training
http://jWeekend.com
nino martinez wael wrote:
Why dont you have a Guice 2.0
Jeffrey,
I expect the changes you made to the Guice Module are the reason why the
session is null, could you paste in the contents of it.
Regards - Richard Wilkinson
Developer,
jWeekend: OO Java Technologies - Development and Training
http://jWeekend.com
Jeffrey Schneller wrote:
Thanks
Initializer(com.wideplay.warp.persist.PersistenceService
service) {
service.start();
}
}
}
-Original Message-
From: richardwilko [mailto:richardjohnwilkin...@gmail.com]
Sent: Tuesday, October 06, 2009 2:56 PM
To: users@wicket.apache.org
Hi,
We have been developing a few useful archetypes for our own client projects
and courses.
Amongst others, we have
Wicket/Guice
Wicket/Guice/Warp/Hibernate
Wicket/Guice/Warp/JPA
Wicket/Spring/JPA
Spring/JPA/openJPA
Spring/JPA/EclipseLink
Spring/JDBC
All include a running sample application
Hi,
Instead of using AbstractDefaultAjaxBehavior you can use its superclass
AbstractAjaxBehavior as follows:
AbstractAjaxBehavior behaviour = new AbstractAjaxBehavior()
{
private static final long serialVersionUID = 1L;
@SuppressWarnings(unchecked)
Hi,
What are the advantages of jWicket over other Wicket jQuery projects
(specifically wiQuery)?
It would be nice if we could all work together on a single project. wiQuery
has already pooled the development resources of two other such projects.
wiQuery has Wicket behaviours for the core
If you open the terracotta admin console you should be able to see your
shared roots. If you are just using terracotta for http session clustering
then you should just see 1 root, which is the servlet http session.
The admin console lets you explore the shared objects, and if you go into a
form that I am attaching
the observer to. As my son says, it just not fair :)
--Victor
richardwilko wrote:
the page is www.zoomf.com/map if you want to see it for yourself.
-
http://richard-wilkinson.co.uk My blog: http://richard-wilkinson.co.uk
--
View this message in context
isnt loaded correctly?
hope that helps,
Richard
venuko wrote:
Hi Richard,
I am trying to use the code from your blog without any modifications, but
the form is still being submitted normally. What could be a problem?
--Victor
richardwilko wrote:
I wrote a piece on how to stop
',
function(e){alert('success!!!');Event.stop(e);
$('submitLink10').onclick(null);});;});
/*--]]*//script
The first alert is working, the second is not Do you see anything
abnormal here?
--Victor
richardwilko wrote:
im not sure, try putting an alert in the code to make sure
im asking a bit in blind here.
regards nino
richardwilko wrote:
Hi,
Just a quick announcement that the long awaited updated wicket terracotta
integration module (tim) is out.
You can find it here:
http://forge.terracotta.org/releases/projects/tim-wicket/
http://forge.terracotta.org
It still seems as though the form is trying to submit in a non-ajax way, as
this is the same as navigating to a different url, which is why your modal
window is asking for confirmation.
You still need prototype for the wicket version, as that is just the js code
wrapped up in a wicket behavior.
Hi,
Just a quick announcement that the long awaited updated wicket terracotta
integration module (tim) is out.
You can find it here:
http://forge.terracotta.org/releases/projects/tim-wicket/
http://forge.terracotta.org/releases/projects/tim-wicket/ and further
instructions on my blog here:
Its an automatic thing that if your form has an input box and you press enter
it will try to submit it normally.
I wrote a piece on how to stop this on my blog.
http://richard-wilkinson.co.uk/2008/04/05/how-to-stop-non-ajax-form-submits-in-wicket/
Its an automatic thing that if your form has an input box and you press enter
it will try to submit it normally.
I wrote a piece on how to stop this on my blog (but it also makes the normal
ajax submit button fire, which you might not want).
Have you looked at the wicket guice integration? I think that does it
already.
Richard
Edgar Merino wrote:
Let me correct that last response: the problem is not solved yet. I
thought it was but after redeploying my application again I got a
serialization exception, why didn't the
I should say that the terracotta page map also does the page serialisation,
but it does it all in memory.
You could probably write out the serialisation bit quite easily, but it is
required for terracotta.
Ard Schrijvers-3 wrote:
Thanks a lot Richard,
I will take a look!
Regards Ard
The HttpSessionStore is an in memory session store, so it has no disk writing
bottleneck. It does however have some other problems, specifically with the
back button i think.
the terracotta page store works like this:
protected ISessionStore newSessionStore()
{
return
The wicket integration with terracotta uses an in-memory page map.
The code is here, but will soon be part of the terracotta wicket-tim.
http://www.nabble.com/file/p19826206/TerracottaPageStore.java
TerracottaPageStore.java
Timo Rantalaiho wrote:
On Fri, 03 Oct 2008, Igor Vaynberg wrote:
So if im understanding correctly your form is submitting in the non-ajax
standard way when you press return on the input field?
If so then this is my solution:
http://www.richard-wilkinson.co.uk/2008/04/05/how-to-stop-non-ajax-form-submits-in-wicket/
Hope it helps,
Richard
Markus-66 wrote:
-functionality, what makes it kinda useless to submit the form.
Your prototype-approach won´t work that way.
Perhaps I only add a warning-div on the top and do nothing. Any further
ideas would be appreaciated.
Regards
Markus
-Ursprüngliche Nachricht-
Von: richardwilko [mailto:[EMAIL
to the
user.
-igor
On Tue, Sep 2, 2008 at 2:57 PM, richardwilko
[EMAIL PROTECTED] wrote:
The problem of breaking encapsulation:
I did some work on this problem on my own a few months ago, my solution
was
to use a header contrib manager, and instead of adding files with a
header
components are currently on the page.
IMHO much cheaper to just cache jquery, tinymce, wicket-Ajax individually.
-Igor
On 9/3/08, richardwilko [EMAIL PROTECTED] wrote:
im not sure we could help in the cases where you have dynamic header
contributors, like you say you would either have to specify
The problem of breaking encapsulation:
I did some work on this problem on my own a few months ago, my solution was
to use a header contrib manager, and instead of adding files with a header
contributer i add them to the manager, then get a single contributer per
page from the manger.
for
Hi,
A few months back I started work on a slightly different method of adding
resources to a page, where, it works out what resources are added on the
page, combines them together with the yui javascript compressor, caches the
result, and serves it.
Unfortunately I haven't had any time to work
What is the encoding of your outputted pages (in firefox right click, view
page info)? This will depend on what platform you are running on (os and
webserver). if it is not utf-8 then you will need to change your setup so
that it is. then it *should* work. its also possible that the page
richardwilko wrote:
What is the encoding of your outputted pages (in firefox right click,
view page info)? This will depend on what platform you are running on
(os and webserver). if it is not utf-8 then you will need to change your
setup so that it is. then it *should* work. its
Ok, but first rule of debugging is check the simple stuff first so I did :)
In my application I have added the ?xml to my page and panel markup and
have added some non-ascii chars to my markup (not sure if they are Japanese
but look like it) as a test.
There is no xml declaration in the
There was a bug in enclosure in 1.3.3, where it wouldn't call isVisible after
the first time (fixed in 1.3.4) which version are you using?
nanotech wrote:
The line below
pojo.setSampleText(pojo.getSampleText());
should be ignored.
Thanks,
nanotech wrote:
Hi All,
I have a
hi,
I've used selenium in the past and I do like it. However it uses domIds
quite a bit, and as these are autogenerated by wicket they can prove
troublesome. For example, you might get a test working, then add a new
component to the page, which then changes all the dom ids on the page,
We subclass Session and call set style in the constructor.
Miguel Paraz wrote:
Hi,
Is it possible to set the style once, at the WebApplication, instead
of getting the Session in every Page, and calling setStyle() ?
-
Hi,
Its because you didnt escape the ' in Let's
when I get chance I will put some code in to make sure that this cant happen
Thanks.
Richard
Serkan Camurcuoglu-2 wrote:
Hi all,
I'm using wicketstuff-minis prototip PrototipBehaviour to add tooltip to
my components. In the populateItem
Hi,
Just a little background, i've been trying to get my application clustered
with terracotta for a while and ran into a big problem. Basically wicket
was producing more garbage objects than terracotta could handle, as such
terracotta was using up loads of disk space (see my thread on
Hi
Is there anyone using terracotta for session clustering with about 2000
active sessions at any one time?
If so are you experiencing any problems on your terracotta server as
described here: http://forums.terracotta.org/forums/posts/list/1144.page
Basically there is loads of garbage being
If yo have a Required validator on a TextField with wicket:id=mytextfield
in a form with wicket:id=myform in a Page called MyPage.java in a package
called com.mypackage then
create a file called MyPage.properties in the package com.mypackage
in this properties file is where you override the
something like this might work (untested)
PropertyModel pm = new PropertyModel(this,){
@Override
public Object getObject()
{
return (Boolean) super.getObject() ? User
enabled : User not
Ok this may be a longshot but see if this makes sense. I had a similar
problem, it was caused because i had some image links where the src
attribute was actually pointing at the home page of my application. So
instead of loading an image it would actually make a get request to the home
page,
Ive had the same problem. to delete a cookie do this:
Cookie newCookie = new Cookie(my cookie name here!, null);
newCookie.setMaxAge(0);
newCookie.setPath(/);
getWebRequestCycle().getWebResponse().addCookie(newCookie);
i dont know why (i didnt really look into it) but u seem to have to
[ x ] Can best be done in a limited fashion, where we only generify
IModel but not components. I care more about what generifying can do
for API clarity (declaring a component to only accept certain models
for instance) than static type checking.
[ x ] Whatever choice ultimately made,
, 2008 at 3:26 PM, richardwilko
[EMAIL PROTECTED]
wrote:
[ x ] Can best be done in a limited fashion, where we only generify
IModel but not components. I care more about what generifying can do
for API clarity (declaring a component to only accept certain models
for instance) than static
I would make sure that you are outputting valid (x)html, but thats only a
guess at the solution, IE debugging is a black art unfortunately.
achu18 wrote:
hi all,
i have an ajax link that targets another panel. when i click that link, i
see nothing in IE, works ok in FireFox. in the wicket
trouble in my js. currently stuck with IE
and alpha(opacity=... seems to work in Firefox, not in IE, any
suggestions?
richardwilko wrote:
I would make sure that you are outputting valid (x)html, but thats only a
guess at the solution, IE debugging is a black art unfortunately
I have found ie to be rubbish it comes to javascript, any error in any file
can stop all the javascript on the page working. make sure you dont have
other javascript on the page which causes problems.
Also open up the wicket ajax debug window and see you anything happens in
there when you click
You could implement your own dynamic web resource. eg for a kml page on our
site:
public class KMLResource extends DynamicWebResource
{
Document kml;
public KMLResource(Document kml)
{
this.kml = kml;
}
@Override
WicketTester tester = new WicketTester(new MyApplication());
should do it
Eyal Golan wrote:
Hi,
I want to create a small UnitTest for my login page:
public void testLoginPageRender() {
tester.startPage(Login.class);
// Just to ensure that the request has not been
Hi,
I almost have clustering working now - thanks for all the help people have
given me.
However keep seeing page exprired errors, specifically on a page that has an
ajax lazy load panel on it. the page will load fine, but when the lazy load
code executes the app throws a page expired error, a
to work. I'm
tempted to blame that for the problem, but i dont see the problem on other
pages with lazy loaded components.
Johan Compagner wrote:
so it seems a terracotta problem or config problem...
What kind of session store are you using?
On Thu, May 15, 2008 at 11:15 AM, richardwilko
I still get the same behaviour with the httpsessionstore.
the problem seems to be that the page isnt put in the page map, so when the
ajax call is made to lazy load the panel it cant access the page its on.
looking at the http session data in the terracotta admin console i see that
the
of the request.
On Thu, May 15, 2008 at 12:30 PM, richardwilko
[EMAIL PROTECTED] wrote:
I still get the same behaviour with the httpsessionstore.
the problem seems to be that the page isnt put in the page map, so when
the
ajax call is made to lazy load the panel it cant access the page its
with that store getting page expires shouldnt happen as long as the http
session is there.
johan
On Thu, May 15, 2008 at 3:55 PM, richardwilko
[EMAIL PROTECTED] wrote:
Ok, I've been playing around a bit more, and it turns out that this is
not
limited to when I do clustering with terrracotta
up everything
and gives me a headache. Ive fixed it now
Thanks for everyones help though
Richard
richardwilko wrote:
right, non-clustered and httpsessionstore = exceptions
non-clustered and default session store = no exceptions (as far as i can
see)
clustered and httpsessionstore
Hi,
We have changed our auto complete so that when you press enter on one of the
choices in the drop down we submit the form (default is to just populate the
box), is this what you mean? unfortunatly to do this you need to hack the
wicket-autocomplete.js at the point where the enter key is
, richardwilko
[EMAIL PROTECTED] wrote:
Hi,
We have changed our auto complete so that when you press enter on one of
the
choices in the drop down we submit the form (default is to just populate
the
box), is this what you mean? unfortunatly to do this you need to hack
the
wicket-autocomplete.js
Hi,
I've come across a problem with the wicket-terracotta intergration.
If you have a PatternValidator (like EmailAddressValidator) attached to an
input then terracotta throws a non portable exception because
java.util.regex.Pattern isnt in the additional-boot-jar-classes bit of the
config
In case anyone else has this problem, the solution I found was to manually
register the IActivePageBehaviorListener in my application constructor:
public WicketApplication()
{
IActivePageBehaviorListener.INTERFACE.register();
}
richardwilko wrote:
Hi,
I have wicket
Hi,
I have wicket running clustered and occasionally see this exception:
WicketMessage: Attempt to access unknown request listener interface
IActivePageBehaviorListener
Root cause:
org.apache.wicket.WicketRuntimeException: Attempt to access unknown request
listener interface
clustering with terracotta seems to work, i can shut down the
instance im running on and my session is still valid on the other instance.
Matej Knopp-2 wrote:
Hi,
On Thu, May 1, 2008 at 12:38 PM, richardwilko
[EMAIL PROTECTED] wrote:
Hi,
Im looking into clustering our wicket app
Hi,
Im looking into clustering our wicket app and have a few questions. We are
using jetty 6.
1) We have to use the SecondLevelCacheSessionStore (default in 1.3) for
clustering to work correctly, is this correct or does it still work with a
HttpSessionStore?
2) Wicket just piggybacks whatever
Hi,
I have a wicket page, mounted as a IndexedParamUrlCodingStrategy, and the
first time i go to the page in a session, i see a blank page which says:
'If you see this, it means that both javascript and meta-refresh are not
support by your browser configuration. Please click this link to
Your modal window could periodically poll the server to see if it is
available yet, I think you can use AjaxSelfUpdatingTimerBehavior for this.
Richard
Mathias P.W Nilsson wrote:
Hi!
I'm generating files ( pdf ) in a server and I want to check for the file
and when the file becomes
Instead of using RadioChoice use a RadioGroup, i think there are examples
here: http://wicketstuff.org/wicket13/forminput/
This allows you to customise the ui of your radio's much more than a
RadioGroup does and should aid you in your jazziness
Richard
Ballist1c wrote:
Hey guys,
I got a
Inside your onSubmit method do this
if(!submitted)
{
//normal submit code
submitted = true;
}
and have boolean submitted = false; in your class
that way no matter how many times someone clicks submit the submit code
should only run once
Thats one way anyway
hillj2 wrote:
That would
Hi,
We are using the wicket-auth stuff on our site.
However rather than having a separate page for login we have a modal window
in our page (not a wicket modal window, but a custom one, its basically a
wicket panel in the page).
Is there any way to make my code for popping up the modal execute
)
{
protected void onEvent(AjaxRequestTarget target)
{
modal.show(target);
}
});
-Original Message-
From: richardwilko [mailto:[EMAIL PROTECTED]
Sent: Friday, March 07, 2008 7:06 AM
To: users@wicket.apache.org
Subject: Use a panel as login panel rather than
Thats a good point, I can just subclass AjaxLink, and make sure that it does
a check if the user is logged in before doing the main code, if not then
show my login box, then i can continue on to what the link was actually
supposed to do.
I do agree it would be easier to just redirect to a
afaik you can set a static id using component.setMarkupId(some id); you
can also get at the wicket markup id using component.getMarkupId() (so long
as you set component.setOutputMarkupId(true) on your component), this is
useful when you are writing your javascript in java as a string then
Hi,
Could someone please explain (or point me in the direction of a tutorial)
the difference between HttpSessionStore and SecondLevelCacheSessionStore.
We have to use a HttpSessionStore, because otherwise we get
NotSerializableException's being thrown everywhere.
Does using HttpSessionStore
The way I do it is; dont specify a title in your base page then just add the
title in the subpage:
base page.html
html
!-- anything shared in all the pages eg a base.css file --
head
/head
body
wicket:child/
/body
/html
subpage.html:
wicket:head
titlehard code or use wicket label to
hi,
I am trying to use an ajax lazy load panel.
However when it tries to render the content panel I get an
IllegalArgumentException which is caused when wicket tries to resolve the
url of a resource that the panel inside the lazy load panel. I have traced
the error to inside some tomcat code
You could use an AjaxFallbackButton on your form, eg:
AjaxFallbackButton a = new AjaxFallbackButton(id, form)
{
@Override
protected void onSubmit(AjaxRequestTarget target, Form
form)
{
A few questions:
1) does your session extend AuthenticatedWebSession
2) if so what does your getRoles() method in your web session look like
3) presumably you mean @AuthorizeInstantiation(Roles.USER) - without the
stars?
4) do you manually set any of the options on getSecuritySettings() in your
Hi,
We dont use maven for wicket, and use ant, instead. However we are using an
very uncommon app server so our project layout wouldn't really help you.
I don't see why it should be a problem to use ant tho, just make sure you
have the required wicket jars available and compile as normal, im
Ok, I didnt know that that was there. How often is that jar file produced?
Nino.Martinez wrote:
Whats wrong with the stuff in maven?
http://wicketstuff.org/maven/repository/org/wicketstuff/wicketstuff-minis/1.3.0-SNAPSHOT/
--
View this message in context:
Cool, can I please have commit access to wicket-stuff then. My sourceforge
account is richardwilko
Erik van Oosten-3 wrote:
Nice!
You can request commit access to wicket-stuff on this list. You'll need
a sourceforge account.
Regards,
Erik.
richardwilko wrote:
Hi
Ive been looking through some other posts, would I be right in thinking that
I should add my code into the wicketstuff minis project rather than create a
new one. It is only 3 Java files + some bundled javascript / css / images.
--
View this message in context:
Ive not tried it myself but this might help you
http://cwiki.apache.org/WICKET/using-more-than-one-feedbackpanel-per-page.html
Richard
Java Programmer wrote:
Hello,
I have 2 classes which extends Panel, and both have forms on them eg:
public class AddAdvertisementPanel extends Panel {
On 2/10/08, Igor Vaynberg [EMAIL PROTECTED] wrote:
yep
-igor
On Feb 10, 2008 10:37 AM, richardwilko [EMAIL PROTECTED]
wrote:
Ive been looking through some other posts, would I be right in thinking
that
I should add my code into the wicketstuff minis project rather than
create a
new
Hi,
Thanks to the London wicket user group that I attended the other day I have
created a wicket behaviour to use the prototip javascript library
(http://www.nickstakenburg.com/projects/prototip/).
I have the code and a description of how to use it hosted on my blog here:
89 matches
Mail list logo