Re: [ANN] Plugin WicketForge 0.9.2 available for IDEA 9+

2011-04-13 Thread Eelco Hillenius
Great job, thanks for maintaining it! Eelco On Tue, Apr 12, 2011 at 1:47 PM, Minas Manthos minas.mant...@gmail.com wrote: Recent change notes: 0.9.2 -Fixed: gutter jitter [Defect 77] -Fixed: Repeated F4 from class needs me to move cursor [Defect 62] -Fixed: WicketForge does not recognize

Re: Form Submission of Disabled-Selected Fields Not Working

2011-04-13 Thread Martin Grigorov
This is how HTML works - submitting a form will not submit any disabled elements in the that form. On Tue, Apr 12, 2011 at 10:23 PM, eugenebalt eugeneb...@yahoo.com wrote: I ran into a problem which could be a bug. I have a field on the form which is disabled (a disabled

Re: CryptedUrlWebRequestCodingStrategy and bookmarkable pages

2011-04-13 Thread Martin Grigorov
On Tue, Apr 12, 2011 at 9:11 PM, Vitaly Tsaplin vitaly.tsap...@gmail.comwrote: Hi everyone, I am using CryptedUrlWebRequestCodingStrategy to encode urls. I also put an instance of BookmarkablePageLink on my page and the link that has been generated by this is NOT bookmarkable. What's wrong I

Wicket in Action converted to 1.4?

2011-04-13 Thread Will Sargent
Hi all, I'm working my way through Wicket in Action, but I'm a bit hampered by having everything be in 1.3 format, and I find that converting it is confusing. Is there any documentation that can tell me what the type system in 1.4 does, and what's notably different between 1.3 and 1.4? Will.

Re: Wicket in Action converted to 1.4?

2011-04-13 Thread Tomasz Dziurko
Probably most information about changes between 1.3 and 1.4 are listed here: https://cwiki.apache.org/WICKET/migrating-to-wicket-14.html -- Best regards / Pozdrawiam, Tomasz Dziurko www.tomaszdziurko.pl http://www.programatico.pl/

Re: CryptedUrlWebRequestCodingStrategy and bookmarkable pages

2011-04-13 Thread Vitaly Tsaplin
Hi Martin, Here is how it looks http://localhost:8080/mysite/?x=Dc11lSgdY6XfDJ4ubDucC6WRETrJP52-jOltr8KdvSmpmKOCpyMIMn-JtJePH3kpFspghl8jR-5be5cN-L0iMC8wWtD2AXFO with disabled strategy it becomes

Re: CryptedUrlWebRequestCodingStrategy and bookmarkable pages

2011-04-13 Thread Martin Grigorov
well, this is what crypting does ... but I think the url is still bookmarkable, i.e. clicking on it always creates a new instance of ProductViewPage On Wed, Apr 13, 2011 at 9:37 AM, Vitaly Tsaplin vitaly.tsap...@gmail.comwrote: Hi Martin, Here is how it looks

Re: Apache Wicket Cookbook Published!

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

Could not resolve class: my.domain.favicon.ico

2011-04-13 Thread Christian Grobmeier
Hello all, I am a bit curious about the exceptions below... if anybody has an idea whats going on, please let me know. Page shows up, just in the logfile is the exception. CSS shows up, favicon doesn't. I am using Wicket from trunk Thanks, Christian Similar stacktrace for:

Re: Could not resolve class: my.domain.favicon.ico

2011-04-13 Thread Martin Grigorov
can you paste your MyApp#init() ? On Wed, Apr 13, 2011 at 10:57 AM, Christian Grobmeier grobme...@gmail.comwrote: Hello all, I am a bit curious about the exceptions below... if anybody has an idea whats going on, please let me know. Page shows up, just in the logfile is the exception. CSS

Re: Could not resolve class: my.domain.favicon.ico

2011-04-13 Thread Christian Grobmeier
can you paste your MyApp#init() ? Sure: @Override public void init() { super.init(); getComponentInstantiationListeners().add( new SpringComponentInjector(this)); mountPackage(/, HomePage.class); mountPackage(/feedback, FeedbackPage.class);

Re: Could not resolve class: my.domain.favicon.ico

2011-04-13 Thread Martin Grigorov
do you really need mountPackage() ? I guess you actually need #mountPage() I find mountPackage(/, HomePage.class); as the culprit On Wed, Apr 13, 2011 at 11:07 AM, Christian Grobmeier grobme...@gmail.comwrote: can you paste your MyApp#init() ? Sure: @Override public void init() {

Re: Could not resolve class: my.domain.favicon.ico

2011-04-13 Thread Christian Grobmeier
do you really need mountPackage() ? I guess you actually need #mountPage() I find mountPackage(/, HomePage.class); as the culprit if I use only mountPage it leads to the situation of some components not found. My structure is like following: /HomePage.class /App.class

Re: Could not resolve class: my.domain.favicon.ico

2011-04-13 Thread Martin Grigorov
mountPackage() will mount all *Page* classes in the same package as the page used for the mount but it doesn't do anything else, i.e. it doesn't handle components or models or ... mountPage() mounts just a single page without any knowledge about other pages, panels, models ... On Wed, Apr 13,

Re: CryptedUrlWebRequestCodingStrategy and bookmarkable pages

2011-04-13 Thread Vitaly Tsaplin
when I try to copy this link and open it in another browser it says The page you requested has expired. Does it mean that the link is bookmarkable? ) But it works as it should with no crypting. Bug? I use 1.4.17. The strategy is set like this @Override protected IRequestCycleProcessor

Re: Could not resolve class: my.domain.favicon.ico

2011-04-13 Thread Christian Grobmeier
mountPackage() will mount all *Page* classes in the same package as the page used for the mount but it doesn't do anything else, i.e. it doesn't handle components or models or ... OK, I have imagined that. But it seems mountPackage does also mount the forms. If I mountPackage everything the

Re: CryptedUrlWebRequestCodingStrategy and bookmarkable pages

2011-04-13 Thread Martin Grigorov
I don't have time to debug it right now but as far as I know the crypting algorithm doesn't use the sessionid. Either try to debug and see what happens or create a ticket with a quickstart and wait until someone of us have time to look at it. On Wed, Apr 13, 2011 at 11:46 AM, Vitaly Tsaplin

Refreshing loadable detachable model object inside an ajax call

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

AjaxButton wont work with PasswordTextField in IE7

2011-04-13 Thread drf
I have a form with an AjaxButton, and it works fine. When the button is clicked, the onSubmit() method defined for the button is called. However, after adding a PasswordTextField to the form, the button ceases to work, meaning the onSubmit() method is no longer called. The browser is IE7 - the

Re: AjaxButton wont work with PasswordTextField in IE7

2011-04-13 Thread Martin Grigorov
add #onError() next to onSubmit() and see what the error is ;-) On Wed, Apr 13, 2011 at 4:13 PM, drf davidrfi...@gmail.com wrote: I have a form with an AjaxButton, and it works fine. When the button is clicked, the onSubmit() method defined for the button is called. However, after adding a

Re: link within modal window should reload parent page

2011-04-13 Thread hrbaer
-- View this message in context: http://apache-wicket.1842946.n4.nabble.com/link-within-modal-window-should-reload-parent-page-tp3437508p3447299.html Sent from the Users forum mailing list archive at Nabble.com. - To

Re: link within modal window should reload parent page

2011-04-13 Thread hrbaer
MZemeck wrote: The only thing that comes to mind is storing a flag in session. That is the approach I already implemented but with the same discomfiture you mentioned before. Meanwhile I tried to add the embedded javascript but without any success yet. I added the code both to my

Re: AjaxButton wont work with PasswordTextField in IE7

2011-04-13 Thread drf
what is the best way to get the error within onError() ? form.getFeedbackMessage() returns null thanks -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/AjaxButton-wont-work-with-PasswordTextField-in-IE7-tp3447260p3447335.html Sent from the Users forum mailing list

Re: AjaxButton wont work with PasswordTextField in IE7

2011-04-13 Thread Martin Grigorov
some of the form components has error most probably the password field since it introduced the problem see FeedbackPanel's source to see how to read the feedback messages On Wed, Apr 13, 2011 at 4:42 PM, drf davidrfi...@gmail.com wrote: what is the best way to get the error within onError() ?

Re: Form Submission of Disabled-Selected Fields Not Working

2011-04-13 Thread eugenebalt
Thanks for the reply. That's what I suspected. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Form-Submission-of-Disabled-Selected-Fields-Not-Working-tp3445600p3447600.html Sent from the Users forum mailing list archive at Nabble.com.

Ajax is Modifying Field When It Shouldn't

2011-04-13 Thread eugenebalt
New Ajax issue: I have a CheckBoxMultipleChoice which is disabled upon initialization. There is another component which can enable this CheckBoxMultipleChoice in Ajax IF a certain condition is true. There is no else. If the condition is not true, then the Ajax shouldn't touch the

Re: Ajax is Modifying Field When It Shouldn't

2011-04-13 Thread James Carman
How about some code? On Wed, Apr 13, 2011 at 12:15 PM, eugenebalt eugeneb...@yahoo.com wrote: New Ajax issue: I have a CheckBoxMultipleChoice which is disabled upon initialization. There is another component which can enable this CheckBoxMultipleChoice in Ajax IF a certain condition is

Re: Apache Wicket Cookbook Published!

2011-04-13 Thread Igor Vaynberg
thanks! i am happy you are enjoying it! -igor On Wed, Apr 13, 2011 at 1:24 AM, lucast lucastol...@hotmail.com wrote: Hi Igor, Congratulations on your new book. I have already got a copy and I have been using it as reference from day 1. I particularly like the straightforward structure: this

Re: Refreshing loadable detachable model object inside an ajax call

2011-04-13 Thread Clint Checketts
Have you tried explicitly calling .detach() on the LDM? The net getObject() call should force the load() method to get called again. -Clint On Wed, Apr 13, 2011 at 7:16 AM, lucast lucastol...@hotmail.com wrote: Hi there, I have a problem reloading/refreshing Parent object P from inside an

Re: Could not resolve class: my.domain.favicon.ico

2011-04-13 Thread Igor Vaynberg
you mounted the package on root, which means when the browser requests /favicon.ico wicket will think that the browser is asking for a wicket page named my.domain.favicon.ico and will try to instantiate a class with that name, thus the error. it should ultimately result in a 404 sent to the

Re: Refreshing loadable detachable model object inside an ajax call

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

Re: AjaxButton wont work with PasswordTextField in IE7

2011-04-13 Thread Igor Vaynberg
most likely because that field is required by default -igor On Wed, Apr 13, 2011 at 7:45 AM, Martin Grigorov mgrigo...@apache.org wrote: some of the form components has error most probably the password field since it introduced the problem see FeedbackPanel's source to see how to read the

Re: CryptedUrlWebRequestCodingStrategy and bookmarkable pages

2011-04-13 Thread Igor Vaynberg
urls are encrypted with session-relative randomly generated keys. so they are not bookmarkable. vitaly, you can tweak the crypter to ignore bookmarkable urls. -igor On Wed, Apr 13, 2011 at 2:59 AM, Martin Grigorov mgrigo...@apache.org wrote: I don't have time to debug it right now but as far

Using one component's value as input for the other

2011-04-13 Thread Reinout van Schouwen
Hello all, This would seem like a simple question but I've been tearing my hair out all evening about it. I have one form component, a wiquery autocomplete textfield.Once the user has entered a value in it I want the value to appear in a label in a different panel. My approach was to use an

Re: Using one component's value as input for the other

2011-04-13 Thread James Carman
You just use a normal reference if you can. Or, use a more listenery approach. On Wed, Apr 13, 2011 at 7:19 PM, Reinout van Schouwen rein...@gmail.com wrote: Hello all, This would seem like a simple question but I've been tearing my hair out all evening about it. I have one form component,

Re: Using one component's value as input for the other

2011-04-13 Thread Michael O'Cleirigh
Another way is to pass down a common IModelString into both panels from a shared parent. Or to create an abstract readonly model on the label that will get the model object from the text field. e.g. Shared model from above. In Parent Component: IModelStringfieldModel = new ModelString();

Re: IE8 + No Page found for component

2011-04-13 Thread Tejash Tarun
Hi, @Thierry: That problem is happening in IE8 browser only. There is no problem in FF, Chrome, and safari. So, I am believing that this may be due to stale state at client side. @Igor: I have checked, there is no serialization errors. With Kind Regards, Tejash On Tue, Apr 12, 2011 at 9:09