Re: I think it's time for a new book.... Igor and Co ?

2012-07-23 Thread Martin Grigorov
Hi, You can create tickets in our Jira with attached patches if you don't know how to use GitHub or you don't want to use it. If you want to try GitHub: 1) create an account at GitHub (https://github.com/) 2) go to https://github.com/apache/wicket and click the "Fork" button 3) clone the fork loc

Re: wicket tree + wiquery ajax draggable + droppable behavior

2012-07-23 Thread Chris Turchin
to get this to work, we ended up having to refresh the entire tree component when the children of a node are loaded, kinda defeating the purpose of the ajax lazy loading. otherwise, the subnodes are not droppable targets in the DOM. still open to better more jq/wiquery-like approach if someone has

Re: Class that extends AjaxTabbedPanel does not remember selected panel on page refresh

2012-07-23 Thread sardo
lol. Yes we are indeed tinkering with the custom request mappers. I removed some code from the code sample above thinking at the time that it wasn't relevant. Here's the full code (not sure if it helps with the investigation of the problem or not but since you mentioned it I'll include it anyway):

Re: Class that extends AjaxTabbedPanel does not remember selected panel on page refresh

2012-07-23 Thread sardo
BTW. The application has been ported from Wicket 1.4 to 1.5, and it did this in 1.4 too. So maybe the request mapping stuff isn't an issue... -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Class-that-extends-AjaxTabbedPanel-does-not-remember-selected-panel-on-pag

Re: Class that extends AjaxTabbedPanel does not remember selected panel on page refresh

2012-07-23 Thread Martin Grigorov
On Mon, Jul 23, 2012 at 11:35 AM, sardo wrote: > > > BTW. The application has been ported from Wicket 1.4 to 1.5, and it did this > in 1.4 too. So maybe the request mapping stuff isn't an issue... I think it is the issue. Remove NoVersionMapper temporarily and see. > > > > -- > View this messag

Re: Class that extends AjaxTabbedPanel does not remember selected panel on page refresh

2012-07-23 Thread sardo
Good shout Martin that is the problem. I changed it to the following and now it's working: mountPage("/home", HomePage.class); You know what's coming next don't you...I've now changed the behavior of the url so it's now: http://localhost:8080/myApp/home?3 Am I stuck with this or is there

Re: Class that extends AjaxTabbedPanel does not remember selected panel on page refresh

2012-07-23 Thread Martin Grigorov
The pageId is for a reason in the url. Without it Wicket doesn't know which page contains the component (in your case the AjaxTabbedPanel) and recreates a new page instance, thus recreates the component too and all your state is lost. The best way to remove the pageId is to make your page stateles

Re: Class that extends AjaxTabbedPanel does not remember selected panel on page refresh

2012-07-23 Thread sardo
OK thanks Martin. I'll have to raise this as an issue with my management, as it may have knock on affects. It's a shame the state has to be maintained by parameters in the url. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Class-that-extends-AjaxTabbedPanel-does-

Re: Class that extends AjaxTabbedPanel does not remember selected panel on page refresh

2012-07-23 Thread Martin Grigorov
On Mon, Jul 23, 2012 at 12:25 PM, sardo wrote: > > > OK thanks Martin. I'll have to raise this as an issue with my management, as > it may have knock on affects. It's a shame the state has to be maintained by > parameters in the url. Either suggest something or don't whine ;-) > > > > -- > View

Re: Class that extends AjaxTabbedPanel does not remember selected panel on page refresh

2012-07-23 Thread sardo
I think I did suggest something, "It's a shame the state has to be maintained by parameters in the url". You are the people responsible for the Wicket code I'm a customer...oh how annoying customers can be ;-) -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Class-

Re: Class that extends AjaxTabbedPanel does not remember selected panel on page refresh

2012-07-23 Thread Martin Grigorov
On Mon, Jul 23, 2012 at 12:45 PM, sardo wrote: > > > I think I did suggest something, "It's a shame the state has to be > maintained by parameters in the url". You are the people responsible for the > Wicket code I'm a customer...oh how annoying customers can be ;-) For the budget your company ga

Re: Class that extends AjaxTabbedPanel does not remember selected panel on page refresh

2012-07-23 Thread sardo
Lucky for us there are plenty of others who would charge us the same :-) -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Class-that-extends-AjaxTabbedPanel-does-not-remember-selected-panel-on-page-refresh-tp4650642p4650720.html Sent from the Users forum mailing list

Re: Wicket jQuery Validator integration

2012-07-23 Thread kbhuvi07
Hi, I am more interested to know about 'Wicket jQuery Validator integration' . Could you please post some more information with example. That would be really great! Thanks in advance! :) -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-jQuery-Validator-integ

getChoices from ListMultipleChoice

2012-07-23 Thread cosmindumy
Hi, I'm trying to get the selected options from a ListMultipleChoice but didn't find a method to get a collection of selected options. I'm using the getValue method that return a String of choices separated by ; but I'm sure is not right. What method should I use? Thanks. -- View this messag

Re: getChoices from ListMultipleChoice

2012-07-23 Thread Thomas Matthijs
On Mon, Jul 23, 2012 at 3:53 PM, cosmindumy wrote: > Hi, > I'm trying to get the selected options from a ListMultipleChoice but didn't > find a method to get a collection of selected options. > I'm using the getValue method that return a String of choices separated by ; > but I'm sure is not right

Re: getChoices from ListMultipleChoice

2012-07-23 Thread Martin Grigorov
getModel(Object) On Mon, Jul 23, 2012 at 4:53 PM, cosmindumy wrote: > Hi, > I'm trying to get the selected options from a ListMultipleChoice but didn't > find a method to get a collection of selected options. > I'm using the getValue method that return a String of choices separated by ; > but I'm

Re: getChoices from ListMultipleChoice

2012-07-23 Thread Igor Vaynberg
(Collection)getModelObject() -igor On Mon, Jul 23, 2012 at 4:53 PM, cosmindumy wrote: > Hi, > I'm trying to get the selected options from a ListMultipleChoice but didn't > find a method to get a collection of selected options. > I'm using the getValue method that return a String of choices separ

Re: getChoices from ListMultipleChoice

2012-07-23 Thread cosmindumy
Hi again, Sorry. I forgot to say that I tried this and I get null. I thing we change something in our framework and the wicket doesn't handle properly the multiple choice. Does anyone has an idea what can be? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/getChoi

Re: getChoices from ListMultipleChoice

2012-07-23 Thread Igor Vaynberg
:/ -igor On Mon, Jul 23, 2012 at 4:56 PM, Martin Grigorov wrote: > getModel(Object) > > On Mon, Jul 23, 2012 at 4:53 PM, cosmindumy wrote: >> Hi, >> I'm trying to get the selected options from a ListMultipleChoice but didn't >> find a method to get a collection of selected options. >> I'm using

Re: Wicket Layout Design

2012-07-23 Thread Jesse Long
On 19/07/2012 17:01, divad91 wrote: Hi, I am new to Wicket. I'm working on a multi province web application. The goal is to use the same web application for all provinces. CSS and some business logic will differ for each province. I want to know the best ways to instantiate my layout components

Re: Wicket Layout Design

2012-07-23 Thread divad91
Thanks Jesse for your reply. The only drawback of this method is that I will need to override theses 3 methods (createNewHeader, createNewFooter...) in all pages that extends "BasePage.java".Ideally I would like to avoid copying code but I think it's the cleaner way to override layout components.

RE: Wicket Layout Design

2012-07-23 Thread Paul Bors
You can try using a TransparentWebMarkupContainer so that you won't always have to add them to the page hierarchy and only override your factory methods when you need to. For a code-snippet example see this thread: http://apache-wicket.1842946.n4.nabble.com/1-5-6-0-dynamically-named-CSS-JS- amp-im

RE: I think it's time for a new book.... Igor and Co ?

2012-07-23 Thread Paul Bors
Thanks Martin, That's quite helpful, I'll sign up today :) ~ Thank you, Paul Bors -Original Message- From: Martin Grigorov [mailto:mgrigo...@apache.org] Sent: Monday, July 23, 2012 3:15 AM To: users@wicket.apache.org Subject: Re: I think it's time for a new book Igor and Co ? Hi,

wicket:treetable with checkbox column

2012-07-23 Thread lxw_first
Hello, I have a treetable with two column.one column is PropertyTreeColumn,other column is CheckColumn,similar with the PropertyTreeColumn.After I selected or not selected checkbox in the treetable,i clicked button,then save all the checkbox value.But now i don't know how to get checkbox value. C

Re: wicket:treetable with checkbox column

2012-07-23 Thread Sven Meier
Are you using CheckGroup/Check or Checkbox? Sven On 07/23/2012 07:28 PM, lxw_first wrote: Hello, I have a treetable with two column.one column is PropertyTreeColumn,other column is CheckColumn,similar with the PropertyTreeColumn.After I selected or not selected checkbox in the treetable,i clic

JCrop integration for wicket

2012-07-23 Thread procrastinative.developer
Hello, If anyone want to use Jcrop (http://deepliquid.com/content/Jcrop.html - Image cropping tool written in Js) with wicket application please try my first standalone component: https://github.com/procrastinativedeveloper/jcrop-wicket-integration This project is based on wicket6-beta3. Exampl

Re: JCrop integration for wicket

2012-07-23 Thread procrastinative.developer
I forgot mention that I based my work on https://code.google.com/p/londonwicket/source/browse/trunk/Apps/Gallery/src/main/java/org/londonwicket/cropper/CroppableImage.java (very good code) Funniest thing is that I wrote this component in 2 days and next 2 days I fought with IE issues :). Code w

Re: wicket:treetable with checkbox column

2012-07-23 Thread lxw_first
checkbox. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/wicket-treetable-with-checkbox-column-tp4650737p4650743.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe,

Re: wicket:treetable with checkbox column

2012-07-23 Thread Sven Meier
Each checkbox writes a boolean into your tree's node. You'll have to loop through all nodes and check which one has its property set. If that's to tedious for you, you should use CheckGroup/Check. See FormInput in wicket-examples. Sven -- View this message in context: http://apache-wicket.184

Re: getChoices from ListMultipleChoice

2012-07-23 Thread cosmindumy
Hi, Just tried at home and still get null on getModelObject(). Here is the complete code: http://shorttext.com/oSTpzOm Thanks. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/getChoices-from-ListMultipleChoice-tp4650725p4650745.html Sent from the Users forum mail

Re: getChoices from ListMultipleChoice

2012-07-23 Thread Igor Vaynberg
AjaxLink does not submit the form. use AjaxButton instead. also, you need to give the dropdownchoice a model (somewhere to store the value)...see form examples. -igor On Tue, Jul 24, 2012 at 9:20 AM, cosmindumy wrote: > Hi, > Just tried at home and still get null on getModelObject(). > Here is

Re: Unable to use wicket tester to simulate ajax behavior

2012-07-23 Thread Giovanni Cuccu
Hi, sorry for the late response. Should I file a bug for this? Thanks, Giovanni Il 11/07/12 15.13, Giovanni Cuccu ha scritto: Hi Martin, I did the change you suggested but the test fails with esame error: junit.framework.AssertionFailedError: expect no error message, but contains

Re: DropDownChoice Default Value

2012-07-23 Thread David Hosier
I think it's likely because your KeyValue class does not implement equals. Your defaultValue has its own new instance of KeyValue that contains the key JAVA and the value java. Your defaultValue instance and what you think is the same instance in your list are not the same unless you correctly i

Re: DropDownChoice Default Value

2012-07-23 Thread David Hosier
Aww, crap. I see it was already answered in a different thread….or something that showed up under a different thread in my mail reader at least. Sorry for the noise. On Monday, July 23, 2012 at 11:46 PM, David Hosier wrote: > I think it's likely because your KeyValue class does not implement