Re: Strange behavior of FormComponentBehavior

2014-12-18 Thread Martin Grigorov
Hi, It looks like org.apache.wicket.markup.html.form.FormComponent#updateModel() is not called for the FormComponentPanel. Usually this happens when there is an error in the validation. But since #onSubmit() is called then the validation should have been passed, otherwise #onError() should have be

Re: Strange behavior of FormComponentBehavior

2014-12-18 Thread andrea del bene
Hi Andreas, what is the type of the model object for "flag" component? I see that inside convertInput is a ImageImpl while inside onSubmit is ImageRef I'm experiencing the strangest behavior with a FormComponentPanel. My custom FormComponentPanel has the following method: @Override

Re: TableTree expand node issue

2014-12-18 Thread Sven Meier
Hi, after serialization/deserialization of the page, Homepage#ROOT_NODE is no longer equal to the node passed to your treeProvider's #hasChildren() - thus the expand link is no longer enabled. There are different solutions to this problem, e.g. implementing #equals and #hashcode in HomePage.

Re: submenu in NavbarDropDownButton

2014-12-18 Thread Martin Grigorov
Hi, Yes, you can. But in this case instead of playing with #onComponentTagBody() it would be better to use an hierarchly like: Link - Image - Label The HTML markup would look like: Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Wed, Dec 17, 2014 at 6:14

Re: About BasePage's BrandName setting

2014-12-18 Thread Martin Grigorov
Hi, class BasePage { @Override protected void onInitialize() {super.onInitialize(); add(brandLink("brandLink"))} protected abstract AbstractLink brandLink(String id); } class BasePage1 extend BasePage { ... protected BookmarkablePageLink brandLink(String id) {return new BookmarkablePage

Title tab in Tabbedpanel

2014-12-18 Thread K
Hi i am workin with tabbedpanel in wicket. i have created a tabbedpanel for my search page My requirement is to create a tabbedpanel of three tabs with title. i am using additional tab (Dummytab in this case) to compensiate

Re: Title tab in Tabbedpanel

2014-12-18 Thread Sven Meier
Hi, use a disabled tab: http://apache-wicket.1842946.n4.nabble.com/AjaxTabbedPanel-Enable-Disable-Individual-Tab-td4380339.html Regards Sven On 18.12.2014 10:57, K wrote: Hi i am workin with tabbedpanel in wicket. i have created a tabbedpanel for my search page

wicket framework and "clickjacking" risk

2014-12-18 Thread lucast
Dear Forum, I recently ran metasploit on my wicket 6 appilcation and one of the vulnerabilities found was " clickjacking " A quick search on google suggested a couple of solution for Java EE appli

initModel and 'compound' components only

2014-12-18 Thread Sebastien
Hi all, I often use #initModel in my pages because I find it very convenient in many usecase... Actually there is an issue in a certain scenario: let's say #initModel is supposed to return a CompoundPropertyModel. So I am free to explicitly *not* provide the model to the component that consume th

Synchonization problems? (Cannot modify component hierarchy after render phase has started)

2014-12-18 Thread Daniel Stoch
Hi, Is it possible that there is some issue with simultaneous access to a page by different threads using wicket-atmosphere integration? From time to time, when system send many server events to page, such error can occurs - in onConfigure method I call setVisible on some children components: org

Re: initModel and 'compound' components only

2014-12-18 Thread Sven Meier
Hi Sebastien, this topic was discussed before: When searching parental components for a IComponentInheritedModel, #initModel() is skipped to prevent unnecessary creation of intermediate models. See the comment on line 3788 ff: https://github.com/apache/wicket/blob/master/wicket-core/src/main/

RE: TableTree expand node issue

2014-12-18 Thread Colin Rogers
Sven, Thanks - that's really obvious now you mention it - thanks for the heads up, and sorry for being stupid. :) Back to the drawing board :) Cheers, Col. From: Sven Meier [s...@meiers.net] Sent: 18 December 2014 20:51 To: users@wicket.apache.org Subjec