Re: another serialization question

2009-11-11 Thread svenmeier
Then just keep the criteria to get those items in your components? samb0057 wrote: The value objects are not simple attributes of an entity. Let me explain what they do (a little simplified but the fundamentals are there). We have a research module that performs pricing research.

AbstractAjaxTimerBehavior causes exception

2009-11-11 Thread Giambalvo, Christian
Hi all, maybe i found a bug. Don't know if I'm doing something wrong. But it's a simple usecase. Following code produces an exception: public class HomePage extends WebPage { private static final long serialVersionUID = 1L; private static int testCounter = 0;

Re: correct way to call necessary javascript initialization when a component is added via ajax

2009-11-11 Thread svenmeier
Why so complicated? @Override public void renderHead(IHeaderResponse response) { response.renderOnDomReadyJavascript(init_slider_js()); } Peter Ross-6 wrote: On Wed, Nov 11, 2009 at 3:48 PM, Jeremy Thomerson jer...@wickettraining.com wrote: On Tue, Nov 10, 2009 at 10:38 PM, Peter

Re: AbstractAjaxTimerBehavior causes exception

2009-11-11 Thread Ernesto Reinaldo Barreiro
Hi Chris, Maybe it is because you are adding the timer to the label and later on replacing it is another component. Then the second AJAX round trip to the page will look for the AbstractAjaxTimerBehavior associated to the message component, but the new one does not have associated such a

AW: AbstractAjaxTimerBehavior causes exception

2009-11-11 Thread Giambalvo, Christian
Hi Ernesto, the label was just an example. In my app i try to replace the navigation (you remember your suggestion with a timer?) The navigation is a panel. So recreate the whole panel and then try to replace it with the new one. This is where the AbstractAjaxTimerBehavior comes in. Greets

AW: AbstractAjaxTimerBehavior causes exception

2009-11-11 Thread Giambalvo, Christian
Btw, the exception is thrown on first call not on second round trip. -Ursprüngliche Nachricht- Von: Giambalvo, Christian [mailto:christian.giamba...@excelsisnet.com] Gesendet: Mittwoch, 11. November 2009 09:39 An: users@wicket.apache.org Betreff: AW: AbstractAjaxTimerBehavior causes

Re: AbstractAjaxTimerBehavior causes exception

2009-11-11 Thread Ernesto Reinaldo Barreiro
Following example works fine public class TestCounter extends WebPage { private int counter = 0; private Label message; /** * */ public TestCounter() { message = new Label(message, new AbstractReadOnlyModelString(){ private static final long

Re: AbstractAjaxTimerBehavior causes exception

2009-11-11 Thread Martin Grigorov
On Wed, 2009-11-11 at 09:21 +0100, Giambalvo, Christian wrote: Hi all, maybe i found a bug. Don't know if I'm doing something wrong. But it's a simple usecase. Following code produces an exception: public class HomePage extends WebPage { private static

AW: AbstractAjaxTimerBehavior causes exception

2009-11-11 Thread Giambalvo, Christian
Hi Martin, this doesn't work. @Override protected void onTimer(AjaxRequestTarget target) { Label t2 = new Label(message, Test + testCounter); t2.setOutputMarkupId(true); test = t2; testCounter++;

Re: AbstractAjaxTimerBehavior causes exception

2009-11-11 Thread Ernesto Reinaldo Barreiro
Well I think it all boils down to the explanation a gave on my first e-mail: if you replace the component with a new one that does not have the behavior then you will get an exception (the same will happend if you remove the behavior during a round trip). I guess Martin was just trying to say

AW: AbstractAjaxTimerBehavior causes exception

2009-11-11 Thread Giambalvo, Christian
You're right Ernesto, your example works, but what if I want to replace a whole panel and not just the model of a label? -Ursprüngliche Nachricht- Von: Ernesto Reinaldo Barreiro [mailto:reier...@gmail.com] Gesendet: Mittwoch, 11. November 2009 10:15 An: users@wicket.apache.org Betreff:

Re: AbstractAjaxTimerBehavior causes exception

2009-11-11 Thread Ernesto Reinaldo Barreiro
Put a container (WebMarkupContainer?) around components you want to update, atatch the behavior to that container and make sure the comapoent you want to update are dynamic: meaning that theirs state should change every time they are rendered. Best, Ernesto On Wed, Nov 11, 2009 at 10:24 AM,

Re: AW: AbstractAjaxTimerBehavior causes exception

2009-11-11 Thread Martin Grigorov
I didn't mean to 'replace' but to 'add'. You need both lines. On Wed, 2009-11-11 at 10:06 +0100, Giambalvo, Christian wrote: Hi Martin, this doesn't work. @Override protected void onTimer(AjaxRequestTarget target) { Label t2 = new

Bug with RadioGroup in FormComponentFeedbackBorder

2009-11-11 Thread Daniel Pote
I had a RadioGroup with an ajax-call working fine, but when i added it to a FormComponentFeedbackBorder it stopped working in MSIE6. However its working in MSIE8 and Firefox. If I remove the FormComponentFeedbackBorder it starts working again. I traced it down to FormComponent.class where

Re: Autogenerating HTML files ...?

2009-11-11 Thread kellerautomat
Try using startComponent instead of startPage Ashley Aitken wrote: Thanks All. Igor - I'm a Wicket newbie. When I get more experience I'll see if I can do something along the lines you suggest. For now I just wished to know if it would be possible / sensible. Casper - Sorry

Re: AbstractAjaxTimerBehavior causes exception

2009-11-11 Thread Ernesto Reinaldo Barreiro
public class HomePage extends WebPage { private static final long serialVersionUID = 1L; private static int testCounter = 0; WebMarkupContainer container; /** * Constructor that is invoked when page is invoked without a session. * * @param parameters *

AW: AbstractAjaxTimerBehavior causes exception

2009-11-11 Thread Giambalvo, Christian
Works great with a Container. Thanks Ernesto, you're the best :) Saludo Chris -Ursprüngliche Nachricht- Von: Ernesto Reinaldo Barreiro [mailto:reier...@gmail.com] Gesendet: Mittwoch, 11. November 2009 10:28 An: users@wicket.apache.org Betreff: Re: AbstractAjaxTimerBehavior causes

Re: HTTP Status 400 - There are some problems in the request: invalid URLPatternSpec

2009-11-11 Thread FakeBoy
I checked http://docs.huihoo.com/javadoc/jboss/4.0.2/javax/security/jacc/URLPatternSpec.java.html. I need change url to this : http://xyz.sk/mymount?wicket:interface=:0:form::IFormSubmitListener:: and everything work fine. Strange thing is that I developed app on Jetty and Tomcat and

Re: another serialization question

2009-11-11 Thread James Carman
How do you already know the attributes of all of the research items? Does that mean that you could enumerate them? On Nov 11, 2009 12:23 AM, Sam Barrow s...@sambarrow.com wrote: The value objects are not simple attributes of an entity. Let me explain what they do (a little simplified but the

How to dynamically display a Form depending on a DropDownChoice?

2009-11-11 Thread srm
How would you approach the following: PageA is used to insert an article. At first, the user chooses what kind of article to insert (DropDownChoice). When the User made his choice, a coresponding form should be loaded/visible underneath the DropDownChoice. That's all to be solved without

Re: How to dynamically display a Form depending on a DropDownChoice?

2009-11-11 Thread Ernesto Reinaldo Barreiro
I have used something similar to import org.apache.wicket.ajax.AjaxRequestTarget; import org.apache.wicket.ajax.form.OnChangeAjaxBehavior; import org.apache.wicket.markup.html.form.DropDownChoice; import org.apache.wicket.markup.html.form.Form; import

Re: How to dynamically display a Form depending on a DropDownChoice?

2009-11-11 Thread srm
Am 11.11.2009 um 15:25 schrieb Ernesto Reinaldo Barreiro: I have used something similar to [snip] [snap] for such situations... I delegate creation to a factory class (so that new products can be plugged in). Best, Ernesto Thank you for this example. But I'm bound to not use

Re: How to dynamically display a Form depending on a DropDownChoice?

2009-11-11 Thread Ernesto Reinaldo Barreiro
If you reload the page when selecting the element, instead of using AJAX, I guess the same will work because you have a selected article... I think AJAX is just a detail here, maybe you can use protected boolean wantOnSelectionChangedNotifications() { return false; } on

Re: How to dynamically display a Form depending on a DropDownChoice?

2009-11-11 Thread srm
Am 11.11.2009 um 15:59 schrieb Ernesto Reinaldo Barreiro: If you reload the page when selecting the element, instead of using AJAX, I guess the same will work because you have a selected article... I think AJAX is just a detail here, maybe you can use protected boolean

Re: Bug with RadioGroup in FormComponentFeedbackBorder

2009-11-11 Thread Daniel Pote
Has anyone seen this before, and maybe know a workaround for this problem? Regards, Daniel Daniel Pote daniel.p...@migrationsverket.se 2009-11-11 11:00 I had a RadioGroup with an ajax-call working fine, but when i added it to a FormComponentFeedbackBorder it stopped working in MSIE6. However

LDM and OSIV problem

2009-11-11 Thread Fernando Wermus
Hi all, I have a wizard with five wizardSteps. Also I have an LDM called EntityModel, EntityModel extends LDM{ EntityModel(Key key) this.key=key; } load(){ // I look up for the entity with the key} } But I have a case where it doesnt behave as expected. There is a case where the

Re: Proxying SSL on Apache to HTTP on Jetty + Wicket

2009-11-11 Thread Rangel Preis
I extends HttpsRequestCycleProcessor and SwitchProtocolRequestTarget to make my custom HttpsRequestCycleProcessor In the method getUrl from SwitchProtocolRequestTarget i just remove the port: if (port != null) { result.append(:); result.append(port); }

Re: correct way to call necessary javascript initialization when a component is added via ajax

2009-11-11 Thread Jeremy Thomerson
Won't work on an ajax request because the dom ready event isn't fired. Right? -- Jeremy Thomerson http://www.wickettraining.com On Wed, Nov 11, 2009 at 2:23 AM, svenmeier s...@meiers.net wrote: Why so complicated? @Override public void renderHead(IHeaderResponse response) {

Re: LDM and OSIV problem

2009-11-11 Thread Jeremy Thomerson
Are you holding the model as an instance variable somewhere? If so, you'll need to detach it manually. The component only auto-detaches the default model. i.e. this will get auto-detached: public class SomeComponent extends Component { public SomeComponent(String id, IModel model) {

Re: correct way to call necessary javascript initialization when a component is added via ajax

2009-11-11 Thread mbrictson
Actually wicket-ajax.js is smart enough to fire these dom ready events after an ajax request. Of course, a jQuery $(document).ready() will not fire; neither will the ready events of other various JS libraries. However if you specifically use Wicket's dom ready event (i.e.

Re: correct way to call necessary javascript initialization when a component is added via ajax

2009-11-11 Thread Sven Meier
Right? Wrong, see explanation below. Sven mbrictson wrote: Actually wicket-ajax.js is smart enough to fire these dom ready events after an ajax request. Of course, a jQuery $(document).ready() will not fire; neither will the ready events of other various JS libraries. However if you

Browser back, Panel replacement

2009-11-11 Thread bht
Hi, I have been using panel replacement instead of multiple different pages as a way to avoid a kind of back button problem but I am not happy with my solution. The objective is to prevent the user from going back after an update to previous pages/versions of the page containing state of domain

Re: How to dynamically display a Form depending on a DropDownChoice?

2009-11-11 Thread srm
SOLVED! w/o JS/AJAX I created a factory to produce the corresponding Panel(including the form) and I use a call to replaceWith() in onSelectionChanged(): [code] @Override protected void onSelectionChanged(final Object newSelection) { Panel newPanel =

Re: How to dynamically display a Form depending on a DropDownChoice?

2009-11-11 Thread Martijn Dashorst
How do you think wantOnSelectionChangedNotification() works? With or without JS? Martijn On Wed, Nov 11, 2009 at 9:39 PM, srm s...@schokokeks.org wrote: SOLVED! w/o JS/AJAX I created a factory to produce the corresponding Panel(including the form) and I use a call to replaceWith() in

Re: How to dynamically display a Form depending on a DropDownChoice?

2009-11-11 Thread srm
Ah! Stupid me! I've read that it is working with JS and I didn't make sure to disable JS for my local host. Argh. So it's not solved. Need to find a way around then. Thanks for the pointer. Regards, Stephan Am 11.11.2009 um 21:44 schrieb Martijn Dashorst: How do you think

Re: How to dynamically display a Form depending on a DropDownChoice?

2009-11-11 Thread Igor Vaynberg
you should do something like this [form1][select/][submit button/][/form1] [form2][form components panel/][/form2] user presses the submit button in form 1, in form 1's onsubmit you swap the form components panel based on the selection. simple. -igor On Wed, Nov 11, 2009 at 12:50 PM, srm

Re: How to dynamically display a Form depending on a DropDownChoice?

2009-11-11 Thread srm
Yes. Looks like this is the only non-JS way to go (still searching). Simple but ugly. Regards, Stephan Am 11.11.2009 um 21:53 schrieb Igor Vaynberg: you should do something like this [form1][select/][submit button/][/form1] [form2][form components panel/][/form2] user presses the submit

Re: correct way to call necessary javascript initialization when a component is added via ajax

2009-11-11 Thread Peter Ross
On Wed, Nov 11, 2009 at 7:23 PM, svenmeier wrote: Why so complicated? because I started by looking at what wiquery did and then simplifying it to my case. However I wasn't sure if it was the correct approach or the most simple hence the question is there a better solution. @Override public

Unable to change label of FileUploadField

2009-11-11 Thread Rene Peters
Hello, I developed a component (a Panel containing a Form) for uploading a file. It works fine but it I would like to change the label of the button and the text displayed next to the button. The text it displays by default is choose file on the button and the text displayed next to

Re: Unable to change label of FileUploadField

2009-11-11 Thread nino martinez wael
you should be able to put the change in a property file.. Like described here : http://day-to-day-stuff.blogspot.com/2008/05/wicket-internationalization.html, so you just need to find the key for the field. 2009/11/11 Rene Peters rene_pet...@hotmail.com Hello, I developed a component (a

Re: Newbie: add spring to wicket quickstart

2009-11-11 Thread nino martinez wael
I think wicket iolite has this aswell... 2009/11/10 Владимир Михайленко vladimir.web...@gmail.com Thank you, now it works. On Tue, Nov 10, 2009 at 8:29 PM, Pieter Degraeuwe pieter.degrae...@systemworks.be wrote: You are getting this exception from a unittest. When you use WicketTester

Re: Wicket and JQuery

2009-11-11 Thread Peter Ross
On Wed, Nov 11, 2009 at 3:53 PM, Peter Ross pdr...@gmail.com wrote: On Wed, Oct 28, 2009 at 5:08 PM, Jason Novotny  wrote: Martin Makundi wrote: ... and expect trouble with ajaxifying jquery plugins that skin html components. They will not work properly if you replace your components via

Re: Proxying SSL on Apache to HTTP on Jetty + Wicket

2009-11-11 Thread nino martinez wael
I think last time this came up it ended out being some issue with jetty? 2009/11/11 Rangel Preis rangel...@gmail.com I extends HttpsRequestCycleProcessor and SwitchProtocolRequestTarget to make my custom HttpsRequestCycleProcessor In the method getUrl from SwitchProtocolRequestTarget i

Re: Scala, dependency injection and wicket

2009-11-11 Thread nino martinez wael
I agree on Jeremy on this one. I actually don't know much about ajax (migth be an understatement), but with wicket I've been able todo alot of ajax integrations. Heres something to read (if you want to know the inner workings):

Re: ajax autocomplete

2009-11-11 Thread nino martinez wael
Please try to ask the question again, try to restructure the sentences? I cant understand what you wrote (not to be rude). 2009/11/11 hxysun hxy...@163.com hi, I have a question:I run wicket-examples-1.4.3 in tomcat 6.0.20 windows sys,findig Auto-Complete TestField Example not enable,no

Calling IN TO Wicket from JSP

2009-11-11 Thread Corbin, James
Is it possible to build a wicket URL in a JSP that gets forwarded to and handle by the Wicket filter mechanism? This seems like it should be simple but doesn't appear to work right in 1.4.1. We build up a wicketized URL that makes it into the WicketFilter, but that filter strips all the

HTML Editing component

2009-11-11 Thread Alex Rass
Hi. Hi. Did a bit of googling, but didn't find anything good... Anyone ever had to create an edit screen where you can do html/source editor? Any idea what I can use? In other words: I store html in database. I would like to be able to let my users bring it up inside a wicket screen. Edit

Re: HTML Editing component

2009-11-11 Thread Sam Barrow
TinyMCE is one of the most popular out there, it has some wicket integration already done http://wicketstuff.org/confluence/display/STUFFWIKI/wicket-contrib-tinymce On Wed, 2009-11-11 at 20:02 -0500, Alex Rass wrote: Hi. Hi. Did a bit of googling, but didn't find anything good...

Datepicker model change problem

2009-11-11 Thread Swarnim Ranjitkar
I have a page with date picker that picks the date, DropdownChoice for hour and minute. When I click today button I change the model in onsubmit method. It is suppose to change the form value in datepicker, hour and minute to today/now.This changes hour and minute but doesn't change the value

EntityModel

2009-11-11 Thread Sam Barrow
Does anybody how to pass a smart EntityModel (link below) to another page? We use a different repository for each entity type. I can't get it to work. I have tried storing the repository as a field on the EntityModel and using an abstract method on EntityModel to retrieve it.

Re: bindgen release

2009-11-11 Thread Jeremy Thomerson
Have you done any more work with using Bindgen with Wicket? It looks interesting to me. -- Jeremy Thomerson http://www.wickettraining.com On Wed, Jul 22, 2009 at 2:34 PM, Stephen Haberman step...@exigencecorp.comwrote: Hi, I just released bindgen 2, a type-safe alternative to OGNL-like

Re: OT: Relational database + Hibenate vs Content Repository (Jackrabbit)

2009-11-11 Thread Jeremy Thomerson
Anybody have thoughts on this? I am curious also. -- Jeremy Thomerson http://www.wickettraining.com On Wed, Nov 4, 2009 at 10:27 AM, danisevsky danisev...@gmail.com wrote: Hallo, I am thinking about learning and using Jackrabbit instead of relational database (+ Hibernate) in my new wicket

Re: London Wicket Event at Foyles Bookshop, November 21st, 2009

2009-11-11 Thread Jeremy Thomerson
Just to confirm (for me as a foreigner) - this is the correct place? http://tinyurl.com/foyles -- Jeremy Thomerson http://www.wickettraining.com On Mon, Nov 2, 2009 at 5:11 PM, jWeekend jweekend_for...@cabouge.comwrote: We will hold our next London Wicket Event on Saturday, 21st November,

Re: bindgen release

2009-11-11 Thread Stephen Haberman
Have you done any more work with using Bindgen with Wicket? It looks interesting to me. No, but coincidentally I got an email from Igor about bindgen a few days ago. He's been putting some work into a maven apt plugin and then submitting a hand full of bindgen bugs that I've fixed. Igor's

Re: EntityModel

2009-11-11 Thread Matthias Keller
Hi Sam What exactly do you mean by repository? Do you have to load every entity from another place? in load(), we have the code to load every possible entity in our implementation, for example: T entity; if (this.clazz == User.class) { entity = userService.load(...); } else if (this.clazz

Re: EntityModel

2009-11-11 Thread Sam Barrow
We have close to a hundred repositories, this wouldn't work. How do you inject the services into the EntityModel anyway? On Thu, 2009-11-12 at 08:34 +0100, Matthias Keller wrote: Hi Sam What exactly do you mean by repository? Do you have to load every entity from another place? in load(),

RE: HTML Editing component

2009-11-11 Thread Alex Rass
Went to the page (thanks!) got the SVN copy down. Ran Maven. Maven blows up with an error (below). Anyone knows how to get past this (or can fix it). Thanks. Output from running maven is here: G:\comp\apache-wicket-1.4.1\tinymce\comp\maven\bin\mvn [INFO] Scanning for projects... [INFO]

Re: EntityModel

2009-11-11 Thread Matthias Keller
Hi Sam We use Spring to inject them. Well, somewhere you'll need that logic what class is loaded by which repo - you could of course do it in a more generic way using factories or a kind of a mapper or whatever... Since we only have around 10 classes, this is easy. If you use hibernate, you

Re: EntityModel

2009-11-11 Thread Sam Barrow
Yes that shouldn't be a problem I just need to figure out the injection, how do you do this? I use wicket-spring also. On Thu, 2009-11-12 at 08:53 +0100, Matthias Keller wrote: Hi Sam We use Spring to inject them. Well, somewhere you'll need that logic what class is loaded by which repo -

Re: HTML Editing component

2009-11-11 Thread Igor Vaynberg
you need to add wicketstuff repo to your repositories pom tag -igor On Wed, Nov 11, 2009 at 11:48 PM, Alex Rass a...@itbsllc.com wrote: Went to the page (thanks!) got the SVN copy down. Ran Maven. Maven blows up with an error (below). Anyone knows how to get past this (or can fix it).