Re: JavaScriptReference

2012-10-11 Thread Martin Grigorov
Hi, On Wed, Oct 10, 2012 at 6:20 PM, Georg Buschbeck g...@thomas-daily.de wrote: Hi one addition, so i've seen you've fixed that issue (WICKET-4777) , but i think, there is a part missing, which i also didn't think of. on the delivered page the html code looks fine now (switched to

Re: Manipulate Form Input After Validation

2012-10-11 Thread Francois Meillet
You should modify the css (color) for the input for example, in place of changing the value, with an AttributeModifier. The value displayed in the text box comes from the model. François Le 10 oct. 2012 à 19:50, weslowsk weslo...@accesscomm.ca a écrit : Hi, I was wondering how I could

Re: How To Pass Objects through PageParameters in Wicket 1.5

2012-10-11 Thread Martin Grigorov
Hi, On Wed, Oct 10, 2012 at 12:56 PM, venkat venkatesh.b...@gmail.com wrote: Hi , I have a scenario, where from a Page link have to render a popup window and on submit of the popup window have to set the drop down selected value of the parent window with the selected values from popup

Re: Wicket + Guice + unittests

2012-10-11 Thread Martin Grigorov
Hi, https://github.com/apache/wicket/blob/master/wicket-guice/src/test/java/org/apache/wicket/guice/GuiceInjectorTest.java The code doesn't look very nice, IMO, but it should help you start your tests. On Thu, Oct 11, 2012 at 3:10 AM, Dan Retzlaff dretzl...@gmail.com wrote: Daniel, What

Re: Manipulate Form Input After Validation

2012-10-11 Thread Martin Grigorov
Hi, You can do as Francois explained. See http://www.w3schools.com/cssref/pr_text_text-transform.asp Another way is to setup a IConverter (see textField#getConverter()) that converts to upper case in its #objectToString() method. On Thu, Oct 11, 2012 at 9:56 AM, Francois Meillet

Re: How To Pass Objects through PageParameters in Wicket 1.5

2012-10-11 Thread venkat
Hi Martin, Thanks for the response. However, I have window.opener as well and it did not work. window.close is working as expected to close the form. however, setting the dropdown value or text field is not working. I doubt since my dropdown is inside a tabbed panel the reference may not be

Re: JavaScriptReference

2012-10-11 Thread Georg Buschbeck
Hi, i attached it https://issues.apache.org/jira/browse/WICKET-4777 . you can see the problem by clicking the show/hide link. Thanks, Georg On 10/11/2012 08:55 AM, Martin Grigorov wrote: Hi, On Wed, Oct 10, 2012 at 6:20 PM, Georg Buschbeck g...@thomas-daily.de wrote: Hi one addition, so

download page

2012-10-11 Thread Douglas Ferguson
I've done downloads before in wicket by creating a resource stream, but this requires a user to click on a button or some other ajax. I'd like to create a page that will stream content back to the user based on parameters. This means I'd have bookmarkable urls for download and it would be

Re: download page

2012-10-11 Thread Martin Grigorov
Hi, Better use IResource for this. See WebApplication#mountResource() and http://wicketinaction.com/2011/07/wicket-1-5-mounting-resources/ On Thu, Oct 11, 2012 at 12:37 PM, Douglas Ferguson the...@gmail.com wrote: I've done downloads before in wicket by creating a resource stream, but this

Re: download page

2012-10-11 Thread Ernesto Reinaldo Barreiro
if your are using wicket 1.5.x maybe RequestCycle.get().scheduleRequestHandlerAfterCurrent(handler); will solve your problem. On Thu, Oct 11, 2012 at 2:37 AM, Douglas Ferguson the...@gmail.com wrote: I've done downloads before in wicket by creating a resource stream, but this requires a

Re: BackButton support Browser Compatibility issue

2012-10-11 Thread Uwe Schäfer
On 10/04/2012 11:05 AM, Martin Grigorov wrote: Hi Martin Create a ticket with a quickstart please. created as https://issues.apache.org/jira/browse/WICKET-4814 cu uwe - To unsubscribe, e-mail:

How to veto textfield inputChanged()?

2012-10-11 Thread l yeung
Hi, How do I veto textfield inputChanged()? I need to prevent this from happening inside AjaxFormComponentUpdatingBehavior(onchange). protected void onUpdate(AjaxRequestTarget target) { String name = getModelObject().getName(); if (query(name) == null) { // veto value change for

Bug WICKET-4789 still in 6.1.1 ?

2012-10-11 Thread nemanjko
I'm not sure that the error I'm getting is related to the WICKET-4789 that was in 6.0, but it looks like it. After upgrading from 6.0.0 to 6.1.1, I am getting this error: java.lang.NullPointerException

Re: Bug WICKET-4789 still in 6.1.1 ?

2012-10-11 Thread Martin Grigorov
Hi, At line 181 in ServletWebResponse I see: UrlRenderer urlRenderer = RequestCycle.get().getUrlRenderer(); I don't see how anything could be null here. Can you debug what is null ? On Thu, Oct 11, 2012 at 4:02 PM, nemanjko nemanja.kos...@gmail.com wrote: I'm not sure that the error I'm

Re: How to veto textfield inputChanged()?

2012-10-11 Thread Francois Meillet
you can use that yourFormComponent.setEnabled( false ); François Le 11 oct. 2012 à 14:55, l yeung lenming.ye...@gmail.com a écrit : Hi, How do I veto textfield inputChanged()? I need to prevent this from happening inside AjaxFormComponentUpdatingBehavior(onchange). protected void

Re: Bug WICKET-4789 still in 6.1.1 ?

2012-10-11 Thread Carl-Eric Menzel
Do you have a complete stacktrace? On Thu, 11 Oct 2012 06:02:33 -0700 (PDT) nemanjko nemanja.kos...@gmail.com wrote: I'm not sure that the error I'm getting is related to the WICKET-4789 that was in 6.0, but it looks like it. After upgrading from 6.0.0 to 6.1.1, I am getting this error:

Re: Bug WICKET-4789 still in 6.1.1 ?

2012-10-11 Thread nemanjko
Here is the full stack trace: java.lang.NullPointerException org.apache.wicket.protocol.http.servlet.ServletWebResponse.encodeURL(ServletWebResponse.java:181) ch.yugosi.view.WicketApplication$1.encodeURL(WicketApplication.java:121)

Re: Bug WICKET-4789 still in 6.1.1 ?

2012-10-11 Thread Martin Grigorov
The strange thing is that at line 181 https://github.com/apache/wicket/blob/build/wicket-6.1.1/wicket-core/src/main/java/org/apache/wicket/protocol/http/servlet/ServletWebResponse.java#L181 it seems that RequestCycle.get() returns null. But at WicketFilter.processRequest(WicketFilter.java:198)

Re: How to veto textfield inputChanged()?

2012-10-11 Thread Sven Meier
Overwrite getUpdateModel() to return false. Sven l yeung lenming.ye...@gmail.com schrieb: Hi, How do I veto textfield inputChanged()? I need to prevent this from happening inside AjaxFormComponentUpdatingBehavior(onchange). protected void onUpdate(AjaxRequestTarget target) { String name =

Re: IResourceStream from ByteArrayResource ?

2012-10-11 Thread mlabs
I think my problem boils down to needing to do a synchronous ajax GET instead of the default asynchronous one... my decorator's $.unblockUI() call gets invoked too soon, because the Wicket.Ajax.Get is asynchronous. Q: is there a way to switch the wicket ajax get call to synchronous mode on the

Re: How to veto textfield inputChanged()?

2012-10-11 Thread Martijn Dashorst
Why not create a validator that does your check? You can use the converted input prior to the model update and if. The validation reports an error, the model is not updated On 11 okt. 2012, at 18:48, Sven Meier s...@meiers.net wrote: Overwrite getUpdateModel() to return false. Sven l yeung

Re: Wicket + Guice + unittests

2012-10-11 Thread Daniel Watrous
Dan, I think you're right. Since in the WicketApplication init() function I attempt to get the bootStrapInjector like this: Injector bootStrapInjector = (Injector) this.getServletContext().getAttribute(Injector.class.getName()); I just can't figure out how to get the injector into the

Re: Wicket + Guice + unittests

2012-10-11 Thread Dan Retzlaff
For what it's worth, we instantiate our applications through Guice. Having your application go get its Injector kind of violates the DI concept. filter(/*).through(WicketFilter.class); bind(WebApplication.class).to(CustomWebApplication.class);

Re: Twitter Bootstrap in Wicket

2012-10-11 Thread Jeremy Thomerson
On Thu, Oct 11, 2012 at 6:11 PM, Chris Colman chr...@stepaheadsoftware.comwrote: Is it possible/feasible to 'selectively' use the Twitter bootstrap in a wicket app? Scenario: our app serves many different clients. Some will want the Twitter Bootstrap look and feel but others will be happy to

RE: Twitter Bootstrap in Wicket

2012-10-11 Thread Chris Colman
Is it possible/feasible to 'selectively' use the Twitter bootstrap in a wicket app? Scenario: our app serves many different clients. Some will want the Twitter Bootstrap look and feel but others will be happy to use any number of existing CSS/JS templates that we have created for them over

Re: Twitter Bootstrap in Wicket

2012-10-11 Thread Bruno Borges
You have to remove though some of the CSS IE conditionals from Twitter bootstrap. They are still not correctly processed by Wicket. :-( *Bruno Borges* (11) 99564-9058 *www.brunoborges.com* On Thu, Oct 11, 2012 at 11:08 PM, Chris Colman chr...@stepaheadsoftware.com wrote: Is it

Re: Manipulate Form Input After Validation

2012-10-11 Thread weslowsk
Thanks for the suggestions... What if I wanted to conditionally upper case the text field? Would a converter work then? For example, if the validation fails, upper case the string; otherwise, leave the string as is. -- View this message in context:

Re: Twitter Bootstrap in Wicket

2012-10-11 Thread Martin Grigorov
On Fri, Oct 12, 2012 at 5:14 AM, Bruno Borges bruno.bor...@gmail.com wrote: You have to remove though some of the CSS IE conditionals from Twitter bootstrap. They are still not correctly processed by Wicket. :-( No one else had such complaints so far. Me included. *Bruno Borges* (11)