DropDownChoice does not push value into Model

2010-08-13 Thread nivs
Hi All, http://apache-wicket.1842946.n4.nabble.com/file/n2323809/Code.txt Code.txt I have a drop down choice control on the search panel and its selected choices are pushed to the model only once or the first time. Please have a look at the attached code: As part of this code, I noticed

Re: Wicket 1.5-M1 and DropDownChoice wantOnSelectionChanged

2010-08-13 Thread Igor Vaynberg
can you create a quickstart that reproduces this? -igor 2010/8/12 Major Péter majorpe...@sch.bme.hu: Hi, I'm getting weird error, while using DDC wantOnSelectionChanged like this:

Re: Wicket 1.5-M1 causing IllegalStateException

2010-08-13 Thread Igor Vaynberg
2010/8/12 Major Péter majorpe...@sch.bme.hu: Hi, I have a page with the ~following markup: form  table (DataView)  tra href=link //tr  /table /form The link is constructed like: Link valuationLink = new Link(valuationLink) {   �...@override    public void onClick() {        

Re: Wicket 1.5-M1 causing IllegalStateException

2010-08-13 Thread Martin Grigorov
The breakpoint should be at: org.apache.wicket.request.http.handler.RedirectRequestHandler.respond(IRequestCycle) (wicket-request project) On Fri, Aug 13, 2010 at 9:54 AM, Igor Vaynberg igor.vaynb...@gmail.comwrote: 2010/8/12 Major Péter majorpe...@sch.bme.hu: Hi, I have a page with the

overriding newRowItem() in AjaxFallbackDefaultDataTable

2010-08-13 Thread Josh Kamau
Hi Somebody please help me with a sample code on how to override the newRowItem method of the AjaxFallbackDefaultDataTable I would like to display some of the columns as links . is this the way to do it? regards. Josh

RE: overriding newRowItem() in AjaxFallbackDefaultDataTable

2010-08-13 Thread Bodis, Jerome
Somebody please help me with a sample code on how to override the newRowItem method of the AjaxFallbackDefaultDataTable _dbsTable = new AjaxFallbackDefaultDataTableDnsDomainBuildingSubnet(dbsTable, dbsColumns, dbsProvider, 20) { // add a tooltip to each

Re: overriding newRowItem() in AjaxFallbackDefaultDataTable

2010-08-13 Thread Josh Kamau
Thanks Jerome. What i want is to make the data in the cells clickable so that users can use them to drill down. For example, one column displays invoice numbers. I want the invoice number displayed to be a link so that a user can click it to open the invoice details page. I thought i would do so

getPage() Question

2010-08-13 Thread Thierry Peng
Hi I have a Singlepage Application where I swap some panels on the main page depending what the user does. Specifically I have a Panel for changing the password which looks like: @SuppressWarnings(serial) public class ChangePasswordPanel extends Panel { @Inject private

Re: overriding newRowItem() in AjaxFallbackDefaultDataTable

2010-08-13 Thread Ernesto Reinaldo Barreiro
Josh, You could do something similar to the following example: columns.add(new PropertyColumnBroker(new ResourceModel(code), codigo, codigo) { private static final long serialVersionUID = 1L;

Re: Wicket 1.5-M1 causing IllegalStateException

2010-08-13 Thread Major Péter
Hi, thanks for the tip, but that had nothing to do with your breakpoint. Stay tuned, EPIC bug: The problem was basically, that the linked Page contained a not 1.5-M1 compatible TinyMCE component, which used old version of ResourceReference. My Page class couldn't be loaded, since there was a

RE: overriding newRowItem() in AjaxFallbackDefaultDataTable

2010-08-13 Thread Bodis, Jerome
Just create a panel that holds you links/buttons or whatever and that is loaded with your invoice model. The panel could have a link with your invoice number and in the onClick/onSubmit method you trigger a redirect to your details page or something like this. Take a look at the wicket

Re: Wicket 1.5-M1 causing IllegalStateException

2010-08-13 Thread Major Péter
A better handling would be maybe in ServletWebResponse#sendRedirect to check whether redirect is already null, and throw a nice I mean true, not null.. wicketruntimeexception instead. (or find out, how could I have two sendredirectaction) or both Regards, Peter

Re: getPage() Question

2010-08-13 Thread Thierry Peng
I figured it out. For who is interested: The first getPage().addOrReplace replaced the middlepanel which was also the current changepasswordpanel. The second call on getParent() can only yield null because the panel in question was already swapped. So there are two valid solutions: first

Re: overriding newRowItem() in AjaxFallbackDefaultDataTable

2010-08-13 Thread Josh Kamau
I understand it now. Thanks for your assistance On Fri, Aug 13, 2010 at 1:36 PM, Bodis, Jerome bo...@uni-mainz.de wrote: Just create a panel that holds you links/buttons or whatever and that is loaded with your invoice model. The panel could have a link with your invoice number and in the

Re: DropDownChoice does not push value into Model

2010-08-13 Thread James Carman
Your DDC is bound to the original StudyModel's study with the lines: PropertyModel propertyModel = new PropertyModel(studyModel.getStudy(),Constants.STUDY_STATUS); studyStatusDpChoices = new DropDownChoice(Constants.STUDY_DROP_DOWN_CHOICE,propertyModel,studyStatusList,defaultChoiceRenderer);

Re: DropDownChoice does not push value into Model

2010-08-13 Thread nivs
James Thanks for pointing it out. Later in the code I have added, so the study object/instance in the initial model should be in synch right? Correct me if I am wrong. Let me also think about this point u made. But yeah do let me know if i have made a mistake. cpm =

wicket-extensions alive?

2010-08-13 Thread gnugrf
I had added wicket-extensions to my pom.xml, because I was planning on making use of DataTable and DefaultDataTable, however, I hadn't yet added any code that would require the dependency. Made a couple changes to my project over the weekend, and went to recompile and tomcat wouldnt start.

General question - business logic with Wicket, where to put it?

2010-08-13 Thread Brown, Berlin [GCG-PFS]
What is the best practice for where to put business logic in Wicket. At first, I had put logic in the page constructor, but now I have learned a little bit about the Lifecycle of a page, the serialization of the page. So putting any kind of logic there didn't seem like a good idea. I placed

Re: wicket-extensions alive?

2010-08-13 Thread Igor Vaynberg
extensions is alive and well, use it every day. -igor On Fri, Aug 13, 2010 at 1:34 PM, gnugrf gnu...@sdf.lonestar.org wrote: I had added wicket-extensions to my pom.xml, because I was planning on making use of DataTable and DefaultDataTable, however, I hadn't yet added any code that would

Re: wicket-extensions alive?

2010-08-13 Thread James Carman
That's not a wicket class. You're missing commons-collections.jar On Aug 13, 2010 4:34 PM, gnugrf gnu...@sdf.lonestar.org wrote: I had added wicket-extensions to my pom.xml, because I was planning on making use of DataTable and DefaultDataTable, however, I hadn't yet added any code that

How to add Scroll to tabpanel

2010-08-13 Thread arunarapole
Hi Is any one knows how to add scrollbar to tabpanel in wicket i have a dataview under tabpanel ,i have to add scrollbar to that panel if any idea please share with me Thanks Aruna -- View this message in context:

Re: How to add Scroll to tabpanel

2010-08-13 Thread Jeremy Thomerson
CSS? overflow? -- Jeremy Thomerson http://www.wickettraining.com On Fri, Aug 13, 2010 at 5:15 PM, arunarapole arunakumm...@gmail.com wrote: Hi Is any one knows how to add scrollbar to tabpanel in wicket i have a dataview under tabpanel ,i have to add scrollbar to that panel if any

Re: wicket-extensions alive?

2010-08-13 Thread gnugrf
Yeah I noticed that when I checked the maven repo that it required commons-collections, so I tried adding version 3.2.1. I ended up with the following error: java.lang.ClassCastException: wicket.extensions.Initializer cannot be cast to org.apache.wicket.IInitializer The maven repo stated that

Re: wicket-extensions alive?

2010-08-13 Thread Igor Vaynberg
extensions version should be the same as wicket, so unless you are using wicket-1.2.7 you are using the wrong version. -igor On Fri, Aug 13, 2010 at 5:09 PM, gnugrf gnu...@sdf.lonestar.org wrote: Yeah I noticed that when I checked the maven repo that it required commons-collections, so I

Re: Testing modal window

2010-08-13 Thread Kent Tong
Hi Anna, I am trying to write a test case to test that the parent page gets updated with new values once the modal window closes. If you use http://wicketpagetest.sourceforge.net, you can test it easily like: DefaultSelenium selenium = ...; WicketSelenium ws = ...;

[Vote] wicketstuff-core structure to support wicket 1.5 related development

2010-08-13 Thread Michael O'Cleirigh
Hello, With the first milestone of wicket 1.5 released there has been some interest expressed for a corresponding wicketstuff-core branch. Because wicket 1.5 is basically experimental right now I'm not sure if switching trunk to track it is the best idea. But eventually trunk will track