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

RadioGroup (or even RadioChoice) with Map<String,String> 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

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

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,

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

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(

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

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

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

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

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: *wicket:container wicket:id=emptyPanel /* 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

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

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

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

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

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,

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

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

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-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

URL Encryption in detail

2015-02-19 Thread lucast
Dear forum, Reading the Apache Wicket Guide on URL Encryption in detail https://wicket.apache.org/guide/guide/security.html#security_4 , 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: 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 wicket:enclosure as suggested on the wicket guide https://wicket.apache.org/guide/guide/single.html#keepControl_9 . I have used the PagingPage from Wicket Examples (you can download it from Apache Wicket page) to

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

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

Re: validation in form component panels in RefreshingView

2015-01-22 Thread lucast
...@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 text field

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

wicket framework and clickjacking risk

2014-12-18 Thread lucast
Dear Forum, I recently ran metasploit https://en.wikipedia.org/wiki/Metasploit_Project on my wicket 6 appilcation and one of the vulnerabilities found was clickjacking https://www.owasp.org/index.php/Clickjacking A quick search on google suggested a couple of solution for Java EE

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

Wicket FormTester not working with CheckGroupSelector.

2014-10-31 Thread lucast
Dear Forum, I'm implementing the CheckGroup example from wicket-examples http://www.wicket-library.com/wicket-examples-6.0.x/compref/wicket/bookmarkable/org.apache.wicket.examples.compref.CheckGroupPage;jsessionid=B179E71FA0687FABCC91FC1D8759085F?0 I have added a

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,

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,

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:

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 https://wicket.apache.org/guide/guide/resources.html chapter and wicket in action Wicket 6 resource management http://wicketinaction.com/2012/07/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

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

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

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. Normally,

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

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

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 label that has been created for TextField? Thanks in advance, Lucas -- View this

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

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:

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

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 - 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 I

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

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

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

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) http://wicket.apache.org/guide/guide/forms2.html#forms2_8 . Before I submit the form, I would like to have the option of adding the content from

Re: techniques using of Form

2014-02-14 Thread lucast
Hi Farrukh, From existing literature (Wicket in Action, Apache wicket Cookbook, wicket guide http://wicket.apache.org/guide/guide/index.html ), 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 and

Re: Extending TextField to display Joda's LocalTime in HH:mm format

2013-12-21 Thread lucast
Thank you, Sven. I am pleasantly surprised to see how clear and easy to follow the documentation was and more importantly, how clean and straightforward the implementation of converters can be. Regards, Lucas -- View this message in context:

Extending TextField to display Joda's LocalTime in HH:mm format

2013-12-18 Thread lucast
Dear Forum, I am trying to have an input field in which user inserts a time of the day in HH:mm format. In some cases, the field could be already populated. I thought of extending TextFieldLocalTime and pass a LocalTime object to the form field. The problem is that when if the local time

Field Decorator not working on a single dropdown field after form submit

2013-11-25 Thread lucast
Dear Forum, I have created a Field Decorator solution based on Apache Wicket Cookbook, chapter 3. I have also created a drop down field validator which implements INullAcceptingValidator. When the form is first rendered, Field decorator beforeRender() and afterRender() is called for all form

upgrade from 1.5 to Wicket 6 Form field issue and Ajax Link

2013-11-18 Thread lucast
Dear Forum, I have a main form and within this form, I have two fields: a drop-down list and a text field followed by an ajax-link which is meant to add the values from two fields to a list (scenario described in previous AjaxFormComponentUpdatingBehavior( change ) on a DropDownChoice

Re: Wicket free guide updated.

2013-07-06 Thread lucast
Hi Andrea, Thank you for writing this really good book. I would like to have a hard copy of it from amazon or any other site. Have you found a publisher that would print it for you? kind regards, Lucas -- View this message in context:

AjaxFormComponentUpdatingBehavior( change ) on a DropDownChoice

2013-07-05 Thread lucast
Dear Forum, I have a drop down choice for populating form fields with default values. To achieve this, I have added an AjaxFormComponentUpdatingBehavior( change ) to the drop down choice. Inside the AjaxFormComponentUpdatingBehavior.onUpdate() I populate all fields of the form and call

Re: AjaxFormComponentUpdatingBehavior( change ) on a DropDownChoice

2013-07-05 Thread lucast
Thank you, Martin. That seems to have done the trick. I would really like to found out why ajax functionality broke. The irritating bit is the fact I cannot even reproduce the bug on a stand-alone form. Everything else inside the AjaxFormComponentUpdatingBehavior.onUpdate() works. just

http://wicket.apache.org/learn/examples/ still linking to wicket 5 examples

2013-06-10 Thread lucast
Dear forum, I am sure someone has already noticed this but I thought of pointing it out. I'm trying to get to the latest wicket examples page. My first port of call was to go to http://wicket.apache.org/learn/examples/ and follow the live action link but it takes me to the

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

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) );

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

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

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

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.

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

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

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 ( !

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

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

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

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 code

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:

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

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

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

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

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 AbstractColumnT, I add the css class to populateItem

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

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

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

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

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

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

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

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

AjaxFormComponentUpdatingBehavior(onchange) not working on DropDownChoice

2011-07-18 Thread lucast
Dear Forum, I have added AjaxFormComponentUpdatingBehavior to a DropDownChoice to hide a text field or to make it visible, according to the value selected from DropDownChoice. AjaxFormComponentUpdatingBehavior is hiding the text field, as expected, but it is not making it visible when it should.

Re: Forms across multiple panels

2011-06-20 Thread lucast
I know this thread hasn't been active for a while but I thought I'd ask. How can one perform form field validation if the form fields are inside the panels contained in the forms? The form itself will not now what fields are contained in the panels. Thanks in advance, Lucas -- View this message

Re: wicket-dnd not working on IE9 and only partially on IE8

2011-06-13 Thread lucast
Sven very kindly found the source of the problem. The problem is that in my app I was using head wicket:link link href=style.css rel=stylesheet /wicket:link /head with no closing tag. If I have had closing tag /link then the problem wouldn't have occurred.

Re: wicket-dnd not working on IE9 and only partially on IE8

2011-06-08 Thread lucast
Hi Sven, Thanks for your reply. I've tested wicket-dnd on windows Vista, using IE9 and that's when the problem occurs. The problem of the on drop functionality not displaying the object dropped, described in my previous post occurs on IE8 under both windows vista and windows xp. Wicket-dnd works

Re: wicket-dnd not working on IE9 and only partially on IE8

2011-06-08 Thread lucast
Hi Sven, I'm trying to build a standalone example of the error I am experiencing on IE8, but in the meantime, I thought about posting the html produced on both IE8 (where I'm experiencing the problem) and on Firefox (where there is no problem). I'll attach as text file so it doesn't clutter up

Re: wicket-dnd not working on IE9 and only partially on IE8

2011-06-08 Thread lucast
Hi Sven, I found what causes the drop functionality not to work on IE8. I have a panel which has wicket-dnd draggable and droppable functionality. I allocate that panel to each table cell. On the html file for the panel, I have the following header which already exists on the homePage.html file:

wicket-dnd not working on IE9 and only partially on IE8

2011-06-07 Thread lucast
Dear Forum, Has any wicked-dnd user out there noticed that the functionality doesn't work on IE9? I have an implementation of wicket-dnd that I have used with repeating views so that I can use it in tables and lists but while it works on firefox, google chrome, even konkeror, it doesn't work at

Re: Wicket Cookbook - preventing multiple form submits

2011-05-20 Thread lucast
Hi Andrea, As you have suggested, on the SubmitOnceForm class, I've added two variables, page reference and page relative path, on calling process I get the copy the values: public void process(IFormSubmittingComponent submittingComponent) { pageReference =

Re: Wicket Cookbook - preventing multiple form submits

2011-05-20 Thread lucast
Hi Andrea, That's correct, I move back from the view person panel to the create person one with browser 'back' button. Many thanks, Lucas -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-Cookbook-preventing-multiple-form-submits-tp3535159p3539086.html Sent from

Re: Wicket Cookbook - preventing multiple form submits

2011-05-20 Thread lucast
Hi Ayodeji, The book is not an introduction to Wicket. It's for current users of Wicket. I can personally say its a really good book and I wish it was published 5 months ago, at the beginning of my pet project. you can find it in https://www.packtpub.com/ in hardcopy or electronic copy. Amazon

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

Re: Wicket Cookbook - preventing multiple form submits

2011-05-19 Thread lucast
Hi Andrea, Thanks for your reply. I call updateProcessedForms() AND THEN super.process(submittingComponent). The reverse order to what it is shown on pg 49 on book. I described it wrong on original post, I apologise. It is now corrected. When calling createPerson Panel, I execute the following in

Re: Wicket Cookbook - preventing multiple form submits

2011-05-19 Thread lucast
Hi Andrea, Here is form.onSubmit() functionality, as well as the panel swap functionality and how I call it. It is pretty much all the functionality I use: public class CreateEditPersonPanel extends Panel { private WebPage parentPage; public CreatePersonPanel(String id, WebPage parentPage)

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: TextFieldString eventTitleTextField = new TextFieldString(eventTitle, new PropertyModelString(event, title)); title is a field of event object. When processing the form, after

  1   2   >