Re: Opening and closing of modal window is very slow in IE

2009-07-02 Thread Igor Vaynberg
like i said, try a snapshot or build trunk yourself. m2 is pretty old.

-igor

On Wed, Jul 1, 2009 at 10:50 PM, ArunTiwariarun.s.tiw...@oracle.com wrote:

 Hi,
 I am using wicket 1.4-m2 version .

 Regards
 Arun

 igor.vaynberg wrote:

 what version of wicket are you using?

 -igor

 On Wed, Jul 1, 2009 at 2:42 AM,
 arun.s.tiw...@oracle.comarun.s.tiw...@oracle.com wrote:
 Hi,

 In my application we are opening a modal window from the columns in the
 datatable. The opened modal window contains a page which has a table with
 records size 1000 without any pagination. Now when we try to close the
 modal window using the Closed icon at the right of the browser it takes
 lot of time if the browser is Internet explorer.

 It works fine with the Firefox. Can  anyone suggest any solution for
 this.



 Regards

 Arun



 -
 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/Opening-and-closing-of-modal-window-is-very-slow-in-IE-tp24287036p24301554.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: Turning off ModificationWatcher

2009-07-02 Thread cretzel

Fixed as of Wicket 1.4.0-RC6.

now uses an interface. you may use IResourceSettings.setResourceWatcher()
to set whatever IModificationWatcher you want 


cretzel wrote:
 
 Posted  https://issues.apache.org/jira/browse/WICKET-2340
 https://issues.apache.org/jira/browse/WICKET-2340 
 
 
 igor.vaynberg wrote:
 
 or you can add an rfe into jira to make it more open...
 
 -igor
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Turning-off-ModificationWatcher-tp22963478p24301752.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: Opening and closing of modal window is very slow in IE

2009-07-02 Thread ArunTiwari

Hi Igor,
Thanks for ur prompt reply. Is version 1.4-rc5 stable..

Thanks 
Arun

igor.vaynberg wrote:
 
 like i said, try a snapshot or build trunk yourself. m2 is pretty old.
 
 -igor
 
 On Wed, Jul 1, 2009 at 10:50 PM, ArunTiwariarun.s.tiw...@oracle.com
 wrote:

 Hi,
 I am using wicket 1.4-m2 version .

 Regards
 Arun

 igor.vaynberg wrote:

 what version of wicket are you using?

 -igor

 On Wed, Jul 1, 2009 at 2:42 AM,
 arun.s.tiw...@oracle.comarun.s.tiw...@oracle.com wrote:
 Hi,

 In my application we are opening a modal window from the columns in the
 datatable. The opened modal window contains a page which has a table
 with
 records size 1000 without any pagination. Now when we try to close the
 modal window using the Closed icon at the right of the browser it takes
 lot of time if the browser is Internet explorer.

 It works fine with the Firefox. Can  anyone suggest any solution for
 this.



 Regards

 Arun



 -
 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/Opening-and-closing-of-modal-window-is-very-slow-in-IE-tp24287036p24301554.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
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Opening-and-closing-of-modal-window-is-very-slow-in-IE-tp24287036p24301902.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: Opening and closing of modal window is very slow in IE

2009-07-02 Thread Igor Vaynberg
it is an RC...vastly more stable then a milestone

-igor

On Wed, Jul 1, 2009 at 11:31 PM, ArunTiwariarun.s.tiw...@oracle.com wrote:

 Hi Igor,
 Thanks for ur prompt reply. Is version 1.4-rc5 stable..

 Thanks
 Arun

 igor.vaynberg wrote:

 like i said, try a snapshot or build trunk yourself. m2 is pretty old.

 -igor

 On Wed, Jul 1, 2009 at 10:50 PM, ArunTiwariarun.s.tiw...@oracle.com
 wrote:

 Hi,
 I am using wicket 1.4-m2 version .

 Regards
 Arun

 igor.vaynberg wrote:

 what version of wicket are you using?

 -igor

 On Wed, Jul 1, 2009 at 2:42 AM,
 arun.s.tiw...@oracle.comarun.s.tiw...@oracle.com wrote:
 Hi,

 In my application we are opening a modal window from the columns in the
 datatable. The opened modal window contains a page which has a table
 with
 records size 1000 without any pagination. Now when we try to close the
 modal window using the Closed icon at the right of the browser it takes
 lot of time if the browser is Internet explorer.

 It works fine with the Firefox. Can  anyone suggest any solution for
 this.



 Regards

 Arun



 -
 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/Opening-and-closing-of-modal-window-is-very-slow-in-IE-tp24287036p24301554.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




 --
 View this message in context: 
 http://www.nabble.com/Opening-and-closing-of-modal-window-is-very-slow-in-IE-tp24287036p24301902.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



Two WebPages one Site

2009-07-02 Thread Enes Fazli
Hello everybody,

I have a requirement where I need to have two or more styles for a website.
Since layout and content can be different between the two variations I went
for a two Webpage classes solution. I created base and base2 which are both
abstract and extend webpage.

Each page inherits either from base or base2. The homepage of base is
mounted on / while the homepage of base2 is mounted on /base2. This works
fine. But oddly all the form submits (stateless forms) on base2 pages do not
work. It seems that the action url is wrong because I get an 404 not found
error.

Could someone give me a hint to where I have to look to debug this issue.

Regards,
Enes


Re: Problem with RadioGroup / Ajax

2009-07-02 Thread Mathias Nilsson

I've made a sample page.

public class HomePage extends WebPage {

private static final long serialVersionUID = 1L;

public HomePage(final PageParameters parameters) {

   String[] choices = new String[]{ Wicket, Spring, DB4O };
   
   final RadioGroupString group = new RadioGroupString(group, new
ModelString());
   ListViewString groupView = new ListViewString( groupView ,
Arrays.asList( choices )){
private static final long serialVersionUID = 1L;

@Override
protected void populateItem(ListItemString item) {
item.add(  new RadioString( radio, new 
ModelString() ));
}
   
   };
   group.setOutputMarkupId( true );
   group.add( new AjaxFormChoiceComponentUpdatingBehavior(){
private static final long serialVersionUID = 1L;

@Override
protected void onUpdate(AjaxRequestTarget target) {
// TODO: Check this
System.out.println( Here );
}
   
   });
   
   group.add(  groupView );
   
   FormVoid form = new FormVoid( form );
   form.add( group );
   add( form );


}
}
-- 
View this message in context: 
http://www.nabble.com/Problem-with-RadioGroup---Ajax-tp24300010p24302858.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



Too many path parts in page parameters

2009-07-02 Thread Bas Vroling
I have a page which takes one parameter ('id') and build itself from  
there. In the debugger it shows that only one parameter is passed, and  
the constructor of the page runs without problems. Somewhere further  
down the line however an exception is thrown:


ERROR - RequestCycle   - Too many path parts, please  
provide sufficient number of path parameter names
java.lang.IllegalArgumentException: Too many path parts, please  
provide sufficient number of path parameter names
	at  
org 
.apache 
.wicket 
.request 
.target 
.coding 
.MixedParamUrlCodingStrategy 
.decodeParameters(MixedParamUrlCodingStrategy.java:167)


The page is loaded ok, although the markup is changed (references to  
css files are prepended with '../' for some weird reason) and all  
panels are there and working.


Any ideas?

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



WebPage instantiation before asking the AuthorizationStrategy?

2009-07-02 Thread Daniele Dellafiore
Hi everyone. I noticed this strange behavior this way. I mounted
MyPage to /mypage and if IO point to:

http://localhost:8080/myapp/mypage

before being authenticated, instead of being redirected to the
LoginPage I receive a blank page. The reason is in MyPage constructor
I try to access to the user, that is null so I get a NullPointer.
Now, the user is never supposed to be null cause MyPage is a
SecureWebPage so I expect it get instantiated just after being
authenticated.

Now, I made some debug and have seen that the constructor of MyPage is
invoked before any calls to any AuthorizationStrategy method.
This happens for every page!

This sounds strange to me, and to you? I expect
isInstantiationAuthorized to be called before...

-- 
Daniele Dellafiore
http://blog.ildella.net
http://twitter.com/ildella

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



MixedParamUrlCodingStrategy IllegalArgumentException: Too many path parts due to some javascript

2009-07-02 Thread Daniele Dellafiore
Hi everyone. I have integrated highslide JS to my application (well,
the web designer did). Now I have a wicket Page with, in wicket:head

   script type=text/javascript
  hs.registerOverlay({
  overlayId: 'closebutton',
  position: 'top right',
  fade: 2 // fading the semi-transparent overlay looks bad in IE
  });


  hs.graphicsDir = 'highslide/graphics/';
  hs.wrapperClassName = 'borderless';
   /script

now when I load the page I receive a

WARN  - DataRequestCycle   - Handling exception for request
[requestcy...@15efa6a thread=3737...@qtp-18621578-3], exception:
java.lang.IllegalArgumentException: Too many path parts, please
provide sufficient number of path parameter names
java.lang.IllegalArgumentException: Too many path parts, please
provide sufficient number of path parameter names
at 
org.apache.wicket.request.target.coding.MixedParamUrlCodingStrategy.decodeParameters(MixedParamUrlCodingStrategy.java:178)


debugging the decodeParameters method, I get that the two parameters
have these values:

urlFragment
 (java.lang.String) /highslide/graphics/outlines/drop-shadow.png
urlParameters
 (java.util.HashMapK,V) {}

Now, I do not understand perfectly how this stuff works, I just did
not expect any javascript to interfer with my URL strategy but it
does.
You have any suggestion?

Ah, everything works perfectly, I just I have this exception.

-- 
Daniele Dellafiore
http://blog.ildella.net
http://twitter.com/ildella

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



Re: JDeveloper - Can I get a show of hands?

2009-07-02 Thread Richard Allen
Now that Oracle bought Sun I wonder if JDev and Netbeans will cross paths.

A great free, cross-platform SQL tool is SQuirreL (
http://squirrel-sql.sourceforge.net/).


On Sat, Jun 20, 2009 at 4:45 PM, Scott Swank scott.sw...@gmail.com wrote:

 I'm at best 50% DBA, by training.  You end up with multi-step
 operations that work very well as sql*plus scripts.  I also run
 analogous queries in TOAD, PL/SQL Dev or SQL Dev -- but no DBA worth
 hiring works in the click-and-drag world.  But then I suppose this has
 gotten off topic.

 On Sat, Jun 20, 2009 at 10:37 AM, James
 Carmanjcar...@carmanconsulting.com wrote:
  As a DBA, you use SQL Plus?  I would think most DBAs would either use the
  console thingy that comes with Oracle or Toad.  SQL Plus always seemed a
 bit
  limiting to me, but that's probably because of my limited knowledge of
 all
  the commands, so I need the nice GUI stuff to guide me along. :)
 
  On Sat, Jun 20, 2009 at 1:04 PM, Scott Swank scott.sw...@gmail.com
 wrote:
 
  And if you're an Oracle DBA your main tool is called SQL Plus.
 
  On Fri, Jun 19, 2009 at 8:58 PM, James
  Carmanjcar...@carmanconsulting.com wrote:
   +1 to sqldeveloper (java or native).  For developers (not DBAs), it's
 a
  very
   nice tool and does what you need for the majority of the cases.
  
   On Fri, Jun 19, 2009 at 11:28 PM, Vasu Srinivasan vasy...@gmail.com
  wrote:
  
   JDeveloper is good to target a narrow Oracle infrastructure. We use
 it
  for
   Oracle soa suite, and there are no other IDEs / plugins which can
 match
   that, it has good integration for ADF too. And thats pretty much it.
  
   Otherwise, it doesn't come half close to IDEA or Eclipse. The project
   structure it generates is pretty un-intuitive. Bad IDE is indirectly
   proportional to Productivity. Lack of good plugins is another major
  reason.
  
   Our team has only a few licenses for TOAD, so I use sql developer
 (the
   windows native version, not the java version).. Pretty happy with it,
   though
   it gets a bit slow at times. Last I used the java version was buggy
 and
   low.
  
  
  
   On Fri, Jun 19, 2009 at 9:09 PM, Daniel Toffetti 
 dto...@yahoo.com.ar
   wrote:
  
Juan Carlos Garcia M. jcgarciam at gmail.com writes:

 I always thought God used only in LISP :)

 Nicolas Melendez wrote:
 
  god used Eclipse 1.0 to develop universe.
 
  NM
  Software Developer - Buenos aires, Argentina.
 
   
No. Sadly, He didn't:
   
   http://xkcd.com/224/
   
Daniel
   
   
   
   
 -
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org
   
   
  
  
   --
   Regards,
   Vasu Srinivasan
  
  
 
  -
  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: Too many path parts in page parameters

2009-07-02 Thread Daniele Dellafiore
as you can see I posted a similar issue.

you can start debugging the strategy to see the values of parameters.

On Thu, Jul 2, 2009 at 10:36 AM, Bas Vrolingbvrol...@cmbi.ru.nl wrote:
 I have a page which takes one parameter ('id') and build itself from there.
 In the debugger it shows that only one parameter is passed, and the
 constructor of the page runs without problems. Somewhere further down the
 line however an exception is thrown:

 ERROR - RequestCycle               - Too many path parts, please provide
 sufficient number of path parameter names
 java.lang.IllegalArgumentException: Too many path parts, please provide
 sufficient number of path parameter names
        at
 org.apache.wicket.request.target.coding.MixedParamUrlCodingStrategy.decodeParameters(MixedParamUrlCodingStrategy.java:167)

 The page is loaded ok, although the markup is changed (references to css
 files are prepended with '../' for some weird reason) and all panels are
 there and working.

 Any ideas?

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





-- 
Daniele Dellafiore
http://blog.ildella.net
http://twitter.com/ildella

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



Re: Slideshow

2009-07-02 Thread Daniele Dellafiore
On Mon, Jun 29, 2009 at 2:20 PM, Johannes
Schneidermaili...@cedarsoft.com wrote:
 Thanks for that hint.
 Do you know how many images wicket-slides/SmoothGallery support? I will
 have galleries with thousands of pictures...

I do not know how many images it supports but I remember it was quite
slow to load one hundred images.
Anyway, send all images to the client in one shot doesn't sound
reasonable to me.

I am addressing this issue in the next weeks, if you have some ideas
we should start talking about some possible implementation.

-- 
Daniele Dellafiore
http://blog.ildella.net
http://twitter.com/ildella

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



Re: Detachable Models best practices

2009-07-02 Thread Daniele Dellafiore
I am not sure I completely understood what happens to you.
This sound to me like a problem I had in unit testing pages, when
calling, to say

tester.assertLabel

coused the model.getObject to be called and if model is a LDM, than it
results attached.
So I have to detach the component explicitly after.
Not beautiful, but is a problem I had only on the test side.

Now, maybe you can post some code to see when you occur to call
LDM.getObject during the update.
Sounds really strange to me that your id (the database id?) changes
during an update...

On Mon, Jun 29, 2009 at 6:05 PM, Neil Curzonneil.cur...@gmail.com wrote:
 Hi all,

 Using 1.3.6, I've recently been simplifying some of my wicket code by using
 LoadableDetachableModels and PropertyModels instead of trying to manage
 static models in various ways.

 I had a strange and subtle bug caused by the fact that a form button update
 call into the next layer would take parameters such as the item id being
 changed. To provide this item ID, I ended up resolving the model object,
 which caused the LoadableDetachableModel to be loaded. The problem was that
 this meant that the model was resolved before the update occurred, which
 means that as the page was re rendered, the stale model object was used as
 the source for the components. After the next update, the change made by the
 previous update would be shown.

 The ways that I can think of to fix this are 1. store the parameters needed
 for the update call instead of using the model object to retrieve them or 2.
 call detachModels on the component so that the models will be reloaded (kind
 of crappy performance wise). But there will be no compile errors or runtime
 warnings if I forget either of these, just a slightly stale view of the
 page.

 I'm worried that this bug will creep in again unless I can find a reliable
 way to make sure that any updating event handlers can't accidentally load
 the detachable model as they're updating. Has anybody found a good way to do
 this?

 Thanks
 Neil




-- 
Daniele Dellafiore
http://blog.ildella.net
http://twitter.com/ildella

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



Re: Too many path parts in page parameters

2009-07-02 Thread Bas Vroling
I ran the debugger, and the urlPath the mixedParamUrlCodingStrategy  
gets served is /img/info01.gif, which does not make sense. This is  
just an image and nowhere is there a request to open up a new page...  
After that, it goes to parse /highslide/graphics/outlines/rounded- 
white.png , then one more and then it renders.


Any ideas?


On 2 Jul, at 14:42, Daniele Dellafiore wrote:


as you can see I posted a similar issue.

you can start debugging the strategy to see the values of parameters.

On Thu, Jul 2, 2009 at 10:36 AM, Bas Vrolingbvrol...@cmbi.ru.nl  
wrote:
I have a page which takes one parameter ('id') and build itself  
from there.

In the debugger it shows that only one parameter is passed, and the
constructor of the page runs without problems. Somewhere further  
down the

line however an exception is thrown:

ERROR - RequestCycle   - Too many path parts, please  
provide

sufficient number of path parameter names
java.lang.IllegalArgumentException: Too many path parts, please  
provide

sufficient number of path parameter names
   at
org 
.apache 
.wicket 
.request 
.target 
.coding 
.MixedParamUrlCodingStrategy 
.decodeParameters(MixedParamUrlCodingStrategy.java:167)


The page is loaded ok, although the markup is changed (references  
to css
files are prepended with '../' for some weird reason) and all  
panels are

there and working.

Any ideas?

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






--
Daniele Dellafiore
http://blog.ildella.net
http://twitter.com/ildella

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




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



how to notify session time out to disabled user

2009-07-02 Thread tubin gen
our application must support  508 Accessibility, I need suggestion on
how to implement
automatic session timeout.If i user is idle for 30 minutes then
session times out and how can I let a disabled user know about this ?

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



virues scanning for file upload

2009-07-02 Thread tubin gen
we need to implement virues scanning functionality for uploded files
and reject  in case of virues.Please suggest what choices i have and are
there any example ?


Re: virues scanning for file upload

2009-07-02 Thread James Carman
What OS?  Windoze?  Linux?

On Thu, Jul 2, 2009 at 11:00 AM, tubin gen fachh...@gmail.com wrote:

 we need to implement virues scanning functionality for uploded files
 and reject  in case of virues.Please suggest what choices i have and are
 there any example ?



Re: virues scanning for file upload

2009-07-02 Thread fachhoch

linux 

James Carman-3 wrote:
 
 What OS?  Windoze?  Linux?
 
 On Thu, Jul 2, 2009 at 11:00 AM, tubin gen fachh...@gmail.com wrote:
 
 we need to implement virues scanning functionality for uploded files
 and reject  in case of virues.Please suggest what choices i have and are
 there any example ?

 
 

-- 
View this message in context: 
http://www.nabble.com/virues-scanning-for-file-upload-tp24308356p24308441.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: virues scanning for file upload

2009-07-02 Thread fachhoch

What OS? Linux



James Carman-3 wrote:
 
 What OS?  Windoze?  Linux?
 
 On Thu, Jul 2, 2009 at 11:00 AM, tubin gen fachh...@gmail.com wrote:
 
 we need to implement virues scanning functionality for uploded files
 and reject  in case of virues.Please suggest what choices i have and are
 there any example ?

 
 

-- 
View this message in context: 
http://www.nabble.com/virues-scanning-for-file-upload-tp24308356p24308700.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: Two WebPages one Site

2009-07-02 Thread Igor Vaynberg
what version of wicket are you using?

-igor

On Thu, Jul 2, 2009 at 12:25 AM, Enes Fazlifazli.e...@googlemail.com wrote:
 Hello everybody,

 I have a requirement where I need to have two or more styles for a website.
 Since layout and content can be different between the two variations I went
 for a two Webpage classes solution. I created base and base2 which are both
 abstract and extend webpage.

 Each page inherits either from base or base2. The homepage of base is
 mounted on / while the homepage of base2 is mounted on /base2. This works
 fine. But oddly all the form submits (stateless forms) on base2 pages do not
 work. It seems that the action url is wrong because I get an 404 not found
 error.

 Could someone give me a hint to where I have to look to debug this issue.

 Regards,
 Enes


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



Re: WebPage instantiation before asking the AuthorizationStrategy?

2009-07-02 Thread Igor Vaynberg
there is no mechanism in pure java that would allow us to intercept an
instantiation and execute something before that. we could do that with
aop but that would force whatever aop solution we choose into your
projects.

so we do the next best thing, we call the auth strategy from the Page
constructor. what this means is that this is called as soon as you
instantiate the page but *before* any code in any other subclass
constructors runs. this is why isinstantiationauthorized gets a class
and not an instance - because the instance is not yet fully
constructed.

so the auth code does run *before* your code.

-igor

On Thu, Jul 2, 2009 at 3:06 AM, Daniele Dellafioreilde...@gmail.com wrote:
 Hi everyone. I noticed this strange behavior this way. I mounted
 MyPage to /mypage and if IO point to:

 http://localhost:8080/myapp/mypage

 before being authenticated, instead of being redirected to the
 LoginPage I receive a blank page. The reason is in MyPage constructor
 I try to access to the user, that is null so I get a NullPointer.
 Now, the user is never supposed to be null cause MyPage is a
 SecureWebPage so I expect it get instantiated just after being
 authenticated.

 Now, I made some debug and have seen that the constructor of MyPage is
 invoked before any calls to any AuthorizationStrategy method.
 This happens for every page!

 This sounds strange to me, and to you? I expect
 isInstantiationAuthorized to be called before...

 --
 Daniele Dellafiore
 http://blog.ildella.net
 http://twitter.com/ildella

 -
 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: MixedParamUrlCodingStrategy IllegalArgumentException: Too many path parts due to some javascript

2009-07-02 Thread Igor Vaynberg
looks like the js lib is trying to load an image by creating a
relative path which is hitting your wicket page.

-igor

On Thu, Jul 2, 2009 at 3:56 AM, Daniele Dellafioreilde...@gmail.com wrote:
 Hi everyone. I have integrated highslide JS to my application (well,
 the web designer did). Now I have a wicket Page with, in wicket:head

   script type=text/javascript
      hs.registerOverlay({
          overlayId: 'closebutton',
          position: 'top right',
          fade: 2 // fading the semi-transparent overlay looks bad in IE
      });


      hs.graphicsDir = 'highslide/graphics/';
      hs.wrapperClassName = 'borderless';
   /script

 now when I load the page I receive a

 WARN  - DataRequestCycle           - Handling exception for request
 [requestcy...@15efa6a thread=3737...@qtp-18621578-3], exception:
 java.lang.IllegalArgumentException: Too many path parts, please
 provide sufficient number of path parameter names
 java.lang.IllegalArgumentException: Too many path parts, please
 provide sufficient number of path parameter names
        at 
 org.apache.wicket.request.target.coding.MixedParamUrlCodingStrategy.decodeParameters(MixedParamUrlCodingStrategy.java:178)


 debugging the decodeParameters method, I get that the two parameters
 have these values:

 urlFragment
         (java.lang.String) /highslide/graphics/outlines/drop-shadow.png
 urlParameters
         (java.util.HashMapK,V) {}

 Now, I do not understand perfectly how this stuff works, I just did
 not expect any javascript to interfer with my URL strategy but it
 does.
 You have any suggestion?

 Ah, everything works perfectly, I just I have this exception.

 --
 Daniele Dellafiore
 http://blog.ildella.net
 http://twitter.com/ildella

 -
 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: Too many path parts in page parameters

2009-07-02 Thread Igor Vaynberg
your highslide js is making those requests, you may have to change it
to request images via absolute urls

-igor

On Thu, Jul 2, 2009 at 7:22 AM, Bas Vrolingbvrol...@cmbi.ru.nl wrote:
 I ran the debugger, and the urlPath the mixedParamUrlCodingStrategy gets
 served is /img/info01.gif, which does not make sense. This is just an
 image and nowhere is there a request to open up a new page... After that, it
 goes to parse /highslide/graphics/outlines/rounded-white.png , then one
 more and then it renders.

 Any ideas?


 On 2 Jul, at 14:42, Daniele Dellafiore wrote:

 as you can see I posted a similar issue.

 you can start debugging the strategy to see the values of parameters.

 On Thu, Jul 2, 2009 at 10:36 AM, Bas Vrolingbvrol...@cmbi.ru.nl wrote:

 I have a page which takes one parameter ('id') and build itself from
 there.
 In the debugger it shows that only one parameter is passed, and the
 constructor of the page runs without problems. Somewhere further down the
 line however an exception is thrown:

 ERROR - RequestCycle               - Too many path parts, please provide
 sufficient number of path parameter names
 java.lang.IllegalArgumentException: Too many path parts, please provide
 sufficient number of path parameter names
       at

 org.apache.wicket.request.target.coding.MixedParamUrlCodingStrategy.decodeParameters(MixedParamUrlCodingStrategy.java:167)

 The page is loaded ok, although the markup is changed (references to css
 files are prepended with '../' for some weird reason) and all panels are
 there and working.

 Any ideas?

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





 --
 Daniele Dellafiore
 http://blog.ildella.net
 http://twitter.com/ildella

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



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



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



Re: how to notify session time out to disabled user

2009-07-02 Thread Igor Vaynberg
if their session times out they will get a page expired error page
next time they try to use the app. just make sure your page expired
error page is 508 compliant.

if you actually want to let them know *when* it happens you can add a
javascript timer to every page and redirect to page expired error page
when the time hits. although, not a lot of screenreaders, etc, support
js.

-igor

On Thu, Jul 2, 2009 at 7:47 AM, tubin genfachh...@gmail.com wrote:
 our application must support  508 Accessibility, I need suggestion on
 how to implement
 automatic session timeout.If i user is idle for 30 minutes then
 session times out and how can I let a disabled user know about this ?

 -
 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: Two WebPages one Site

2009-07-02 Thread Enes Fazli
Hi Igor,

I use Wicket 1.4-rc4.

Regards,
Enes

On Thu, Jul 2, 2009 at 5:33 PM, Igor Vaynberg igor.vaynb...@gmail.comwrote:

 what version of wicket are you using?

 -igor

 On Thu, Jul 2, 2009 at 12:25 AM, Enes Fazlifazli.e...@googlemail.com
 wrote:
  Hello everybody,
 
  I have a requirement where I need to have two or more styles for a
 website.
  Since layout and content can be different between the two variations I
 went
  for a two Webpage classes solution. I created base and base2 which are
 both
  abstract and extend webpage.
 
  Each page inherits either from base or base2. The homepage of base is
  mounted on / while the homepage of base2 is mounted on /base2. This works
  fine. But oddly all the form submits (stateless forms) on base2 pages do
 not
  work. It seems that the action url is wrong because I get an 404 not
 found
  error.
 
  Could someone give me a hint to where I have to look to debug this issue.
 
  Regards,
  Enes
 

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




Re: Two WebPages one Site

2009-07-02 Thread Igor Vaynberg
try with rc5/6/snapshot. i think sometihng like this might have been
fixed since then.

-igor

On Thu, Jul 2, 2009 at 9:36 AM, Enes Fazlifazli.e...@googlemail.com wrote:
 Hi Igor,

 I use Wicket 1.4-rc4.

 Regards,
 Enes

 On Thu, Jul 2, 2009 at 5:33 PM, Igor Vaynberg igor.vaynb...@gmail.comwrote:

 what version of wicket are you using?

 -igor

 On Thu, Jul 2, 2009 at 12:25 AM, Enes Fazlifazli.e...@googlemail.com
 wrote:
  Hello everybody,
 
  I have a requirement where I need to have two or more styles for a
 website.
  Since layout and content can be different between the two variations I
 went
  for a two Webpage classes solution. I created base and base2 which are
 both
  abstract and extend webpage.
 
  Each page inherits either from base or base2. The homepage of base is
  mounted on / while the homepage of base2 is mounted on /base2. This works
  fine. But oddly all the form submits (stateless forms) on base2 pages do
 not
  work. It seems that the action url is wrong because I get an 404 not
 found
  error.
 
  Could someone give me a hint to where I have to look to debug this issue.
 
  Regards,
  Enes
 

 -
 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: Localization message for validators

2009-07-02 Thread Uwe Schäfer

Major Péter schrieb:

Dear Igor

referring to your comment on


https://issues.apache.org/jira/browse/WICKET-2350


where it reads: the proper format of the override key is 
formid.componentid.key, you are missing the formid part. this was 
considered a bug in earlier versions of wicket and was fixed. 


this is quite misleading.
we have the same issue here and while

myField=MyFunkyField

is picked up for automatically created ErrorMessages, even though the 
fully qualified key would be:


myForm.myField=MyFunkyField

it seems when looking up error messages, you need to fully qualify it.

Means:

myForm.myField=works
myField=works as well (!)
myForm.myField.Required=works
myField.Required=doesnt.

looks quite inconsistent to me?
what am i missing?

cu uwe

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

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

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


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


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


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



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



Can a RadioChoice display input for null value?

2009-07-02 Thread Robin Sander


Hello,

is it possible to get RadioChoice behave more like DropDownChoice  
concerning a null value?
Consider a RadioChoice defining a search parameter, e.g. two values  
'male' and 'female' and a third one

meaning doesn't matter.
With a DropDownChoice I could easily use setNullValid(true) and then  
define a property fieldID.nullValid

which is them used for the null value.
Looking into the source it seems that DropDownChoice always adds  
getDefaultChoice() which does the
magic while RadioChoice does not. Can anyone elaborate on this topic?  
Is there a workaround?


Background is that I have dozens of enums with property files for  
localization and a self-written
EnumChoiceRenderer which does the localization. So if I have a  
property of (enum) type Gender
which defines Gender.MALE and Gender.FEMALE I can't easily define a  
special NULL value

without modifying the enum.
So the only option I see would be to really pass null to the  
RadioChoice or to define a special

enum (like GenderWithNull) for any enum I want to use in a RadioChoice.

regards,

Robin.


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



Re: Large internet rich UI Wicket websites?

2009-07-02 Thread David Chang


Jeremy, thanks for your input. I don't quite understand the side note in your 
reply. For a large website such as Amazon to work, there should absolutely be 
different technologies/tiers, tuning, security, and other considerations. The 
basic question is whether a framework is up to that task and whether there is 
evidence in reality.

Still back to my original question, any there any large Wicket website out 
there? Wicket people have to face it, me too, if I am going to use it.


--- On Wed, 7/1/09, Jeremy Thomerson jer...@wickettraining.com wrote:

 From: Jeremy Thomerson jer...@wickettraining.com
 Subject: Re: Large internet rich UI Wicket websites?
 To: users@wicket.apache.org
 Date: Wednesday, July 1, 2009, 4:08 PM
 There are some large ones that have
 been mentioned on the mailing
 lists in the past - you can try searching Nabble - they may
 not be on
 that page.
 
 As a side note, I find it funny how everyone always
 compares their
 anticipated traffic with Amazon or eBay.  I worked at
 eBay for quite
 some time, and I know that you are not going to run either
 of those
 sites with any framework straight out of the box.  I'm
 not saying
 Wicket can't scale to that size, I'm saying that no
 framework defaults
 to being made for that size.  Could eBay or Amazon use
 Wicket?  Sure,
 with the right techniques.  Could your website use
 it?  Yes, and
 probably much easier.  :)
 
 --
 Jeremy Thomerson
 http://www.wickettraining.com
 
 
 
 
 On Wed, Jul 1, 2009 at 2:51 PM, David Changdavid_q_zh...@yahoo.com
 wrote:
 
 
  Martin, I looked at the list and it seems none of them
 meets what I said about large rich ui Wicket website. Likely
 I am ignorant. Please enlighten me. By large, I mean
 something similar or close to amazon.com or ebay.com that
 have a large number of concurrent users. Which Wicket
 website in your knowledge seems to the largest one?
 
  Thanks!
 
 
  --- On Wed, 7/1/09, Martin Funk mafulaf...@googlemail.com
 wrote:
 
  From: Martin Funk mafulaf...@googlemail.com
  Subject: Re: Large internet rich UI Wicket
 websites?
  To: users@wicket.apache.org
  Date: Wednesday, July 1, 2009, 3:21 PM
 
  Am 01.07.2009 um 20:11 schrieb David Chang:
 
  
   I am still learning Wicket. The more I read
 from
  Wicket in Action, the more I like
 it.
  
   From the book, I know that companies from
 startups to
  large-size ones such as IBM, Amazon, etc. use
 Wicket for
  their projects, but I cannot find a list of
 specific larget
  internet rich UI websites coded with Wicket. Could
 someone
  help?
  
   The backgound for this request is that we may
 use
  Wicket for a large highly-active website.
  maybe this helps:
  http://cwiki.apache.org/WICKET/sites-using-wicket.html
  mf
  
   Cheers!
  
  
  
  
  
 
 -
   To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
   For additional commands, e-mail: users-h...@wicket.apache.org
  
 
 
 
 -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
 
 
 
 
 -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 




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



Wicket behind proxy (AJP)

2009-07-02 Thread Sergey Podatelev
Hello,

I know this question had already been asked here, but I still couldn't
get it working on my side.
What I'm trying to achieve, is a configuration of Wicket running as
filter on Tomcat with an Apache host as a frontend. Particular problem
is with the context path.

Here's my configuration:
Tomcat's server.xml:

...
Connector port=8099 protocol=AJP/1.3 redirectPort=8443
enableLookups=false /
...

Apache's sites-enabled/mysite:

...
VirtualHost 127.0.0.1:80
  ServerName mysite
  IfModule mod_proxy.c
ProxyRequests Off
Proxy *
  Order deny,allow
  Deny from all
  Allow from localhost
/Proxy

ProxyPass/ http://localhost:8084/Mysite/
ProxyPassReverse / http://localhost:8084/Mysite/

# this doesn't work
#ProxyPass/ ajp://localhost:8099/Mysite/
#ProxyPassReverse / ajp://localhost:8099/Mysite/

# this doesn't work either
#ProxyPass/ ajp://localhost:8099/Mysite/
#ProxyPassReverse / http://localhost:8084/Mysite/

ProxyPassReverseCookiePath /Mysite /
  /IfModule
/VirtualHost
...

The only way I got it working with (almost) no issues is the first
one, where both ProxyPass and ProxyPassReverse directives use HTTP
protocol.
If I try AJP for both, or, as was stated somewhere in the mailing list
here, HTTP for ProxyPassReverse and AJP for ProxyPass.

The specific problem is when I access http://mysite/, some Wicket
requests work fine, some, however, are pointing to
http://mysite/Mysite/ (this, for instance, happens when I do
setResponsePage(Page.class, pageParameters). At first, this doesn't
seem to affect anything, but I have Infinite Redirect Loop error on
404 page, which is mounted the way it's described on Wicket's wiki.

I'm not sure, whose problem is this, Wicket's or AJP's.
I'm sure someone had similar issues and got them solved, I'd really
appreciate any comments.

-- 
sp

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



Looking to implement a table that has it all.

2009-07-02 Thread Steve Tarlton
I am looking to develop a table that has sortable columns, using an ajax
approach of course. I want to highlight the row that one is mousing over
with one color and ideally if a row is currently selected it would be
highlighted with a different color. Additionally, I want to have alternating
colors for the rows that are not selected. Only one row at a time can be
selected because the row selected displays its values in a form on the left
hand side.

I have seen different examples containing pretty much everything I want but
haven't seen one that does it all. I implemented an example using Igor's
AjaxFallbackDefaultDataTable, which made it extremely easy to create a
sortable ajax enabled table :). I have also ran across the alternating
colors and the mouseover highlighting in the WickeStuff Dojo
(selectabletable) Example. Is it possible to have it all using one or the
other approach? Sorry if the answer is obvious, I am still pretty new to
Wicket.


Re: Large internet rich UI Wicket websites?

2009-07-02 Thread Igor Vaynberg
lets say the entire backend of amazon is written in wicket. would you
consider that to be a large application? how would you ever know that
it was written in wicket? people who work on projects like these do
not often go, or most times are not even allowed, to boast on some
public mailing list.

wicket is best suited for very complex uis, and such uis are not often
suited for public websites - whose mission is to make the experience
as simple as possible for the user. not saying that it cannot be done.

i think if this is some sort of a criteria for choosing a framework
you should probably go with servlets. there are some very very large
sites out there written in pure jsp and servlets. good luck.

-igor

On Thu, Jul 2, 2009 at 10:57 AM, David Changdavid_q_zh...@yahoo.com wrote:


 Jeremy, thanks for your input. I don't quite understand the side note in your 
 reply. For a large website such as Amazon to work, there should absolutely be 
 different technologies/tiers, tuning, security, and other considerations. The 
 basic question is whether a framework is up to that task and whether there is 
 evidence in reality.

 Still back to my original question, any there any large Wicket website out 
 there? Wicket people have to face it, me too, if I am going to use it.


 --- On Wed, 7/1/09, Jeremy Thomerson jer...@wickettraining.com wrote:

 From: Jeremy Thomerson jer...@wickettraining.com
 Subject: Re: Large internet rich UI Wicket websites?
 To: users@wicket.apache.org
 Date: Wednesday, July 1, 2009, 4:08 PM
 There are some large ones that have
 been mentioned on the mailing
 lists in the past - you can try searching Nabble - they may
 not be on
 that page.

 As a side note, I find it funny how everyone always
 compares their
 anticipated traffic with Amazon or eBay.  I worked at
 eBay for quite
 some time, and I know that you are not going to run either
 of those
 sites with any framework straight out of the box.  I'm
 not saying
 Wicket can't scale to that size, I'm saying that no
 framework defaults
 to being made for that size.  Could eBay or Amazon use
 Wicket?  Sure,
 with the right techniques.  Could your website use
 it?  Yes, and
 probably much easier.  :)

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




 On Wed, Jul 1, 2009 at 2:51 PM, David Changdavid_q_zh...@yahoo.com
 wrote:
 
 
  Martin, I looked at the list and it seems none of them
 meets what I said about large rich ui Wicket website. Likely
 I am ignorant. Please enlighten me. By large, I mean
 something similar or close to amazon.com or ebay.com that
 have a large number of concurrent users. Which Wicket
 website in your knowledge seems to the largest one?
 
  Thanks!
 
 
  --- On Wed, 7/1/09, Martin Funk mafulaf...@googlemail.com
 wrote:
 
  From: Martin Funk mafulaf...@googlemail.com
  Subject: Re: Large internet rich UI Wicket
 websites?
  To: users@wicket.apache.org
  Date: Wednesday, July 1, 2009, 3:21 PM
 
  Am 01.07.2009 um 20:11 schrieb David Chang:
 
  
   I am still learning Wicket. The more I read
 from
  Wicket in Action, the more I like
 it.
  
   From the book, I know that companies from
 startups to
  large-size ones such as IBM, Amazon, etc. use
 Wicket for
  their projects, but I cannot find a list of
 specific larget
  internet rich UI websites coded with Wicket. Could
 someone
  help?
  
   The backgound for this request is that we may
 use
  Wicket for a large highly-active website.
  maybe this helps:
  http://cwiki.apache.org/WICKET/sites-using-wicket.html
  mf
  
   Cheers!
  
  
  
  
  
 
 -
   To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
   For additional commands, e-mail: users-h...@wicket.apache.org
  
 
 
 
 -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
 
 
 
 
 -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 

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






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



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



Re: Looking to implement a table that has it all.

2009-07-02 Thread Jeremy Thomerson
I've never used it, but Matej created the inmethod grid:
http://wicketstuff.org/grid-examples/

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




On Thu, Jul 2, 2009 at 1:36 PM, Steve Tarltonstarl...@gmail.com wrote:
 I am looking to develop a table that has sortable columns, using an ajax
 approach of course. I want to highlight the row that one is mousing over
 with one color and ideally if a row is currently selected it would be
 highlighted with a different color. Additionally, I want to have alternating
 colors for the rows that are not selected. Only one row at a time can be
 selected because the row selected displays its values in a form on the left
 hand side.

 I have seen different examples containing pretty much everything I want but
 haven't seen one that does it all. I implemented an example using Igor's
 AjaxFallbackDefaultDataTable, which made it extremely easy to create a
 sortable ajax enabled table :). I have also ran across the alternating
 colors and the mouseover highlighting in the WickeStuff Dojo
 (selectabletable) Example. Is it possible to have it all using one or the
 other approach? Sorry if the answer is obvious, I am still pretty new to
 Wicket.


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



Re: Wicket behind proxy (AJP)

2009-07-02 Thread James Carman
I don't think ProxyPass supports the / path, does it?  At least, it didn't
back when I wanted to set my site up like that.  What I had to do was put a
dummy HTML page in there with a refresh directive to make it go to:
http://mysite/mywicketapp

On Thu, Jul 2, 2009 at 2:27 PM, Sergey Podatelev brightnesslev...@gmail.com
 wrote:

 Hello,

 I know this question had already been asked here, but I still couldn't
 get it working on my side.
 What I'm trying to achieve, is a configuration of Wicket running as
 filter on Tomcat with an Apache host as a frontend. Particular problem
 is with the context path.

 Here's my configuration:
 Tomcat's server.xml:

 ...
 Connector port=8099 protocol=AJP/1.3 redirectPort=8443
 enableLookups=false /
 ...

 Apache's sites-enabled/mysite:

 ...
 VirtualHost 127.0.0.1:80
  ServerName mysite
  IfModule mod_proxy.c
ProxyRequests Off
Proxy *
  Order deny,allow
  Deny from all
  Allow from localhost
/Proxy

ProxyPass/ http://localhost:8084/Mysite/
ProxyPassReverse / http://localhost:8084/Mysite/

# this doesn't work
#ProxyPass/ ajp://localhost:8099/Mysite/
#ProxyPassReverse / ajp://localhost:8099/Mysite/

# this doesn't work either
#ProxyPass/ ajp://localhost:8099/Mysite/
#ProxyPassReverse / http://localhost:8084/Mysite/

ProxyPassReverseCookiePath /Mysite /
  /IfModule
 /VirtualHost
 ...

 The only way I got it working with (almost) no issues is the first
 one, where both ProxyPass and ProxyPassReverse directives use HTTP
 protocol.
 If I try AJP for both, or, as was stated somewhere in the mailing list
 here, HTTP for ProxyPassReverse and AJP for ProxyPass.

 The specific problem is when I access http://mysite/, some Wicket
 requests work fine, some, however, are pointing to
 http://mysite/Mysite/ (this, for instance, happens when I do
 setResponsePage(Page.class, pageParameters). At first, this doesn't
 seem to affect anything, but I have Infinite Redirect Loop error on
 404 page, which is mounted the way it's described on Wicket's wiki.

 I'm not sure, whose problem is this, Wicket's or AJP's.
 I'm sure someone had similar issues and got them solved, I'd really
 appreciate any comments.

 --
 sp

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




Re: Wicket behind proxy (AJP)

2009-07-02 Thread Sergey Podatelev
This doesn't sound like a very smooth way (:
And as I said, it all works perfectly well with HTTP but not with AJP.

On Thu, Jul 2, 2009 at 10:43 PM, James
Carmanjcar...@carmanconsulting.com wrote:
 I don't think ProxyPass supports the / path, does it?  At least, it didn't
 back when I wanted to set my site up like that.  What I had to do was put a
 dummy HTML page in there with a refresh directive to make it go to:
 http://mysite/mywicketapp

 On Thu, Jul 2, 2009 at 2:27 PM, Sergey Podatelev brightnesslev...@gmail.com
 wrote:

 Hello,

 I know this question had already been asked here, but I still couldn't
 get it working on my side.
 What I'm trying to achieve, is a configuration of Wicket running as
 filter on Tomcat with an Apache host as a frontend. Particular problem
 is with the context path.

 Here's my configuration:
 Tomcat's server.xml:

 ...
 Connector port=8099 protocol=AJP/1.3 redirectPort=8443
 enableLookups=false /
 ...

 Apache's sites-enabled/mysite:

 ...
 VirtualHost 127.0.0.1:80
  ServerName mysite
  IfModule mod_proxy.c
    ProxyRequests Off
    Proxy *
      Order deny,allow
      Deny from all
      Allow from localhost
    /Proxy

    ProxyPass        / http://localhost:8084/Mysite/
    ProxyPassReverse / http://localhost:8084/Mysite/

    # this doesn't work
    #ProxyPass        / ajp://localhost:8099/Mysite/
    #ProxyPassReverse / ajp://localhost:8099/Mysite/

    # this doesn't work either
    #ProxyPass        / ajp://localhost:8099/Mysite/
    #ProxyPassReverse / http://localhost:8084/Mysite/

    ProxyPassReverseCookiePath /Mysite /
  /IfModule
 /VirtualHost
 ...

 The only way I got it working with (almost) no issues is the first
 one, where both ProxyPass and ProxyPassReverse directives use HTTP
 protocol.
 If I try AJP for both, or, as was stated somewhere in the mailing list
 here, HTTP for ProxyPassReverse and AJP for ProxyPass.

 The specific problem is when I access http://mysite/, some Wicket
 requests work fine, some, however, are pointing to
 http://mysite/Mysite/ (this, for instance, happens when I do
 setResponsePage(Page.class, pageParameters). At first, this doesn't
 seem to affect anything, but I have Infinite Redirect Loop error on
 404 page, which is mounted the way it's described on Wicket's wiki.

 I'm not sure, whose problem is this, Wicket's or AJP's.
 I'm sure someone had similar issues and got them solved, I'd really
 appreciate any comments.

 --
 sp

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






-- 
sp

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



RE: Wicket behind proxy (AJP)

2009-07-02 Thread Russell Simpkins

 From: jcar...@carmanconsulting.com
 Date: Thu, 2 Jul 2009 14:43:59 -0400
 Subject: Re: Wicket behind proxy (AJP)
 To: users@wicket.apache.org
 
 I don't think ProxyPass supports the / path, does it?  At least, it didn't
 back when I wanted to set my site up like that.  What I had to do was put a
 dummy HTML page in there with a refresh directive to make it go to:
 http://mysite/mywicketapp

ProxyPass supports the /, but it doesn't pass to tomcat very well when you go 
to /. Tomcat will get the request for / through proxy pass, but it gets 
filtered through the default lookup which seems to only look at files and does 
NOT create a request to your servlet. In my case I want all requests to go 
through Spring at *.htm and there is no physical JSP mapped, so it only looks 
at files on disk.
I would love to hear an easy solution. I guess you could create a single JSP 
that forward the request.
Russ
_
Insert movie times and more without leaving Hotmail®. 
http://windowslive.com/Tutorial/Hotmail/QuickAdd?ocid=TXT_TAGLM_WL_HM_Tutorial_QuickAdd_062009

Re: Large internet rich UI Wicket websites?

2009-07-02 Thread David Chang

Igor, thanks very much for your input and insight. I really mean it. 

All the best.


--- On Thu, 7/2/09, Igor Vaynberg igor.vaynb...@gmail.com wrote:

 From: Igor Vaynberg igor.vaynb...@gmail.com
 Subject: Re: Large internet rich UI Wicket websites?
 To: users@wicket.apache.org
 Date: Thursday, July 2, 2009, 2:35 PM
 lets say the entire backend of amazon
 is written in wicket. would you
 consider that to be a large application? how would you ever
 know that
 it was written in wicket? people who work on projects like
 these do
 not often go, or most times are not even allowed, to boast
 on some
 public mailing list.
 
 wicket is best suited for very complex uis, and such uis
 are not often
 suited for public websites - whose mission is to make the
 experience
 as simple as possible for the user. not saying that it
 cannot be done.
 
 i think if this is some sort of a criteria for choosing a
 framework
 you should probably go with servlets. there are some very
 very large
 sites out there written in pure jsp and servlets. good
 luck.
 
 -igor
 
 On Thu, Jul 2, 2009 at 10:57 AM, David Changdavid_q_zh...@yahoo.com
 wrote:
 
 
  Jeremy, thanks for your input. I don't quite
 understand the side note in your reply. For a large website
 such as Amazon to work, there should absolutely be different
 technologies/tiers, tuning, security, and other
 considerations. The basic question is whether a framework is
 up to that task and whether there is evidence in reality.
 
  Still back to my original question, any there any
 large Wicket website out there? Wicket people have to face
 it, me too, if I am going to use it.
 
 
  --- On Wed, 7/1/09, Jeremy Thomerson jer...@wickettraining.com
 wrote:
 
  From: Jeremy Thomerson jer...@wickettraining.com
  Subject: Re: Large internet rich UI Wicket
 websites?
  To: users@wicket.apache.org
  Date: Wednesday, July 1, 2009, 4:08 PM
  There are some large ones that have
  been mentioned on the mailing
  lists in the past - you can try searching Nabble -
 they may
  not be on
  that page.
 
  As a side note, I find it funny how everyone
 always
  compares their
  anticipated traffic with Amazon or eBay.  I
 worked at
  eBay for quite
  some time, and I know that you are not going to
 run either
  of those
  sites with any framework straight out of the
 box.  I'm
  not saying
  Wicket can't scale to that size, I'm saying that
 no
  framework defaults
  to being made for that size.  Could eBay or
 Amazon use
  Wicket?  Sure,
  with the right techniques.  Could your website
 use
  it?  Yes, and
  probably much easier.  :)
 
  --
  Jeremy Thomerson
  http://www.wickettraining.com
 
 
 
 
  On Wed, Jul 1, 2009 at 2:51 PM, David Changdavid_q_zh...@yahoo.com
  wrote:
  
  
   Martin, I looked at the list and it seems
 none of them
  meets what I said about large rich ui Wicket
 website. Likely
  I am ignorant. Please enlighten me. By large, I
 mean
  something similar or close to amazon.com or
 ebay.com that
  have a large number of concurrent users. Which
 Wicket
  website in your knowledge seems to the largest
 one?
  
   Thanks!
  
  
   --- On Wed, 7/1/09, Martin Funk mafulaf...@googlemail.com
  wrote:
  
   From: Martin Funk mafulaf...@googlemail.com
   Subject: Re: Large internet rich UI
 Wicket
  websites?
   To: users@wicket.apache.org
   Date: Wednesday, July 1, 2009, 3:21 PM
  
   Am 01.07.2009 um 20:11 schrieb David
 Chang:
  
   
I am still learning Wicket. The more
 I read
  from
   Wicket in Action, the
 more I like
  it.
   
From the book, I know that companies
 from
  startups to
   large-size ones such as IBM, Amazon, etc.
 use
  Wicket for
   their projects, but I cannot find a list
 of
  specific larget
   internet rich UI websites coded with
 Wicket. Could
  someone
   help?
   
The backgound for this request is
 that we may
  use
   Wicket for a large highly-active
 website.
   maybe this helps:
   http://cwiki.apache.org/WICKET/sites-using-wicket.html
   mf
   
Cheers!
   
   
   
   
   
  
 
 -
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org
   
  
  
  
 
 -
   To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
   For additional commands, e-mail: users-h...@wicket.apache.org
  
  
  
  
  
  
  
 
 -
   To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
   For additional commands, e-mail: users-h...@wicket.apache.org
  
  
 
 
 -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
 
 
 
 
 -
  To unsubscribe, e-mail: 

Re: Looking to implement a table that has it all.

2009-07-02 Thread satar

Jeremy, those examples are PERFECT! Where does one find the source to them :P
-- 
View this message in context: 
http://www.nabble.com/Looking-to-implement-a-table-that-has-it-all.-tp24311958p24312528.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: Large internet rich UI Wicket websites?

2009-07-02 Thread Randy S.
For what it's worth, my employer is a large financial services organization
and we are considering switching to Wicket for all our major internal and
external development. I also have been disappointed while going through the
Wiki page that lists sites using Wicket. Many are not even in existence
anymore, and I saw no high volume sites.

This is not a complaint to anyone. Wicket is what it is, including the
community. My point is that despite the lack of (advertised) usage on high
volume sites, some of us are lurking and see lots of potential.

On Jul 2, 2009 2:16 PM, David Chang david_q_zh...@yahoo.com wrote:


Igor, thanks very much for your input and insight. I really mean it.

All the best.


--- On Thu, 7/2/09, Igor Vaynberg igor.vaynb...@gmail.com wrote:

 From: Igor Vaynberg igor.vaynb...@gmail.com

 Subject: Re: Large internet rich UI Wicket websites?  To:
users@wicket.apache.org
 Date: Thursday, July 2, 2009, 2:35 PM

 lets say the entire backend of amazon  is written in wicket. would you 
consider that to be a la...


Re: Looking to implement a table that has it all.

2009-07-02 Thread satar

Nice, thanks for the pointers Jeremy!

-- 
View this message in context: 
http://www.nabble.com/Looking-to-implement-a-table-that-has-it-all.-tp24311958p24312781.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: Large internet rich UI Wicket websites?

2009-07-02 Thread John Armstrong
I see 3 tiers of sites

Intranet : Low traffic / high functionality with a small audience and
the common wicket use case from what I can tell.

Mid-market : 5 million hits per day

Premium : The ebays and googles of the world.

No one stack can serve the Premium market but I instinctually think
that wicket can do well out of the box in the Mid-market as well if
we had just a bit more info about how people are scaling it in that
range.

John-

On Thu, Jul 2, 2009 at 12:26 PM, Randy S.randypo...@gmail.com wrote:
 For what it's worth, my employer is a large financial services organization
 and we are considering switching to Wicket for all our major internal and
 external development. I also have been disappointed while going through the
 Wiki page that lists sites using Wicket. Many are not even in existence
 anymore, and I saw no high volume sites.

 This is not a complaint to anyone. Wicket is what it is, including the
 community. My point is that despite the lack of (advertised) usage on high
 volume sites, some of us are lurking and see lots of potential.

 On Jul 2, 2009 2:16 PM, David Chang david_q_zh...@yahoo.com wrote:


 Igor, thanks very much for your input and insight. I really mean it.

 All the best.


 --- On Thu, 7/2/09, Igor Vaynberg igor.vaynb...@gmail.com wrote:

 From: Igor Vaynberg igor.vaynb...@gmail.com

 Subject: Re: Large internet rich UI Wicket websites?  To:
 users@wicket.apache.org
 Date: Thursday, July 2, 2009, 2:35 PM

 lets say the entire backend of amazon  is written in wicket. would you 
 consider that to be a la...


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



Image with parameters

2009-07-02 Thread Johannes Schneider
Hi,

I have registered a shared resource with
IndexedSharedResourceCodingStrategy.
Now I want to add an image to one of my pages. But of course I need to
add a parameter to that image. How can this be done? I really can't find
any fitting constructor...

What I have so far is:



ResourceReference imageResource = new ResourceReference(
MyWellKnownKey );

HashMapString, Object map = new HashMapString, Object();
map.put( 0, myParameterIWantToAdd );

CharSequence url = RequestCycle.get().urlFor( imageResource, new
ValueMap( map ) ); //that URL looks good! But what to do with?

add( new Image( image, String.valueOf( url ) ) ); //does not work



Where is

new ResourceReference (MyWellKnownKey , new ValueMap() );



Any hints?


Thanks,

Johannes

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



Re: Image with parameters

2009-07-02 Thread Johannes Schneider
Aah!

Okay, found it
It is exactly where it should be:

add( new Image( image, imageResource, new ValueMap( map ) ) )


Thanks...

Joe

Johannes Schneider wrote:
 Hi,
 
 I have registered a shared resource with
 IndexedSharedResourceCodingStrategy.
 Now I want to add an image to one of my pages. But of course I need to
 add a parameter to that image. How can this be done? I really can't find
 any fitting constructor...
 
 What I have so far is:
 
 
 
 ResourceReference imageResource = new ResourceReference(
 MyWellKnownKey );
 
 HashMapString, Object map = new HashMapString, Object();
 map.put( 0, myParameterIWantToAdd );
 
 CharSequence url = RequestCycle.get().urlFor( imageResource, new
 ValueMap( map ) ); //that URL looks good! But what to do with?
 
 add( new Image( image, String.valueOf( url ) ) ); //does not work
 
 
 
 Where is
 
 new ResourceReference (MyWellKnownKey , new ValueMap() );
 
 
 
 Any hints?
 
 
 Thanks,
 
 Johannes
 

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



Re: Large internet rich UI Wicket websites?

2009-07-02 Thread Igor Vaynberg
what makes you think you need any special tweaking or scaling in
wicket to handle that kind of load?

-igor

On Thu, Jul 2, 2009 at 12:43 PM, John Armstrongsiber...@siberian.org wrote:
 I see 3 tiers of sites

 Intranet : Low traffic / high functionality with a small audience and
 the common wicket use case from what I can tell.

 Mid-market : 5 million hits per day

 Premium : The ebays and googles of the world.

 No one stack can serve the Premium market but I instinctually think
 that wicket can do well out of the box in the Mid-market as well if
 we had just a bit more info about how people are scaling it in that
 range.

 John-

 On Thu, Jul 2, 2009 at 12:26 PM, Randy S.randypo...@gmail.com wrote:
 For what it's worth, my employer is a large financial services organization
 and we are considering switching to Wicket for all our major internal and
 external development. I also have been disappointed while going through the
 Wiki page that lists sites using Wicket. Many are not even in existence
 anymore, and I saw no high volume sites.

 This is not a complaint to anyone. Wicket is what it is, including the
 community. My point is that despite the lack of (advertised) usage on high
 volume sites, some of us are lurking and see lots of potential.

 On Jul 2, 2009 2:16 PM, David Chang david_q_zh...@yahoo.com wrote:


 Igor, thanks very much for your input and insight. I really mean it.

 All the best.


 --- On Thu, 7/2/09, Igor Vaynberg igor.vaynb...@gmail.com wrote:

 From: Igor Vaynberg igor.vaynb...@gmail.com

 Subject: Re: Large internet rich UI Wicket websites?  To:
 users@wicket.apache.org
 Date: Thursday, July 2, 2009, 2:35 PM

 lets say the entire backend of amazon  is written in wicket. would you 
 consider that to be a la...


 -
 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: JDeveloper - Can I get a show of hands?

2009-07-02 Thread John Armstrong
Since we are plugging our favorite DB tools I swear by Database
Workbench Pro (http://www.upscene.com/). The author is extremely
responsive (he'll give you a custom build, usually in 48 hours, when
you find a bug), it supports a nice variety of databases and has some
killer tools like cross-database data migration, schema migration,
schema differentiation, ERD generation etc etc.

Check it out, well worth the money but Windows only so I find myself
in VMWare with it these days.

John-

On Thu, Jul 2, 2009 at 4:55 AM, Richard Allenrichard.l.al...@gmail.com wrote:
 Now that Oracle bought Sun I wonder if JDev and Netbeans will cross paths.

 A great free, cross-platform SQL tool is SQuirreL (
 http://squirrel-sql.sourceforge.net/).


 On Sat, Jun 20, 2009 at 4:45 PM, Scott Swank scott.sw...@gmail.com wrote:

 I'm at best 50% DBA, by training.  You end up with multi-step
 operations that work very well as sql*plus scripts.  I also run
 analogous queries in TOAD, PL/SQL Dev or SQL Dev -- but no DBA worth
 hiring works in the click-and-drag world.  But then I suppose this has
 gotten off topic.

 On Sat, Jun 20, 2009 at 10:37 AM, James
 Carmanjcar...@carmanconsulting.com wrote:
  As a DBA, you use SQL Plus?  I would think most DBAs would either use the
  console thingy that comes with Oracle or Toad.  SQL Plus always seemed a
 bit
  limiting to me, but that's probably because of my limited knowledge of
 all
  the commands, so I need the nice GUI stuff to guide me along. :)
 
  On Sat, Jun 20, 2009 at 1:04 PM, Scott Swank scott.sw...@gmail.com
 wrote:
 
  And if you're an Oracle DBA your main tool is called SQL Plus.
 
  On Fri, Jun 19, 2009 at 8:58 PM, James
  Carmanjcar...@carmanconsulting.com wrote:
   +1 to sqldeveloper (java or native).  For developers (not DBAs), it's
 a
  very
   nice tool and does what you need for the majority of the cases.
  
   On Fri, Jun 19, 2009 at 11:28 PM, Vasu Srinivasan vasy...@gmail.com
  wrote:
  
   JDeveloper is good to target a narrow Oracle infrastructure. We use
 it
  for
   Oracle soa suite, and there are no other IDEs / plugins which can
 match
   that, it has good integration for ADF too. And thats pretty much it.
  
   Otherwise, it doesn't come half close to IDEA or Eclipse. The project
   structure it generates is pretty un-intuitive. Bad IDE is indirectly
   proportional to Productivity. Lack of good plugins is another major
  reason.
  
   Our team has only a few licenses for TOAD, so I use sql developer
 (the
   windows native version, not the java version).. Pretty happy with it,
   though
   it gets a bit slow at times. Last I used the java version was buggy
 and
   low.
  
  
  
   On Fri, Jun 19, 2009 at 9:09 PM, Daniel Toffetti 
 dto...@yahoo.com.ar
   wrote:
  
Juan Carlos Garcia M. jcgarciam at gmail.com writes:

 I always thought God used only in LISP :)

 Nicolas Melendez wrote:
 
  god used Eclipse 1.0 to develop universe.
 
  NM
  Software Developer - Buenos aires, Argentina.
 
   
    No. Sadly, He didn't:
   
   http://xkcd.com/224/
   
Daniel
   
   
   
   
 -
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org
   
   
  
  
   --
   Regards,
   Vasu Srinivasan
  
  
 
  -
  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: Large internet rich UI Wicket websites?

2009-07-02 Thread John Armstrong
Nothing makes me think I can't but the point here is that nothing
makes me think I can ;)

I'll end up doing it at some point. it can't be helped, I've been wicketized.

John-

On Thu, Jul 2, 2009 at 12:53 PM, Igor Vaynbergigor.vaynb...@gmail.com wrote:
 what makes you think you need any special tweaking or scaling in
 wicket to handle that kind of load?

 -igor

 On Thu, Jul 2, 2009 at 12:43 PM, John Armstrongsiber...@siberian.org wrote:
 I see 3 tiers of sites

 Intranet : Low traffic / high functionality with a small audience and
 the common wicket use case from what I can tell.

 Mid-market : 5 million hits per day

 Premium : The ebays and googles of the world.

 No one stack can serve the Premium market but I instinctually think
 that wicket can do well out of the box in the Mid-market as well if
 we had just a bit more info about how people are scaling it in that
 range.

 John-

 On Thu, Jul 2, 2009 at 12:26 PM, Randy S.randypo...@gmail.com wrote:
 For what it's worth, my employer is a large financial services organization
 and we are considering switching to Wicket for all our major internal and
 external development. I also have been disappointed while going through the
 Wiki page that lists sites using Wicket. Many are not even in existence
 anymore, and I saw no high volume sites.

 This is not a complaint to anyone. Wicket is what it is, including the
 community. My point is that despite the lack of (advertised) usage on high
 volume sites, some of us are lurking and see lots of potential.

 On Jul 2, 2009 2:16 PM, David Chang david_q_zh...@yahoo.com wrote:


 Igor, thanks very much for your input and insight. I really mean it.

 All the best.


 --- On Thu, 7/2/09, Igor Vaynberg igor.vaynb...@gmail.com wrote:

 From: Igor Vaynberg igor.vaynb...@gmail.com

 Subject: Re: Large internet rich UI Wicket websites?  To:
 users@wicket.apache.org
 Date: Thursday, July 2, 2009, 2:35 PM

 lets say the entire backend of amazon  is written in wicket. would you 
 consider that to be a la...


 -
 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: Large internet rich UI Wicket websites?

2009-07-02 Thread Christopher L Merrill

Igor Vaynberg wrote:

what makes you think you need any special tweaking or scaling in
wicket to handle that kind of load?


I've got a bit of knowledge (not wicket-specific) in this area and the one
thing I can say for sure is: if there is a financial stake in the project,
then you should never assume it will scale.  The only way to know is to
test it up to (and past) the expected load level.

Chris


Disclaimer: my employer sells load testing software and services.


--
 -
Chris Merrill   |  Web Performance, Inc.
ch...@webperformance.com|  http://webperformance.com
919-433-1762|  919-845-7601

Website Load Testing and Stress Testing Software  Services
 -

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



img tags from external src slow down my page

2009-07-02 Thread Jim Pinkham
Hi,

I have an AjaxFallbackDefaultDataTable on the main page of my Wicket
app with an image column like this:

columns.add(new ImagePropertyColumn(new ResourceModel(imageURL),
imageURL));

My item model has an imageURL string property backed by a database
column, and it pretty much works OK.

I don't need to store any images, bandwidth is low, and it's simple,
but I have seen some users enter URLs to huge TIFF images that are not
properly sized, and it makes my page display take forever.   I'd like
to try to fix or prevent this.

I had a few ideas:

1. a note on the item entry page asking users to 'please don't do that'.   :)
2. add an ImageURLValidator to check the image size somehow... hmmm...
3. find some utility to help read the image, properly size it, and
store a local copy with my own id (filesystem should work fine)
and let my model's imageURL property point to it.

I'm trying to write this so it could scale up a bit without getting
crazy - This app lists items for a charity fundraising auction event,
so access is light for several weeks, then peaks at about 300 hits per
day (I know, not much) for a few days.  But on those peak days, I'd
like it to be fast (despite the decrepit old server it's running on).

I've got about 300 items to show on a single page (users prefer a
simple scrollbar without pagination).   Also, I should mention that I
have a search form that 'decorates' the matching text as it filters
rows, and I'd like to make it fast enough to take away the search
button and just ajax refresh on keypresses.

Thanks for any suggestions, links to examples ...etc.
-- Jim.

http://firstuucolumbus.org/auction

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



Re: img tags from external src slow down my page

2009-07-02 Thread Igor Vaynberg
its a matter of building a simple cache. all  you need is a servlet
that can check if the image is on disk and if not download it, then
serve it from there

mount the servlet on /external and rewrite your urls to be
/external?url=imageurl

there are probably already things like this for apache, you just have
to rewrite the url so it passes through your site and doesnt go
directly to the external one.

-igor

On Thu, Jul 2, 2009 at 1:57 PM, Jim Pinkhampinkh...@gmail.com wrote:
 Hi,

 I have an AjaxFallbackDefaultDataTable on the main page of my Wicket
 app with an image column like this:

        columns.add(new ImagePropertyColumn(new ResourceModel(imageURL),
 imageURL));

 My item model has an imageURL string property backed by a database
 column, and it pretty much works OK.

 I don't need to store any images, bandwidth is low, and it's simple,
 but I have seen some users enter URLs to huge TIFF images that are not
 properly sized, and it makes my page display take forever.   I'd like
 to try to fix or prevent this.

 I had a few ideas:

 1. a note on the item entry page asking users to 'please don't do that'.   :)
 2. add an ImageURLValidator to check the image size somehow... hmmm...
 3. find some utility to help read the image, properly size it, and
 store a local copy with my own id (filesystem should work fine)
 and let my model's imageURL property point to it.

 I'm trying to write this so it could scale up a bit without getting
 crazy - This app lists items for a charity fundraising auction event,
 so access is light for several weeks, then peaks at about 300 hits per
 day (I know, not much) for a few days.  But on those peak days, I'd
 like it to be fast (despite the decrepit old server it's running on).

 I've got about 300 items to show on a single page (users prefer a
 simple scrollbar without pagination).   Also, I should mention that I
 have a search form that 'decorates' the matching text as it filters
 rows, and I'd like to make it fast enough to take away the search
 button and just ajax refresh on keypresses.

 Thanks for any suggestions, links to examples ...etc.
 -- Jim.

 http://firstuucolumbus.org/auction

 -
 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: img tags from external src slow down my page

2009-07-02 Thread nino martinez wael
Yeah I think the apache proxy mod are one good bet for this ... So if
you are using apache http, just add the proxy directive..

2009/7/2 Igor Vaynberg igor.vaynb...@gmail.com:
 its a matter of building a simple cache. all  you need is a servlet
 that can check if the image is on disk and if not download it, then
 serve it from there

 mount the servlet on /external and rewrite your urls to be
 /external?url=imageurl

 there are probably already things like this for apache, you just have
 to rewrite the url so it passes through your site and doesnt go
 directly to the external one.

 -igor

 On Thu, Jul 2, 2009 at 1:57 PM, Jim Pinkhampinkh...@gmail.com wrote:
 Hi,

 I have an AjaxFallbackDefaultDataTable on the main page of my Wicket
 app with an image column like this:

        columns.add(new ImagePropertyColumn(new ResourceModel(imageURL),
 imageURL));

 My item model has an imageURL string property backed by a database
 column, and it pretty much works OK.

 I don't need to store any images, bandwidth is low, and it's simple,
 but I have seen some users enter URLs to huge TIFF images that are not
 properly sized, and it makes my page display take forever.   I'd like
 to try to fix or prevent this.

 I had a few ideas:

 1. a note on the item entry page asking users to 'please don't do that'.   :)
 2. add an ImageURLValidator to check the image size somehow... hmmm...
 3. find some utility to help read the image, properly size it, and
 store a local copy with my own id (filesystem should work fine)
 and let my model's imageURL property point to it.

 I'm trying to write this so it could scale up a bit without getting
 crazy - This app lists items for a charity fundraising auction event,
 so access is light for several weeks, then peaks at about 300 hits per
 day (I know, not much) for a few days.  But on those peak days, I'd
 like it to be fast (despite the decrepit old server it's running on).

 I've got about 300 items to show on a single page (users prefer a
 simple scrollbar without pagination).   Also, I should mention that I
 have a search form that 'decorates' the matching text as it filters
 rows, and I'd like to make it fast enough to take away the search
 button and just ajax refresh on keypresses.

 Thanks for any suggestions, links to examples ...etc.
 -- Jim.

 http://firstuucolumbus.org/auction

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

2009-07-02 Thread Joshua Martin
Finally figured it out... For the benefit of others, my entire page
with the AjaxFallbackLink w/ custom text:


@SuppressWarnings(serial)
public AssetsPage () {

// List for columns
ListIColumn columns = new ArrayListIColumn();

// Abstract column for showing a pop up window with details
columns.add(new AbstractColumn(new Model()) {

public void populateItem(Item cellItem, String componentId,
IModel rowModel) {

final Workstation item = 
(Workstation)rowModel.getObject();

// HashMap for all the item's values - will be sent to 
window
final HashMapString, String map = new HashMapString, 
String();
map.put(AGENTIDENTIFIER, item.getAgentIdentifier());
map.put(HOSTNAME, item.getHostname());
map.put(DOMAIN, item.getDomainname());
map.put(FQDN, item.getFqdn());
map.put(IP,The IP Address);
map.put(NETMASK, The Netmask);
map.put(GATEWAY, item.getGateway());
map.put(DNS1, item.getDns1());
map.put(DNS2, item.getDns2());

// ModalWindow functions as a pop up window with the 
item's details
final ModalWindow modalWindowDetail;
add(modalWindowDetail = new ModalWindow(modalWindowDetail));

// Action for close button callback
modalWindowDetail.setCloseButtonCallback(new
ModalWindow.CloseButtonCallback()
{
public boolean onCloseButtonClicked(AjaxRequestTarget 
target)
{
return true;
}
});

// Action for window close
modalWindowDetail.setWindowClosedCallback(new
ModalWindow.WindowClosedCallback()
{
public void onClose(AjaxRequestTarget target)
{
// Do Nothing
}
});


AjaxFallbackLink link = new AjaxFallbackLink(componentId) {

@Override
public void onClick(AjaxRequestTarget 
target) {
System.out.println(Viewed 
Details for  + item.getAgentIdentifier());
modalWindowDetail.setTitle(Detail:  + 
item.getHostname());

modalWindowDetail.setCookieName(modal-window-detail);
modalWindowDetail.setContent(new
ModalPanel1(modalWindowDetail.getContentId(), map));
modalWindowDetail.show(target);
}

public void onComponentTagBody(MarkupStream 
markupStream,
ComponentTag openTag) {
String linkText = a href=\#\View 
Details/a;
replaceComponentTagBody(markupStream, 
openTag, linkText);
}
};

cellItem.add(link);
}

});

// Property columns
columns.add(new PropertyColumn(new Model(Agent Identifier),
agentIdentifier, agentIdentifier));
columns.add(new PropertyColumn(new Model(Hostname), 
hostname,
hostname));
columns.add(new PropertyColumn(new Model(FQDN), fqdn, 
fqdn));

// Add the datatable to the page
add(new DefaultDataTable(datatable, columns, new
SortableWorkstationProvider(), 8));
}

--
_

Joshua S. Martin

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