Redirect fails wicketTest in rc7 - is there a workaround?

2009-07-19 Thread Martin Makundi
1. click ajaxButton 2. redirect in button onSubmit 3. verify redirect in test FAILS Is there a workaround? https://issues.apache.org/jira/browse/WICKET-2379 ** Martin - To unsubscribe, e-mail:

Re: StatelessForm problem - Not all parameters were encoded.

2009-07-19 Thread Norbert Sándor
Maybe a newbie question, but why does the form care about the URL coding strategy? Is there such hybrid URL encoder which encodes like this: http://www.example.com/mount-path/param1/param2?wicket-interface-and-friends-if-needed Thanks! Regards: Norbi Igor Vaynberg írta: forms do not

Bug in modal window.onBeforeRender - tests

2009-07-19 Thread Martin Makundi
Hi! For some reason ModalWindow assumes request is not ajax even though it is clicked via executeAjaxEvent: if (getWebRequest().isAjax() == false) { shown = false; // This hides the button } Thread [main] (Suspended

Re: Bug in modal window.onBeforeRender - tests

2009-07-19 Thread Per Lundholm
Was it your intention to attach some code? /Per On Sun, Jul 19, 2009 at 9:59 AM, Martin Makundimartin.maku...@koodaripalvelut.com wrote: Hi! For some reason ModalWindow assumes request is not ajax even though it is clicked via executeAjaxEvent:                if (getWebRequest().isAjax() ==

Re: Bug in modal window.onBeforeRender - tests

2009-07-19 Thread Martin Makundi
I am working on reproducing it via steps 1-6. ** Martin 2009/7/19 Per Lundholm per.lundh...@gmail.com: Was it your intention to attach some code? /Per - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For

RE: Redirect fails wicketTest in rc7 - is there a workaround?

2009-07-19 Thread Russell Simpkins
Martin, Your button should just be an external like. I don't think you are supposed to be redirecting to an external url per the wiki guidelines here http://cwiki.apache.org/WICKET/how-to-redirect-to-an-external-non-wicket-page.html, its this text on the bottom of the page: Note that if you

RE: Redirect fails wicketTest in rc7 - is there a workaround?

2009-07-19 Thread Russell Simpkins
Martin, If you need the button to submit to do some logic, you can add a call decorator to do your redirect with javascript e.g. protected IAjaxCallDecorator getAjaxCallDecorator() { return new AjaxCallDecorator() {public CharSequence decorateScript(CharSequence script) {

Re: override isEnabledInHierarchy?

2009-07-19 Thread slowery23
Actually, that's what I initially tried, but it didn't work. If you use the simple example below, you'll see that. None of the components with isEnabled() overridden to return true are enabled. I am using wicket 1.4-rc4. In looking at the source code, it looks like if I were able to override

Re: override isEnabledInHierarchy?

2009-07-19 Thread Martin Makundi
Don't disable the form. Disable only the components you want to disable. ** Martin 2009/7/19 slowery23 slow...@gatessolutions.com: Actually, that's what I initially tried, but it didn't work.  If you use the simple example below, you'll see that.  None of the components with isEnabled()

Re: Redirect fails wicketTest in rc7 - is there a workaround?

2009-07-19 Thread Martin Makundi
Your button should just be an external like. I need some logic there before redirecting. I don't think you are supposed to be redirecting to an external url per the wiki guidelines here new RedirectRequestTarget(/path/to/legacyJspFile.jsp) is what I am using. It is not relevant whether it

memory leak on FeedbackMessages??

2009-07-19 Thread Tsutomu Yano
Hi. When I uses component.info() method to display a message, my program stopped by OutOfMemoryError or StackOverflowError. I found the work around, but I could not found reason of this error. Can anyone teach me the reason? I create a sample application to show this problem. Open attached

Re: override isEnabledInHierarchy?

2009-07-19 Thread slowery23
That certainly will work. But if I have a form and I want to disable all of the elements in the form except for the Edit Form link, it is, IMO, much simpler to disable the form and override the one link so it is enabled, rather than disabling many form components. We have one use case where we

Re: override isEnabledInHierarchy?

2009-07-19 Thread Martin Makundi
That certainly will work.  But if I have a form and I want to disable all of the elements in the form except for the Edit Form link, it is, IMO, much simpler to disable the form and override the one link so it is enabled, rather than disabling many form components. You can just make your own

Re: StatelessForm problem - Not all parameters were encoded.

2009-07-19 Thread Igor Vaynberg
On Sun, Jul 19, 2009 at 12:00 AM, Norbert Sándordevelo...@erinors.com wrote: Maybe a newbie question, but why does the form care about the URL coding strategy? the form uses page's strategy to encode the urls. Is there such hybrid URL encoder which encodes like this: such a thing is coming

Re: override isEnabledInHierarchy?

2009-07-19 Thread slowery23
can u give an code example of what your centrallyenableddisabledcomponent looks like? MartinM wrote: That certainly will work.  But if I have a form and I want to disable all of the elements in the form except for the Edit Form link, it is, IMO, much simpler to disable the form and

Re: override isEnabledInHierarchy?

2009-07-19 Thread Martin Makundi
Well.. public class MyCentrallyEnabledPage/Panel xxx { private boolean centralEnable; CentrallyEnabledTextField extends TextField { isEnabled() { return centralEnable; } } I think you get the idea. It can be an inner class or any kind of class (just needs the necessary built-in

How to LDM refreshed after submit?

2009-07-19 Thread Mauro Ciancio
Hi wicketers! The question is the subject of this mail. I have a form with some fields and I want to those fields being updated after the form submit. All fields share the same Loadable Detachable Model. The issue is that the LDM is loaded before onSubmit() and i have no chance to update the

Re: how to get some data from servlet

2009-07-19 Thread Altuğ B . Altıntaş
Hi Igor; I found the problem; problem is when i hit my UploadServlet via http-get method , i simply write the url and hit the enter then below code is working Session wicketSession = Session.get(); I can get wicket Session, wow !! it is great... BUT ... When i hit my UploadServlet via

border vs Link.setBeforeDisabledLink

2009-07-19 Thread Fernando Wermus
Hi all, My use case consists in show a text as a title or as a link. I tried to solve this with a border boolean isTitle=true; H2Border border=new H2Border(border); Link link=new Link(link); H2border.add(link); link.setEnable(!isTitle); H2border.setVisible(isTitle); add(H2border);

Re: how to get some data from servlet

2009-07-19 Thread Fernando Wermus
Hi, Instead using a servlet you could try the following (you can find the whole code at wicketstuff pickwick ) This way you will have the session because your are into the requestCycle On your WicketApp mount(new URIRequestTargetUrlCodingStrategy(/upload) {

Re: how to get some data from servlet

2009-07-19 Thread Altuğ B . Altıntaş
Great solution Fernando. It works !!! Thanks. 2009/7/20 Fernando Wermus fernando.wer...@gmail.com Hi, Instead using a servlet you could try the following (you can find the whole code at wicketstuff pickwick ) This way you will have the session because your are into the requestCycle

Re: memory leak on FeedbackMessages??

2009-07-19 Thread Jeremy Thomerson
I have not run your quickstart, but this sounds peculiar to me. Please create a JIRA (with the quickstart attached) and reply-all here with the issue URL. -- Jeremy Thomerson http://www.wickettraining.com On Sun, Jul 19, 2009 at 9:10 AM, Tsutomu Yanot_y...@me.com wrote: Hi. When I uses

Re: border setVisible false

2009-07-19 Thread Anton Veretennikov
If isVisible of border returns false it will definitely hide all it's children. Paste your code, please. On Mon, Jul 20, 2009 at 3:44 AM, Fernando Wermusfernando.wer...@gmail.com wrote: Hi all,     I thought the correct behavior for a border that its visibility is set to false, it would be not

Re: border vs Link.setBeforeDisabledLink

2009-07-19 Thread Anton Veretennikov
The code of a constructor is executed only once, so after setVisible(true) it will not be called again for other isTitle value (this is not a model). Simply override isVisible of your border. It will be called each time page is going to be rendered. -- Tony On Mon, Jul 20, 2009 at 6:27 AM,

Re: How to LDM refreshed after submit?

2009-07-19 Thread Anton Veretennikov
If you provide methods for updating underlying objects that hold data in object setters, this must be sufficient. Or may be you forgot about Feedback messages. If validation goes wrong, setters will not be called. Paste your code, please. On Mon, Jul 20, 2009 at 6:05 AM, Mauro

Re: border vs Link.setBeforeDisabledLink

2009-07-19 Thread Fernando Wermus
I cannot override it, it is final On Sun, Jul 19, 2009 at 7:37 PM, Anton Veretennikov anton.veretenni...@gmail.com wrote: The code of a constructor is executed only once, so after setVisible(true) it will not be called again for other isTitle value (this is not a model). Simply override

Re: border vs Link.setBeforeDisabledLink

2009-07-19 Thread Anton Veretennikov
isVisible, not setVisible H2Border border=new H2Border(border) { @Override public boolean isVisible() { return ... } }; Be aware it may be called several times during page rendering (look JavaDoc). -- Tony On Mon, Jul 20, 2009 at 10:48 AM, Fernando

Re: Dropdownchoice missing (only when the page with Tinymce component) while scrolling the vertical scroll bar

2009-07-19 Thread rolandpeng
After checking the strange behavior with Sander,we find that in deployment mode to run the quickstart will be okay. This strange problem only took place in development mode. Thanks Sander helping me to figure out this problem. -- View this message in context:

best or common practice for application plug-ins

2009-07-19 Thread Sam Stainsby
I'm probably revealing my inexperience with J2EE environments in asking this, but how do Wicket programmers typically handle application add- ons (or plug-ins or modules). I'm interested in emulating what happens in the Zope/Plone world (which is where I've come from). In the case of Zope, you

Re: best or common practice for application plug-ins

2009-07-19 Thread Martin Makundi
What are you aiming at? Providing modules to others or building software to your client/own company? In my opinnion modules are good for the public but not for internal / sophisticated (=educated) use. ** Martin 2009/7/20 Sam Stainsby s...@sustainablesoftware.com.au: I'm probably revealing my