Re: IE6 issue regarding Wicket JS and Ajax

2010-04-09 Thread nino martinez wael
I might print this out and put it on the wall:) Next time some one comes and mentions IE6, i'll just point at this statement :) 2010/4/8 Martijn Dashorst martijn.dasho...@gmail.com: IE6's not pinin,' it's passed on! This browser is no more! It has ceased to be! It's expired and gone to meet its

Re: How to give feedback in long-running operation within AjaxButton.onSubmit()?

2010-04-09 Thread Tomasz Dziurko
You should check visural-wicket project (http://code.google.com/p/visural-wicket/) and live demo on http://visural-wicket-examples.appspot.com/app/ . In submitters there are some fancy looking waiting popup messages which could help. -- Best Regards / Pozdrawiam, Tomasz Dziurko

Re: How to give feedback in long-running operation within AjaxButton.onSubmit()?

2010-04-09 Thread Thomas Götz
Thanks for all the hints so far, they are really helpful but ;) Well, I don't want to have busy indicators on different components, I'm looking for a way to display status messages (like eg with jGrowl) during the long-running process (triggered by AjaxButton). I guess the only way to

Re: How to give feedback in long-running operation within AjaxButton.onSubmit()?

2010-04-09 Thread Alex Objelean
The IAjaxIndicatorAware interface fits perfectly with your need. All you have do, is: - create a DOM element which looks like jGrowl with 'loading' message and assign it an id (ex: id=ajaxIndicator) - your webPage should implement IAjaxIndicatorAware interface: public class MyWebPage extends

Re: How to give feedback in long-running operation within AjaxButton.onSubmit()?

2010-04-09 Thread Thomas Götz
Ok, but this is *not* what I want to achieve, beggin' your pardon ;-) The first messages should not display when starting the operation, but when a certain sub-task is finished. Say, I iterate over a list in the operation, and after each cycle I'd like to display a jGrowl message ... -Tom

Re: How to give feedback in long-running operation within AjaxButton.onSubmit()?

2010-04-09 Thread Alex Objelean
Oh, I see... I got you wrong initially. Indeed, in this case.. the best solution is polling and upon subtask completion - output a jgrowl notification script. Alex Thomas Götz wrote: Ok, but this is *not* what I want to achieve, beggin' your pardon ;-) The first messages should not display

Re: How to give feedback in long-running operation within AjaxButton.onSubmit()?

2010-04-09 Thread Ernesto Reinaldo Barreiro
Hi Tom, What I do, for instance, when exporting files to PDF, Excel, etc, is start the process on a background thread, block the screen so that users can only wait or stop the process, and use an AJAX timer to get back to the server every few seconds to monitor the progress and display it as

Re: How to give feedback in long-running operation within AjaxButton.onSubmit()?

2010-04-09 Thread Thomas Götz
Hi Ernesto, this sounds like a viable solution, I'd be glad if you could provide me with some more details (e.g. code samples, if available). -Tom Am 09.04.2010 09:39, schrieb Ernesto Reinaldo Barreiro: Hi Tom, What I do, for instance, when exporting files to PDF, Excel, etc, is start

DatePicker icon dont disappear when parent textfield is set to visible false

2010-04-09 Thread Christoph Glass
Hi, I have two textfields with date picker and a select box with onchange AjaxFormComponentUpdatingBehavior. When I set the textfields visible to true everything is fine, but when I set them to visible false after they was visible true the textfields are hidden but the icons are still visible.

Re: DatePicker icon dont disappear when parent textfield is set to visible false

2010-04-09 Thread Per Newgro
http://cwiki.apache.org/WICKET/wickets-xhtml-tags.html see Element wicket:enclosure - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

BookmarkablePageLink functionality in a Button

2010-04-09 Thread Martin Asenov
Hello, everyone! I've got this logout page: public class LogoutPage extends WebPage { public LogoutPage() { add(new FormObject(form).add(new AjaxButton(home) { private static final long serialVersionUID = 1L; @Override protected void onSubmit(AjaxRequestTarget arg0,

Semi-stateless AJAX behaviors

2010-04-09 Thread Martin Schayna
Hi, I have pretty statefull page with plenty of AJAX components. Most of these components have behaviors, which renders JavaScript code for calling AJAX requests to Java code. Because page isn't stateless, each request causes serialization of page. So far so good. But some of these AJAX

RE: How to give feedback in long-running operation within AjaxButton.onSubmit()?

2010-04-09 Thread Tim L Casey
You have to watch session expiration. This type of polling, without end, will keep sessions alive indefinitely. I don’t have a cut and paste code, but look at AbstractAjaxTimerBehavior. tim -Original Message- From: Thomas Götz [mailto:t...@richmountain.de] Sent: Friday, April 09,

Re: URL Encoding strategy

2010-04-09 Thread Erik van Oosten
Hi Alex, I am not sure it is a good idea to include this code in Wicket core (or extension). It will make Wicket's URL handling even more nontransparent then it already is. For well tested applications you can use the workaround, but I'd hate to maintain this code for each and every corner

Re: URL Encoding strategy

2010-04-09 Thread Alex Objelean
I see. But at least could you make the encode method non-final? This would ensure that there is no need for a patch. I just would reuse your code for root mounting. Until wicket-1.5 will be released and adopted, we still have to have a solution for root mounting in wicket-1.4. Thanks! Alex

Re: How to give feedback in long-running operation within AjaxButton.onSubmit()?

2010-04-09 Thread Thomas Götz
Ok, thanks for the hint, but the operations I make usually only take up to ~1min, so I guess this won't be an issue in my case. But you are right, one has to assure that the polling will stop upon completion of the background task. -Tom On 09.04.2010 at 10:28, Tim L Casey wrote: You

Re: How to give feedback in long-running operation within AjaxButton.onSubmit()?

2010-04-09 Thread Ernesto Reinaldo Barreiro
Hi Tom, Take a look at [1]...[4]. There I'm creating a thread each time the long running process is launched but maybe it would be more correct to use a thread pool or use scheduler like quartz for this task. Feel free to use/change the code there as it best suits your needs. Ernesto

Re: URL Encoding strategy

2010-04-09 Thread Erik van Oosten
Only Wicket comitters can do that. Please make a jira issue that refers to this discussion, for example with a nabble URL. Regards, Erik. Alex Objelean wrote: I see. But at least could you make the encode method non-final? This would ensure that there is no need for a patch. I just would

Re: How to give feedback in long-running operation within AjaxButton.onSubmit()?

2010-04-09 Thread Thomas Götz
Thanks! -Tom Am 09.04.2010 10:55, schrieb Ernesto Reinaldo Barreiro: Hi Tom, Take a look at [1]...[4]. There I'm creating a thread each time the long running process is launched but maybe it would be more correct to use a thread pool or use scheduler like quartz for this task. Feel free

Re: DatePicker icon dont disappear when parent textfield is set to visible false

2010-04-09 Thread Christoph Glass
Thank you for your answer. It seems that I'm too stupid for getting it, I try to work with closures but now my textfields are always hidden. Can please anyone help again? Thank you and best regards Christoph snip /* bool */ boolean _bPause = false; /* selectbox */ _selectArt.add(new

Re: JavaOne in San Francisco

2010-04-09 Thread shetc
Sounds great! -- View this message in context: http://old.nabble.com/JavaOne-in-San-Francisco-tp28180298p28190645.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail:

RE: IE6 issue regarding Wicket JS and Ajax

2010-04-09 Thread Martin Asenov
Is anyone able to give me some more assistance with the below mentioned issues? Best, Martin -Original Message- From: Martin Asenov [mailto:mase...@velti.com] Sent: Thursday, April 08, 2010 5:18 PM To: users@wicket.apache.org Subject: IE6 issue regarding Wicket JS and Ajax Hello,

Re: Wicket GAE performance

2010-04-09 Thread Anton Veretennikov
I would like to comment that Objectify's documentation is very descriptive about GAE Datastore - the art of writing good docs. And i've started to use it very fast, thank you guys! wicket-gae-template is a nice start point for wicket apps on gae using maven

RE: IE6 issue regarding Wicket JS and Ajax

2010-04-09 Thread Tim L Casey
Upgrade. -Original Message- From: Martin Asenov [mailto:mase...@velti.com] Sent: Friday, April 09, 2010 4:42 AM To: users@wicket.apache.org Subject: RE: IE6 issue regarding Wicket JS and Ajax Is anyone able to give me some more assistance with the below mentioned issues? Best, Martin

RE: IE6 issue regarding Wicket JS and Ajax

2010-04-09 Thread Martin Asenov
Some users might use IE6 for our webapp - how could I force them to upgrade? P.S. Need some serious answers, please. Best, Martin -Original Message- From: Tim L Casey [mailto:tca...@cataphora.com] Sent: Friday, April 09, 2010 2:58 PM To: users@wicket.apache.org Subject: RE: IE6 issue

Re: IE6 issue regarding Wicket JS and Ajax

2010-04-09 Thread James Carman
Yeah, I think telling him that IE6 is dead isn't quite accurate: http://www.w3schools.com/browsers/browsers_stats.asp Yes, it's declining, but it's not dead. It is still used 58% as much as IE8 and roughly 83% as much as IE7. So, it is still used by folks. I agree that people should upgrade,

AjaxFormChoiceComponentUpdatingBehavior on RadioGroup

2010-04-09 Thread Robert Gründler
Hi all, i'm trying to use the AjaxFormChoiceComponentUpdatingBehavior on a RadioGroup component, unfortunately, no ajax request is triggered when the RadioBoxes are clicked. Here's the code i'm using right now: Form form = new Form(addressform); String[] choices = new String[]{ Wicket, Spring,

Re: IE6 issue regarding Wicket JS and Ajax

2010-04-09 Thread Thomas Götz
And what is the best argument to drive someone to update his browser? To stop supporting legacy IE6, SCNR ;-) -Tom On 09.04.2010 at 14:09, James Carman wrote: Yeah, I think telling him that IE6 is dead isn't quite accurate: http://www.w3schools.com/browsers/browsers_stats.asp Yes, it's

Re: IE6 issue regarding Wicket JS and Ajax

2010-04-09 Thread Ernesto Reinaldo Barreiro
Martin, Can you reproduce the issue with ModalWindow in a simple page. I'm using it at some places and I do not have the issue (even if my pages are complex). Best, Ernesto On Fri, Apr 9, 2010 at 2:04 PM, Martin Asenov mase...@velti.com wrote: Some users might use IE6 for our webapp - how

Re: AjaxFormChoiceComponentUpdatingBehavior on RadioGroup

2010-04-09 Thread Per Newgro
Am 09.04.2010 14:15, schrieb Robert Gründler: Wicket, Spring, DB4O You want this to be set? try @Override protected void populateItem(ListItemString item) { item.add(new RadioString(group-choice, item.getModel())); } Cheers Per

Re: AjaxFormChoiceComponentUpdatingBehavior on RadioGroup

2010-04-09 Thread Thies Edeling
and how to wickettest an AjaxFormChoiceComponentUpdatingBehavior on a RadioGroup? Setting the value in a test is no problem but it never executes the behavior On 04/09/2010 02:45 PM, Per Newgro wrote: Am 09.04.2010 14:15, schrieb Robert Gründler: Wicket, Spring, DB4O You want this to be

Re: AjaxFormChoiceComponentUpdatingBehavior on RadioGroup

2010-04-09 Thread Robert Gründler
Wicket, Spring, DB4O You want this to be set? no, i'm trying to fire an ajax request when a radiobutton is pressed by the user, to handle the selected item on the server. The radiogroup is inside a WizardStep, and i need to update the Wizards model using ajax to display the content's of the

Re: JavaOne in San Francisco

2010-04-09 Thread nino martinez wael
I'd like to have a beer too, but I fear it has to be viirtual. Budget this year are only for geeCon and Devoxx. Maybe overseas next year... regards Nino 2010/4/9 shetc sh...@bellsouth.net: Sounds great! -- View this message in context:

Re: URL Encoding strategy

2010-04-09 Thread Alex Objelean
Issue created: https://issues.apache.org/jira/browse/WICKET-2830 Alex Erik van Oosten wrote: Only Wicket comitters can do that. Please make a jira issue that refers to this discussion, for example with a nabble URL. Regards, Erik. Alex Objelean wrote: I see. But at least

RE: IE6 issue regarding Wicket JS and Ajax

2010-04-09 Thread Martin Asenov
I doubt I can reproduce it. The point is probably that I ajax refresh some div that holds a repeater. The modal window's mask stays in place, instead of getting removed. The modal window itself gets closed and the repeater is refreshed. Regarding the DatePicker - it is not even clickable.

Re: Any mature work on integrating Hibernate Validator with Wicket?

2010-04-09 Thread Uwe Schäfer
David Chang schrieb: Is there any mature work on integrating Hibernate Validator with Wicket? I am unable to find any at wicketstuff. Googled and found this work is interesting. i´d like to contribute my approach to wicketstuff-core. i do have commit access for wicketstuff. is there anyone

Re: JavaOne in San Francisco

2010-04-09 Thread James Carman
There's an app for that: http://www.gadgettastic.com/2008/07/07/iphone-beer-app/ On Fri, Apr 9, 2010 at 9:25 AM, nino martinez wael nino.martinez.w...@gmail.com wrote: I'd like to have a beer too, but I fear it has to be viirtual. Budget this year are only for geeCon and Devoxx. Maybe overseas

Re: Any mature work on integrating Hibernate Validator with Wicket?

2010-04-09 Thread Jeremy Thomerson
nope - just have at it -- Jeremy Thomerson http://www.wickettraining.com 2010/4/9 Uwe Schäfer schae...@thomas-daily.de David Chang schrieb: Is there any mature work on integrating Hibernate Validator with Wicket? I am unable to find any at wicketstuff. Googled and found this work is

Re: JavaOne in San Francisco

2010-04-09 Thread Igor Vaynberg
but i just switched to htc hero :| -igor On Fri, Apr 9, 2010 at 7:10 AM, James Carman jcar...@carmanconsulting.com wrote: There's an app for that: http://www.gadgettastic.com/2008/07/07/iphone-beer-app/ On Fri, Apr 9, 2010 at 9:25 AM, nino martinez wael nino.martinez.w...@gmail.com wrote:

Re: JavaOne in San Francisco

2010-04-09 Thread Johan Compagner
And i to the N900.. I want freedom, dont want to be controlled by fruit On Fri, Apr 9, 2010 at 17:12, Igor Vaynberg igor.vaynb...@gmail.com wrote: but i just switched to htc hero :| -igor On Fri, Apr 9, 2010 at 7:10 AM, James Carman jcar...@carmanconsulting.com wrote: There's an app for

Re: AjaxFormChoiceComponentUpdatingBehavior on RadioGroup

2010-04-09 Thread Per Newgro
Am 09.04.2010 14:50, schrieb Thies Edeling: and how to wickettest an AjaxFormChoiceComponentUpdatingBehavior on a RadioGroup? Setting the value in a test is no problem but it never executes the behavior FormTester.select(componentId, value); FormTester.submit();

Re: IE6 issue regarding Wicket JS and Ajax

2010-04-09 Thread Johan Compagner
its a browser from August 27, 2001 ... thats 9 years ago.. So who is using opera 6 ? Or Netscape 7? Or Safari 1.0 ? Just dont support it anymore, drop it then the usage will also drop Its a chicken and egg problem! if we keep supporting it it will drag on! Force them to upgrade In our product,

FormTester with dynamic fields

2010-04-09 Thread Anna Simbirtsev
Hi, I have the following MarkupContainer: final MarkupContainer panel = new WebMarkupContainer(panel); panel.setOutputMarkupId(true); form.add(panel); ArrayListContact rows = new ArrayListContact(1); rows.add(new Contact()); final ListViewContact

Use Spring's LocalValidatorFactoryBean

2010-04-09 Thread David Chang
I am hoping to use Spring's LocalValidatorFactoryBean and define it in a Spring context file as follows: ?xml version=1.0 encoding=UTF-8? beans xmlns=http://www.springframework.org/schema/beans; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;

Re: Use Spring's LocalValidatorFactoryBean

2010-04-09 Thread Carlos Vara
Just a quick check, in case you are using @SpringBean outside of a Wicket component, you have to inject it manually using: InjectorHolder.getInjector().inject(this); On Fri, Apr 9, 2010 at 5:32 PM, David Chang david_q_zh...@yahoo.com wrote: I am hoping to use Spring's LocalValidatorFactoryBean

Picking different CSS for different styles.

2010-04-09 Thread Apple Grew
Hi All, I am trying to create a themable wicket application which has one html per page but different CSS files to change its looks. The CSS files are referenced in the head of the html. The CSS files have been named as - theme_name-all.css. I am very well able to dynamically generate the CSS

Re: wicket redirecting to relative URLs

2010-04-09 Thread Nikita Tovstoles
For folks who use JMeter to load test wicket apps and are having problems with 404s on redirect URLs containing '/..': I posted a patch to JMeter trunk that fixes the problem by simulating behavior of major browsers - collapsing the URL before issuing the successive GET:

Re: Picking different CSS for different styles.

2010-04-09 Thread Igor Vaynberg
why does it matter if html is cached? you already said its all the same. as far as css resource caching, the theme name is in the url to the css resource as per your example, so once again why does it matter if its cached? -igor On Fri, Apr 9, 2010 at 10:07 AM, Apple Grew appleg...@gmail.com

Re: Use Spring's LocalValidatorFactoryBean

2010-04-09 Thread David Chang
Carlos, thanks for the info. I remember I saw it somewhere but totally forgot this. It worked. Thanks! -David --- On Fri, 4/9/10, Carlos Vara bashfl...@gmail.com wrote: From: Carlos Vara bashfl...@gmail.com Subject: Re: Use Spring's LocalValidatorFactoryBean To: users@wicket.apache.org

Re: Picking different CSS for different styles.

2010-04-09 Thread Jeremy Thomerson
Wicket does not cache the *generated HTML, which is I believe what you are concerned about.* -- Jeremy Thomerson http://www.wickettraining.com On Fri, Apr 9, 2010 at 12:18 PM, Igor Vaynberg igor.vaynb...@gmail.comwrote: why does it matter if html is cached? you already said its all the same.

Re: AjaxFormChoiceComponentUpdatingBehavior on RadioGroup

2010-04-09 Thread Per Newgro
Please check the markup. It's invalid and causes the problems. Try this: wicket:panel form wicket:id=addressform table wicket:id=group tr wicket:id=deliveryaddresses tdinput type=radio wicket:id=group-choice//td /tr /table /form /wicket:panel The span is not allowed there.

Re: Picking different CSS for different styles.

2010-04-09 Thread Apple Grew
@Jeremy If generated Htmls are not cached then how does wicket achieve such good performance? I guess the markups are loaded in memory and the wicket components are filled-in at each request. Is it so? So, if I have a link tag that points to a static url which is modified at runtime by

Re: Picking different CSS for different styles.

2010-04-09 Thread Jeremy Thomerson
Inline On Fri, Apr 9, 2010 at 12:55 PM, Apple Grew appleg...@gmail.com wrote: @Jeremy If generated Htmls are not cached then how does wicket achieve such good performance? I guess the markups are loaded in memory and the wicket components are filled-in at each request. Is it so? Yes -

jqery not getting called after ajax refresh

2010-04-09 Thread tubin gen
I added this jquery code to my page. $(document).ready(function(){ $(a.showHidePrograms).click( function () { var $div= $(this).parent().next(div); if($div.attr(class) == 'hide'){ $div.attr(class,show); }else{ $div.attr(class,hide);

Re: Picking different CSS for different styles.

2010-04-09 Thread Apple Grew
Hey Thanks a lot. I guess header contributor will be the best choice. Regards, Apple Grew my blog @ http://blog.applegrew.com/ On Fri, Apr 9, 2010 at 11:31 PM, Jeremy Thomerson jer...@wickettraining.com wrote: Inline On Fri, Apr 9, 2010 at 12:55 PM, Apple Grew appleg...@gmail.com

Re: JavaOne in San Francisco

2010-04-09 Thread James Carman
I've got a G1. Unfortunately T-Mobile won't give me the new OS update yet. :( On Fri, Apr 9, 2010 at 11:12 AM, Igor Vaynberg igor.vaynb...@gmail.com wrote: but i just switched to htc hero :| -igor On Fri, Apr 9, 2010 at 7:10 AM, James Carman jcar...@carmanconsulting.com wrote: There's an

Re: jqery not getting called after ajax refresh

2010-04-09 Thread Jeremy Thomerson
That's because your JS is only adding the onclick handler when the document is ready. Later, when you replace those links that you added the onclick handler to, they are replaced, and therefore no longer have the old onclick handlers. You will need to trigger the addition of your onclick handler

AW: jqery not getting called after ajax refresh

2010-04-09 Thread Stefan Lindner
Just some ideas: 1. After the Ajax action, the element that are target of the ajax call ere replaced in the DOM. The function that you bind ONCE and ONLY ONE in header are not automatically appliet to the replaced elements. 2. Does it hatten in IE too? I know of a similar problem that effects

java.lang.IndexOutOfBoundsException ListItemModel getObject

2010-04-09 Thread Mathias Nilsson
Hi, I need help to get around this error I'm getting. I have a list of products in my cart that I have added. In another session the administrator has deleted the products. When I hit a refresh link ( AjaxSubmitLink ) I get an IndexOutOfBoundsException. This is done before getting to the

Re: java.lang.IndexOutOfBoundsException ListItemModel getObject

2010-04-09 Thread Mathias Nilsson
This is the stack trace ERROR - RequestCycle - Index: 0, Size: 0 java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 at java.util.ArrayList.RangeCheck(Unknown Source) at java.util.ArrayList.get(Unknown Source) at

RE: jqery not getting called after ajax refresh

2010-04-09 Thread Russell Morrisey
It might be a good idea to use an IBehavior to contribute the script. You can add the behavior to the link component in wicket; when the behavior is rendered, it can contribute the javascript code to set it up with jquery. That way, you ensure that every new rendering of the link (which creates

Re: JavaOne in San Francisco

2010-04-09 Thread Eelco Hillenius
And i to the N900.. I want freedom, dont want to be controlled by fruit That's because you're enough of a fruity yourself. For most people though, an Apple a day is very healthy. Eelco - To unsubscribe, e-mail:

Re: DatePicker icon dont disappear when parent textfield is set to visible false

2010-04-09 Thread Mathias Nilsson
setOutputMarkupPlaceholderTag( true ) might work -- View this message in context: http://old.nabble.com/DatePicker-icon-dont-disappear-when-parent-textfield-is-set-to--visible-false-tp28188761p28198329.html Sent from the Wicket - User mailing list archive at Nabble.com.

debugging PageExpiredExceptions

2010-04-09 Thread Nikita Tovstoles
We're seeing a PageExpiredExceptions in roughly 2-6% of our production web sessions and cannot determine the root cause: 1. it's not a session affinity problem (we went as far as running a single node - the exceptions persisted) 2. it's not a session expiration case (our avg production

Re: debugging PageExpiredExceptions

2010-04-09 Thread Nikita Tovstoles
Here's a typical exception: 00:01:17,644 ERROR CLPWebRequestCycle:34 - Cannot find the rendered page in session [pagemap=null,componentPath=7:results:resultsInfo:criteriaContainer:inputPanel:categorySearchForm:submitLink:searchButton,versionNumber=0]

Re: jqery not getting called after ajax refresh

2010-04-09 Thread Ben Tilford
Try function setup() { $(a.showHidePrograms).click( function () { var $div= $(this).parent().next(div); if($div.attr(class) == 'hide'){ $div.attr(class,show); }else{ $div.attr(class,hide); } } ); } $(document).ready(function(){ setup();

Re: jqery not getting called after ajax refresh

2010-04-09 Thread Jeremy Thomerson
Yes - this is the exact way to do it so that you don't have to duplicate the script on each request. Thanks for the great post! -- Jeremy Thomerson http://www.wickettraining.com On Fri, Apr 9, 2010 at 6:07 PM, Ben Tilford bentilf...@gmail.com wrote: Try function setup() {

Re: DatePicker icon dont disappear when parent textfield is set to visible false

2010-04-09 Thread Jeremy Thomerson
If that doesn't work, just wrap the textfields in a WebMarkupContainer and set the visibility of the container instead. This happens because the date picker adds the image icon outside of the actual input, so the input doesn't have a way of removing the other element from the DOM. -- Jeremy