Re: Wicket Security Question

2009-02-27 Thread nino martinez wael
Thanks for the update..

2009/2/27 Wayne Pope waynemailingli...@googlemail.com

 Hi,
 In terms of SWARM etc its in the pre-generics stage. It didn't take
 much to get it working with the latest wicket version mind.
 It works fine, however it wan't what we needed in the end - we went
 with the wicket.aurthorization package and rolled our own dynamic
 acl-list/roles etc.
 I had some promising converstions with Les Hazlewood from
 jsecurity.org - that looks like another great package and more
 flexible IMO. However Les was right in the middle of a move to NYC and
 didn't have anytime to spend on doing a wicket version of jsecurity.
 It might be worth pinging him a mail and see if he up for doing it
 again.

 Wayne








 www.glasscubes.com

 On Thu, Feb 26, 2009 at 8:09 PM, Nino Martinez
 nino.martinez.w...@gmail.com wrote:
  I might pick it up (But since it's not something I need right now, it has
  low priority).. But was hoping that Wayne Pope would get back and tell
 whats
  state it is in..
 
  Philippe Laflamme wrote:
 
  FYI: it's not clear what will happen with the wicket-security package.
 The
  original maintainer sadly passed away last year and no-one has
 officially
  taken the torch.
 
  We've used both packages (auth-roles and swarm), but neither with
  spring-security. We'd like to move to using spring-security using Swarm,
  but
  we haven't taken any step in this regard due to the package's
 situation...
 
  Hoping the package gets an official maintainer soon.
 
  Philippe
 
 
  Markus Strickler wrote:
 
 
  Hi-
 
 
  
 http://wicketstuff.org/confluence/display/STUFFWIKI/Security+Framework+Comparison
   
 
  might be of interest.
  I've been using Auth-roles together with ACEGI in a project and it
   worked quite well.
 
  -markus
 
 
  Am 25.02.2009 um 21:23 schrieb M Goodell:
 
 
 
  I would like to pose a question.
 
 
 
  We are looking at using Wicket as a platform for an upcoming  project.
  So far
  we are *really* liking what Wicket brings to the table.
 
 
 
  In terms of security / securing a web application our first thought
  was
  Spring Security.
 
 
 
  My question:
 
 
 
  Does Spring Security play nice with Wicket and is it a viable
   addition to
  a Wicket Application? Or, what are other alternatives are available
  for
  use
  to investigate.
 
 
 
  Thank you in advance for any thoughts, comments and suggestions.
 
 
 
  M. Goodell
 
 
 
 
  --
  This message has been scanned for viruses and
  dangerous content by MailScanner, and is
  believed to be clean.
 
 
 
  --
  This message has been scanned for viruses and
  dangerous content by MailScanner, and is
  believed to be clean.
 
 
  -
  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: What IDE best fits with Wicket?

2009-02-27 Thread nino martinez wael
I just use mvn eclipse:eclipse , it works every time :)

2009/2/27 Emond Papegaaij emond.papega...@topicus.nl

 That is the plugin Martijn is talking about, and I am one of the co-workers
 he
 mentioned. I tried the m2eclipse plugin and used it for a day. The plugin
 (version 0.9.7.200902090947) was able to checkout the project from svn and
 create eclipse projects for all modules, so far so good, although the
 browse
 button in the svn window didn't work. At that moment the trouble started.

 Somehow, after even the slightest code change, eclipse started to rebuild
 the
 entire project over and over, taking ages. After some more changes (some of
 them might have been in the pom), some of my projects got corrupted and I
 had
 to clean everything, doing a complete rebuild. A few hours later, while I
 was
 working on a Java file, about 30,000 errors suddenly appeared. Somehow,
 m2eclipse had reversed some of my module-to-module dependencies. I tried
 cleaning, updating, refreshing the project configuration, nothing helped. I
 was
 unable to get the project to build again.

 My experience with m2eclipse is that it is slow and very unstable. My last
 attempt was not the first attempt. I tried to use it several times, because
 running mvn eclipse:eclipse all the time is just a pain in the *, but every
 time I ran into some strange problem I could not solve.

 Emond Papegaaij

 On Thursday 26 February 2009 17:20:04 Brill Pappin wrote:
  I don't think we're talking about the same plugin then (although you
  seem to be calling it the same thing)...
  I'm referring to:
 
   http://m2eclipse.codehaus.org/
 
  It's the *only* one I've found that *actually works* properly,
  particularly for larger projects... although I run the dev version so
  I'm not sure how well the released version is working at this moment.
  Of course I could simply go back to the console and use the maven
  plugin to generate the eclipse project files, but I find the plugin to
  be light-years ahead in maintaining a clean build env.
 
  I guess people's experience with various tools also depends a lot on
  *how* they work not just what they work with :)
 
 
  - Brill Pappin
 
  On 24-Feb-09, at 12:38 PM, Martijn Dashorst wrote:
   m2eclipse is absolutely worthless for anything beyond a quickstart. It
   is constantly reparsing poms, grinding eclipse to a halt. It failed to
   generate the right project dependencies for our multimodule project
   that consists of 2 multimodule child projects. It failed miserably to
   uninstall, needing me to axe my eclipse installation.
  
   In short: my experience (and that of my co-workers) with m2eclipse is
   that it is far from ready for prime time.
  
   Martijn
  
   On Tue, Feb 24, 2009 at 5:55 PM, Brill Pappin br...@pappin.ca wrote:
   I should add something about the Eclipse maven plugins... don't go
   for the
   official eclipse Q4 plugin... use the Maven Integration 4 Eclipse
   plugin
   (and actually the development version if your jiggy with it, it
   works and
   gets updated/fixed way more often).
  
   If your on Netbeans, I think Maven will generate Netbeans project
   files for
   you as well (it will do so for eclipse), so you could actually flip
   back and
   forth if you wanted.
  
   - Brill Pappin
  
   On 23-Feb-09, at 5:19 PM, Pierre Goupil wrote:
   +1, I like Wicket Bench. And with M2Eclipse, you have the full
   sources 
   JavaDoc just by adding Wicket as a dependency, which is very
   convenient.
   But
   don't expect Wicket Bench to do too much, it's just a small,
   useful tool.
  
   Pierre
  
   Hi, I use Eclipse with Wicket Bench plugin and it works very fine.
  
   --
   Sans amis était le grand maître des mondes,
   Eprouvait manque, ce pour quoi il créa les esprits,
   Miroirs bienveillants de sa béatitude.
   Mais au vrai, il ne trouva aucun égal,
   Du calice du royaume total des âmes
   Ecume jusqu'à lui l'infinité.
  
   (Schiller, l'amitié)
  
   -
   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.3.5 is released
   Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.
  
   -
   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




Wicket and downloading huge pdf files

2009-02-27 Thread Emanuele Gesuato
Hi there,

We have several huge pdf files with many pages (an hundred or so) and we
would like to do a lazy loading of the pdf file when the user click to
download it. Right now, when the user click for some pdf we return to
the browser a resource stream with mime type application/pdf in which
we load the file as a byte array output stream.

But in this way the file is returned entirely to the user. In some web
site they use an url with the the pdf file embedded to it (example:
http://.../file.pdf); in this way the pdf client (adobe reader or
similar) could lazy load the pages of the document.

But is it a correct approach ? Is it possibile to implement something
similar using a custom UrlCodingStrategy ?

Thanks,
Emanuele Gesuato 



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



Re: Wicket Security Question

2009-02-27 Thread Maarten Bosteels
I created a google-code project for  Wicket-JSecurity integration, but
unfortunately haven't had time to work on it.
Les has already done some commits though.

http://code.google.com/p/wicket-jsecurity/

Any help is welcome.

regards,
Maarten

On Fri, Feb 27, 2009 at 8:31 AM, Wayne Pope 
waynemailingli...@googlemail.com wrote:

 Hi,
 In terms of SWARM etc its in the pre-generics stage. It didn't take
 much to get it working with the latest wicket version mind.
 It works fine, however it wan't what we needed in the end - we went
 with the wicket.aurthorization package and rolled our own dynamic
 acl-list/roles etc.
 I had some promising converstions with Les Hazlewood from
 jsecurity.org - that looks like another great package and more
 flexible IMO. However Les was right in the middle of a move to NYC and
 didn't have anytime to spend on doing a wicket version of jsecurity.
 It might be worth pinging him a mail and see if he up for doing it
 again.

 Wayne








 www.glasscubes.com

 On Thu, Feb 26, 2009 at 8:09 PM, Nino Martinez
 nino.martinez.w...@gmail.com wrote:
  I might pick it up (But since it's not something I need right now, it has
  low priority).. But was hoping that Wayne Pope would get back and tell
 whats
  state it is in..
 
  Philippe Laflamme wrote:
 
  FYI: it's not clear what will happen with the wicket-security package.
 The
  original maintainer sadly passed away last year and no-one has
 officially
  taken the torch.
 
  We've used both packages (auth-roles and swarm), but neither with
  spring-security. We'd like to move to using spring-security using Swarm,
  but
  we haven't taken any step in this regard due to the package's
 situation...
 
  Hoping the package gets an official maintainer soon.
 
  Philippe
 
 
  Markus Strickler wrote:
 
 
  Hi-
 
 
  
 http://wicketstuff.org/confluence/display/STUFFWIKI/Security+Framework+Comparison
   
 
  might be of interest.
  I've been using Auth-roles together with ACEGI in a project and it
   worked quite well.
 
  -markus
 
 
  Am 25.02.2009 um 21:23 schrieb M Goodell:
 
 
 
  I would like to pose a question.
 
 
 
  We are looking at using Wicket as a platform for an upcoming  project.
  So far
  we are *really* liking what Wicket brings to the table.
 
 
 
  In terms of security / securing a web application our first thought
  was
  Spring Security.
 
 
 
  My question:
 
 
 
  Does Spring Security play nice with Wicket and is it a viable
   addition to
  a Wicket Application? Or, what are other alternatives are available
  for
  use
  to investigate.
 
 
 
  Thank you in advance for any thoughts, comments and suggestions.
 
 
 
  M. Goodell
 
 
 
 
  --
  This message has been scanned for viruses and
  dangerous content by MailScanner, and is
  believed to be clean.
 
 
 
  --
  This message has been scanned for viruses and
  dangerous content by MailScanner, and is
  believed to be clean.
 
 
  -
  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 Security Question

2009-02-27 Thread nino martinez wael
Ahh ok, Just wrote Les...

2009/2/27 Maarten Bosteels mbosteels@gmail.com

 I created a google-code project for  Wicket-JSecurity integration, but
 unfortunately haven't had time to work on it.
 Les has already done some commits though.

 http://code.google.com/p/wicket-jsecurity/

 Any help is welcome.

 regards,
 Maarten

 On Fri, Feb 27, 2009 at 8:31 AM, Wayne Pope 
 waynemailingli...@googlemail.com wrote:

  Hi,
  In terms of SWARM etc its in the pre-generics stage. It didn't take
  much to get it working with the latest wicket version mind.
  It works fine, however it wan't what we needed in the end - we went
  with the wicket.aurthorization package and rolled our own dynamic
  acl-list/roles etc.
  I had some promising converstions with Les Hazlewood from
  jsecurity.org - that looks like another great package and more
  flexible IMO. However Les was right in the middle of a move to NYC and
  didn't have anytime to spend on doing a wicket version of jsecurity.
  It might be worth pinging him a mail and see if he up for doing it
  again.
 
  Wayne
 
 
 
 
 
 
 
 
  www.glasscubes.com
 
  On Thu, Feb 26, 2009 at 8:09 PM, Nino Martinez
  nino.martinez.w...@gmail.com wrote:
   I might pick it up (But since it's not something I need right now, it
 has
   low priority).. But was hoping that Wayne Pope would get back and tell
  whats
   state it is in..
  
   Philippe Laflamme wrote:
  
   FYI: it's not clear what will happen with the wicket-security package.
  The
   original maintainer sadly passed away last year and no-one has
  officially
   taken the torch.
  
   We've used both packages (auth-roles and swarm), but neither with
   spring-security. We'd like to move to using spring-security using
 Swarm,
   but
   we haven't taken any step in this regard due to the package's
  situation...
  
   Hoping the package gets an official maintainer soon.
  
   Philippe
  
  
   Markus Strickler wrote:
  
  
   Hi-
  
  
   
 
 http://wicketstuff.org/confluence/display/STUFFWIKI/Security+Framework+Comparison

  
   might be of interest.
   I've been using Auth-roles together with ACEGI in a project and it
worked quite well.
  
   -markus
  
  
   Am 25.02.2009 um 21:23 schrieb M Goodell:
  
  
  
   I would like to pose a question.
  
  
  
   We are looking at using Wicket as a platform for an upcoming
  project.
   So far
   we are *really* liking what Wicket brings to the table.
  
  
  
   In terms of security / securing a web application our first thought
   was
   Spring Security.
  
  
  
   My question:
  
  
  
   Does Spring Security play nice with Wicket and is it a viable
addition to
   a Wicket Application? Or, what are other alternatives are available
   for
   use
   to investigate.
  
  
  
   Thank you in advance for any thoughts, comments and suggestions.
  
  
  
   M. Goodell
  
  
  
  
   --
   This message has been scanned for viruses and
   dangerous content by MailScanner, and is
   believed to be clean.
  
  
  
   --
   This message has been scanned for viruses and
   dangerous content by MailScanner, and is
   believed to be clean.
  
  
   -
   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
 
 



Wicket Bench error under Eclipse

2009-02-27 Thread Piller Sébastien

Hi all,

I have some problems using the WicketBench plugin under Eclipse Ganymede.

It sometimes success in opening the files, and sometimes not. When it 
fails, I can see the following stack trace on Eclipse:


   java.lang.NullPointerException
   at
   
com.eviware.soapui.eclipse.swt_awt.SwtAwtRequestEditor.init(SwtAwtRequestEditor.java:68)
   at
   org.eclipse.ui.part.MultiPageEditorPart.addPage(MultiPageEditorPart.java:213)
   at
   org.eclipse.ui.part.MultiPageEditorPart.addPage(MultiPageEditorPart.java:187)
   at
   wicketbench.eclipse.editor.WicketEditor.addPage(WicketEditor.java:211)
   at
   
wicketbench.eclipse.editor.WicketEditor.createEditorsForNonJavaResources(WicketEditor.java:196)
   at
   wicketbench.eclipse.editor.WicketEditor.addEditors(WicketEditor.java:178)
   at
   wicketbench.eclipse.editor.WicketEditor.createPages(WicketEditor.java:77)
   at
   
org.eclipse.ui.part.MultiPageEditorPart.createPartControl(MultiPageEditorPart.java:310)
   at
   
org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:661)
   at
   org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:428)
   at
   
org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:594)
   at
   
org.eclipse.ui.internal.EditorAreaHelper.setVisibleEditor(EditorAreaHelper.java:263)
   at
   
org.eclipse.ui.internal.EditorManager.setVisibleEditor(EditorManager.java:1410)
   at
   
org.eclipse.ui.internal.EditorManager$5.runWithException(EditorManager.java:944)
   at
   
org.eclipse.ui.internal.StartupThreading$StartupRunnable.run(StartupThreading.java:31)
   at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
   at
   org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:133)
   at
   org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3378)
   at
   org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3036)
   at
   
org.eclipse.ui.application.WorkbenchAdvisor.openWindows(WorkbenchAdvisor.java:803)
   at
   org.eclipse.ui.internal.Workbench$27.runWithException(Workbench.java:1361)
   at
   
org.eclipse.ui.internal.StartupThreading$StartupRunnable.run(StartupThreading.java:31)
   at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
   at
   org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:133)
   at
   org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3378)
   at
   org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3036)
   at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2293)
   at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2198)
   at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:493)
   at
   org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288)
   at
   org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:488)
   at
   org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
   at
   
org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
   at
   
org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193)
   at
   
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
   at
   
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
   at
   org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:386)
   at
   org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at
   sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at
   
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:597)
   at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549)
   at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
   at org.eclipse.equinox.launcher.Main.run(Main.java:1236)


The weird thing is that I don't modify anything on the source files, and 
it sometimes fails to open and sometimes not. Maybe it is some workspace 
issue? I guess I'm not the only one to get it


If I remember correctly, Igor is one of the writter of that plugin. 
Could anybody give me a fix?


Thanks in advance ;)

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



Re: What IDE best fits with Wicket?

2009-02-27 Thread Emond Papegaaij
Yes, mvn eclipse:eclipse works, but it's not really integrating maven in 
eclipse. I have to run it manually after changing the pom or the project 
structure and it often results in a complete rebuild of all projects.

On Friday 27 February 2009 10:08:58 nino martinez wael wrote:
 I just use mvn eclipse:eclipse , it works every time :)

 2009/2/27 Emond Papegaaij emond.papega...@topicus.nl

  That is the plugin Martijn is talking about, and I am one of the
  co-workers he
  mentioned. I tried the m2eclipse plugin and used it for a day. The plugin
  (version 0.9.7.200902090947) was able to checkout the project from svn
  and create eclipse projects for all modules, so far so good, although the
  browse
  button in the svn window didn't work. At that moment the trouble started.
 
  Somehow, after even the slightest code change, eclipse started to rebuild
  the
  entire project over and over, taking ages. After some more changes (some
  of them might have been in the pom), some of my projects got corrupted
  and I had
  to clean everything, doing a complete rebuild. A few hours later, while I
  was
  working on a Java file, about 30,000 errors suddenly appeared. Somehow,
  m2eclipse had reversed some of my module-to-module dependencies. I tried
  cleaning, updating, refreshing the project configuration, nothing helped.
  I was
  unable to get the project to build again.
 
  My experience with m2eclipse is that it is slow and very unstable. My
  last attempt was not the first attempt. I tried to use it several times,
  because running mvn eclipse:eclipse all the time is just a pain in the *,
  but every time I ran into some strange problem I could not solve.
 
  Emond Papegaaij
 
  On Thursday 26 February 2009 17:20:04 Brill Pappin wrote:
   I don't think we're talking about the same plugin then (although you
   seem to be calling it the same thing)...
   I'm referring to:
  
http://m2eclipse.codehaus.org/
  
   It's the *only* one I've found that *actually works* properly,
   particularly for larger projects... although I run the dev version so
   I'm not sure how well the released version is working at this moment.
   Of course I could simply go back to the console and use the maven
   plugin to generate the eclipse project files, but I find the plugin to
   be light-years ahead in maintaining a clean build env.
  
   I guess people's experience with various tools also depends a lot on
   *how* they work not just what they work with :)
  
  
   - Brill Pappin
  
   On 24-Feb-09, at 12:38 PM, Martijn Dashorst wrote:
m2eclipse is absolutely worthless for anything beyond a quickstart.
It is constantly reparsing poms, grinding eclipse to a halt. It
failed to generate the right project dependencies for our multimodule
project that consists of 2 multimodule child projects. It failed
miserably to uninstall, needing me to axe my eclipse installation.
   
In short: my experience (and that of my co-workers) with m2eclipse is
that it is far from ready for prime time.
   
Martijn
   
On Tue, Feb 24, 2009 at 5:55 PM, Brill Pappin br...@pappin.ca wrote:
I should add something about the Eclipse maven plugins... don't go
for the
official eclipse Q4 plugin... use the Maven Integration 4 Eclipse
plugin
(and actually the development version if your jiggy with it, it
works and
gets updated/fixed way more often).
   
If your on Netbeans, I think Maven will generate Netbeans project
files for
you as well (it will do so for eclipse), so you could actually flip
back and
forth if you wanted.
   
- Brill Pappin
   
On 23-Feb-09, at 5:19 PM, Pierre Goupil wrote:
+1, I like Wicket Bench. And with M2Eclipse, you have the full
sources 
JavaDoc just by adding Wicket as a dependency, which is very
convenient.
But
don't expect Wicket Bench to do too much, it's just a small,
useful tool.
   
Pierre
   
Hi, I use Eclipse with Wicket Bench plugin and it works very fine.
   
--
Sans amis était le grand maître des mondes,
Eprouvait manque, ce pour quoi il créa les esprits,
Miroirs bienveillants de sa béatitude.
Mais au vrai, il ne trouva aucun égal,
Du calice du royaume total des âmes
Ecume jusqu'à lui l'infinité.
   
(Schiller, l'amitié)
   

   - 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.3.5 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.
   
-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org
  
   

Wicket Link with proxy server: wrong hostname

2009-02-27 Thread harri.temonen
Hi all,

I have problem when Wicket 1.3.5 application is installed behind proxy server.

Application it showing Index page in url https://www.mycompany.com/pls/myapp/
When clicking link (pointing into same Index page), browser is going to url 
http://server:/pls/myapp/

Any ideas about to solve this? Details listed below.

Best Regards
Harri

==Index.html=
html xmlns:wicket=http://wicket.apache.org/;
body
   a wicket:id = linkIndexIndex/a
/body
/html
==Index.java=
public class Index extends WebPage {
public Index() {
Link linkToAnchor = new Link(linkIndex) {
public void onClick() {
setResponsePage(Index.class);
}
};
add(linkToAnchor);
}
}
==MyApplication.java=
public class MyApplication extends WebApplication {

@Override
public Class getHomePage() {
return Index.class;
}
}
==web.xml
?xml version = '1.0' encoding = 'windows-1252'?
web-app xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; 
xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee 
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd; version=2.4 
xmlns=http://java.sun.com/xml/ns/j2ee;
descriptionEmpty web.xml file for Web Application/description
filter
filter-nameWicketApplication/filter-name

filter-classorg.apache.wicket.protocol.http.WicketFilter/filter-class
init-param
param-nameapplicationClassName/param-name
param-valuecom.mycompany.app.MyApplication/param-value
/init-param
/filter
filter-mapping
filter-nameWicketApplication/filter-name
url-pattern/*/url-pattern
/filter-mapping
session-config
session-timeout35/session-timeout
/session-config
mime-mapping
extensionhtml/extension
mime-typetext/html/mime-type
/mime-mapping
mime-mapping
extensiontxt/extension
mime-typetext/plain/mime-type
/mime-mapping
/web-app
===
My infra stack is:

Alteon SSL Aaccelerator url:
https://www.mycompany.com/pls/myapp/

Apache Proxy url:
http://webserver:80/pls/myapp/
Httpd.conf:
ProxyPass   /pls  http://server:/pls/myapp/
ProxyPassReverse/pls  http://server:/pls/myapp/

Oracle Application Server url:
http://server:/pls/myapp/





Re: Wicket Link with proxy server: wrong hostname

2009-02-27 Thread Martin Makundi
Hi!

If you generate the url in your app, it will see the proxyPass address:

 ProxyPass   /pls  http://server:/pls/myapp/
 ProxyPassReverse/pls  http://server:/pls/myapp/

You could change this into:
ProxyPass   /pls  http://www.mycompany.com:/pls/myapp/
ProxyPassReverse/pls  http://www.mycompany.com:/pls/myapp/

Works for us.

**
Martin

2009/2/27  harri.temo...@nokia.com:
 Hi all,

 I have problem when Wicket 1.3.5 application is installed behind proxy server.

 Application it showing Index page in url https://www.mycompany.com/pls/myapp/
 When clicking link (pointing into same Index page), browser is going to url 
 http://server:/pls/myapp/

 Any ideas about to solve this? Details listed below.

 Best Regards
 Harri

 ==Index.html=
 html xmlns:wicket=http://wicket.apache.org/;
 body
   a wicket:id = linkIndexIndex/a
 /body
 /html
 ==Index.java=
 public class Index extends WebPage {
public Index() {
Link linkToAnchor = new Link(linkIndex) {
public void onClick() {
setResponsePage(Index.class);
}
};
add(linkToAnchor);
}
 }
 ==MyApplication.java=
 public class MyApplication extends WebApplication {

@Override
public Class getHomePage() {
return Index.class;
}
 }
 ==web.xml
 ?xml version = '1.0' encoding = 'windows-1252'?
 web-app xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; 
 xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee 
 http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd; version=2.4 
 xmlns=http://java.sun.com/xml/ns/j2ee;
descriptionEmpty web.xml file for Web Application/description
filter
filter-nameWicketApplication/filter-name

 filter-classorg.apache.wicket.protocol.http.WicketFilter/filter-class
init-param
param-nameapplicationClassName/param-name
param-valuecom.mycompany.app.MyApplication/param-value
/init-param
/filter
filter-mapping
filter-nameWicketApplication/filter-name
url-pattern/*/url-pattern
/filter-mapping
session-config
session-timeout35/session-timeout
/session-config
mime-mapping
extensionhtml/extension
mime-typetext/html/mime-type
/mime-mapping
mime-mapping
extensiontxt/extension
mime-typetext/plain/mime-type
/mime-mapping
 /web-app
 ===
 My infra stack is:

 Alteon SSL Aaccelerator url:
 https://www.mycompany.com/pls/myapp/

 Apache Proxy url:
 http://webserver:80/pls/myapp/
 Httpd.conf:
 ProxyPass   /pls  http://server:/pls/myapp/
 ProxyPassReverse/pls  http://server:/pls/myapp/

 Oracle Application Server url:
 http://server:/pls/myapp/





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



Re: What IDE best fits with Wicket?

2009-02-27 Thread nino martinez wael
Sure, if you change project structure, you need to invoke mvn
eclipse:eclipse one projects that are changed.. But it works... And true
it's not integrated in eclipse..

I just dont see what the integrations bring, but It might just be because I
too have been unlucky, when I tried m2eclipse...

The subversion (subversive) integration though, that I see the benefits of
(and for me it works 95% of the time)...

2009/2/27 Emond Papegaaij emond.papega...@topicus.nl

 Yes, mvn eclipse:eclipse works, but it's not really integrating maven in
 eclipse. I have to run it manually after changing the pom or the project
 structure and it often results in a complete rebuild of all projects.

 On Friday 27 February 2009 10:08:58 nino martinez wael wrote:
  I just use mvn eclipse:eclipse , it works every time :)
 
  2009/2/27 Emond Papegaaij emond.papega...@topicus.nl
 
   That is the plugin Martijn is talking about, and I am one of the
   co-workers he
   mentioned. I tried the m2eclipse plugin and used it for a day. The
 plugin
   (version 0.9.7.200902090947) was able to checkout the project from svn
   and create eclipse projects for all modules, so far so good, although
 the
   browse
   button in the svn window didn't work. At that moment the trouble
 started.
  
   Somehow, after even the slightest code change, eclipse started to
 rebuild
   the
   entire project over and over, taking ages. After some more changes
 (some
   of them might have been in the pom), some of my projects got corrupted
   and I had
   to clean everything, doing a complete rebuild. A few hours later, while
 I
   was
   working on a Java file, about 30,000 errors suddenly appeared. Somehow,
   m2eclipse had reversed some of my module-to-module dependencies. I
 tried
   cleaning, updating, refreshing the project configuration, nothing
 helped.
   I was
   unable to get the project to build again.
  
   My experience with m2eclipse is that it is slow and very unstable. My
   last attempt was not the first attempt. I tried to use it several
 times,
   because running mvn eclipse:eclipse all the time is just a pain in the
 *,
   but every time I ran into some strange problem I could not solve.
  
   Emond Papegaaij
  
   On Thursday 26 February 2009 17:20:04 Brill Pappin wrote:
I don't think we're talking about the same plugin then (although you
seem to be calling it the same thing)...
I'm referring to:
   
 http://m2eclipse.codehaus.org/
   
It's the *only* one I've found that *actually works* properly,
particularly for larger projects... although I run the dev version so
I'm not sure how well the released version is working at this moment.
Of course I could simply go back to the console and use the maven
plugin to generate the eclipse project files, but I find the plugin
 to
be light-years ahead in maintaining a clean build env.
   
I guess people's experience with various tools also depends a lot on
*how* they work not just what they work with :)
   
   
- Brill Pappin
   
On 24-Feb-09, at 12:38 PM, Martijn Dashorst wrote:
 m2eclipse is absolutely worthless for anything beyond a quickstart.
 It is constantly reparsing poms, grinding eclipse to a halt. It
 failed to generate the right project dependencies for our
 multimodule
 project that consists of 2 multimodule child projects. It failed
 miserably to uninstall, needing me to axe my eclipse installation.

 In short: my experience (and that of my co-workers) with m2eclipse
 is
 that it is far from ready for prime time.

 Martijn

 On Tue, Feb 24, 2009 at 5:55 PM, Brill Pappin br...@pappin.ca
 wrote:
 I should add something about the Eclipse maven plugins... don't go
 for the
 official eclipse Q4 plugin... use the Maven Integration 4
 Eclipse
 plugin
 (and actually the development version if your jiggy with it, it
 works and
 gets updated/fixed way more often).

 If your on Netbeans, I think Maven will generate Netbeans project
 files for
 you as well (it will do so for eclipse), so you could actually
 flip
 back and
 forth if you wanted.

 - Brill Pappin

 On 23-Feb-09, at 5:19 PM, Pierre Goupil wrote:
 +1, I like Wicket Bench. And with M2Eclipse, you have the full
 sources 
 JavaDoc just by adding Wicket as a dependency, which is very
 convenient.
 But
 don't expect Wicket Bench to do too much, it's just a small,
 useful tool.

 Pierre

 Hi, I use Eclipse with Wicket Bench plugin and it works very
 fine.

 --
 Sans amis était le grand maître des mondes,
 Eprouvait manque, ce pour quoi il créa les esprits,
 Miroirs bienveillants de sa béatitude.
 Mais au vrai, il ne trouva aucun égal,
 Du calice du royaume total des âmes
 Ecume jusqu'à lui l'infinité.

 (Schiller, l'amitié)


 

Re: Wicket Link with proxy server: wrong hostname

2009-02-27 Thread nino martinez wael
Works for me too, I also posted some Apache configs to this list some time
ago.. So search the forum, you can use nabble

2009/2/27 Martin Makundi martin.maku...@koodaripalvelut.com

 Hi!

 If you generate the url in your app, it will see the proxyPass address:

  ProxyPass   /pls  http://server:/pls/myapp/
  ProxyPassReverse/pls  http://server:/pls/myapp/

 You could change this into:
 ProxyPass   /pls  http://www.mycompany.com:/pls/myapp/
 ProxyPassReverse/pls  http://www.mycompany.com:/pls/myapp/

 Works for us.

 **
 Martin

 2009/2/27  harri.temo...@nokia.com:
  Hi all,
 
  I have problem when Wicket 1.3.5 application is installed behind proxy
 server.
 
  Application it showing Index page in url
 https://www.mycompany.com/pls/myapp/
  When clicking link (pointing into same Index page), browser is going to
 url http://server:/pls/myapp/
 
  Any ideas about to solve this? Details listed below.
 
  Best Regards
  Harri
 
  ==Index.html=
  html xmlns:wicket=http://wicket.apache.org/;
  body
a wicket:id = linkIndexIndex/a
  /body
  /html
  ==Index.java=
  public class Index extends WebPage {
 public Index() {
 Link linkToAnchor = new Link(linkIndex) {
 public void onClick() {
 setResponsePage(Index.class);
 }
 };
 add(linkToAnchor);
 }
  }
  ==MyApplication.java=
  public class MyApplication extends WebApplication {
 
 @Override
 public Class getHomePage() {
 return Index.class;
 }
  }
  ==web.xml
  ?xml version = '1.0' encoding = 'windows-1252'?
  web-app xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
 xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee
 http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd; version=2.4 xmlns=
 http://java.sun.com/xml/ns/j2ee;
 descriptionEmpty web.xml file for Web Application/description
 filter
 filter-nameWicketApplication/filter-name
 
  filter-classorg.apache.wicket.protocol.http.WicketFilter/filter-class
 init-param
 param-nameapplicationClassName/param-name
 param-valuecom.mycompany.app.MyApplication/param-value
 /init-param
 /filter
 filter-mapping
 filter-nameWicketApplication/filter-name
 url-pattern/*/url-pattern
 /filter-mapping
 session-config
 session-timeout35/session-timeout
 /session-config
 mime-mapping
 extensionhtml/extension
 mime-typetext/html/mime-type
 /mime-mapping
 mime-mapping
 extensiontxt/extension
 mime-typetext/plain/mime-type
 /mime-mapping
  /web-app
  ===
  My infra stack is:
 
  Alteon SSL Aaccelerator url:
  https://www.mycompany.com/pls/myapp/
 
  Apache Proxy url:
  http://webserver:80/pls/myapp/
  Httpd.conf:
  ProxyPass   /pls  http://server:/pls/myapp/
  ProxyPassReverse/pls  http://server:/pls/myapp/
 
  Oracle Application Server url:
  http://server:/pls/myapp/
 
 
 
 

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




Re: What IDE best fits with Wicket?

2009-02-27 Thread Emond Papegaaij
Some of the benefits are:
 - You can edit the pom and the results are immediately visible (like when 
editing java code).
 - Working with snapshots is much easier. You just checkout the project and 
m2eclipse removes the jar dependency and adds a project dependency. This saves 
you from performing a deploy and eclipse:eclipse cycle on every update.
 - Eclipse projects are created automatically for multi-module projects. You 
don't have to import them by hand.
 - You don't need a prompt to update.

On Friday 27 February 2009 11:49:21 nino martinez wael wrote:
 Sure, if you change project structure, you need to invoke mvn
 eclipse:eclipse one projects that are changed.. But it works... And true
 it's not integrated in eclipse..

 I just dont see what the integrations bring, but It might just be because I
 too have been unlucky, when I tried m2eclipse...

 The subversion (subversive) integration though, that I see the benefits of
 (and for me it works 95% of the time)...

 2009/2/27 Emond Papegaaij emond.papega...@topicus.nl

  Yes, mvn eclipse:eclipse works, but it's not really integrating maven in
  eclipse. I have to run it manually after changing the pom or the project
  structure and it often results in a complete rebuild of all projects.
 
  On Friday 27 February 2009 10:08:58 nino martinez wael wrote:
   I just use mvn eclipse:eclipse , it works every time :)
  
   2009/2/27 Emond Papegaaij emond.papega...@topicus.nl
  
That is the plugin Martijn is talking about, and I am one of the
co-workers he
mentioned. I tried the m2eclipse plugin and used it for a day. The
 
  plugin
 
(version 0.9.7.200902090947) was able to checkout the project from
svn and create eclipse projects for all modules, so far so good,
although
 
  the
 
browse
button in the svn window didn't work. At that moment the trouble
 
  started.
 
Somehow, after even the slightest code change, eclipse started to
 
  rebuild
 
the
entire project over and over, taking ages. After some more changes
 
  (some
 
of them might have been in the pom), some of my projects got
corrupted and I had
to clean everything, doing a complete rebuild. A few hours later,
while
 
  I
 
was
working on a Java file, about 30,000 errors suddenly appeared.
Somehow, m2eclipse had reversed some of my module-to-module
dependencies. I
 
  tried
 
cleaning, updating, refreshing the project configuration, nothing
 
  helped.
 
I was
unable to get the project to build again.
   
My experience with m2eclipse is that it is slow and very unstable. My
last attempt was not the first attempt. I tried to use it several
 
  times,
 
because running mvn eclipse:eclipse all the time is just a pain in
the
 
  *,
 
but every time I ran into some strange problem I could not solve.
   
Emond Papegaaij
   
On Thursday 26 February 2009 17:20:04 Brill Pappin wrote:
 I don't think we're talking about the same plugin then (although
 you seem to be calling it the same thing)...
 I'm referring to:

  http://m2eclipse.codehaus.org/

 It's the *only* one I've found that *actually works* properly,
 particularly for larger projects... although I run the dev version
 so I'm not sure how well the released version is working at this
 moment. Of course I could simply go back to the console and use the
 maven plugin to generate the eclipse project files, but I find the
 plugin
 
  to
 
 be light-years ahead in maintaining a clean build env.

 I guess people's experience with various tools also depends a lot
 on *how* they work not just what they work with :)


 - Brill Pappin

 On 24-Feb-09, at 12:38 PM, Martijn Dashorst wrote:
  m2eclipse is absolutely worthless for anything beyond a
  quickstart. It is constantly reparsing poms, grinding eclipse to
  a halt. It failed to generate the right project dependencies for
  our
 
  multimodule
 
  project that consists of 2 multimodule child projects. It failed
  miserably to uninstall, needing me to axe my eclipse
  installation.
 
  In short: my experience (and that of my co-workers) with
  m2eclipse
 
  is
 
  that it is far from ready for prime time.
 
  Martijn
 
  On Tue, Feb 24, 2009 at 5:55 PM, Brill Pappin br...@pappin.ca
 
  wrote:
  I should add something about the Eclipse maven plugins... don't
  go for the
  official eclipse Q4 plugin... use the Maven Integration 4
 
  Eclipse
 
  plugin
  (and actually the development version if your jiggy with it, it
  works and
  gets updated/fixed way more often).
 
  If your on Netbeans, I think Maven will generate Netbeans
  project files for
  you as well (it will do so for eclipse), so you could actually
 
  flip
 
  back and
  forth if you wanted.
 
  - Brill Pappin
 
  On 

Re: What IDE best fits with Wicket?

2009-02-27 Thread Sergio García

I'm using Q4E, and although it has some flaws, it works very good with maven

Brill Pappin wrote:
 
 What are you using instead?
 
 - Brill
 
 On 24-Feb-09, at 12:45 PM, James Carman wrote:
 
 +1!  We had an awful lot of trouble getting it to work for us.

 On Tue, Feb 24, 2009 at 12:38 PM, Martijn Dashorst
 martijn.dasho...@gmail.com wrote:
 m2eclipse is absolutely worthless for anything beyond a quickstart.  
 It
 is constantly reparsing poms, grinding eclipse to a halt. It failed  
 to
 generate the right project dependencies for our multimodule project
 that consists of 2 multimodule child projects. It failed miserably to
 uninstall, needing me to axe my eclipse installation.

 In short: my experience (and that of my co-workers) with m2eclipse is
 that it is far from ready for prime time.

 Martijn

 On Tue, Feb 24, 2009 at 5:55 PM, Brill Pappin br...@pappin.ca  
 wrote:
 I should add something about the Eclipse maven plugins... don't go  
 for the
 official eclipse Q4 plugin... use the Maven Integration 4  
 Eclipse plugin
 (and actually the development version if your jiggy with it, it  
 works and
 gets updated/fixed way more often).

 If your on Netbeans, I think Maven will generate Netbeans project  
 files for
 you as well (it will do so for eclipse), so you could actually  
 flip back and
 forth if you wanted.

 - Brill Pappin

 On 23-Feb-09, at 5:19 PM, Pierre Goupil wrote:

 +1, I like Wicket Bench. And with M2Eclipse, you have the full  
 sources 
 JavaDoc just by adding Wicket as a dependency, which is very  
 convenient.
 But
 don't expect Wicket Bench to do too much, it's just a small,  
 useful tool.

 Pierre


 Hi, I use Eclipse with Wicket Bench plugin and it works very fine.

 --
 Sans amis était le grand maître des mondes,
 Eprouvait manque, ce pour quoi il créa les esprits,
 Miroirs bienveillants de sa béatitude.
 Mais au vrai, il ne trouva aucun égal,
 Du calice du royaume total des âmes
 Ecume jusqu'à lui l'infinité.

 (Schiller, l'amitié)


 -
 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.3.5 is released
 Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.

 -
 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
 
 
 

-- 
View this message in context: 
http://www.nabble.com/What-IDE-best-fits-with-Wicket--tp22168133p22243831.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



RE: Wicket Link with proxy server: wrong hostname

2009-02-27 Thread harri.temonen
Hi,

In application I am not generating urls, only setResponsePage(Index.class);

So, you think this is proxy settings problem?
Hovever, changing these didn't help, they are now pointing into ssl accelerator 
instead of app server.
ProxyPass   /pls  http://www.mycompany.com:/pls/myapp/
ProxyPassReverse/pls  http://www.mycompany.com:/pls/myapp/

Anything other I could try?

Br Harri

-Original Message-
From: ext nino martinez wael [mailto:nino.martinez.w...@gmail.com]
Sent: 27 February, 2009 12:51
To: users@wicket.apache.org
Subject: Re: Wicket Link with proxy server: wrong hostname

Works for me too, I also posted some Apache configs to this
list some time ago.. So search the forum, you can use nabble

2009/2/27 Martin Makundi martin.maku...@koodaripalvelut.com

 Hi!

 If you generate the url in your app, it will see the
proxyPass address:

  ProxyPass   /pls  http://server:/pls/myapp/
  ProxyPassReverse/pls  http://server:/pls/myapp/

 You could change this into:
 ProxyPass   /pls
http://www.mycompany.com:/pls/myapp/
 ProxyPassReverse/pls
http://www.mycompany.com:/pls/myapp/

 Works for us.

 **
 Martin

 2009/2/27  harri.temo...@nokia.com:
  Hi all,
 
  I have problem when Wicket 1.3.5 application is installed behind
  proxy
 server.
 
  Application it showing Index page in url
 https://www.mycompany.com/pls/myapp/
  When clicking link (pointing into same Index page),
browser is going
  to
 url http://server:/pls/myapp/
 
  Any ideas about to solve this? Details listed below.
 
  Best Regards
  Harri
 
 
==Index.html
  = html xmlns:wicket=http://wicket.apache.org/;
  body
a wicket:id = linkIndexIndex/a /body /html
 
==Index.java
  = public class Index extends WebPage {
 public Index() {
 Link linkToAnchor = new Link(linkIndex) {
 public void onClick() {
 setResponsePage(Index.class);
 }
 };
 add(linkToAnchor);
 }
  }
 
==MyApplication.java
  = public class MyApplication extends WebApplication {
 
 @Override
 public Class getHomePage() {
 return Index.class;
 }
  }
 
==web.xml===
  = ?xml version = '1.0' encoding = 'windows-1252'? web-app
  xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
 xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee
 http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd;
version=2.4 xmlns=
 http://java.sun.com/xml/ns/j2ee;
 descriptionEmpty web.xml file for Web
Application/description
 filter
 filter-nameWicketApplication/filter-name
 


filter-classorg.apache.wicket.protocol.http.WicketFilter/filter-cla
 ss
 init-param
 param-nameapplicationClassName/param-name
 
param-valuecom.mycompany.app.MyApplication/param-value
 /init-param
 /filter
 filter-mapping
 filter-nameWicketApplication/filter-name
 url-pattern/*/url-pattern
 /filter-mapping
 session-config
 session-timeout35/session-timeout
 /session-config
 mime-mapping
 extensionhtml/extension
 mime-typetext/html/mime-type
 /mime-mapping
 mime-mapping
 extensiontxt/extension
 mime-typetext/plain/mime-type
 /mime-mapping
  /web-app
  ===
  My infra stack is:
 
  Alteon SSL Aaccelerator url:
  https://www.mycompany.com/pls/myapp/
 
  Apache Proxy url:
  http://webserver:80/pls/myapp/
  Httpd.conf:
  ProxyPass   /pls  http://server:/pls/myapp/
  ProxyPassReverse/pls  http://server:/pls/myapp/
 
  Oracle Application Server url:
  http://server:/pls/myapp/
 
 
 
 

 -
 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 Link with proxy server: wrong hostname

2009-02-27 Thread Martin Makundi
Try one thing at a time, patience ;)

**
Martin

2009/2/27  harri.temo...@nokia.com:
 Hi,

 In application I am not generating urls, only setResponsePage(Index.class);

 So, you think this is proxy settings problem?
 Hovever, changing these didn't help, they are now pointing into ssl 
 accelerator instead of app server.
 ProxyPass   /pls  http://www.mycompany.com:/pls/myapp/
 ProxyPassReverse/pls  http://www.mycompany.com:/pls/myapp/

 Anything other I could try?

 Br Harri

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



Re: What IDE best fits with Wicket?

2009-02-27 Thread nino martinez wael
Replying inline

2009/2/27 Emond Papegaaij emond.papega...@topicus.nl

 Some of the benefits are:
  - You can edit the pom and the results are immediately visible (like when
 editing java code).

Okay I see some benefit from this...


  - Working with snapshots is much easier. You just checkout the project and
 m2eclipse removes the jar dependency and adds a project dependency. This
 saves
 you from performing a deploy and eclipse:eclipse cycle on every update.

This too are done if you are working a multimodule project with maven and
use eclipse:eclipse


  - Eclipse projects are created automatically for multi-module projects.
 You
 don't have to import them by hand.

The same with mvn eclipse:eclipse if setup properly


  - You don't need a prompt to update.

True, but I actually like to build once in a while from cmd line, because
the fact that eclipse cant handle scopes.. So sometimes something goes
wrong, but you only discover it on your ci server...



 On Friday 27 February 2009 11:49:21 nino martinez wael wrote:
  Sure, if you change project structure, you need to invoke mvn
  eclipse:eclipse one projects that are changed.. But it works... And true
  it's not integrated in eclipse..
 
  I just dont see what the integrations bring, but It might just be because
 I
  too have been unlucky, when I tried m2eclipse...
 
  The subversion (subversive) integration though, that I see the benefits
 of
  (and for me it works 95% of the time)...
 
  2009/2/27 Emond Papegaaij emond.papega...@topicus.nl
 
   Yes, mvn eclipse:eclipse works, but it's not really integrating maven
 in
   eclipse. I have to run it manually after changing the pom or the
 project
   structure and it often results in a complete rebuild of all projects.
  
   On Friday 27 February 2009 10:08:58 nino martinez wael wrote:
I just use mvn eclipse:eclipse , it works every time :)
   
2009/2/27 Emond Papegaaij emond.papega...@topicus.nl
   
 That is the plugin Martijn is talking about, and I am one of the
 co-workers he
 mentioned. I tried the m2eclipse plugin and used it for a day. The
  
   plugin
  
 (version 0.9.7.200902090947) was able to checkout the project from
 svn and create eclipse projects for all modules, so far so good,
 although
  
   the
  
 browse
 button in the svn window didn't work. At that moment the trouble
  
   started.
  
 Somehow, after even the slightest code change, eclipse started to
  
   rebuild
  
 the
 entire project over and over, taking ages. After some more changes
  
   (some
  
 of them might have been in the pom), some of my projects got
 corrupted and I had
 to clean everything, doing a complete rebuild. A few hours later,
 while
  
   I
  
 was
 working on a Java file, about 30,000 errors suddenly appeared.
 Somehow, m2eclipse had reversed some of my module-to-module
 dependencies. I
  
   tried
  
 cleaning, updating, refreshing the project configuration, nothing
  
   helped.
  
 I was
 unable to get the project to build again.

 My experience with m2eclipse is that it is slow and very unstable.
 My
 last attempt was not the first attempt. I tried to use it several
  
   times,
  
 because running mvn eclipse:eclipse all the time is just a pain in
 the
  
   *,
  
 but every time I ran into some strange problem I could not solve.

 Emond Papegaaij

 On Thursday 26 February 2009 17:20:04 Brill Pappin wrote:
  I don't think we're talking about the same plugin then (although
  you seem to be calling it the same thing)...
  I'm referring to:
 
   http://m2eclipse.codehaus.org/
 
  It's the *only* one I've found that *actually works* properly,
  particularly for larger projects... although I run the dev
 version
  so I'm not sure how well the released version is working at this
  moment. Of course I could simply go back to the console and use
 the
  maven plugin to generate the eclipse project files, but I find
 the
  plugin
  
   to
  
  be light-years ahead in maintaining a clean build env.
 
  I guess people's experience with various tools also depends a lot
  on *how* they work not just what they work with :)
 
 
  - Brill Pappin
 
  On 24-Feb-09, at 12:38 PM, Martijn Dashorst wrote:
   m2eclipse is absolutely worthless for anything beyond a
   quickstart. It is constantly reparsing poms, grinding eclipse
 to
   a halt. It failed to generate the right project dependencies
 for
   our
  
   multimodule
  
   project that consists of 2 multimodule child projects. It
 failed
   miserably to uninstall, needing me to axe my eclipse
   installation.
  
   In short: my experience (and that of my co-workers) with
   m2eclipse
  
   is
  
   that it is far from ready for prime time.
  
   Martijn
  
   On Tue, Feb 24, 2009 at 5:55 

Re: GSoC ideas for 09

2009-02-27 Thread Richard Allen
Here is some info: http://code.google.com/opensource/gsoc/2009/faqs.html

I'll be happy to contribute my time also. The only catch is that I wouldn't
be considered a Wicket expert. I've only read Wicket in Action and I'm three
months into a professional application based on Wicket. However, I am a
seasoned Java and JEE developer. And I've co-authored two college text books
on the subject:
http://www.jbpub.com/catalog/9780763754891/
http://www.jbpub.com/catalog/9780763734237/

-Richard


On Fri, Feb 27, 2009 at 2:13 AM, nino martinez wael 
nino.martinez.w...@gmail.com wrote:

 I'll be happy to mentor, what does it require?. I do have a life besides
 Wicket/Wicketstuff as Martijn has :)



 regards Nino

 2009/2/26 Martijn Dashorst martijn.dasho...@gmail.com

  While I am perfectly capable of working on Wicket in my spare time
  without being rewarded, I find it way out of line to characterize the
  way I spend my own time as lame when such that doesn't fit the
  criteria of anyone. Being characterized as lame because we are engaged
  in other things, such as family, preparing Wicket presentations,
  building releases, fixing bugs, reading books, playing games, earning
  money, eating, sleeping, feeding our children, is utterly uncalled for
  (though sleeping might be considered lame).
 
  Christopher is very capable of writing English prose, so I take that
  at face value. It's not that someone with a poor knowledge of English
  wrote this.
 
  Armchair volunteerism is very easy to do: it doesn't cost any time,
  and you don't commit yourself to anything.
 
  If anyone wants to pursue GSoC, they're very welcome to call
  themselves Vice President of Wicket Stuff and enlist as Mentor etc. If
  any of the other core committers thinks a GSoC is ok, I'm fine with
  that too. However, given that we're struggling to get all the bugs
  fixed in 1.3.6 and 1.4, I find it hard to believe that anyone will
  have the time and energy to do the mentoring as well. I don't have
  that time and energy.
 
  Martijn
 
  On Thu, Feb 26, 2009 at 3:03 PM, Richard Allen
  richard.l.al...@gmail.com wrote:
   The words of C. Bergstrom may have been poorly chosen, but he seems to
  have
   the same goal of wanting Wicket to succeed and grow in popularity.
  Providing
   harsh responses to users that, despite poor communication, are
 otherwise
   excited about your project does not help to grow your community or get
   others involved. This is not the first time I've been surprised by the
   harshness of responses from Wicket core committers. I hope these don't
  have
   the effect of pushing developers away.
  
   On Thu, Feb 26, 2009 at 7:27 AM, Jeroen Steenbeeke j.steenbeeke.ml@
   gmail.com wrote:
  
   
Once again it seems a lame excuse to say you're too busy or the
  various
other things when this could both give the project good pr and
  possibly
   add
more people who contribute to the framework.
  
   I've found that the best way to convince people does not involve
  insulting
   the person you're trying to convince. There is merit to your argument
 of
   good PR and possible new contributors, but let's not forget that the
  people
   working on Wicket do so in their spare time - and you know that there
  are a
   lot of things in life that require time. It is fully understandable
 that
   what little time the developers have to spend on Wicket, they'd rather
  use
   that time to improve the framework and fix bugs.
   Mentoring a SoC student takes a considerable amount of time and
   concentration, and while some students may blossom on their own, a lot
  of
   them need guidance on a regular basis - this requires a massive
  investment
   of spare time that could otherwise have been used for improving
 Wicket.
  A
   mentor that is only half interested will not be an advantage to the
   student,
   and be bad PR rather than good - you need mentors that are willing,
  good,
   know the framework well and have loads of time - the last of which
 does
  not
   apply to a lot of Wicket Devs. Calling it lame doesn't change anything
   about
   it, but it does agitate the developers, which doesn't exactly help
 your
   cause.
   - Jeroen
  
  
 
 
 
  --
  Become a Wicket expert, learn from the best: http://wicketinaction.com
  Apache Wicket 1.3.5 is released
  Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 



Re: What IDE best fits with Wicket?

2009-02-27 Thread Richard Allen
I think when/if Eclipse supports nested projects, that might help.
Eclipse.org appears to be working on it for version 4. See:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=35973

I have also ran into problems with m2eclipse, however I have kept it
installed for use with small projects and for the POM editor. We continue to
use eclipse:eclipse for our projects because they are large multi-project
builds. However, m2eclipse can be useful when you want to browse a smaller
project. I just checkout the project from the command line, then use File 
Import  General  Maven Projects and point it at the project's root
directory where the POM resides. That's faster than using eclipse:eclipse.
The POM editor is useful for viewing the dependency hierarchy.


On Fri, Feb 27, 2009 at 7:19 AM, nino martinez wael 
nino.martinez.w...@gmail.com wrote:

 Replying inline

 2009/2/27 Emond Papegaaij emond.papega...@topicus.nl

  Some of the benefits are:
   - You can edit the pom and the results are immediately visible (like
 when
  editing java code).

 Okay I see some benefit from this...

 
   - Working with snapshots is much easier. You just checkout the project
 and
  m2eclipse removes the jar dependency and adds a project dependency. This
  saves
  you from performing a deploy and eclipse:eclipse cycle on every update.

 This too are done if you are working a multimodule project with maven and
 use eclipse:eclipse

 
   - Eclipse projects are created automatically for multi-module projects.
  You
  don't have to import them by hand.

 The same with mvn eclipse:eclipse if setup properly

 
   - You don't need a prompt to update.
 
 True, but I actually like to build once in a while from cmd line, because
 the fact that eclipse cant handle scopes.. So sometimes something goes
 wrong, but you only discover it on your ci server...

 
 
  On Friday 27 February 2009 11:49:21 nino martinez wael wrote:
   Sure, if you change project structure, you need to invoke mvn
   eclipse:eclipse one projects that are changed.. But it works... And
 true
   it's not integrated in eclipse..
  
   I just dont see what the integrations bring, but It might just be
 because
  I
   too have been unlucky, when I tried m2eclipse...
  
   The subversion (subversive) integration though, that I see the benefits
  of
   (and for me it works 95% of the time)...
  
   2009/2/27 Emond Papegaaij emond.papega...@topicus.nl
  
Yes, mvn eclipse:eclipse works, but it's not really integrating maven
  in
eclipse. I have to run it manually after changing the pom or the
  project
structure and it often results in a complete rebuild of all projects.
   
On Friday 27 February 2009 10:08:58 nino martinez wael wrote:
 I just use mvn eclipse:eclipse , it works every time :)

 2009/2/27 Emond Papegaaij emond.papega...@topicus.nl

  That is the plugin Martijn is talking about, and I am one of the
  co-workers he
  mentioned. I tried the m2eclipse plugin and used it for a day.
 The
   
plugin
   
  (version 0.9.7.200902090947) was able to checkout the project
 from
  svn and create eclipse projects for all modules, so far so good,
  although
   
the
   
  browse
  button in the svn window didn't work. At that moment the trouble
   
started.
   
  Somehow, after even the slightest code change, eclipse started to
   
rebuild
   
  the
  entire project over and over, taking ages. After some more
 changes
   
(some
   
  of them might have been in the pom), some of my projects got
  corrupted and I had
  to clean everything, doing a complete rebuild. A few hours later,
  while
   
I
   
  was
  working on a Java file, about 30,000 errors suddenly appeared.
  Somehow, m2eclipse had reversed some of my module-to-module
  dependencies. I
   
tried
   
  cleaning, updating, refreshing the project configuration, nothing
   
helped.
   
  I was
  unable to get the project to build again.
 
  My experience with m2eclipse is that it is slow and very
 unstable.
  My
  last attempt was not the first attempt. I tried to use it several
   
times,
   
  because running mvn eclipse:eclipse all the time is just a pain
 in
  the
   
*,
   
  but every time I ran into some strange problem I could not solve.
 
  Emond Papegaaij
 
  On Thursday 26 February 2009 17:20:04 Brill Pappin wrote:
   I don't think we're talking about the same plugin then
 (although
   you seem to be calling it the same thing)...
   I'm referring to:
  
http://m2eclipse.codehaus.org/
  
   It's the *only* one I've found that *actually works* properly,
   particularly for larger projects... although I run the dev
  version
   so I'm not sure how well the released version is working at
 this
   moment. Of course I could simply go back to the console and use
  the
   maven 

getting the component to which a Behavior is added from with the Behavior

2009-02-27 Thread Will Jaynes
I'm trying to write a class that extends OnChangeAjaxBehavior.  Is there a
way, in the update method, to get the component to which the behavior has
been added? I just don't see how. Should it just be added via the
constructor?

component.add(new MyOnChangeAjaxBehavior(component));

This doesn't seem right to me, but maybe that's the way?

Thanks for any info, Will


Re: getting the component to which a Behavior is added from with the Behavior

2009-02-27 Thread Witold Czaplewski
I think you mean
org.​apache.​wicket.​behavior.​AbstractAjaxBehavior#getComponent()

Witold

Am Fri, 27 Feb 2009 08:15:03 -0500
schrieb Will Jaynes wjay...@gmail.com:

 I'm trying to write a class that extends OnChangeAjaxBehavior.  Is there a
 way, in the update method, to get the component to which the behavior has
 been added? I just don't see how. Should it just be added via the
 constructor?
 
 component.add(new MyOnChangeAjaxBehavior(component));
 
 This doesn't seem right to me, but maybe that's the way?
 
 Thanks for any info, Will

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



RE: [AjaxTabbedPanel] Switching between form and result tab

2009-02-27 Thread valery . chhoa
Hi,

Anyone have an idea on the matter below ?

Cheers,

Val



De :
valery.ch...@steria.com
A:
users@wicket.apache.org
Date:
26/02/2009 14:11
Objet :
[AjaxTabbedPanel] Switching between form and result tab



Hi,

I have an AjacTabbedPanel with two tabs.
The first tab is a form which, when submitted, show the result on the 
second tabs.
So far, everything's fine.

I want to keep the input from the form after the submit so that the user 
can come back to the first tab and have a look at what the crierias was 
and maybe to modify them to make another request.
But I need to be able switch back to the second tab and keep records of 
the result if the user didn't resubmit the form.

I've search through the mailing list and the solution that come up most 
often is to override newLink to return an ajaxSubmitLink. But I don't 
think that's the solution for me since the form is only on the first 
panel.

Cheers,

Valery







Ce message est à l'attention exclusive des destinataires désignés. Il peut 

contenir des informations confidentielles. Si vous n'êtes pas destinataire 

du message, merci d'en avertir immédiatement l'expéditeur et de détruire 
ce message. Le contenu de ce message ne pourrait engager la responsabilité 

de Steria que s'il a été émis par une personne dûment habilitée agissant 
dans le strict cadre de ses fonctions et à des fins non étrangères à ses 
attributions. Bien que les meilleurs efforts soient faits pour maintenir 
cette transmission exempte de tout virus, l'expéditeur ne donne aucune 
garantie à cet égard et sa responsabilité ne saurait être engagée pour 
tout dommage résultant d'un virus transmis.


This message is intended exclusively for the designated addressee. It may 
contain confidential material. If you are not the correct addressee, 
please notify the sender immediately and destroy the message. The content 
of this message will engage the responsibility of Steria only if it has 
been sent by an authorized person acting in the strict scope of his 
functions and for purposes that are related to his competence. Although 
reasonable efforts have been made to keep this transmission free from 
viruses, the sender will not be liable for damages caused by a transmitted 

virus.











Ce message est à l'attention exclusive des destinataires désignés. Il peut 
contenir des informations confidentielles. Si vous n'êtes pas destinataire 
du message, merci d'en avertir immédiatement l'expéditeur et de détruire 
ce message. Le contenu de ce message ne pourrait engager la responsabilité 
de Steria que s'il a été émis par une personne dûment habilitée agissant 
dans le strict cadre de ses fonctions et à des fins non étrangères à ses 
attributions. Bien que les meilleurs efforts soient faits pour maintenir 
cette transmission exempte de tout virus, l'expéditeur ne donne aucune 
garantie à cet égard et sa responsabilité ne saurait être engagée pour 
tout dommage résultant d'un virus transmis.


This message is intended exclusively for the designated addressee. It may 
contain confidential material. If you are not the correct addressee, 
please notify the sender immediately and destroy the message. The content 
of this message will engage the responsibility of Steria only if it has 
been sent by an authorized person acting in the strict scope of his 
functions and for purposes that are related to his competence. Although 
reasonable efforts have been made to keep this transmission free from 
viruses, the sender will not be liable for damages caused by a transmitted 
virus.




Re: getting the component to which a Behavior is added from with the Behavior

2009-02-27 Thread Will Jaynes
sigh I think I'll go bury myself in shame. Thank you, Witold.

On Fri, Feb 27, 2009 at 8:24 AM, Witold Czaplewski
witold-mail...@cts-media.eu wrote:

 I think you mean
 org.​apache.​wicket.​behavior.​AbstractAjaxBehavior#getComponent()

 Witold

 Am Fri, 27 Feb 2009 08:15:03 -0500
 schrieb Will Jaynes wjay...@gmail.com:

  I'm trying to write a class that extends OnChangeAjaxBehavior.  Is there
 a
  way, in the update method, to get the component to which the behavior has
  been added? I just don't see how. Should it just be added via the
  constructor?
 
  component.add(new MyOnChangeAjaxBehavior(component));
 
  This doesn't seem right to me, but maybe that's the way?
 
  Thanks for any info, Will

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




Re: Session expires while a modal window is open

2009-02-27 Thread Andrea Beda

Thanks a lot, it works for me!
-- 
View this message in context: 
http://www.nabble.com/Session-expires-while-a-modal-window-is-open-tp22203322p22246297.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



FeedbackPanel and Wizard

2009-02-27 Thread unka_hahrry

Hi!

Is there any way to remove the default FeedbackPanel from a Wizard? I want
to provide my own implementation of FeedbackPanel above the Wizard. I tried
to override newFeedbackPanel(String id) and set the visibility to false, but
it didn't seem to have an effect.
-- 
View this message in context: 
http://www.nabble.com/FeedbackPanel-and-Wizard-tp22246405p22246405.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: FeedbackPanel and Wizard

2009-02-27 Thread Michael O'Cleirigh

Hello,

I think you can just call FeedbackPanel.setFilter(IFeedbackMessageFilter 
filter) and pass in a filter that will just reject everything like:


new IFeedbackMessageFilter()
   {
   private static final long serialVersionUID = 1L;

   public boolean accept(FeedbackMessage message)
   {
   return false;
   }
   };

Mike


Is there any way to remove the default FeedbackPanel from a Wizard? I want
to provide my own implementation of FeedbackPanel above the Wizard. I tried
to override newFeedbackPanel(String id) and set the visibility to false, but
it didn't seem to have an effect.
  



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



Re: FeedbackPanel and Wizard

2009-02-27 Thread unka_hahrry

Thanks for your fast reply, but NOW it seems to work with overriding
newFeedbackPanel(String id), no idea why it do not work 15 minutes ago...


Michael O'Cleirigh wrote:
 
 Hello,
 
 I think you can just call FeedbackPanel.setFilter(IFeedbackMessageFilter 
 filter) and pass in a filter that will just reject everything like:
 
 new IFeedbackMessageFilter()
 {
 private static final long serialVersionUID = 1L;
 
 public boolean accept(FeedbackMessage message)
 {
 return false;
 }
 };
 
 Mike

 Is there any way to remove the default FeedbackPanel from a Wizard? I
 want
 to provide my own implementation of FeedbackPanel above the Wizard. I
 tried
 to override newFeedbackPanel(String id) and set the visibility to false,
 but
 it didn't seem to have an effect.
   
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Re%3A-FeedbackPanel-and-Wizard-tp22246740p22247043.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Wicket Security Question

2009-02-27 Thread Les Hazlewood
Yep, I've been playing around with integration and will use it in a
production deployment soon.  So far, so good.  I'm open to any feedback.
I'm particularly happy with the PageStore implementation to use JSecurity's
enterprise session management in a distributed environment - I needed to
write it to support the case where Session objects did not reside in the
same JVM where Wicket was executing.

I would also think JSecurity would be a better fit for Wicket as a whole
since it does not require Spring.  It integrates beautifully with Spring if
desired, it is just not a requirement...

Cheers,

Les

On Fri, Feb 27, 2009 at 4:36 AM, nino martinez wael 
nino.martinez.w...@gmail.com wrote:

 Ahh ok, Just wrote Les...

 2009/2/27 Maarten Bosteels mbosteels@gmail.com

  I created a google-code project for  Wicket-JSecurity integration, but
  unfortunately haven't had time to work on it.
  Les has already done some commits though.
 
  http://code.google.com/p/wicket-jsecurity/
 
  Any help is welcome.
 
  regards,
  Maarten
 
  On Fri, Feb 27, 2009 at 8:31 AM, Wayne Pope 
  waynemailingli...@googlemail.com wrote:
 
   Hi,
   In terms of SWARM etc its in the pre-generics stage. It didn't take
   much to get it working with the latest wicket version mind.
   It works fine, however it wan't what we needed in the end - we went
   with the wicket.aurthorization package and rolled our own dynamic
   acl-list/roles etc.
   I had some promising converstions with Les Hazlewood from
   jsecurity.org - that looks like another great package and more
   flexible IMO. However Les was right in the middle of a move to NYC and
   didn't have anytime to spend on doing a wicket version of jsecurity.
   It might be worth pinging him a mail and see if he up for doing it
   again.
  
   Wayne
  
  
  
  
  
  
  
  
   www.glasscubes.com
  
   On Thu, Feb 26, 2009 at 8:09 PM, Nino Martinez
   nino.martinez.w...@gmail.com wrote:
I might pick it up (But since it's not something I need right now, it
  has
low priority).. But was hoping that Wayne Pope would get back and
 tell
   whats
state it is in..
   
Philippe Laflamme wrote:
   
FYI: it's not clear what will happen with the wicket-security
 package.
   The
original maintainer sadly passed away last year and no-one has
   officially
taken the torch.
   
We've used both packages (auth-roles and swarm), but neither with
spring-security. We'd like to move to using spring-security using
  Swarm,
but
we haven't taken any step in this regard due to the package's
   situation...
   
Hoping the package gets an official maintainer soon.
   
Philippe
   
   
Markus Strickler wrote:
   
   
Hi-
   
   

  
 
 http://wicketstuff.org/confluence/display/STUFFWIKI/Security+Framework+Comparison
 
   
might be of interest.
I've been using Auth-roles together with ACEGI in a project and it
 worked quite well.
   
-markus
   
   
Am 25.02.2009 um 21:23 schrieb M Goodell:
   
   
   
I would like to pose a question.
   
   
   
We are looking at using Wicket as a platform for an upcoming
   project.
So far
we are *really* liking what Wicket brings to the table.
   
   
   
In terms of security / securing a web application our first
 thought
was
Spring Security.
   
   
   
My question:
   
   
   
Does Spring Security play nice with Wicket and is it a viable
 addition to
a Wicket Application? Or, what are other alternatives are
 available
for
use
to investigate.
   
   
   
Thank you in advance for any thoughts, comments and suggestions.
   
   
   
M. Goodell
   
   
   
   
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
   
   
   
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
   
   
   
 -
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
  
  
 



AjaxEditableLabel, Double type and comma / dot

2009-02-27 Thread Piller Sébastien

Hi all,

I'd like to know if there is a way to make an AjaxEditableLabel accept 
either a comma or a dot as decimal separator. That field has a Double 
type.


It works well but I have to insert a , as decimal separator (dots are 
not allowed), which is quite unusual. I know this is related to Locale, 
but is there an easy way?


Thanks!

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



Re: AjaxEditableLabel, Double type and comma / dot

2009-02-27 Thread Jonas
What you can do is to provide you own Converter to the Label
and do you own number parsing/formatting.
In my experience it makes sense to strictly follow the formats
defined by the locales, otherwise user will complain about
unexpected results when entering numbers, e.g. if they use
the character that you would expect as decimal separator as
grouping char.


On Fri, Feb 27, 2009 at 4:19 PM, Piller Sébastien pi...@hmcrecord.ch wrote:
 Hi all,

 I'd like to know if there is a way to make an AjaxEditableLabel accept
 either a comma or a dot as decimal separator. That field has a Double
 type.

 It works well but I have to insert a , as decimal separator (dots are not
 allowed), which is quite unusual. I know this is related to Locale, but is
 there an easy way?

 Thanks!

 -
 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



radio and radiogroup default checked not working?

2009-02-27 Thread francisco treacy
hi people,

i'm quite puzzled with this little problem:

i have two Radio buttons within a RadioGroup. both radios have an
ajaxeventbehavior(onclick) attached to them, and there are no models
backing those components. this works fine.

my problem is i want the *first* option to be checked by default,
but no matter what the second one gets checked by default in the
browser.
yes, i played around with *checked=checked* in my html but wicket
always outputs *checked=checked* on the second radio button - and
the browser (firefox) interprets that by checking the second one.

code:

final RadioGroupVoid group = new RadioGroupVoid(group);
RadioVoid radio1 = new RadioVoid(radio1);
radio1.add(new AjaxEventBehavior(onclick) {
@Override
protected void onEvent(AjaxRequestTarget target) {
(do stuff)
}
});

RadioVoid radio2 = new RadioVoid(radio2);
radio2.add(new AjaxEventBehavior(onclick) {
@Override
protected void onEvent(AjaxRequestTarget target) {
(do stuff)
}
});
group.add(radio1);
group.add(radio2);
add(group);


span wicket:id=group
input type=radio wicket:id=radio1 
checked=checked / Discussie
input type=radio wicket:id=radio2 / 
Opiniepeiling
/span

wicket outputs:

input type=radio wicket:id=radio1 checked=checked id=radio122
name=tabs:panel:group value=radio63 onclick=var
wcall=wicketAjaxGet('?wicket:interface=:4:tabs:panel:group:radio1:1:IBehaviorListener:0:',null,null,
function() {return Wicket.$('radio122') != null;}.bind(this));/
Discussie
input type=radio wicket:id=radio2 
id=radio223
name=tabs:panel:group value=radio64 checked=checked onclick=var
wcall=wicketAjaxGet('?wicket:interface=:4:tabs:panel:group:radio2:1:IBehaviorListener:0:',null,null,
function() {return Wicket.$('radio223') != null;}.bind(this));/
Opiniepeiling


any ideas of what could be going wrong? thanks in advance,

francisco

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



Re: radio and radiogroup default checked not working?

2009-02-27 Thread Jonas
Have you tried this: add models to the components (even though you don't use
on them), and store the value associated with the Radio you want checked
in the RadioGroup's model:

final RadioGroupBoolean group = new RadioGroupBoolean(group,
new Model(Boolean.TRUE));
RadioBoolean radio1 = new RadioBoolean(radio1, new
Model(Boolean.TRUE));
radio1.add(new AjaxEventBehavior(onclick) {
@Override
protected void onEvent(AjaxRequestTarget target) {
(do stuff)
}
});

RadioBoolean radio2 = new RadioBoolean(radio2, new
Model(Boolean.FALSE));
radio2.add(new AjaxEventBehavior(onclick) {
@Override
protected void onEvent(AjaxRequestTarget target) {
(do stuff)
}
});
group.add(radio1);
group.add(radio2);
add(group);



On Fri, Feb 27, 2009 at 4:35 PM, francisco treacy
francisco.tre...@gmail.com wrote:
 hi people,

 i'm quite puzzled with this little problem:

 i have two Radio buttons within a RadioGroup. both radios have an
 ajaxeventbehavior(onclick) attached to them, and there are no models
 backing those components. this works fine.

 my problem is i want the *first* option to be checked by default,
 but no matter what the second one gets checked by default in the
 browser.
 yes, i played around with *checked=checked* in my html but wicket
 always outputs *checked=checked* on the second radio button - and
 the browser (firefox) interprets that by checking the second one.

 code:

                final RadioGroupVoid group = new RadioGroupVoid(group);
                RadioVoid radio1 = new RadioVoid(radio1);
                radio1.add(new AjaxEventBehavior(onclick) {
                       �...@override
                        protected void onEvent(AjaxRequestTarget target) {
                                (do stuff)
                        }
                });

                RadioVoid radio2 = new RadioVoid(radio2);
                radio2.add(new AjaxEventBehavior(onclick) {
                       �...@override
                        protected void onEvent(AjaxRequestTarget target) {
                                (do stuff)
                        }
                });
                group.add(radio1);
                group.add(radio2);
                add(group);


 span wicket:id=group
                                input type=radio wicket:id=radio1 
 checked=checked / Discussie
                                input type=radio wicket:id=radio2 / 
 Opiniepeiling
                        /span

 wicket outputs:

 input type=radio wicket:id=radio1 checked=checked id=radio122
 name=tabs:panel:group value=radio63 onclick=var
 wcall=wicketAjaxGet('?wicket:interface=:4:tabs:panel:group:radio1:1:IBehaviorListener:0:',null,null,
 function() {return Wicket.$('radio122') != null;}.bind(this));/
 Discussie
                                input type=radio wicket:id=radio2 
 id=radio223
 name=tabs:panel:group value=radio64 checked=checked onclick=var
 wcall=wicketAjaxGet('?wicket:interface=:4:tabs:panel:group:radio2:1:IBehaviorListener:0:',null,null,
 function() {return Wicket.$('radio223') != null;}.bind(this));/
 Opiniepeiling


 any ideas of what could be going wrong? thanks in advance,

 francisco

 -
 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



Martijn Dashorst at London Wicket Event

2009-02-27 Thread jWeekend

I am pleased to announce that after nearly 18 months of gentle persuasion
Martijn Dashorst will be joining us at our next London Wicket Event on April
1st. He will be giving a couple of talks covering very interesting topics
and signing your copy of Wicket In Action. As in the past, we'll give away a
couple of copies too, by raffle.

I will be speaking to Al about the chances of finding a bigger room at
Google or elsewhere since our events are gathering momentum and with
Martijn's presence we could exceed our usual 50-55 limit this time.

I will update the event/registration page at jWeekend's site as soon as I
have a stable schedule (do not try to sign up until then) as I am working on
confirming 2 more very interesting talks.

So make a note in your diaries if you can be in London on April 1st (yes,
that's April 1st) and look out for our formal announcement soon.

Regards- Cemal
http://jWeekend.com jWeekend 
-- 
View this message in context: 
http://www.nabble.com/Martijn-Dashorst-at-London-Wicket-Event-tp22248444p22248444.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: radio and radiogroup default checked not working?

2009-02-27 Thread francisco treacy
i was refusing to use models (how stubborn :) but i think you're right
- not a very mean workaround that just works fine.

thanks!

francisco


On Fri, Feb 27, 2009 at 4:41 PM, Jonas barney...@gmail.com wrote:
 Have you tried this: add models to the components (even though you don't use
 on them), and store the value associated with the Radio you want checked
 in the RadioGroup's model:

    final RadioGroupBoolean group = new RadioGroupBoolean(group,
 new Model(Boolean.TRUE));
    RadioBoolean radio1 = new RadioBoolean(radio1, new
 Model(Boolean.TRUE));
    radio1.add(new AjaxEventBehavior(onclick) {
           �...@override
            protected void onEvent(AjaxRequestTarget target) {
                    (do stuff)
            }
    });

    RadioBoolean radio2 = new RadioBoolean(radio2, new
 Model(Boolean.FALSE));
    radio2.add(new AjaxEventBehavior(onclick) {
           �...@override
            protected void onEvent(AjaxRequestTarget target) {
                    (do stuff)
            }
    });
    group.add(radio1);
    group.add(radio2);
    add(group);



 On Fri, Feb 27, 2009 at 4:35 PM, francisco treacy
 francisco.tre...@gmail.com wrote:
 hi people,

 i'm quite puzzled with this little problem:

 i have two Radio buttons within a RadioGroup. both radios have an
 ajaxeventbehavior(onclick) attached to them, and there are no models
 backing those components. this works fine.

 my problem is i want the *first* option to be checked by default,
 but no matter what the second one gets checked by default in the
 browser.
 yes, i played around with *checked=checked* in my html but wicket
 always outputs *checked=checked* on the second radio button - and
 the browser (firefox) interprets that by checking the second one.

 code:

                final RadioGroupVoid group = new RadioGroupVoid(group);
                RadioVoid radio1 = new RadioVoid(radio1);
                radio1.add(new AjaxEventBehavior(onclick) {
                       �...@override
                        protected void onEvent(AjaxRequestTarget target) {
                                (do stuff)
                        }
                });

                RadioVoid radio2 = new RadioVoid(radio2);
                radio2.add(new AjaxEventBehavior(onclick) {
                       �...@override
                        protected void onEvent(AjaxRequestTarget target) {
                                (do stuff)
                        }
                });
                group.add(radio1);
                group.add(radio2);
                add(group);


 span wicket:id=group
                                input type=radio wicket:id=radio1 
 checked=checked / Discussie
                                input type=radio wicket:id=radio2 / 
 Opiniepeiling
                        /span

 wicket outputs:

 input type=radio wicket:id=radio1 checked=checked id=radio122
 name=tabs:panel:group value=radio63 onclick=var
 wcall=wicketAjaxGet('?wicket:interface=:4:tabs:panel:group:radio1:1:IBehaviorListener:0:',null,null,
 function() {return Wicket.$('radio122') != null;}.bind(this));/
 Discussie
                                input type=radio wicket:id=radio2 
 id=radio223
 name=tabs:panel:group value=radio64 checked=checked onclick=var
 wcall=wicketAjaxGet('?wicket:interface=:4:tabs:panel:group:radio2:1:IBehaviorListener:0:',null,null,
 function() {return Wicket.$('radio223') != null;}.bind(this));/
 Opiniepeiling


 any ideas of what could be going wrong? thanks in advance,

 francisco

 -
 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: AjaxEditableLabel, Double type and comma / dot

2009-02-27 Thread Piller Sébastien

Hi,

thank you for your quick answer.

I agree with what you said, but my users are a bit... hum, you know, 
they have weird desires, and often ask for things they don't really 
need. If I try to make them change their point of view, then they get 
angry... so I've learned to close my mouth and do what they want, even 
if it is stupid...


;)

Jonas a écrit :

What you can do is to provide you own Converter to the Label
and do you own number parsing/formatting.
In my experience it makes sense to strictly follow the formats
defined by the locales, otherwise user will complain about
unexpected results when entering numbers, e.g. if they use
the character that you would expect as decimal separator as
grouping char.


On Fri, Feb 27, 2009 at 4:19 PM, Piller Sébastien pi...@hmcrecord.ch wrote:
  

Hi all,

I'd like to know if there is a way to make an AjaxEditableLabel accept
either a comma or a dot as decimal separator. That field has a Double
type.

It works well but I have to insert a , as decimal separator (dots are not
allowed), which is quite unusual. I know this is related to Locale, but is
there an easy way?

Thanks!

-
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 Bench error under Eclipse

2009-02-27 Thread Thomas Mäder
Looks like

com.eviware.soapui.eclipse.swt_awt.SwtAwtRequestEditor.init(SwtAwtRequestEditor.java:68)

is the culprit. I would guess that you only get the error when opening files
of a certain type (sth. related to SOAP, perhaps?). If so, try changing the
default editor for this particular file type
(preferences-General-Editors-File Associations)

hth

Thomas


On Fri, Feb 27, 2009 at 10:44 AM, Piller Sébastien pi...@hmcrecord.chwrote:

 Hi all,

 I have some problems using the WicketBench plugin under Eclipse Ganymede.

 It sometimes success in opening the files, and sometimes not. When it
 fails, I can see the following stack trace on Eclipse:

   java.lang.NullPointerException
   at

 com.eviware.soapui.eclipse.swt_awt.SwtAwtRequestEditor.init(SwtAwtRequestEditor.java:68)
   at

 org.eclipse.ui.part.MultiPageEditorPart.addPage(MultiPageEditorPart.java:213)
   at

 org.eclipse.ui.part.MultiPageEditorPart.addPage(MultiPageEditorPart.java:187)
   at
   wicketbench.eclipse.editor.WicketEditor.addPage(WicketEditor.java:211)
   at

 wicketbench.eclipse.editor.WicketEditor.createEditorsForNonJavaResources(WicketEditor.java:196)
   at
   wicketbench.eclipse.editor.WicketEditor.addEditors(WicketEditor.java:178)
   at
   wicketbench.eclipse.editor.WicketEditor.createPages(WicketEditor.java:77)
   at

 org.eclipse.ui.part.MultiPageEditorPart.createPartControl(MultiPageEditorPart.java:310)
   at

 org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:661)
   at

 org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:428)
   at

 org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:594)
   at

 org.eclipse.ui.internal.EditorAreaHelper.setVisibleEditor(EditorAreaHelper.java:263)
   at

 org.eclipse.ui.internal.EditorManager.setVisibleEditor(EditorManager.java:1410)
   at

 org.eclipse.ui.internal.EditorManager$5.runWithException(EditorManager.java:944)
   at

 org.eclipse.ui.internal.StartupThreading$StartupRunnable.run(StartupThreading.java:31)
   at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
   at

 org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:133)
   at
   org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3378)
   at
   org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3036)
   at

 org.eclipse.ui.application.WorkbenchAdvisor.openWindows(WorkbenchAdvisor.java:803)
   at

 org.eclipse.ui.internal.Workbench$27.runWithException(Workbench.java:1361)
   at

 org.eclipse.ui.internal.StartupThreading$StartupRunnable.run(StartupThreading.java:31)
   at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
   at

 org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:133)
   at
   org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3378)
   at
   org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3036)
   at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2293)
   at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2198)
   at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:493)
   at

 org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288)
   at

 org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:488)
   at
   org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
   at

 org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
   at

 org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193)
   at

 org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
   at

 org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
   at

 org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:386)
   at

 org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at

 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at

 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:597)
   at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549)
   at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
   at org.eclipse.equinox.launcher.Main.run(Main.java:1236)


 The weird thing is that I don't modify anything on the source files, and it
 sometimes fails to open and sometimes not. Maybe it is some workspace issue?
 I guess I'm not the only one to get it

 If I remember correctly, Igor is one of the writter of that plugin. Could
 anybody give me a fix?

 Thanks in advance ;)

 

Re: [AjaxTabbedPanel] Switching between form and result tab

2009-02-27 Thread valery . chhoa
I've already try that. It didn't work.
But maybe I'm doing something wrong ...

Here's the page code :


private DemandeUnitaire demande;
private GererMesLignesUnitForm myForm;
private AjaxTabbedPanel tabPanel;
private Panel currentPanel;

public GererMesLignesUnitPage(int selectedTab, Object infosToShow) {
 
if (selectedTab == 1) 
demande = (DemandeUnitaire) infosToShow;

myForm = new GererMesLignesUnitForm(recherche, new CompoundPropertyModel
(new DemandeUnitaire()));
List tabs = new ArrayList();

tabs.add(new PanelCachingTab(
new AbstractTab(new Model(first tab)) {
private static final long serialVersionUID = 1L;
public Panel getPanel(String panelId) { 
 
Panel p = new TabPanel1(panelId);
 
FeedbackPanel feedback = new FeedbackPanel(msgs
);
p.add(feedback);
 
 
p.add(myForm);
 
return p;
} 
}
) {
@Override 
public Panel getPanel(final String panelId) {
return super.getPanel(panelId); 
}
});

tabs.add(new PanelCachingTab(
new AbstractTab(new Model(second tab)) {
private static final long serialVersionUID = 1L;
public Panel getPanel(String panelId) { 

Panel p = new TabPanel2(panelId);
p.add(new Label(statut, demande.getStatut()));
  p.add(new Label(numMachine, demande
.getNumMachine()));

HeaderContributor alert = new HeaderContributor(
new IHeaderContributor() {
public void 
renderHead(IHeaderResponse response) {
 response.renderOnLoadJavascript(onloadEvent();); 
}
}
); 
 
p.add(HeaderContributor.forJavaScript( LIB_JS ));
p.add(HeaderContributor.forJavaScript( 
SHOW_HIDE_COLUMN_JS ));
p.add(alert);
return p;
} 
}
) {
@Override 
public Panel getPanel(final String panelId) {
return super.getPanel(panelId); 
}
}); 
 





De :
Igor Vaynberg igor.vaynb...@gmail.com
A:
users@wicket.apache.org
Date:
27/02/2009 17:27
Objet :
Re: [AjaxTabbedPanel] Switching between form and result tab



use panelcachingtab instead of abstracttab

-igor

2009/2/27  valery.ch...@steria.com:
 Hi,

 Anyone have an idea on the matter below ?

 Cheers,

 Val



 De :
 valery.ch...@steria.com
 A:
 users@wicket.apache.org
 Date:
 26/02/2009 14:11
 Objet :
 [AjaxTabbedPanel] Switching between form and result tab



 Hi,

 I have an AjacTabbedPanel with two tabs.
 The first tab is a form which, when submitted, show the result on the
 second tabs.
 So far, everything's fine.

 I want to keep the input from the form after the submit so that the user
 can come back to the first tab and have a look at what the crierias was
 and maybe to modify them to make another request.
 But I need to be able switch back to the second tab and keep records of
 the result if the user didn't resubmit the form.

 I've search through the mailing list and the solution that come up most
 often is to override newLink to return an ajaxSubmitLink. But I don't
 think that's the solution for me since the form is only on the first
 panel.

 Cheers,

 Valery







 Ce message est à l'attention exclusive des destinataires désignés. Il 
peut

 contenir des informations confidentielles. Si vous n'êtes pas 
destinataire

 du message, merci d'en avertir immédiatement l'expéditeur et de détruire
 ce message. Le contenu de ce message ne pourrait engager la 
responsabilité

 de Steria que s'il a été émis par une personne dûment habilitée agissant
 dans le strict cadre de ses fonctions et à des fins non étrangères à ses
 attributions. Bien que les meilleurs efforts soient faits pour maintenir
 cette transmission exempte de tout virus, l'expéditeur ne donne aucune
 garantie à cet égard et sa responsabilité ne saurait être engagée pour
 tout dommage résultant d'un virus transmis.


 This message is intended exclusively for the designated addressee. It 
may
 contain confidential material. If you are not the correct addressee,
 please notify the sender immediately and destroy the message. The 
content
 of this message will engage the responsibility of Steria only if it has
 been sent by an authorized person acting in the strict scope of his
 functions and for purposes that are related to his competence. Although
 reasonable efforts have been made to keep this transmission free from
 viruses, the sender will not be liable for damages caused by a 
transmitted

 virus.











 Ce message est à l'attention exclusive des destinataires désignés. Il 
peut
 contenir des informations confidentielles. Si 

Re: [AjaxTabbedPanel] Switching between form and result tab

2009-02-27 Thread Igor Vaynberg
p.add(new Label(statut, demande.getStatut()));

^ you should use models instead of passing it actual values, that way
your data doesnt get out of sync.
see the models page on the wiki

-igor

2009/2/27  valery.ch...@steria.com:
 I've already try that. It didn't work.
 But maybe I'm doing something wrong ...

 Here's the page code :


 private DemandeUnitaire demande;
 private GererMesLignesUnitForm myForm;
 private AjaxTabbedPanel tabPanel;
 private Panel currentPanel;

 public GererMesLignesUnitPage(int selectedTab, Object infosToShow) {

 if (selectedTab == 1)
        demande = (DemandeUnitaire) infosToShow;

 myForm = new GererMesLignesUnitForm(recherche, new CompoundPropertyModel
 (new DemandeUnitaire()));
 List tabs = new ArrayList();

 tabs.add(new PanelCachingTab(
        new AbstractTab(new Model(first tab)) {
                private static final long serialVersionUID = 1L;
                public Panel getPanel(String panelId) {

                        Panel p = new TabPanel1(panelId);

                        FeedbackPanel feedback = new FeedbackPanel(msgs
 );
                        p.add(feedback);


                        p.add(myForm);

                        return p;
                }
        }
 ) {
       �...@override
        public Panel getPanel(final String panelId) {
                return super.getPanel(panelId);
        }
 });

 tabs.add(new PanelCachingTab(
        new AbstractTab(new Model(second tab)) {
                private static final long serialVersionUID = 1L;
                public Panel getPanel(String panelId) {

                        Panel p = new TabPanel2(panelId);
                        p.add(new Label(statut, demande.getStatut()));
                      p.add(new Label(numMachine, demande
 .getNumMachine()));

                        HeaderContributor alert = new HeaderContributor(
                                new IHeaderContributor() {
                                        public void
 renderHead(IHeaderResponse response) {
  response.renderOnLoadJavascript(onloadEvent(););
                                        }
                                }
                        );

                        p.add(HeaderContributor.forJavaScript( LIB_JS ));
                        p.add(HeaderContributor.forJavaScript(
 SHOW_HIDE_COLUMN_JS ));
                        p.add(alert);
                        return p;
                }
        }
 ) {
       �...@override
        public Panel getPanel(final String panelId) {
                return super.getPanel(panelId);
        }
 });






 De :
 Igor Vaynberg igor.vaynb...@gmail.com
 A:
 users@wicket.apache.org
 Date:
 27/02/2009 17:27
 Objet :
 Re: [AjaxTabbedPanel] Switching between form and result tab



 use panelcachingtab instead of abstracttab

 -igor

 2009/2/27  valery.ch...@steria.com:
 Hi,

 Anyone have an idea on the matter below ?

 Cheers,

 Val



 De :
 valery.ch...@steria.com
 A:
 users@wicket.apache.org
 Date:
 26/02/2009 14:11
 Objet :
 [AjaxTabbedPanel] Switching between form and result tab



 Hi,

 I have an AjacTabbedPanel with two tabs.
 The first tab is a form which, when submitted, show the result on the
 second tabs.
 So far, everything's fine.

 I want to keep the input from the form after the submit so that the user
 can come back to the first tab and have a look at what the crierias was
 and maybe to modify them to make another request.
 But I need to be able switch back to the second tab and keep records of
 the result if the user didn't resubmit the form.

 I've search through the mailing list and the solution that come up most
 often is to override newLink to return an ajaxSubmitLink. But I don't
 think that's the solution for me since the form is only on the first
 panel.

 Cheers,

 Valery







 Ce message est à l'attention exclusive des destinataires désignés. Il
 peut

 contenir des informations confidentielles. Si vous n'êtes pas
 destinataire

 du message, merci d'en avertir immédiatement l'expéditeur et de détruire
 ce message. Le contenu de ce message ne pourrait engager la
 responsabilité

 de Steria que s'il a été émis par une personne dûment habilitée agissant
 dans le strict cadre de ses fonctions et à des fins non étrangères à ses
 attributions. Bien que les meilleurs efforts soient faits pour maintenir
 cette transmission exempte de tout virus, l'expéditeur ne donne aucune
 garantie à cet égard et sa responsabilité ne saurait être engagée pour
 tout dommage résultant d'un virus transmis.


 This message is intended exclusively for the designated addressee. It
 may
 contain confidential material. If you are not the correct addressee,
 please notify the sender immediately and destroy the message. The
 content
 of this message will engage the responsibility of Steria only if it has
 been sent by an authorized person acting in the strict scope of his
 functions and for purposes that are related to his competence. Although
 reasonable efforts have been made to keep this 

DropDownChoice constructor

2009-02-27 Thread Adriano dos Santos Fernandes

Hi!

Maybe I'm dumb today :-), but I can't access this constructor:
   public DropDownChoice(String id, IModelList? extends T choices, 
IChoiceRendererT renderer)


So I had created new functions using similar generics parameter, and it 
also don't work for the DDC equivalent:
   private T void temp1(String id, IModelListT choices, 
IChoiceRendererT renderer)

   {
   }

   private T void temp2(String id, IModelList? extends T choices, 
IChoiceRendererT renderer)

   {
   }

If I call:
   temp1(, (IModelListConta) null, (IChoiceRendererConta) 
null);   // compile
   temp2(, (IModelListConta) null, (IChoiceRendererConta) 
null);   // don't compile


Error is: The method temp2(String, IModelList? extends T, 
IChoiceRendererT) in the type ... is not applicable for the arguments 
(String, IModelListConta, IChoiceRendererConta).


I can't pass anything on the model. Should not the Wicket constructor be 
changed to IModelListT or what I'm missing?



Adriano


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



Re: DropDownChoice constructor

2009-02-27 Thread Adriano dos Santos Fernandes
Seems I'm late reading this list, and encounter the same problem 
discussed in another thread today. :-)



Adriano


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



Re: using a model with DropDownChoice

2009-02-27 Thread Adriano dos Santos Fernandes

What do you mean with read only here?


Adriano


Igor Vaynberg escreveu:

? extends Foo collections are read only, it would be too
inconvenient to make the model collection read only :)

-igor

On Thu, Feb 26, 2009 at 8:34 PM, Jeremy Thomerson
jer...@wickettraining.com wrote:
  

This is what I was commenting on last week on the list (or earlier this
week).  One expects List? extends Foo while the other expects ListFoo.
I'm not fully convinced yet that the ? extends is the better option.
Either way, I think they should be the same.

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

On Thu, Feb 26, 2009 at 8:27 PM, Brill Pappin br...@pappin.ca wrote:



Roughly what I'm doing is:

class TypeA{}

class TypeAModel extends LoadableDetachableModel ListTypeA {
   public ListTypeA load(){
   ... do the load ...
   return ...
   }
}

TypeAModel model = new TypeAModel();
DropDownChoice TypeA ddc = new DropDownChoiceTypeA(id, model );

which gets complained about... in this case the generic def is
DropDownChoiceList? extends T

I think the problem is that the generic def of the class should actually be
DropDownChoiceListT because you are already identifying the type when
you create a new instance.

Now... my generics are a bit hazy at this level, because I can understand
why it was done that way... does anyone with more generics experience know
what it should be? Is this a bug that needs filing?

- Brill



On 26-Feb-09, at 6:03 PM, Kaspar Fischer wrote:

 On 26.02.2009, at 22:52, Brill Pappin wrote:
  

 For some reason the DropDownChoice component doesn't have the same


generics as ListView and it will not accept a model that listview will,
despite its saying that it will accept an IModel.

Is anyone else having that sort of trouble with DropDownChoice?

- Brill

  

Can you give us more information on what exactly is not working for you?

DropDownChoice indeed does accept a model, see for instance the example in
the class description at


http://wicket.apache.org/docs/1.4/org/apache/wicket/markup/html/form/DropDownChoice.html

This works for me.

Kaspar

--

!-- HTML: --
 select wicket:id=site
  optionsite 1/option
  optionsite 2/option
 /select
 ul
 li wicket:id=site2wicket:container wicket:id=sitename//li
 /ul

// Code
  List SITES = Arrays.asList(new String[] {
  The Server Side, Java Lobby, Java.Net
  });
  form.add(new DropDownChoice(site, SITES));
  form.add(new ListView(site2, SITES)
  {
@Override
protected void populateItem(ListItem item)
{
  item.add(new Label(sitename, item.getModel()));
}
  });


-
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


  


? extends

-
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



Multiple Forms in A Border

2009-02-27 Thread TH Lim

I am using Wicket-1.4-SNAPSHOT libraries. I have a  page with multiple forms.
These forms are within a Border as shown in the HTML below

html
body
   div wicket:id=border
   form wicket:id=form1
   input wicket:id=quantity1 /br/
   input type=submit value=Quantity1 /
   /formbr/
   form wicket:id=form2
   input wicket:id=quantity2 /br/
   input type=submit value=Quantity2 /
   /formbr/
   /div
/body
/html

The Wicket code to this page is

public class CommonModelPage extends WebPage
{
private static final long serialVersionUID = 1L;

int quantity1;
int quantity2;

public CommonModelPage()
{
CommonBorder border = new CommonBorder(border);
add(border);

Form form1 = new Form(form1);
border.add(form1);

form1.add(new TextField(quantity1, new PropertyModel(this,
quantity1)));

Form form2 = new Form(form2);
border.add(form2);

form2.add(new TextField(quantity2, new PropertyModel(this,
quantity2)));
}

public int getQuantity1()
{
return quantity1;
}

public void setQuantity1(int quantity1)
{
this.quantity1 = quantity1;
}

public int getQuantity2()
{
return quantity2;
}

public void setQuantity2(int quantity2)
{
this.quantity2 = quantity2;
}
}

CommonBorder is an empty border class with no Wicket components and simple
HTML texts. The problem was when I submitted form1 or form2 I get this
exception

WicketMessage: Can't convert null value to a primitive class: int for
setting it on [Page class = CommonModelPage, id = 10, version = 0]


I found 2 unlikely way to circumvent this exception: -
1. Do not use Border. 
2. Change quantity1 and quantity2 type from int to Integer.

My question is why does this happen? Ain't form1 and form2 are independent?
Do I need to change anything to Border to make this work?

Thanks

/lim/



-- 
View this message in context: 
http://www.nabble.com/Multiple-Forms-in-A-Border-tp22252817p22252817.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Wicket Link with proxy server: wrong hostname

2009-02-27 Thread Marcelo Morales
Hi

I am not a fan of reverse proxying. I would not vote for it if runs.

If your servlet container supports it, you may try the AJP protocol.
It works on tomcat at least. AJP is better than just using a http
reverse proxy because: a) you get the right client IP address then
asking the servlet API, b) isSecure() and getScheme() will work as
expected, and c) the container becomes aware of the changed context
root.

On Fri, Feb 27, 2009 at 6:14 AM,  harri.temo...@nokia.com wrote:
 Hi all,

 I have problem when Wicket 1.3.5 application is installed behind proxy server.

 Application it showing Index page in url https://www.mycompany.com/pls/myapp/
 When clicking link (pointing into same Index page), browser is going to url 
 http://server:/pls/myapp/

 Any ideas about to solve this? Details listed below.

 Best Regards
 Harri

 ==Index.html=
 html xmlns:wicket=http://wicket.apache.org/;
 body
   a wicket:id = linkIndexIndex/a
 /body
 /html
 ==Index.java=
 public class Index extends WebPage {
    public Index() {
        Link linkToAnchor = new Link(linkIndex) {
                public void onClick() {
                    setResponsePage(Index.class);
                }
            };
        add(linkToAnchor);
    }
 }
 ==MyApplication.java=
 public class MyApplication extends WebApplication {

   �...@override
    public Class getHomePage() {
        return Index.class;
    }
 }
 ==web.xml
 ?xml version = '1.0' encoding = 'windows-1252'?
 web-app xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; 
 xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee 
 http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd; version=2.4 
 xmlns=http://java.sun.com/xml/ns/j2ee;
    descriptionEmpty web.xml file for Web Application/description
    filter
        filter-nameWicketApplication/filter-name
        
 filter-classorg.apache.wicket.protocol.http.WicketFilter/filter-class
        init-param
            param-nameapplicationClassName/param-name
            param-valuecom.mycompany.app.MyApplication/param-value
        /init-param
    /filter
    filter-mapping
        filter-nameWicketApplication/filter-name
        url-pattern/*/url-pattern
    /filter-mapping
    session-config
        session-timeout35/session-timeout
    /session-config
    mime-mapping
        extensionhtml/extension
        mime-typetext/html/mime-type
    /mime-mapping
    mime-mapping
        extensiontxt/extension
        mime-typetext/plain/mime-type
    /mime-mapping
 /web-app
 ===
 My infra stack is:

 Alteon SSL Aaccelerator url:
 https://www.mycompany.com/pls/myapp/

 Apache Proxy url:
 http://webserver:80/pls/myapp/
 Httpd.conf:
 ProxyPass               /pls  http://server:/pls/myapp/
 ProxyPassReverse        /pls  http://server:/pls/myapp/

 Oracle Application Server url:
 http://server:/pls/myapp/







-- 
Marcelo Morales

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



Re: using a model with DropDownChoice

2009-02-27 Thread Igor Vaynberg
list? extends string stings=...
strings.add(asd); == wont compile

-igor

On Fri, Feb 27, 2009 at 11:13 AM, Adriano dos Santos Fernandes
adrian...@gmail.com wrote:
 What do you mean with read only here?


 Adriano


 Igor Vaynberg escreveu:

 ? extends Foo collections are read only, it would be too
 inconvenient to make the model collection read only :)

 -igor

 On Thu, Feb 26, 2009 at 8:34 PM, Jeremy Thomerson
 jer...@wickettraining.com wrote:


 This is what I was commenting on last week on the list (or earlier this
 week).  One expects List? extends Foo while the other expects
 ListFoo.
 I'm not fully convinced yet that the ? extends is the better option.
 Either way, I think they should be the same.

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

 On Thu, Feb 26, 2009 at 8:27 PM, Brill Pappin br...@pappin.ca wrote:



 Roughly what I'm doing is:

 class TypeA{}

 class TypeAModel extends LoadableDetachableModel ListTypeA {
       public ListTypeA load(){
               ... do the load ...
               return ...
       }
 }

 TypeAModel model = new TypeAModel();
 DropDownChoice TypeA ddc = new DropDownChoiceTypeA(id, model );

 which gets complained about... in this case the generic def is
 DropDownChoiceList? extends T

 I think the problem is that the generic def of the class should actually
 be
 DropDownChoiceListT because you are already identifying the type
 when
 you create a new instance.

 Now... my generics are a bit hazy at this level, because I can
 understand
 why it was done that way... does anyone with more generics experience
 know
 what it should be? Is this a bug that needs filing?

 - Brill



 On 26-Feb-09, at 6:03 PM, Kaspar Fischer wrote:

  On 26.02.2009, at 22:52, Brill Pappin wrote:


  For some reason the DropDownChoice component doesn't have the same


 generics as ListView and it will not accept a model that listview
 will,
 despite its saying that it will accept an IModel.

 Is anyone else having that sort of trouble with DropDownChoice?

 - Brill



 Can you give us more information on what exactly is not working for
 you?

 DropDownChoice indeed does accept a model, see for instance the example
 in
 the class description at



 http://wicket.apache.org/docs/1.4/org/apache/wicket/markup/html/form/DropDownChoice.html

 This works for me.

 Kaspar

 --

 !-- HTML: --
  select wicket:id=site
              optionsite 1/option
              optionsite 2/option
  /select
  ul
  li wicket:id=site2wicket:container wicket:id=sitename//li
  /ul

 // Code
  List SITES = Arrays.asList(new String[] {
      The Server Side, Java Lobby, Java.Net
  });
  form.add(new DropDownChoice(site, SITES));
  form.add(new ListView(site2, SITES)
  {
   �...@override
    protected void populateItem(ListItem item)
    {
      item.add(new Label(sitename, item.getModel()));
    }
  });


 -
 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




 ? extends

 -
 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



a simple RepeatingView to display links with labels

2009-02-27 Thread novotny

Hi,

The sample from the javadocs works:

 Java:

 RepeatingView view = new RepeatingView(repeater);
 view.add(new Label(1, hello));
 view.add(new Label(2, goodbye));
 view.add(new Label(3, good morning));
 

Markup:

  

 

Yields:

  
hello
goodbye
good morning

 

However, I can't seem to add a label to a BoomarkablePageLink in the same
way... does anyone have an idea of how to do this?

I was trying 

 RepeatingView view = new RepeatingView(repeater);
 view.add(new BookmarkablePageLink(1, MyPage.class).add(new Label(1,
hello)));

with the same markup to no avail.

Thanks, Jason
-- 
View this message in context: 
http://www.nabble.com/a-simple-RepeatingView-to-display-links-with-labels-tp22256741p22256741.html
Sent from the Wicket - User mailing list archive at Nabble.com.


Re: m4eclipse Plugin -- Was: What IDE best fits with Wicket?

2009-02-27 Thread Brill Pappin

I *do* feel your pain and I understand the problems you are having.
the m2eclipse plugin is actually participating in the build that  
Eclipse initiated (which it does do after every code change), which  
helps keep things in sync. What exactly it does will depend on what  
needs doing (for instance if you have a lot of filtered resources,  
it's going to take longer).


About your corrupt modules... I also get that from time to time, but I  
usually find that happens if there is an error some place like in a  
POM file. Finding it and fixing it usually resolves the problem.


You may be able to turn off that auto build... earlier versions of the  
plugin didn't do it but you'd end up with partial builds on the  
eclipse side and more of a mess than was worth it.


You can also make sure you have run a build in the console as it will  
speed up the m4e plugin (it doesn't have to download anything).


I think that if your happy with the mvn eclipse:eclipse method of  
working, then you don't really need to change.. your modules are  
clearly designed for it and the m2e plugin does pretty much the same  
thing anyway.


I guess it's a bit unfortunate that you had so much trouble with it,  
but I can tell you that I use the m4e plugin every hour of every  
working day without any trouble. I think part of why it works so well  
for me is that I keep my modules small and flat (little to no nesting)  
and so *don't even notice* when it's building... it may be that it  
works for me because of how I work and organize my projects.


So, the other plugin I was talking about is the q4e plugin... I was  
very not impresses when I tried it. You can check it out yourself at:

http://code.google.com/p/q4e/

Also, I noticed before that the q4e plugin was going into Eclipse,  
however I now see that the m4eclipse plugin is becoming an official  
plugin:

http://www.eclipse.org/m2e/

- Brill Pappin



On 27-Feb-09, at 2:38 AM, Emond Papegaaij wrote:

That is the plugin Martijn is talking about, and I am one of the co- 
workers he
mentioned. I tried the m2eclipse plugin and used it for a day. The  
plugin
(version 0.9.7.200902090947) was able to checkout the project from  
svn and
create eclipse projects for all modules, so far so good, although  
the browse
button in the svn window didn't work. At that moment the trouble  
started.


Somehow, after even the slightest code change, eclipse started to  
rebuild the
entire project over and over, taking ages. After some more changes  
(some of
them might have been in the pom), some of my projects got corrupted  
and I had
to clean everything, doing a complete rebuild. A few hours later,  
while I was
working on a Java file, about 30,000 errors suddenly appeared.  
Somehow,
m2eclipse had reversed some of my module-to-module dependencies. I  
tried
cleaning, updating, refreshing the project configuration, nothing  
helped. I was

unable to get the project to build again.

My experience with m2eclipse is that it is slow and very unstable.  
My last
attempt was not the first attempt. I tried to use it several times,  
because
running mvn eclipse:eclipse all the time is just a pain in the *,  
but every

time I ran into some strange problem I could not solve.

Emond Papegaaij

On Thursday 26 February 2009 17:20:04 Brill Pappin wrote:

I don't think we're talking about the same plugin then (although you
seem to be calling it the same thing)...
I'm referring to:

http://m2eclipse.codehaus.org/

It's the *only* one I've found that *actually works* properly,
particularly for larger projects... although I run the dev version so
I'm not sure how well the released version is working at this moment.
Of course I could simply go back to the console and use the maven
plugin to generate the eclipse project files, but I find the plugin  
to

be light-years ahead in maintaining a clean build env.

I guess people's experience with various tools also depends a lot on
*how* they work not just what they work with :)


- Brill Pappin

On 24-Feb-09, at 12:38 PM, Martijn Dashorst wrote:
m2eclipse is absolutely worthless for anything beyond a  
quickstart. It
is constantly reparsing poms, grinding eclipse to a halt. It  
failed to

generate the right project dependencies for our multimodule project
that consists of 2 multimodule child projects. It failed miserably  
to

uninstall, needing me to axe my eclipse installation.

In short: my experience (and that of my co-workers) with m2eclipse  
is

that it is far from ready for prime time.

Martijn

On Tue, Feb 24, 2009 at 5:55 PM, Brill Pappin br...@pappin.ca  
wrote:

I should add something about the Eclipse maven plugins... don't go
for the
official eclipse Q4 plugin... use the Maven Integration 4 Eclipse
plugin
(and actually the development version if your jiggy with it, it
works and
gets updated/fixed way more often).

If your on Netbeans, I think Maven will generate Netbeans project
files for
you as well (it will do so for eclipse), so you could 

Re: What IDE best fits with Wicket?

2009-02-27 Thread Brill Pappin
It's been a year or two since I tried it... but I couldn't stand it  
unfortunately (m4eclipse was going through some serious issues at the  
time).


Glad to see that its improved enough to use!

- Brill

On 27-Feb-09, at 6:14 AM, Sergio García wrote:



I'm using Q4E, and although it has some flaws, it works very good  
with maven


Brill Pappin wrote:


What are you using instead?

- Brill

On 24-Feb-09, at 12:45 PM, James Carman wrote:


+1!  We had an awful lot of trouble getting it to work for us.

On Tue, Feb 24, 2009 at 12:38 PM, Martijn Dashorst
martijn.dasho...@gmail.com wrote:

m2eclipse is absolutely worthless for anything beyond a quickstart.
It
is constantly reparsing poms, grinding eclipse to a halt. It failed
to
generate the right project dependencies for our multimodule project
that consists of 2 multimodule child projects. It failed  
miserably to

uninstall, needing me to axe my eclipse installation.

In short: my experience (and that of my co-workers) with  
m2eclipse is

that it is far from ready for prime time.

Martijn

On Tue, Feb 24, 2009 at 5:55 PM, Brill Pappin br...@pappin.ca
wrote:

I should add something about the Eclipse maven plugins... don't go
for the
official eclipse Q4 plugin... use the Maven Integration 4
Eclipse plugin
(and actually the development version if your jiggy with it, it
works and
gets updated/fixed way more often).

If your on Netbeans, I think Maven will generate Netbeans project
files for
you as well (it will do so for eclipse), so you could actually
flip back and
forth if you wanted.

- Brill Pappin

On 23-Feb-09, at 5:19 PM, Pierre Goupil wrote:


+1, I like Wicket Bench. And with M2Eclipse, you have the full
sources 
JavaDoc just by adding Wicket as a dependency, which is very
convenient.
But
don't expect Wicket Bench to do too much, it's just a small,
useful tool.

Pierre


Hi, I use Eclipse with Wicket Bench plugin and it works very  
fine.


--
Sans amis était le grand maître des mondes,
Eprouvait manque, ce pour quoi il créa les esprits,
Miroirs bienveillants de sa béatitude.
Mais au vrai, il ne trouva aucun égal,
Du calice du royaume total des âmes
Ecume jusqu'à lui l'infinité.

(Schiller, l'amitié)



-
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.3.5 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.

-
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





--
View this message in context: 
http://www.nabble.com/What-IDE-best-fits-with-Wicket--tp22168133p22243831.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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




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



Re: using a model with DropDownChoice

2009-02-27 Thread Brill Pappin

I see... but this would i think because Bar is a Foo:

class Bar exends Foo {}
List? extends Foo list = ...
list.add(new Bar());

Anyway, what your saying is that the generics choice was intentional?

- Brill



On 27-Feb-09, at 3:19 PM, Igor Vaynberg wrote:


list? extends string stings=...
strings.add(asd); == wont compile

-igor

On Fri, Feb 27, 2009 at 11:13 AM, Adriano dos Santos Fernandes
adrian...@gmail.com wrote:

What do you mean with read only here?


Adriano


Igor Vaynberg escreveu:


? extends Foo collections are read only, it would be too
inconvenient to make the model collection read only :)

-igor

On Thu, Feb 26, 2009 at 8:34 PM, Jeremy Thomerson
jer...@wickettraining.com wrote:



This is what I was commenting on last week on the list (or  
earlier this

week).  One expects List? extends Foo while the other expects
ListFoo.
I'm not fully convinced yet that the ? extends is the better  
option.

Either way, I think they should be the same.

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

On Thu, Feb 26, 2009 at 8:27 PM, Brill Pappin br...@pappin.ca  
wrote:





Roughly what I'm doing is:

class TypeA{}

class TypeAModel extends LoadableDetachableModel ListTypeA {
  public ListTypeA load(){
  ... do the load ...
  return ...
  }
}

TypeAModel model = new TypeAModel();
DropDownChoice TypeA ddc = new DropDownChoiceTypeA(id,  
model );


which gets complained about... in this case the generic def is
DropDownChoiceList? extends T

I think the problem is that the generic def of the class should  
actually

be
DropDownChoiceListT because you are already identifying the  
type

when
you create a new instance.

Now... my generics are a bit hazy at this level, because I can
understand
why it was done that way... does anyone with more generics  
experience

know
what it should be? Is this a bug that needs filing?

- Brill



On 26-Feb-09, at 6:03 PM, Kaspar Fischer wrote:

 On 26.02.2009, at 22:52, Brill Pappin wrote:



 For some reason the DropDownChoice component doesn't have the  
same




generics as ListView and it will not accept a model that  
listview

will,
despite its saying that it will accept an IModel.

Is anyone else having that sort of trouble with DropDownChoice?

- Brill




Can you give us more information on what exactly is not working  
for

you?

DropDownChoice indeed does accept a model, see for instance the  
example

in
the class description at



http://wicket.apache.org/docs/1.4/org/apache/wicket/markup/html/form/DropDownChoice.html

This works for me.

Kaspar

--

!-- HTML: --
 select wicket:id=site
 optionsite 1/option
 optionsite 2/option
 /select
 ul
 li wicket:id=site2wicket:container wicket:id=sitename/ 
/li

 /ul

// Code
 List SITES = Arrays.asList(new String[] {
 The Server Side, Java Lobby, Java.Net
 });
 form.add(new DropDownChoice(site, SITES));
 form.add(new ListView(site2, SITES)
 {
   @Override
   protected void populateItem(ListItem item)
   {
 item.add(new Label(sitename, item.getModel()));
   }
 });


-
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





? extends

-
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



will it work in a Linode?

2009-02-27 Thread jbarciela jbarciela
Hello all,

Does anyone have experience running a Wicket app in a memory
constrained server? It's going to be Ubuntu minimal, Wicket and H2
embedded database on a Linode (360 MB ram, $20/month).

Can I get even 1 req/s from that setup?

Thanks!
Jaime

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



RE: will it work in a Linode?

2009-02-27 Thread Jeremy Thomerson
Impossible question to answer given your details.

Don't hold big objects, and especially not collections in session, do your 
database right, etc, etc, sure - you could get tons of r/s.  But we don't know 
if every request generates 78 queries to your DB.  If so, plan on your app 
dying a slow painful death.

Jeremy Thomerson
http://www.wickettraining.com
-- sent from a wireless device


-Original Message-
From: jbarciela jbarciela jbarci...@gmail.com
Sent: Friday, February 27, 2009 11:08 PM
To: users@wicket.apache.org
Subject: will it work in a Linode?

Hello all,

Does anyone have experience running a Wicket app in a memory
constrained server? It's going to be Ubuntu minimal, Wicket and H2
embedded database on a Linode (360 MB ram, $20/month).

Can I get even 1 req/s from that setup?

Thanks!
Jaime

-
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: using a model with DropDownChoice

2009-02-27 Thread Igor Vaynberg
yes, the choice was intentional. personally i do not care if it is T
all the way, some users complained so we widened it on the choices
model, we cannot widen it on the main model.

-igor

On Fri, Feb 27, 2009 at 8:51 PM, Brill Pappin br...@pappin.ca wrote:
 I see... but this would i think because Bar is a Foo:

 class Bar exends Foo {}
 List? extends Foo list = ...
 list.add(new Bar());

 Anyway, what your saying is that the generics choice was intentional?

 - Brill



 On 27-Feb-09, at 3:19 PM, Igor Vaynberg wrote:

 list? extends string stings=...
 strings.add(asd); == wont compile

 -igor

 On Fri, Feb 27, 2009 at 11:13 AM, Adriano dos Santos Fernandes
 adrian...@gmail.com wrote:

 What do you mean with read only here?


 Adriano


 Igor Vaynberg escreveu:

 ? extends Foo collections are read only, it would be too
 inconvenient to make the model collection read only :)

 -igor

 On Thu, Feb 26, 2009 at 8:34 PM, Jeremy Thomerson
 jer...@wickettraining.com wrote:


 This is what I was commenting on last week on the list (or earlier this
 week).  One expects List? extends Foo while the other expects
 ListFoo.
 I'm not fully convinced yet that the ? extends is the better option.
 Either way, I think they should be the same.

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

 On Thu, Feb 26, 2009 at 8:27 PM, Brill Pappin br...@pappin.ca wrote:



 Roughly what I'm doing is:

 class TypeA{}

 class TypeAModel extends LoadableDetachableModel ListTypeA {
      public ListTypeA load(){
              ... do the load ...
              return ...
      }
 }

 TypeAModel model = new TypeAModel();
 DropDownChoice TypeA ddc = new DropDownChoiceTypeA(id, model );

 which gets complained about... in this case the generic def is
 DropDownChoiceList? extends T

 I think the problem is that the generic def of the class should
 actually
 be
 DropDownChoiceListT because you are already identifying the type
 when
 you create a new instance.

 Now... my generics are a bit hazy at this level, because I can
 understand
 why it was done that way... does anyone with more generics experience
 know
 what it should be? Is this a bug that needs filing?

 - Brill



 On 26-Feb-09, at 6:03 PM, Kaspar Fischer wrote:

  On 26.02.2009, at 22:52, Brill Pappin wrote:


  For some reason the DropDownChoice component doesn't have the same


 generics as ListView and it will not accept a model that listview
 will,
 despite its saying that it will accept an IModel.

 Is anyone else having that sort of trouble with DropDownChoice?

 - Brill



 Can you give us more information on what exactly is not working for
 you?

 DropDownChoice indeed does accept a model, see for instance the
 example
 in
 the class description at




 http://wicket.apache.org/docs/1.4/org/apache/wicket/markup/html/form/DropDownChoice.html

 This works for me.

 Kaspar

 --

 !-- HTML: --
  select wicket:id=site
             optionsite 1/option
             optionsite 2/option
  /select
  ul
  li wicket:id=site2wicket:container wicket:id=sitename//li
  /ul

 // Code
  List SITES = Arrays.asList(new String[] {
     The Server Side, Java Lobby, Java.Net
  });
  form.add(new DropDownChoice(site, SITES));
  form.add(new ListView(site2, SITES)
  {
   @Override
   protected void populateItem(ListItem item)
   {
     item.add(new Label(sitename, item.getModel()));
   }
  });


 -
 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




 ? extends

 -
 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



es, the choice

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



Re: will it work in a Linode?

2009-02-27 Thread Igor Vaynberg
what would make you think wicket would be the most memory hungry part
of that setup and not the OS or the database?

-igor

On Fri, Feb 27, 2009 at 9:08 PM, jbarciela jbarciela
jbarci...@gmail.com wrote:
 Hello all,

 Does anyone have experience running a Wicket app in a memory
 constrained server? It's going to be Ubuntu minimal, Wicket and H2
 embedded database on a Linode (360 MB ram, $20/month).

 Can I get even 1 req/s from that setup?

 Thanks!
 Jaime

 -
 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 Portlets on WAS 7.5

2009-02-27 Thread Philippe Marzouk
On Thu, Feb 26, 2009 at 08:11:46AM -0800, suneeelu wrote:
 
 
 Hi,
 We are trying to run the echo wicket example application as a wicket portlet
 on WAS 7.5.
 
 We are able to load the echo application as a portlet but when we enter any
 text and submit the form, the form doesn't gets submitted and the page
 always gets loaded with the default echo text.
 
 We are using the same echo example application given in the wicket examples
 and we are using the wicket-1.4.2-SNAPSHOT versions for the portlet JSR 286
 support.
 
 Has the 286 support tested on WAS? Are there known issues?
 
 The Wicket documentation mentions that we need to use WicketFilter instead
 of WicketServlet, but when we run the wicket web application in WAS, the
 application doesn't run with the WicketFilter. we need to change it to
 WicketServlet to make it run. do Wicket Portlets also need the WicketServlet
 configuration?

I don't know about WAS 7.5 or portlet but on WAS 6.1 for wicket to run
with WicketFilter you have to apply this solution else you get 404
HTTP errors:

http://www-01.ibm.com/support/docview.wss?uid=swg24014758

Philippe

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



Re: will it work in a Linode?

2009-02-27 Thread jbarciela jbarciela
Well, no, I don't think that.


On Sat, Feb 28, 2009 at 1:44 AM, Igor Vaynberg igor.vaynb...@gmail.com wrote:
 what would make you think wicket would be the most memory hungry part
 of that setup and not the OS or the database?

 -igor

 On Fri, Feb 27, 2009 at 9:08 PM, jbarciela jbarciela
 jbarci...@gmail.com wrote:
 Hello all,

 Does anyone have experience running a Wicket app in a memory
 constrained server? It's going to be Ubuntu minimal, Wicket and H2
 embedded database on a Linode (360 MB ram, $20/month).

 Can I get even 1 req/s from that setup?

 Thanks!
 Jaime

 -
 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: will it work in a Linode?

2009-02-27 Thread jbarciela jbarciela
Yes I know, it all depends :)

But imagine two questions:
 - Can you run a LAMP stack on that hardware? = yes
 - Can you run BEA Weblogic ? = no, I don't think so, I wouldn't even
try it and I wouldn't recommend anyone to waste time like that.

On the other hand can you run Seam/JBoss ? I'm not sure, I would ask
first if somebody has done it.

All I'm hoping to get is anecdotal evidence that it is possible at
all, because someone has done it.

Thanks Jeremy!
Jaime



On Sat, Feb 28, 2009 at 12:35 AM, Jeremy Thomerson
jer...@wickettraining.com wrote:
 Impossible question to answer given your details.

 Don't hold big objects, and especially not collections in session, do your 
 database right, etc, etc, sure - you could get tons of r/s.  But we don't 
 know if every request generates 78 queries to your DB.  If so, plan on your 
 app dying a slow painful death.

 Jeremy Thomerson
 http://www.wickettraining.com
 -- sent from a wireless device


 -Original Message-
 From: jbarciela jbarciela jbarci...@gmail.com
 Sent: Friday, February 27, 2009 11:08 PM
 To: users@wicket.apache.org
 Subject: will it work in a Linode?

 Hello all,

 Does anyone have experience running a Wicket app in a memory
 constrained server? It's going to be Ubuntu minimal, Wicket and H2
 embedded database on a Linode (360 MB ram, $20/month).

 Can I get even 1 req/s from that setup?

 Thanks!
 Jaime

 -
 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