Re: How to set Wicket with embedded Jetty?

2011-02-07 Thread Attila Király
Hi Surapol, Try adding this before registering the filter: filterHolder.setInitParameter(WicketFilter.FILTER_MAPPING_PARAM, /*); It seems wicket is not parsing the web.xml if that init parameter is present. Attila 2011/2/7 Surapol Pairojtanachai sura...@bridsystems.com I can easily create

Re: PageExpiredException since version 1.4.13

2011-02-07 Thread Daniel Soneira
Hi Pedro, I've increased the max page map setting from 5 to 10 and the exception went away. Thanks for the suggestion - for a quick fix that is good enough for now :) Still it seems like a bug. Can I help with some specific logs to determine the source of the problem? Regards, Daniel On

[1.5 RC1] Error serializing object class

2011-02-07 Thread nino martinez wael
One of my pages fails with this, im a little bit unsure what is causing the error im using guice: 2011-02-07 12:07:10,112 ERROR [org.apache.wicket.util.lang.WicketObjects] - Error serializing object class com.netdesign.wallboard.page.DriverSetupPage [object=[Page class =

Re: [1.5 RC1] Error serializing object class

2011-02-07 Thread Major Péter
Hi, in your DriverSetupPage you have an injected resource, which's equals method can not handle null arguments. Regards, Peter On 2011-02-07 12:11, nino martinez wael wrote: One of my pages fails with this, im a little bit unsure what is causing the error im using guice: 2011-02-07

[1.5 MIGRATION] - Where did StringHeaderContributor / TextTemplateHeaderContributor go?

2011-02-07 Thread Daniel Soneira
The migration wiki does not contain information on renamed / substitution classes. I know AbstractHeaderContributor is a thing of the past but those classes could be converted into Behaviors quite easily. Was there a reason to get rid of them in 1.5? TextTemplate still exists but there is no

Re: [1.5 RC1] Error serializing object class

2011-02-07 Thread nino martinez wael
I hope it's not this one: @Inject private transient Injector injector; I have several others, are there any way to discover which resource it's talking about, can I step through it? 2011/2/7 Major Péter majorpe...@sch.bme.hu Hi, in your DriverSetupPage you have an injected resource,

Question about Unit Testing with custom Session

2011-02-07 Thread Dmitriy Neretin
Hello everybody, After integration with spring I have following problem: if I add following to my CustomSession: InjectorHolder.getInjector().inject(this); (because I store some spring beans in the custom session) My WicketTester doesn't work anymore. I get this exception: BeanFactory not

[wicket 1.5] Ajax recovery script

2011-02-07 Thread nino martinez wael
Hi Does anybody have a java script which does the following modification to wicket's ajax: If the server are to long to respond, the script automatically invokes fallback to the baseurl for the page? I guess you could also have some reverse heartbeat technique, that would update a timer, and

Re: PageExpiredException since version 1.4.13

2011-02-07 Thread Pedro Santos
I'm afraid that the opposite statement is the right one :) The version 1.4.12 wasn't respecting the max page map, than your app was relying on the fact that it could always get page versions from it's page map. Since this bug get resolved, you need to pay close attention to how page map is getting

Re: [wicket 1.5] Ajax recovery script

2011-02-07 Thread Pedro Santos
It possible to test if there in an AJAX activity by testing the Wicket.Channel busy property. Those channels can be iterated on Wicket.channelManager.channels If I got it right, than an JavaScript function can live testing this property and, when an timeout was detected, invokes some callback

Re: Question about Unit Testing with custom Session

2011-02-07 Thread Pedro Santos
I guess the problem is on the ApplicationContext object. Debug its creation and see if it has all your beans. You can use another implementation for tests, ex: FileSystemXmlApplicationContext On Mon, Feb 7, 2011 at 11:10 AM, Dmitriy Neretin dmitriy.nere...@googlemail.com wrote: Hello

Re: Question about Unit Testing with custom Session

2011-02-07 Thread Martijn Dashorst
Did you provide the application to the wicket tester? WicketTester tester = new WicketTester(myapp); Martijn On Mon, Feb 7, 2011 at 2:10 PM, Dmitriy Neretin dmitriy.nere...@googlemail.com wrote: Hello everybody, After integration with spring I have following problem: if I add following to

Re: [1.5 RC1] Error serializing object class

2011-02-07 Thread Pedro Santos
The next RC should give you an better message: https://issues.apache.org/jira/browse/WICKET-3354 On Mon, Feb 7, 2011 at 9:25 AM, nino martinez wael nino.martinez.w...@gmail.com wrote: I hope it's not this one: @Inject private transient Injector injector; I have several others, are

Re: Question about Unit Testing with custom Session

2011-02-07 Thread Dmitriy Neretin
Hi, of course. The point is if I delete this: InjectorHolder.getInjector().inject(this); from my session class everything works fine :( On 7 February 2011 15:27, Martijn Dashorst martijn.dasho...@gmail.comwrote: Did you provide the application to the wicket tester? WicketTester tester =

Re: TextField submit via Ajax

2011-02-07 Thread jensiator
Thanks. I have been looking for this for s long. Thank again. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/TextField-submit-via-Ajax-tp3002094p3264367.html Sent from the Users forum mailing list archive at Nabble.com.

Re: AjaxFormChoiceComponentUpdatingBehavior on RadioGroup

2011-02-07 Thread ilde...@gmail.com
Did you succeed in making AjaxFormChoiceComponentUpdatingBehavior work on a RadioGroup? I can't make it work, wicket 1.4.14 I need to save the selected value to my model object when a Radio in the RadioGroup is selected. This becaus every time an option is selected in the form, the whole form is

Re: [1.5 RC1] Error serializing object class

2011-02-07 Thread nino martinez wael
Is it close to get released? On Feb 7, 2011 3:29 PM, Pedro Santos pedros...@gmail.com wrote: The next RC should give you an better message: https://issues.apache.org/jira/browse/WICKET-3354 On Mon, Feb 7, 2011 at 9:25 AM, nino martinez wael nino.martinez.w...@gmail.com wrote: I hope it's

Re: TextField submit via Ajax

2011-02-07 Thread msj121
If you have multiple html text input elements you can insert the javascript below in your document etc The only thing new in wicket is that you simply need to add a callback to your java method, which you can learn about here (I made a video for this type of issue):

AjaxCheckBox not Disabling Checkbox on call to onUpdate

2011-02-07 Thread sheadley3228
I have a problem updating my check box on a call to onUpdate of a AjaxCheckBox component. Within my PageableListView populateItem call: AjaxCheckBox ajaxCheck = null; PageableListView userSearchPageView = new PageableListView(mychanges, userSearchResults, RECORDS_PER_PAGE) {

Re: AjaxCheckBox not Disabling Checkbox on call to onUpdate

2011-02-07 Thread Pedro Santos
Sheadley, ListView re-create its list items every request by default, see ListView#setReuseItems, RepeatingView and http://wicketinaction.com/2008/10/building-a-listeditor-form-component/ . Than you can chose your solution On Mon, Feb 7, 2011 at 4:57 PM, sheadley3228

FOSDEM 2011 presentation online

2011-02-07 Thread Martijn Dashorst
The presentation on Wicket I gave at FOSDEM is online: http://wicketinaction.com/2011/02/fosdem-wicket-presentation/ Features a short introduction at at about 50% the presentation shifts to features from 1.5 Martijn -- Become a Wicket expert, learn from the best: http://wicketinaction.com

Re: WicketTester and the test of image visibility

2011-02-07 Thread Igor Vaynberg
most of our unit tests check the markup, see there. -igor On Fri, Feb 4, 2011 at 1:19 AM, Dmitriy Neretin dmitriy.nere...@googlemail.com wrote: Could you provide me a simple exmaplte how can I do that? Thank you! On 3 February 2011 18:33, Igor Vaynberg igor.vaynb...@gmail.com wrote:

Re: FOSDEM 2011 presentation online

2011-02-07 Thread shetc
Great presentation! https://cwiki.apache.org/WICKET/migration-to-wicket15.html https://cwiki.apache.org/WICKET/migration-to-wicket15.html doesn't seem to work. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/FOSDEM-2011-presentation-online-tp3264941p3265463.html

Re: FOSDEM 2011 presentation online

2011-02-07 Thread Pedro Santos
Amazing Martijn! Thank u for sharing. On Mon, Feb 7, 2011 at 5:50 PM, Martijn Dashorst martijn.dasho...@gmail.com wrote: The presentation on Wicket I gave at FOSDEM is online: http://wicketinaction.com/2011/02/fosdem-wicket-presentation/ Features a short introduction at at about 50% the

[Announce] wicketstuff-core 1.5-RC1.1 released

2011-02-07 Thread Michael O'Cleirigh
Hello, I have cut a point release for wicketstuff-core version 1.5-RC1.1. This is the second release against the wicket 1.5-RC1 version. There were problems with my release process for the wicketstuff-core 1.5-RC1 version (I promoted incomplete repositories) and the wicket trunk

Best practices in model classes definitions

2011-02-07 Thread Robson Paniago de Miranda
Hi, I'm new to Wicket, and, after reading the documentation, there are still some doubts about the correct usage patterns of IModel-implementing classes: For what I could see, In the case of CompoundPropertyModel, it is best to attach them to a high-level container, such as the page. Also, since

Does anyone have example code using wicketstuff-dojo-api?

2011-02-07 Thread Michael O'Cleirigh
Hello, In wicket 1.3.x there was a fairly comprehensive dojo integration. The examples are still visible on the wicketstuff.org site. At some point the wicketstuff-dojo and wicketstuff-dojo-examples were archived into the attic in svn. This version used dojo version 0.4 Later there was a

Re: How to set Wicket with embedded Jetty?

2011-02-07 Thread Surapol Pairojtanachai
Yes, it is working now. Thank you very much. Surapol On 02/07/2011 03:17 PM, Attila Király wrote: Hi Surapol, Try adding this before registering the filter: filterHolder.setInitParameter(WicketFilter.FILTER_MAPPING_PARAM, /*); It seems wicket is not parsing the web.xml if that init

Re: [1.5 MIGRATION] - Where did StringHeaderContributor / TextTemplateHeaderContributor go?

2011-02-07 Thread Igor Vaynberg
now every component and behavior implement iheadercontributor (have a renderhead method) and the response has the same methods that the old contributors had. you want to contribute something, just override renderhead(). you can contribute the template using

Re: Question about Unit Testing with custom Session

2011-02-07 Thread Igor Vaynberg
make sure your setup() code runs before wicket tester instance is created. -igor On Mon, Feb 7, 2011 at 7:41 AM, Dmitriy Neretin dmitriy.nere...@googlemail.com wrote: Hi, of course. The point is if I delete this: InjectorHolder.getInjector().inject(this); from my session class everything