getting values from FormComponentPanel outside form.onSubmit()

2014-02-14 Thread lucast
Dear forum, I have implemented a FormComponentPanel as suggested both in the Apache Wicket Cookbook (chapter 2) and wicket guide (chapter 12.8) . Before I submit the form, I would like to have the option of adding the content from Form

Re: techniques using of Form

2014-02-14 Thread lucast
Hi Farrukh, >From existing literature (Wicket in Action, Apache wicket Cookbook, wicket guide ), there are a number of ways you can go about it. You can put your form in a panel, have a submit once form (to prevent multiple submits) as template a

Re: getting values from FormComponentPanel outside form.onSubmit()

2014-02-17 Thread lucast
Hi Sven and Richter, Thank you for your replies. What I am trying to achieve is a refreshing view, with fields that are editable, and rows that can be removed, as shown on Wicket Examples -> Repeaters -> Contacts Editor - based on the previous example, but with editable values

Re: E-Commerce and Open Source projects

2014-03-27 Thread lucast
Hi Arjun, That's a good set of questions you have posted. However, I am thinking that due to the nature of the question, you might get more replies if you post it in a start-up related forum. I think Stackexchange (stackoverflow.com is part of it) have one. Alternatively, there are a couple of soft

FormComponentPanel.validate() API Doc question

2014-04-04 Thread lucast
Dear forum, I've written a FormComponentPanel in which one can select a date range and during validation I want to check that start date is not in the past or that end date is before start date. I have decided to do these checks by overriding FormComponentPanel.validate(). The FormComponentPanel.

TDD - End to End acceptance test - how to set form field values

2014-06-02 Thread lucast
Dear Forum, I'm trying to (retro) fit TDD into my Wicket project (Wicket Spring Hibernate) after reading "growing object-oriented software guided by tests" by Steve Freeman and Nat Pryce. One of the first thing the book suggest is to write an acceptance test for each feature. The simple feature

Re: Unit testing with Spring injected Application

2014-06-04 Thread lucast
Hi Nick, I know you have posted this solution a long time ago but I happen to be having the very same exception: IllegalStateException: Application name can only be set once. I'm using wicket 6, spring 4 (and hibernate). And I am trying to do an integration, end-to-end test. This is what my test

TDD - ajax button form submit via FormTester - Wicket 6

2014-06-24 Thread lucast
Dear Forum, I am testing a form with has fields with ajax behaviours and form components. The form has an ajax submit button to do all the necessary processing. Initially half of the form fields are hidden. I then select a drop down list with has an OnChangeAjaxBehavior attached to it in order to

WicketTester.executeAjaxEvent causes problems with FormTester.setValue()

2014-06-25 Thread lucast
Dear Forum, I have come across a strange behaviour when running wicketTester.executeAjaxEvent and FormTester on form fields with setRequired( true ); If I call formTester.setValue(), followed by wicketTester.executeAjaxEvent(), followed by formTester.submit(), the values on the form fields are cle

Re: WicketTester.executeAjaxEvent causes problems with FormTester.setValue()

2014-06-25 Thread lucast
Thanks for the reply. I wasn't aware that values are consumed after an ajax request. My bad. Thanks for taking the time to reply. It really does make a difference. Regards, Lucas -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/WicketTester-executeAjaxEvent-causes-p

is it possible to add a css class to FormComponent.setLabel()?

2014-07-30 Thread lucast
Dear Forum, Currently, I make heavy use of TextField.setLabel(). If adding a css field to TextField is as easy as TextField.add(new AttributeAppender("class", " TestCSSClass ")); then: How can I add a CSS class to that has been created for TextField? Thanks in advance, Lucas -- View this messag

Unit testing FormComponentPanel

2014-08-06 Thread lucast
Dear Forum, I am trying to unit test a FormComponentPanel. I would like to populate its fields and test some ajax behaviour as well. Is it possible to test a FormComponentPanel and its behaviour in isolation and not as part of a form? How can this be achieved? For testing a form, I call Is ther

Re: Unit testing FormComponentPanel

2014-08-06 Thread lucast
Thank you, Martin. I am able to successfully call but when I try to get hold of the object above in order to use it in tester.executeAjaxEvent I get null value. These are the calls I have used: I'm terribly sorry but what would be the function I need to execute to get hold of the object I n

Re: Unit testing FormComponentPanel

2014-08-07 Thread lucast
Thank you, Martin, I have implemented the solution, as suggested: wicketTester.getRequest().setParameter(""formComponentPanel:radioChoice"", ""value"") However, AjaxFormChoiceComponentUpdatingBehavior.onUpdate() (which I have added to radioChoice) does not behave as expected during test. Norma

Ajax: listening to specic event in custom

2014-08-22 Thread lucast
Dear forum, I have implemented a custom-made modal window using twitter bootstrap syntax. The modal window has a confirm and a cancel ajax link. Similarly to Wicket's own modal window, I have implemented a show(AjaxRequestTarget) function that calls and I have managed to display the modal win

Re: Ajax: listening to specic event in custom

2014-08-25 Thread lucast
Thank you, Chris. That did the trick. I have had a look at wicket-bootstrap. It's really good. I wanted to implement the modal window in a similar way to the existing wicket-extension modal, so that when I do code migration, I minimize the number of changes I need to make. Thank you for recomme

getResourceBundles().add css or javascript in wicket application

2014-08-28 Thread lucast
Dear forum, I want to bundle css files from inside my wicket application. I read wicket guide Resource management chapter and wicket in action Wicket 6 resource management

Re: getResourceBundles().add css or javascript in wicket application

2014-08-28 Thread lucast
Hi Sebastein, and Martin Thank you for your post. I think until Martin's reply I had the impression that one could bundle local resources AND third party resources together. Based on Sebastien's post, that would not be possible for certain third party libraries such as font-awesome. Would that be

Re: Unit tests that use wicket's session and spring session

2014-09-02 Thread lucast
Hi Marios, Have you had a look at the on-line wicket guide? https://wicket.apache.org/guide/guide/testingspring.html That is a really good chapter for setting up Wicket Spring testing. I hope that helps, Lucas -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Unit-tes

Re: EditablePropertyColumn and a callback to save

2014-10-23 Thread lucast
Hi Steve, If I understand correctly, you would like to catch an ajax event fired from the cell when you click away. There are two ways you can do this, you can add an OnChangeAjaxBehavior() class to the file: Alternatively, you can add an AjaxEventBehavior to your object: I hope that helps, L

Re: Combine breadcrumb with a dataview

2014-10-23 Thread lucast
Hi Sanders, I hope you don't mind me asking. Have you tried following the code execution with a debugger? I had a similar problem in the past and I realized that the existing breadcrumb solution did not satisfy my needs so I had to extend the class to make it fit. I hope this helps. Regards, Luc

Wicket FormTester not working with CheckGroupSelector.

2014-10-31 Thread lucast
Dear Forum, I'm implementing the CheckGroup example from wicket-examples I have added a AjaxFormChoiceComponentUpda

AjaxFormChoiceComponentUpdatingBehavior for custom CheckGroup and CheckGroupSelector

2014-11-06 Thread lucast
Dear Forum, Based on wicket examples, I built a custom CheckGroup with added CheckGroupSelector. I also want to add an AjaxFormChoiceComponentUpdatingBehavior() instance to the CheckGroup to update the items selected. And this is where the problem lies. I have extended CheckGroup class to make us

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

validation in form component panels in RefreshingView

2015-01-21 Thread lucast
Dear forum, I'm implementing a tabbed panel. On first panel, user selects number of items. On second tab, user enters details for each item. I've implemented a RefreshingView so that the number of items on list reflects the number of items selected by user. To bundle all of the fields together

Re: validation in form component panels in RefreshingView

2015-01-22 Thread lucast
Thank you, Martin, I have used ReuseIfModelsEqualStrategy and the validation message side of it work but now I have a different problem. When I navigate away from the form panel, update the list of objects and navigate back to the FormComponentPanel that holds the RefreshingView, only one item fr

Re: validation in form component panels in RefreshingView

2015-01-22 Thread lucast
Hi Martin, Thank you for taking the time to reply. I have implemented hashcode and equals on the object, and the Model class used inside the RefreshingView and the ListModel class that is passed to the RefreshingView. In order to be able to display the right number of entries, I clear the list i

Re: validation in form component panels in RefreshingView

2015-01-22 Thread lucast
https://luc...@bitbucket.org/lucast/refreshingview). The behaviour is as follow. Step 1, choose a number (3, for example) from the drop down list. A list of 3 entries of text fields will be displayed. Step 2, choose a different number (2, for example) from the drop down list. Only one entry of

Re: Removing table coloumn headers in wicket pageablelistview when list is empty

2015-02-06 Thread lucast
Hi K, If you want to hide the headers when the table is empty, you could use as suggested on the wicket guide . I have used the PagingPage from Wicket Examples (you can download it from Apache Wicket page) to illustrate this. I

URL Encryption in detail

2015-02-19 Thread lucast
Dear forum, Reading the Apache Wicket Guide on URL Encryption in detail , the section suggests that simply calling is not enough for url encryption at production level. Further down on that section, there is one recommendation

Re: How to send respons to user after payments has been done

2015-03-02 Thread lucast
Hi Long, Are you working with Paypal? If so, I'll post the relevant answer to you. Regards, Lucas -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-send-respons-to-user-after-payments-has-been-done-tp4669785p4669790.html Sent from the Users forum mailing list ar

redirect to external URL page on form submit - deployment mode problem

2015-03-02 Thread lucast
Dear forum, I am working on a pay-pal functionality. After the user has selected a number of entries and clicks submit, the user is redirected to an external paypal payment form. The url is unique for every submit, with various parameters. In order to implement this, I have made use of I have

Re: How to send respons to user after payments has been done

2015-03-03 Thread lucast
Hi Long, I'm not sure how Buckaroor works and how you communicate with it to process payment. I'll give a description of how I went implementing the paypal functionality, in the hope you will find similarities. In my functionality, a user selects a number of different types of entries and based

Re: redirect to external URL page on form submit - deployment mode problem

2015-03-03 Thread lucast
Hi there, Has anyone experienced this problem? How do you redirect to an external page? thanks in advance, Lucas -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/redirect-to-external-URL-page-on-form-submit-deployment-mode-problem-tp4669791p4669804.html Sent from the

trying to redirect to external URL when using HttpsMapper

2015-03-05 Thread lucast
Dear Forum, I have a form on a page where user enters personal data, and the page has the @RequireHttps because I'm trying to make the information captured more secure. When the user clicks submit, the page should redirect to an external URL. In this case, PayPal checkout page. Unfortunately, on

Re: trying to redirect to external URL when using HttpsMapper

2015-03-05 Thread lucast
Hi Sven, Thanks for replying. on the ajax submit button I call: @Override protected void onSubmit(AjaxRequestTarget target, Form form) { redirectToInterceptPage(new RedirectPage(URLString)); } >Have you compared the request sequence in the browser (e.g. with Firebug)? That is somethin

Re: Paypal Integration in wicket

2015-04-20 Thread lucast
Hi Jayeshps, I have implemented a wicket pay with paypal button a few weeks ago. The beauty of working with wicket is that you do not have to hard-code and hide the html parameters you pass to paypal on your html. It can all be done on the AjaxButton.onSubmit(); I am assuming you're familiar with

Re: Submitlink + PageParameters

2015-04-22 Thread lucast
Hi Chris, Have you tried the following?: In my case, the above solution was not properly redirecting to external url in production mode, so I resorted to using RedirectToUrlException: On the onSubmit(), I then calledsetResponsePage(new RedirectPage( "external url" ) ); I hope this he

Re: Paypal Integration in wicket

2015-04-24 Thread lucast
Hi Jayesh, For IPN whether it is the the sandbox or live, you have to provide an URL that is accessible from outside your local network. IPN is a third party system, so if you tell IPN to send its requests to localhost, it will send requests to IPN's localhost. You need to open up a port on your

Panels not refreshing when calling AjaxRequestTarget.add(), only in production mode

2015-06-02 Thread lucast
Dear Forum, On a form which is inside a modal window, I have an ajax checkbox where if I tick the box, I display a number of panels and if the checkbox is not ticked, I hide said panels. The functionality works well on development mode and does not work at all on deployment mode. I call FormComp

Re: Panels not refreshing when calling AjaxRequestTarget.add(), only in production mode

2015-06-03 Thread lucast
Hi Sven, Thank you for your reply. Yes, I call formComponentPanel#setOutputMarkupPlaceholderTag(true) on all elements involved with the AjaxRequestTarget. I'm still trying to get to the bottom of this. What I am baffled about is why it doesn't work on production mode when it works without any pr

Re: Panels not refreshing when calling AjaxRequestTarget.add(), only in production mode

2015-06-03 Thread lucast
Hi Martin, Thank you for your reply. Yes, you're absolutely right. I use: ** and it is pretty much how I add panels in the HTML code. What should I use instead, div, span, anything else? Thank you very much for pointing this out. I have been racking my brain for almost 5 days in total!!! Kind

Firefox 39+ Error code: ssl_error_weak_server_ephemeral_dh_key on ssl connection

2015-07-27 Thread lucast
Dear Forum, Since I have upgraded to Firefox 39 I have not been able to run my application on https since on the browser, I get the following error: This applies to the embedded jetty server and also the tomcat deployment server. Is this something that can be solved via Wicket, perhaps using Ss

Re: Firefox 39+ Error code: ssl_error_weak_server_ephemeral_dh_key on ssl connection

2015-07-29 Thread lucast
Thank you, niestroj, I have solved the issue for my apache tomcat server. It was quite straightforward. I found the solution here: https://jamfnation.jamfsoftware.com/discussion.html?id=15032 The problem is, as Martin Grigorov pointed, a purely server issue, not a wicket issue. I did have a quic

HTTP PUT, POSTs to arbitrary URLs within wicket without use of any other 3rd party library

2017-07-28 Thread lucast
Dear forum, I need to send an HTTP PUT/POST request to an arbitrary URL and I have to set headers and body. Is there a way of doing this within wicket without using 3rd party libraries such as spring framework's RestTemplate? I looked at wicketstuff-restannotations

using CssResourceReference for css file that lives in webapp

2017-07-31 Thread lucast
Dear Forum, I'm implementing a base wicket page where I load all of my CSS and javascript. I'm loading files from java class by using Is there a way to load a css file that lives under the webapp folder directly from the java class? At the moment, I'm using response_.render( CssHeaderItem.fo

Re: using CssResourceReference for css file that lives in webapp

2017-07-31 Thread lucast
Thank you, Maxim. Since I am managing all css files and js files form my java class, I was wondering if there is an equivalent to the HTML of http://apache-wicket.1842946.n4.nabble.com/using-CssResourceReference-for-css-file-that-lives-in-webapp-tp4678358p4678360.html Sent from the Users forum mai

Re: using CssResourceReference for css file that lives in webapp

2017-08-03 Thread lucast
I'd like to second Maxim on this. I am loading font files from the css file, and using ContextRelativeResourceReference did not work. I did not post my findings since I presumed it must have been something I did wrong, or that it didn't work due to lack of understanding on my part. Kind regards,

Hidden to visible not working, even after having set up .setOutputMarkupId(true);

2017-08-03 Thread lucast
Dear Forum, I have a page component that initially is hidden. These are the steps taken: When I try to make the component visible, inside an AjaxLink.onClick(), I do it like so: pageComponent.setVisible(true); target.add(pageComponent); However, on the page, the component is not made visible a

RadioGroup (or even RadioChoice) with Map values

2017-08-15 Thread lucast
Dear Forum, I would like to display a group of radio choices and I will use RadioGroup since it seems to be the fittest for my purpose. I got the implementation example from http://examples7x.wicket.apache.org/forminput/? I have, a map of key->

Re: FileUploadField with AJAX Behavior

2017-08-24 Thread lucast
I had the same requirement,I wanted to display the contents of the file, once the file has been selected. I found the code on https://github.com/apache/openmeetings/blob/4a5e859f886253086e51a2ac26bbc501d621e590/openmeetings-web/src/main/java/org/apache/openmeetings/web/common/UploadableImagePanel.

target.addComponent breaks Jquery date picker

2011-07-25 Thread lucast
Dear Forum, I'm have a jquery date picker field that I can update by adding AjaxFormComponentUpdatingBehavior to a drop down choice. After I have updated the date field using ajax through the drop down choice, the jquery date picker functionality is no longer working. Following the advice on thi

Re: target.addComponent breaks Jquery date picker

2011-07-25 Thread lucast
Thank you, Andrea. I added target.appendJavascript( "jquery code here" ); and that solved the problem. Kind regards, Lucas -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/target-addComponent-breaks-Jquery-date-picker-tp3693121p3693360.html Sent from the Users forum ma

Re: Call urlFor(Class, PageParams) outside of request cycle

2011-08-24 Thread lucast
Hi Alex Swan, I know the post is a bit old now. I had a similar problem a couple of months ago and the way I got around it is by creating a non bookmarkable link at same time I created the main object via the wicket app and I stored it on the DB. Quartz then I would fetch the stored link from the

new wicket app going live

2011-08-31 Thread lucast
Dear Forum, A quick note to let you know that next week a new wicket web app is going live. Mater Ecclesia is being built for Turnbull Hall, a busy Glasgow University Catholic Church. Mater Ecclesia is a (social) event management system. It creates (at the moment, only rota) events and invites s

Jquery Confirmation Dialog - or WiQuery Dialog?

2011-11-29 Thread lucast
Dear Forum, I want to implement a modal window for confirming the deletion of objects. I want to use Jquery confirmation dialog, just like on http://jqueryui.com/demos/dialog/modal-confirmation.html this example . Is there a way to add this Jquery script to my code and to know if the delete butto

Re: Jquery Confirmation Dialog - or WiQuery Dialog?

2011-11-30 Thread lucast
Thank you, Ernesto. I have checked out wiQuery trunk. I am still to upgrade from wicket 1.4.19 to 1.5. As soon as I have, I'll let you know how the dialog button functionality goes. Thank you very much for adding this functionality. I am sure other developers will find it of much use. Kind regards

Re: Jquery Confirmation Dialog - or WiQuery Dialog?

2011-11-30 Thread lucast
Hi Ernesto, Yes, I believe that porting it to 1.4.2 would be ideal. It means that I can finish this functionality and upgrade wicket at a later date. That, of course, would be most generous of you. I was going to do that myself by doing a diff between the two files but I noticed the new structure

Re: Jquery Confirmation Dialog - or WiQuery Dialog?

2011-12-03 Thread lucast
Hi Ernesto, I have just implemented the solution suggested for 1.4.x wiquery and it works great, exactly what one needs! I just added the dialog.close(target); to the onButtonClicked method to exit the dialog. Thank you very much for this. Wiquery is very useful for folks like me. It's another inc

adding css class to AbstractColumn table header

2011-12-12 Thread lucast
Dear Forum, I'm using a DefaultDataTable (structure almost identical to clickable cell example from chapter 5, Apache Wicket Cookbook). I want one particular column to have a different css class to the rest. For that reason, when extending AbstractColumn, I add the css class to populateItem metho

wicket-fullCalendar Custom month View

2011-12-31 Thread lucast
Dear forum, I am using wicket-fullCalendar and I am quite happy with it. I have 2 questions, though. 1) The default month view shows 6 weeks instead or the customary 5. Is there a way to change the default month view so that it only displays 5 weeks or as many weeks as one wishes? 2)The default m

Setting object on Parent panel and checking its value on grand-child panel

2012-01-13 Thread lucast
Dear Forum, I have set a drop down list on a parent panel A and at one point or another I need to check the value selected from that drop down on a grand-child panel.The structure I have is as follows: Parent Panel A contains Child panel B which contains grand-child panel C. I have set object O a

Populate DropDownChoice, set Object Model and still keep "Please Select" option

2012-01-30 Thread lucast
Dear forum, I'm dealing with a form in which I have a number of dropdown choices. Some drop down choices will have value preselected (eg. second option on the list). I would like the dropdown choices where the value is preselected to still hold the "Please Select" option so that the user has the

Adding onclick ajax behaviour to a panel

2012-01-31 Thread lucast
Dear Forum, I have a grid of panels (a calendar, really) and each panel may have a list of people or no list at all. Because the panels are so small, I'd like to be able to click on the panel and have a modal window pop up. Which Ajax updating behaviour should I add to the panel? I can't add Aja

Captcha cookbook example - image not refreshing on wicket 1.5.7

2012-06-12 Thread lucast
Dear forum, Reading the "Protecting against spam with a CAPTCHA" section on chapter 2, Apache Wicket cookbook, I noticed that the captcha picture gets refreshed every time one clicks on the submit button and that no AJAX is involved. the example, uses wicket 1.4.9 but when I test the very same cod

Re: Captcha cookbook example - image not refreshing on wicket 1.5.7

2012-06-12 Thread lucast
Thanks for the answer Martin. But the example from wicket-library is not quite the same. Your answer, however, has help me find the solution that works on wicket 1.5. I wanted to keep the captcha functionality independent of the form, much as it is on the book. So I only changed three lines: First

Re: Ajaxbutton, updating forms, broken persistence: strange, seemingly unrelated behaviour

2012-06-20 Thread lucast
Thank you, Sven. In my code I was not calling LoadableDetachableModel.detach() after persisting objects to the database. Something I should have done. As for the new events mechanism, I just had a look at the Migration to Wicket 1.5 and it looks like it's just what I need. The example from the wi

Appending onbeforeunload javascript function and then disabling it

2012-06-23 Thread lucast
Dear Forum, I have this panel in which I make an ajax button visible via ajax. Also, I append the following javascript to the AjaxRequestTarget to prevent the user from navigating away: When the user clicks on the ajax button, I hide it and I no longer prevent him/her from navigating away so I ap

Re: Feedback next to each input field on form

2012-06-27 Thread lucast
Hi srinash, Since you have mentioned you have the wicket cookbook, I would suggest that you implement the example step, by step. Also, go to http://www.packtpub.com/apache-wicket-cookbook/book apache wicket cookbook website and download the code for each example. Once you have downloaded the sam

Adding Ajax Validation to Individual Form components- Distinguishing error from multiple validators

2012-08-17 Thread lucast
Dear Forum, I apologize if this question has come up before. I have an email field and I want to check two things: one: that the email address is well formed. And two: that the email address isn't already registered. For the first one I use EmailAddressValidator and for the second one I create my

Re: Adding Ajax Validation to Individual Form components- Distinguishing error from multiple validators

2012-08-17 Thread lucast
Hi Sven, Sorry, I should have explained on the first post. The reason I want to differentiate in #onError() is because if the address is already registered then I want to have a modal window popping up with further options such as retrieving the person's details and so on. Where as if the email ad

Re: Adding Ajax Validation to Individual Form components- Distinguishing error from multiple validators

2012-08-17 Thread lucast
Thanks Sven, I'm afraid I don't know how to open a modal window from IValidator.validate since as it stands it does not handle ajax (as far as my limited knowledge goes). I have moved email address validation to form.onValidate() and implemented it in the following manner: if ( ! EmailAddressVa

Apache wicket cookbook ch5 - Filtering form example

2012-09-07 Thread lucast
Dear Forum, For those of you familiar with the content of Apache wicket cookbook. There is a wonderful example for filtering data tables on chapter 5 (recipe0502), When I click search, the entire page is refreshed. The main question I have about this is: Is there a way to implement this using aja

Re: Apache wicket cookbook ch5 - Filtering form example

2012-09-07 Thread lucast
It works like a charm! Thanks -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Apache-wicket-cookbook-ch5-Filtering-form-example-tp4651836p4651839.html Sent from the Users forum mailing list archive at Nabble.com. -

bookmarkable page being processed twice, second time, extra parameters passed

2012-09-17 Thread lucast
Dear Forum, I have a bookmarkable page which can take two parameters: uniqueName=[uniqueName] and unique_id_key=[] For some reason, the page is being instantiated twice. The first time, the right parameters are being passed. The second time, a lot of parameters are being passed and one of the par

Re: bookmarkable page being processed twice, second time, extra parameters passed

2012-09-18 Thread lucast
Thank you, Jeremy. I did look at any references for images. I stripped the page of wicket components and I started added them one by one to see which component was that was causing this problem. I am reusing a form and from within that form I was referencing a CSS file which is not present in the

Unable to succesfully propagate event from panel since getPage() throws error

2012-09-19 Thread lucast
Dear Forum, I have the following tree structure: WebPage has Panel A, which has Panel B. I am trying to propagate an event from Panel B so that it is caught from WebPage. Normally, I would propagate an event in the usual way: send(*getPage()*, Broadcast.BREADTH, new EventUpdate(someObject) ); How

Re: Unable to succesfully propagate event from panel since getPage() throws error

2012-09-20 Thread lucast
Thank you, Martin. it works like a charm. Sebastien, I have tried before the solution you have suggested but the event wasn't being caught by the top web page. Thank you, nevertheless for your help. I have to say, I have learnt so much from this mailing list, not only on wicket but everything re

Drag and Drop, simply copy from list A to list B

2011-03-04 Thread lucast
Apologies for the duplicate posting. It seems when I posted the previous one I wasn't subscribed to mailing list. I would like to drag an item from list A into list B but instead of removing the item from list A, I would like to create a copy of the dragged item into list B. Also, If I drag item

Wicket-dnd, unable to use with RepeatingViews

2011-03-11 Thread lucast
Hi Everyone, I am having behaviour problems when I add wicket-dnd DragSource and DropTarget to a WebMarkupContainer that is created inside a loop and it is added to a RepeatingView. The problem is that when I drag and drop a list item from one container to the other, sometimes it drops it on the

Re: Wicket-dnd, unable to use with RepeatingViews

2011-03-11 Thread lucast
Thank you so much, Sven. I'll try it straight away. Regards, Lucas -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-dnd-unable-to-use-with-RepeatingViews-tp3347961p3349218.html Sent from the Users forum mailing list archive at Nabble.com. ---

Re: Drag and Drop, simply copy from list A to list B

2011-03-16 Thread lucast
For the requirements described above I have implemented wicket-dnd and I have to say it works like a charm. In case anyone finds themselves in a similar predicament any time soon, I thought I put it out there. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Drag-and-D

Re: Drag and Drop, simply copy from list A to list B

2011-03-17 Thread lucast
Hi Bruno, Sorry. I should correct myself. I have used wicket-dnd, I took no part in developing this amazing drag and drop functionality. But I am finding it extremely useful in my pet project. I have implemented a very small and simple example about what I asked above (code attached). I particular

Re: CheckBox Behaviour through AJAX

2011-04-11 Thread lucast
Hi Varum, I was in a sort of similar predicament a couple of weeks ago. Instead of using new CheckBox("A", new Model() ... Have you tried using CheckBox("A", new AbstractCheckBoxModel ... ?? It was recommended by Igor (who recently published a wicket book). Have a look how it is meant to be use

Re: Apache Wicket Cookbook Published!

2011-04-13 Thread lucast
Hi Igor, Congratulations on your new book. I have already got a copy and I have been using it as reference from day 1. I particularly like the straightforward structure: this is the scenario, this is how you implement it. It is very well written. I find the data tables section particularly useful

Refreshing loadable detachable model object inside an ajax call

2011-04-13 Thread lucast
Hi there, I have a problem reloading/refreshing Parent object P from inside an Ajax call. The conditions are as follow: I have Parent object P and child object C. Child object has a unique time-stamp constraint. Child objects can be created or updated from two different pages, page A and/or page

Re: Refreshing loadable detachable model object inside an ajax call

2011-04-13 Thread lucast
Hi Clint, thanks for your email. After reading your post, this is how I've implemented the LDM class: public class LoadableParentModel extends LoadableDetachableModel { Long id; public LoadableParentModel(Long id){ this.id = id; } @Override

Re: Refreshing loadable detachable model object inside an ajax call

2011-04-14 Thread lucast
Thank you, Iain. I shall try that. Cheers, Lucas -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Refreshing-loadable-detachable-model-object-inside-an-ajax-call-tp3446979p3450740.html Sent from the Users forum mailing list archive at Nabble.com. --

Re: Refreshing loadable detachable model object inside an ajax call

2011-04-16 Thread lucast
Hi Iain, Thank you for your reply. I have tried to follow the examples from http://wicketinaction.com/2008/09/building-a-smart-entitymodel/ http://wicketinaction.com/2008/09/building-a-smart-entitymodel/ . I have successfully implemented both the Identifiable interface from article and also, the

Re: Refreshing loadable detachable model object inside an ajax call

2011-04-18 Thread lucast
Hi Clint, Here is the example of EntityModel as taken from http://wicketinaction.com/2008/09/building-a-smart-entitymodel/ http://wicketinaction.com/2008/09/building-a-smart-entitymodel/ . I've added the constructor that calls super(). public class EntityModel extends AbstractEntityModel {

Re: Refreshing loadable detachable model object inside an ajax call

2011-04-18 Thread lucast
Hi jcgarciam, I have made sure that my original class Parent does implement class Identifiable and I have now modified EntityModel to public class EntityModel extends AbstractEntityModel {. That got rid the error message. So that's great. Thanks! I will try to have it running later on during the

Continue navigating while on submit button process stuff on the background

2011-04-25 Thread lucast
Dear Forum, I have a simple tabbed view object page with a notify button that when the user clicks on the button, it emails a long list of people with information about the concerning the object. Some objects have a list of 100+ email addresses and clicking on submit stops me from continuing visit

Re: Continue navigating while on submit button process stuff on the background

2011-04-28 Thread lucast
Thank you Mzemeck, I am using Spring and I tried implementing @Async but for some reason when I fired up my wicket app it complained that it couldn't find the beans. I think it must have been because I'm declaring all of my spring managed beans (including my wicketApplication class) on my applicati

Re: Continue navigating while on submit button process stuff on the background

2011-05-07 Thread lucast
@jcgarciam, Thanks for your post. Sorry it took me so long to reply. Yes, I am using component instantiation listener on my wicket app. I think I might have not explained things properly in my last post. For the sake of clarity, I'm posting my web.xml and applicationContext set up: On my Wicket

Re: Continue navigating while on submit button process stuff on the background

2011-05-08 Thread lucast
Yes, you are right. I have realised that if all I want the thread to do is to send emails then all I need to pass is the necessary parameters. There is no need to access wicket components from inside the search. With this exclusions, the functionality is more modular. Cheers, Lucas -- View this m

Re: Refreshing loadable detachable model object inside an ajax call

2011-05-09 Thread lucast
I have finally solved this issue. In my original scenario, I was implementing an anonymous class and inside that anonymous class I was calling parentService().load(Parent.class, id);. To solve this, created an inner class to replace the anonymous class and when initialising the inner class objects,

TextField not binding PropertyModel

2011-05-16 Thread lucast
Dear Forum, I am trying to bind the field event.title to the eventTitleTextField in a form in the following manner: TextField eventTitleTextField = new TextField("eventTitle", new PropertyModel(event, "title")); "title" is a field of event object. When processing the form, after having filled t

PropertyModel not binding DropDownChoice

2011-05-16 Thread lucast
Dear Forum, I have yet another question about PropertyModel not binding to an object field but this time using DropDownChoice. In my form I have DropDownChoice eventOccurHowOftenDropDownChoice = new DropDownChoice("eventOccurHowOften", new PropertyModel(event, "occurrHowOften"), HowOftenType.get

Re: TextField not binding PropertyModel

2011-05-16 Thread lucast
Hi Per, You are spot on! Thanks. I'm creating a add/edit form and what I was initialising the event object in two places: public class CreateEvent extends Panel { private Event event = new Event(); ... ... public GenericEventCreatePanel(String id, Long eventId){ super(id

Wicket Cookbook - preventing multiple form submits

2011-05-19 Thread lucast
Dear Forum, On implementing prevent-multiple-form-submits, ch 2 - Wicket Cookbook, I found that when calling getToken() { return new FormToken(getPage().getPageReference(), getPageRelativePath()); } I get an error on getPage() because the current form doesn't have a page or par

  1   2   >