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 maker! This is a late
 browser! It's a stiff! Bereft of life, it rests in peace! If you
 hadn't nailed him to the perch he would be pushing up the daisies! Its
 metabolical processes are of interest only to historians! It's hopped
 the twig! It's shuffled off this mortal coil! It's run down the
 curtain and joined the choir invisible! This is an EX-BROWSER!

 http://ie6funeral.com

 Martijn

 On Thu, Apr 8, 2010 at 4:17 PM, Martin Asenov mase...@velti.com wrote:
 Hello, everyone!
 I just noticed that my DatePicker doesn't work in IE6 - it doesn't even get 
 displayed on mouse click. Also, when I close a modal window, the mask isn't 
 hidden and the underlying page is not intractable, so I'm forced to refresh 
 the whole page.
 Also, ajax components update cause some screen flickering and misplacing 
 some components (images, dropdown choices, etc.)
 All problems occur in IE6.
 Any ideas?
 Best,





 --
 Become a Wicket expert, learn from the best: http://wicketinaction.com
 Apache Wicket 1.4 increases type safety for web applications
 Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.4.4

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 achieve this is with a solution as stated by Nishant 
(involving some kind of JS polling) ...


   -Tom


Am 09.04.2010 08:48, schrieb 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.




-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 WebPage implements IAjaxIndicatorAware {
  //...
  @Override
   public String getAjaxIndicatorMarkupId() {
 return ajaxIndicator;
   }
   //...
}

That's all. Now  ajaxIndicator DOM element to appear when ajax call will
start and will disappear when it will complete.

Hope this was helpful.

Alex Objelean


Thomas Götz wrote:
 
 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 achieve this is with a solution as stated by Nishant 
 (involving some kind of JS polling) ...
 
 -Tom
 
 
 Am 09.04.2010 08:48, schrieb 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.

 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 

-- 
View this message in context: 
http://old.nabble.com/How-to-give-feedback-in-long-running-operation-within-AjaxButton.onSubmit%28%29--tp28182827p28188414.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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


Am 09.04.2010 09:05, schrieb Alex Objelean:

That's all. Now  ajaxIndicator DOM element to appear when ajax call will
start and will disappear when it will complete.



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 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
 
 
 Am 09.04.2010 09:05, schrieb Alex Objelean:
 That's all. Now  ajaxIndicator DOM element to appear when ajax call will
 start and will disappear when it will complete.
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 

-- 
View this message in context: 
http://old.nabble.com/How-to-give-feedback-in-long-running-operation-within-AjaxButton.onSubmit%28%29--tp28182827p28188512.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 progress-bar.
This seems to work fine for me but might not be the most efficient
solution... I can give you more details if you want.

Best,

Ernesto

On Fri, Apr 9, 2010 at 8:55 AM, Thomas Götz t...@richmountain.de wrote:

 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
 achieve this is with a solution as stated by Nishant (involving some kind of
 JS polling) ...

   -Tom


 Am 09.04.2010 08:48, schrieb 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.



 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




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
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 progress-bar.
This seems to work fine for me but might not be the most efficient
solution... I can give you more details if you want.

Best,

Ernesto

On Fri, Apr 9, 2010 at 8:55 AM, Thomas Götzt...@richmountain.de  wrote:


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
achieve this is with a solution as stated by Nishant (involving some kind of
JS polling) ...

   -Tom


Am 09.04.2010 08:48, schrieb 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.




-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org







-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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.

I figured out that it is possible to overwrite the icons but I would like it
more if the icons could just disappear when I set the parent textfields to
visible false.

Can please anyone help?

Thank you and best regards
Christoph


Example source:

snip

/* pauseVon */
_pauseVon = new TextFieldString(pauseVon, pauseVonModel);
 _pauseVon.add(new DatePicker()
{

private static final long serialVersionUID=1L;

@Override
protected String getDatePattern()
{
return dd.MM.yy 00:00;
}
});
 
_pauseVon.setRequired(true).setOutputMarkupId(true).setOutputMarkupPlaceholderTag(true).setVisible(false);
 add(_pauseVon);

/* pauseBis */
 _pauseBis = new TextFieldString(pauseBis, pauseBisModel);
 _pauseBis.add(new DatePicker()
{

private static final long serialVersionUID=1L;

@Override
protected String getDatePattern()
{
return dd.MM.yy 00:00;
}
});
_pauseBis.setRequired(true).setOutputMarkupId(true).setOutputMarkupPlaceholderTag(true).setVisible(false);
add(_pauseBis);

/* selectbox */
_selectArt.add(new AjaxFormComponentUpdatingBehavior(onchange)
{

private static final long serialVersionUID=1L;

protected void onUpdate(AjaxRequestTarget target)
 {
if(selectArtModel.getObject().equals(1))
{
_pauseVon.setVisible(true);
_pauseBis.setVisible(true);
target.addComponent(_pauseVon);
target.addComponent(_pauseBis);
}
else
{
_pauseVon.setVisible(false);
_pauseBis.setVisible(false);
target.addComponent(_pauseVon);
target.addComponent(_pauseBis);
}
  }
});
_selectArt.setRequired(true).setOutputMarkupId(true).setOutputMarkupPlaceholderTag(true).setVisible(true);
add(_selectArt);

/snip


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, Form? arg1) {
setResponsePage(Calendar.class);
  }

}));
  }

  @Override
  protected void onAfterRender() {

super.onAfterRender();

getSession().invalidate();
RequestCycle.get().setRedirect(true);

  }

}

I used to have a BookmarkablePageLink instead of this button, that pointed to 
the very same page. However, obviously this button is related to the session 
and instead of sending me to the login page, it sends me to pageExpiredPage. 
Unfortunately, the new UI I have to use uses a button, so I had to use a button 
as well.
Can anyone assist me on this?

Best,
Martin


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 requests doesn't change page ever, so 
serialization of page isn't necessary. For example it is forward caching 
data for (home-brewed) datagrid component. These requests are calling 
continuously and serialization of page during each request causes delays.


There are some projects for stateless wicket components out there (e.g. 
wicket-stateless, http://code.google.com/p/jolira-tools/), but it solves 
another situation -- request of stateless components are processed on 
new instances of pages. I want to process it on existing page instance 
but without its serialization.


I have tried to implement semi-stateless behaviors in own 
RequestCycleProcessor.resolve(), but I hung on searching for page from 
requestParameters -- Session.getPage() always touches page and it causes 
serialization after request processing.


Is there any example, idea, whatever for implementing this in Wicket?

Hope it's understandable :)

Thank you, Martin Schayna



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, 2010 12:44 AM
To: users@wicket.apache.org
Subject: Re: How to give feedback in long-running operation within
AjaxButton.onSubmit()?

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
 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 progress-bar.
 This seems to work fine for me but might not be the most efficient
 solution... I can give you more details if you want.

 Best,

 Ernesto

 On Fri, Apr 9, 2010 at 8:55 AM, Thomas Götzt...@richmountain.de  wrote:

 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
 achieve this is with a solution as stated by Nishant (involving some kind
of
 JS polling) ...

-Tom


 Am 09.04.2010 08:48, schrieb 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.



 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org





-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 
case, especially knowing that Wicket 1.5 will thoroughly improve URL 
handling.


Regards,
   Erik.


Alex Objelean wrote:

Hi Eric!
I've noticed that you have already posted the solution on your blog
(http://blog.jteam.nl/2010/02/24/wicket-root-mounts/). Thank you for sharing
it with us. 


One question, why BookmarkablePageRequestTargetUrlCodingStrategy#encode
method is still final even in wicket-1.4.7 if there is a good use-case for
extending it?

Also, maybe you could add this contribution to wicket core or at least
wicket-extension?

Thank you!
Alex Objelean
 


Erik van Oosten wrote:
  

Hi Nishant,

This is tricky stuff.

Here is some information: 
http://old.nabble.com/How-to-catch-unknown-%28not-mounted%29-URLs--td14949092.html

Another approach is to do redirects from a servlet filter.

If you have a couple of days of patience I'll have finished a blog 
article on it, with example code to make it a lot easier from within

Wicket.

Regards,
 Erik.

Op 20-02-10 11:07, Nishant Neeraj wrote:


Hi,

I wanted to apply URL encoding strategy to application context root but I
cant mount empty string because it throws exception at start-up.
Is there a work around to this?

Regards
Nishant
   
  


--
Sent from my SMTP compliant software
Erik van Oosten
http://day-to-day-stuff.blogspot.com/



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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


Erik van Oosten wrote:
 
 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 
 case, especially knowing that Wicket 1.5 will thoroughly improve URL 
 handling.
 
 Regards,
 Erik.
 
 
 Alex Objelean wrote:
 Hi Eric!
 I've noticed that you have already posted the solution on your blog
 (http://blog.jteam.nl/2010/02/24/wicket-root-mounts/). Thank you for
 sharing
 it with us. 

 One question, why BookmarkablePageRequestTargetUrlCodingStrategy#encode
 method is still final even in wicket-1.4.7 if there is a good use-case
 for
 extending it?

 Also, maybe you could add this contribution to wicket core or at least
 wicket-extension?

 Thank you!
 Alex Objelean
  

 Erik van Oosten wrote:
   
 Hi Nishant,

 This is tricky stuff.

 Here is some information: 
 http://old.nabble.com/How-to-catch-unknown-%28not-mounted%29-URLs--td14949092.html
 Another approach is to do redirects from a servlet filter.

 If you have a couple of days of patience I'll have finished a blog 
 article on it, with example code to make it a lot easier from within
 Wicket.

 Regards,
  Erik.

 Op 20-02-10 11:07, Nishant Neeraj wrote:
 
 Hi,

 I wanted to apply URL encoding strategy to application context root but
 I
 cant mount empty string because it throws exception at start-up.
 Is there a work around to this?

 Regards
 Nishant

   
 
 -- 
 Sent from my SMTP compliant software
 Erik van Oosten
 http://day-to-day-stuff.blogspot.com/
 
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 

-- 
View this message in context: 
http://old.nabble.com/URL-Encoding-strategy-tp27664942p28189285.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 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, 2010 12:44 AM
To: users@wicket.apache.org
Subject: Re: How to give feedback in long-running operation within
AjaxButton.onSubmit()?

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
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 progress-bar.
This seems to work fine for me but might not be the most efficient
solution... I can give you more details if you want.

Best,

Ernesto

On Fri, Apr 9, 2010 at 8:55 AM, Thomas Götzt...@richmountain.de   wrote:


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

achieve this is with a solution as stated by Nishant (involving some kind

of

JS polling) ...

-Tom


Am 09.04.2010 08:48, schrieb 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.




-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org







-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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

References,


1-
http://code.google.com/p/antilia/source/browse/#svn/trunk/com.antilia.web/src/com/antilia/web/export
2-
http://code.google.com/p/antilia/source/browse/#svn/trunk/com.antilia.web/src/com/antilia/web/progress
3-
http://code.google.com/p/antilia/source/browse/#svn/trunk/com.antilia.export/src/com/antilia/export/pdf
4-
http://code.google.com/p/antilia/source/browse/#svn/trunk/com.antilia.export/src/com/antilia/export/excel


On Fri, Apr 9, 2010 at 9:44 AM, Thomas Götz t...@richmountain.de wrote:

 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
 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 progress-bar.
 This seems to work fine for me but might not be the most efficient
 solution... I can give you more details if you want.

 Best,

 Ernesto

 On Fri, Apr 9, 2010 at 8:55 AM, Thomas Götzt...@richmountain.de  wrote:

  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
 achieve this is with a solution as stated by Nishant (involving some kind
 of
 JS polling) ...

   -Tom


 Am 09.04.2010 08:48, schrieb 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.



 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org





 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




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 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


Erik van Oosten wrote:
  

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 
case, especially knowing that Wicket 1.5 will thoroughly improve URL 
handling.


Regards,
Erik.


Alex Objelean wrote:


Hi Eric!
I've noticed that you have already posted the solution on your blog
(http://blog.jteam.nl/2010/02/24/wicket-root-mounts/). Thank you for
sharing
it with us. 


One question, why BookmarkablePageRequestTargetUrlCodingStrategy#encode
method is still final even in wicket-1.4.7 if there is a good use-case
for
extending it?

Also, maybe you could add this contribution to wicket core or at least
wicket-extension?

Thank you!
Alex Objelean
 


Erik van Oosten wrote:
  
  

Hi Nishant,

This is tricky stuff.

Here is some information: 
http://old.nabble.com/How-to-catch-unknown-%28not-mounted%29-URLs--td14949092.html

Another approach is to do redirects from a servlet filter.

If you have a couple of days of patience I'll have finished a blog 
article on it, with example code to make it a lot easier from within

Wicket.

Regards,
 Erik.

Op 20-02-10 11:07, Nishant Neeraj wrote:



Hi,

I wanted to apply URL encoding strategy to application context root but
I
cant mount empty string because it throws exception at start-up.
Is there a work around to this?

Regards
Nishant
  


--
Sent from my SMTP compliant software
Erik van Oosten
http://day-to-day-stuff.blogspot.com/



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 to
use/change the code there as it best suits your needs.

Ernesto




-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 AjaxFormComponentUpdatingBehavior(onchange)
{

private static final long serialVersionUID=1L;

protected void onUpdate(AjaxRequestTarget target)
{
if(selectArtModel.getObject().equals(1))
{

System.out.println(test id: +_pauseVon.getMarkupId());

//_pauseVon.setVisible(true);
//_pauseBis.setVisible(true);
_bPause = true;
target.addComponent(_pauseVon);
target.addComponent(_pauseBis);

}
else
{
//_pauseVon.setVisible(false);
//_pauseBis.setVisible(false);
_bPause = false;
target.addComponent(_pauseVon);
target.addComponent(_pauseBis);

}
}
});

/* pauseVon textfield with datepicker */
_pauseVon = new TextFieldString(pauseVon, pauseVonModel)
{

private static final long serialVersionUID=1L;

@Override
public boolean isVisible()
{
_logger.severe(von: +_bPause);
return _bPause;
}
};

---8---

wicket:enclosure child=pauseVon
input type=text wicket:id=pauseVon /
/wicket:enclosure

/snip




On Fri, Apr 9, 2010 at 9:50 AM, Per Newgro per.new...@gmx.ch wrote:

 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




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: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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, everyone!
I just noticed that my DatePicker doesn't work in IE6 - it doesn't even get 
displayed on mouse click. Also, when I close a modal window, the mask isn't 
hidden and the underlying page is not intractable, so I'm forced to refresh the 
whole page.
Also, ajax components update cause some screen flickering and misplacing some 
components (images, dropdown choices, etc.)
All problems occur in IE6.
Any ideas?
Best,


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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
http://code.google.com/p/wicket-gae-template/


-- Tony

On Thu, Apr 8, 2010 at 11:13 PM, Anton Veretennikov 
anton.veretenni...@gmail.com wrote:

 Very interesting, Jake, thank you, i'll look into it.
 I think i'm solving my problem just trying to modify the status of object
 inside a transaction - at the end it is throwing an exception that it can't
 commit. I'm testing if it really doing what i need.

 -- Tony


 On Wed, Apr 7, 2010 at 8:59 PM, jbrookover jbrooko...@cast.org wrote:


 Finally!  I've found others who are looking into Wicket on GAE.  :)

 Something else to look into, that is frequently mentioned on the GAE/J
 lists
 but not here, is Objectify - a very thin layer over the GAE datastore.  I
 was using JDO, PMF, etc and found Objectify to be a pretty easy switch.
 Also, in the process, I discovered several cases where JDO features were
 not implemented as I thought.  For example, I thought I could use JDO
 transactions to prevent race conditions in a case where two users were
 trying to create identical objects (when I only wanted one).  It turns out
 that may not be the case and I would need to manage the lock/permissions
 myself.

 See:

 http://groups.google.com/group/objectify-appengine/browse_thread/thread/d71889d94ebf8302

 Glad to find other GAE/Wicket users!

 Jake


 intmanch wrote:
 
  Hi all,
 
I've been actively using wicket on GAE for quite a lot of months
 and
  I
  love it, but I've quite serious performance problems. I already checked
  all
  the advices to speed up the performance but still is quite slow
 specially
  for some requests or opening a bookmarkable page. I don't know what to
 do,
  I
  use DataView, that it's quite performant, LoadableDetachableModels
  everywhere, session is ok in size, so I don't know if there is something
 I
  can tune on the RequestCycle servlet?
 
Thanks!
 
 

 --
 View this message in context:
 http://old.nabble.com/Wicket-GAE-performance-tp28118591p28164599.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org





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

-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, everyone!
I just noticed that my DatePicker doesn't work in IE6 - it doesn't even get
displayed on mouse click. Also, when I close a modal window, the mask isn't
hidden and the underlying page is not intractable, so I'm forced to refresh
the whole page.
Also, ajax components update cause some screen flickering and misplacing
some components (images, dropdown choices, etc.)
All problems occur in IE6.
Any ideas?
Best,


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 regarding Wicket JS and Ajax



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

-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, everyone!
I just noticed that my DatePicker doesn't work in IE6 - it doesn't even get
displayed on mouse click. Also, when I close a modal window, the mask isn't
hidden and the underlying page is not intractable, so I'm forced to refresh
the whole page.
Also, ajax components update cause some screen flickering and misplacing
some components (images, dropdown choices, etc.)
All problems occur in IE6.
Any ideas?
Best,


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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, but the fact is that it's still
out there (it's in 5th place out of the 7 browsers listed).


On Fri, Apr 9, 2010 at 8:04 AM, Martin Asenov mase...@velti.com wrote:
 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 regarding Wicket JS and Ajax



 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

 -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, everyone!
 I just noticed that my DatePicker doesn't work in IE6 - it doesn't even get
 displayed on mouse click. Also, when I close a modal window, the mask isn't
 hidden and the underlying page is not intractable, so I'm forced to refresh
 the whole page.
 Also, ajax components update cause some screen flickering and misplacing
 some components (images, dropdown choices, etc.)
 All problems occur in IE6.
 Any ideas?
 Best,


 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org


 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org


 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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, DB4O }; 
group = new RadioGroup(group, new ModelString());
ListViewString deliveryAddresses = new ListViewString(deliveryaddresses, 
Arrays.asList(choices)) {
@Override
protected void populateItem(ListItemString item) {
item.add(new RadioString(group-choice, new 
ModelString()));
}
};

group.setOutputMarkupId(true);
group.add(new AjaxFormChoiceComponentUpdatingBehavior() {
@Override
protected void onUpdate(AjaxRequestTarget target) {
System.out.println(on change);
}
});
group.add(deliveryAddresses);
form.add(group);
add(form);

/* markup */

wicket:panel
form wicket:id=addressform  
table
span wicket:id=group
tr wicket:id=deliveryaddresses
tdinput type=radio 
wicket:id=group-choice//td
/tr
/span
/table
/form
/wicket:panel


Has anyone an idea what i might be missing ?


thanks!

-robert
-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 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, but the fact is that it's still
out there (it's in 5th place out of the 7 browsers listed).



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 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 regarding Wicket JS and Ajax



 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

 -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, everyone!
 I just noticed that my DatePicker doesn't work in IE6 - it doesn't even get
 displayed on mouse click. Also, when I close a modal window, the mask isn't
 hidden and the underlying page is not intractable, so I'm forced to refresh
 the whole page.
 Also, ajax components update cause some screen flickering and misplacing
 some components (images, dropdown choices, etc.)
 All problems occur in IE6.
 Any ideas?
 Best,


 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org


 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org


 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




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

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 set?

try

@Override
protected void populateItem(ListItemString  item) {
  item.add(new RadioString(group-choice, item.getModel()));
}

Cheers
Per

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org





-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 next step accordingly.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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: 
 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: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 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


 Erik van Oosten wrote:
   
 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 
 case, especially knowing that Wicket 1.5 will thoroughly improve URL 
 handling.

 Regards,
 Erik.


 Alex Objelean wrote:
 
 Hi Eric!
 I've noticed that you have already posted the solution on your blog
 (http://blog.jteam.nl/2010/02/24/wicket-root-mounts/). Thank you for
 sharing
 it with us. 

 One question, why BookmarkablePageRequestTargetUrlCodingStrategy#encode
 method is still final even in wicket-1.4.7 if there is a good use-case
 for
 extending it?

 Also, maybe you could add this contribution to wicket core or at least
 wicket-extension?

 Thank you!
 Alex Objelean
  

 Erik van Oosten wrote:
   
   
 Hi Nishant,

 This is tricky stuff.

 Here is some information: 
 http://old.nabble.com/How-to-catch-unknown-%28not-mounted%29-URLs--td14949092.html
 Another approach is to do redirects from a servlet filter.

 If you have a couple of days of patience I'll have finished a blog 
 article on it, with example code to make it a lot easier from within
 Wicket.

 Regards,
  Erik.

 Op 20-02-10 11:07, Nishant Neeraj wrote:
 
 
 Hi,

 I wanted to apply URL encoding strategy to application context root
 but
 I
 cant mount empty string because it throws exception at start-up.
 Is there a work around to this?

 Regards
 Nishant
   
 
 -- 
 Sent from my SMTP compliant software
 Erik van Oosten
 http://day-to-day-stuff.blogspot.com/
 
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 

-- 
View this message in context: 
http://old.nabble.com/URL-Encoding-strategy-tp27664942p28190842.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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. 

Best,
Martin

-Original Message-
From: Ernesto Reinaldo Barreiro [mailto:reier...@gmail.com] 
Sent: Friday, April 09, 2010 3:44 PM
To: users@wicket.apache.org
Subject: Re: IE6 issue regarding Wicket JS and Ajax

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 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 regarding Wicket JS and Ajax



 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

 -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, everyone!
 I just noticed that my DatePicker doesn't work in IE6 - it doesn't even get
 displayed on mouse click. Also, when I close a modal window, the mask isn't
 hidden and the underlying page is not intractable, so I'm forced to refresh
 the whole page.
 Also, ajax components update cause some screen flickering and misplacing
 some components (images, dropdown choices, etc.)
 All problems occur in IE6.
 Any ideas?
 Best,


 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org


 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org


 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 to ask/any procedure to fulfill in order to create a new 
wicketstuff-core project ?


cu uwe

--
THOMAS DAILY GmbH
Adlerstraße 19
79098 Freiburg
Deutschland
T  + 49 761 3 85 59 0
F  + 49 761 3 85 59 550
E  schae...@thomas-daily.de
www.thomas-daily.de

Geschäftsführer/Managing Directors:
Wendy Thomas, Susanne Larbig
Handelsregister Freiburg i.Br., HRB 3947

Registrieren Sie sich unter http://www.signin.thomas-daily.de für die 
kostenfreien TD Morning News, eine  Auswahl aktueller Themen des Tages 
morgens um 9:00 in Ihrer Mailbox.


Hinweis: Der Redaktionsschluss für unsere TD Morning News ist täglich um 
8:30 Uhr. Es werden vorrangig Informationen berücksichtigt, die nach 
16:00 Uhr des Vortages eingegangen sind. Die Email-Adresse unserer 
Redaktion lautet redakt...@thomas-daily.de.


To receive the free TD News International – a selection of the day’s top 
issues delivered to your mail box every day – please register at 
www.signin.thomas-daily.de


Please note: Information received for our TD News International after 4 
p.m. will be given priority for publication the following day. The daily 
editorial deadline is 8:30 a.m. You can reach our editorial staff at 
redakt...@thomas-daily.de.



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 next year...

 regards Nino

 2010/4/9 shetc sh...@bellsouth.net:

 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: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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
 interesting.


 i´d like to contribute my approach to wicketstuff-core.
 i do have commit access for wicketstuff.

 is there anyone to ask/any procedure to fulfill in order to create a new
 wicketstuff-core project ?

 cu uwe

 --
 THOMAS DAILY GmbH
 Adlerstraße 19
 79098 Freiburg
 Deutschland
 T  + 49 761 3 85 59 0
 F  + 49 761 3 85 59 550
 E  schae...@thomas-daily.de
 www.thomas-daily.de

 Geschäftsführer/Managing Directors:
 Wendy Thomas, Susanne Larbig
 Handelsregister Freiburg i.Br., HRB 3947

 Registrieren Sie sich unter http://www.signin.thomas-daily.de für die
 kostenfreien TD Morning News, eine  Auswahl aktueller Themen des Tages
 morgens um 9:00 in Ihrer Mailbox.

 Hinweis: Der Redaktionsschluss für unsere TD Morning News ist täglich um
 8:30 Uhr. Es werden vorrangig Informationen berücksichtigt, die nach 16:00
 Uhr des Vortages eingegangen sind. Die Email-Adresse unserer Redaktion
 lautet redakt...@thomas-daily.de.

 To receive the free TD News International – a selection of the day’s top
 issues delivered to your mail box every day – please register at
 www.signin.thomas-daily.de

 Please note: Information received for our TD News International after 4
 p.m. will be given priority for publication the following day. The daily
 editorial deadline is 8:30 a.m. You can reach our editorial staff at
 redakt...@thomas-daily.de.



 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




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:
 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: 
 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: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 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 next year...
 
  regards Nino
 
  2010/4/9 shetc sh...@bellsouth.net:
 
  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: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




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();
WicketTester.executeAjaxEvent(componentId, eventName);

Cheers
Per

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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, Servoy 5.0 an on, we even test for it and display a page
that users have to upgrade because it is not supported anymore.

johan




On Fri, Apr 9, 2010 at 14:09, James Carman jcar...@carmanconsulting.comwrote:

 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, but the fact is that it's still
 out there (it's in 5th place out of the 7 browsers listed).


 On Fri, Apr 9, 2010 at 8:04 AM, Martin Asenov mase...@velti.com wrote:
  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 regarding Wicket JS and Ajax
 
 
 
  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
 
  -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, everyone!
  I just noticed that my DatePicker doesn't work in IE6 - it doesn't even
 get
  displayed on mouse click. Also, when I close a modal window, the mask
 isn't
  hidden and the underlying page is not intractable, so I'm forced to
 refresh
  the whole page.
  Also, ajax components update cause some screen flickering and misplacing
  some components (images, dropdown choices, etc.)
  All problems occur in IE6.
  Any ideas?
  Best,
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




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 lv = new ListViewContact(rows, rows) {

private static final long serialVersionUID = 1L;

@Override
protected void populateItem(ListItemContact item) {
 Contact c = new Contact();

 TextFieldContact text = new TextFieldContact(field,
new PropertyModelContact(c, id));

 item.add(text);
}
};
lv.setReuseItems(true);
panel.add(lv);

There is also an ADD MORE button, that adds more of those on the page.


div wicket:id=panel
   span wicket:id=rows
  input wicket:id=field name=large type=text
/
   /span
/div

I using FormTester to test the page:
FormTester formTester = getWicketTester().newFormTester(myForm);

formTester.setValue(field, BLAH);

But that does not work.

Thanks,
Anna


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;
xmlns:tx=http://www.springframework.org/schema/tx;
xmlns:util=http://www.springframework.org/schema/util;
xmlns:mvc=http://www.springframework.org/schema/mvc;
xmlns:context=http://www.springframework.org/schema/context;
xsi:schemaLocation=http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/tx
http://www.springframework.org/schema/tx/spring-tx-3.0.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-3.0.xsd
http://www.springframework.org/schema/task
http://www.springframework.org/schema/task/spring-task-3.0.xsd
http://www.springframework.org/schema/util
http://www.springframework.org/schema/util/spring-util-3.0.xsd;

bean id=validator 
class=org.springframework.validation.beanvalidation.LocalValidatorFactoryBean 
/

/beans


However, Spring-configured validator in code is always null:

@SpringBean
protected Validator validator;

In the same Spring context file, I defined other DAO beans used by wicket 
components and they are just fine.

Did anyone have success in configuring and using LocalValidatorFactoryBean? 
What did I do is wrong?

I am using Spring 3.0.2, Hibernate Validator 4.0.2, and Wicket 1.4.7.

Thanks for any input!

Best.





  

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 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;
 xmlns:tx=http://www.springframework.org/schema/tx;
 xmlns:util=http://www.springframework.org/schema/util;
 xmlns:mvc=http://www.springframework.org/schema/mvc;
 xmlns:context=http://www.springframework.org/schema/context;
 xsi:schemaLocation=http://www.springframework.org/schema/beans
 http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
 http://www.springframework.org/schema/tx
 http://www.springframework.org/schema/tx/spring-tx-3.0.xsd
 http://www.springframework.org/schema/context
 http://www.springframework.org/schema/context/spring-context-3.0.xsd
 http://www.springframework.org/schema/task
 http://www.springframework.org/schema/task/spring-task-3.0.xsd
 http://www.springframework.org/schema/util
 http://www.springframework.org/schema/util/spring-util-3.0.xsd;

 bean id=validator
 class=org.springframework.validation.beanvalidation.LocalValidatorFactoryBean
 /

 /beans


 However, Spring-configured validator in code is always null:

 @SpringBean
 protected Validator validator;

 In the same Spring context file, I defined other DAO beans used by wicket
 components and they are just fine.

 Did anyone have success in configuring and using LocalValidatorFactoryBean?
 What did I do is wrong?

 I am using Spring 3.0.2, Hibernate Validator 4.0.2, and Wicket 1.4.7.

 Thanks for any input!

 Best.







 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




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
urls based on the theme name. The theme names are fetched from session, as,
MySession.getThemeName().

My concern is, that Wicket might cache the generated html file. So even if
the theme changes at runtime, the html with old CSS names will be served.
Furthermore, each user can have different themes, but here we have only
html.

If my understanding is correct then I should set the style to the theme
name. I read somewhere that Wicket generates keys to reference the cached
resources. So, I am guessing, that user A tries to access Home.html with
'classic' style then Wicket will render and cache that page as (say)
classic-Home. Now, if user B tries to access the same page but with style
'jazzy' then Wicket will use another key to store cache.

I am simply guessing. Am I on the right track? Will this work?

Regards,
Apple Grew
my blog @ http://blog.applegrew.com/


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:

https://issues.apache.org/bugzilla/show_bug.cgi?id=49083

apply to JMeter trunk

On Thu, Apr 8, 2010 at 12:06 PM, Nikita Tovstoles 
nikita.tovsto...@gmail.com wrote:

 ahh, good point. I was looking at this:

 http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.30

  http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.30Are you
 suggesting it's Tomcat's responsibility to either:

- collapse the '/../' when generating the absolute URL for the Location
response header OR
- deal with those URLs when parsing a request?


 -nikita

 On Thu, Apr 8, 2010 at 8:35 AM, Nikita Tovstoles 
 nikita.tovsto...@gmail.com wrote:

 I am working on a patch to JMeter to rewrite absolute URLs containing
 '/../' before issuing GETs and have an observation and a question. The
 problem is described here:
 http://markmail.org/thread/3ci5hayvqyjhi2ud

 FWIW this was discussed before and there's WICKET-2728 and related JIRAs.
 My understanding is that the reason wicket chose to break the RFC and issue
 relative URL redirects is to accommodate a 'real world' case. I can
 understand that.

 Unfortunately, Response.encodeRedirectURL in Tomcat will rewrite
 redirectURL to absolute anyway, thus returning Location as absolute yet
 containing '/../'  that - if replayed as is - will result in a 404. (see
 toAbsolute() in
 http://kickjava.com/src/org/apache/catalina/connector/Response.java.htm).
 So the benefit derived from breaking RFC seems to be obviated, no?

 So, given that Tomcat is widely used container, what was the logic in
 trading off RFC compliance? Just trying to understand the philosophy.

 thanks

 -nikita







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 wrote:
 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
 urls based on the theme name. The theme names are fetched from session, as,
 MySession.getThemeName().

 My concern is, that Wicket might cache the generated html file. So even if
 the theme changes at runtime, the html with old CSS names will be served.
 Furthermore, each user can have different themes, but here we have only
 html.

 If my understanding is correct then I should set the style to the theme
 name. I read somewhere that Wicket generates keys to reference the cached
 resources. So, I am guessing, that user A tries to access Home.html with
 'classic' style then Wicket will render and cache that page as (say)
 classic-Home. Now, if user B tries to access the same page but with style
 'jazzy' then Wicket will use another key to store cache.

 I am simply guessing. Am I on the right track? Will this work?

 Regards,
 Apple Grew
 my blog @ http://blog.applegrew.com/


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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
 Date: Friday, April 9, 2010, 12:54 PM
 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
 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;
  xmlns:tx=http://www.springframework.org/schema/tx;
  xmlns:util=http://www.springframework.org/schema/util;
  xmlns:mvc=http://www.springframework.org/schema/mvc;
  xmlns:context=http://www.springframework.org/schema/context;
  xsi:schemaLocation=http://www.springframework.org/schema/beans
  http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
  http://www.springframework.org/schema/tx
  http://www.springframework.org/schema/tx/spring-tx-3.0.xsd
  http://www.springframework.org/schema/context
  http://www.springframework.org/schema/context/spring-context-3.0.xsd
  http://www.springframework.org/schema/task
  http://www.springframework.org/schema/task/spring-task-3.0.xsd
  http://www.springframework.org/schema/util
  http://www.springframework.org/schema/util/spring-util-3.0.xsd;
 
  bean id=validator
 
 class=org.springframework.validation.beanvalidation.LocalValidatorFactoryBean
  /
 
  /beans
 
 
  However, Spring-configured validator in code is always
 null:
 
  @SpringBean
  protected Validator validator;
 
  In the same Spring context file, I defined other DAO
 beans used by wicket
  components and they are just fine.
 
  Did anyone have success in configuring and using
 LocalValidatorFactoryBean?
  What did I do is wrong?
 
  I am using Spring 3.0.2, Hibernate Validator 4.0.2,
 and Wicket 1.4.7.
 
  Thanks for any input!
 
  Best.
 
 
 
 
 
 
 
 
 -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 




-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@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.

 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 wrote:
  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
  urls based on the theme name. The theme names are fetched from session,
 as,
  MySession.getThemeName().
 
  My concern is, that Wicket might cache the generated html file. So even
 if
  the theme changes at runtime, the html with old CSS names will be served.
  Furthermore, each user can have different themes, but here we have only
  html.
 
  If my understanding is correct then I should set the style to the theme
  name. I read somewhere that Wicket generates keys to reference the cached
  resources. So, I am guessing, that user A tries to access Home.html with
  'classic' style then Wicket will render and cache that page as (say)
  classic-Home. Now, if user B tries to access the same page but with style
  'jazzy' then Wicket will use another key to store cache.
 
  I am simply guessing. Am I on the right track? Will this work?
 
  Regards,
  Apple Grew
  my blog @ http://blog.applegrew.com/
 

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




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.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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
AutoLinkResolver, will that too be refreshed at every request?

@Igor

CSS are are provided outside Wicket, i.e. by third party application.

So if we have say 2 CSSes - all.css and base.css and, two themes - classic
and jazzy, then they will be available at static urls like, /classic-all.css
/classic-base.css, /jazzy-all.css and /jazzy-base.css.

Now if Htmls will have link tag in the head. The urls of the link will
be modified at runtime. If generated Htmls are cached then on next access to
this page the code to refresh the link url can't be refreshed, and it will
continue to point at /classic-all.css instead of /jazzy-all.css.

Regards,
Apple Grew
my blog @ http://blog.applegrew.com/


On Fri, Apr 9, 2010 at 11:08 PM, Jeremy Thomerson jer...@wickettraining.com
 wrote:

 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.com
 wrote:

  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 wrote:
   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
   urls based on the theme name. The theme names are fetched from session,
  as,
   MySession.getThemeName().
  
   My concern is, that Wicket might cache the generated html file. So even
  if
   the theme changes at runtime, the html with old CSS names will be
 served.
   Furthermore, each user can have different themes, but here we have only
   html.
  
   If my understanding is correct then I should set the style to the theme
   name. I read somewhere that Wicket generates keys to reference the
 cached
   resources. So, I am guessing, that user A tries to access Home.html
 with
   'classic' style then Wicket will render and cache that page as (say)
   classic-Home. Now, if user B tries to access the same page but with
 style
   'jazzy' then Wicket will use another key to store cache.
  
   I am simply guessing. Am I on the right track? Will this work?
  
   Regards,
   Apple Grew
   my blog @ http://blog.applegrew.com/
  
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 



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 - the markup is parsed and cached.  Then for each render, it is attached
to those components and they render the dynamic portions


 So, if I have a link
 tag that points to a static url which is modified at runtime by
 AutoLinkResolver, will that too be refreshed at every request?


It's been a while since I've used AutoLinkResolver, but this should be the
case.  Just test and see.  That's the best answer.



 @Igor

 CSS are are provided outside Wicket, i.e. by third party application.

 So if we have say 2 CSSes - all.css and base.css and, two themes - classic
 and jazzy, then they will be available at static urls like,
 /classic-all.css
 /classic-base.css, /jazzy-all.css and /jazzy-base.css.

 Now if Htmls will have link tag in the head. The urls of the link
 will
 be modified at runtime. If generated Htmls are cached then on next access
 to
 this page the code to refresh the link url can't be refreshed, and it
 will
 continue to point at /classic-all.css instead of /jazzy-all.css.


But generated HTML is not cached.  The best way to accomplish what you're
doing is not to put the CSS reference in the HTML, because then you have no
way to modify it.  You should add the CSS reference through a header
contributor in your java code so that it is added on each request with the
right reference to your themed file(s).

--
Jeremy Thomerson
http://www.wickettraining.com


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);
   }
 }
 );
});

 inside my html I have a table this contains  anchor tag with
class showHidePrograms.
  onclick of this anchor tag the function gets called everything is fine.

This page also has some ajaxLinks on click of this link  I repaint the
table, after thiswhen I click on anchor tag the jquery script is not
called ,
does repainting somehow hides this anchor from jquery ?


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 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 - the markup is parsed and cached.  Then for each render, it is
 attached
 to those components and they render the dynamic portions


  So, if I have a link
  tag that points to a static url which is modified at runtime by
  AutoLinkResolver, will that too be refreshed at every request?
 

 It's been a while since I've used AutoLinkResolver, but this should be the
 case.  Just test and see.  That's the best answer.


 
  @Igor
 
  CSS are are provided outside Wicket, i.e. by third party application.
 
  So if we have say 2 CSSes - all.css and base.css and, two themes -
 classic
  and jazzy, then they will be available at static urls like,
  /classic-all.css
  /classic-base.css, /jazzy-all.css and /jazzy-base.css.
 
  Now if Htmls will have link tag in the head. The urls of the link
  will
  be modified at runtime. If generated Htmls are cached then on next access
  to
  this page the code to refresh the link url can't be refreshed, and it
  will
  continue to point at /classic-all.css instead of /jazzy-all.css.
 
 
 But generated HTML is not cached.  The best way to accomplish what you're
 doing is not to put the CSS reference in the HTML, because then you have no
 way to modify it.  You should add the CSS reference through a header
 contributor in your java code so that it is added on each request with the
 right reference to your themed file(s).

 --
 Jeremy Thomerson
 http://www.wickettraining.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 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 next year...

 regards Nino

 2010/4/9 shetc sh...@bellsouth.net:

 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: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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
again.  (see target.appendJavascript(...))

--
Jeremy Thomerson
http://www.wickettraining.com



On Fri, Apr 9, 2010 at 1:12 PM, tubin gen fachh...@gmail.com wrote:

 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);
   }
 }
 );
});

  inside my html I have a table this contains  anchor tag with
 class showHidePrograms.
  onclick of this anchor tag the function gets called everything is fine.

 This page also has some ajaxLinks on click of this link  I repaint the
 table, after thiswhen I click on anchor tag the jquery script is not
 called ,
 does repainting somehow hides this anchor from jquery ?



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 only IE 
(all versions)

You could try to add the javacode in your AjaxLinks onKlick method

   onClick(target) {
  target.addcomponent(some component);
  target.appendJavascript($(document).ready(function(){re-initialize the 
actions});
   }


-Ursprüngliche Nachricht-
Von: tubin gen [mailto:fachh...@gmail.com] 
Gesendet: Freitag, 9. April 2010 20:12
An: users
Betreff: jqery not getting called after ajax refresh

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);
   }
 }
 );
});

 inside my html I have a table this contains  anchor tag with
class showHidePrograms.
  onclick of this anchor tag the function gets called everything is fine.

This page also has some ajaxLinks on click of this link  I repaint the
table, after thiswhen I click on anchor tag the jquery script is not
called ,
does repainting somehow hides this anchor from jquery ?

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 onSubmit().
How can I get around this?

Look at the refresh AjaxSubmitLink.

protected class BasketFragment extends Fragment{
private static final long serialVersionUID = 1L;
private WebMarkupContainer updateContainer;
WebMarkupContainer cartContainer;
public void onFlash(AjaxRequestTarget target ){
updateContainer.setVisible( true );
target.appendJavascript(  new Effect.Fade('+ updateContainer.getMarkupId()
+',{duration: 2.0}); );
target.appendJavascript(  new Effect.Highlight('+
updateContainer.getMarkupId() +',{startcolor: '#ff99ff',endcolor:
'#ff'}); );
 target.addComponent(updateContainer );
 }

public BasketFragment(String id, String markupId ) {
super(id, markupId, BasePage.this);
 FormVoid cartForm = new FormVoid( cartForm );
updateContainer = new WebMarkupContainer( updateContainer );
updateContainer.setOutputMarkupId( true );
updateContainer.setOutputMarkupPlaceholderTag( true );
updateContainer.setVisible( false );
cartForm.add( updateContainer );
 IModelListCartItem cartItemModel = new
LoadableDetachableModelListCartItem(){
private static final long serialVersionUID = 1L;

@Override
protected ListCartItem load() {
return getCartDAO().getCartItems( FricoSession.get().getCartId() );
}
 };
 final ListViewCartItem cartView = new ListViewCartItem( cartView,
cartItemModel ){
private static final long serialVersionUID = 1L;

@Override
protected void populateItem(ListItemCartItem item) {
 final CartItem cartItem = item.getModelObject();
 item.setModel(new CompoundPropertyModelCartItem(item.getModel()));
if( item.getIndex() % 2 == 0 ){
item.add( new SimpleAttributeModifier( class , even ));
}else{
item.add( new SimpleAttributeModifier( class , odd ));
}
Product product = item.getModelObject().getProduct();
String name = product.getName();
if( name.length()  19 ){
name = name.substring( 0,19) + ...;
}
Label label = new Label( name , name );
label.add( new SimpleAttributeModifier( title , product.getName()));
 item.add( label );
 TextFieldLong quantity = new TextFieldLong( quantity );
item.add( quantity );
 AjaxSubmitLink delete = new AjaxSubmitLink( delete ){
private static final long serialVersionUID = 1L;

@Override
protected void onSubmit(AjaxRequestTarget target, Form? form) {
getCartDAO().delete( cartItem );
onUpdateCart(target,false);
 }
 };
 item.add( delete );
 }
 };
 AjaxSubmitLink refresh = new AjaxSubmitLink( refresh ){
private static final long serialVersionUID = 1L;

@Override
protected void onSubmit(AjaxRequestTarget target, Form? form) {
ListCartItem items = cartView.getModelObject();
IteratorCartItem iter = items.iterator();
while( iter.hasNext() ){
CartItem item = iter.next();
Product product = item.getProduct();
Product p = getProductDAO().find( Product.class, product.getId());
if( p != null ){
getCartDAO().save( item );
}else{
iter.remove();
}
}
 onUpdateCart(target, true);
  }
 };
cartForm.add( refresh );
cartContainer = new WebMarkupContainer( cartContainer );
cartContainer.add( cartForm );
cartContainer.setOutputMarkupId( true );
add( cartContainer );
cartForm.add( cartView );
WebMarkupContainer emptyCart = new WebMarkupContainer( emptyCart );
emptyCart.add( new LogoutLink( logoutLink ) );
add( emptyCart );
 AjaxLinkVoid cancelLink = new AjaxLinkVoid( cancelLink ){

private static final long serialVersionUID = 1L;

@Override
public void onClick(AjaxRequestTarget target) {
getCartDAO().empty( FricoSession.get().getCartId() );
onUpdateCart(target,false);
}
 @Override
protected IAjaxCallDecorator getAjaxCallDecorator(){
return new AjaxCallDecorator() {
private static final long serialVersionUID = 1L;
@Override
public CharSequence decorateScript(CharSequence
script) {
 return if( !confirm('+
getLocalizer().getString( cancel.warning, BasePage.this ) +')) return
false; + script;
}

};
}
};
 AjaxLinkVoid checkoutLink = new AjaxLinkVoid( checkoutLink ){

private static final long serialVersionUID = 1L;

@Override
public void onClick(AjaxRequestTarget target) {
checkoutPanel =  new CheckoutPanel( content );
getContentPanel().addOrReplace( checkoutPanel);
target.addComponent(  getContentPanel() );
}




};
 cartContainer.add( new LogoutLink( logoutLink ) );
cartContainer.add( cancelLink );
cartContainer.add( checkoutLink );
 emptyCart.setVisible( false );
if( cartItemModel.getObject().isEmpty() ){
cartContainer.setVisible( false );
emptyCart.setVisible( true );
}
  }
}


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
org.apache.wicket.markup.html.list.ListItemModel.getObject(ListItemModel.java:58)
at
org.apache.wicket.model.CompoundPropertyModel.getObject(CompoundPropertyModel.java:64)
at
org.apache.wicket.model.AbstractPropertyModel.getTarget(AbstractPropertyModel.java:193)
at
org.apache.wicket.model.AbstractPropertyModel.getObject(AbstractPropertyModel.java:114)
at 
org.apache.wicket.Component.getDefaultModelObject(Component.java:1657)
at org.apache.wicket.Component$3.compare(Component.java:548)
at 
org.apache.wicket.Component.setDefaultModelObject(Component.java:3044)
at
org.apache.wicket.markup.html.form.FormComponent.updateModel(FormComponent.java:1168)
at
org.apache.wicket.markup.html.form.Form$FormModelUpdateVisitor.component(Form.java:227)
at
org.apache.wicket.markup.html.form.FormComponent.visitComponentsPostOrderHelper(FormComponent.java:514)
at
org.apache.wicket.markup.html.form.FormComponent.visitComponentsPostOrderHelper(FormComponent.java:493)
at
org.apache.wicket.markup.html.form.FormComponent.visitComponentsPostOrderHelper(FormComponent.java:493)
at
org.apache.wicket.markup.html.form.FormComponent.visitComponentsPostOrderHelper(FormComponent.java:493)
at
org.apache.wicket.markup.html.form.FormComponent.visitComponentsPostOrder(FormComponent.java:465)
at
org.apache.wicket.markup.html.form.Form.internalUpdateFormComponentModels(Form.java:2081)
at
org.apache.wicket.markup.html.form.Form.updateFormComponentModels(Form.java:2049)
at org.apache.wicket.markup.html.form.Form.process(Form.java:1004)
at org.apache.wicket.markup.html.form.Form.process(Form.java:931)
at 
org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:896)
at
org.apache.wicket.ajax.form.AjaxFormSubmitBehavior.onEvent(AjaxFormSubmitBehavior.java:135)
at
org.apache.wicket.ajax.AjaxEventBehavior.respond(AjaxEventBehavior.java:177)
at
org.apache.wicket.ajax.AbstractDefaultAjaxBehavior.onRequest(AbstractDefaultAjaxBehavior.java:286)
at
org.apache.wicket.request.target.component.listener.BehaviorRequestTarget.processEvents(BehaviorRequestTarget.java:119)
at
org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:92)
at
org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1250)
at org.apache.wicket.RequestCycle.step(RequestCycle.java:1329)
at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1428)
at org.apache.wicket.RequestCycle.request(RequestCycle.java:545)
at
org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:479)
at
org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:312)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at 
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Unknown Source)

-- 
View this message in context: 
http://old.nabble.com/java.lang.IndexOutOfBoundsException-ListItemModel-getObject-tp28196181p28196344.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 a new DOM 
element) includes your javascript (which binds your handler to the DOM element 
that is there right now), whether it's the first time on the page or from an 
ajax request. When you bind your event on page load, the ajax request creates a 
new DOM element for the link by repainting it, so the link that had your bound 
event handler goes away.


RUSSELL E. MORRISEY
Programmer Analyst Professional
Mission Solutions Engineering, LLC

| russell.morri...@missionse.com | www.missionse.com
304 West Route 38, Moorestown, NJ 08057

-Original Message-
From: tubin gen [mailto:fachh...@gmail.com]
Sent: Friday, April 09, 2010 2:12 PM
To: users
Subject: jqery not getting called after ajax refresh

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);
   }
 }
 );
});

 inside my html I have a table this contains  anchor tag with
class showHidePrograms.
  onclick of this anchor tag the function gets called everything is fine.

This page also has some ajaxLinks on click of this link  I repaint the
table, after thiswhen I click on anchor tag the jquery script is not
called ,
does repainting somehow hides this anchor from jquery ?

This is a PRIVATE message. If you are not the intended recipient, please delete 
without copying and kindly advise us by e-mail of the mistake in delivery.
NOTE: Regardless of content, this e-mail shall not operate to bind MSE to any 
order or other contract unless pursuant to explicit written agreement or 
government initiative expressly permitting the use of e-mail for such purpose.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 session is far
   less than 40 min session timeout value; given the number of sessions wherein
   PEEs occur it's highly unlikely that those sessions are the 40+ min outliers
   3. it's not a serialization problem - everything on pages is
   serializable. And if it were a serialization issue, should we not be
   seeing WicketSerializeableException stack traces in the logs?
   4. Settings.automaticMultiWindowSupport remains at default (=true)
   5. we cannot come up with a consistent repro though somehow managed to
   cause PEE to happen a couple of times by seemingly randomly clicking on UI
   controls and playing with back/forward browser buttons


Any tips on how to go about determining the root cause? Looking at the
exception below (typical - always thrown from
WebRequestCycleProcessor.resolve()), what specifically would you look for?
Which loggers would it be useful to turn to debug?

Also, is there any way to determine Page class type when catching a
PageExpiredException - so at least we could implement on PEE throw new
RestartResponseException(pageType, defaultParams) - instead of showing the
default error page.

thanks,

-nikita


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]
org.apache.wicket.protocol.http.PageExpiredException: Cannot find the
rendered page in session
[pagemap=null,componentPath=7:results:resultsInfo:criteriaContainer:inputPanel:categorySearchForm:submitLink:searchButton,versionNumber=0]
at 
org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve(WebRequestCycleProcessor.java:197)
at org.apache.wicket.RequestCycle.step(RequestCycle.java:1310)
at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1428)
at org.apache.wicket.RequestCycle.request(RequestCycle.java:545)
at 
org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:479)
at 
org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:312)



On Fri, Apr 9, 2010 at 3:35 PM, Nikita Tovstoles nikita.tovsto...@gmail.com
 wrote:

 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 session is
far less than 40 min session timeout value; given the number of sessions
wherein PEEs occur it's highly unlikely that those sessions are the 40+ min
outliers
3. it's not a serialization problem - everything on pages is
serializable. And if it were a serialization issue, should we not be
seeing WicketSerializeableException stack traces in the logs?
4. Settings.automaticMultiWindowSupport remains at default (=true)
5. we cannot come up with a consistent repro though somehow managed to
cause PEE to happen a couple of times by seemingly randomly clicking on UI
controls and playing with back/forward browser buttons


 Any tips on how to go about determining the root cause? Looking at the
 exception below (typical - always thrown from
 WebRequestCycleProcessor.resolve()), what specifically would you look for?
 Which loggers would it be useful to turn to debug?

 Also, is there any way to determine Page class type when catching a
 PageExpiredException - so at least we could implement on PEE throw new
 RestartResponseException(pageType, defaultParams) - instead of showing the
 default error page.

 thanks,

 -nikita



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();
   });

Then in your ajax method
target.appendJavascript(setup(););


On Fri, Apr 9, 2010 at 5:30 PM, Russell Morrisey 
russell.morri...@missionse.com wrote:

 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 a
 new DOM element) includes your javascript (which binds your handler to the
 DOM element that is there right now), whether it's the first time on the
 page or from an ajax request. When you bind your event on page load, the
 ajax request creates a new DOM element for the link by repainting it, so the
 link that had your bound event handler goes away.


 RUSSELL E. MORRISEY
 Programmer Analyst Professional
 Mission Solutions Engineering, LLC

 | russell.morri...@missionse.com | www.missionse.com
 304 West Route 38, Moorestown, NJ 08057

 -Original Message-
 From: tubin gen [mailto:fachh...@gmail.com]
 Sent: Friday, April 09, 2010 2:12 PM
 To: users
 Subject: jqery not getting called after ajax refresh

 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);
   }
 }
 );
});

  inside my html I have a table this contains  anchor tag with
 class showHidePrograms.
  onclick of this anchor tag the function gets called everything is fine.

 This page also has some ajaxLinks on click of this link  I repaint the
 table, after thiswhen I click on anchor tag the jquery script is not
 called ,
 does repainting somehow hides this anchor from jquery ?

 This is a PRIVATE message. If you are not the intended recipient, please
 delete without copying and kindly advise us by e-mail of the mistake in
 delivery.
 NOTE: Regardless of content, this e-mail shall not operate to bind MSE to
 any order or other contract unless pursuant to explicit written agreement or
 government initiative expressly permitting the use of e-mail for such
 purpose.

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




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() {
 $(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();
   });

 Then in your ajax method
 target.appendJavascript(setup(););


 On Fri, Apr 9, 2010 at 5:30 PM, Russell Morrisey 
 russell.morri...@missionse.com wrote:

  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
 a
  new DOM element) includes your javascript (which binds your handler to
 the
  DOM element that is there right now), whether it's the first time on the
  page or from an ajax request. When you bind your event on page load, the
  ajax request creates a new DOM element for the link by repainting it, so
 the
  link that had your bound event handler goes away.
 
 
  RUSSELL E. MORRISEY
  Programmer Analyst Professional
  Mission Solutions Engineering, LLC
 
  | russell.morri...@missionse.com | www.missionse.com
  304 West Route 38, Moorestown, NJ 08057
 
  -Original Message-
  From: tubin gen [mailto:fachh...@gmail.com]
  Sent: Friday, April 09, 2010 2:12 PM
  To: users
  Subject: jqery not getting called after ajax refresh
 
  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);
}
  }
  );
 });
 
   inside my html I have a table this contains  anchor tag with
  class showHidePrograms.
   onclick of this anchor tag the function gets called everything is fine.
 
  This page also has some ajaxLinks on click of this link  I repaint the
  table, after thiswhen I click on anchor tag the jquery script is not
  called ,
  does repainting somehow hides this anchor from jquery ?
 
  This is a PRIVATE message. If you are not the intended recipient, please
  delete without copying and kindly advise us by e-mail of the mistake in
  delivery.
  NOTE: Regardless of content, this e-mail shall not operate to bind MSE to
  any order or other contract unless pursuant to explicit written agreement
 or
  government initiative expressly permitting the use of e-mail for such
  purpose.
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 



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 Thomerson
http://www.wickettraining.com



On Fri, Apr 9, 2010 at 5:30 PM, Mathias Nilsson wicket.program...@gmail.com
 wrote:


 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.


 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org