Re: Javascript Compression not working.

2010-04-08 Thread Alex Objelean

Wro is responsible for resource cashing. That means that all requests for
merged resource will be served with the same response. If you need something
dynamic, like theming .. you should serve those outside of wro request. You
can split your resources in two: 
1) Static unchanged resources (to be served by wro filter)
2) Dynamic, theme dependent resources - served by stream locator

Hope this helps!
Alex


AppleGrew wrote:
 
 Hi Alex n All,
 
 I managed to get this working. It was failing because of missing Apache
 Commons IO. Now I am stuck at another place. JS are fine, but the CSS
 files
 are chosen as per user's theme. When I was serving the CSS files via my
 stream locator, it picked up the correct file based on the theme name. Now
 since the WRO filter is before Wicket filter there seems to be no way to
 send this information to it.
 
 Note to achieve themability in my app, I have put the files in WEB-INF.
 Htmls, CSS and images are segregated into folders with theme's name. My
 stream locator fetches the correct Html and CSS based on theme name.
 
 Any suggestions how can I achieve this using WRO or can I integrate
 WRO-like
 minification of JS and CSS right into Wicket?
 
 Regards,
 Apple Grew
 my blog @ http://blog.applegrew.com/
 
 
 On Wed, Apr 7, 2010 at 10:21 PM, Alex Objelean
 alex_objel...@yahoo.comwrote:
 

 Actually you don't have to access the resources. The wro filter  just
 handles
 the request for static resources, there no wicket specific integration.
 All
 you have to do, is to define the location of your resources in wro.xml
 (group descriptor). The location of resources can be virtually anything:
 external url, relative to servlet context, classpath or file resources
 (http://code.google.com/p/wro4j/wiki/ResourceTypes).

 I pretty sure there is no way to 'ask' wicket to gzip and minimize
 external
 resources, because wicket doesn't control them.

 Alex


 AppleGrew wrote:
 
  Checked it out. This is good, but I am not sure how to integrate this
 with
  Wicket. Currently it seems that WRO's url is being override by
  WicketFilter,
  so I am not being able to access WRO resources.
 
  BTW going back to original problem. I tired to debug the Wicket code
 and
  it
  seems for shared resources the SharedResourceRequestTraget simply
 invokes
  PackageResource, while for non globally shared resources
  JavascriptPackageResource is invoked. JavascriptPackageResource  seems
 to
  be
  responsible for gzipping and minizing JS code. Not sure how do I 'ask'
  Wicket to do the same for globally resources.
 
  Regards,
  Apple Grew
  my blog @ http://blog.applegrew.com/
 
 
  On Wed, Apr 7, 2010 at 8:20 PM, Alex Objelean
  alex_objel...@yahoo.comwrote:
 
 
  You could take a look at wro4j: http://code.google.com/p/wro4j/ . It
  helps
  you keep you javascripts (and css) organized in a single location,
 merge
  and
  minimize them. It is also very easy configurable
  (http://code.google.com/p/wro4j/wiki/GettingStarted) and extensible
  (allow
  provide your own implementation of js or css minification algorithm).
  Also
  it provides a maven plugin (
  http://code.google.com/p/wro4j/wiki/MavenPlugin)
  for build time merging and minification. You can see a complete list
 of
  features here: http://code.google.com/p/wro4j/wiki/Features
 
  Alex
 
 
  AppleGrew wrote:
  
   Hi All,
  
   I have put all my JS files in WEB-INF. To let Wicket find them I
 have
   created my own ResourceStreamLocator. The locator on getting class
  scope
   as
   Application simply locates the JS files from 'WEB-INF/js'. The
 problem
  is
   how do I enable Wicket's built-in Javascript compression?
  
   I tried the following code with a form:-
  
 
 add(JavascriptPackageResource.getHeaderContribution(ApplicationCore.class,
   js/form.js));
  
   I can still see the white spaces in the JS code when I try to access
  them
   from my browser. Pls guide.
  
   Regards,
   Apple Grew
   my blog @ http://blog.applegrew.com/
  
  
 
  --
  View this message in context:
 
 http://old.nabble.com/Javascript-Compression-not-working.-tp28164115p28166133.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
 
 
 
 

 --
 View this message in context:
 http://old.nabble.com/Javascript-Compression-not-working.-tp28164115p28167755.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


 
 

-- 
View this message in context: 
http://old.nabble.com/Javascript-Compression-not-working.-tp28164115p28174756.html
Sent from the Wicket - User mailing list archive at Nabble.com.



Wicket And GAE

2010-04-08 Thread Josh Kamau
What are the main issues with wicket and Google app engine


Re: Speaking about Wicket

2010-04-08 Thread nino martinez wael
I have some materials here

http://svn2.assembla.com/svn/wicketBaisc/trunk/wicketBasic

The idea are to build a simple blog application while doing the talk,
you can find the end application there aswell.


2010/4/6 Andrew Williams a...@handyande.co.uk:
 Hi guys,

 I am organising a talk on Wicket at the end of April for the Java User Group 
 Scotland.
 We expect about 20 people for our meeting in Edinburgh and are comparing the 
 framework to GWT which was presented last month.

 I am posting to the list because I was wondering if anyone was in the area 
 and would be happy to come and speak.
 If not I would still be interested in any useful material or tips for such a 
 topic.

 Many thanks in advance for any responses,
 Andrew Williams
 Java User Group Scotland
 -
 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 happens after browser's 'back' button?

2010-04-08 Thread Johan Compagner
yes we didnt do that by default because it is quite annoying behavior
Back button should be quick and shouldnt load it from the server again at
least not by default.

You can configure it for you application the way you like. But for many
others back should really be browser cache back.


On Wed, Apr 7, 2010 at 22:09, Joseph Pachod josephpac...@thomas-daily.dewrote:

 Regarding the commented out no-store, any idea why the wicket core
 developers didn't used it directly ? Having a consistent behavior across
 browser + ajax and back button working seem rather good. I wonder why it
 isn't included currently.

 joseph

  _

 From: Craig McIlwee [mailto:craig.mcil...@openroadsconsulting.com]

   protected void setHeaders(WebResponse response)
   {
response.setHeader(Pragma, no-cache);
response.setHeader(Cache-Control, no-cache, max-age=0,
 must-revalidate); // no-store
   }

  The // no-store is actually there.  Overriding it with

   protected void setHeaders(WebResponse response)
   {
response.setHeader(Pragma, no-cache);
response.setHeader(Cache-Control, no-cache, max-age=0,
 must-revalidate, no-store);
   }

  Will cause firefox to make a trip to the server when back button is
 pressed.  In my experience this is required for AJAX  the back button,
 otherwise wicket won't know that the user hit back and will ignore AJAX
 requests because they are being executed against a page that (as far as
 wicket knows) is not the active page.

  Craig

  -Original Message-
  From: James Carman [mailto:jcar...@carmanconsulting.com]
  Sent: Tuesday, April 06, 2010 8:56 AM
  To: users@wicket.apache.org
  Subject: Re: What happens after browser's 'back' button?

  On Tue, Apr 6, 2010 at 8:07 AM, McIlwee, Craig
   craig.mcil...@openroadsconsulting.com wrote:
   As long as you prevent the browser from caching the page with the form
 (just the page itself, caching the resources is fine) then when the user
 hits back wicket will pull the old page instance from the pagemap and
 rerender it.  That page instance is the same one that was used the first
 time, so its state will still be the same.  Just set some flag when the user
 submits, and also check that flag when processing the form like this:
  

   Not exactly.  How would Wicket know to pull the old page instance if
  the browser is re-requesting a bookmarkable URL?  It wouldn't.  It
  would just reconstruct the page from scratch.  In fact, Firefox
  doesn't re-request anything from Wicket when you click the back button
  (at least it doesn't in my app when IE does, go figure).  The way
  Wicket keeps everything in synch is that each URL in your rendered
  page (for forms, links, etc.) has information on it that points to a
  specific page in the page map (that's what all the ?wicket:interface
  stuff is).  So, when a form is submitted or a link (non-bookmarkable)
  is clicked on your page, Wicket will load the specific page instance
  from the page map and invoke the request on that.

  -
   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





Mounting link

2010-04-08 Thread Mathias Nilsson
Hi,
I have this link
public class PdfLink extends LinkVoid {
 private static final long serialVersionUID = 1L;
 private FileResource resource;

 public PdfLink(String id, FileResource resource ) {
  super(id);
  this.resource = resource;
  if( resource == null ){
  setVisible( false );
  }
 }

 public void onClick() {
  IResourceStream resourceStream = new FileResourceStream( new
File(resource.getFile()) );
  getRequestCycle().setRequestTarget(
  new ResourceStreamRequestTarget(resourceStream) {
  public String getFileName() {
  return ( resource.getName() );
  }
  });
 }
}

How can I mount it to a nicer url?


Wicket and Guice / legup / warp persist?

2010-04-08 Thread nino martinez wael
Hi

I revived my old wicket talk yesterday and since we are using guice at
the company where Im at now the people attending the talk wanted to
see my examples in guice / wicket instead of spring / wicket. So I
used the legup archetype. Which worked nicely until I did a ldm which
I had to inject a dao into. With spring I would add the ldm to the
component instantiation listener, but if I do it the spring way
(InjectorHolder.getInjector().inject(this);) I get this error:

WicketMessage: Can't instantiate page using constructor public
com.netdesign.blog.ViewPostPage(org.apache.wicket.PageParameters) and
argument postid = [3]

Root cause:

java.lang.IllegalStateException: InjectorHolder has not been assigned
an injector. Use InjectorHolder.setInjector() to assign an injector.
In most cases this should be done once inside SpringWebApplication
subclass's init() method.
at 
org.apache.wicket.injection.web.InjectorHolder.getInjector(InjectorHolder.java:70)

Now there are several things I wonder about, first of all, why are
spring mentioned at all? Does wicket package DI specific classes in a
common distribution, and if so should'nt it be called something
specific towards the targetet DI framework. And second and more
important how can I achieve the same thing with guice? Or this could
also be a bug with legup or something. But I actually checked the
init method and  InjectorHolder.setInjector does not take the guice
component injector as argument.



regards Nino

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



Re: Wicket And GAE

2010-04-08 Thread nino martinez wael
Hi

Not a very describing mail. But AFAIK, and my knowledge are rather
limited you need to switch the session store. And then GAE has a
couple of restrictions for java that you need to comply with. It's not
so much Wicket and GAE, but JAVA and GAE that have issues.. Other than
that search with google for Wicket and GAE, theres a couple of
tutorials out there.

regards Nino

2010/4/8 Josh Kamau joshnet2...@gmail.com:
 What are the main issues with wicket and Google app engine


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



Re: Wicket and Guice / legup / warp persist?

2010-04-08 Thread Cemal Bayramoglu
Nino,


It looks like the message you are getting is misleading; probably the
refactoring out of the Wicket IOC module (which both Wicket's Guice
and Spring modules sit on top of now) missed changing that exception's
text.

InjectorHolder has not been assigned is caused by Wicket's Guice
integration not setting it the way Spring does.

(((Application.get()).getMetaData(GuiceInjectorHolder.INJECTOR_KEY)).getInjector().injectMembers(this);
would probably be the right Guice equivalent of your
InjectorHolder.getInjector().inject(this);

If you have taken copies of the LegUp's [1] make sure you are using
the latest version.

If one of us finds more time later and you're still having a problem
(please let us know), we can debug the Wicket code and submit a patch,
or it may be that the Guice integration just isn't supposed to work
exactly like the Wicket Spring integration yet t (Igor?) but I haven't
had a chance to take a good look through Jira yet, but it may be
covered already in a related issue [2].

Then, we should also see how the JEE contrib (and James' stuff for CDI
etc) works to keep things consistent across the board for people using
IOC with Wicket.

Regards - Cemal
jWeekend
OO  Java Technologies, Wicket
Consulting, Development, Training
http://jWeekend.com

[1] http://jweekend.com/dev/LegUp
[2] http://issues.apache.org/jira/browse/WICKET-1143


On 8 April 2010 10:08, nino martinez wael nino.martinez.w...@gmail.com wrote:
 Hi

 I revived my old wicket talk yesterday and since we are using guice at
 the company where Im at now the people attending the talk wanted to
 see my examples in guice / wicket instead of spring / wicket. So I
 used the legup archetype. Which worked nicely until I did a ldm which
 I had to inject a dao into. With spring I would add the ldm to the
 component instantiation listener, but if I do it the spring way
 (InjectorHolder.getInjector().inject(this);) I get this error:

 WicketMessage: Can't instantiate page using constructor public
 com.netdesign.blog.ViewPostPage(org.apache.wicket.PageParameters) and
 argument postid = [3]

 Root cause:

 java.lang.IllegalStateException: InjectorHolder has not been assigned
 an injector. Use InjectorHolder.setInjector() to assign an injector.
 In most cases this should be done once inside SpringWebApplication
 subclass's init() method.
 at 
 org.apache.wicket.injection.web.InjectorHolder.getInjector(InjectorHolder.java:70)

 Now there are several things I wonder about, first of all, why are
 spring mentioned at all? Does wicket package DI specific classes in a
 common distribution, and if so should'nt it be called something
 specific towards the targetet DI framework. And second and more
 important how can I achieve the same thing with guice? Or this could
 also be a bug with legup or something. But I actually checked the
 init method and  InjectorHolder.setInjector does not take the guice
 component injector as argument.



 regards Nino

 -
 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: automatic palette sorting

2010-04-08 Thread PDiefent

Hi Robert,
how did you call the new function. My IE always runs on error if I try to
call the sort function ...
Thanks, Peter


robert.mcguinness wrote:
 
 in palette.js include the following function and call in
 Wicket.Palette.updateRecorder and Wicket.Palette.remove
 
 

-- 
View this message in context: 
http://old.nabble.com/automatic-palette-sorting-tp28096974p28177326.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 and Guice / legup / warp persist?

2010-04-08 Thread nino martinez wael
Thanks for the reply Cemal.

Writing inline..

2010/4/8 Cemal Bayramoglu jweekend_for...@cabouge.com:
 Nino,


 It looks like the message you are getting is misleading; probably the
 refactoring out of the Wicket IOC module (which both Wicket's Guice
 and Spring modules sit on top of now) missed changing that exception's
 text.
Yeah..

 InjectorHolder has not been assigned is caused by Wicket's Guice
 integration not setting it the way Spring does.

Im wondering why this is not the same, I guess following DI principles
it should not matter which DI framework you used around your
application. So having different implementations for Guice and Spring
on the user side is bad.

 (((Application.get()).getMetaData(GuiceInjectorHolder.INJECTOR_KEY)).getInjector().injectMembers(this);
 would probably be the right Guice equivalent of your
 InjectorHolder.getInjector().inject(this);

 If you have taken copies of the LegUp's [1] make sure you are using
 the latest version.
I believe so, but it was only for educational purposes. So if I have
the need again later i'll come back for a new archetype :)

 If one of us finds more time later and you're still having a problem
 (please let us know), we can debug the Wicket code and submit a patch,
 or it may be that the Guice integration just isn't supposed to work
 exactly like the Wicket Spring integration yet t (Igor?) but I haven't
 had a chance to take a good look through Jira yet, but it may be
 covered already in a related issue [2].

Yes indeed it seems to be very related.


 Then, we should also see how the JEE contrib (and James' stuff for CDI
 etc) works to keep things consistent across the board for people using
 IOC with Wicket.

Sounds like the right thing.

 Regards - Cemal
 jWeekend
 OO  Java Technologies, Wicket
 Consulting, Development, Training
 http://jWeekend.com

 [1] http://jweekend.com/dev/LegUp
 [2] http://issues.apache.org/jira/browse/WICKET-1143


 On 8 April 2010 10:08, nino martinez wael nino.martinez.w...@gmail.com 
 wrote:
 Hi

 I revived my old wicket talk yesterday and since we are using guice at
 the company where Im at now the people attending the talk wanted to
 see my examples in guice / wicket instead of spring / wicket. So I
 used the legup archetype. Which worked nicely until I did a ldm which
 I had to inject a dao into. With spring I would add the ldm to the
 component instantiation listener, but if I do it the spring way
 (InjectorHolder.getInjector().inject(this);) I get this error:

 WicketMessage: Can't instantiate page using constructor public
 com.netdesign.blog.ViewPostPage(org.apache.wicket.PageParameters) and
 argument postid = [3]

 Root cause:

 java.lang.IllegalStateException: InjectorHolder has not been assigned
 an injector. Use InjectorHolder.setInjector() to assign an injector.
 In most cases this should be done once inside SpringWebApplication
 subclass's init() method.
 at 
 org.apache.wicket.injection.web.InjectorHolder.getInjector(InjectorHolder.java:70)

 Now there are several things I wonder about, first of all, why are
 spring mentioned at all? Does wicket package DI specific classes in a
 common distribution, and if so should'nt it be called something
 specific towards the targetet DI framework. And second and more
 important how can I achieve the same thing with guice? Or this could
 also be a bug with legup or something. But I actually checked the
 init method and  InjectorHolder.setInjector does not take the guice
 component injector as argument.



 regards Nino

 -
 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 and Guice / legup / warp persist?

2010-04-08 Thread Martin Grigorov
The ticket for this is https://issues.apache.org/jira/browse/WICKET-2761
The fix is applied to 1.4.x at 13/03 by Juergen.
1.4.7 was released at 03/03.

So, it will be included in next release - probably 1.4.8. 

On Thu, 2010-04-08 at 11:08 +0200, nino martinez wael wrote:
 Hi
 
 I revived my old wicket talk yesterday and since we are using guice at
 the company where Im at now the people attending the talk wanted to
 see my examples in guice / wicket instead of spring / wicket. So I
 used the legup archetype. Which worked nicely until I did a ldm which
 I had to inject a dao into. With spring I would add the ldm to the
 component instantiation listener, but if I do it the spring way
 (InjectorHolder.getInjector().inject(this);) I get this error:
 
 WicketMessage: Can't instantiate page using constructor public
 com.netdesign.blog.ViewPostPage(org.apache.wicket.PageParameters) and
 argument postid = [3]
 
 Root cause:
 
 java.lang.IllegalStateException: InjectorHolder has not been assigned
 an injector. Use InjectorHolder.setInjector() to assign an injector.
 In most cases this should be done once inside SpringWebApplication
 subclass's init() method.
 at 
 org.apache.wicket.injection.web.InjectorHolder.getInjector(InjectorHolder.java:70)
 
 Now there are several things I wonder about, first of all, why are
 spring mentioned at all? Does wicket package DI specific classes in a
 common distribution, and if so should'nt it be called something
 specific towards the targetet DI framework. And second and more
 important how can I achieve the same thing with guice? Or this could
 also be a bug with legup or something. But I actually checked the
 init method and  InjectorHolder.setInjector does not take the guice
 component injector as argument.
 
 
 
 regards Nino
 
 -
 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 and Guice / legup / warp persist?

2010-04-08 Thread nino martinez wael
Ahh typical :) And thanks for the update.

2010/4/8 Martin Grigorov mcgreg...@e-card.bg:
 The ticket for this is https://issues.apache.org/jira/browse/WICKET-2761
 The fix is applied to 1.4.x at 13/03 by Juergen.
 1.4.7 was released at 03/03.

 So, it will be included in next release - probably 1.4.8.

 On Thu, 2010-04-08 at 11:08 +0200, nino martinez wael wrote:
 Hi

 I revived my old wicket talk yesterday and since we are using guice at
 the company where Im at now the people attending the talk wanted to
 see my examples in guice / wicket instead of spring / wicket. So I
 used the legup archetype. Which worked nicely until I did a ldm which
 I had to inject a dao into. With spring I would add the ldm to the
 component instantiation listener, but if I do it the spring way
 (InjectorHolder.getInjector().inject(this);) I get this error:

 WicketMessage: Can't instantiate page using constructor public
 com.netdesign.blog.ViewPostPage(org.apache.wicket.PageParameters) and
 argument postid = [3]

 Root cause:

 java.lang.IllegalStateException: InjectorHolder has not been assigned
 an injector. Use InjectorHolder.setInjector() to assign an injector.
 In most cases this should be done once inside SpringWebApplication
 subclass's init() method.
 at 
 org.apache.wicket.injection.web.InjectorHolder.getInjector(InjectorHolder.java:70)

 Now there are several things I wonder about, first of all, why are
 spring mentioned at all? Does wicket package DI specific classes in a
 common distribution, and if so should'nt it be called something
 specific towards the targetet DI framework. And second and more
 important how can I achieve the same thing with guice? Or this could
 also be a bug with legup or something. But I actually checked the
 init method and  InjectorHolder.setInjector does not take the guice
 component injector as argument.



 regards Nino

 -
 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



Ajax page mounting and panels

2010-04-08 Thread Mathias Nilsson
Hi,
My Webapplication is made up of one page that uses ajax to replace panels.
Now I would like to have som mounting and set some panels by the
mountingpath. Can anyone give me some pointers?
RootPage( RequestParameters params ){
  // Parse the params and set some panels
}
mount( /order ) // This should set some order panel. like
http://localhost:8080/myapp/order?id=34234reference=12341234-dasfdsa-2341324-asdfsa
I would like this mount to go to the RootPage and let me parse the
parameters. Is this possible?


IE6 issue regarding Wicket JS and Ajax

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



Re: IE6 issue regarding Wicket JS and Ajax

2010-04-08 Thread Martijn Dashorst
IE6's not pinin,' it's passed on! This browser is no more! It has
ceased to be! It's expired and gone to meet its maker! This is a late
browser! It's a stiff! Bereft of life, it rests in peace! If you
hadn't nailed him to the perch he would be pushing up the daisies! Its
metabolical processes are of interest only to historians! It's hopped
the twig! It's shuffled off this mortal coil! It's run down the
curtain and joined the choir invisible! This is an EX-BROWSER!

http://ie6funeral.com

Martijn

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





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

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



Re: What happens after browser's 'back' button?

2010-04-08 Thread Sergey Olefir

Any suggestions as to where I should start looking (source code or otherwise)
to understand how Wicket actually handles back button?
-- 
View this message in context: 
http://old.nabble.com/What-happens-after-browser%27s-%27back%27-button--tp28149886p28179655.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: IE6 issue regarding Wicket JS and Ajax

2010-04-08 Thread T Ames
Sadly in the corporate world these things move  very, very slowly.  We have
vendor apps that require IE6 so we are at their mercy.

Anyways, we use IE6 and DatePicker is working although I don't think I have
tried in on a ModalWindow.



On Thu, Apr 8, 2010 at 10:23 AM, Martijn Dashorst 
martijn.dasho...@gmail.com wrote:

 IE6's not pinin,' it's passed on! This browser is no more! It has
 ceased to be! It's expired and gone to meet its maker! This is a late
 browser! It's a stiff! Bereft of life, it rests in peace! If you
 hadn't nailed him to the perch he would be pushing up the daisies! Its
 metabolical processes are of interest only to historians! It's hopped
 the twig! It's shuffled off this mortal coil! It's run down the
 curtain and joined the choir invisible! This is an EX-BROWSER!

 http://ie6funeral.com

 Martijn

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



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

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




RE: IE6 issue regarding Wicket JS and Ajax

2010-04-08 Thread Martin Asenov
Hi, T Ames!

The datepicker is not in a modal window, but in a page. I was saying that when 
a modal window is closed, the mask it creates is never removed. Anyway, we'll 
probably not support IE6

Best,
Martin

Martin Asenov | Software Developer
Velti
Mob: +359.89.986.6745 | Tel: +359.2.933.5541 | Fax: +359.2.933.5502
Email: mase...@velti.com | Web: www.velti.com
Velti is a global leader in the provision of mobile marketing solutions and 
value added services for mobile
operators, ad agencies, brands, and media groups.
London | New York | San Francisco | Boston | Athens | Madrid | Sofia | Nicosia 
| Moscow | Dubai | 

New Delhi | Mumbai | Beijing | Shanghai


-Original Message-
From: T Ames [mailto:tamesw...@gmail.com] 
Sent: Thursday, April 08, 2010 6:03 PM
To: users@wicket.apache.org
Subject: Re: IE6 issue regarding Wicket JS and Ajax

Sadly in the corporate world these things move  very, very slowly.  We have
vendor apps that require IE6 so we are at their mercy.

Anyways, we use IE6 and DatePicker is working although I don't think I have
tried in on a ModalWindow.



On Thu, Apr 8, 2010 at 10:23 AM, Martijn Dashorst 
martijn.dasho...@gmail.com wrote:

 IE6's not pinin,' it's passed on! This browser is no more! It has
 ceased to be! It's expired and gone to meet its maker! This is a late
 browser! It's a stiff! Bereft of life, it rests in peace! If you
 hadn't nailed him to the perch he would be pushing up the daisies! Its
 metabolical processes are of interest only to historians! It's hopped
 the twig! It's shuffled off this mortal coil! It's run down the
 curtain and joined the choir invisible! This is an EX-BROWSER!

 http://ie6funeral.com

 Martijn

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



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

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



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



Re: IE6 issue regarding Wicket JS and Ajax

2010-04-08 Thread T Ames
Hmmm, curious.  Not sure what you mean exactly by the mask, but on one of my
apps, there are three date pickers in a Panel.  This also has a ModalWindow
that pops up over that panel.  I just tried it and do not experience any
problems.  I even left the DatePicker calendar open and then opened and
closed the modal.

On Thu, Apr 8, 2010 at 11:06 AM, Martin Asenov mase...@velti.com wrote:

 Hi, T Ames!

 The datepicker is not in a modal window, but in a page. I was saying that
 when a modal window is closed, the mask it creates is never removed. Anyway,
 we'll probably not support IE6

 Best,
 Martin

 Martin Asenov | Software Developer
 Velti
 Mob: +359.89.986.6745 | Tel: +359.2.933.5541 | Fax: +359.2.933.5502
 Email: mase...@velti.com | Web: www.velti.com
 Velti is a global leader in the provision of mobile marketing solutions and
 value added services for mobile
 operators, ad agencies, brands, and media groups.
 London | New York | San Francisco | Boston | Athens | Madrid | Sofia |
 Nicosia | Moscow | Dubai |

 New Delhi | Mumbai | Beijing | Shanghai


 -Original Message-
 From: T Ames [mailto:tamesw...@gmail.com]
 Sent: Thursday, April 08, 2010 6:03 PM
 To: users@wicket.apache.org
 Subject: Re: IE6 issue regarding Wicket JS and Ajax

 Sadly in the corporate world these things move  very, very slowly.  We have
 vendor apps that require IE6 so we are at their mercy.

 Anyways, we use IE6 and DatePicker is working although I don't think I have
 tried in on a ModalWindow.



 On Thu, Apr 8, 2010 at 10:23 AM, Martijn Dashorst 
 martijn.dasho...@gmail.com wrote:

  IE6's not pinin,' it's passed on! This browser is no more! It has
  ceased to be! It's expired and gone to meet its maker! This is a late
  browser! It's a stiff! Bereft of life, it rests in peace! If you
  hadn't nailed him to the perch he would be pushing up the daisies! Its
  metabolical processes are of interest only to historians! It's hopped
  the twig! It's shuffled off this mortal coil! It's run down the
  curtain and joined the choir invisible! This is an EX-BROWSER!
 
  http://ie6funeral.com
 
  Martijn
 
  On Thu, Apr 8, 2010 at 4:17 PM, Martin Asenov mase...@velti.com wrote:
   Hello, everyone!
   I just noticed that my DatePicker doesn't work in IE6 - it doesn't even
  get displayed on mouse click. Also, when I close a modal window, the mask
  isn't hidden and the underlying page is not intractable, so I'm forced to
  refresh the whole page.
   Also, ajax components update cause some screen flickering and
 misplacing
  some components (images, dropdown choices, etc.)
   All problems occur in IE6.
   Any ideas?
   Best,
  
  
 
 
 
  --
  Become a Wicket expert, learn from the best: http://wicketinaction.com
  Apache Wicket 1.4 increases type safety for web applications
  Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.4.4
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 

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




Re: Wicket GAE performance

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

-- Tony

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


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

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

 See:

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

 Glad to find other GAE/Wicket users!

 Jake


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

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


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




JavaOne in San Francisco

2010-04-08 Thread Steve Hiller
The economy must be improving  -- my employer is sending me to JavaOne this 
year :-)
Will there be any Wicket events at JavaOne?


wicket redirecting to relative URLs

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

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

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

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

thanks

-nikita


Re: Javascript Compression not working.

2010-04-08 Thread Apple Grew
Hi alex
Thanks for the respose.
I have thought of a scheme. I have clubed the css into groups with
names as - themeName-all.css, eg. Classic-all.css, jazzy-all.css, etc.
I will make sure wicket put correct css name in htmls.
Can anyone point me as how to extend wiket:link tag or creat my own tag.

On 4/8/10, Alex Objelean alex_objel...@yahoo.com wrote:

 Wro is responsible for resource cashing. That means that all requests for
 merged resource will be served with the same response. If you need something
 dynamic, like theming .. you should serve those outside of wro request. You
 can split your resources in two:
 1) Static unchanged resources (to be served by wro filter)
 2) Dynamic, theme dependent resources - served by stream locator

 Hope this helps!
 Alex


 AppleGrew wrote:

 Hi Alex n All,

 I managed to get this working. It was failing because of missing Apache
 Commons IO. Now I am stuck at another place. JS are fine, but the CSS
 files
 are chosen as per user's theme. When I was serving the CSS files via my
 stream locator, it picked up the correct file based on the theme name. Now
 since the WRO filter is before Wicket filter there seems to be no way to
 send this information to it.

 Note to achieve themability in my app, I have put the files in WEB-INF.
 Htmls, CSS and images are segregated into folders with theme's name. My
 stream locator fetches the correct Html and CSS based on theme name.

 Any suggestions how can I achieve this using WRO or can I integrate
 WRO-like
 minification of JS and CSS right into Wicket?

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


 On Wed, Apr 7, 2010 at 10:21 PM, Alex Objelean
 alex_objel...@yahoo.comwrote:


 Actually you don't have to access the resources. The wro filter  just
 handles
 the request for static resources, there no wicket specific integration.
 All
 you have to do, is to define the location of your resources in wro.xml
 (group descriptor). The location of resources can be virtually anything:
 external url, relative to servlet context, classpath or file resources
 (http://code.google.com/p/wro4j/wiki/ResourceTypes).

 I pretty sure there is no way to 'ask' wicket to gzip and minimize
 external
 resources, because wicket doesn't control them.

 Alex


 AppleGrew wrote:
 
  Checked it out. This is good, but I am not sure how to integrate this
 with
  Wicket. Currently it seems that WRO's url is being override by
  WicketFilter,
  so I am not being able to access WRO resources.
 
  BTW going back to original problem. I tired to debug the Wicket code
 and
  it
  seems for shared resources the SharedResourceRequestTraget simply
 invokes
  PackageResource, while for non globally shared resources
  JavascriptPackageResource is invoked. JavascriptPackageResource  seems
 to
  be
  responsible for gzipping and minizing JS code. Not sure how do I 'ask'
  Wicket to do the same for globally resources.
 
  Regards,
  Apple Grew
  my blog @ http://blog.applegrew.com/
 
 
  On Wed, Apr 7, 2010 at 8:20 PM, Alex Objelean
  alex_objel...@yahoo.comwrote:
 
 
  You could take a look at wro4j: http://code.google.com/p/wro4j/ . It
  helps
  you keep you javascripts (and css) organized in a single location,
 merge
  and
  minimize them. It is also very easy configurable
  (http://code.google.com/p/wro4j/wiki/GettingStarted) and extensible
  (allow
  provide your own implementation of js or css minification algorithm).
  Also
  it provides a maven plugin (
  http://code.google.com/p/wro4j/wiki/MavenPlugin)
  for build time merging and minification. You can see a complete list
 of
  features here: http://code.google.com/p/wro4j/wiki/Features
 
  Alex
 
 
  AppleGrew wrote:
  
   Hi All,
  
   I have put all my JS files in WEB-INF. To let Wicket find them I
 have
   created my own ResourceStreamLocator. The locator on getting class
  scope
   as
   Application simply locates the JS files from 'WEB-INF/js'. The
 problem
  is
   how do I enable Wicket's built-in Javascript compression?
  
   I tried the following code with a form:-
  
 
 add(JavascriptPackageResource.getHeaderContribution(ApplicationCore.class,
   js/form.js));
  
   I can still see the white spaces in the JS code when I try to access
  them
   from my browser. Pls guide.
  
   Regards,
   Apple Grew
   my blog @ http://blog.applegrew.com/
  
  
 
  --
  View this message in context:
 
 http://old.nabble.com/Javascript-Compression-not-working.-tp28164115p28166133.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
 
 
 
 

 --
 View this message in context:
 http://old.nabble.com/Javascript-Compression-not-working.-tp28164115p28167755.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


 

wicket datetime and opera

2010-04-08 Thread Mathias Nilsson
The
org.apache.wicket.datetime.markup.html.form.DateTextField.forDatePattern(
id , -MM-dd ); is not working on Opera 9.64
Tested in IE7, Firefox, Google chrome and ot works but not in opera
This is tested with org.apache.wicket.extensions.yui.calendar.DatePicker
Have tested different 1.4.x wicket releases.
/ Mathias


Re: Javascript Compression not working.

2010-04-08 Thread Alex Objelean

I wouldn't recommend creating a wicket tag for this. That is exactly what
wicket doesn't encourage to do. An alternative could be a simple servlet
which forwards to wanted resource based on theme parameter...

Alex 


AppleGrew wrote:
 
 Hi alex
 Thanks for the respose.
 I have thought of a scheme. I have clubed the css into groups with
 names as - themeName-all.css, eg. Classic-all.css, jazzy-all.css, etc.
 I will make sure wicket put correct css name in htmls.
 Can anyone point me as how to extend wiket:link tag or creat my own tag.
 
 On 4/8/10, Alex Objelean alex_objel...@yahoo.com wrote:

 Wro is responsible for resource cashing. That means that all requests for
 merged resource will be served with the same response. If you need
 something
 dynamic, like theming .. you should serve those outside of wro request.
 You
 can split your resources in two:
 1) Static unchanged resources (to be served by wro filter)
 2) Dynamic, theme dependent resources - served by stream locator

 Hope this helps!
 Alex


 AppleGrew wrote:

 Hi Alex n All,

 I managed to get this working. It was failing because of missing Apache
 Commons IO. Now I am stuck at another place. JS are fine, but the CSS
 files
 are chosen as per user's theme. When I was serving the CSS files via my
 stream locator, it picked up the correct file based on the theme name.
 Now
 since the WRO filter is before Wicket filter there seems to be no way to
 send this information to it.

 Note to achieve themability in my app, I have put the files in WEB-INF.
 Htmls, CSS and images are segregated into folders with theme's name. My
 stream locator fetches the correct Html and CSS based on theme name.

 Any suggestions how can I achieve this using WRO or can I integrate
 WRO-like
 minification of JS and CSS right into Wicket?

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


 On Wed, Apr 7, 2010 at 10:21 PM, Alex Objelean
 alex_objel...@yahoo.comwrote:


 Actually you don't have to access the resources. The wro filter  just
 handles
 the request for static resources, there no wicket specific integration.
 All
 you have to do, is to define the location of your resources in wro.xml
 (group descriptor). The location of resources can be virtually
 anything:
 external url, relative to servlet context, classpath or file resources
 (http://code.google.com/p/wro4j/wiki/ResourceTypes).

 I pretty sure there is no way to 'ask' wicket to gzip and minimize
 external
 resources, because wicket doesn't control them.

 Alex


 AppleGrew wrote:
 
  Checked it out. This is good, but I am not sure how to integrate this
 with
  Wicket. Currently it seems that WRO's url is being override by
  WicketFilter,
  so I am not being able to access WRO resources.
 
  BTW going back to original problem. I tired to debug the Wicket code
 and
  it
  seems for shared resources the SharedResourceRequestTraget simply
 invokes
  PackageResource, while for non globally shared resources
  JavascriptPackageResource is invoked. JavascriptPackageResource 
 seems
 to
  be
  responsible for gzipping and minizing JS code. Not sure how do I
 'ask'
  Wicket to do the same for globally resources.
 
  Regards,
  Apple Grew
  my blog @ http://blog.applegrew.com/
 
 
  On Wed, Apr 7, 2010 at 8:20 PM, Alex Objelean
  alex_objel...@yahoo.comwrote:
 
 
  You could take a look at wro4j: http://code.google.com/p/wro4j/ . It
  helps
  you keep you javascripts (and css) organized in a single location,
 merge
  and
  minimize them. It is also very easy configurable
  (http://code.google.com/p/wro4j/wiki/GettingStarted) and extensible
  (allow
  provide your own implementation of js or css minification
 algorithm).
  Also
  it provides a maven plugin (
  http://code.google.com/p/wro4j/wiki/MavenPlugin)
  for build time merging and minification. You can see a complete list
 of
  features here: http://code.google.com/p/wro4j/wiki/Features
 
  Alex
 
 
  AppleGrew wrote:
  
   Hi All,
  
   I have put all my JS files in WEB-INF. To let Wicket find them I
 have
   created my own ResourceStreamLocator. The locator on getting class
  scope
   as
   Application simply locates the JS files from 'WEB-INF/js'. The
 problem
  is
   how do I enable Wicket's built-in Javascript compression?
  
   I tried the following code with a form:-
  
 
 add(JavascriptPackageResource.getHeaderContribution(ApplicationCore.class,
   js/form.js));
  
   I can still see the white spaces in the JS code when I try to
 access
  them
   from my browser. Pls guide.
  
   Regards,
   Apple Grew
   my blog @ http://blog.applegrew.com/
  
  
 
  --
  View this message in context:
 
 http://old.nabble.com/Javascript-Compression-not-working.-tp28164115p28166133.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: JavaOne in San Francisco

2010-04-08 Thread Igor Vaynberg
historically we have attempted to submit at least two papers on
wicket, but wicket-related stuff has always been rejected. so we
stopped trying.

-igor

On Thu, Apr 8, 2010 at 8:30 AM, Steve Hiller sh...@bellsouth.net wrote:
 The economy must be improving  -- my employer is sending me to JavaOne this 
 year :-)
 Will there be any Wicket events at JavaOne?


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



Re: JavaOne in San Francisco

2010-04-08 Thread shetc

Bummer! I wonder why -- unless they don't like the competition to JSF
:confused:
-- 
View this message in context: 
http://old.nabble.com/JavaOne-in-San-Francisco-tp28180298p28182020.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: Ajax page mounting and panels

2010-04-08 Thread nino martinez wael
You an always mount that way. Just use the constructor that has page
parameters.. Other than that I dont think theres problems with
multiple mounting towards the same page with different parameters...

You should check this http://wicketstuff.org/wicket14/linkomatic/ and
the pages there and the webapp on mounting.. Theres also an annotation
style project for wicket regarding mounting otherwise it's done in the
wicketapplication (init method).

Personally I don't like the idea of one page that does it all, as it
becomes harder to control state and keep code clean.. But thats just
my style

regards Nino

2010/4/8 Mathias Nilsson wicket.program...@gmail.com:
 Hi,
 My Webapplication is made up of one page that uses ajax to replace panels.
 Now I would like to have som mounting and set some panels by the
 mountingpath. Can anyone give me some pointers?
 RootPage( RequestParameters params ){
  // Parse the params and set some panels
 }
 mount( /order ) // This should set some order panel. like
 http://localhost:8080/myapp/order?id=34234reference=12341234-dasfdsa-2341324-asdfsa
 I would like this mount to go to the RootPage and let me parse the
 parameters. Is this possible?


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



Re: wicket redirecting to relative URLs

2010-04-08 Thread Igor Vaynberg
as far as i know we do not set the Location header directly anywhere
in the code, instead we use HttpServletResponse.sendRedirect() - which
does allow relative urls.

so where are we breaking the RFC?

-igor

On Thu, Apr 8, 2010 at 8:35 AM, Nikita Tovstoles
nikita.tovsto...@gmail.com wrote:
 I am working on a patch to JMeter to rewrite absolute URLs containing '/../'
 before issuing GETs and have an observation and a question. The problem is
 described here:
 http://markmail.org/thread/3ci5hayvqyjhi2ud

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

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

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

 thanks

 -nikita


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



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

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

So, what I do is the following:

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

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


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

   -Tom


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



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

2010-04-08 Thread Fernando Wermus
Does this resolve your problem?

@Override

protected IAjaxCallDecorator getAjaxCallDecorator() {

return new AjaxCallDecorator() {

private static final long serialVersionUID = 1L;

@Override

public CharSequence decorateScript(CharSequence script) {

return YOUR JAVASCRIPT + script;

}

};

}

On Thu, Apr 8, 2010 at 3:43 PM, Thomas Götz t...@richmountain.de wrote:

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

 So, what I do is the following:

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

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


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

   -Tom


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




-- 
Fernando Wermus.

www.linkedin.com/in/fernandowermus


Re: Javascript from panel does not work

2010-04-08 Thread Daniela Valero
I found the solution

In my  class, I declare this attr:

ResourceReference SHORTCUTS_CSS = new
CompressedResourceReference(New_Policy.class,/css/style.css);

ResourceReference SHORTCUTS_JAVASCRIPT = new
CompressedResourceReference(New_Policy.class,/js/jquery-1.3.2.min.js);

ResourceReference SHORTCUTS_JAVASCRIPT2 = new
CompressedResourceReference(New_Policy.class,/js/ToggleHighLigh.js);


Implement the interfaz: IHeaderConstributor

In its method I ask to render my JS and CSS:

@Override
public void renderHead(IHeaderResponse response) {
response.renderCSSReference(SHORTCUTS_CSS);
response.renderJavascriptReference(SHORTCUTS_JAVASCRIPT);
response.renderJavascriptReference(SHORTCUTS_JAVASCRIPT2);
response.renderOnLoadJavascript(alert('page loaded!'););
}

And, that's it!!!


The last problem that I have, is, on my DataView, the items are declared
final, that is the reason because on RunTime, the row does not get
highlighted.

Now I avanced on my app

Thanks for the help every body 



Con eso ya puedo hacer referencia a mis clases felizmente, me funciona el JS
perfectamente, y todo.

Ahora, me di cuenta, que, dentro de mi DataView, no es añadida la clase que
necesito (la que sombrea la fila), porque el item (la fila), en su
populateItem, es trabajado como final (es decir, no modificable) Total
que ahora me toca inventarme una para hacer funcionar esto en mi tabla (es
por ello que cuando apago el servidor si me funciona la cosa en la tabla)

Se hizo la luz!

-- 
| Daniela Valero

No hay vientos favorables para quien no sabe a donde quiere ir!


Re: wicket redirecting to relative URLs

2010-04-08 Thread Nikita Tovstoles
ahh, good point. I was looking at this:

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

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

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


-nikita

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

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

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

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

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

 thanks

 -nikita





Re: Javascript Compression not working.

2010-04-08 Thread Apple Grew
From my Java code I can simply get the actual css name by; wro/ +
MyApplication.getThemeName() + -all.css, but for cases where I would
simply add the url to html's head, I find extending wicket:link more
attractive.


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


On Thu, Apr 8, 2010 at 11:01 PM, Alex Objelean alex_objel...@yahoo.comwrote:


 I wouldn't recommend creating a wicket tag for this. That is exactly what
 wicket doesn't encourage to do. An alternative could be a simple servlet
 which forwards to wanted resource based on theme parameter...

 Alex


 AppleGrew wrote:
 
  Hi alex
  Thanks for the respose.
  I have thought of a scheme. I have clubed the css into groups with
  names as - themeName-all.css, eg. Classic-all.css, jazzy-all.css, etc.
  I will make sure wicket put correct css name in htmls.
  Can anyone point me as how to extend wiket:link tag or creat my own tag.
 
  On 4/8/10, Alex Objelean alex_objel...@yahoo.com wrote:
 
  Wro is responsible for resource cashing. That means that all requests
 for
  merged resource will be served with the same response. If you need
  something
  dynamic, like theming .. you should serve those outside of wro request.
  You
  can split your resources in two:
  1) Static unchanged resources (to be served by wro filter)
  2) Dynamic, theme dependent resources - served by stream locator
 
  Hope this helps!
  Alex
 
 
  AppleGrew wrote:
 
  Hi Alex n All,
 
  I managed to get this working. It was failing because of missing Apache
  Commons IO. Now I am stuck at another place. JS are fine, but the CSS
  files
  are chosen as per user's theme. When I was serving the CSS files via my
  stream locator, it picked up the correct file based on the theme name.
  Now
  since the WRO filter is before Wicket filter there seems to be no way
 to
  send this information to it.
 
  Note to achieve themability in my app, I have put the files in WEB-INF.
  Htmls, CSS and images are segregated into folders with theme's name. My
  stream locator fetches the correct Html and CSS based on theme name.
 
  Any suggestions how can I achieve this using WRO or can I integrate
  WRO-like
  minification of JS and CSS right into Wicket?
 
  Regards,
  Apple Grew
  my blog @ http://blog.applegrew.com/
 
 
  On Wed, Apr 7, 2010 at 10:21 PM, Alex Objelean
  alex_objel...@yahoo.comwrote:
 
 
  Actually you don't have to access the resources. The wro filter  just
  handles
  the request for static resources, there no wicket specific
 integration.
  All
  you have to do, is to define the location of your resources in wro.xml
  (group descriptor). The location of resources can be virtually
  anything:
  external url, relative to servlet context, classpath or file resources
  (http://code.google.com/p/wro4j/wiki/ResourceTypes).
 
  I pretty sure there is no way to 'ask' wicket to gzip and minimize
  external
  resources, because wicket doesn't control them.
 
  Alex
 
 
  AppleGrew wrote:
  
   Checked it out. This is good, but I am not sure how to integrate
 this
  with
   Wicket. Currently it seems that WRO's url is being override by
   WicketFilter,
   so I am not being able to access WRO resources.
  
   BTW going back to original problem. I tired to debug the Wicket code
  and
   it
   seems for shared resources the SharedResourceRequestTraget simply
  invokes
   PackageResource, while for non globally shared resources
   JavascriptPackageResource is invoked. JavascriptPackageResource
  seems
  to
   be
   responsible for gzipping and minizing JS code. Not sure how do I
  'ask'
   Wicket to do the same for globally resources.
  
   Regards,
   Apple Grew
   my blog @ http://blog.applegrew.com/
  
  
   On Wed, Apr 7, 2010 at 8:20 PM, Alex Objelean
   alex_objel...@yahoo.comwrote:
  
  
   You could take a look at wro4j: http://code.google.com/p/wro4j/ .
 It
   helps
   you keep you javascripts (and css) organized in a single location,
  merge
   and
   minimize them. It is also very easy configurable
   (http://code.google.com/p/wro4j/wiki/GettingStarted) and
 extensible
   (allow
   provide your own implementation of js or css minification
  algorithm).
   Also
   it provides a maven plugin (
   http://code.google.com/p/wro4j/wiki/MavenPlugin)
   for build time merging and minification. You can see a complete
 list
  of
   features here: http://code.google.com/p/wro4j/wiki/Features
  
   Alex
  
  
   AppleGrew wrote:
   
Hi All,
   
I have put all my JS files in WEB-INF. To let Wicket find them I
  have
created my own ResourceStreamLocator. The locator on getting
 class
   scope
as
Application simply locates the JS files from 'WEB-INF/js'. The
  problem
   is
how do I enable Wicket's built-in Javascript compression?
   
I tried the following code with a form:-
   
  
 
 add(JavascriptPackageResource.getHeaderContribution(ApplicationCore.class,
js/form.js));
   
I can still see the white spaces in the JS code when I try to
  access
   them

Re: Ajax page mounting and panels

2010-04-08 Thread Mathias Nilsson

I will look in to it.

You are right. I don't like it either. But I couldn't get it to work better
when wanting the menu, header and footer stay fixed without using frames.
-- 
View this message in context: 
http://old.nabble.com/Ajax-page-mounting-and-panels-tp28178937p28184077.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



Recover from session expiration ?

2010-04-08 Thread Boris Goldowsky
I have a wicket website that stores some user choices around how a page is 
displayed in the Session - simple, non-critical information.  It also uses Ajax 
to do things like bring up a zoomed-in version of an image.

The problem is when sessions expire after an hour or so, trying to zoom an 
image or set a display preference causes an Page Expired exception.  Since 
people aren't logging in or anything, and no mission-critical information is 
being stored in the session, I'd prefer to allow a new session to be 
transparently created when necessary rather than showing users a session 
expired page.

Am I missing some easy way around this problem, or do I need to re-build all 
the functionality to use cookies and jQuery instead of wicket forms and ajax?

This thread seems relevant but didn't seem to have a solution: 
http://www.nabble.com/Graceful-handling-of-ajax-after-session-expiration-tf4559480.html

Thanks for any pointers -

Bng


RE: IE6 issue regarding Wicket JS and Ajax

2010-04-08 Thread Russell Morrisey
Amen!

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

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

-Original Message-
From: Martijn Dashorst [mailto:martijn.dasho...@gmail.com]
Sent: Thursday, April 08, 2010 10:23 AM
To: users@wicket.apache.org
Subject: Re: IE6 issue regarding Wicket JS and Ajax

IE6's not pinin,' it's passed on! This browser is no more! It has
ceased to be! It's expired and gone to meet its maker! This is a late
browser! It's a stiff! Bereft of life, it rests in peace! If you
hadn't nailed him to the perch he would be pushing up the daisies! Its
metabolical processes are of interest only to historians! It's hopped
the twig! It's shuffled off this mortal coil! It's run down the
curtain and joined the choir invisible! This is an EX-BROWSER!

http://ie6funeral.com

Martijn

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





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


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

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



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

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

   -Tom


On 08.04.2010 at 20:58 Fernando Wermus wrote:

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


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



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

2010-04-08 Thread Nishant Neeraj
I think you may look into this package
org.apache.wicket.extensions.ajax.markup.html.form.upload where upload
progress-bar is implemented. You may do something like this.

So, probably it sets a resource in session, Java part regularly updates the
string resource. And JS keeps on polling this resource by using the URL to
the resource provided to JS initializer and renders on UI. Anyone can
correct me, if I am wrong.

Just a suggestion. I am naive to Wicket.

- Nishant

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

 I fear not. As far as I understand, getAjaxCallDecorator() decorates the
 javascript with a custom script, which is executed immediately upon hitting
 the button. What I want to achieve is displaying some status messaged during
 the progress of my long-term operation ...

   -Tom


 On 08.04.2010 at 20:58 Fernando Wermus wrote:

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


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




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

2010-04-08 Thread Alex Objelean

The most simple way is to implement  IAjaxIndicatorAware interface on the
component wish to display the indicator. For instance, if your page
implements this interface, you will have a generic indicator for all ajax
requests inside your page. Also, you can be more specific by implementing
this interface only on a panel or a form... depends on your use-case.

Alex
 

Thomas Götz wrote:
 
 Problem:
 I have an AjaxButton that triggers a long-running operation when clicked.
 I want to give feedback (in form of a javascript message) upon partial
 completion of the operation, therefore I am using a jQuery notifications
 plugin (http://www.programmingmind.com/contributions).
 
 So, what I do is the following:
 
 final Form form = new Form(form);
 add(form);
 
 form.add(new AjaxButton(button) {
 @Override
 protected void onSubmit(AjaxRequestTarget target, Form? form) {
 for(Object o : someList) {
 // do somthing
 target.appendJavascript(getJavascript());
 }
 target.addComponent(form);
 }
 });
 
 
 ... but obviously, the Javascript messages are only display at the end of
 the complete operation (after foreach loop has finished). So my question:
 what should I do to get the messages displayed after each iteration?
 
-Tom
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 

-- 
View this message in context: 
http://old.nabble.com/How-to-give-feedback-in-long-running-operation-within-AjaxButton.onSubmit%28%29--tp28182827p28184788.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



Wicket Authorization

2010-04-08 Thread Janani Sundarrajan
Is it possible use a metadata driven component based authorization?

 

Wicket in Action gives an example 

 

@AdminOnly

private class ModeLink extends Link {.}

 

Then implement isActionAuthorized() of the Authorization Strategy.

 

But I feel that it is not a good solution to create new classes for every
role.

 

Is there a metadata driven way to do this? Can I add some metadata to a
component and then check based on that in the isActionAuthorized() method
of the Authorization Strategy? I am a Wicket newbie, so forgive me if I am
missing something very basic.

 

Thanks,

~Janani

 



Re: JavaOne in San Francisco

2010-04-08 Thread Eelco Hillenius
I might be around even if not attending. Let's ping this list when the
event is nearing to see if we have enough people to meet up at a bar
or something :-)

Eelco

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



Re: Wicket Authorization

2010-04-08 Thread wicketyan
use 
MetaDataRoleAuthorizationStrategy


2010-04-09 



wicketyan 



发件人: Janani Sundarrajan 
发送时间: 2010-04-09  05:38:24 
收件人: users@wicket.apache.org 
抄送: 
主题: Wicket Authorization 
 
Is it possible use a metadata driven component based authorization?

Wicket in Action gives an example 

@AdminOnly
private class ModeLink extends Link {.}

Then implement isActionAuthorized() of the Authorization Strategy.

But I feel that it is not a good solution to create new classes for every
role.

Is there a metadata driven way to do this? Can I add some metadata to a
component and then check based on that in the isActionAuthorized() method
of the Authorization Strategy? I am a Wicket newbie, so forgive me if I am
missing something very basic.

Thanks,
~Janani