How to redirect to other page after downloading file
Hello, I download file by getRequestCycle().setRequestTarget(requestTarget); How can I redirect to other page after download? setResponsePage(MyPage.class); does not work Thanks in advance -- View this message in context: http://n4.nabble.com/How-to-redirect-to-other-page-after-downloading-file-tp1866644p1866644.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Catching maxSize of fileUpload error
Hello, is it possible to handle validation of maxSize of file upload (FileUploadField)? I need something like this onFileMaxSizeError() { someOtherField.error(someValidationMessage); } I hope someone understand what I want :D, if not, please let me know, i will try to describe more accuretly. Thanks in advance -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Catching-maxSize-of-fileUpload-error-tp2968831p2968831.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: AjaxFormComponentUpdatingBehavior Question
I dont know if it works, but you can try to make a hack :) endDateDropDown = new DropDownChoiceDate(endDateDropDown, new PropertyModel(viewHistoryCriteria, endDate), ProcessDateContext.getSixtyDayRange()); endDateDropDown.add(new AjaxFormComponentUpdatingBehavior(onchange) { protected void onUpdate(AjaxRequestTarget target) { if (criteriaDropDown.isEnabled()) { populateCriteriaDropdown(target); } } }); endDateDropDown.add(new AjaxFormComponentUpdatingBehavior(onblur) { protected void onUpdate(AjaxRequestTarget target) { // do nothing } }); -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/AjaxFormComponentUpdatingBehavior-Question-tp2968982p2969013.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: AjaxFormComponentUpdatingBehavior Question
Again, I can offer a hack :D public class DoSomeHackBehavior extends AbstractBehavior { private static final long serialVersionUID = 3554634545756435367L; @Override public void onComponentTag(Component component, ComponentTag tag) { FormComponent? comp = (FormComponent?) component; tag.getAttributes().remove(onblur); } } } after that, you can add this behaviour to any component component.add(new DoSomeHackBehaviour()); :D -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/AjaxFormComponentUpdatingBehavior-Question-tp2968982p2969053.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Catching maxSize of fileUpload error
It's working, thanks a lot ;) -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Catching-validation-error-of-fileUpload-maxSize-failing-tp2968831p2970111.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Dynamic UI Layout
You can use ListView's: https://cwiki.apache.org/WICKET/forms-with-dynamic-elements.html https://cwiki.apache.org/WICKET/page-with-dynamic-components.html https://cwiki.apache.org/WICKET/create-dynamic-markup-hierarchies-using-panels.html -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Dynamic-UI-Layout-tp2970085p2970123.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Ajax component's constructor target parameter
Hi, do we need to check if target is null? Is it possible to get null pointer exception here? Example onSubmit(AjaxRequestTarget target, Form? form) { // is it possible to get null target here? } -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Ajax-component-s-constructor-target-parameter-tp3000995p3000995.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Avoid getObject on Model if component not rendered
Hello, anyone have an idea how to avoid getting model object if component is not rendered? ListModelCustomUser usersListModel = new ListModelCustomUser() { private static final long serialVersionUID = -4520573537970008038L; @Override public ListCustomUser getObject() { return customUserDetailsService.loadAllUsers(); } }; final DropDownChoiceCustomUser usersChoice = new DropDownChoiceCustomUser(usersList, customUserModel, usersListModel, new ChoiceRendererCustomUser(username)); usersChoice.setNullValid(false); usersChoice.setModelObject(usersChoice.getChoices().get(0)); usersChoice.add(new AjaxFormComponentUpdatingBehavior(onchange) { private static final long serialVersionUID = 7L; @Override protected void onUpdate(AjaxRequestTarget target) { target.addComponent(customUserForm); } }); add(usersChoice); In some cases, usersChoice component is not rendered, becouse it is in SecuredPanel, witch shown only for admin users. But when page loading, this always calls secured service. I can make it unsecured to solve the problem, and call this service always, but maby there is a way to stop calling the service? :D Any ideas? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Avoid-getObject-on-Model-if-component-not-rendered-tp3006125p3006125.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Avoid getObject on Model if component not rendered
Oh, ..., thanks for a sharp eye ;)..Then I will need to find another way how to get rid of that default drop down value Choose one. Thank you -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Avoid-getObject-on-Model-if-component-not-rendered-tp3006125p3006137.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
ModalWindow show only content
Hello, is it possible to show only modal window content without all these title bar stuff, close button and frames? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/ModalWindow-show-only-content-tp3029858p3029858.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Beginner problems with TabbedPanel
Just tried Igor's solution with JavaScript disabled using AjaxFallbackButton Exception appears: java.lang.IllegalStateException: No Page found for component [MarkupContainer [Component id = xlsUploadForm]] Components tree: Page TabbedPanel Panel Form Button Any ideas how to make it fallback correct? With js everything works just perfect -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Beginner-problems-with-TabbedPanel-tp1887205p3473115.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Is this a bug?
input type=button value=next wicket:id=next/ Remove bolded quote :) -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Is-this-a-bug-tp3473469p3473539.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Is this a bug?
Try to use character code #62; instead -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Is-this-a-bug-tp3473469p3473554.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Is this a bug?
Try this: input type=submit wicket:id=next wicket:message=value:yourLocalizedMessage / And write this 'yourLocalizedMessage' in your localization properties file like this: yourLocalizedMessage=Submit More info about localization: https://cwiki.apache.org/WICKET/localization-and-skinning-of-applications.html Localization Info -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Is-this-a-bug-tp3473469p3473639.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Ajaxifying existing application
Why do you want to switch page using ajax? :D If you redownload all page contents, do not use ajax :), it only complicates everything. Use ajax, when you want to refresh only some of page components, like table, other containers-- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Ajaxifying-existing-application-tp3486615p3487445.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Share data in TabbedPanel
I think that your example would finish with ClassCastExeption in TabbedPanel.java:382 line return (Integer)getDefaultModelObject(); -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Share-data-in-TabbedPanel-tp3477328p3487936.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Share data in TabbedPanel
Thanks for help, I solved my problem by extending original TabbedPanel with some additional properties.-- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Share-data-in-TabbedPanel-tp3477328p3488031.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Ajaxifying existing application
Use ajax with responsibility. To much ajax can make bad things :]. I can not undestand, why you would like to change page to panel, and rerender it all, just like setResponcePage does. Try to sit and decide, which parts of page should be ajaxified and which should be left as it is.-- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Ajaxifying-existing-application-tp3486615p3488474.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
JavaScript enabled or disabled
Hi, is there any way to check if JS is enabled from wicket code? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/JavaScript-enabled-or-disabled-tp3540451p3540451.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Ajax and browser Back button
I have noticed, that there is one issue when you click back button on browser. If it was ajaxified page and you click on any control after back button clicked in browser you will get exception that clicked component not found or something. I did some research and found this as one of solutions: http://www.richardnichols.net/2010/03/apache-wicket-force-page-reload-to-fix-ajax-back/ But this disables browser level cache. I think, this decreases performance. Is there any better solution to avoid this back button issue? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Ajax-and-browser-Back-button-tp3540454p3540454.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: JavaScript enabled or disabled
Already tried this. No success because of http://apache-wicket.1842946.n4.nabble.com/Odd-behaviour-after-setGatherExtendedBrowserInfo-true-td1857093.html :/ -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/JavaScript-enabled-or-disabled-tp3540451p3540522.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Ajax and browser Back button
Could you please provide any simple example? Because I don't understand your solution :] -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Ajax-and-browser-Back-button-tp3540454p3540573.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
wiquery and IE 9 not compatible
Just wondering if any other noticed how strange wiquery behaves on IE 9? It sometimes works, sometimes don't. Created issue ticket here: http://code.google.com/p/wiquery/issues/detail?id=184 If any have similar problems, please share yours Solutions to fix this are welcome. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/wiquery-and-IE-9-not-compatible-tp3540597p3540597.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: the html pages showing traces that we used wicket, is it a problem
hariharansrc do not worry about those traces of wicket usage :). No one going to hack your app :D Put wicket logo on your web page instead ;) Powered by Apache Wicket :) -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/the-html-pages-showing-traces-that-we-used-wicket-is-it-a-problem-tp3540810p3541869.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Link onClick() method update on runtime
Is there any way to update onClick method for the same link? Let say I have link add(new Link(myLink) { public void onClick() { // do something here... } ); And later, when I click other control I want to update myLink onClick logic public void onClick() { // do something else if button clicked } -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Link-onClick-method-update-on-runtime-tp3568895p3568895.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Link onClick() method update on runtime
I will update this onClick recursive, need some more dynamic solution -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Link-onClick-method-update-on-runtime-tp3568895p3568935.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: database
Why do you want to store images in database? I think that is not a very good idea. You better store images in your file system, and persist into database only the paths to images. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/database-tp3573282p3574812.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Wicket app on Tomcat over Apache - 404
Hello, I tried to setup tomcat over apache2 following https://cwiki.apache.org/WICKET/wicket-behind-a-front-end-proxy.html guidelines. But I cant get it working. When I enter any page I always see my wicket custom 404 error page. I am using mod_proxy and mod_proxy_http plugins for apache2. Wicket version 1.4.13 Apache2 version 2.2.14 My configuration looks like that: Apache2 - httpd.conf: Tomcat 6 - server.xml: Maby anybody know how to solve this problem? I am start thinking to make tomcat run on 80 port, but I heard that it's not secure. Please, help me to fix this apache2 proxying issue -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-app-on-Tomcat-over-Apache-404-tp4201412p4201412.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Reloading content via Ajax
Hello guys, how do I properly reload content via Ajax using AjaxLink? I have label component like this: And there is an AjaxLink: After I click this link, label value stays not changed. Any ideas what I am doing wrong? :) -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Reloading-content-via-Ajax-tp4570233p4570233.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Reloading content via Ajax
Thanks, that solved my problem: -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Reloading-content-via-Ajax-tp4570233p4570286.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Setting value to object when validation failed
Hello this is quick start project which reproduces my case http://apache-wicket.1842946.n4.nabble.com/file/n4597599/project.zip project.zip The problem is, that I cannot set value for object after form validation fails. How to reproduce: 1. Startup my quicstart app; 2. Do not fill required field and press Save; 4. Validation error occurs, that field is required; 3. Press Set name; (this should set first name to John Doe and refresh); Expected result: input field sets to John Doe; Actual result: nothing happens; Does anyone knows what I am doing wrong? :) -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Setting-value-to-object-when-validation-failed-tp4597599.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Elephas Blog Engine: how to setup a test repo
I believe that this is not the right place to ask for Elephas engine howto :) This discussion board is for Elephas http://groups.google.com/group/elephas http://groups.google.com/group/elephas :D -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Elephas-Blog-Engine-how-to-setup-a-test-repo-tp4597689p4597714.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Setting value to object when validation failed
This solves my problem. Is there any way to collect all components that fails? or I just have to check each separate component if it has any feedback messages (level ERROR) and then clear it's value by myself? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Setting-value-to-object-when-validation-failed-tp4597599p4598947.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Setting value to object when validation failed
OK, I got the idea :), thanks a lot for helping. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Setting-value-to-object-when-validation-failed-tp4597599p4599127.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
BigDecimal field automatic validation
Hello, I am using CompoundPropertyModel with some text fields. One of them is: Later, when I try to enter invalid value for that field like qwerty (not decimal type), I got validation message that wrong value entered. Even if I have not added type validator. But today, after I try to enter non-decimal value, it does not validates this value and throws exception: Any ideas, why this automatic validation for text field with generics does not work anymore? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/BigDecimal-field-automatic-validation-tp4649560.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
BigDecimal field automatic validation
Hello, I am using CompoundPropertyModel with some text fields. One of them is: Later, when I try to enter invalid value for that field like qwerty (not decimal type), I got validation message that wrong value entered. Even if I have not added type validator. But today, after I try to enter non-decimal value, it does not validates this value and throws exception: Any ideas, why this automatic validation for text field with generics does not work anymore? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/BigDecimal-field-automatic-validation-tp4649561.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
BigDecimal field automatic validation
Hello, I am using CompoundPropertyModel with some text fields. One of them is: Later, when I try to enter invalid value for that field like qwerty (not decimal type), I got validation message that wrong value entered. Even if I have not added type validator. But today, after I try to enter non-decimal value, it does not validates this value and throws exception: Any ideas, why this automatic validation for text field with generics does not work anymore? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/BigDecimal-field-automatic-validation-tp4649562.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
BigDecimal field automatic validation
Hello, I am using CompoundPropertyModel with some text fields. One of them is: Later, when I try to enter invalid value for that field like qwerty (not decimal type), I got validation message that wrong value entered. Even if I have not added type validator. But today, after I try to enter non-decimal value, it does not validates this value and throws exception: Any ideas, why this automatic validation for text field with generics does not work anymore? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/BigDecimal-field-automatic-validation-tp4649563.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Generic for FileUploadField model
Hello, how to properly set generic for FilUploadField model? I try like this, but it does not compile: I get error message :), help, please -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Generic-for-FileUploadField-model-tp4650519.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket captcha example
Use reCaptcha http://alexo-web.blogspot.com/2011/02/integrating-recaptcha-in-wicket.html http://alexo-web.blogspot.com/2011/02/integrating-recaptcha-in-wicket.html -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-captcha-example-tp4650531p4650532.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Generic for FileUploadField model
Iam, thanks for trying to help, but my form have CompoundPropertyModel too, but I don't want to use it for my FileUploadField, so I create new model for this. Everything works fine, just I can not put generics correctly. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Generic-for-FileUploadField-model-tp4650519p4650554.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Loadable non-detachable list model for listView
Hi, is there any way to create non-detachable objects model for list view? I want to load actual objects from database for listview items, so I will be able to modify them without reloading. Let say: If I use as my listView model I will not be able to delete them right away like this I will get an exception that object is detached. So if I want to delete it, I need to reload it from DB. Is there any way to load non-detached model object? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Loadable-non-detachable-list-model-for-listView-tp4656216.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Loadable non-detachable list model for listView
I get same exception with your updates. Looks like I have to reload object from database before it's deletion or delete it by id. Anyway, thanks for help. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Loadable-non-detachable-list-model-for-listView-tp4656216p4656733.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Loadable non-detachable list model for listView
Yes, this is what I wanted. But after I made some investigation how to apply this OSIV filter I found that it could bring more mess then happiness :D; Source: http://stackoverflow.com/questions/1103363/why-is-hibernate-open-session-in-view-considered-a-bad-practice Source how to apply: http://www.jroller.com/cardsharp/entry/open_session_in_view_pattern; Thanks Sven, for help. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Loadable-non-detachable-list-model-for-listView-tp4656216p4656738.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
ListView does not repaint inside WebMarcupContainer using AjaxLink
Hi, does anybody knows how to repaint ListView properly using AjaxLink? This https://cwiki.apache.org/WICKET/how-to-repaint-a-listview-via-ajax.html https://cwiki.apache.org/WICKET/how-to-repaint-a-listview-via-ajax.html does not work for me. If I use Link, everything works. But not with AjaxLink. Help, please === Markup: === Java: === -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/ListView-does-not-repaint-inside-WebMarcupContainer-using-AjaxLink-tp4657300.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
How to append attribute for ListView item properly
Hi, I try to append attribute for my list item using ajax link. But it does not append. Expected: class=image-box selected Actual: class=image-box = Markup: = Java: = -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-append-attribute-for-ListView-item-properly-tp4657312.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
How properly set locale on application startup
Hi, I try to set locale for my custom session on application newSession method like this: When application start I get my pages localized in EN language, not in XX. What am I doing wrong here? Please help :) -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-properly-set-locale-on-application-startup-tp4660439.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: How properly set locale on application startup
Thanks for reply, it was my browser cache :). Thanks anyway. The code I mentioned above works as expected. Issue solved. Thank you -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-properly-set-locale-on-application-startup-tp4660439p4660443.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
wicket-bootstrap NoSuchMethodError: Url.parse
Hello, does anybody knows, what I could be doing wrong with wicket-bootsrap setup? I keep getting this error when entering wicket application: -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/wicket-bootstrap-NoSuchMethodError-Url-parse-tp4661909.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: wicket-bootstrap NoSuchMethodError: Url.parse
Wicket is 6.11.0 Bootstrap: also tried this bootstrap version: The same exception with both of them. I install Bootstrap into application using those settings in init() method: -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/wicket-bootstrap-NoSuchMethodError-Url-parse-tp4661909p4661912.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: AbstractColumn get row object
If you are using DataTable a a repeater, this thread might help for you: http://stackoverflow.com/questions/10796342/making-entire-row-of-a-wicket-datable-clickable http://stackoverflow.com/questions/10796342/making-entire-row-of-a-wicket-datable-clickable It lets you to make all row click-able. If you want to make single cell (column) click-able try to override newCellItem instead of newRowItem: http://wicket.apache.org/apidocs/1.5/org/apache/wicket/extensions/markup/html/repeater/data/table/DataTable.html#newCellItem%28java.lang.String,%20int,%20org.apache.wicket.model.IModel%29 http://wicket.apache.org/apidocs/1.5/org/apache/wicket/extensions/markup/html/repeater/data/table/DataTable.html#newCellItem%28java.lang.String,%20int,%20org.apache.wicket.model.IModel%29 -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/AbstractColumn-get-row-object-tp4661924p4661926.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: How Does Checkbox Know To Store To My Data Object
Try to add something like this onSubmit: System.out.println(It's up to date compiled code running here) and check console if you get this output :). I think you need to recompile your sources and application. Because this code snipped does nothing. I might be wrong, we all do mistakes :) -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-Does-Checkbox-Know-To-Store-To-My-Data-Object-tp4661879p4661927.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: wicket-bootstrap NoSuchMethodError: Url.parse
Hi, Martin, As we can see wicket-request.jar is different version then other wicket modules. So, I have downloaded wicket-request.jar of 6.11.0 version manually and replaced it in application AND IT WORKED :). So, I really do not know, why bootstrap download wrong version. Maybe I need to exclude wicket-request from bootstrap and add dependency of proper version myself? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/wicket-bootstrap-NoSuchMethodError-Url-parse-tp4661909p4661923.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Elegant way to modify parent component tag if child has errors
When/how should I trigger JS to update attribute? I have never used pure JS in my Wicket applications. I always try to use Wicket components/behaviors. Also, to avoid problem you mentioned about path to child I can pass it as a parameter which would be static field for both child component and behavior parameter: -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Elegant-way-to-modify-parent-component-tag-if-child-has-errors-tp4661983p4661985.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Signing in works on localhost but not on VPS server
Does your VPS and your computer uses same databases? If not, check if user that you want to log in exists in VPS DB -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Signing-in-works-on-localhost-but-not-on-VPS-server-tp4662167p4662169.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket Components as Class Members
The only thing I googled related to final and wicket is this: 7. Java nuances — There are two Java nuances that catch many Wicket newcomers off-guard. 1. The first is serialization. Wicket uses Java serialization to store the state of your component hierarchy (the page and all its components and their components and so-on) in memory or on disk between page requests. This means you need to be careful because things can get serialized by accident. The most common cause of this is declaring a variable final outside of an anonymous inner class and then using it inside that anonymous inner class. Doing this causes the compiler to add a member variable to the anonymous inner class. If that final variable is a large collection or a service from your middle-tier, this can cause a gigantic explosion of memory usage and can be hard to track down. In short: be very cautious with what you reference within anonymous inner classes and use member variables in your classes sparingly. source: http://wickettraining.com/ten-things-every-wicket-programmer-should-know.html -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-Components-as-Class-Members-tp4662235p4662237.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Wicket localization in stateful pages
I have noticed that localization does not work for wicket when pages versioning happens. Let say I have three components in my page: 1. wicket:message key=localizedResouceKey / 2. new Label(contentNoModel, resolveLocalizedContent()); 3. new Label(contentWithModel , new Model() { getObect() {return resolveLocalizedContent()}}); and also I have two links, which allows me to switch between two locales; So, I enter the page and click between locale links many times. Then I click back button several times. Components 1. and 3. never gets localized, only component 2. which does not use model got localized. It looks like when older page version loads model does not update with new locale value. Is this a bug or expected behavior? Quickstart project where we can reproduce specified behavior: versionLocale.zip http://apache-wicket.1842946.n4.nabble.com/file/n4662260/versionLocale.zip -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-localization-in-stateful-pages-tp4662260.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket localization in stateful pages
Exactly, I am really confused now. As I understand from your answer - this is expected behavior. I thought that back action should behave exactly the same when you navigating the site using wicket controls. Should I override back action somehow and do it myself? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Back-button-issue-when-localizing-in-stateful-pages-tp4662260p4662262.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket localization in stateful pages
Hi Martin, so, if I want browser back action to show the same result, I have to choose between components with static models or components with dynamic models only? Because if I use different types I will get different results when backing to older page version? I am really not getting the thing here :). Shouldn't it be consistent? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Back-button-issue-when-localizing-in-stateful-pages-tp4662260p4662319.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket localization in stateful pages
So, back button does not restore locale value in session? Ok, I will be more specific: *action 1.* I click link switchLanguageToEN; (VERSION 1) (both labels (with static and dynamic models) updates to english); *action 2.* I click link switchLanguageToDE; (VERSION 2)(... updates to german); *action 3.* I click back in browser; (VERSION 1) (label with static model updates to english, dynamic - stays german). debug result: Static model: getSession().getLocale() == en EN (locale restored from version 1) Dynamic model: getSession().getLocale() == de DE (locale taken from version 2) My last question related to this topic (sorry for that spam): 1. Is there a way to restore locale for dynamic models when navigating between page versions? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Back-button-issue-when-localizing-in-stateful-pages-tp4662260p4662323.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket localization in stateful pages
Storing it in page will not work as it will reset each time I call setResponsePage. Storing it in data base will not work also, because locale will became global for all visitors. So I tried to pass it using page parameters. Also, I have updated dynamic label model to LoadableDetachableModel. This time I got different result, but still, not what I expected. Back action restores locale from page parameter one step behind the value stored in session, so I got different values each time I go back. Attaching updated version, if there is still someone who will to help me: versionLocale.zip http://apache-wicket.1842946.n4.nabble.com/file/n4662326/versionLocale.zip -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Back-button-issue-when-localizing-in-stateful-pages-tp4662260p4662326.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket localization in stateful pages
Those are screenshots taken from quickstart project I have provided: 1. (0 page version) We enter the page. Default locale is EN. Everything are localized in english because locale is correct for all components http://apache-wicket.1842946.n4.nabble.com/file/n4662342/1-enterTheSite.jpg 2. (1 page version) Click to DE to sitch to german language. Everything are localized in german because locale is correct for all components http://apache-wicket.1842946.n4.nabble.com/file/n4662342/2-changeTOGerman.jpg 3. (0 page version) Click browser back button once. Only No Model label got localized to english. Other stuff stays with german locale http://apache-wicket.1842946.n4.nabble.com/file/n4662342/3-browserBackCLickeOnce.jpg What I expect on step 3: Expected: *all components got localized to en_EN locale;* Actual: No Model got localized to en_EN, but With model and {wicket:message} stays in german. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Back-button-issue-when-localizing-in-stateful-pages-tp4662260p4662342.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: wicket library example, but with tabs
You have three different consructors for TabPanel1: 1. TabPanel1(BookDetails bookDetails); 2. TabPanel1(); 3. TabPanel1(BookDetails bookDetails, String id); If you create instance of that class using first constructor you don't have any component added yet. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/wicket-library-example-but-with-tabs-tp4662343p4662344.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket localization in stateful pages
Thanks for help, I used this example to make localization work as I wanted: http://www.wicket-library.com/wicket-examples-6.0.x/pub/?0 It does not reload page after setting new locale, so no new page version is created and when you navigate back, using browser, locale stays the same. Also I had to update all components to use dynamic models. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Back-button-issue-when-localizing-in-stateful-pages-tp4662260p4662461.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Filtered feedback message cleanup
Hello, I am not sure if it's a Wicket bug, or a lack of my wicket knowledge , but I really need an assistance here. I have a simple form with two different input fields: RequiredTextField and PasswordTextField. Also there is a feedback panel, but it filters out PasswordTextField feedback message and displays it inline to its' field. When submiting the form, we got one message in feedback panel and one message after password field. http://apache-wicket.1842946.n4.nabble.com/file/n4662502/formSubmited.gif Later we trigger model update by setting new locale. Feedback message for username got cleared, but filtered feedback message - not. Is there any manual way to clear filtered messages? Or it should be done by Wicket itself? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Filtered-feedback-message-cleanup-tp4662502.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Filtered feedback message cleanup
Hello, I am not sure if it's a Wicket bug, or a lack of my wicket knowledge , but I really need an assistance here. I have a simple form with two different input fields: RequiredTextField and PasswordTextField. Also there is a feedback panel, but it filters out PasswordTextField feedback message and displays it inline to its' field. When submiting the form, we got one message in feedback panel and one message after password field. http://apache-wicket.1842946.n4.nabble.com/file/n4662503/formSubmited.gif Later we trigger model update by setting new locale. http://apache-wicket.1842946.n4.nabble.com/file/n4662503/localeChanged.gif Feedback message for username got cleared, but filtered feedback message - not. Is there any manual way to clear filtered messages? Or it should be done by Wicket itself? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Filtered-feedback-message-cleanup-tp4662503.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Filtered feedback message cleanup
attaching quickstart: feedbackI18n.zip http://apache-wicket.1842946.n4.nabble.com/file/n4662505/feedbackI18n.zip -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Filtered-feedback-message-cleanup-tp4662503p4662505.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Filtered feedback message cleanup
Thanks Francois, it works. I am changing locale in BasePage, so I had to add postprocessLocaleChange() and override it on it's subclasses to get it working. So it would be great if we could clear messages using something like FeedbackCollector.clearAll() without any knowledge about what components contains what messages. Thanks again -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Filtered-feedback-message-cleanup-tp4662503p4662527.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org