Re: How to remove panel in a list?

2013-02-13 Thread vineet semwal
Hi, 1)use dataview +reuseifmodelsequalstrategy 2) model object should be your data object and not component, see examples in the wicket distribution. On Wed, Feb 13, 2013 at 3:06 AM, Celia Xu wwx@gmail.com wrote: Hi, I want to use a repeater to paint my panels so now I have a listview

Re: AbstractAjaxTimerBehavior Problem

2013-02-13 Thread Ernesto Reinaldo Barreiro
Hi, Ajax request are queued so if you do while (true) { // } then this thread will be locked till you get a time out... Maybe what you want is 1- Create some context for monitoring progress 2- On onclick start a new thread and pass it context in 1).

Re: problems with AJAX function processEvaluation (1.4.x - 6.x)

2013-02-13 Thread Ernesto Reinaldo Barreiro
Hi, On Wed, Feb 13, 2013 at 8:38 AM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Hi, We are having problems on Wicket 1.4.x with and AJAX function processEvaluation... and I see the code is practically the same at 6.x. So, let's bring the subject to the list... Our problem is

Request scoped variables, in ajaxrequesttarget

2013-02-13 Thread Oscar Besga Arcauz
Hi wickers ! I was wondering If there's any method to have request-scoped variables ( as HttpServletRequest.get/setAttributes ) Specially with AjaxRequestTarget, in AJAX calls. I'm using my own events within ajax calls. I know that an ajax call fires an event into every component of a

Re: Request scoped variables, in ajaxrequesttarget

2013-02-13 Thread Ernesto Reinaldo Barreiro
Hi Oscar, On Wed, Feb 13, 2013 at 12:54 PM, Oscar Besga Arcauz obe...@isdefe.eswrote: Hi wickers ! I was wondering If there's any method to have request-scoped variables ( as HttpServletRequest.get/setAttributes ) Specially with AjaxRequestTarget, in AJAX calls. Maybe

Re: problems with AJAX function processEvaluation (1.4.x - 6.x)

2013-02-13 Thread Sven Meier
This I think is an error... as if eval fails... processing should continue. Shall I create an issue for this? Please create an issue for Wicket 6 (or 1.5.x). As you know, 1.4.x doesn't get bug fixes any longer. Sven On 02/13/2013 10:25 AM, Ernesto Reinaldo Barreiro wrote: Hi, On Wed, Feb

Re: problems with AJAX function processEvaluation (1.4.x - 6.x)

2013-02-13 Thread Ernesto Reinaldo Barreiro
Sven, Thank you for your answer. On Wed, Feb 13, 2013 at 1:10 PM, Sven Meier s...@meiers.net wrote: This I think is an error... as if eval fails... processing should continue. Shall I create an issue for this? Please create an issue for Wicket 6 (or 1.5.x). As you know, 1.4.x doesn't get

Re: problems with AJAX function processEvaluation (1.4.x - 6.x)

2013-02-13 Thread Ernesto Reinaldo Barreiro
Hi, https://issues.apache.org/jira/browse/WICKET-5039 On Wed, Feb 13, 2013 at 1:10 PM, Sven Meier s...@meiers.net wrote: This I think is an error... as if eval fails... processing should continue. Shall I create an issue for this? Please create an issue for Wicket 6 (or 1.5.x). As you

Migration issue: code using MarkupStream.findCOmponentINdex

2013-02-13 Thread Martin Dietze
I am currently migrating a project based on Wicket 1.4 to 6.60. At some point in that project we have this code: | class Foo extends Panel { | // ... | private boolean hasFragment( final String fragmentId, final MarkupStream markupStream ) { | final boolean found =

Re: Regarding using jetty 6 in wicket

2013-02-13 Thread Ernesto Reinaldo Barreiro
I think http://wicket.apache.org/start/quickstart.html for 1.4.21 will uses jetty 6.1.25. Use that quickstart and replace 1.4.x wicket with 6.x On Wed, Feb 13, 2013 at 3:05 PM, kshitiz k.agarw...@gmail.com wrote: Hi, The code that you have described would only work for jetty 7 or above. For

Re: Request scoped variables, in ajaxrequesttarget

2013-02-13 Thread Oscar Besga Arcauz
Ok, it's a little complicated to create the metadata If I'm rigth, the process is - for example when click on an AjaxLink into the page 1- Execute the method onClick of the AjaxLink 2- Send an event to all the components of the page (the page itself included, on first place, but not other

FormComponentPanel.convertInput()

2013-02-13 Thread Richard W. Adams
I'm writing my first FormComponentPanel, and have a couple of books showing how to do this. Most of it seems straightforward, except one point: In the books' examples, FormComopnentPanel.convertInput() creates a new model object and populates it from a series of calls to getConvertedInput() on

Re: Request scoped variables, in ajaxrequesttarget

2013-02-13 Thread Ernesto Reinaldo Barreiro
why do you need to fire a custom event? Can't you just use AJAX event triggered by ART? On Wed, Feb 13, 2013 at 3:31 PM, Oscar Besga Arcauz obe...@isdefe.eswrote: Ok, it's a little complicated to create the metadata If I'm rigth, the process is - for example when click on an AjaxLink into

Re: Request scoped variables, in ajaxrequesttarget

2013-02-13 Thread Bas Gooren
Well, it's a lot simpler than that. Simply call rc.setMetaData( METAKEY_MYEVENTDATA, this ); Wicket handles the actual storage details (like storing your data in a MetaDataEntry array etc). Nothing you need to think about :-) Met vriendelijke groet, Kind regards, Bas Gooren Op 13-2-2013

Re: FormComponentPanel.convertInput()

2013-02-13 Thread Sven Meier
Hi, #convertInput() should not modify the current model object, because form submission might still fail with a conversion error on another field. Pushing the new input in the FormComponent's model is done later in #updateModel(). Hope this helps Sven On 02/13/2013 03:33 PM, Richard W.

Re: Request scoped variables, in ajaxrequesttarget

2013-02-13 Thread Oscar Besga Arcauz
Yes, this works ok ! why do you need to fire a custom event? I've four main panels in my app, in order to communicate each other withour listeners Can't you just use AJAX event triggered by ART? ART ? Maybe ApplicationRuntime Ok, that's what I want to use, the AJAX event, but I want to have

Re: Request scoped variables, in ajaxrequesttarget

2013-02-13 Thread Ernesto Reinaldo Barreiro
Hi, On Wed, Feb 13, 2013 at 3:52 PM, Oscar Besga Arcauz obe...@isdefe.eswrote: Yes, this works ok ! why do you need to fire a custom event? I've four main panels in my app, in order to communicate each other withour listeners Can't you just use AJAX event triggered by ART? ART ? Maybe

Re: FormComponentPanel.convertInput()

2013-02-13 Thread Richard W. Adams
You're right: The later in #updateModel() was the piece I wasn't considering. Tks. From: Sven Meier s...@meiers.net To: users@wicket.apache.org Date: 02/13/2013 08:48 AM Subject:Re: FormComponentPanel.convertInput() Hi, #convertInput() should not modify the current model

Re: a loading ... something ...

2013-02-13 Thread Stephen Walsh
What about a lazyload panel? http://www.wicket-library.com/wicket-examples/ajax/lazy-loading;jsessionid=88070A23F11D560015390052668E124D?0 ___ Stephen Walsh | http://connectwithawalsh.com On Wed, Feb 13, 2013 at 11:15 AM, grazia

Re: a loading ... something ...

2013-02-13 Thread Nick Pratt
AjaxLazyLoadingPanel or write your own async models. Look back at the recent mailing list history - someone kindly posted an example application utilizing various async loading techniques. This would be a good topic for the new ref docs! N On Wed, Feb 13, 2013 at 12:15 PM, grazia

Re: a loading ... something ...

2013-02-13 Thread Andrea Del Bene
If you are using Wicket 6.x you can take a look at my project hosted at https://github.com/bitstorm/Wicket-tutorial-examples/tree/master/CustomAjaxListenerExample. There you can find a custom Ajax listener that displays a custom activity indicator for the whole duration of an Ajax request

AjaxEventBehavior called twice because of javascript onchange

2013-02-13 Thread divad91
Hi, I using wicket 1.4.21 and developing an application that needs to work in IE7 and +., firefox, chrome etc. I have a problem with IE. Ajax listener are called twice because I have javascript that remove the dropdown default empty option Choose One. My ajax listener is called on first time

Re: AjaxEventBehavior called twice because of javascript onchange

2013-02-13 Thread Sven Meier
How do you remove the option? Show us some code. Sven On 02/13/2013 08:22 PM, divad91 wrote: More precisely, removing an option of a dropdown list with Internet Explorer (IE7 - IE8) triggers the Wicket Onchange Behavior. Any workaround too avoid this ? -- View this message in context:

How to change style of td which contain a selection field

2013-02-13 Thread Delange
I my table I use selections. My problem is that the selection field is aligned to the left while it should be aligned to the right How can I have the input selections field aligned to the right? Example Quantity in Storage ___ --- this selection field must

Re: AjaxEventBehavior called twice because of javascript onchange

2013-02-13 Thread Sven Meier
Hi, your code didn't come through with you initial post. Regretfully I don't have an idea what's going wrong here: Removing an option via Javascript shouldn't trigger any change event handler. Sven On 02/13/2013 08:56 PM, divad91 wrote: The code is in my first post at the end. With jQuery

Re: HttpsMapper with Apache Virtual Host Appending the Wrong Path

2013-02-13 Thread Tim Urberg
I found a solution and it's not bad at all. This works specifically with WebLogic and the HTTP WebLogic Plugin, so anyone using that setup should benefit from this: 1. I created a subclass of org.apache.wicket.protocol.http.servlet.ServletWebRequest to override getContextPath(): @Override

Multipart ajax form submit channel

2013-02-13 Thread Ashley Reed
I just wanted to ask this question before figuring out how to file a bug. I'm using Wicket 1.5.6, and it seems like multipart ajax form submits don't block the ajax channel. I'm doing an ajax submit that causes the form to go away, and other ajax links on the form don't wait until the form

Re: Expire page in Wicket 1.5/6.x

2013-02-13 Thread Francois Meillet
getSession().clear(); François Meillet Formation Wicket - Développement Wicket Le 13 févr. 2013 à 22:25, Nick Pratt nbpr...@gmail.com a écrit : Is it possible to forcibly expire all versions of a Page in Wicket 1.5/6 - if so, how? N

Re: Migration issue: code using MarkupStream.findCOmponentINdex

2013-02-13 Thread Francois Meillet
private boolean hasFragment(final String id, final Markup markup) { return markup.find(id) != null; } hope this help François Meillet Formation Wicket - Développement Wicket Le 13 févr. 2013 à 15:08, Martin Dietze d...@fh-wedel.de a écrit : I am currently migrating a project based on

Re: Migration issue: code using MarkupStream.findCOmponentINdex

2013-02-13 Thread Francois Meillet
have a look at the migration page 1.5 $ component rendering https://cwiki.apache.org/WICKET/migration-to-wicket-15.html#MigrationtoWicket1.5-Componentrendering François Meillet Formation Wicket - Développement Wicket Le 13 févr. 2013 à 15:08, Martin Dietze d...@fh-wedel.de a écrit : I

changing pdf content in Iframe , on item select event

2013-02-13 Thread mayanksahai
hi all, i am new to wicket and trying to build a page that contains a drop down, listing all the documents associated to a user. i have a divon the same page that encapsulates an Iframe , where document content is displayed. a user can change document in dropdown and once item is selected , that

How to null-check manually converted TextField values?

2013-02-13 Thread Sebastian Gaul
I have a TextField which overrides it's getConverter method to add a Joda time converter instead: new TextFieldP(id) { @Override public P IConverterP getConverter(ClassP type) { return (IConverterP) new JodaDateTimeConverter(); } }; The converter returns null if input was

how to modify internal JavascriptResourceReference packaged with component

2013-02-13 Thread Evan Sable
Hi, I'm working on a project that's on wicket 1.4. It's using the MultiFileUploadField class. I see in the code for that class that in renderHead, it calls: response.renderJavascriptReference(JS); and earlier it defines: private static final ResourceReference JS = new

Re: How to null-check manually converted TextField values?

2013-02-13 Thread Sebastien
Hi, Well, the required flag ensures that the input is not empty, not that it is of the correct type... If the conversion fails, is it supposed (I guessed) to throw a ConversionException. As it seems to not be the case, I would have overridden convert input as follow (not tested): class

Re: HttpsMapper with Apache Virtual Host Appending the Wrong Path

2013-02-13 Thread Tim Urberg
One more thing, I needed to override createRedirectUrl in HttpsMapper to look like this: @Override protected String createRedirectUrl(IRequestHandler handler, Request request, Scheme scheme) { HttpServletRequest req = (HttpServletRequest) ((WebRequest)

Re: changing pdf content in Iframe , on item select event

2013-02-13 Thread Ernesto Reinaldo Barreiro
Hi, Maybe you can adapt https://cwiki.apache.org/WICKET/displaying-content-eg-pdf-excel-word-in-an-iframe.html to your needs? On Wed, Feb 13, 2013 at 3:28 PM, mayanksahai mayanksa...@gmail.com wrote: hi all, i am new to wicket and trying to build a page that contains a drop down, listing