Re: Observed slowness with upload progress bar on 1.4.4

2009-12-16 Thread richardwilko
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

Re: AjaxFallbackLink does not work on Windows Mobile Internet Explorer

2009-12-02 Thread richardwilko
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

Re: wicketstuff-minis status?

2009-11-18 Thread richardwilko
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

Re: Wicket and JQuery

2009-10-28 Thread richardwilko
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 =

RE: Wicket and JQuery

2009-10-28 Thread richardwilko
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

Re: Which assertions are possible for wicket:message?

2009-10-23 Thread richardwilko
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:

Re: Re: Google App Engine and Wicket

2009-10-20 Thread richardwilko
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

Re: Google App Engine and Wicket

2009-10-20 Thread richardwilko
, 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

Re: Google App Engine and Wicket

2009-10-20 Thread richardwilko
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

Re: Leg Up for Wicket, Spring, Guice, JPA, Warp, EclipseLink, Hibernate ... projects

2009-10-11 Thread richardwilko
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

Re: Leg Up for Wicket, Spring, Guice, JPA, Warp, EclipseLink, Hibernate ... projects

2009-10-08 Thread richardwilko
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

Re: Leg Up for Wicket, Spring, Guice, JPA, Warp, EclipseLink, Hibernate ... projects

2009-10-06 Thread richardwilko
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

RE: Leg Up for Wicket, Spring, Guice, JPA, Warp, EclipseLink, Hibernate ... projects

2009-10-06 Thread richardwilko
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

RE: Leg Up for Wicket, Spring, Guice, JPA, Warp, EclipseLink, Hibernate ... projects

2009-10-06 Thread richardwilko
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

Re: [WicketStuff] Iolite

2009-09-29 Thread richardwilko
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

Re: Wicket, Ajax and JSON

2009-07-31 Thread richardwilko
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)

Re: jWicket -- jQuery with Wicket integration

2009-07-22 Thread richardwilko
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

Re: Terracotta integration and issue sharing pagemaps

2008-12-11 Thread richardwilko
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

Re: TextField inside a ModalWindow problems

2008-11-16 Thread richardwilko
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

Re: TextField inside a ModalWindow problems

2008-11-15 Thread richardwilko
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

Re: TextField inside a ModalWindow problems

2008-11-15 Thread richardwilko
', 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

Re: wicket terracotta integration is out

2008-11-07 Thread richardwilko
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

Re: TextField inside a ModalWindow problems

2008-11-07 Thread richardwilko
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.

wicket terracotta integration is out

2008-11-06 Thread richardwilko
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:

Re: TextField inside a ModalWindow problems

2008-11-06 Thread richardwilko
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/

Re: TextField inside a ModalWindow problems

2008-11-06 Thread richardwilko
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).

Re: GuiceInjectorHolder inside WebApplication

2008-10-15 Thread richardwilko
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

RE: AbstractPageStore memory implementation instead of disk

2008-10-07 Thread richardwilko
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

RE: AbstractPageStore memory implementation instead of disk

2008-10-07 Thread richardwilko
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

Re: AbstractPageStore memory implementation instead of disk

2008-10-05 Thread richardwilko
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:

Re: Ajax-only-Form?

2008-09-19 Thread richardwilko
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:

Re: Ajax-only-Form?

2008-09-19 Thread richardwilko
-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

Re: Discussion on Wicket Interface Speed-Up

2008-09-03 Thread richardwilko
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

Re: Discussion on Wicket Interface Speed-Up

2008-09-03 Thread richardwilko
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

Re: Discussion on Wicket Interface Speed-Up

2008-09-02 Thread richardwilko
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

Re: Wicket resources (css, js and images)?

2008-08-26 Thread richardwilko
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

Re: ?xml tag, japanese and ie6

2008-07-11 Thread richardwilko
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

Re: ?xml tag, japanese and ie6

2008-07-11 Thread richardwilko
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

Re: ?xml tag, japanese and ie6

2008-07-11 Thread richardwilko
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

Re: Enclosure + AjaxButton

2008-07-08 Thread richardwilko
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

Re: Functional testing tools comparison

2008-07-03 Thread richardwilko
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,

Re: WebApplication-level styles?

2008-07-03 Thread richardwilko
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() ? -

Re: Wicketstuff-minis prototip generated javascript error

2008-06-18 Thread richardwilko
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

Please check my fix to terracotta problem

2008-06-16 Thread richardwilko
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

any terracotta users here?

2008-06-13 Thread richardwilko
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

Re: validation message

2008-06-13 Thread richardwilko
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

Re: Modify model value before rendering

2008-06-12 Thread richardwilko
something like this might work (untested) PropertyModel pm = new PropertyModel(this,){ @Override public Object getObject() { return (Boolean) super.getObject() ? User enabled : User not

Re: PageExpiredException when clicking an AjaxLink

2008-06-11 Thread richardwilko
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,

Re: forcing cookies to expire

2008-06-10 Thread richardwilko
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

Re: users, please give us your opinion: what is your take on generics with Wicket

2008-06-02 Thread richardwilko
[ 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,

Re: users, please give us your opinion: what is your take on generics with Wicket

2008-06-02 Thread richardwilko
, 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

Re: ajaxed panel invisible in IE

2008-05-30 Thread richardwilko
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

Re: ajaxed panel invisible in IE

2008-05-30 Thread richardwilko
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

Re: AjaxLink not clickable in IE

2008-05-22 Thread richardwilko
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

Re: Tomcat discards content-type with StringRequestTarget

2008-05-22 Thread richardwilko
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

Re: Testing using WicketTester

2008-05-22 Thread richardwilko
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

Page expired using LazyLoadPanel and clustering

2008-05-15 Thread richardwilko
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

Re: Page expired using LazyLoadPanel and clustering

2008-05-15 Thread richardwilko
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

Re: Page expired using LazyLoadPanel and clustering

2008-05-15 Thread 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

Re: Page expired using LazyLoadPanel and clustering

2008-05-15 Thread richardwilko
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

Re: Page expired using LazyLoadPanel and clustering

2008-05-15 Thread richardwilko
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

Re: Page expired using LazyLoadPanel and clustering

2008-05-15 Thread richardwilko
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

Re: AutoComplete enter key behavior

2008-05-14 Thread richardwilko
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

Re: AutoComplete enter key behavior

2008-05-14 Thread richardwilko
, 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

Terracotta and PatternValidator

2008-05-12 Thread richardwilko
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

Re: IActivePageBehaviorListener exception

2008-05-09 Thread richardwilko
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

IActivePageBehaviorListener exception

2008-05-08 Thread richardwilko
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

Re: A few clustering questions

2008-05-02 Thread richardwilko
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

A few clustering questions

2008-05-01 Thread richardwilko
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

Strange redirect page before actual page loads

2008-04-28 Thread richardwilko
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

Re: Checking for file

2008-04-28 Thread richardwilko
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

Re: Customising Radio Buttons with JS and CSS

2008-03-13 Thread richardwilko
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

Re: Double submit problem

2008-03-11 Thread richardwilko
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

Use a panel as login panel rather than a different page with wicket auth

2008-03-07 Thread richardwilko
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

RE: Use a panel as login panel rather than a different page with wicket auth

2008-03-07 Thread richardwilko
) { 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

Re: Use a panel as login panel rather than a different page with wicket auth

2008-03-07 Thread richardwilko
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

Re: Markup Rendering issues

2008-03-05 Thread richardwilko
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

Confused about different session stores

2008-03-04 Thread richardwilko
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

Re: Page title when using markup inheritance

2008-03-04 Thread richardwilko
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

Illegal argument exception when using lazy load panel

2008-03-03 Thread richardwilko
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

Re: How to make a Form work both Ajax and no Ajax?

2008-02-22 Thread richardwilko
You could use an AjaxFallbackButton on your form, eg: AjaxFallbackButton a = new AjaxFallbackButton(id, form) { @Override protected void onSubmit(AjaxRequestTarget target, Form form) {

Re: Wicket-auth-roles problem

2008-02-22 Thread richardwilko
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

Re: ant-based example project?

2008-02-22 Thread richardwilko
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

Re: New tooltip component I have created

2008-02-11 Thread richardwilko
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:

Re: New tooltip component I have created

2008-02-10 Thread richardwilko
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

Re: New tooltip component I have created

2008-02-10 Thread richardwilko
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:

Re: Problem with two FeedbackPanels on same page

2008-02-10 Thread richardwilko
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 {

Re: New tooltip component I have created

2008-02-10 Thread richardwilko
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

New tooltip component I have created

2008-02-09 Thread richardwilko
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: