Re: easyb for testing wicket

2009-04-02 Thread Timo Rantalaiho
On Wed, 18 Mar 2009, Karen Schaper wrote: I've tried writing a test using easyb and the BaseWicketTester since the WicketTester is for JUnit. It shouldn' matter though, if you don't mind having JUnit as a (test) dependency you can still use WicketTester. a wicket tester. --

Re: VOTE: Rename Apache Wicket to Apache WicketFX

2009-04-01 Thread Timo Rantalaiho
On Wed, 01 Apr 2009, Martijn Dashorst wrote: [X] -1, don't accept above resolution, because ... I still liked the other name suggestion jdave-wicket-webdriver-wicket-fx better, shall I do another vote thread on it? - To

Re: Mocking input data while testing Panel

2009-03-29 Thread Timo Rantalaiho
(amountToTransferField, onchange); http://svn.laughingpanda.org/svn/kansanpankki/trunk/src/test/java/org/laughingpanda/kansanpankki/accounts/AccountsViewSpec.java Best wishes, Timo -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi

Re: model for entity with checkgroup (user roles relation)

2009-03-19 Thread Timo Rantalaiho
On Sat, 07 Mar 2009, Francisco Diaz Trepat - gmail wrote: I would like to have a form with a checkgroup to be able to select which roles a user have. I would have CheckBoxes with IModelBoolean bound to each role so that they would do @Override public Boolean getObject() { return

Re: Tabbed Panel problem

2009-03-04 Thread Timo Rantalaiho
On Tue, 03 Mar 2009, Ashis wrote: I am using Ajax Tabbed Panel.I have 4 tabs.First tab contains login form and javascript to display images. When i run the project all works fine, javascript displaying images also gets load but if i click the first tab again the javascript displaying images

Re: [vote] In Wicket 1.4 and onwards, remove widening from the list of choices model in DropDownChoice, changing it from IModelList? extends Foo to IModelListFoo

2009-03-03 Thread Timo Rantalaiho
there have only been a couple of -1s, so maybe that will happen. Best wishes, Timo -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi/ - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org

Re: VOTE: Remove ? extends from constructor of DropDownChoice

2009-03-03 Thread Timo Rantalaiho
On Tue, 03 Mar 2009, Brill Pappin wrote: Might as well merge the two then... I did do a quick check to see if there was another ticket, but obviously a bit too quick :) I think that it's more or less a full-time hobby just trying to keep up with what happens on the lists and Jira and source

Re: Non-serializable model objects

2009-03-03 Thread Timo Rantalaiho
On Tue, 03 Mar 2009, Chris Hansen wrote: The situation that I'm dealing with most commonly is where I'm dealing with simple, DTO-like POJOS with no-arg constructors and getters/setters (why they are not serializable in the first place is beyond me). It just seems like it would be possible, in

Re: LDM with Generics for DropDownChoice

2009-03-01 Thread Timo Rantalaiho
On Wed, 25 Feb 2009, Timo Rantalaiho wrote: I'd say that ListView is wrong here. I created a new Jira issue on fixing that https://issues.apache.org/jira/browse/WICKET-2126 and will do if there are no objections or better ideas. Well, Igor objected very convincingly :) So now

[vote] In Wicket 1.4 and onwards, remove widening from the list of choices model in DropDownChoice, changing it from IModelList? extends Foo to IModelListFoo

2009-03-01 Thread Timo Rantalaiho
the wildcard [ ] No, keep DropDownChoice as it is in Wicket 1.4-rc2 Best wishes, Timo -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi/ - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org

Re: [vote] In Wicket 1.4 and onwards, remove widening from the list of choices model in DropDownChoice, changing it from IModelList? extends Foo to IModelListFoo

2009-03-01 Thread Timo Rantalaiho
[X] Yes, change the DropDownChoice constructor to take the choices list as IModelListT or ListT without the wildcard - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail:

Re: NPE thrown from CheckBoxMultipleChoice when submitting a form.

2009-02-25 Thread Timo Rantalaiho
could browse the Jira issues with fix version 1.4-rc2, and / or try to reproduce the problem in a quickstart. Best wishes, Timo -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi/ - To unsubscribe, e

Re: LDM with Generics for DropDownChoice

2009-02-24 Thread Timo Rantalaiho
, Timo -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi/ - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

Re: external image inside link

2009-02-24 Thread Timo Rantalaiho
On Tue, 24 Feb 2009, novotny wrote: I tried to do something like ExternalLink(link, http://www.gohere.com;, \images/logos/ ); but it escaped the img I tried to pass in as a label. setEscapeModelStrings(false) ? Best wishes, Timo -- Timo Rantalaiho Reaktor Innovations OyURL

Re: How to Show Error Of Page In Deployment MOde

2009-02-24 Thread Timo Rantalaiho
On Tue, 24 Feb 2009, carlo c wrote: I know that this might sound a little strange. but i need to be able to show the error of the system even during deployment mode. I have to show them the stacktrace. You should see the setting that does this and enable it while staying in deployment mode as

Re: Drop Down Box - Ajax Behaviour

2009-02-22 Thread Timo Rantalaiho
); If the dropdown values should change when needed, you shouldn't just fetch the data on component creation and populate the dropdown with it, but have the model get fresh data on every render. Best wishes, Timo -- Timo Rantalaiho Reaktor Innovations OyURL: http

Re: Feedback message isn't displayed

2009-02-22 Thread Timo Rantalaiho
is NOT displayed, reporter = 0, level = ERROR] That sounds strange. Could you wrap your code in a quickstart, make a Jira issue and attach it? Best wishes, Timo -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi

Re: LDM with Generics for DropDownChoice

2009-02-22 Thread Timo Rantalaiho
until you need it :) E.g. you have user dropdown that shows Users and then you want to use it to list objcets of Admin extends User. Best wishes, Timo -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi

Re: .html-templates compiler

2009-02-20 Thread Timo Rantalaiho
On Tue, 17 Feb 2009, kan wrote: I mean if you have a wicket:id=abc, it will generate class with... emm... not sure, say method getAbc() which will return an object which represents an element, so it can be bound to a Component. So, in java-code you can use only elements which are actually

Re: FormTester.setValue accepting invalid component id's

2009-02-18 Thread Timo Rantalaiho
for backwards compatibility, but from 1.5 onwards not. Could you please file a Jira issue? Even better if it's with a patch ;) Best wishes, Timo -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi

Re: Problems with ListMultipleChoice component

2009-02-18 Thread Timo Rantalaiho
On Wed, 18 Feb 2009, David R Robison wrote: I'm having trouble with the ListMultipleChoice component. It displays correctly, but when I submit the form, the server side code does not see any items selected. Any thoughts? Can anyone point me to a good example? Have you checked out

Re: Drop Down Box - Ajax Behaviour

2009-02-18 Thread Timo Rantalaiho
of the different Ajax*Form*Behavior to see better what they do. Best wishes, Timo -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi/ - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org

Re: How to get a reference to the holding page from a panel

2009-02-15 Thread Timo Rantalaiho
On Fri, 13 Feb 2009, Warren Bell wrote: I have a simmilar situation where I want to put a panel nested in a panel nested in a page. The panel that is nested in the page stays the same for many different pages, but the panel nested into the panel changes. Would you do an anonymous panel

Re: inmethod datagrid, validation, and feedback

2009-02-15 Thread Timo Rantalaiho
FeedbackPanel(feedback) .setOutputMarkupPlaceHolder(true); add(feedback); ... @Override protected void onSubmit(AjaxRequestTarget target) { target.addComponent(feedback); ... } Best wishes, Timo -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi

Re: FormTester selectMultiple CheckBoxMultipleChoice help

2009-02-13 Thread Timo Rantalaiho
On Wed, 11 Feb 2009, ray bon wrote: I am trying to test the case where a user is changing the set of checked options for a CheckBoxMultipleChoice. When using FormTester.selectMultiple the new values are added rather than replacing the existing values. ... How do I get FormTester to unselect

Re: Checkbox OnChangeAjaxBehavior with defaultFormProcessing=false??

2009-02-13 Thread Timo Rantalaiho
-- toggle the input DOM element properties with javascript attached on the correct event handler (onclick I think?) of the checkboxes. Your favourite Javascript library (e.g. http://acko.net/files/jQuery%20-%2023%20March%202007.pdf ) can come handy there. Best wishes, Timo -- Timo Rantalaiho

Re: create custom feedback panel list

2009-02-13 Thread Timo Rantalaiho
wishes, Timo -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi/ - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

Re: Intellij Idea Plugin Bounty

2009-02-13 Thread Timo Rantalaiho
=http://wicket.apache.org/dtds.data/wicket-xhtml1.4-strict.dtd; xml:lang=en lang=enbody If you have better ideas, they are most welcome. Best wishes, Timo -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi

Re: Checkbox OnChangeAjaxBehavior with defaultFormProcessing=false??

2009-02-13 Thread Timo Rantalaiho
On Fri, 13 Feb 2009, Martin Makundi wrote: Yes, this is what I am trying to do, but disabling and enabling a textfield ends up clearing its value too if I use AjaxFormSumitBehavior. Don't know why. Maybe a conversion error that prohibits updating the model? Though in the case of validation or

Re: Wicket meetup in Amsterdam news

2009-02-12 Thread Timo Rantalaiho
) I suppose that Tuesday would fit better. Best wishes, Timo -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi/ - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e

Re: Testing DataView

2009-02-11 Thread Timo Rantalaiho
classes. Best wishes, Timo -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi/ - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

Re: Problem with WebRequestCodingStrategy's and mobile phones

2009-02-10 Thread Timo Rantalaiho
% until we figured this out. Hope this helps someone else. Thanks for sharing this! Care to put a note on the wiki (even just copy-paste your mail)? Best wishes, Timo -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi

Re: Three tier layered application using Wicket + Spring + Hibernate. How would you handle transactions?

2009-02-10 Thread Timo Rantalaiho
will live longer before being able to commit by being uncommitted in the view as well. What do you mean with this exactly? Best wishes, Timo -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi

Re: Inconsistent Model Binding on Form Submit

2009-02-10 Thread Timo Rantalaiho
On Tue, 10 Feb 2009, Dane Laverty wrote: form. The problem is user-dependent, i.e. it always breaks for certain users and it never breaks for the other users. If a user calls us with this problem, we haven't been able to find anyway to get around it. I haven't been able to replicate the

Re: Testing DataView

2009-02-08 Thread Timo Rantalaiho
and started by WicketTester, it should be rendered and the Items should be there. Best wishes, Timo -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi/ - To unsubscribe, e-mail: users-unsubscr

Re: Wicket BDD with JDave training at ApacheCon EU 2009 on Tue 24 March in Amsterdam

2009-02-08 Thread Timo Rantalaiho
Hello again, We have now put the current version of the training material online at http://www.jdave.org/bdd-wicket/ It can be interesting even if you cannot make it to the session. We'll be updating the material every now and then. Best wishes, Timo -- Timo Rantalaiho Reaktor

Re: Wicket BDD with JDave training at ApacheCon EU 2009 on Tue 24 March in Amsterdam

2009-02-08 Thread Timo Rantalaiho
On Sun, 08 Feb 2009, Johan Compagner wrote: Talking about apache con eu 2009 Shouldnt we organize a get to gether? I think we can now use the conference rooms of apache con them selfs. Yes! Being busy family men and consultants, we're planning to get there on Monday evening and leave on

Re: Why Wicket application contains maven-jetty-plugin?

2009-02-08 Thread Timo Rantalaiho
On Sun, 08 Feb 2009, HHB wrote: Why POM of a Wicket skeleton application contains maven-jetty-plugin? To be able to run your application from the command line with mvn jetty:run in the cases when that makes more sense than running a Jetty.java or something such from the IDE. Best wishes,

Re: Why Wicket application contains maven-jetty-plugin?

2009-02-08 Thread Timo Rantalaiho
unit tests http://www.artima.com/weblogs/viewpost.jsp?thread=126923 but the difference doesn't usually matter until you have hundreds or thousands of tests. Best wishes, Timo -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi

Re: Using converters properly in Wicket?

2009-02-08 Thread Timo Rantalaiho
On Sun, 08 Feb 2009, Martin Makundi wrote: Exactly. I had a component with its own converter and my memory profiler showed that it ended up hogging 200 MB. Wow, that's interesting. Did you file a Jira issue and/or would you be able to do a quickstart to produce that? Did your converter have

Re: Testing DataView

2009-02-08 Thread Timo Rantalaiho
On Sun, 08 Feb 2009, Erick Fleming wrote: private final org.apache.wicket.markup.repeater.data.IDataProvider org.apache.wicket.markup.repeater.data.DataViewBase.dataProvider [class=$Proxy5] protected java.lang.reflect.InvocationHandler java.lang.reflect.Proxy.h

Re: Proper hook for conversational state that also works with tests

2009-02-08 Thread Timo Rantalaiho
On Fri, Feb 6, 2009 at 9:06 AM, cpopetz cpop...@gmail.com wrote: This works great when running in-container, but isn't playing well with tests that use ajax. When an ajax link is clicked in-container, the full request cycle is step()ed through. But BaseWicketTester.clickLink(), which I

Re: FormTester doesn't call the submit method

2009-02-05 Thread Timo Rantalaiho
, please post some code. Best wishes, Timo -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi/ - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h

Re: Testing DataView

2009-02-05 Thread Timo Rantalaiho
? There shouldn't be anything special about it, you should abstract out how the dataview gets it data, for example by using dependency injection, and provide the data in the test. Best wishes, Timo -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi

Re: IoC: how to best handle non-serializable fields in wicket

2009-02-05 Thread Timo Rantalaiho
On Fri, 06 Feb 2009, Andreas Petersson wrote: so, im using wicket together with guice for DI. i really wondered that the correct approach is here. http://wicketstuff.org/wicket13/guice/ http://cwiki.apache.org/WICKET/wicket-guice-and-ibatis-example.html Best wishes, Timo -- Timo Rantalaiho

Re: IoC: how to best handle non-serializable fields in wicket

2009-02-05 Thread Timo Rantalaiho
). The access to the dao is proxied by a serialisable proxy. The proxy can be serialised and deserialised without problems, and it will access the real dao. Best wishes, Timo -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi

Wicket BDD with JDave training at ApacheCon EU 2009 on Tue 24 March in Amsterdam

2009-02-05 Thread Timo Rantalaiho
Hello all, My colleagues Markus Hjort and Marko Sibakov and I are holding a full-day training session on applying the JDave Behavior-Driven Development (BDD) framework for developing Apache Wicket applications. This will take place in the ApacheCon EU 2009 conference in Amsterdam on Tuesday 24

Re: What is the best way to handle Undefined attribute name (wicket:id) warnings from Eclipse Ganymede?

2009-02-04 Thread Timo Rantalaiho
On Wed, 04 Feb 2009, Anton Veretennikov wrote: Please, don't forget to remove it when mode is DEPLOYMENT. What do you mean? Best wishes, Timo -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi

Re: How to stop submit of form on AjaxSubmitLink onSubmit

2009-02-04 Thread Timo Rantalaiho
with an AjaxFormSubmitBehavior, so the word submit figures there at least three times = it's definitely meant for submitting ;) But attaching AjaxFormValidatingBehavior (instead of _Submit_Behavior) to a link does probably what you want. Best wishes, Timo -- Timo Rantalaiho Reaktor Innovations

Re: autosave

2009-02-04 Thread Timo Rantalaiho
On Wed, 04 Feb 2009, Dipu wrote: have a look at AbstractAjaxTimerBehavior Rather than timers, we've found OnChangeAjaxBehavior or other save-on-every-input behaviors (possibly with throttle) the best for implementing autosave. YMMV :) Best wishes, Timo -- Timo Rantalaiho Reaktor

Re: What is the best way to handle Undefined attribute name (wicket:id) warnings from Eclipse Ganymede?

2009-02-03 Thread Timo Rantalaiho
this XML stuff :) Cheers, Timo -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi/ - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h

Re: [jira] Resolved: (WICKET-1712) Inheritance inside a Container throws WicketRuntimeException

2009-02-03 Thread Timo Rantalaiho
() { ... }); (For visitChildern(), you can supply a type of the Components you want to visit directly) Best wishes, Timo -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi/ - To unsubscribe, e-mail: users

Re: What is the best way to handle Undefined attribute name (wicket:id) warnings from Eclipse Ganymede?

2009-02-02 Thread Timo Rantalaiho
Best wishes, Timo -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi/ - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

Re: AjaxFallbackDefaultDataTable and AjaxLink

2009-02-02 Thread Timo Rantalaiho
-- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi/ - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

Re: DropDownChoice onchange event with AjaxEventBehaviour

2009-02-01 Thread Timo Rantalaiho
On Wed, 07 Jan 2009, Yazeed Isaacs wrote: Yes, I want feedback text for a lengthy process and then update the table and remove the feedback text. See IAjaxIndicatorAware. Best wishes, Timo -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi

Re: brainstorming

2009-02-01 Thread Timo Rantalaiho
. That being said, of course more IDE support would be nice! Best wishes, Timo -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi/ - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional

Re: where to find javadoc for wikcet 1.4

2009-02-01 Thread Timo Rantalaiho
On Tue, 13 Jan 2009, Jeremy Thomerson wrote: Do you use Maven? If so, do mvn eclipse:eclipse -DdownloadJavadocs=true Better yet, -DdownloadSources=true or the equivalent in pom.xml. With open source, you shold always get the source (that also provides the javadocs in the IDE). It doesn't

Re: unit test for dropdownchoice with ajax

2009-02-01 Thread Timo Rantalaiho
the problem, it would be good. Otherwise it's difficult to say what's the problem. Best wishes, Timo -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi/ - To unsubscribe, e-mail: users-unsubscr

Re: How to test Ajax Submit Button on A form

2009-02-01 Thread Timo Rantalaiho
if it fires the submitting behavior. I've thought that FormTester.submit() is just for non-ajax forms. Best wishes, Timo -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi/ - To unsubscribe, e-mail

Re: What are Behaviors in Wicket?

2009-02-01 Thread Timo Rantalaiho
On Sun, 18 Jan 2009, HHB wrote: In easy words, what are Wicket Behaviors? what is their role? See how IBehavior interface is being implemented wicket core and -examples. Best wishes, Timo -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi

Re: ModalWindow gotcha!

2009-02-01 Thread Timo Rantalaiho
a quickstart reproducing the problem if you're interested in finding out more. Adding a ModalWindow in a panel should be OK. Best wishes, Timo -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi

Re: Simulate processing of Page

2009-02-01 Thread Timo Rantalaiho
before (search in Nabble something like rendering the page to a string), and using or getting inspiration from WicketTester might be the path to pursue. Best wishes, Timo -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi

Re: best way to obtain component reference?

2009-02-01 Thread Timo Rantalaiho
() { public Object component(Component component) { component.setDefaultModelObject(Deleted); } }); Best wishes, Timo -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi

Re: Performance question

2009-02-01 Thread Timo Rantalaiho
also thought of fail-fast by making an assertion in a DiskPageStore subclass or some such place that would crash if the size is too big. Best wishes, Timo -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi

Re: AjaxFallbackDefaultDataTable and AjaxLink

2009-02-01 Thread Timo Rantalaiho
?revision=672603view=markup http://www.wicketstuff.org/wicket13/ajax/modal-window.3 It sounds like a strange UI though :) Best wishes, Timo -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi

Re: WicketTester - Problem submitting a form

2009-02-01 Thread Timo Rantalaiho
(LoginPage.class); with tester.starPage(new TestPageSource() { ... }); If you can add a failing quickstart or a patch containing a failing test, it would be great. Best wishes, Timo -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi

Re: [wicket-1.4] Why has ModelT parameter to extend Serializable?

2009-01-20 Thread Timo Rantalaiho
On Tue, 20 Jan 2009, Per Newgro wrote: super(pId, new ModelListMySerializableClass(new ArrayListMySerializableClass())); super(pId, new ListModelMySerializableClass(new ArrayListMySerializableClass())); https://issues.apache.org/jira/browse/WICKET-1745 Best wishes, Timo -- Timo

Re: How to update parent component from a panel?

2009-01-20 Thread Timo Rantalaiho
. Probably it will be in some form in Wicket 1.5. Best wishes, Timo -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi/ - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional

Re: Submitting form via ajax using wicket tester

2009-01-20 Thread Timo Rantalaiho
to get more help. Best wishes, Timo -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi/ - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h

Re: Component with id [[feedback]] a was not found while trying to perform markup update. Make sure you called component.setOutputMarkupId(true) on the component whose markup you are trying to update.

2009-01-14 Thread Timo Rantalaiho
On Mon, 08 Dec 2008, James Carman wrote: I believe you also have to make sure you call setOutputMarkupId(true) so that you make sure wicket spits out the markup id (so that it can select it as part of the Ajax update). setOutputMarkupPlaceholderTag(true) already does that (see its

Re: CheckGroupSelector not working at all in a Wizard

2008-12-16 Thread Timo Rantalaiho
On Fri, 05 Dec 2008, jchappelle wrote: I have followed the example exactly(from what I can see) and when I click my Select All button nothing happens to the other buttons. Here is the code: I've never used CheckGroupSelector, but as you have your CheckBoxes inside a ListView, you should

Re: Creating dynamic forms and sumbit problem

2008-12-16 Thread Timo Rantalaiho
On Sat, 06 Dec 2008, mage wrote: questionsList = new ListView(survey, new PropertyModel(this, survey.questions)) Try questionsList.setReuseItemModels(true); For more help, you should put your code in an executable quickstart. From the email it's too difficult to investigate it

Re: Calling Javascript on AJAX load of panel.

2008-12-16 Thread Timo Rantalaiho
On Sun, 07 Dec 2008, Graeme Knight wrote: 1) Is the header contributor added to the html (this is ajax so there is no page refresh). I think so, just look at the page source e.g. with Firebug? 2) How to call the function in IFrameLoader.js (initializeIFrame()) AFTER the iframe has rendered?

Re: WebMarkupContainer within WebMarkupContainer not updated when Ajax update

2008-12-03 Thread Timo Rantalaiho
an indexed list of ints for your data. As you suggested, I used the WICKET AJAX DEBUG and I was wondering why wmc1 enclosed within component id while wmc2 not: That's because wmc1 was updated and wmc2 is inside it. Best wishes, Timo -- Timo Rantalaiho Reaktor Innovations OyURL

Re: backbutton with AjaxFallbackDefaultDataTable

2008-12-02 Thread Timo Rantalaiho
browser's backbutton then my table is empty until I refresh the browser. How to fix it? I think the reason of above is that after back onRender is not invoked Try disabling all caching with HTTP headers and proper browser settings. Best wishes, Timo -- Timo Rantalaiho Reaktor

Re: Inmethod DataGrid

2008-12-02 Thread Timo Rantalaiho
, but if it has Wicket Ajax behaviours bound to onclick javascript event, probably with wicketTester.executeAjaxEvent(wicketComponentOfRow, onclick); See the DataGrid source code to find out to which components the ajax behaviours are bound. Best wishes, Timo -- Timo Rantalaiho Reaktor

Re: Unable to instantiate Web session class Error:::Wicket1.3.5 Help

2008-12-02 Thread Timo Rantalaiho
that the real problem is wrapped inside the exception whose stack trace you sent. Could you send the whole stack trace please? See AuthenticatedWebApplication source code for more hints, you could put a breakpoint there in newSession and see what exactly is going on. Best wishes, Timo -- Timo

Re: WebMarkupContainer within WebMarkupContainer not updated when Ajax update

2008-12-02 Thread Timo Rantalaiho
. It's also a good exercise as you'll probably solve this issue while preparing the quickstart ;) Best wishes, Timo -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi/ - To unsubscribe, e-mail: [EMAIL

Re: Why can't I initialize PasswordTextField?

2008-12-02 Thread Timo Rantalaiho
rendered by the user agent. http://www.w3.org/TR/html401/interact/forms.html#h-17.4.1 you'll have to bypass the password check for autologin. Best wishes, Timo -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi

Re: updating a page when external event occurs

2008-12-01 Thread Timo Rantalaiho
with Wicket components needs a couple of ThreadLocal variables initialised, the most important of them being the Application (with Application.set() ). But to know how to fix your issue exactly we need more data. WicketSessionFilter might help. Best wishes, Timo -- Timo Rantalaiho

Re: updating a page when external event occurs

2008-12-01 Thread Timo Rantalaiho
would only make the hierarchy change during the request cycle. To be able to do it like you're trying, you would have to emulate request cycle processing in the notify() method (at least set up the Application ThreadLocal), but it doesn't sound as good as the other way. Best wishes, Timo -- Timo

Re: Bug of Wicket when iterate the form using iterator()?

2008-11-28 Thread Timo Rantalaiho
= Arrays.asList((Component[])children); Is it a bug of Wicket? No, I think it's a limitation of Java. You cannnot cast arrays. Best wishes, Timo -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi

Re: DateTimeField and java.util.Calendar

2008-11-28 Thread Timo Rantalaiho
On Thu, 27 Nov 2008, Eduardo Simioni wrote: If you want Wicket to be competitive, you should think about better and centralized documentation. Or better yet write it :) The wiki is centralised and open, everybody is more than welcome to update and improve it. documentation, and definitely

Re: Set format date inline

2008-11-27 Thread Timo Rantalaiho
())); Best wishes, Timo -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Panel as instance variable of parent ?

2008-11-25 Thread Timo Rantalaiho
in the hierarchy is more brittle but I'm not entirely sure what the memory impact (if any) is of storing it as an instance var. The problem is not the memory usage but coupling, which should be reduced by using Component.visitChildren() instead of get(path). Best wishes, Timo -- Timo

Re: browser back button - shouldn't onBeforeRender() execute?

2008-11-18 Thread Timo Rantalaiho
On Mon, 17 Nov 2008, dukehoops wrote: Thanks for your reply. But shouldn't the headers I listed disable caching already? Re-pasting below: Yep, but in the end it's a question of what the browser does. You could experiment with different browser settings. Best wishes, Timo -- Timo Rantalaiho

Re: browser back button - shouldn't onBeforeRender() execute?

2008-11-16 Thread Timo Rantalaiho
brosers on some settings get page A from their cache, in which case the server is not being hit. You might get it to work by adding non-caching HTTP headers on page A. Best wishes, Timo -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi

Re: combining target.addComponent and javascript

2008-11-13 Thread Timo Rantalaiho
problems still, it seems like it's been tried before http://www.google.fi/search?q=wicket+attributemodifier+style+display%3A+noneie=utf-8oe=utf-8aq=trls=com.ubuntu:en-US:unofficialclient=firefox-a Best wishes, Timo -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi

Re: combining target.addComponent and javascript

2008-11-10 Thread Timo Rantalaiho
changePicture visible via Javascript (that manipulates DOM objects), you have to make it invisible but available on the DOM level, i.e. set display: none either in the markup or via Javascript before the fadeIn javascript. It would be interesting to hear a working solution. Best wishes, Timo -- Timo

Re: LoadableDetachableModels with replicated data fed in through constructors.

2008-11-08 Thread Timo Rantalaiho
() (and any custom model should in general do the same). Best wishes, Timo -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail

Re: Design question : accessing components between panels

2008-11-05 Thread Timo Rantalaiho
-1312 and the blog posts referenced in it. There has also been a lot of discussion of these scenarios on this mailing list before, so you could search Nabble on that. Best wishes, Timo -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi

Re: strange error: getter for member

2008-11-05 Thread Timo Rantalaiho
on. Problems like this are fairly common when using (Compound)PropertyModels, and I've found it good to write unit tests from early on to catch them soon. Best wishes, Timo -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi

Re: Testing + IFrame

2008-11-03 Thread Timo Rantalaiho
= selectFirst(Form.class).from(context); If there are more than one Form visible on the page, you have to differentiate a bit more in the visitor and it gets more messy. Best wishes, Timo -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi

Re: Should/Could ServletWebRequest.isAjax be cached?

2008-11-03 Thread Timo Rantalaiho
should be''s and nots Me neither, but luckily it's open source :) Best wishes, Timo -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: How does serialization work?

2008-11-03 Thread Timo Rantalaiho
access them for example with a visitor, if needed, and holding references to them makes it harder to replace them if needed (though it shouldn't be a problem if they won't be replaced). Best wishes, Timo -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi

Re: AjaxFallbackButton and setDefaultFormProcessing(false)

2008-11-03 Thread Timo Rantalaiho
have to do the submit to get the desired username to server for checking, and then react accordingly. You could make uniqueness check a validator and then models do not get updated if the username is not unique. Best wishes, Timo -- Timo Rantalaiho Reaktor Innovations OyURL: http

Re: How does serialization work?

2008-11-03 Thread Timo Rantalaiho
place can be changed with some Wicket setting or by providing a custom pagestore). I remember seeing a presentation by Johan on some of this stuff on slideshare.net . Best wishes, Timo -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi

Re: How does serialization work?

2008-11-03 Thread Timo Rantalaiho
On Mon, 03 Nov 2008, Igor Vaynberg wrote: it doesnt matter if you do this. because the page object is serialized and those components are fields of the page they are serialized only once and further references are replaced with links, this is how serialization works and it preserves proper

Re: Testing + IFrame

2008-11-02 Thread Timo Rantalaiho
try digging your Form up with a visitor to make it less dependent on the path. Best wishes, Timo -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi/ - To unsubscribe, e-mail: [EMAIL PROTECTED

Re: Should/Could ServletWebRequest.isAjax be cached?

2008-11-02 Thread Timo Rantalaiho
). The actual parsing results should be cached by IMarkupCache as far as I know, so if the parsing is really the issue you could try finding out why is the cache not working (and/or provide a reproduceable test case in a quickstart). Best wishes, Timo -- Timo Rantalaiho Reaktor

  1   2   3   4   >