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." -- Inject

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 unsu

Re: wicket tests enabled

2009-03-29 Thread Timo Rantalaiho
()); Best wishes, Timo -- Timo Rantalaiho Reaktor Innovations Oyhttp://www.ri.fi/ > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

Re: Mocking input data while testing Panel

2009-03-29 Thread Timo Rantalaiho
setAjax(true); wicket.executeAjaxEvent(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

Re: Wicket Meetup Tonight in Amsterdam!

2009-03-25 Thread Timo Rantalaiho
Phew, thankyou to everybody for yesterday! Unfortunately I had to fade already before eleven -- somehow it was _really_ about time for me to get dinner at that moment, after having been standing and talking and listening ever since ten in the morning :) In case you missed it, all material of our

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 IModel bound to each role so that they would do @Override public Boolean getObject() { return user.hasRo

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 ima

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,

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 sou

Re: VOTE: Remove ? extends from constructor of DropDownChoice

2009-03-03 Thread Timo Rantalaiho
On Tue, 03 Mar 2009, walnutmon wrote: > It seems that the drop down should at least be able to take a ListModel, > but that doesn't work either... I think that there's also a convenience model called something like Wildcard*Model for the wildcarded case. Best wishes, Timo -

Re: [vote] In Wicket 1.4 and onwards, remove widening from the list of choices model in DropDownChoice, changing it from IModel> to IModel>

2009-03-03 Thread Timo Rantalaiho
gn them with each other. So far there have only been a couple of -1s, so maybe that will happen. Best wishes, Timo -- Timo Rantalaiho Reaktor Innovations Oyhttp://www.ri.fi/ > - To unsubscribe, e-mail: user

Re: [vote] In Wicket 1.4 and onwards, remove widening from the list of choices model in DropDownChoice, changing it from IModel> to IModel>

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

[vote] In Wicket 1.4 and onwards, remove widening from the list of choices model in DropDownChoice, changing it from IModel> to IModel>

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

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

Re: NPE thrown from CheckBoxMultipleChoice when submitting a form.

2009-02-25 Thread Timo Rantalaiho
g null. Put a breakpoint to Form.process() and debug to see why that happens. You 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 Oyhttp://www.ri.fi/ > -

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

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 -- Tim

Re: LDM with Generics for DropDownChoice

2009-02-24 Thread Timo Rantalaiho
ill do if there are no objections or better ideas. Best wishes, Timo -- Timo Rantalaiho Reaktor Innovations Oyhttp://www.ri.fi/ > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

Re: LDM with Generics for DropDownChoice

2009-02-22 Thread Timo Rantalaiho
quot;? extends" thing 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 Oyhttp://www.ri.fi/ > -

Re: Feedback message isn't displayed

2009-02-22 Thread Timo Rantalaiho
s error message 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 Inno

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

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 actual

Re: Drop Down Box - Ajax Behaviour

2009-02-18 Thread Timo Rantalaiho
On Thu, 19 Feb 2009, Timo Rantalaiho wrote: > AjaxFormComponentUpdatingBehavior does not submit the whole > form -- for that you need to use some *submitting*behavior. Ah, now I saw that you had probably tried that? It's pretty hard to investigate what's going on -- you cou

Re: Drop Down Box - Ajax Behaviour

2009-02-18 Thread Timo Rantalaiho
havior does not submit the whole form -- for that you need to use some *submitting*behavior. Look at the source code of the different Ajax*Form*Behavior to see better what they do. Best wishes, Timo -- Timo Rantalaiho Reaktor Innovations Oyhttp://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 wicket-e

Re: FormTester.setValue accepting invalid component id's

2009-02-18 Thread Timo Rantalaiho
isableable 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 Oyhttp://www.ri.fi/ > --

Re: inmethod datagrid, validation, and feedback

2009-02-15 Thread Timo Rantalaiho
dback = new FeedbackPanel("feedback") .setOutputMarkupPlaceHolder(true); add(feedback); ... @Override protected void onSubmit(AjaxRequestTarget target) { target.addComponent(feedback); ... } Best wishes, Timo -- Timo Rantalaiho Reaktor Innovations O

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 c

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 o

Re: Intellij Idea Plugin Bounty

2009-02-13 Thread Timo Rantalaiho
lns:wicket="http://wicket.apache.org/dtds.data/wicket-xhtml1.4-strict.dtd"; xml:lang="en" lang="en"> If you have better ideas, they are most welcome. Best wishes, Timo -- Timo Rantalaiho

Re: create custom feedback panel list

2009-02-13 Thread Timo Rantalaiho
filter) { super(id, filter); } } KoolFeedbackPanel.html: A message Best wishes, Timo -- Timo Rantalaiho Reaktor Innovations Oyhttp://www.ri.fi/ > - To unsubscribe, e-ma

Re: Checkbox OnChangeAjaxBehavior with defaultFormProcessing=false??

2009-02-13 Thread Timo Rantalaiho
it purely on the client side -- 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 th

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: Wicket meetup in Amsterdam news

2009-02-12 Thread Timo Rantalaiho
(arriving on Monday evening) I suppose that Tuesday would fit better. Best wishes, Timo -- Timo Rantalaiho Reaktor Innovations Oyhttp://www.ri.fi/ > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For

Re: Testing DataView

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

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 pro

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

2009-02-10 Thread Timo Rantalaiho
t session than the original one. > on the other hand my transaction 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 Ra

Re: Problem with WebRequestCodingStrategy's and mobile phones

2009-02-10 Thread Timo Rantalaiho
r's drop by about 20% - 50% 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

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 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 presume i

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 [class=or

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: Why Wicket application contains maven-jetty-plugin?

2009-02-08 Thread Timo Rantalaiho
than "real" 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 Innovati

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: 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 Wed

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 Re

Re: Testing DataView

2009-02-08 Thread Timo Rantalaiho
already gets its data on when it's first constructed and "started" by WicketTester, it should be rendered and the Items should be there. Best wishes, Timo -- Timo Rantalaiho Reaktor Innovations Oyhttp://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 Mar

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

2009-02-05 Thread Timo Rantalaiho
or something it calls). 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 Oyh

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 --

Re: Testing DataView

2009-02-05 Thread Timo Rantalaiho
u'd like to test? 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 O

Re: FormTester doesn't call the submit method

2009-02-05 Thread Timo Rantalaiho
;buttonId"); If it doesn't work, please post some code. Best wishes, Timo -- Timo Rantalaiho Reaktor Innovations Oyhttp://www.ri.fi/ > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org

Re: A doubt regarding "best-practices"

2009-02-05 Thread Timo Rantalaiho
On Thu, 05 Feb 2009, Daniel Ferreira Castro wrote: > I think, in my opinion, that the approach of declaring the Form as an inner > class makes the code more "dirty". I mean, the Page class grows a lot and > by inspecting the code is hard to understand at a first glance the scope of > each entity a

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

Re: How to stop submit of form on AjaxSubmitLink onSubmit

2009-02-04 Thread Timo Rantalaiho
27;s an AbstractSubmitLink 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,

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 Oyhttp://www.ri.fi/ > -

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

2009-02-03 Thread Timo Rantalaiho
ldren(ExpandCollapseListener.class, new IVisitor() { ... }); (For visitChildern(), you can supply a type of the Components you want to visit directly) Best wishes, Timo -- Timo Rantalaiho Reaktor Innovations Oyhttp://www.ri.fi/ > --

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

2009-02-03 Thread Timo Rantalaiho
know much about this XML stuff :) Cheers, Timo -- Timo Rantalaiho Reaktor Innovations Oyhttp://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
ishes, Timo -- Timo Rantalaiho Reaktor Innovations Oyhttp://www.ri.fi/ > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

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

2009-02-02 Thread Timo Rantalaiho
/dtds.data/wicket-xhtml1.4-strict.dtd Best wishes, Timo -- Timo Rantalaiho Reaktor Innovations Oyhttp://www.ri.fi/ > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

Re: WicketTester - Problem submitting a form

2009-02-01 Thread Timo Rantalaiho
u could still try replacing > > tester.startPage(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 I

Re: AjaxFallbackDefaultDataTable and AjaxLink

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

Re: Render other components

2009-02-01 Thread Timo Rantalaiho
peaters, and if you hold references directly to components they might get stale. Best wishes, Timo -- Timo Rantalaiho Reaktor Innovations Oyhttp://www.ri.fi/ > - To unsubscribe, e-mail: users-unsubscr...@wic

Re: Performance question

2009-02-01 Thread Timo Rantalaiho
memory. I've 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 Oyhttp:

Re: best way to obtain component reference?

2009-02-01 Thread Timo Rantalaiho
.get("message").replaceWith(lbl); getPage().visitChildren(StatusMessage.class, new IVisitor() { public Object component(Component component) { component.setDefaultModelObject("Deleted

Re: Simulate processing of Page

2009-02-01 Thread Timo Rantalaiho
ed on the list 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 Oyhttp://

Re: ModalWindow gotcha!

2009-02-01 Thread Timo Rantalaiho
have been elsewhere. Please send 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 Innovati

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 Oyhttp://www.ri

Re: How to test Ajax Submit Button on A form

2009-02-01 Thread Timo Rantalaiho
submit directly with executeAjaxEvent 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 Oyhttp://www.ri.fi/ > ---

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 Oyhttp://www.ri.fi/ > - To unsubscribe, e-mail

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: brainstorming

2009-02-01 Thread Timo Rantalaiho
l refactoring is pretty safe to do in the end. That being said, of course more IDE support would be nice! Best wishes, Timo -- Timo Rantalaiho Reaktor Innovations Oyhttp://www.ri.fi/ > - To unsubscribe,

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 Oyhttp://www

Re: Submitting form via ajax using wicket tester

2009-01-20 Thread Timo Rantalaiho
executeAjaxEvent should work. You should show more code to get more help. Best wishes, Timo -- Timo Rantalaiho Reaktor Innovations Oyhttp://www.ri.fi/ > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache

Re: How to update parent component from a panel?

2009-01-20 Thread Timo Rantalaiho
attached to the Jira issue. Probably it will be in some form in Wicket 1.5. Best wishes, Timo -- Timo Rantalaiho Reaktor Innovations Oyhttp://www.ri.fi/ > - To unsubscribe, e-mail: users-unsubscr...@wicket.a

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

2009-01-20 Thread Timo Rantalaiho
On Tue, 20 Jan 2009, Per Newgro wrote: >super(pId, new Model>(new > ArrayList())); super(pId, new ListModel(new ArrayList())); https://issues.apache.org/jira/browse/WICKET-1745 Best wishes, Timo -- Timo Rantalaiho Reaktor Innovations Oyhttp://

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 implementa

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

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 rendere

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 pro

Re: WebMarkupContainer within WebMarkupContainer not updated when Ajax update

2008-12-03 Thread Timo Rantalaiho
an 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 In

Re: Why can't I initialize PasswordTextField?

2008-12-02 Thread Timo Rantalaiho
the text 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 O

Re: WebMarkupContainer within WebMarkupContainer not updated when Ajax update

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

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

2008-12-02 Thread Timo Rantalaiho
bjects.fme.FMEWebSession(org.apache.wicket.Request) and is it public? Best wishes, Timo -- Timo Rantalaiho Reaktor Innovations Oyhttp://www.ri.fi/ > - To unsubscribe, e-mail: [EMAIL PROTECTED] For

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

2008-12-02 Thread Timo Rantalaiho
s going on. Best wishes, Timo -- Timo Rantalaiho Reaktor Innovations Oyhttp://www.ri.fi/ > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Inmethod DataGrid

2008-12-02 Thread Timo Rantalaiho
not familiar with DataGrid, 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

Re: backbutton with AjaxFallbackDefaultDataTable

2008-12-02 Thread Timo Rantalaiho
e and after redirect I click 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. Be

Re: updating a page when external event occurs

2008-12-01 Thread Timo Rantalaiho
Best wishes, Timo -- Timo Rantalaiho Reaktor Innovations Oyhttp://www.ri.fi/ > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: updating a page when external event occurs

2008-12-01 Thread Timo Rantalaiho
t thread Just about everything that you do 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 wi

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 s

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

2008-11-28 Thread Timo Rantalaiho
MarkupContainer.java is: > sorted = 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 Reak

Re: Set format date "inline"

2008-11-27 Thread Timo Rantalaiho
component with what you can do add(new DateLabel("someDate").setDateConverter(new FooDateConverter())); Best wishes, Timo -- Timo Rantalaiho Reaktor Innovations Oyhttp://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
ng get(path). The look up 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(pa

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

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

2008-11-16 Thread Timo Rantalaiho
behaviour depends on the browser caching behaviour. Some 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

Re: combining target.addComponent and javascript

2008-11-13 Thread Timo Rantalaiho
it's not visible to the browser. This might have some problems still, it seems like it's been tried before http://www.google.fi/search?q=wicket+attributemodifier+style+display%3A+none&ie=utf-8&oe=utf-8&aq=t&rls=com.ubuntu:en-US:unofficial&client=firefox-a Best

Re: combining target.addComponent and javascript

2008-11-10 Thread Timo Rantalaiho
he markup or via Javascript before the fadeIn javascript. It would be interesting to hear a working solution. Best wishes, Timo -- Timo Rantalaiho Reaktor Innovations Oyhttp://www.ri.fi/ > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: LoadableDetachableModels with replicated data fed in through constructors.

2008-11-08 Thread Timo Rantalaiho
come with Wicket also detach their wrapped models in their own detach() (and any custom model should in general do the same). Best wishes, Timo -- Timo Rantalaiho Reaktor Innovations Oyhttp://www.ri.fi/ > - To

Re: strange error: getter for member

2008-11-05 Thread Timo Rantalaiho
ith your code it's easier for us to see what's going 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 -- Ti

Re: Design question : accessing components between panels

2008-11-05 Thread Timo Rantalaiho
pache.org/jira/browse/WICKET-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 O

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

  1   2   3   4   5   >