Prettier URLs for ResourceReference images

2010-03-12 Thread Thomas Götz
Is there a way to have prettier URLs when including images that are referenced 
with a ResourceReference?
When I add an image like that:

Image image = new Image(image, new 
ResourceReference(some.package.name.and.Class.class, my_image.gif));
add(image);

... this results in a rather technical URL 
(resources/some.package.name.and.Class/my_image.gif), and I'd also prefer 
that my internal package structure is not visible to the rest of the world.

Can this be somewhat prettier maybe? ;-)

Thanks,
   -Tom



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



Re: Prettier URLs for ResourceReference images

2010-03-12 Thread Thomas Götz
Thanks, you saved my day ;-)

   -Tom


On 12.03.2010 at 22:35 Igor Vaynberg wrote:

 see sharedresources#putclassalias
 
 -igor
 
 On Fri, Mar 12, 2010 at 1:23 PM, Thomas Götz t...@richmountain.de wrote:
 Is there a way to have prettier URLs when including images that are 
 referenced with a ResourceReference?
 When I add an image like that:
 
 Image image = new Image(image, new 
 ResourceReference(some.package.name.and.Class.class, my_image.gif));
 add(image);
 
 ... this results in a rather technical URL 
 (resources/some.package.name.and.Class/my_image.gif), and I'd also prefer 
 that my internal package structure is not visible to the rest of the world.
 
 Can this be somewhat prettier maybe? ;-)
 
 Thanks,
   -Tom
 
 
 
 -
 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: Prettier URLs for ResourceReference images

2010-03-13 Thread Thomas Götz
Well ok, this is helpful. But: what do you do if you have a lot of embedded 
resources referenced from a lot of different components? Do I have to put an 
alias for every single class? This is quite verbose, isn't there an easier way 
to e.g. set an alias for a complete Java package? Sure, I could do this with 
reflection (iterate over each class in a given package and assign alias), but 
this is not very nifty ;-)

   -Tom

Am 12.03.2010 um 22:35 schrieb Igor Vaynberg:

 see sharedresources#putclassalias
 
 -igor
 
 On Fri, Mar 12, 2010 at 1:23 PM, Thomas Götz t...@richmountain.de wrote:
 Is there a way to have prettier URLs when including images that are 
 referenced with a ResourceReference?
 When I add an image like that:
 
 Image image = new Image(image, new 
 ResourceReference(some.package.name.and.Class.class, my_image.gif));
 add(image);
 
 ... this results in a rather technical URL 
 (resources/some.package.name.and.Class/my_image.gif), and I'd also prefer 
 that my internal package structure is not visible to the rest of the world.
 
 Can this be somewhat prettier maybe? ;-)
 
 Thanks,
   -Tom
 
 
 
 -
 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: Prettier URLs for ResourceReference images

2010-03-13 Thread Thomas Götz
Ok, this is sexy, thanks for pointing me into the right direction ;-)

   -Tom


Am 13.03.2010 um 12:08 schrieb Martin Grigorov:

 Extend ResourceRefrence class and do the aliasing in its constructor.
 There you have all the needed information - class and resource name.
 
 Then in MyComponent.java:
 ...
 Image image = new Image(image, new AutoAliasResourceReference(...)); 
 
 
 On Sat, 2010-03-13 at 10:47 +0100, Thomas Götz wrote:
 Well ok, this is helpful. But: what do you do if you have a lot of embedded 
 resources referenced from a lot of different components? Do I have to put an 
 alias for every single class? This is quite verbose, isn't there an easier 
 way to e.g. set an alias for a complete Java package? Sure, I could do this 
 with reflection (iterate over each class in a given package and assign 
 alias), but this is not very nifty ;-)
 
   -Tom
 
 Am 12.03.2010 um 22:35 schrieb Igor Vaynberg:
 
 see sharedresources#putclassalias
 
 -igor
 
 On Fri, Mar 12, 2010 at 1:23 PM, Thomas Götz t...@richmountain.de wrote:
 Is there a way to have prettier URLs when including images that are 
 referenced with a ResourceReference?
 When I add an image like that:
 
 Image image = new Image(image, new 
 ResourceReference(some.package.name.and.Class.class, my_image.gif));
 add(image);
 
 ... this results in a rather technical URL 
 (resources/some.package.name.and.Class/my_image.gif), and I'd also 
 prefer that my internal package structure is not visible to the rest of 
 the world.
 
 Can this be somewhat prettier maybe? ;-)
 
 Thanks,
  -Tom
 
 
 
 -
 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



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

2010-04-08 Thread Thomas Götz
Problem:
I have an AjaxButton that triggers a long-running operation when clicked. I 
want to give feedback (in form of a javascript message) upon partial completion 
of the operation, therefore I am using a jQuery notifications plugin 
(http://www.programmingmind.com/contributions).

So, what I do is the following:

final Form form = new Form(form);
add(form);

form.add(new AjaxButton(button) {
@Override
protected void onSubmit(AjaxRequestTarget target, Form? form) {
for(Object o : someList) {
// do somthing
target.appendJavascript(getJavascript());
}
target.addComponent(form);
}
});


... but obviously, the Javascript messages are only display at the end of the 
complete operation (after foreach loop has finished). So my question: what 
should I do to get the messages displayed after each iteration?

   -Tom


-
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-08 Thread Thomas Götz
I fear not. As far as I understand, getAjaxCallDecorator() decorates the 
javascript with a custom script, which is executed immediately upon hitting the 
button. What I want to achieve is displaying some status messaged during the 
progress of my long-term operation ...

   -Tom


On 08.04.2010 at 20:58 Fernando Wermus wrote:

 Does this resolve your problem?
 
 @Override
 
 protected IAjaxCallDecorator getAjaxCallDecorator() {
 
return new AjaxCallDecorator() {
 
private static final long serialVersionUID = 1L;
 
 @Override
 
 public CharSequence decorateScript(CharSequence script) {
 
 return YOUR JAVASCRIPT + script;
 
 }
 
};
 
 }
 
 On Thu, Apr 8, 2010 at 3:43 PM, Thomas Götz t...@richmountain.de wrote:
 
 Problem:
 I have an AjaxButton that triggers a long-running operation when clicked. I
 want to give feedback (in form of a javascript message) upon partial
 completion of the operation, therefore I am using a jQuery notifications
 plugin (http://www.programmingmind.com/contributions).
 
 So, what I do is the following:
 
 final Form form = new Form(form);
 add(form);
 
 form.add(new AjaxButton(button) {
   @Override
   protected void onSubmit(AjaxRequestTarget target, Form? form) {
   for(Object o : someList) {
   // do somthing
   target.appendJavascript(getJavascript());
   }
   target.addComponent(form);
   }
 });
 
 
 ... but obviously, the Javascript messages are only display at the end of
 the complete operation (after foreach loop has finished). So my question:
 what should I do to get the messages displayed after each iteration?
 
  -Tom
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
 
 -- 
 Fernando Wermus.
 
 www.linkedin.com/in/fernandowermus


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



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



SignInPage as panel in an AuthenticatedWebApplication?

2010-04-24 Thread Thomas Götz
Is there an easy way to use a panel for signing in when using an application 
class that extends AuthenticatedWebApplication? The normal Wicket behaviour is 
that the user gets forwarded to a dedicated signin-page. I'd prefer to use a 
modal window (displaying a login panel), but 
AuthenticatedWebApplication.getSignInPageClass() needs to return a class that 
extends Webpage ...

Anyone can give me a hint on this?

   -Tom


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



Math captcha with Wicket?

2010-05-03 Thread Thomas Götz
Did anyone ever integrate some kind of math capture with Wicket (please 
solve the following simple equation ...)? How would I do this, someone 
got a code pointer for me?


   -Tom


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



Re: Math captcha with Wicket?

2010-05-04 Thread Thomas Götz
Thanks for your input, Igor! Looks nice, but I'd also like to have that 
as a rendered image, rather than plain text (security risk?).


   -Tom

Igor Vaynberg wrote:

off the top of my head


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



Wicket, IntelliJ and xml resource bundles

2010-05-06 Thread Thomas Götz
Any IntelliJ users out there that use Wicket and xml resource bundle 
files? I have the problem, that whenever I use something like:


wicket:message key=foosome text/wicket:message

in an html file, IntelliJ complains about not being able to resolve the 
property key. It works when using *.properties resource files, but I 
prefer xml. Is there a solution/workaround for this?


   -Tom

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



Re: Math captcha with Wicket?

2010-05-06 Thread Thomas Götz

nino martinez wael schrieb:

http://java.sun.com/docs/books/tutorial/2d/overview/rendering.html


Well, tanks ;-)
I was hoping to find some ready-to-be-used library/components that 
already does that ...


   -Tom

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



Re: Wicket, IntelliJ and xml resource bundles

2010-05-06 Thread Thomas Götz

No, I'm not currently using any Wicket plugin.

   -Tom


Nick Heudecker schrieb:

The Wicket plugin for IDEA doesn't support XML property bundles.

On Thu, May 6, 2010 at 8:32 AM, James Carman
jcar...@carmanconsulting.comwrote:


Are you using a Wicket plugin?

On Thu, May 6, 2010 at 10:06 AM, Thomas Götzt...@richmountain.de  wrote:

Any IntelliJ users out there that use Wicket and xml resource bundle

files?

I have the problem, that whenever I use something like:

wicket:message key=foosome text/wicket:message

in an html file, IntelliJ complains about not being able to resolve the
property key. It works when using *.properties resource files, but I

prefer

xml. Is there a solution/workaround for this?

   -Tom





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



Re: Math captcha with Wicket?

2010-05-06 Thread Thomas Götz

Thanks for the pointer!

   -Tom


Josh Glassman schrieb:

Take a look at

http://wicket.apache.org/docs/1.4/org/apache/wicket/extensions/markup/html/captcha/CaptchaImageResource.html

You might need to override some of it, or make your own customized version
to get the text and look you want.  Looks like a good starting point at
least.


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



Re: Wicket, IntelliJ and xml resource bundles

2010-05-06 Thread Thomas Götz
You are right, I just thought there might be a solution for this anyway, 
some plugin that I don't know yet maybe (be it Wicket specific or for 
general use with IntelliJ/I18N/xml-files).


   -Tom


James Carman schrieb:

Then the stuff you're seeing doesn't have anything to do with Wicket.
It's IntelliJ's I18N for Java plugin, I believe.  I wouldn't expect
it to understand wicket-specific stuff.

On Thu, May 6, 2010 at 12:26 PM, Thomas Götzt...@richmountain.de  wrote:

No, I'm not currently using any Wicket plugin.

   -Tom


Nick Heudecker schrieb:

The Wicket plugin for IDEA doesn't support XML property bundles.

On Thu, May 6, 2010 at 8:32 AM, James Carman
jcar...@carmanconsulting.comwrote:


Are you using a Wicket plugin?

On Thu, May 6, 2010 at 10:06 AM, Thomas Götzt...@richmountain.dewrote:

Any IntelliJ users out there that use Wicket and xml resource bundle

files?

I have the problem, that whenever I use something like:

wicket:message key=foosome text/wicket:message

in an html file, IntelliJ complains about not being able to resolve the
property key. It works when using *.properties resource files, but I

prefer

xml. Is there a solution/workaround for this?

   -Tom


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



Re: wicketstuff-repo

2010-06-17 Thread Thomas Götz
Any information on if and when wicketstuff will be back again? This is breaking 
our build since days now which is no fun ;-)
We are using several non-core artifacts and building them from source is not a 
very desireable solution.

Cheers,
 -Tom


 - Ursprüngliche Nachricht -
 Von: Michael O'Cleirigh
 Gesendet: 15.06.10 15:23 Uhr
 An: users@wicket.apache.org
 Betreff: Re: wicketstuff-repo
 
 Hello,
 
 The release artifacts for wicketstuff-core since 1.4.7 have been 
 deployed through sonatype and are available through maven central.
 
 http://repo2.maven.org/maven2/org/wicketstuff/
 
 This is only for the projects in wicketstuff-core directory structure, 
 if you are looking at one of the other projects you will have to 
 download the source and compile it right now until wicketstuff.org is 
 back up.
 
 Regards,
 
 Mike
  someone mentioned sonatype..Search the list for sonatype..
 
  2010/6/15 Marc Endemli...@e-beyond.de
 
  
  Hi,
 
  is there another wicketstuff-repo (a mirror for example)? Wicketstuff is
  now
  down for some days and
  I'll need some artifacts from the repo.
 
  marc
 
  
  
 
 
 -
 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: wicketstuff-repo

2010-06-17 Thread Thomas Götz
We are already using nexus, but unfortunately the wicketstuff repo is not yet 
proxied on it, so this does not really help us currently ;-)
Yes, we could upload the artifacts manually (to nexus), but as it is a 
company-wide repo manager this option is not accessible to me (because not 
allowed).

 -Tom

 - Ursprüngliche Nachricht -
 Von: Martijn Dashorst
 Gesendet: 17.06.10 10:32 Uhr
 An: users@wicket.apache.org
 Betreff: Re: wicketstuff-repo
 
 Use an internal repository manager. Then you're not dependent on
 external infrastructure. Try archiva if you want a low key, low
 resource manager, or nexus or artifactory if you want more.
 
 Martijn
 
 On Thu, Jun 17, 2010 at 10:29 AM, Thomas Götz t...@richmountain.de wrote:
  Any information on if and when wicketstuff will be back again? This is 
  breaking our build since days now which is no fun ;-)
  We are using several non-core artifacts and building them from source is 
  not a very desireable solution.
 
  Cheers,
  -Tom
 
 
  - Ursprüngliche Nachricht -
  Von: Michael O'Cleirigh
  Gesendet: 15.06.10 15:23 Uhr
  An: users@wicket.apache.org
  Betreff: Re: wicketstuff-repo
 
  Hello,
 
  The release artifacts for wicketstuff-core since 1.4.7 have been
  deployed through sonatype and are available through maven central.
 
  http://repo2.maven.org/maven2/org/wicketstuff/
 
  This is only for the projects in wicketstuff-core directory structure,
  if you are looking at one of the other projects you will have to
  download the source and compile it right now until wicketstuff.org is
  back up.
 
  Regards,
 
  Mike
   someone mentioned sonatype..Search the list for sonatype..
  
   2010/6/15 Marc Endemli...@e-beyond.de
  
  
   Hi,
  
   is there another wicketstuff-repo (a mirror for example)? Wicketstuff is
   now
   down for some days and
   I'll need some artifacts from the repo.
  
   marc
  
  
  
 
 
  -
  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
 
 
 
 
 
 -- 
 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.8
 
 -
 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



Strange problem with I18N keys in xml resource bundle

2010-07-20 Thread Thomas Götz
I have a strange problem with an I18N key which is stored in an xml resource 
bundle. I try to set the following keys for a german translation:

- PagingNavigator.first
- PagingNavigator.previous
- PagingNavigator.next
- PagingNavigator.last
- PagingNavigator.page

I noticed that wicket already provides the translation for those keys in 
several languages in it's Application.properties bundle. Unfortunately, in 
Apllication_de.properties those keys are missing. Anyway, I put them in 
MyComponent_de.xml and everything works fine, only the last key 
(PagingNavigator.page) causes the problem of not beeing translated. Instead, 
the english (default) translation is used.

Here is the content of MyComponent_de.xml:

?xml version=1.0 encoding=UTF-8?
!DOCTYPE properties SYSTEM http://java.sun.com/dtd/properties.dtd;
properties
 entry key=PagingNavigator.firsterste Seite/entry
 entry key=PagingNavigator.previousvorherige Seite/entry
 entry key=PagingNavigator.nextnächste Seite/entry
 entry key=PagingNavigator.lastletzte Seite/entry
 entry key=PagingNavigator.pageSeite ${page}/entry
/properties

Is there something wrong with the syntax when using parameterized keys in xml?

 -Tom

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



Re: Strange problem with I18N keys in xml resource bundle

2010-07-20 Thread Thomas Götz

On 20.07.2010 10:53, Ernesto Reinaldo Barreiro wrote:

Maybe because the key should be PagingNavigation.page?


Ha! Nice one, thanks ;-)
The naming is a little bit inconsistent IMHO.

   -Tom

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



Re: Strange problem with I18N keys in xml resource bundle

2010-07-20 Thread Thomas Götz

On 20.07.2010 12:40, Ernesto Reinaldo Barreiro wrote:

Tomas,

It might be because PagingNavigation.page is read from within
PagingNavigation component. Maybe it is consistent in the sense that
it refers to the component using the resource. I don't know if a
convention is followed for these things on core components? By the
way... Would it be a good idea to create a JIRA issue (with a patch)
for adding those keys/values to Application_de.properties?


It definitely would! I'll have a look at that asap.

   -Tom

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



Possible bug in HttpsRequestCycleProcessor?

2010-09-16 Thread Thomas Götz

In HttpsRequestCycleProcessor, line 214 (Wicket 1.4.10):

Session.get().bind();

With the comment that the session needs to be persisted before 
redirecting to https. But this is called before checking if a redirect 
is necessary or not (line 217, request could already be https). Result: 
no temporary sessions.


In our scenario this causes severe trouble:
we have a Tomcat cluster consisting of 3 different nodes, every request 
to a page is loadbalanced between these 3 nodes (loading of resource 
files for that page, i.e. images/css/js). The Tomcats are configured to 
use jsessionid for session management. As requests to resources 
referenced from within css files (images) do not contain jsessionid, a 
new session is created upon every single call to an image resource. With 
the Session.get().bind() as mentioned above (we use https for 
everything), this results in several new (not temporary) sessions for 
every single page ...


My proposal would be to call Session.get().bind() in line 200, where you 
are sure that a redirect is needed.


Or am I getting something wrong here?

Cheers,
   -Tom





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



Re: Possible bug in HttpsRequestCycleProcessor?

2010-09-16 Thread Thomas Götz

Ah, I found https://issues.apache.org/jira/browse/WICKET-2629

   -Tom

On 16.09.2010 10:52, Thomas Götz wrote:

In HttpsRequestCycleProcessor, line 214 (Wicket 1.4.10):

Session.get().bind();

With the comment that the session needs to be persisted before
redirecting to https. But this is called before checking if a redirect
is necessary or not (line 217, request could already be https). Result:
no temporary sessions.

In our scenario this causes severe trouble:
we have a Tomcat cluster consisting of 3 different nodes, every request
to a page is loadbalanced between these 3 nodes (loading of resource
files for that page, i.e. images/css/js). The Tomcats are configured to
use jsessionid for session management. As requests to resources
referenced from within css files (images) do not contain jsessionid, a
new session is created upon every single call to an image resource. With
the Session.get().bind() as mentioned above (we use https for
everything), this results in several new (not temporary) sessions for
every single page ...

My proposal would be to call Session.get().bind() in line 200, where you
are sure that a redirect is needed.

Or am I getting something wrong here?

Cheers,
-Tom



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



Re: Automatic submit of form (AjaxFormSubmitBehavior)

2010-09-21 Thread Thomas Götz

On 21.09.2010 17:01, Gast Thorsten wrote:

I have a form with a AjaxFormSubmitBehavior. Is it possible to submit
this form automatically after the rendering of the page is finished.


Just curious:
why do you want to submit a form without any manually input/changed data?

   -Tom


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



Re: Register feedback messages

2010-12-08 Thread Thomas Götz

Hi,

please see https://issues.apache.org/jira/browse/WICKET-2986

   -Tom

Stefan Droog wrote:

Hi,

Just to be curious:

Does someone know why the error method has another signature than the
info/fatal/final methods? And why don't they except IModelString  objects
instead of String/Serializable?

public final void error(final Serializable message)
public final void fatal(final String message)
public final void info(final String message)
public final void warn(final String message)

Thanks in advance,

Regards,
Stefan




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



Localized mount points for BookmarkablePages?

2010-12-23 Thread Thomas Götz
Hi,

is it possible to have localized mount points for BookmarkablePages?

Example:
I have a BookmarkablePage GeneralPage.java which should be available under
http://my.domain.com/General  and
http://my.domain.com/Allgemein (german)

... depending on the current locale. Is this possible? If yes, could someone
point me into the right direction?

Cheers,
   -Tom



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



Re: Localized mount points for BookmarkablePages?

2010-12-23 Thread Thomas Götz
Ok, thanks for that hint. But: if I mount the page using the method you 
described, which mount name will be taken when referencing the page via a 
BookmarkablePageLink? What I want to achieve is that if the current 
user/session is set to locale GERMAN e.g., then all BookmarkablePageLinks 
should be rendered with the german mount name, got my point?

Cheers,
   -Tom


 - Ursprüngliche Nachricht -
 Von: Hans Lesmeister
 Gesendet: 23.12.10 13:05 Uhr
 An: users@wicket.apache.org
 Betreff: Re: Localized mount points for BookmarkablePages?
 
 Hi, you van pass a list with alternates to the mount-annotation. Same 
 can be done on mounting programmatically.
 
 Regards Hans
 
 
 
 Am 23.12.2010 um 12:29 schrieb Thomas Götz t...@richmountain.de:
 
  Hi,
 
  is it possible to have localized mount points for BookmarkablePages?
 
  Example:
  I have a BookmarkablePage GeneralPage.java which should be available 
  under
  http://my.domain.com/General and
  http://my.domain.com/Allgemein (german)
 
  ... depending on the current locale. Is this possible? If yes, could 
  someone
  point me into the right direction?
 
  Cheers,
  -Tom
 
 
 
  -
  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



Problem with Wicket sessions when using Apache mod_proxy

2011-04-24 Thread Thomas Götz

Hi there!

I have the following setup:

- an Apache httpd (2.0.x), running on port 80
- a Tomcat (6.x) running on port 8080

The Wicket webapp MyApp is running in Tomcat as the only webapp on that 
server. I have a registered domain www.mydomain.com, so I want 
everything hitting www.mydomain.com to be forwarded to MyApp in Tomcat.


So, I fired up mod_proxy and included the following rules:

ProxyPass / ajp://localhost:8009/MyApp/
ProxyPassReverse  / [***]ajp://localhost:8009/MyApp/

That works, with the following disadvantages:

- there's *always* a jsessionId parameter attached to the URL (not only 
on the first request), why?


- Wicket is opening a new session for *every* request to resources 
(images, js, css) that are loaded on the pages (I guess because they 
don't have access to the jsessionId)


- if I remove the jsessionId parameter from the URL in the browser, my 
(Wicket) session is gone (logged in user is logged out) and Wicket 
starts a new session



If I configure mod_proxy in that way:


ProxyPass /MyApp ajp://localhost:8009/MyApp
ProxyPassReverse  /MyApp [***]ajp://localhost:8009/MyApp


... then everything is fine, no more jsessionIds (only on first 
request), no more new sessions for every resource, just like it should 
be. But I need MyApp to be accessible from www.mydomain.com ...


I don't get the point for that behavior, could someone enlighten me maybe?

P.S.:
yes, I need Apache and mod_proxy, because there are several paths that 
are excluded from proxing, that point to other resources on that server,

e.g.:
ProxyPass   /images !

So, running Tomcat only (on port 80) without Apache2 does not seem an 
option to me.



Cheers,
   -Tom

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



Re: Problem with Wicket sessions when using Apache mod_proxy

2011-04-24 Thread Thomas Götz

Isammoc OFF wrote:

So, running Tomcat only (on port 80) without Apache2 does not seem an option to 
me.



What about using mod_jk ?


Well, what stands against mod_proxy? It seems to be working for me as 
described earlier. I only have problems with it when I try to forward 
'/' via ProxyPass. Before giving mod_jk a try I would first prefer to 
understand the reason for the described behavior.


Cheers,
   -Tom

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



Re: Problem with Wicket sessions when using Apache mod_proxy

2011-04-24 Thread Thomas Götz


Thomas Götz wrote:


- there's *always* a jsessionId parameter attached to the URL (not only
on the first request), why?


Ok, problem seems solved, adding a ProxyPassReverseCookiePath directive 
did the trick.


Cheers,
   -Tom


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



java.util.ConcurrentModificationException in Component.internalPrepareForRender

2011-09-14 Thread Thomas Götz
Hi,

I am currently migrating an application to Wicket 1.5.0 (from Wicket 1.4.17) 
and experience the following error:

ERROR - DefaultExceptionMapper - Unexpected error occurred
java.util.ConcurrentModificationException
at 
java.util.AbstractList$Itr.checkForComodification(AbstractList.java:372)
at java.util.AbstractList$Itr.next(AbstractList.java:343)
at 
org.apache.wicket.Component.internalPrepareForRender(Component.java:2191)
at org.apache.wicket.Page.internalPrepareForRender(Page.java:280)
at org.apache.wicket.Component.render(Component.java:2265)
at org.apache.wicket.Page.renderPage(Page.java:1035)
at 
org.apache.wicket.request.handler.render.WebPageRenderer.renderPage(WebPageRenderer.java:105)
at 
org.apache.wicket.request.handler.render.WebPageRenderer.respond(WebPageRenderer.java:224)
at 
org.apache.wicket.request.handler.RenderPageRequestHandler.respond(RenderPageRequestHandler.java:147)
at 
org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:719)
at 
org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:63)
at 
org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:210)
at 
org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:253)
at 
org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:162)
at 
org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:218)
at 
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at 
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
at 
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at 
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
at 
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:440)
at 
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
at org.mortbay.jetty.Server.handle(Server.java:326)
at 
org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
at 
org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:926)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:549)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
at 
org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:228)
at 
org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)



The error always occurs when requesting the first page after having started 
Jetty. Anyone has seen this already?!

Cheers,
   -Tom


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



Re: java.util.ConcurrentModificationException in Component.internalPrepareForRender

2011-09-14 Thread Thomas Götz
Actually not that easy, as there are 8 feedbacks in 
getRequestCycle().getMetaData(FEEDBACK_LIST) (Component, line 2188). But I 
noticed that one of them (which causes the exception) is a border (extends 
Border implements IFeedback) …

I will try what I can do to isolate this further.

   -Tom


On 14.09.2011, 16:48 Martin Grigorov wrote:

 Can you reproduce it with a quickstart ?
 
 On Wed, Sep 14, 2011 at 5:44 PM, Thomas Götz t...@richmountain.de wrote:
 Hi,
 
 I am currently migrating an application to Wicket 1.5.0 (from Wicket 1.4.17) 
 and experience the following error:
 
 ERROR - DefaultExceptionMapper - Unexpected error occurred
 java.util.ConcurrentModificationException
at 
 java.util.AbstractList$Itr.checkForComodification(AbstractList.java:372)
at java.util.AbstractList$Itr.next(AbstractList.java:343)
at 
 org.apache.wicket.Component.internalPrepareForRender(Component.java:2191)
at org.apache.wicket.Page.internalPrepareForRender(Page.java:280)
at org.apache.wicket.Component.render(Component.java:2265)
at org.apache.wicket.Page.renderPage(Page.java:1035)
at 
 org.apache.wicket.request.handler.render.WebPageRenderer.renderPage(WebPageRenderer.java:105)
at 
 org.apache.wicket.request.handler.render.WebPageRenderer.respond(WebPageRenderer.java:224)
at 
 org.apache.wicket.request.handler.RenderPageRequestHandler.respond(RenderPageRequestHandler.java:147)
at 
 org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:719)
at 
 org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:63)
at 
 org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:210)
at 
 org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:253)
at 
 org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:162)
at 
 org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:218)
at 
 org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at 
 org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
at 
 org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at 
 org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
at 
 org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
at 
 org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:440)
at 
 org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
at org.mortbay.jetty.Server.handle(Server.java:326)
at 
 org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
at 
 org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:926)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:549)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
at 
 org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:228)
at 
 org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
 
 
 
 The error always occurs when requesting the first page after having started 
 Jetty. Anyone has seen this already?!
 
 Cheers,
   -Tom
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
 
 
 -- 
 Martin Grigorov
 jWeekend
 Training, Consulting, Development
 http://jWeekend.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: Dynamically choosing component to add

2011-11-29 Thread Thomas Götz
If you only need one TextField that should be displayed upon click on a button:

final TextField textField = new TextField(textField, new Model());
textField.setVisible(false);
add(textField);

AjaxButton button = new AjaxButton(button) {
@Override
protected void onSubmit(AjaxRequestTarget target, Form? form) {
textField.setVisible(true);
target.add(textField);
}

@Override
protected void onError(AjaxRequestTarget target, Form? form) {
}
};
add(button);


If you need to display a new TextField upon *each* click on the button: use a 
repeater (e.g. RepeatingView and friends).

Cheers,
   -Tom



On 29.11.2011, 09:04h tech7 wrote:

 Many thanks.
 
 I am also trying to add new textfield to the page when user clicks on a
 button.
 How can I do that? Is there any proper way?
 
 
 -
 Wicket-Java
 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/Dynamically-choosing-component-to-add-tp3955869p4118343.html
 Sent from the Users forum 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: Dynamically choosing component to add

2011-11-29 Thread Thomas Götz
I created a short example (Quickstart): http://cl.ly/3u2o260z1b3F441T1T1M
You need to care for your models yourself (for the TextFields), just an example 
how to dynamically add components.

Cheers,
   -Tom


Seçil Aydın wrote:

 Thomas and Hans, thank you for your responses.
 
 Mine issue is a little bit different, as you can see in the sample picture.
 When page is opened only one couple of textfield should be displayed.When
 user clicks on button, couple of textfields should be added to the page.Is
 there any way?
 
 http://apache-wicket.1842946.n4.nabble.com/file/n4118851/page_sample.png 
 
 With my best regards.
 
 
 
 -
 Wicket-Java
 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/Dynamically-choosing-component-to-add-tp3955869p4118851.html
 Sent from the Users forum 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: logging the page class name

2011-11-29 Thread Thomas Götz
I would create my own base Page (where all other pages extend from) and add the 
desired logging statement there (onConfigure(), onBeforeRender()). Most of the 
times you already have a common base page anyway …

Cheers,
   -Tom


fachhoch wrote:

 I want to log all the pages users   are  viewing  without any much detail
 just  the page   class  name .
 is there any way I can get this without adding my own log statements in code
 ?
 
 
 
 
 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/logging-the-page-class-name-tp4119768p4119768.html
 Sent from the Users forum 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: tabs are displayed in a list when using tabbed panel

2011-11-30 Thread Thomas Götz
Yes, you need to provide your own styling (CSS file).

Cheers,
   -Tom


mohan mohan wrote:

 Hi,
 
 I am trying to use AjaxTabbedPanel. I added 2 tabs to it. In browser
 they are displayed 1 under another, not side by side. And no styling. I
 have seen sourcecode. It seems css classes were added but I did not find
 any css file in the source code.
 
 Here is the code, I used for AjaxTabbedPanel,
 
 *My html code*:
span wicket:id=tabs class=tabpanel[tabbed
 panel will be here]/span
 
 *My java code*:
 AjaxTabbedPanel tabbedPanel = new
 AjaxTabbedPanel(tabs, tabs);
 
 
 Do I need to add css file on my own? Please confirm me.
 
 
 regards,
 Mohan.


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



Re: AJAX requests on a mounted page with expired session

2011-12-14 Thread Thomas Götz
Can you give an example? AFAIK the pageId *is* already encoded in the URL bei 
Wicket, i.e. the URL changes to http://my.domain/foobar?0 when the page is 
rendered. Doing AJAX requests on the page does not change the URL though …  

Cheers,
   -Tom


Pedro Santos wrote:

 Hi Thomas, encoding the page ID in the URL would respond an expired page.
  
 Pedro Henrique Oliveira dos Santos
  
  
 2011/12/14 Thomas Götz t...@decoded.de (mailto:t...@decoded.de)
  
  The situation:
   
  I have a mounted page containing several AJAX components. Whenever the
  session expires and an AJAX request is triggered afterwards, a new instance
  of the page is (silently) created which is normal behavior I suppose (when
  looking at PageProvider.resolvePageInstance(…)).
   
  Can I hook into that somehow? I'd like to show some custom
  please-restart-you-session-by-clicking-here ExpiredPage, but there's no
  PageExpiredException thrown (which is a good thing), but nevertheless I'd
  prefer to show something to the user.
   
  Can someone point me into the right direction?
   
  Cheers,
  -Tom
   
   
   
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org 
  (mailto:users-unsubscr...@wicket.apache.org)
  For additional commands, e-mail: users-h...@wicket.apache.org 
  (mailto: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: AJAX requests on a mounted page with expired session

2011-12-14 Thread Thomas Götz
Don't know either, but since I don't have any other idea at the moment: how 
would I do this?

Cheers,
   -Tom


Pedro Santos wrote:

 Bleh, my bad, PageProvider will give you a fresh page since the
 MountedMapper were able to resolve the target page class.
 You can customize PageProvider to throw a StalePageException based on
 custom rules. Don't know if it's the best option.
  
 Pedro Henrique Oliveira dos Santos
  
  
 2011/12/14 Thomas Götz t...@decoded.de (mailto:t...@decoded.de)
  
  Can you give an example? AFAIK the pageId *is* already encoded in the URL
  bei Wicket, i.e. the URL changes to http://my.domain/foobar?0 when the
  page is rendered. Doing AJAX requests on the page does not change the URL
  though …
   
  Cheers,
  -Tom
   
   
  Pedro Santos wrote:
   
   Hi Thomas, encoding the page ID in the URL would respond an expired page.

   Pedro Henrique Oliveira dos Santos


   2011/12/14 Thomas Götz t...@decoded.de (mailto:t...@decoded.de)

The situation:
 
I have a mounted page containing several AJAX components. Whenever the
session expires and an AJAX request is triggered afterwards, a new
 


   
   
  instance
of the page is (silently) created which is normal behavior I suppose

   
   
  (when
looking at PageProvider.resolvePageInstance(…)).
 
Can I hook into that somehow? I'd like to show some custom
please-restart-you-session-by-clicking-here ExpiredPage, but there's no
PageExpiredException thrown (which is a good thing), but nevertheless
 

   
   
  I'd
prefer to show something to the user.
 
Can someone point me into the right direction?
 
Cheers,
-Tom
 
 
 
-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org 
(mailto:users-unsubscr...@wicket.apache.org) (mailto:
 

   
   
  users-unsubscr...@wicket.apache.org 
  (mailto:users-unsubscr...@wicket.apache.org))
For additional commands, e-mail: users-h...@wicket.apache.org 
(mailto:users-h...@wicket.apache.org) (mailto:

   
   
  users-h...@wicket.apache.org (mailto:users-h...@wicket.apache.org))

   
   
   
   
   
   
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org 
  (mailto:users-unsubscr...@wicket.apache.org)
  For additional commands, e-mail: users-h...@wicket.apache.org 
  (mailto: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: AJAX requests on a mounted page with expired session

2011-12-14 Thread Thomas Götz
Yes, that was what I had in mind. But where can I configure my custom 
PageProvider (i.e. that Wicket knows that my PageProvider implementation should 
be used)?  

Cheers,
   -Tom


Pedro Santos wrote:

 You can override the PageProvider#getPageInstance method and test for the
 target page class. If there are no instance for its page id and it is one
 of those pages you want to reply to user a page expired message rather than
 reply a fresh instance you throw a PageExpiredException exception (not
 a StalePageException, StalePageException is for another case ).
  
 Pedro Henrique Oliveira dos Santos
  
  
 2011/12/14 Thomas Götz t...@decoded.de (mailto:t...@decoded.de)
  
  Don't know either, but since I don't have any other idea at the moment:
  how would I do this?
   
  Cheers,
  -Tom
   
   
  Pedro Santos wrote:
   
   Bleh, my bad, PageProvider will give you a fresh page since the
   MountedMapper were able to resolve the target page class.
   You can customize PageProvider to throw a StalePageException based on
   custom rules. Don't know if it's the best option.

   Pedro Henrique Oliveira dos Santos


   2011/12/14 Thomas Götz t...@decoded.de (mailto:t...@decoded.de)

Can you give an example? AFAIK the pageId *is* already encoded in the
  URL
bei Wicket, i.e. the URL changes to http://my.domain/foobar?0 when the
page is rendered. Doing AJAX requests on the page does not change the

   
   
  URL
though …
 
Cheers,
-Tom
 
 
Pedro Santos wrote:
 
 Hi Thomas, encoding the page ID in the URL would respond an expired
  page.
  
 Pedro Henrique Oliveira dos Santos
  
  
 2011/12/14 Thomas Götz t...@decoded.de (mailto:t...@decoded.de)
  
  The situation:
   
  I have a mounted page containing several AJAX components. Whenever
  the
  session expires and an AJAX request is triggered afterwards, a new
  
 
 
 
 
instance
  of the page is (silently) created which is normal behavior I
  
 

   
   
  suppose
 
 
 
 
(when
  looking at PageProvider.resolvePageInstance(…)).
   
  Can I hook into that somehow? I'd like to show some custom
  please-restart-you-session-by-clicking-here ExpiredPage, but
  
 

   
   
  there's no
  PageExpiredException thrown (which is a good thing), but
  
 

   
   
  nevertheless
  
 
 
 
 
I'd
  prefer to show something to the user.
   
  Can someone point me into the right direction?
   
  Cheers,
  -Tom
  
 

   
   
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org 
  (mailto:users-unsubscr...@wicket.apache.org)(mailto:
  
 

   
   
  users-unsubscr...@wicket.apache.org 
  (mailto:users-unsubscr...@wicket.apache.org)) (mailto:
  
 
 
 
 
users-unsubscr...@wicket.apache.org 
(mailto:users-unsubscr...@wicket.apache.org) (mailto:
  users-unsubscr...@wicket.apache.org 
  (mailto:users-unsubscr...@wicket.apache.org)))
  For additional commands, e-mail: users-h...@wicket.apache.org 
  (mailto:users-h...@wicket.apache.org)(mailto:
  
 

   
   
  users-h...@wicket.apache.org (mailto:users-h...@wicket.apache.org)) (mailto:
 
 
 
 
users-h...@wicket.apache.org (mailto:users-h...@wicket.apache.org))
 
 
 
 
 
 
 
 
-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org 
(mailto:users-unsubscr...@wicket.apache.org) (mailto:

   
   
  users-unsubscr...@wicket.apache.org 
  (mailto:users-unsubscr...@wicket.apache.org))
For additional commands, e-mail: users-h...@wicket.apache.org 
(mailto:users-h...@wicket.apache.org) (mailto:

   
   
  users-h...@wicket.apache.org (mailto:users-h...@wicket.apache.org))

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



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



Wicket 6.0 and Javascript Event Registration question

2012-01-30 Thread Thomas Götz
Just a thought about the upcoming changes to Wicket's Javascript event 
registration mechanism in Wicket 6.0 (instead of inline JS events): 

we have several Behaviors that provide Javascript in which we register to JS 
events, e.g. 'onblur'. Now I have a Component that additionally has an 
AjaxEventBehavior(onblur). Currently, the Behaviors that registered to 
'onblur' are guaranteed to execute before the inline 'onblur' event (provided 
by the AjaxEventBehavior). Could this be a problem with Wicket 6.0? Meaning: 
will it still be possible to provide additional Behaviors that register JS 
events that execute *before* any event behavior already registered to some 
Component? Or how will Wicket's JS event mechanism figure out the order of 
Behaviors?

Cheers,
   -Tom
 



Re: Wicket 6.0 and Javascript Event Registration question

2012-01-30 Thread Thomas Götz
This will cause quite some trouble for the application I'm currently developing.

Example:
we have a Behavior that puts input hints on several textfields (e.g. 
dd/mm/ for day input fields). The Behavior provides a JS file in which we 
register for the submit event of the containing form and thus assure that 
input hints are removed on form submit. For this implementation it's crucial 
that the JS is executed before any 'onsubmit' handler provided by Wicket. Also, 
we remove/restore input hints 'onblur' of the textfield, which also has an 
AjaxFormComponentUpdatingBehavior(onblur). Here it's also crucial that our 
code is executed before Wicket's (which will ajax post the values).

Just an example in our applications, but maybe worth considering as others 
might have similar implementations for other usecases. Sure, many things can be 
handled by AjaxCallDecorator, but not all ;-)

Cheers,
   -Tom



Martin Grigorov wrote:

 Hi,
  
 The new code registers listeners with jQuery's on() method which uses
 internally addEventListener() (IE9 and others) and attachEvent() (IE8
 and less).
 So you need to execute your JS code after Wicket's.
 Wicket executes its bindings when the DOM is ready, so you must be
 careful that your Mootools code is run after Wicket's.
 Better try with a simple app and see how it behaves.
  
 On Mon, Jan 30, 2012 at 5:49 PM, Thomas Götz t...@richmountain.de 
 (mailto:t...@richmountain.de) wrote:
  Just a thought about the upcoming changes to Wicket's Javascript event 
  registration mechanism in Wicket 6.0 (instead of inline JS events):
   
  we have several Behaviors that provide Javascript in which we register to 
  JS events, e.g. 'onblur'. Now I have a Component that additionally has an 
  AjaxEventBehavior(onblur). Currently, the Behaviors that registered to 
  'onblur' are guaranteed to execute before the inline 'onblur' event 
  (provided by the AjaxEventBehavior). Could this be a problem with Wicket 
  6.0? Meaning: will it still be possible to provide additional Behaviors 
  that register JS events that execute *before* any event behavior already 
  registered to some Component? Or how will Wicket's JS event mechanism 
  figure out the order of Behaviors?
   
  Cheers,
-Tom
   
  
  
  
  
 --  
 Martin Grigorov
 jWeekend
 Training, Consulting, Development
 http://jWeekend.com
  
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org 
 (mailto:users-unsubscr...@wicket.apache.org)
 For additional commands, e-mail: users-h...@wicket.apache.org 
 (mailto:users-h...@wicket.apache.org)
  
  




Re: wizard starting background task

2012-02-09 Thread Thomas Götz

N. Metzger wrote:

 1) I start the background task in a lazy load panel, but haven't figured out
 yet how to display a progress bar while the lazy load is executing.

You might also take a look at http://wicket.visural.net/examples/submitters 
(hit the Calculate X*Y (Modal) button).

Cheers,
   -Tom



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



Re: wizard starting background task

2012-02-09 Thread Thomas Götz
Simply implement your own FinishButton, e.g. extend AjaxButton and put your 
logic in it's unSubmit(…) method.
Therefore you will have to override Wizard#newButtonBar(final String id) and 
provide your own impl, but WizardButtonBar does not have very much logic, so 
that's acceptable IMHO.

Cheers,
   -Tom


Am 09.02.2012 um 15:04 schrieb N. Metzger:

 To give you more information:
 
 I can ope a new page (or modal window) and start the wicketstuff progress
 bar with a new ajax button on that page. 
 I can also open a new page with the ajax lazy load panel that will display
 the indicating gif while loading stuff in the background.
 
 What I'm looking for is a way to NOT open a new page and NOT to click
 another ajax button to start the background task and display the progress
 bar. I would like the finish button of the wizard to take care of it.
 
 Now I can of course replace the wizard with a row of pages or panel
 replacements, but I don't want to lose the wizard functionality if possible.
 
 Thanks for all your help,
 Natalie
 
 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/wizard-starting-background-task-tp4371604p4372939.html
 Sent from the Users forum 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: Wicket authentication: how to store user?

2012-03-12 Thread Thomas Götz
That's not always feasible - in respect to user experience. Just think of some 
order process where e.g. you are asked to log in when doing a checkout (of 
your shopping cart).

   -Tom


Hielke Hoeve wrote:

 Webapplications should always invalidate the wicket session before 
 authenticating. (use Session.get().replaceSession() )


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



Check if FormComponent is valid in later request

2012-03-14 Thread Thomas Götz
Hi!

I have the following situation:

I have a form containing several FormComponents and Validators, submitted via 
Ajax. Then I have an AjaxButton on the same page (outside the form) which 
triggers some backend logic. But it should only do so if the mentioned form had 
no validation errors during the last submit. How should I check that? 
Form.hasError() only checks for error messages, which always returns 'false' as 
the error messages already have been rendered in one of the preceding requests.

Is it a good idea to set a flag in the Form (boolean isValid) upon 
onSubmit/onError and check for that flag or is there some already provided 
Wicket mechanic I could use?

Cheers,
   -Tom


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



Re: Check if FormComponent is valid in later request

2012-03-14 Thread Thomas Götz
Exactly! My bad I mentioned AjaxButton. It should read 
'AjaxFormComponentUpdatingBehavior' on a DropDownChoice, was trying to 
generalize the problem for explaining, but 'AjaxButton' was a bad example …

Wouldn't it be convenient if a Form (or FormComponent) whould remembered their 
'valid' state so you could check for it in later (e.g. Ajax) requests?

   -Tom


Dan Retzlaff wrote:

 If I understand Thomas correctly, the button is not a form submitting
 button. It's outside the form and is handled on a request after the form is
 submitted.
 
 Thomas, I think if you want to avoid resubmitting the form then you'll need
 to set your own formSubmittedSuccessfully state in Form#onSubmit. Form
 doesn't remember what happened on previous requests; it either updates
 models on success or creates error messages on failure.
 
 On Wed, Mar 14, 2012 at 2:00 PM, Igor Vaynberg igor.vaynb...@gmail.comwrote:
 
 if the form is invalid your button's onsubmit() wont get fired...
 
 -igor
 
 On Wed, Mar 14, 2012 at 1:53 PM, Thomas Götz t...@decoded.de wrote:
 Hi!
 
 I have the following situation:
 
 I have a form containing several FormComponents and Validators,
 submitted via Ajax. Then I have an AjaxButton on the same page (outside the
 form) which triggers some backend logic. But it should only do so if the
 mentioned form had no validation errors during the last submit. How should
 I check that? Form.hasError() only checks for error messages, which always
 returns 'false' as the error messages already have been rendered in one of
 the preceding requests.
 
 Is it a good idea to set a flag in the Form (boolean isValid) upon
 onSubmit/onError and check for that flag or is there some already provided
 Wicket mechanic I could use?
 
 Cheers,
  -Tom
 
 
 -
 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: Language setting from browser

2012-03-15 Thread Thomas Götz
From the JavaDoc of org.apache.wicket.Session:

* libLocale /b- A session has a Locale property to support localization. 
The Locale for a
* session can be set by calling {@link Session#setLocale(Locale)}. The Locale 
for a Session
* determines how localized resources are found and loaded.

Cheers,
   -Tom

mukesh kumar wrote:

 Hi,
   In my wicket application, when i change the language from browser , than
 after refresh (F5) the page, than my language have not be changed. It is
 changes, when we first logout the application than login. 
 But according to my project requirement, i want to change my
 language when refresh the page after language change.
  So, please give me kindly reply ASAP. I am working on
 wicket 1.5.3 versions.
 
 Thanks !
 
 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/Language-setting-from-browser-tp4474740p4474740.html
 Sent from the Users forum 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



rawInput, page reload and error messages

2012-04-11 Thread Thomas Götz
Hi!

I have the following situation (Wicket 1.5.5):

- a Form with a TextFieldString with some Validator
- you input invalid data and submit - error message, fine.
- (invalid) rawInput is shown in the TextField, fine.
- now I do a page reload, invalid rawInput still in the TextField, but no error 
message shown

What I'd like to achieve is that upon a page reload the (invalid) rawInput is 
shown in the TextField, but the error message also needs to be shown again. How 
can this be done?

I already tried to trigger validation manually by calling 
formComponent.validate(), but this calls AbstractTextComponent.convertInput(), 
which tries to pull the input data from the request (and there is no data 
because of page reload, so validation won't fail …).

Cheers,
   -Tom


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



Re: Include Component

2012-05-02 Thread Thomas Götz
import org.apache.wicket.markup.ComponentTag;
import org.apache.wicket.markup.MarkupStream;
import org.apache.wicket.markup.html.include.Include;
import org.apache.wicket.model.IModel;

public class MyInclude extends Include {

public MyInclude(String id, IModelString model) {
super(id, model);
}

@Override
public void onComponentTagBody(MarkupStream markupStream, ComponentTag 
openTag) {
String content = ;
try {
content = importAsString();
} catch (Exception e) {
// ...
}
replaceComponentTagBody(markupStream, openTag, content);
}

}



Thomas Götz
IT Consultant/Freelancer
Kaulardstraße 70a
50354 Hürth/Efferen
 
phone  +49 151 40420203 
mail  tgo...@decoded.de
web  www.decoded.de





On 02.05.2012 at 17:08 Bruce Pease wrote:

 Sorry, that's Wicket version 4.1.15.
 
 
 
 From: Bruce Pease 
 Sent: Wednesday, May 02, 2012 11:06 AM
 To: 'users@wicket.apache.org'
 Subject: Include Component
 
 
 
 Good Morning:
 
 
 
 I am using the Wicket 1.4.14 release in a Tomcat 7 windows server.  I am
 using the Include class to render a navigation panel.  I would like to
 protect this call on the off chance that the file/url does not exist.  Right
 now, the framework throws a file io exception, and the page fails.  Is there
 a way to tell the framework to default to an empty panel is the file does not
 exist?
 
 
 
 Thanks,
 
 
 
 Bruce D. Pease
 Technical Team Lead - Web Applications
 CruiseOne(r) http://www.cruiseone.com/   Cruises Inc(tm)
 http://www.cruisesinc.com/ 
 1201 W. Cypress Creek Road, Suite 100
 Fort Lauderdale, FL 33309-1955
 954-958-3654 (direct) | 954-958-3665 (fax)
 bpe...@wth.com mailto:ssza...@wth.com 
 
 
 


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



Re: Unusual problem is coming in rendering component

2012-05-03 Thread Thomas Götz
Please have a look at the JavaDoc of 
org.apache.wicket.model.CompoundPropertyModel. Other interesting reads:

https://cwiki.apache.org/WICKET/working-with-wicket-models.html#WorkingwithWicketmodels-CompoundPropertyModels
http://www.mkyong.com/wicket/wicket-compoundpropertymodel-example/

Cheers,
   -Tom




On 03.05.2012 at 05:07 kshitiz wrote:

 Thank you very much for the repliesI got the problem and solved it using
 the code:
 
 *final RequiredTextFieldString postTextField = new
 RequiredTextFieldString(
   postTextField, 
 Model.of(postDomain.getPost()));
 *
 
 But please tell me one thing...the first parameter in new
 RequiredTextFieldString() function is used to map textfield tag present in
 html page with its java definition. Why wicket is using that parameter to
 map it to the property of compound model (PostDomain in this case)???
 
 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/Unusual-problem-is-coming-in-rendering-component-tp4604163p4605012.html
 Sent from the Users forum 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: How to prevent duplicates when using HeaderContributor

2012-05-03 Thread Thomas Götz
Please see the following quickstart for an example: 
http://cl.ly/0w421o340J2e2w330Y0j

Cheers,
   -Tom


On 03.05.2012 at 15:17 Christoph Leiter wrote:

 Hi,
 
 the Javadoc of IHeaderResponse#renderString says:
 Renders an arbitrary string to the header. The string is only rendered if 
 the same string hasn't been rendered before.
 So if you call it with two different titles the expected behavior is to get 
 the title tag twice.
 
 I wouldn't use a IHeaderResponse for that. My suggestion is to use a normal 
 title tag in your base page markup. Provide a method which returns the 
 current title and let specific pages override that method as needed.
 
 
 Christoph
 
 
 
 heikki (2012-05-03 15:10):
 hello,
 
 I'd like to be able to use a fixed title for my pages, that gets overridden
 for some of the pages.
 
 To do that, I have a fixed title element in my base HTML page:
 
 
 Then in the pages that should have a different title, I override
 renderHead() like this:
 
 @Override
 public void renderHead(final IHeaderResponse response) {
 String title = title + getTheDynamicTitle() +/title;
 response.renderString(title);
}
 
 The result is that my rendered page has 2title  elements in its header,
 the fixed one and the dynamic one.
 
 I would have thought that Wicket would be smart enough to replace an
 existing header element; the IHeaderResponse javadoc says Implementation of
 this interface is responsible for filtering duplicate contributions (so that
 for example the same javascript is not loaded twice) during the same
 request. Well.
 
 Do I need to write my own implementation of IHeaderResponse for this ?
 
 It would seem like a pretty common use case to me, did anyone already solve
 it ?
 
 Kind regards
 Heikki Doeleman
 
 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/How-to-prevent-duplicates-when-using-HeaderContributor-tp4605975.html
 Sent from the Users forum 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: Wicket 6.0.0-beta1: RangeValidator Issue (NPE)

2012-05-10 Thread Thomas Götz
I can confirm this, see this quickstart: http://decoded.de/wicket-quickstart.zip
The NPE only occurs if there is a FeedbackPanel on the page. If you take it out 
- no exception. Besides, there is no WARN log if you are missing a 
FeedbackPanel and there are messages to be rendered, bug or feature?!

Cheers,
   -Tom


On 09.05.2012 at 22:49 Sebastien wrote:

 Hi wicket's team,
 
 While using the following code:
 
final TextFieldInteger input = new TextFieldInteger(input,
 new ModelInteger(15), Integer.class);
input.add(new RangeValidatorInteger(0, 200));
form.add(input);
 
 I've got a NPE with wicket6.0.0-beta1, when I submit the form with a value
 not inside the validator's bounds. (ie, 500).
 I tested in a simple quickstart to be sure... It is ok with 1.5.6 and crash
 with 6.0.0-beta1
 
 java.lang.NullPointerException
 at 
 org.apache.wicket.markup.html.form.ValidationErrorFeedback.toString(ValidationErrorFeedback.java:83)
 at 
 org.apache.wicket.markup.html.panel.FeedbackPanel.newMessageDisplayComponent(FeedbackPanel.java:338)
 at 
 org.apache.wicket.markup.html.panel.FeedbackPanel$MessageListView.populateItem(FeedbackPanel.java:117)
 at 
 org.apache.wicket.markup.html.list.ListView.onPopulate(ListView.java:524)
 at 
 org.apache.wicket.markup.repeater.AbstractRepeater.onBeforeRender(AbstractRepeater.java:116)
 
 Thus, just fyi, it is not documented in the migration guide what's happened
 to the NumberValidator... I did not find it, so I did not test another
 validator such as MaximumValidator...
 
 Best regards,
 Sebastien


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



Re: Wicket 6.0.0-beta1: RangeValidator Issue (NPE)

2012-05-10 Thread Thomas Götz
My bad: https://issues.apache.org/jira/browse/WICKET-4548

   -Tom


On 10.05.2012 at 09:38 Martin Grigorov wrote:

 Guys,
 
 Please use Jira for bug reports.
 
 On Thu, May 10, 2012 at 9:28 AM, Thomas Götz t...@decoded.de wrote:
 I can confirm this, see this quickstart: 
 http://decoded.de/wicket-quickstart.zip
 The NPE only occurs if there is a FeedbackPanel on the page. If you take it 
 out - no exception. Besides, there is no WARN log if you are missing a 
 FeedbackPanel and there are messages to be rendered, bug or feature?!
 
 Cheers,
   -Tom
 
 
 On 09.05.2012 at 22:49 Sebastien wrote:
 
 Hi wicket's team,
 
 While using the following code:
 
final TextFieldInteger input = new TextFieldInteger(input,
 new ModelInteger(15), Integer.class);
input.add(new RangeValidatorInteger(0, 200));
form.add(input);
 
 I've got a NPE with wicket6.0.0-beta1, when I submit the form with a value
 not inside the validator's bounds. (ie, 500).
 I tested in a simple quickstart to be sure... It is ok with 1.5.6 and crash
 with 6.0.0-beta1
 
 java.lang.NullPointerException
 at 
 org.apache.wicket.markup.html.form.ValidationErrorFeedback.toString(ValidationErrorFeedback.java:83)
 at 
 org.apache.wicket.markup.html.panel.FeedbackPanel.newMessageDisplayComponent(FeedbackPanel.java:338)
 at 
 org.apache.wicket.markup.html.panel.FeedbackPanel$MessageListView.populateItem(FeedbackPanel.java:117)
 at 
 org.apache.wicket.markup.html.list.ListView.onPopulate(ListView.java:524)
 at 
 org.apache.wicket.markup.repeater.AbstractRepeater.onBeforeRender(AbstractRepeater.java:116)
 
 Thus, just fyi, it is not documented in the migration guide what's happened
 to the NumberValidator... I did not find it, so I did not test another
 validator such as MaximumValidator...
 
 Best regards,
 Sebastien
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
 
 -- 
 Martin Grigorov
 jWeekend
 Training, Consulting, Development
 http://jWeekend.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: Wicket 6.0.0-beta1: RangeValidator Issue (NPE)

2012-05-10 Thread Thomas Götz
Lol, first! Mine has WICKET-4548 ;)

   -Tom


On 10.05.2012 at 09:50 Sebastien wrote:

 Hi Martin,
 
 Here we are: https://issues.apache.org/jira/browse/WICKET-4549
 
 Sebastien.


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



Re: pageablelistview is giving out of memory exception while loading more than 70000 records wicket example

2012-05-14 Thread Thomas Götz
https://cwiki.apache.org/WICKET/detachable-models.html

   -Tom


raju.ch wrote:

 - Can you please provide a sample of LoadableDetachModel?


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



Re: How to change the properties file location in Wicket

2012-05-20 Thread Thomas Götz
Why do you need to change that? What is your usecase?

   -Tom



On 20.05.2012 at 18:47 oliver.stef wrote:

 Hi Martin,
 
 Thank you for your help, but my problem is that i need to put my properties
 file in folder that is not next to the HTML and Java files.
 
 i need to change the look-up algorithm of wicket. 
 
 Any body know how to do it?
 
 Thanks! 
 
 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/How-to-change-the-properties-file-location-in-Wicket-tp4642901p4647014.html
 Sent from the Users forum 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: wicket 6 setting response page with page object and session expired error

2012-05-21 Thread Thomas Götz
Could you provide a quickstart that demonstrates this behavior?

   -Tom


On 21.05.2012 at 09:56 kamiseq wrote:

 hej,
 I have a strange error.
 
 I have stateless page (A) with form on it. form contains email input.
 inside form's onSelect handler I create page (B) and pass email to its
 constructor.
  Application nextPage = new
 Application(getModelObject().getEmail());// form model object
  setResponsePage(nextPage);
 
 page B is also mounted so someone can access page by passing email as 
 parameter.
  super(parameters);
  StringValue email = parameters.get(email);
  if (email.isEmpty())
throw new RuntimeException(ups no email);
 
 page B displays users data if available.
 page B creates LoadableDetachableModel and uses email as id, I also
 pass Injected service object by giuce to the model
 page B has link to go to page C
 add(new LinkVoid(accept)
 {
@Override
public void onClick() {
SignIn signInPage = new SignIn(model); // model is created on
 the begging of the constructor
setResponsePage(signInPage);
}
 });
 
 pages B and C are state-full.
 now when I go from page A and pass page B object and then call the
 link which creates page C object then I get page expired message.
 BUT if I go directly to page B using mounted url and then I click on
 link I am redirected to page C without a problem.
 
 maybe I miss something obvious here but I cannot explain it why this
 is happening.
 there is no errors in log from wicket, the SignIn (C) page is created
 as expected.
 
 thanks for any hint.
 
 pozdrawiam
 Paweł Kamiński
 
 kami...@gmail.com
 pkaminski@gmail.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: wicket 6 setting response page with page object and session expired error

2012-05-21 Thread Thomas Götz
Either this or upload it somewhere and post the link here.

   -Tom


On 21.05.2012 at 16:25 kamiseq wrote:

 yes,
 can I send it directly to you in case userlist rejects attachment?
 
 pozdrawiam
 Paweł Kamiński
 
 kami...@gmail.com
 pkaminski@gmail.com
 __


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



Re: wicket 6 setting response page with page object and session expired error

2012-05-22 Thread Thomas Götz
On 22.05.2012 at 06:01 kamiseq wrote:

 step to reproduce
 1. go to http://localhost:8080 and type any valid email (ie l...@oa.pl)
 and submit form
 2. press accept and it will take you to third page
 3. this should fail and show expire page error

No, it doesn't. 3. works in your example, there is no exception thrown.


 1. go to http://localhost:8080/user/email/l...@oa.pl
 2. press accept
 3. third page is loaded as expected

Confirmed, but I can see no difference in the behavior of that two processes, 
both work for me in your provided quickstart.

   -Tom



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



Re: DataTable and PagingNavigator problem

2012-05-22 Thread Thomas Götz
Could you please provide a quickstart that demonstrates your implementation?

   -Tom


On 22.05.2012 at 17:54 Viliam Repan wrote:

 Hi,
 
 I probably found a bug in DataTable and PagingNavigator, or more likely
 I don't understand it correctly...
 I have page with one data table and two paging navigators in form, html
 part looks like this:
 
 form wicket:id=mainForm
 
div wicket:id=pTop/
 
div wicket:id=table/
 
div wicket:id=pBottom/
 
 /form
 
 
 Java code - constructor:
 
 public PageTest() {
 
Form mainForm = new Form(mainForm);
 
add(mainForm);
 
DataTableUserType table = new DataTableUserType(table, initColumns(),
 
new ObjectDataProvider(PageTest.this, UserType.class), 10);
 
table.setOutputMarkupId(true);
 
mainForm.add(table);
 
PagingNavigator pTop = new PagingNavigator(pTop, table);
 
mainForm.add(pTop);
 
PagingNavigator pBottom = new PagingNavigator(pBottom, table);
 
mainForm.add(pBottom);
 
 }
 
 
 After first page load, I can see in logs:
 
 2012-05-22 17:45:11,049 TRACE (c.e.m.w.c.d.ObjectDataProvider):
 begin::size()
 2012-05-22 17:45:12,081 TRACE (c.e.m.w.c.d.ObjectDataProvider): end::size()
 2012-05-22 17:45:12,081 TRACE (c.e.m.w.c.d.ObjectDataProvider):
 begin::iterator() from 0 count 10.
 2012-05-22 17:45:12,546 TRACE (c.e.m.w.c.d.ObjectDataProvider):
 end::iterator()
 
 After click on next page, I see in logs:
 2012-05-22 17:45:19,620 TRACE (c.e.m.w.c.d.ObjectDataProvider):
 begin::size()
 2012-05-22 17:45:20,693 TRACE (c.e.m.w.c.d.ObjectDataProvider): end::size()
 2012-05-22 17:45:20,696 TRACE (c.e.m.w.c.d.ObjectDataProvider):
 begin::size()
 2012-05-22 17:45:21,722 TRACE (c.e.m.w.c.d.ObjectDataProvider): end::size()
 2012-05-22 17:45:21,722 TRACE (c.e.m.w.c.d.ObjectDataProvider):
 begin::iterator() from 10 count 10.
 2012-05-22 17:45:22,164 TRACE (c.e.m.w.c.d.ObjectDataProvider):
 end::iterator()
 
 size() method in data provider is called twice, that's probably a bug. I
 have many objects in db (up to 500k),
 so it's a 1s-2s difference in response time. I'm suspecting that it's
 caused by AbstractPageableView.getCurrentPage(),
 because there is a check which calls getPageCount() which calls
 getItemCount(). There is some caching mechanism for count,
 but it's not working in this case...
 
 Can somebody help please, any ideas?
 
 
 Vilo
 
 -
 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: wicket 6 setting response page with page object and session expired error

2012-05-22 Thread Thomas Götz
I tested your quickstart from within the IDE by running Start.java.

Models are meant to be passed around, so there's nothing wrong with it in 
general. And it's always (at least in 95% of cases I'd dare to say) preferable 
to passing Objects (beans).


   -Tom


On 22.05.2012 at 18:55 kamiseq wrote:

 anyway there is nothing wrong to my code, in your opnion?
 I just have bad feeling about passing model from one page to another
 in constructor. on the other hand model are serialised into session so
 maybe it is a better idea to pass them around rather than object they
 are wrapping
 
 pozdrawiam
 Paweł Kamiński
 
 kami...@gmail.com
 pkaminski@gmail.com
 __
 
 
 On 22 May 2012 18:13, kamiseq kami...@gmail.com wrote:
 huh, then something is wrong with my environment,
 im running it with jetty invoking simple mvn clean install jetty:run
 
 pozdrawiam
 Paweł Kamiński
 
 kami...@gmail.com
 pkaminski@gmail.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: DataTable and PagingNavigator problem

2012-05-22 Thread Thomas Götz
This looks indeed like a bug to me. I opened a ticket for this: 
https://issues.apache.org/jira/browse/WICKET-4568

   -Tom


On 22.05.2012 at 21:10 Viliam Repan wrote:

 Hi,
 
 I've create sample mvn project, after build and deploy you can see
 sysouts like this:
 
 size() 100
 iterator() 0 10
 size() 100
 iterator() 0 10   after tomcat start and page loading
 size() 100
 size() 100
 iterator() 10 10after click on next in navigation paging
 size() 100
 size() 100
 iterator() 20 10after click on some page in navigation
 paging
 
 thank you for your help.
 
 
 vilo
 
 On 05/22/2012 06:15 PM, Thomas Götz wrote:
 Could you please provide a quickstart that demonstrates your implementation?
 
   -Tom
 
 
 On 22.05.2012 at 17:54 Viliam Repan wrote:
 
 Hi,
 
 I probably found a bug in DataTable and PagingNavigator, or more likely
 I don't understand it correctly...
 I have page with one data table and two paging navigators in form, html
 part looks like this:
 
 form wicket:id=mainForm
 
   div wicket:id=pTop/
 
   div wicket:id=table/
 
   div wicket:id=pBottom/
 
 /form
 
 
 Java code - constructor:
 
 public PageTest() {
 
   Form mainForm = new Form(mainForm);
 
   add(mainForm);
 
   DataTableUserType table = new DataTableUserType(table, 
 initColumns(),
 
   new ObjectDataProvider(PageTest.this, UserType.class), 10);
 
   table.setOutputMarkupId(true);
 
   mainForm.add(table);
 
   PagingNavigator pTop = new PagingNavigator(pTop, table);
 
   mainForm.add(pTop);
 
   PagingNavigator pBottom = new PagingNavigator(pBottom, table);
 
   mainForm.add(pBottom);
 
 }
 
 
 After first page load, I can see in logs:
 
 2012-05-22 17:45:11,049 TRACE (c.e.m.w.c.d.ObjectDataProvider):
 begin::size()
 2012-05-22 17:45:12,081 TRACE (c.e.m.w.c.d.ObjectDataProvider): end::size()
 2012-05-22 17:45:12,081 TRACE (c.e.m.w.c.d.ObjectDataProvider):
 begin::iterator() from 0 count 10.
 2012-05-22 17:45:12,546 TRACE (c.e.m.w.c.d.ObjectDataProvider):
 end::iterator()
 
 After click on next page, I see in logs:
 2012-05-22 17:45:19,620 TRACE (c.e.m.w.c.d.ObjectDataProvider):
 begin::size()
 2012-05-22 17:45:20,693 TRACE (c.e.m.w.c.d.ObjectDataProvider): end::size()
 2012-05-22 17:45:20,696 TRACE (c.e.m.w.c.d.ObjectDataProvider):
 begin::size()
 2012-05-22 17:45:21,722 TRACE (c.e.m.w.c.d.ObjectDataProvider): end::size()
 2012-05-22 17:45:21,722 TRACE (c.e.m.w.c.d.ObjectDataProvider):
 begin::iterator() from 10 count 10.
 2012-05-22 17:45:22,164 TRACE (c.e.m.w.c.d.ObjectDataProvider):
 end::iterator()
 
 size() method in data provider is called twice, that's probably a bug. I
 have many objects in db (up to 500k),
 so it's a 1s-2s difference in response time. I'm suspecting that it's
 caused by AbstractPageableView.getCurrentPage(),
 because there is a check which calls getPageCount() which calls
 getItemCount(). There is some caching mechanism for count,
 but it's not working in this case...
 
 Can somebody help please, any ideas?
 
 
 Vilo
 
 -
 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
 
 
 datatable-sample.zip
 -
 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: DataTable and PagingNavigator problem

2012-05-22 Thread Thomas Götz
The patch is yet only a proposal by me on how this might be fixed. Any of the 
committers might want to look at it before maybe ;-)

As for the release date of the next version: I guess when it is ready ;-)

   -Tom


On 22.05.2012 at 22:49 Viliam Repan wrote:

 Hi,
 
 I saw a patch already prepared to fix this bug. Does wicket have some
 release plan/calendar -
 I mean when could I expect next version of wicket (and this to be
 inserted in)? :)
 Thank you.
 
 vilo


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



Re: Make additional actions on click on external links

2012-05-28 Thread Thomas Götz
You could use e.g. jQuery event registration:

$(#target).click(function() {
  alert(Handler for .click() called.);
});

See http://api.jquery.com/click for more details.

   -Tom


on 28.05.2012 at 11:09 cosmindumy wrote:

 Hello,
 How can I make additional actions on click event on external link? It
 doesn't implement onClick method.
 Thanks.


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



Re: decorating html with wicket

2012-05-29 Thread Thomas Götz
I'm not convinced yet that this is really a good idea (how to deal with 
constructor arguments for validators? What is the advantage of having all in 
html effectively?) but as a starting point you could look at 
AbstractMarkupFilter (e.g. see how WicketRemoveTagHandler and other 
implementations work).

To add your own MarkupFilter implementation, do the following:


public class MyMarkupFactory extends MarkupFactory {

@Override
public MarkupParser newMarkupParser(MarkupResourceStream resource) {
final MarkupParser markupParser = super.newMarkupParser(resource);
markupParser.add(new MyMarkupFilter());
return markupParser;
}

}

and register MyMarkupFactory in your Application class:

@Override
public void init() {
super.init();
getMarkupSettings().setMarkupFactory(new MyMarkupFactory());
}


Cheers,
   -Tom



On 28.05.2012, 21:25h Fernando Wermus wrote:

 Hi all,
 I was wondering if there is some solution already done like this:
 
 input type=text wicket:id=txtMyTextField  *
 wicket:fieldtype=java.lang.String*
 *wicket:validators=com.mycompany.MyValidator1,
 com.mycompany.MyValidator2* /
 
 The idea is that HTML is allright for rendering, but It lacks  some
 behaviors. Therefore , instead of making up another markup, there is the
 chance to decorate with wicket behaviors and validators.
 
 This is flexible enough to have differents specifications and
 implementation to rich HTML.
 
 The idea we have at my work is to allow junior programmers to design mockup
 pages for funcitonal analyst without adding a line of code. We were mocking
 up pages with Adobe Flex and would like to have this behaviour with wicket.
 
 thanks in advance
 
 Fernando Wermus.
 
 www.linkedin.com/in/fernandowermus


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



Re: decorating html with wicket

2012-05-29 Thread Thomas Götz
If I understand you correctly, your aim is to be able to rapidly prototype 
processes to be reviewed by customers/POs etc. Wouldn't a tool like Balsamiq 
Mockups or some other wireframing tool be more suitable for that purpose?

You also mentioned that the prototype should be created by some one who do not 
know how to program, with your solution this person at least needs to have 
knowledge about Wicket Validators (including der Java package + class name + 
parameters).

In my experience it is best to create a throw-away wireframe Mockup, and after 
the customer agreed to it, you start coding this in HTML/JS/Java. I don't like 
the idea too much to introduce additional complex logic into Wicket just fore 
wireframing/mockup purposes (as mentioned, a person without Wicket knowledge 
can't use this anyway).

Just my $0.02,
   -Tom


On 29.05.2012, 15:03h Fernando Wermus wrote:

 Tom,
Something else. I experienced the advantages to have mock up pages
 working in another company with Adobe Flex. These pages are added to the
 analysis and the clients could have in advance a vivid experience.
 
 
 Fernando Wermus.
 
 www.linkedin.com/in/fernandowermus
 
 
 
 On Tue, May 29, 2012 at 10:00 AM, Fernando Wermus fernando.wer...@gmail.com
 wrote:
 
 Tom,
 Thanks you for the review.
 
 The idea is that some pages are not implemented, tough they are declared
 by some one who do not know how to program. A page implemented by us read
 the form  and instance all the components. We have wizards and they can
 show the mock up to third workers. When they are accepted, the programmers
 finish the work.
 
 
 Fernando Wermus.
 
 www.linkedin.com/in/fernandowermus
 
 
 
 
 On Tue, May 29, 2012 at 4:01 AM, Thomas Götz t...@decoded.de wrote:
 
 I'm not convinced yet that this is really a good idea (how to deal with
 constructor arguments for validators? What is the advantage of having all
 in html effectively?) but as a starting point you could look at
 AbstractMarkupFilter (e.g. see how WicketRemoveTagHandler and other
 implementations work).
 
 To add your own MarkupFilter implementation, do the following:
 
 
 public class MyMarkupFactory extends MarkupFactory {
 
   @Override
   public MarkupParser newMarkupParser(MarkupResourceStream resource) {
   final MarkupParser markupParser = super.newMarkupParser(resource);
   markupParser.add(new MyMarkupFilter());
   return markupParser;
   }
 
 }
 
 and register MyMarkupFactory in your Application class:
 
 @Override
 public void init() {
   super.init();
   getMarkupSettings().setMarkupFactory(new MyMarkupFactory());
 }
 
 
 Cheers,
  -Tom
 
 
 
 On 28.05.2012, 21:25h Fernando Wermus wrote:
 
 Hi all,
I was wondering if there is some solution already done like this:
 
 input type=text wicket:id=txtMyTextField  *
 wicket:fieldtype=java.lang.String*
 *wicket:validators=com.mycompany.MyValidator1,
 com.mycompany.MyValidator2* /
 
 The idea is that HTML is allright for rendering, but It lacks  some
 behaviors. Therefore , instead of making up another markup, there is the
 chance to decorate with wicket behaviors and validators.
 
 This is flexible enough to have differents specifications and
 implementation to rich HTML.
 
 The idea we have at my work is to allow junior programmers to design
 mockup
 pages for funcitonal analyst without adding a line of code. We were
 mocking
 up pages with Adobe Flex and would like to have this behaviour with
 wicket.
 
 thanks in advance
 
 Fernando Wermus.
 
 www.linkedin.com/in/fernandowermus
 
 
 -
 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: Loop.populateItem() while migrating from Wicket 1.4 to 1.5

2012-05-31 Thread Thomas Götz
Could you please provide a quickstart?

   -Tom



On 31.05.2012, 00:32 paulstar wrote:

 in Wicket 1.4, this works fine:
 
   this.form.add(new Loop(ccformfields, ccformfields.size())
   {
   @Override
   protected void populateItem(LoopItem item)
   {
   int index = item.getIteration();
   final CcFormPanel.FormField frag =
 ccformfields.get(index);
   item.add(new TableRow(frag));
   }
   });
 
 
 Now I am upgrading to Wicket 1.5 as such:
 
   this.form.add(new Loop(ccformfields, ccformfields.size())
   {
   @Override
   protected void populateItem(LoopItem item)
   {
   int index = item.getIndex();
   final CcFormPanel.FormField frag =
 ccformfields.get(index);
   item.add(new TableRow(frag));
   }
   });
 
 Here are the exception:
 
 Caused by: java.lang.IndexOutOfBoundsException: Index: 2, Size: 2
   at java.util.ArrayList.RangeCheck(Unknown Source)
   at java.util.ArrayList.get(Unknown Source)
   at
 com.xxx.cc.components.CcFormPanel$1.populateItem(CcFormPanel.java:202)
   at org.apache.wicket.markup.html.list.Loop.onPopulate(Loop.java:100)
   at
 org.apache.wicket.markup.repeater.AbstractRepeater.onBeforeRender(AbstractRepeater.java:119)
   at
 org.apache.wicket.Component.internalBeforeRender(Component.java:993)
   at org.apache.wicket.Component.beforeRender(Component.java:1027)
   at
 org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1743)
   ... 49 more
 
 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/Loop-populateItem-while-migrating-from-Wicket-1-4-to-1-5-tp4649598.html
 Sent from the Users forum 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: Is there a quick way to deselect all radio buttons in a group via an AJAX event?

2012-05-31 Thread Thomas Götz
What about using Javascript? e.g. jQuery:

$('input:radio').attr('checked', false);

or

$('input[name=myRadio]:radio').attr('checked', false);


   -Tom



On 31.05.2012 at 08:20 Chris Colman wrote:

 We have a button that, when clicked, should deselect ALL radio buttons in a 
 separate radio group.
  
 Can this be done in Wicket?
  
 Yours sincerely,
  
 Chris Colman



Re: Conditional Popup

2012-06-01 Thread Thomas Götz
Could you please provide a quickstart or post the interesting HTML and Java 
snippets?

   -Tom


On 01.06.2012 at 15:24 hfriederichs wrote:

 Hello,
 
 I have a wicket PopupPage that answers a wicket link, but I don't want it to
 popup when certain conditions are not met. In that case I want an
 info-message.
 
 So I tried something like:
 final LinkString theLink = new LinkString(...) {
   
 public void onClick() {
 if (condition) {
   info(Do this first);
 } else {
  setPopupSettings(thePopupSettings);  
  setResponsePage(thePopupPage);
 }
 };
 
 But no matter what I try, the popuppage always comes.
 
 
   
 
 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/Conditional-Popup-tp4649649.html
 Sent from the Users forum 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: Conditional Popup

2012-06-01 Thread Thomas Götz
To create a quickstart normally costs me around 5-7 seconds (copy/paste is my 
friend) ;-)
Isolating the problem is another question, right. But in your case this sound 
rather trivial. In my experience a lot of problems are solved easyly by 
creating a quickstart, in most cases because then I realize that I did 
something wrong ;-)

   -Tom


On 01.06.2012 at 16:06 hfriederichs wrote:

 A quick-start costs me one or two hours; in the end, maybe I will. But I
 think this is a reasonably simple question, so I'll await some
 straightforward suggestions first.


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



Re: Conditional Popup

2012-06-01 Thread Thomas Götz
As an alternative, you could use an AjaxLink and push the popup-opener JS to 
teh frontend, then you could have your decision logic (wether to open it or 
not) in the backend (Wicket layer).

   -Tom




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



Re: Conditional Popup

2012-06-01 Thread Thomas Götz
I thought you might have some condition that you could evaluate in JS. This is 
the reason I asked for a short quickstart, it simply eases discussion.

   -Tom


On 01.06.2012 at 19:19 hfriederichs wrote:

 I'm sorry, but I don't understand your code. My condition is in the
 Java/Wicket-layer, how can you put that between double quotes?


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



Re: Wicket page has a redirect loop

2012-06-01 Thread Thomas Götz
Hm, put a breakpoint in FragmentMarkupSourcingStrategy.java:143 and see what 
causes the NullPointerException.

   -Tom


On 01.06.2012 at 19:08 paulstar wrote:

 Caused by: java.lang.NullPointerException
at
 org.apache.wicket.markup.html.panel.FragmentMarkupSourcingStrategy.getMarkup(FragmentMarkupSourcingStrategy.java:143)
at
 org.apache.wicket.MarkupContainer.getMarkup(MarkupContainer.java:448)
at org.apache.wicket.Component.getMarkup(Component.java:737)
at
 org.apache.wicket.markup.html.list.ListView.getMarkup(ListView.java:662)
at org.apache.wicket.Component.getMarkup(Component.java:737)
at
 org.apache.wicket.markup.html.panel.DefaultMarkupSourcingStrategy.getMarkup(DefaultMarkupSourcingStrategy.java:83)
at
 org.apache.wicket.MarkupContainer.getMarkup(MarkupContainer.java:448)
at org.apache.wicket.Component.getMarkup(Component.java:737)
at org.apache.wicket.Component.getMarkupTag(Component.java:1422)
at
 org.apache.wicket.Component.getMarkupIdFromMarkup(Component.java:777)
at org.apache.wicket.Component.getMarkupIdImpl(Component.java:1479)
at org.apache.wicket.Component.getMarkupId(Component.java:1525)
at org.apache.wicket.Component.getMarkupId(Component.java:1587)
at
 org.apache.wicket.markup.html.form.Form.appendDefaultButtonField(Form.java:1096)
at
 org.apache.wicket.markup.html.form.Form.onComponentTagBody(Form.java:1575)
at
 org.apache.wicket.markup.html.panel.DefaultMarkupSourcingStrategy.onComponentTagBody(DefaultMarkupSourcingStrategy.java:72)
at
 org.apache.wicket.Component.internalRenderComponent(Component.java:2551)
... 51 more

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



Re: Conditional Popup

2012-06-04 Thread Thomas Götz
What about the AjaxLink alternative I already suggested?

   -Tom


On 04.06.2012 at 09:35 hfriederichs wrote:

 No suggestions? Anyone?


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



Re: Conditional Popup

2012-06-04 Thread Thomas Götz
On 04.06.2012 at 13:21 hfriederichs wrote:

 
 Thomas Götz-2 wrote
 
 As an alternative, you could use an AjaxLink and push the popup-opener JS
 to teh frontend, then you could have your decision logic (wether to open
 it or not) in the backend (Wicket layer).
 
 
 
 But, how would you do that?
 
 if  (condition) {
   info(Do this first);
 } else {
   activate JS-popup-opener 
 }

Yes, this would be a possible solution, maybe something like that:

AjaxLink link = new AjaxLink(link) {
@Override
public void onClick(AjaxRequestTarget target) {
if (condition) {
info(...);
// target.add(feedbackPanel);
} else {
target.appendJavaScript(Wicket.$(' + myPopup.getMarkupId() + 
').open(););
}
}
};
add(link);


 And furthermore, I need to pass data to the popup-page, so I would have to
 stick that in the Session?

You could also pass a model to the Page's constructor e.g.

Cheers,
   -Tom


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



Re: Component-specific javascript in Ajax-Calls

2012-06-04 Thread Thomas Götz
What about this?


public class MyComponent extends Panel {

public MyComponent(String id) {
super(id);
setOutputMarkupId(true);
}

@Override
public void renderHead(IHeaderResponse response) {
response.renderOnDomReadyJavaScript(
$('# + getMarkupId() +  .ttr').tipTip({defaultPosition: 
'right'}););
}

}

   -Tom


On 04.06.2012, 19:21 Jürgen Lind wrote:

 […]
  wicket:script
 $(document).ready(function() {
   $(#markupId .ttr).tipTip({defaultPosition: right});
 });
  /wicket:script
 […]


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



Re: Component-specific javascript in Ajax-Calls

2012-06-04 Thread Thomas Götz
… or you could put your Javascript code into a template, e.g. like that:


MyComponent.js.tmpl:

$('#${markupId} .ttr').tipTip({defaultPosition: 'right'});

// ... some long Javascript block ….


and in MyComponent.java you'd have:
---
public class MyComponent extends Panel {

public MyComponent(String id) {
super(id);
setOutputMarkupId(true);
}

@Override
public void renderHead(IHeaderResponse response) {
final TextTemplate template = new PackageTextTemplate(
MyComponent.class, MyComponent.js.tmpl);
final MapString, Object variables = new HashMapString, Object();
variables.put(markupId, getMarkupId());
// variables.put(foo, bar);  etc.
response.renderOnDomReadyJavaScript(template.asString(variables));
}

}


   -Tom


On 04.06.2012, 21:10 Martin Grigorov wrote:

 For longer scripts you can create JS helpers like:
 
 in some.js:
 var helper = function(selector) {
  // something longer here
 }
 
 is Some.java:
 
 response.renderOnDomReadyJavaScript(helper($('# + getMarkupId() +'););


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



Re: Conditional validation without overriding isRequired

2012-06-05 Thread Thomas Götz
Yes, you can also push the state instead of pulling it, which besides is 
preferrable in terms of efficiency (as onConfigure() is only called once per 
request whereas isVisible() is potentially called many time):

TextFieldString textField = new TextFieldString(textField) {
@Override
protected void onConfigure() {
super.onConfigure();
setVisible(condition);
}
};

You can also call textField.setVisible(...) in the Page's or Panel's 
onConfigure(), but then you need a reference to the textField (property of the 
page or panel). Or - if possible - you can group your FormComponents into a 
WebMarkupContainer an set the visibility there.

   -Tom



On 05.06.2012 at 16:51 Bob Schlärmann wrote:

 Hello,
 
 A question about form processing: is it possible to do conditional form 
 validation without overriding FormComponent#isRequired?
 
 I have a form with about 5 different form components (e.g. textfields, 
 dropdown, radiobutton). These fields are only required if a RadioGroup has a 
 certain value.
 
 I've read the solution given in 
 https://cwiki.apache.org/WICKET/conditional-validation.html. But this means I 
 have to subclass all form components  and override isRequired. Is there an 
 easier solution?
 
 Currently I'm using an Ajax call and disable the container of the optional 
 components, however that doesn't work if Javascript is disabled (also not 
 safe presumably).
 
 Best regards,
 
 Bob


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



Re: Conditional validation without overriding isRequired

2012-06-05 Thread Thomas Götz
Argh, confused setVisible() with setRequired, my bad ;-)
But nevertheless: call setRequiered(condition) in onConfigure().

   -Tom 


Thomas Götz wrote:

 Yes, you can also push the state instead of pulling it, which besides is 
 preferrable in terms of efficiency (as onConfigure() is only called once per 
 request whereas isVisible() is potentially called many time):
 
 TextFieldString textField = new TextFieldString(textField) {
@Override
protected void onConfigure() {
super.onConfigure();
setVisible(condition);
}
 };
 
 You can also call textField.setVisible(...) in the Page's or Panel's 
 onConfigure(), but then you need a reference to the textField (property of 
 the page or panel). Or - if possible - you can group your FormComponents into 
 a WebMarkupContainer an set the visibility there.
 
   -Tom


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



Re: add a component (submitLink) multiple times?

2012-06-13 Thread Thomas Götz
I don't know exactly what you are trying to do, but you could have a look at 
RepeatingView.

   -Tom


On 13.06.2012 at 19:23 oliver.stef wrote:

 How can I add a component (submitLink) multiple times? 
 
 like this: 
 
 ListString categories = Arrays.asList(English, Japanese, );   
 
 for (String str : language) 
 { 
 form.add(new SubmitLink(Name,str) 
{ 
@Override 
public void onSubmit() { ...} 
   } 
 } 
 
 and HTML: 
 # 
 
 
 Any ideas? 


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



Re: After 1 minute the Pagemap null is still locked by: Thread how to kill this request ?

2012-06-14 Thread Thomas Götz
Maybe you should think about an asynchronous approach, i.e. poll the state of 
your long-time-backend-operation e.g. by using an AjaxSelfUpdatingTimerBehavior.

   -Tom



On 14.06.2012 at 15:51 fachhoch wrote:

 if my dboperation is  pending and taking long time, there is now way I can 
 call another resource ? 


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



Re: Detach Model Objects when user leaves page

2012-06-14 Thread Thomas Götz
How would you notice if the user leaves the page? If you have only Wicket 
controlled Links on your page then you could null your Repository data in 
their onclick() implementation (if you do a setResponsePage(someOtherPage).
If there's also non-Wicket links on your page, well, you would probably have to 
use some JS magic (+ AJAX) to react upon page leave event. I don't like either 
of those solutions but would prefer a cache including expiry strategy instead. 
About how much data are we talking here? Isn't it possible to do some kind of 
paging or do you need to fetch the whole dataset?

   -Tom



On 14.06.2012 at 16:57 brazz wrote:

 Hi,
 
 i have a list view with content from a Repository that is input to a
 wicket DataProvider with ModelObject. 
 I get the content of the repository from a webservice. 
 I don't want to load the data from the webservice after each request, but
 the model gets detached after each request and accordingly my Repository
 (which is connected to the webservice) is empty after each request (because
 its objects are set to null in the detachment process).
 
 Now, is there a way to influence a LoadableDetachableModel in a way that it
 gets detached after the user leaves the page/accesses another page. I tried
 to overwrite the detach-method but without success.
 
 As a workaround i'm using the session to store my repository but then i
 don't have an indication when the data isn't needed any more. I think about
 time based expiration of session data (time based cache mechanism like in
 guava library), but i think this is rather cumbersome. Detaching the model
 object after the user leaves the page would be more elegant.
 
 Thanks for any suggestions or hints how you fixed this scenario.


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



Re: on click on a label in a listview - onClicke method never used localy

2012-06-14 Thread Thomas Götz
Label does not have an onClick() method, so nobody will be calling your 
onClick() ;)
If you want to attach AJAX behavior to the label you should do the following:

final Label label = new Label(label, item.getModel());
label.add(new AjaxEventBehavior(click) {
@Override
protected void onEvent(AjaxRequestTarget target) {
// do something
}
});
item.add(label);


On 14.06.2012 at 17:27 oliver.stef wrote:

 Hi,
 
 i want to use a label inside listView and i want the user will press on the
 label - and the
 onClick method will work. but what i get is this msg.: 
 
 The method onClick() from the type new Label(){} is never used locally. 
 I don't know why?!?!?!?!?!
 
 this is my implement:
 
 List list = Arrays.asList(new String[] { a, b, c });
   
   @SuppressWarnings(unchecked)
   ListView listview = new ListView(listview, list) {

 
   protected void populateItem(ListItem item) {
   
   String s = (String)item.getModelObject();
   item.add(new Label(label, item.getModel())
   {   
   private static final long   
 serialVersionUID= 1L;
 
   private void onClick()
   {
   System.out.println(Hello);
 
   }
   }
   );
   }
   };
   add(listview);
 
 thanks!


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



Re: CompoundPropertyModel problem.. the values are not refreshing

2012-06-14 Thread Thomas Götz
Could you please provide a Quickstart that describes your problem? This will 
make it much easier for us to help you.

   -Tom


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



Re: on click on a label in a listview - onClicke method never used localy

2012-06-14 Thread Thomas Götz
What exactly is not working? If you could provide a Quickstart it would be 
easier to help you.

   -Tom


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



Re: Wicket 1.4 Remember Login WIth Cookie

2012-06-18 Thread Thomas Götz
Have a look at org.apache.wicket.util.cookies.CookieUtils#load(final String 
key).

Cheers,
   -Tom


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



Re: Determine session size for Wicket 1.5

2012-06-19 Thread Thomas Götz
Session.get().getSizeInBytes();

   -Tom


On 19.06.2012 at 13:03 Walter Rugora wrote:

 Hi there,
 
 for Wicket 1.3 I determine session size like this:
 RequestCycle.get().getSession().getSizeInBytes()
 
 But the RequestCycle underwent some changes and I cannot figure out how
 to do it for Wicket 1.5?
 
 Appreciate your help!
 Walter

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



Re: Sync up sessions

2012-06-20 Thread Thomas Götz
Great! And what would be your question, please? ;) 

   -Tom 




Am Mittwoch, 20. Juni 2012 um 18:25 schrieb wicket user:

 Hi,
 
 we are using Wicket as a Presentation layer, so we need to sync up with the
 Session of the Business Layer framework, we kept this in the same WAR. 
 
 
 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/Sync-up-sessions-tp4650134.html
 Sent from the Users forum 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: Wicket panel not getting refreshed completely

2012-06-21 Thread Thomas Götz
… e.g. your Label ('numberOfCommentLabel') uses a static model (a String), but 
should use an IModelString in order to be refreshable.

   -Tom


On 21.06.2012, at 13:44, kshitiz wrote:

 Hi,
 
 I have a panel with ajax button (i.e. form) inside it. When I submit the
 form, not all of the components of that panel are being refreshed. Here is
 the code:
 
 [...]


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



Re: Wicket panel not getting refreshed completely

2012-06-21 Thread Thomas Götz
Could you provide a Quickstart that demonstrates the problem? This will make it 
much easier for us to help you, thanks!

   -Tom


On 21.06.2012, at 14:54, kshitiz wrote:

 Hi,
 
 I have tried out this:
 
 *Integer numberOfComments = commentDomainList.size();
   Label numberOfCommentLabel = new Label(numberOfCommentLabel,
   new ModelInteger(numberOfComments));*
 
 But again nothing happens..I think the above statement is right...what do
 you suggest?


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



Re: java pojo/Bean to generate html (textfield, dropdown,radio buttons)

2012-07-04 Thread Thomas Götz
Nothing easier than that!

MyBean bean = new MyBean();
System.out.println(bean.toHtmlWithFieldsAndValidationAndEverything());

Seriously: if you want us to help you should ask serious questions. Nobody will 
be able to explain how to automatically generate a HTML page from a POJO. You 
might as well ask: I have some sugar, 2 eggs and and pound of flour, how to 
automatically bake a cake out of this?!


SCNR,
   -Tom


On 04.07.2012, at 15:13, venkatnsm wrote:

 hi,
 
 how to generate html page from java POJO.
 
 Suppose in pogo i have name  age, for these fields i want to generate text
 field automatically  in HTML with validations.
 
 Thanks in advance.


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



Re: How to read message properties that has parameters into a program

2012-07-08 Thread Thomas Götz
Have a look at org.apache.wicket.model.StringResourceModel.

   -Tom


On 08.07.2012, at 22:44, lang wrote:

 I have a program that's gonna send an  email  confirmation  to a customer.
 The email text is stored in a property file. 
 How can I read these values with substitution parameters? 
 I'm aware of getString(key) but that has has parameters
 
 Example of one property:
 mail01=Dear {customer}, we confirm ... blablabla
 What Java code do I need to use?


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



Re: How to force a page to re-render

2012-07-10 Thread Thomas Götz
What about this?

Link link = new Link(link) {
@Override
public void onClick() {
setResponsePage(new MyPage());
}
};

   -Tom



On 10.07.2012, at 11:36, Anna Hunecke wrote:

 Hi,
 
 I'm trying to force a page to re-render everytime the user clicks the refresh 
 button. Wicket sees the page as a stateful page, but I'm not interested at 
 all in keeping this state.
 
 What I would like to do is to get the newest data from the database on 
 refresh and display it. I tried to use LoadableDetachableModels for this, but 
 ran into trouble pretty soon. The main reason is that the data also 
 determines visibility and styling of individual elements in the page which 
 makes the code very complicated with lots of LoadableDetachableModels and 
 Behaviors (The page is not exactly small). Also, the page size increases, and 
 I want to avoid that.
 
 So, I ended up in overwriting the renderPage() method in my page, throwing 
 away all content and drawing it again. But I don't like this solution. Can I 
 somehow force wicket to throw away the complete page and create a new one?
 
 Regards,
 Anna


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



Re: Read POST based request from external site

2012-08-16 Thread Thomas Götz
This normally means that there *are* no POST parameters. Are you sure you're 
doing a POST request to your page, and not a GET?

   -Tom


On 16.08.2012, at 12:16, tmaus loum...@yahoo.com wrote:

 
 I was looking up all available threads, but did not find an answer. 
 
 I have an app deployed to a mobile device that should communicate with my
 service via REST. 
 
 As part of the flow the user can upload a new picture to the service. 
 
 My page is able to read GET based requests, but no POST based onces. 
 
 Im using wicket 1.5.7
 
 RequestCycle.get().getRequest().getPostParameters() is empty 
 
 My page extends WebPage
 
 Tried to use constructor with and without PageParameters without any
 success.
 
 I mounted my page (mountPage(/upload,UploadPage.class)) with
 WebApplication. 
 
 Any ideas ?
 
 Any hints ?
 
 Regards
 
 Thorsten 


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



Re: ObjectAutoCompleteBuilder in wicket 1.5.7 get is not a valid Serializable error.

2012-08-30 Thread Thomas Götz
Are all properties (fields) of HomePage$SearchOptions also Serializable?

   -Tom


On 30.08.2012, at 03:17, Vignesh Palanisamy vign...@mcruncher.com wrote:

 while implementing Serializable also the same error came martin!
 
 
 On Wed, Aug 29, 2012 at 6:17 PM, Martin Grigorov mgrigo...@apache.orgwrote:
 
 This line says it all:
 
 private java.lang.Object
 org.apache.wicket.model.CompoundPropertyModel.target
 [class=org.apache.wicket.quickstart.HomePage$SearchOptions] -
 field that is not serializable
 
 
 HomePage$SearchOptions is not Serializable


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



Re: override wicket mark up

2012-08-30 Thread Thomas Götz
If you extend a Component/Page and want to provide a different markup you 
cannot change the component hierarchy, so it's not possible to insert some 
container (in your case adminGroupTabs) into the tree.

   -Tom


On 30.08.2012, at 05:05, ramlael grambab...@gmail.com wrote:

 Hi Friends, 
 
 I would like to override wicket page, will have same wicket id's with
 different parent ids. 
 Is it possible in wicket please help me... 
 
 http://apache-wicket.1842946.n4.nabble.com/file/n4651624/wikcet-problem.png 
 
 Regards,
 Rambabu


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



  1   2   >