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

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

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

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:

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 mark.willi...@power-oasis.com 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.

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

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:

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 mark.willi...@power-oasis.com 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

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:

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

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:

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

Re: getChoices from ListMultipleChoice

2012-07-23 Thread Thomas Matthijs
On Mon, Jul 23, 2012 at 3:53 PM, cosmindumy cosmind...@yahoo.com 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 Martin Grigorov
getModel(Object) On Mon, Jul 23, 2012 at 4:53 PM, cosmindumy cosmind...@yahoo.com 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

Re: getChoices from ListMultipleChoice

2012-07-23 Thread Igor Vaynberg
(Collection)getModelObject() -igor On Mon, Jul 23, 2012 at 4:53 PM, cosmindumy cosmind...@yahoo.com 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

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:

Re: getChoices from ListMultipleChoice

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

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

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-

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 ?

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.

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

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.

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

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

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: