new WiQuery version: 1.1.3 and 1.2!

2011-01-22 Thread Hielke Hoeve
As more and more people use WiQuery everyday and more and more people use the 1.2 version the time has come to release a maintanance release of 1.1 series and release the first version of 1.2. WiQuery 1.2 has been given a new resource management where all javascripts are automatically compressed

Re: Added parameters on the end of requests with wicket 1.5

2011-01-22 Thread Andrew Lombardi
So my fun with getting /view/{paste-id}/text to be served by a Resource instead of intercepted and using the page as a switchboard is almost 100% happy now. In the WicketApplication I've done the following to ensure that the Resource is given a compatibilityScore which will rank it higher than

How To Add Javascript With An Array Into A Wicket Page

2011-01-22 Thread Carlo Camerino
Hi, I would like to add some javascript which contains an array to my wicket page. it would be rendered on page load What is the best way to dothis? The array here should be coming from java code an is not static.. What is the best way that I could incorporate this into my wicket code?

Re: How To Add Javascript With An Array Into A Wicket Page

2011-01-22 Thread Martin Grigorov
Use any JSON Java library (jackson, gson, ...) to construct the JSON object and then dump it with IHeaderResponse.renderJavaScriptOnDomReady(jsonObj.toString()) On Sat, Jan 22, 2011 at 10:48 AM, Carlo Camerino carlo.camer...@gmail.comwrote: Hi, I would like to add some javascript which

Session doesn't work my application

2011-01-22 Thread jussi isokangas
Hello, I cannot add the session to my project. My project extends SwramWebApplication and I need it for a Shopping Cart. My Shopping Cart extends Basepage and it extends WebPage. Mysession extends WebSession. That (see example link below) doesn't work, because session doesn't accept my

Problem with links on page if multiple mounts

2011-01-22 Thread Andrew Lombardi
Okay I mount the following patterns with wicket 1.5 1)mountPage(/view/${0}, ViewPublicPage.class); 2)mountPage(/view/${0}/${1}, ViewPublicPage.class); {0} is for the paste ID {1} is an (optional) parameter giving line numbers to highlight in the paste With Wicket 1.4 this was

Is it possible to change the /wicket path?

2011-01-22 Thread Willis Blackburn
(Sorry if this seems familiar to anyone. I accidentally posted it to the Nabble Apache Wicket forum the first time, instead of Users.) I have an application in which the majority of valid URLs map to a content management system. In general, anything that's not a bookmarked page or a

What happened to IValidatorAddListener?

2011-01-22 Thread Willis Blackburn
It has gone missing between 1.5-RC1 and 1.5-M3. Is there a replacement of some kind? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/What-happened-to-IValidatorAddListener-tp3231645p3231645.html Sent from the Users forum mailing list archive at Nabble.com.

Re: What happened to IValidatorAddListener?

2011-01-22 Thread Martin Grigorov
IValidator is added as Behavior in the component. To be able to receive the notification do something like: MyValidator extends Behavior implements IValidator { protected void onBind(Component) { // add your logic here } } This wont if you use any of the standard Wicket validators. For

jWicket WiQuery

2011-01-22 Thread flavius
I'm looking to implement some ajax functionality and was looking at the different libs that integrate with wicket. After looking at these statistics, I thought jquery would be ideal. It's the most popular in most parts of the world and has gotten good reviews in general.

Re: jWicket WiQuery

2011-01-22 Thread Hielke Hoeve
What is there to miss? You have the library and the examples. Is there any specific example you need? Hielke On 22 Jan 2011 21:13, flavius flav...@silverlion.com wrote:

Re: Problem with links on page if multiple mounts

2011-01-22 Thread Igor Vaynberg
hrm. i think one of the problems we have solved in 1.5, or at least i thought we did, is that we always normalize the last slash in the url (remove it), so the url should actually be: /view/52?0-1.ILinkListener-markAbuseLink, notice to slash between 52 and ?. hrm. create a quickstart. -igor On

[announce] Wicket Stuff Core 1.5-RC1 is released

2011-01-22 Thread Michael O'Cleirigh
Hello, Following the release of wicket 1.5-RC1 I've cut a matching release for wicketstuff-core (https://github.com/wicketstuff/core). Many of the projects presently in the 1.4.15 release are present in this release. However there are several that still need to be adapted to the changes

Re: Is it possible to change the /wicket path?

2011-01-22 Thread Igor Vaynberg
https://issues.apache.org/jira/browse/WICKET-3368 -igor On Sat, Jan 22, 2011 at 9:38 AM, Willis Blackburn wbo...@panix.com wrote: (Sorry if this seems familiar to anyone.  I accidentally posted it to the Nabble Apache Wicket forum the first time, instead of Users.) I have an application in

Re: Is it possible to change the /wicket path?

2011-01-22 Thread Willis Blackburn
Thanks! On Jan 22, 2011, at 5:42 PM, Igor Vaynberg-2 [via Apache Wicket] wrote: https://issues.apache.org/jira/browse/WICKET-3368 -igor On Sat, Jan 22, 2011 at 9:38 AM, Willis Blackburn [hidden email] wrote: (Sorry if this seems familiar to anyone. I accidentally posted it to

Re: jWicket WiQuery

2011-01-22 Thread flavius
Thanks Hielke, The example source is what I was looking for. I found it here: http://code.google.com/p/wiquery/source/browse/examples/?r=256#examples%2Fwiquery-examples%2Fsrc%2Fmain%2Fjava%2Forg%2Fodlabs%2Fwiquery%2Fexamples%253Fstate%253Dclosed I saw the example war for version 1.0 from Nov

ModalWindow containing form in Wicket 1.5 RC1

2011-01-22 Thread hok
Hello, There is a modal window that contains a panel, which contains a form: FormVoid f = new FormVoid(modal_form); add(f); modal = new ModalWindow(window); f.add(modal); modal.setContent(new ModalTestPanel(modal.getContentId(), modal)); ModalTestPanel

Re: ModalWindow containing form in Wicket 1.5 RC1

2011-01-22 Thread hok
Forgot to add the main thing - in this case Form.onSubmit is never called, because the form is hidden before this. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/ModalWindow-containing-form-in-Wicket-1-5-RC1-tp3232077p3232079.html Sent from the Users forum mailing

Re: ModalWindow containing form in Wicket 1.5 RC1

2011-01-22 Thread Igor Vaynberg
yes, unfortunately it is the correct behavior. ajax submits were deviating from normal submits where form.onsubmit() is called after button.onsubmit(). in rc1 we fixed the deviating ajax behavior so now it works like normal non-ajax submits. a long time ago i wanted to change it so