Re: Filtered feedback message cleanup

2013-11-19 Thread meduolis
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

Filtered feedback message cleanup

2013-11-18 Thread meduolis
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

Filtered feedback message cleanup

2013-11-18 Thread meduolis
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

Re: Filtered feedback message cleanup

2013-11-18 Thread meduolis
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

Re: Wicket localization in stateful pages

2013-11-17 Thread meduolis
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

Re: Wicket localization in stateful pages

2013-11-12 Thread meduolis
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

Re: wicket library example, but with tabs

2013-11-12 Thread meduolis
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:

Re: Wicket localization in stateful pages

2013-11-11 Thread meduolis
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

Re: Wicket localization in stateful pages

2013-11-11 Thread meduolis
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);

Re: Wicket localization in stateful pages

2013-11-11 Thread meduolis
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.

Wicket localization in stateful pages

2013-11-10 Thread meduolis
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()

Re: Wicket localization in stateful pages

2013-11-10 Thread meduolis
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

Re: Wicket Components as Class Members

2013-11-08 Thread meduolis
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

Re: Signing in works on localhost but not on VPS server

2013-11-06 Thread meduolis
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

Elegant way to modify parent component tag if child has errors

2013-10-26 Thread meduolis
Hello, I want to *modify parent tag* class attribute if it's *child has validation errors*. Let's say I have structure like this: Java code: Markup: To *achieve* my *goal* I do: Is there any *more elegant way* to do this? P.S. *ValidationMessageBehavior* adds span with error message to

Re: Elegant way to modify parent component tag if child has errors

2013-10-26 Thread meduolis
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

Re: AbstractColumn get row object

2013-10-22 Thread meduolis
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

Re: How Does Checkbox Know To Store To My Data Object

2013-10-22 Thread meduolis
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 :) --

Re: wicket-bootstrap NoSuchMethodError: Url.parse

2013-10-22 Thread meduolis
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

wicket-bootstrap NoSuchMethodError: Url.parse

2013-10-21 Thread meduolis
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

Re: wicket-bootstrap NoSuchMethodError: Url.parse

2013-10-21 Thread meduolis
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:

How properly set locale on application startup

2013-07-23 Thread meduolis
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:

Re: How properly set locale on application startup

2013-07-23 Thread meduolis
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

How to append attribute for ListView item properly

2013-03-18 Thread meduolis
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:

ListView does not repaint inside WebMarcupContainer using AjaxLink

2013-03-17 Thread meduolis
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

Re: Loadable non-detachable list model for listView

2013-02-24 Thread meduolis
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:

Re: Loadable non-detachable list model for listView

2013-02-24 Thread meduolis
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:

Loadable non-detachable list model for listView

2013-02-09 Thread meduolis
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

Re: Generic for FileUploadField model

2012-07-16 Thread meduolis
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:

Re: Wicket captcha example

2012-07-15 Thread meduolis
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

Generic for FileUploadField model

2012-07-14 Thread meduolis
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

BigDecimal field automatic validation

2012-05-29 Thread meduolis
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

BigDecimal field automatic validation

2012-05-29 Thread meduolis
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

BigDecimal field automatic validation

2012-05-29 Thread meduolis
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

BigDecimal field automatic validation

2012-05-29 Thread meduolis
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

Setting value to object when validation failed

2012-04-30 Thread meduolis
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

Re: Elephas Blog Engine: how to setup a test repo

2012-04-30 Thread meduolis
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:

Re: Setting value to object when validation failed

2012-04-30 Thread meduolis
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:

Re: Setting value to object when validation failed

2012-04-30 Thread meduolis
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.

Reloading content via Ajax

2012-04-19 Thread meduolis
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:

Re: Reloading content via Ajax

2012-04-19 Thread meduolis
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

Wicket app on Tomcat over Apache - 404

2011-12-15 Thread meduolis
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

Re: database

2011-06-05 Thread meduolis
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

Link onClick() method update on runtime

2011-06-02 Thread meduolis
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

Re: Link onClick() method update on runtime

2011-06-02 Thread meduolis
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.

Re: the html pages showing traces that we used wicket, is it a problem

2011-05-22 Thread meduolis
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:

JavaScript enabled or disabled

2011-05-21 Thread meduolis
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.

Ajax and browser Back button

2011-05-21 Thread meduolis
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:

Re: JavaScript enabled or disabled

2011-05-21 Thread meduolis
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

Re: Ajax and browser Back button

2011-05-21 Thread meduolis
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.

wiquery and IE 9 not compatible

2011-05-21 Thread meduolis
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

Re: Ajaxifying existing application

2011-05-01 Thread meduolis
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:

Re: Share data in TabbedPanel

2011-05-01 Thread meduolis
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

Re: Share data in TabbedPanel

2011-05-01 Thread meduolis
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.

Re: Ajaxifying existing application

2011-05-01 Thread meduolis
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

Re: Beginner problems with TabbedPanel

2011-04-25 Thread meduolis
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

Re: Is this a bug?

2011-04-25 Thread meduolis
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.

Re: Is this a bug?

2011-04-25 Thread meduolis
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

Re: Is this a bug?

2011-04-25 Thread meduolis
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:

ModalWindow show only content

2010-11-06 Thread meduolis
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

Avoid getObject on Model if component not rendered

2010-10-21 Thread meduolis
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

Re: Avoid getObject on Model if component not rendered

2010-10-21 Thread meduolis
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

Ajax component's constructor target parameter

2010-10-18 Thread meduolis
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:

Re: Catching maxSize of fileUpload error

2010-10-10 Thread meduolis
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.

Re: Dynamic UI Layout

2010-10-10 Thread meduolis
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:

Catching maxSize of fileUpload error

2010-10-08 Thread meduolis
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

Re: AjaxFormComponentUpdatingBehavior Question

2010-10-08 Thread meduolis
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

Re: AjaxFormComponentUpdatingBehavior Question

2010-10-08 Thread meduolis
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 =

How to redirect to other page after downloading file

2010-04-15 Thread meduolis
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: