Adding components to Pages based on conditionals

2009-04-17 Thread Subramanian Murali
Hi,
I am a new wicket user.
How do we include / exclude content or components in pages based on
conditions.
What is the equivalent in Wicket to the if tag in the JSTL tag library?

The reason i ask this question is because irrespective of whether i add the
component in the page, i need to have the markup for the component in the
HTML.

Thanks in advance for the answers.

Thanks,
Subbu.


Re: Adding components to Pages based on conditionals

2009-04-17 Thread Vladimir K

Try EmptyPanel component which is shipped with Wicket.

if (condition)
  add(new YourVisibleComponent(componentId));
else
  add(new EmptyPanel(componentId));

Do not forget about OOD. You can introduce createYourVisibleComponent()
method which creates empty panel in base class and some certain component in
derived classes.


subbu_tce wrote:
 
 Hi,
 I am a new wicket user.
 How do we include / exclude content or components in pages based on
 conditions.
 What is the equivalent in Wicket to the if tag in the JSTL tag library?
 
 The reason i ask this question is because irrespective of whether i add
 the
 component in the page, i need to have the markup for the component in the
 HTML.
 
 Thanks in advance for the answers.
 
 Thanks,
 Subbu.
 
 

-- 
View this message in context: 
http://www.nabble.com/Adding-components-to-Pages-based-on-conditionals-tp23091567p23092032.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: [OT] Wicket spirited conference?

2009-04-17 Thread Linda van der Pal
Well we could just set a date somewhere in the future and just organize 
something. I have no idea how large the Wicket community in the 
Netherlands is (I'm guessing the numbers were a bit skewed at the one 
meeting I was at, due to international guests who attended ApacheCon). 
But if the group who can attend isn't too large, we can just arrange a 
table at a bar or restaurant.


So how many people would be interested in an informal meeting (i.e. 
without sessions) in Amsterdam?


Regards,
Linda

Nino Martinez wrote:

... since meetups in netherlands seems to be rather spontaneous (and therefore
hard to plan)...


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



Re: Adding components to Pages based on conditionals

2009-04-17 Thread Emond Papegaaij
Personally, I think, it is much more elegant to call setVisible on the 
component you want to display or hide, or, when the outcome of the condition 
can change on each render, override isVisible to return the outcome of the 
condition.

Emond Papegaaij

On Friday 17 April 2009 08:50:21 Vladimir K wrote:
 Try EmptyPanel component which is shipped with Wicket.

 if (condition)
   add(new YourVisibleComponent(componentId));
 else
   add(new EmptyPanel(componentId));

 Do not forget about OOD. You can introduce createYourVisibleComponent()
 method which creates empty panel in base class and some certain component
 in derived classes.

 subbu_tce wrote:
  Hi,
  I am a new wicket user.
  How do we include / exclude content or components in pages based on
  conditions.
  What is the equivalent in Wicket to the if tag in the JSTL tag library?
 
  The reason i ask this question is because irrespective of whether i add
  the
  component in the page, i need to have the markup for the component in the
  HTML.
 
  Thanks in advance for the answers.
 
  Thanks,
  Subbu.


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



Re: wicket-ajax and IE performance problems for pages with many links

2009-04-17 Thread Peter Gardfjäll
Thanks Igor,

the suggested workaround seems to work fine. However, it is not enough
to just override the attachFocusEvent function -- you also need to
deregister the previously registered function. I did as follows (I
apologize for the lack of elegance, I'm not a js expert):

if (typeof(Wicket) != undefined) {
  if (typeof(Wicket.Focus) != undefined) {
// Deregister old attachFocusEvent function
handlers = Wicket.Event.domReadyHandlers;
filteredHandlers = new Array();
for(i = 0; i  handlers.length; i++) {
   if (handlers[i] != Wicket.Focus.attachFocusEvent) {
  filteredHandlers.push(handlers[i]);
   }
}
Wicket.Event.domReadyHandlers = filteredHandlers;

// Redefine and re-register attachFocusEvent
Wicket.Focus.attachFocusEvent=function() {
  Wicket.Focus.setFocusOnElements(document.getElementsByTagName(input));
  Wicket.Focus.setFocusOnElements(document.getElementsByTagName(select));
  
Wicket.Focus.setFocusOnElements(document.getElementsByTagName(textarea));
  
//Wicket.Focus.setFocusOnElements(document.getElementsByTagName(button));
  //Wicket.Focus.setFocusOnElements(document.getElementsByTagName(a));
}
Wicket.Event.addDomReadyEvent(Wicket.Focus.attachFocusEvent);
  }
}


By the way, I believe that this is, or has the potential of becoming,
a major stumbling block for others.
Should it be regarded as a bug?

kind regards, Peter


On Thu, Apr 16, 2009 at 6:23 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote:
 you can try adding this to the head after wicket-ajax.js

 script
 if (Wicket!=undefined) {
  if (Wicket.Focus!=undefined) {
   Wicket.Focus.attachFocusEvent=function() {
     Wicket.Focus.setFocusOnElements(document.getElementsByTagName(input));
     Wicket.Focus.setFocusOnElements(document.getElementsByTagName(select));
     
 Wicket.Focus.setFocusOnElements(document.getElementsByTagName(textarea));
     
 //Wicket.Focus.setFocusOnElements(document.getElementsByTagName(button));
     //Wicket.Focus.setFocusOnElements(document.getElementsByTagName(a));
   }
  }
 }


 -igor

 On Thu, Apr 16, 2009 at 9:16 AM, James Carman
 jcar...@carmanconsulting.com wrote:
 So, we understand what's slowing us down?  Any way to turn that stuff
 off on our end to get stuff working?  I've got a release going out the
 door that's slow as heck on IE right now.

 On Thu, Apr 16, 2009 at 12:03 PM, Igor Vaynberg igor.vaynb...@gmail.com 
 wrote:
 this code is there so we can track focus and properly restore it after
 ajax modifies the dom. i am not sure why we need to track and restore
 focus on anchors, it is only important when you are typing so that the
 cursor doesnt move elsewhere - so only for textfields and textareas.

 johan, matej says you wanted to track focus for anchors, whats the deal?

 -igor

 2009/4/16 Peter Gardfjäll peter.gardfj...@gmail.com:
 Hi James,

 I'm pretty sure that links are part of the problem.
 To verify this, try replacing all a tags with e.g. span and see if
 you can spot any difference in response time.
 Alternatively, try replacing/commenting out ajax components/behaviors
 on your page to prevent wicket-ajax.js from being pulled into the
 page.

 cheers, Peter

 On Thu, Apr 16, 2009 at 3:52 PM, James Carman
 jcar...@carmanconsulting.com wrote:
 Peter,
 I have experienced similar problems just recently.  I didn't narrow it 
 down
 to the fact that the links were the problem, as you have, though!  I have
 been racking my brains trying to figure this thing out.  My page is 
 similar,
 a table with lots of cells in them that are links.  I've turned off CSS 
 and
 other stuff trying to find the bottleneck.  I didn't think for a moment 
 that
 it might be the links.

 James

 2009/4/16 Peter Gardfjäll peter.gardfj...@gmail.com

 Hi all,

 I am working on a wicket application intended to be executed both on
 FF3 and IE7.
 While working on this application I have discovered that the rendering
 of some pages are a lot slower in IE.
 The pages that were significantly slower on IE have a couple of things
 in common: they are ajax-enabled and have lots of links.
 These pages all appear to freeze for a while after all data has been
 transferred, but before the page becomes responsive.

 The reason (or at least one of the reasons) is that wicket-ajax.js,
 which gets pulled in whenever an Ajax component/behavior is added to a
 page, registers a function
 (addDomReadyEvent(Wicket.Focus.attachFocusEvent)) that traverses all
 {input,select,a,textarea,button} tags in the DOM tree when the page
 has been loaded.

 I timed this function for one of my pages (containing a single big
 table with around 300 rows, with each row having about six links).
 When the function is registered, the fireDomReadyHandlers in
 wicket-event.js takes 2400 ms to execute, compared to 700 ms when not
 registered. In firefox, the corresponding numbers are about 470 ms and
 400 ms.

 Hence, there seems to be quite a performance penalty involved in
 loading 

Re: wicket-ajax and IE performance problems for pages with many links

2009-04-17 Thread Johan Compagner
Buttons and links dont make much sense yes.
Dont remember why we should do this.
Will check the code

On 16/04/2009, Igor Vaynberg igor.vaynb...@gmail.com wrote:
 this code is there so we can track focus and properly restore it after
 ajax modifies the dom. i am not sure why we need to track and restore
 focus on anchors, it is only important when you are typing so that the
 cursor doesnt move elsewhere - so only for textfields and textareas.

 johan, matej says you wanted to track focus for anchors, whats the deal?

 -igor

 2009/4/16 Peter Gardfjäll peter.gardfj...@gmail.com:
 Hi James,

 I'm pretty sure that links are part of the problem.
 To verify this, try replacing all a tags with e.g. span and see if
 you can spot any difference in response time.
 Alternatively, try replacing/commenting out ajax components/behaviors
 on your page to prevent wicket-ajax.js from being pulled into the
 page.

 cheers, Peter

 On Thu, Apr 16, 2009 at 3:52 PM, James Carman
 jcar...@carmanconsulting.com wrote:
 Peter,
 I have experienced similar problems just recently.  I didn't narrow it
 down
 to the fact that the links were the problem, as you have, though!  I have
 been racking my brains trying to figure this thing out.  My page is
 similar,
 a table with lots of cells in them that are links.  I've turned off CSS
 and
 other stuff trying to find the bottleneck.  I didn't think for a moment
 that
 it might be the links.

 James

 2009/4/16 Peter Gardfjäll peter.gardfj...@gmail.com

 Hi all,

 I am working on a wicket application intended to be executed both on
 FF3 and IE7.
 While working on this application I have discovered that the rendering
 of some pages are a lot slower in IE.
 The pages that were significantly slower on IE have a couple of things
 in common: they are ajax-enabled and have lots of links.
 These pages all appear to freeze for a while after all data has been
 transferred, but before the page becomes responsive.

 The reason (or at least one of the reasons) is that wicket-ajax.js,
 which gets pulled in whenever an Ajax component/behavior is added to a
 page, registers a function
 (addDomReadyEvent(Wicket.Focus.attachFocusEvent)) that traverses all
 {input,select,a,textarea,button} tags in the DOM tree when the page
 has been loaded.

 I timed this function for one of my pages (containing a single big
 table with around 300 rows, with each row having about six links).
 When the function is registered, the fireDomReadyHandlers in
 wicket-event.js takes 2400 ms to execute, compared to 700 ms when not
 registered. In firefox, the corresponding numbers are about 470 ms and
 400 ms.

 Hence, there seems to be quite a performance penalty involved in
 loading ajax pages with lots of links in IE7.
 I'm a bit worried about this overhead, particularly since I have a
 rather fast machine (a lot better than most of the end users anyway).
 I would not be surprised if clients see double page load times.

 Have anyone on this list experienced similar problems?
 Is this a known issue? (I have not been able to find anything similar
 on the mailing list)
 Any suggestions or pointers are welcome.

 best regards, Peter

 /PS By the way, I am using wicket 1.3.5.

 -
 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: wicket-ajax and IE performance problems for pages with many links

2009-04-17 Thread Matej Knopp
Well, it kinda does. You can submit the links and buttons with
keyboard  - and when you do it does make sense to preserve focus when
you replace the submitting button or link.

-Matej

On Fri, Apr 17, 2009 at 9:48 AM, Johan Compagner jcompag...@gmail.com wrote:
 Buttons and links dont make much sense yes.
 Dont remember why we should do this.
 Will check the code

 On 16/04/2009, Igor Vaynberg igor.vaynb...@gmail.com wrote:
 this code is there so we can track focus and properly restore it after
 ajax modifies the dom. i am not sure why we need to track and restore
 focus on anchors, it is only important when you are typing so that the
 cursor doesnt move elsewhere - so only for textfields and textareas.

 johan, matej says you wanted to track focus for anchors, whats the deal?

 -igor

 2009/4/16 Peter Gardfjäll peter.gardfj...@gmail.com:
 Hi James,

 I'm pretty sure that links are part of the problem.
 To verify this, try replacing all a tags with e.g. span and see if
 you can spot any difference in response time.
 Alternatively, try replacing/commenting out ajax components/behaviors
 on your page to prevent wicket-ajax.js from being pulled into the
 page.

 cheers, Peter

 On Thu, Apr 16, 2009 at 3:52 PM, James Carman
 jcar...@carmanconsulting.com wrote:
 Peter,
 I have experienced similar problems just recently.  I didn't narrow it
 down
 to the fact that the links were the problem, as you have, though!  I have
 been racking my brains trying to figure this thing out.  My page is
 similar,
 a table with lots of cells in them that are links.  I've turned off CSS
 and
 other stuff trying to find the bottleneck.  I didn't think for a moment
 that
 it might be the links.

 James

 2009/4/16 Peter Gardfjäll peter.gardfj...@gmail.com

 Hi all,

 I am working on a wicket application intended to be executed both on
 FF3 and IE7.
 While working on this application I have discovered that the rendering
 of some pages are a lot slower in IE.
 The pages that were significantly slower on IE have a couple of things
 in common: they are ajax-enabled and have lots of links.
 These pages all appear to freeze for a while after all data has been
 transferred, but before the page becomes responsive.

 The reason (or at least one of the reasons) is that wicket-ajax.js,
 which gets pulled in whenever an Ajax component/behavior is added to a
 page, registers a function
 (addDomReadyEvent(Wicket.Focus.attachFocusEvent)) that traverses all
 {input,select,a,textarea,button} tags in the DOM tree when the page
 has been loaded.

 I timed this function for one of my pages (containing a single big
 table with around 300 rows, with each row having about six links).
 When the function is registered, the fireDomReadyHandlers in
 wicket-event.js takes 2400 ms to execute, compared to 700 ms when not
 registered. In firefox, the corresponding numbers are about 470 ms and
 400 ms.

 Hence, there seems to be quite a performance penalty involved in
 loading ajax pages with lots of links in IE7.
 I'm a bit worried about this overhead, particularly since I have a
 rather fast machine (a lot better than most of the end users anyway).
 I would not be surprised if clients see double page load times.

 Have anyone on this list experienced similar problems?
 Is this a known issue? (I have not been able to find anything similar
 on the mailing list)
 Any suggestions or pointers are welcome.

 best regards, Peter

 /PS By the way, I am using wicket 1.3.5.

 -
 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: wicket-ajax and IE performance problems for pages with many links

2009-04-17 Thread Peter Gardfjäll
I have written a simple WicketAjaxJsPatch Behavior which simply adds
the aforementioned javascript to the page.
In our application, we have several pages that suffer from the same problem.
It would be tedious to have to update all of these pages one-by-one.
So is there any way for me to add this Behavior to my parent page
(which other pages extend) and still have the javascript rendered last
in the head?

regards, Peter

2009/4/17 Peter Gardfjäll peter.gardfj...@gmail.com:
 Thanks Igor,

 the suggested workaround seems to work fine. However, it is not enough
 to just override the attachFocusEvent function -- you also need to
 deregister the previously registered function. I did as follows (I
 apologize for the lack of elegance, I'm not a js expert):

 if (typeof(Wicket) != undefined) {
  if (typeof(Wicket.Focus) != undefined) {
    // Deregister old attachFocusEvent function
    handlers = Wicket.Event.domReadyHandlers;
    filteredHandlers = new Array();
    for(i = 0; i  handlers.length; i++) {
       if (handlers[i] != Wicket.Focus.attachFocusEvent) {
          filteredHandlers.push(handlers[i]);
       }
    }
    Wicket.Event.domReadyHandlers = filteredHandlers;

    // Redefine and re-register attachFocusEvent
    Wicket.Focus.attachFocusEvent=function() {
      Wicket.Focus.setFocusOnElements(document.getElementsByTagName(input));
      Wicket.Focus.setFocusOnElements(document.getElementsByTagName(select));
      
 Wicket.Focus.setFocusOnElements(document.getElementsByTagName(textarea));
      
 //Wicket.Focus.setFocusOnElements(document.getElementsByTagName(button));
      //Wicket.Focus.setFocusOnElements(document.getElementsByTagName(a));
    }
    Wicket.Event.addDomReadyEvent(Wicket.Focus.attachFocusEvent);
  }
 }


 By the way, I believe that this is, or has the potential of becoming,
 a major stumbling block for others.
 Should it be regarded as a bug?

 kind regards, Peter


 On Thu, Apr 16, 2009 at 6:23 PM, Igor Vaynberg igor.vaynb...@gmail.com 
 wrote:
 you can try adding this to the head after wicket-ajax.js

 script
 if (Wicket!=undefined) {
  if (Wicket.Focus!=undefined) {
   Wicket.Focus.attachFocusEvent=function() {
     Wicket.Focus.setFocusOnElements(document.getElementsByTagName(input));
     Wicket.Focus.setFocusOnElements(document.getElementsByTagName(select));
     
 Wicket.Focus.setFocusOnElements(document.getElementsByTagName(textarea));
     
 //Wicket.Focus.setFocusOnElements(document.getElementsByTagName(button));
     //Wicket.Focus.setFocusOnElements(document.getElementsByTagName(a));
   }
  }
 }


 -igor

 On Thu, Apr 16, 2009 at 9:16 AM, James Carman
 jcar...@carmanconsulting.com wrote:
 So, we understand what's slowing us down?  Any way to turn that stuff
 off on our end to get stuff working?  I've got a release going out the
 door that's slow as heck on IE right now.

 On Thu, Apr 16, 2009 at 12:03 PM, Igor Vaynberg igor.vaynb...@gmail.com 
 wrote:
 this code is there so we can track focus and properly restore it after
 ajax modifies the dom. i am not sure why we need to track and restore
 focus on anchors, it is only important when you are typing so that the
 cursor doesnt move elsewhere - so only for textfields and textareas.

 johan, matej says you wanted to track focus for anchors, whats the deal?

 -igor

 2009/4/16 Peter Gardfjäll peter.gardfj...@gmail.com:
 Hi James,

 I'm pretty sure that links are part of the problem.
 To verify this, try replacing all a tags with e.g. span and see if
 you can spot any difference in response time.
 Alternatively, try replacing/commenting out ajax components/behaviors
 on your page to prevent wicket-ajax.js from being pulled into the
 page.

 cheers, Peter

 On Thu, Apr 16, 2009 at 3:52 PM, James Carman
 jcar...@carmanconsulting.com wrote:
 Peter,
 I have experienced similar problems just recently.  I didn't narrow it 
 down
 to the fact that the links were the problem, as you have, though!  I have
 been racking my brains trying to figure this thing out.  My page is 
 similar,
 a table with lots of cells in them that are links.  I've turned off CSS 
 and
 other stuff trying to find the bottleneck.  I didn't think for a moment 
 that
 it might be the links.

 James

 2009/4/16 Peter Gardfjäll peter.gardfj...@gmail.com

 Hi all,

 I am working on a wicket application intended to be executed both on
 FF3 and IE7.
 While working on this application I have discovered that the rendering
 of some pages are a lot slower in IE.
 The pages that were significantly slower on IE have a couple of things
 in common: they are ajax-enabled and have lots of links.
 These pages all appear to freeze for a while after all data has been
 transferred, but before the page becomes responsive.

 The reason (or at least one of the reasons) is that wicket-ajax.js,
 which gets pulled in whenever an Ajax component/behavior is added to a
 page, registers a function
 (addDomReadyEvent(Wicket.Focus.attachFocusEvent)) that traverses all
 

Re: [OT] Wicket spirited conference?

2009-04-17 Thread nino martinez wael
For me it had to have some sessions etc, I'll be happy to on
something. But otherwise it's hard to justify..

regadrs Nino

2009/4/17 Linda van der Pal lvd...@heritageagenturen.nl:
 Well we could just set a date somewhere in the future and just organize
 something. I have no idea how large the Wicket community in the Netherlands
 is (I'm guessing the numbers were a bit skewed at the one meeting I was at,
 due to international guests who attended ApacheCon). But if the group who
 can attend isn't too large, we can just arrange a table at a bar or
 restaurant.

 So how many people would be interested in an informal meeting (i.e. without
 sessions) in Amsterdam?

 Regards,
 Linda

 Nino Martinez wrote:

 ... since meetups in netherlands seems to be rather spontaneous (and
 therefore
 hard to plan)...

 -
 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



AbstractAjaxTimerBehavior start

2009-04-17 Thread Vladimir Zavada

Hi,
is there a way to start AbstractAjaxTimerBehavior after onSubmit event 
of AjaxButton, which is on the same page?


Thx in advance.

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



Re: [OT] Wicket spirited conference?

2009-04-17 Thread Linda van der Pal
If you want sessions, a sponsor will have to be found for a room (and a 
beamer).


nino martinez wael wrote:

For me it had to have some sessions etc, I'll be happy to on
something. But otherwise it's hard to justify..

regadrs Nino

2009/4/17 Linda van der Pal lvd...@heritageagenturen.nl:
  

Well we could just set a date somewhere in the future and just organize
something. I have no idea how large the Wicket community in the Netherlands
is (I'm guessing the numbers were a bit skewed at the one meeting I was at,
due to international guests who attended ApacheCon). But if the group who
can attend isn't too large, we can just arrange a table at a bar or
restaurant.

So how many people would be interested in an informal meeting (i.e. without
sessions) in Amsterdam?

Regards,
Linda

Nino Martinez wrote:


... since meetups in netherlands seems to be rather spontaneous (and
therefore
hard to plan)...
  

-
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
  




No virus found in this incoming message.
Checked by AVG - www.avg.com 
Version: 8.5.287 / Virus Database: 270.11.59/2063 - Release Date: 04/16/09 16:38:00


  



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



Re: wicket-ajax and IE performance problems for pages with many links

2009-04-17 Thread James Carman
Did that code actually work for you?  I tried adding this js, but i
couldn't get it to show up in the correct place.  And, when I did, it
didn't seem to improve much.  Care to share your code?

2009/4/17 Peter Gardfjäll peter.gardfj...@gmail.com:
 I have written a simple WicketAjaxJsPatch Behavior which simply adds
 the aforementioned javascript to the page.
 In our application, we have several pages that suffer from the same problem.
 It would be tedious to have to update all of these pages one-by-one.
 So is there any way for me to add this Behavior to my parent page
 (which other pages extend) and still have the javascript rendered last
 in the head?

 regards, Peter

 2009/4/17 Peter Gardfjäll peter.gardfj...@gmail.com:
 Thanks Igor,

 the suggested workaround seems to work fine. However, it is not enough
 to just override the attachFocusEvent function -- you also need to
 deregister the previously registered function. I did as follows (I
 apologize for the lack of elegance, I'm not a js expert):

 if (typeof(Wicket) != undefined) {
  if (typeof(Wicket.Focus) != undefined) {
    // Deregister old attachFocusEvent function
    handlers = Wicket.Event.domReadyHandlers;
    filteredHandlers = new Array();
    for(i = 0; i  handlers.length; i++) {
       if (handlers[i] != Wicket.Focus.attachFocusEvent) {
          filteredHandlers.push(handlers[i]);
       }
    }
    Wicket.Event.domReadyHandlers = filteredHandlers;

    // Redefine and re-register attachFocusEvent
    Wicket.Focus.attachFocusEvent=function() {
      Wicket.Focus.setFocusOnElements(document.getElementsByTagName(input));
      
 Wicket.Focus.setFocusOnElements(document.getElementsByTagName(select));
      
 Wicket.Focus.setFocusOnElements(document.getElementsByTagName(textarea));
      
 //Wicket.Focus.setFocusOnElements(document.getElementsByTagName(button));
      //Wicket.Focus.setFocusOnElements(document.getElementsByTagName(a));
    }
    Wicket.Event.addDomReadyEvent(Wicket.Focus.attachFocusEvent);
  }
 }


 By the way, I believe that this is, or has the potential of becoming,
 a major stumbling block for others.
 Should it be regarded as a bug?

 kind regards, Peter


 On Thu, Apr 16, 2009 at 6:23 PM, Igor Vaynberg igor.vaynb...@gmail.com 
 wrote:
 you can try adding this to the head after wicket-ajax.js

 script
 if (Wicket!=undefined) {
  if (Wicket.Focus!=undefined) {
   Wicket.Focus.attachFocusEvent=function() {
     Wicket.Focus.setFocusOnElements(document.getElementsByTagName(input));
     
 Wicket.Focus.setFocusOnElements(document.getElementsByTagName(select));
     
 Wicket.Focus.setFocusOnElements(document.getElementsByTagName(textarea));
     
 //Wicket.Focus.setFocusOnElements(document.getElementsByTagName(button));
     //Wicket.Focus.setFocusOnElements(document.getElementsByTagName(a));
   }
  }
 }


 -igor

 On Thu, Apr 16, 2009 at 9:16 AM, James Carman
 jcar...@carmanconsulting.com wrote:
 So, we understand what's slowing us down?  Any way to turn that stuff
 off on our end to get stuff working?  I've got a release going out the
 door that's slow as heck on IE right now.

 On Thu, Apr 16, 2009 at 12:03 PM, Igor Vaynberg igor.vaynb...@gmail.com 
 wrote:
 this code is there so we can track focus and properly restore it after
 ajax modifies the dom. i am not sure why we need to track and restore
 focus on anchors, it is only important when you are typing so that the
 cursor doesnt move elsewhere - so only for textfields and textareas.

 johan, matej says you wanted to track focus for anchors, whats the deal?

 -igor

 2009/4/16 Peter Gardfjäll peter.gardfj...@gmail.com:
 Hi James,

 I'm pretty sure that links are part of the problem.
 To verify this, try replacing all a tags with e.g. span and see if
 you can spot any difference in response time.
 Alternatively, try replacing/commenting out ajax components/behaviors
 on your page to prevent wicket-ajax.js from being pulled into the
 page.

 cheers, Peter

 On Thu, Apr 16, 2009 at 3:52 PM, James Carman
 jcar...@carmanconsulting.com wrote:
 Peter,
 I have experienced similar problems just recently.  I didn't narrow it 
 down
 to the fact that the links were the problem, as you have, though!  I 
 have
 been racking my brains trying to figure this thing out.  My page is 
 similar,
 a table with lots of cells in them that are links.  I've turned off CSS 
 and
 other stuff trying to find the bottleneck.  I didn't think for a moment 
 that
 it might be the links.

 James

 2009/4/16 Peter Gardfjäll peter.gardfj...@gmail.com

 Hi all,

 I am working on a wicket application intended to be executed both on
 FF3 and IE7.
 While working on this application I have discovered that the rendering
 of some pages are a lot slower in IE.
 The pages that were significantly slower on IE have a couple of things
 in common: they are ajax-enabled and have lots of links.
 These pages all appear to freeze for a while after all data has been
 transferred, but before the page becomes responsive.


Re: wicket-ajax and IE performance problems for pages with many links

2009-04-17 Thread Peter Gardfjäll
Sure,
here goes. I have added both the java and the js file to the same Java package:

WicketAjaxJsPatch.java
==

/**
 * {...@link IBehavior} that should be added to {...@link Page}s that need to 
prevent
 * the page load performance penalty incurred when wicket-ajax.js traverses all
 * lt;agt; tags in the page markup.
 *
 * p/
 * For background information, see a
href=http://www.nabble.com/wicket-ajax-and-IE-performance-problems-for-pages-with-many-links-td23078336.html;
 * this mailing list thread/a
 * p/
 * This behavior simply makes sure that our patch gets applied to wicket-ajax.js
 * (by forcing wicket-ajax.js to be added to the page head prior to
 * wicket-ajax-patch.js).
 *
 */
public class WicketAjaxJsPatch extends AbstractDefaultAjaxBehavior {

@Override
public void renderHead(IHeaderResponse response) {
super.renderHead(response);
response.renderJavascriptReference(new ResourceReference(
WicketAjaxJsPatch.class, wicket-ajax-patch.js));
}

@Override
protected void respond(AjaxRequestTarget target) {
// Does nothing. The fact that we are extending
// AbstractDefaultAjaxBehavior means that we will pull in
// wicket-event.js and wicket-ajax.js. The job of this behavior is to
// make sure that our wicket-ajax-patch.js script gets added to the page
// head after those scripts.
}
}


wicket-ajax-patch.js
===

/**
 * Overrides the attachFocusEvent function registered by wicket-ajax.js.
 * The original version traverses all anchor and button tags on the page
 * which incurs a major performance penalty on pages with many links.
 * This version skips these elements in the scanning.
 */
if (typeof(Wicket) != undefined) {
  if (typeof(Wicket.Focus) != undefined) {
// Deregister old attachFocusEvent function
handlers = Wicket.Event.domReadyHandlers;
filteredHandlers = new Array();
for(i = 0; i  handlers.length; i++) {
   if (handlers[i] != Wicket.Focus.attachFocusEvent) {
  filteredHandlers.push(handlers[i]);
   }
}
Wicket.Event.domReadyHandlers = filteredHandlers;

// Redefine and re-register attachFocusEvent
Wicket.Focus.attachFocusEvent=function() {
  Wicket.Focus.setFocusOnElements(document.getElementsByTagName(input));
  Wicket.Focus.setFocusOnElements(document.getElementsByTagName(select));
  
Wicket.Focus.setFocusOnElements(document.getElementsByTagName(textarea));
  
//Wicket.Focus.setFocusOnElements(document.getElementsByTagName(button));
  //Wicket.Focus.setFocusOnElements(document.getElementsByTagName(a));
}
Wicket.Event.addDomReadyEvent(Wicket.Focus.attachFocusEvent);
  }
}


Attaching the behavior
=
What I do then is to add the WicketAjaxJsPatch to the page by doing.

  page.add(new WicketAjaxJsPatch());


It seems to be doing its job for me. Please tell me if it doesn't work.

cheers, Peter


On Fri, Apr 17, 2009 at 12:15 PM, James Carman
jcar...@carmanconsulting.com wrote:
 Did that code actually work for you?  I tried adding this js, but i
 couldn't get it to show up in the correct place.  And, when I did, it
 didn't seem to improve much.  Care to share your code?

 2009/4/17 Peter Gardfjäll peter.gardfj...@gmail.com:
 I have written a simple WicketAjaxJsPatch Behavior which simply adds
 the aforementioned javascript to the page.
 In our application, we have several pages that suffer from the same problem.
 It would be tedious to have to update all of these pages one-by-one.
 So is there any way for me to add this Behavior to my parent page
 (which other pages extend) and still have the javascript rendered last
 in the head?

 regards, Peter

 2009/4/17 Peter Gardfjäll peter.gardfj...@gmail.com:
 Thanks Igor,

 the suggested workaround seems to work fine. However, it is not enough
 to just override the attachFocusEvent function -- you also need to
 deregister the previously registered function. I did as follows (I
 apologize for the lack of elegance, I'm not a js expert):

 if (typeof(Wicket) != undefined) {
  if (typeof(Wicket.Focus) != undefined) {
    // Deregister old attachFocusEvent function
    handlers = Wicket.Event.domReadyHandlers;
    filteredHandlers = new Array();
    for(i = 0; i  handlers.length; i++) {
       if (handlers[i] != Wicket.Focus.attachFocusEvent) {
          filteredHandlers.push(handlers[i]);
       }
    }
    Wicket.Event.domReadyHandlers = filteredHandlers;

    // Redefine and re-register attachFocusEvent
    Wicket.Focus.attachFocusEvent=function() {
      
 Wicket.Focus.setFocusOnElements(document.getElementsByTagName(input));
      
 Wicket.Focus.setFocusOnElements(document.getElementsByTagName(select));
      
 Wicket.Focus.setFocusOnElements(document.getElementsByTagName(textarea));
      
 //Wicket.Focus.setFocusOnElements(document.getElementsByTagName(button));
      //Wicket.Focus.setFocusOnElements(document.getElementsByTagName(a));
    }
    

Re: [OT] Wicket spirited conference?

2009-04-17 Thread nino martinez wael
True..

2009/4/17 Linda van der Pal lvd...@heritageagenturen.nl:
 If you want sessions, a sponsor will have to be found for a room (and a
 beamer).

 nino martinez wael wrote:

 For me it had to have some sessions etc, I'll be happy to on
 something. But otherwise it's hard to justify..

 regadrs Nino

 2009/4/17 Linda van der Pal lvd...@heritageagenturen.nl:


 Well we could just set a date somewhere in the future and just organize
 something. I have no idea how large the Wicket community in the
 Netherlands
 is (I'm guessing the numbers were a bit skewed at the one meeting I was
 at,
 due to international guests who attended ApacheCon). But if the group who
 can attend isn't too large, we can just arrange a table at a bar or
 restaurant.

 So how many people would be interested in an informal meeting (i.e.
 without
 sessions) in Amsterdam?

 Regards,
 Linda

 Nino Martinez wrote:


 ... since meetups in netherlands seems to be rather spontaneous (and
 therefore
 hard to plan)...


 -
 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
  


 No virus found in this incoming message.
 Checked by AVG - www.avg.com Version: 8.5.287 / Virus Database:
 270.11.59/2063 - Release Date: 04/16/09 16:38:00




 -
 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: [OT] Wicket spirited conference?

2009-04-17 Thread nino martinez wael
Yup.. So anyways, in order to justify the trip for the company (I do
not know at current time if the budget will be approved). There has to
be a minimum of serious content :)

regarding dates it has to be after summer in my case.

regards Nino

2009/4/17 Linda van der Pal lvd...@heritageagenturen.nl:
 Of course, we could also hold an unconference. Then you wouldn't need a
 beamer and could still hold it anywhere. We could just discuss certain
 topics that interest us, without it being merely a social event.

 nino martinez wael wrote:

 True..

 2009/4/17 Linda van der Pal lvd...@heritageagenturen.nl:


 If you want sessions, a sponsor will have to be found for a room (and a
 beamer).

 nino martinez wael wrote:


 For me it had to have some sessions etc, I'll be happy to on
 something. But otherwise it's hard to justify..

 regadrs Nino

 2009/4/17 Linda van der Pal lvd...@heritageagenturen.nl:



 Well we could just set a date somewhere in the future and just organize
 something. I have no idea how large the Wicket community in the
 Netherlands
 is (I'm guessing the numbers were a bit skewed at the one meeting I was
 at,
 due to international guests who attended ApacheCon). But if the group
 who
 can attend isn't too large, we can just arrange a table at a bar or
 restaurant.

 So how many people would be interested in an informal meeting (i.e.
 without
 sessions) in Amsterdam?

 Regards,
 Linda

 Nino Martinez wrote:



 ... since meetups in netherlands seems to be rather spontaneous (and
 therefore
 hard to plan)...





 -
 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: jboss + ear + wicket

2009-04-17 Thread Francis De Brabandere
application.xml

?xml version=1.0 encoding=UTF-8?
!DOCTYPE application PUBLIC
-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN
http://java.sun.com/dtd/application_1_3.dtd;
application
  display-nameupdater-ear/display-name
  description.../description
  module
web
  web-uriupdater-client-web-1.0.0-SNAPSHOT.war/web-uri
  context-root/updater-client-web/context-root
/web
  /module
/application

web.xml

?xml version=1.0 encoding=ISO-8859-1?
web-app xmlns=http://java.sun.com/xml/ns/j2ee;
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
 xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd;
 version=2.4

display-nameclient-web/display-name

 !--
  There are three means to configure Wickets configuration mode
and they are
  tested in the order given.
  1) A system property: -Dwicket.configuration
  2) servlet specific init-param
  3) context specific context-param
  The value might be either development (reloading when templates 
change)
  or deployment. If no configuration is found, development is
the default.
--

filter
filter-namewicket.client-web/filter-name

filter-classorg.apache.wicket.protocol.http.WicketFilter/filter-class
init-param
param-nameapplicationClassName/param-name

param-valuecom.xxx.web.UpdaterApplication/param-value
/init-param
/filter

 filter-mapping
  filter-namewicket.client-web/filter-name
url-pattern/*/url-pattern
 /filter-mapping


/web-app

the war contains the wicket libs (WEB-INF/lib)
the ear contains other libs we use (lib)

On Fri, Apr 17, 2009 at 4:47 AM, Grigoriy Tkachuk
grigoriy.tkac...@makingpages.ru wrote:
 16.04.2009 23:58, Francis De Brabandere пишет:

 Hi,

 Are there any known problems on deploying wicket web applications on
 JBoss?

 I'm deploying an ear containing a war, this works correctly on
 glassfish but on jboss wicket gives me this exception:
 Markup of type 'html' for component
 'xxx.updater.web.page.HomePage$MainLogPanel' not found
 [stacktrace at the bottom of this mail]

 I have this kind of exection on all pages using (anonymous) inner
 classes (non-static)

 Deploying only the war does not give me this problem (jboss 4.x and 5.x)
 Any idea?


 org.apache.wicket.markup.MarkupNotFoundException: Markup of type
 'html' for component 'xxx.updater.web.page.HomePage$MainLogPanel' not
 found. Enable debug messages for org.apache.wicket.util.resource to
 get a list of all filenames tried.: [MarkupContainer [Component id =
 log]]
      at
 org.apache.wicket.markup.MarkupCache.getMarkupStream(MarkupCache.java:226)
      at
 org.apache.wicket.MarkupContainer.getAssociatedMarkupStream(MarkupContainer.java:351)
      at
 org.apache.wicket.MarkupContainer.renderAssociatedMarkup(MarkupContainer.java:632)
      at
 org.apache.wicket.markup.html.panel.Panel.onComponentTagBody(Panel.java:114)
      at org.apache.wicket.Component.renderComponent(Component.java:2596)
      at
 org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1521)
      at org.apache.wicket.Component.render(Component.java:2421)
      at
 org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1399)
      at
 org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1586)
      at
 org.apache.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:1510)
      at org.apache.wicket.Component.renderComponent(Component.java:2596)
      at
 org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1521)
      at org.apache.wicket.Component.render(Component.java:2421)
      at
 org.apache.wicket.MarkupContainer.autoAdd(MarkupContainer.java:229)
      at
 org.apache.wicket.markup.resolver.MarkupInheritanceResolver.resolve(MarkupInheritanceResolver.java:66)
      at
 org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1426)
      at
 org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1586)
      at
 org.apache.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:1510)
      at org.apache.wicket.Component.renderComponent(Component.java:2596)
      at
 org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1521)
      at org.apache.wicket.Component.render(Component.java:2421)
      at
 org.apache.wicket.MarkupContainer.autoAdd(MarkupContainer.java:229)
      at
 org.apache.wicket.markup.resolver.MarkupInheritanceResolver.resolve(MarkupInheritanceResolver.java:73)
      at
 org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1426)
      at
 org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1537)
      at org.apache.wicket.Page.onRender(Page.java:1522)
      at org.apache.wicket.Component.render(Component.java:2421)
      at 

Re: wicket-ajax and IE performance problems for pages with many links

2009-04-17 Thread James Carman
2009/4/17 Peter Gardfjäll peter.gardfj...@gmail.com:
 Sure,
 here goes. I have added both the java and the js file to the same Java 
 package:

You da man!  Thank you very much!  That's a pretty slick trick you did
by extending the ajax behavior superclass so that the ajax javascript
files get included before yours.  I'm putting that one in my back
pocket to use later.  Very slick, indeed!

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



nesting table problem

2009-04-17 Thread Jeroen Verhagen
Hi all,

I'm new to Wicket and there's a problem to which I have not found a
solution yet: I want to nest tables. So add a table to a cell of a
table. When I add a dynamically generated DataTable to a cell in its
populateItem() method Wicket does render a table in the cell but its
surrounding table markup is missing (only the tbody markup is
generated). This is probably caused by the fact that I didn't add the
table markup to the cell like I did myself to html page for the
parent table.

How do I add a dynamically generated DataTable to a cell (or any other
dynamically generated Wicket component for that matter) to a table
cell that does not contain the appropriate html markup?

-- 

Thanks and regards,

Jeroen

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



Re: wicket-ajax and IE performance problems for pages with many links

2009-04-17 Thread James Carman
Okay, since this code does show that the problem is with the focus
stuff and we have conflicting goals here, what are we going to do to
move forward?  Obviously, the IE JS engine is way too darn slow to
handle this code.  Is there some optimization we can do here?  Should
we file a JIRA?  Is there one change in particular that made this so
slow in IE?  Do we back that out until a better alternative is known?
Why am I asking so many questions? :)  Sorry, too much coffee this
morning.

2009/4/17 Peter Gardfjäll peter.gardfj...@gmail.com:
 Sure,
 here goes. I have added both the java and the js file to the same Java 
 package:

 WicketAjaxJsPatch.java
 ==

 /**
  * {...@link IBehavior} that should be added to {...@link Page}s that need to 
 prevent
  * the page load performance penalty incurred when wicket-ajax.js traverses 
 all
  * lt;agt; tags in the page markup.
  *
  * p/
  * For background information, see a
 href=http://www.nabble.com/wicket-ajax-and-IE-performance-problems-for-pages-with-many-links-td23078336.html;
  * this mailing list thread/a
  * p/
  * This behavior simply makes sure that our patch gets applied to 
 wicket-ajax.js
  * (by forcing wicket-ajax.js to be added to the page head prior to
  * wicket-ajax-patch.js).
  *
  */
 public class WicketAjaxJsPatch extends AbstractDefaultAjaxBehavior {

   �...@override
    public void renderHead(IHeaderResponse response) {
        super.renderHead(response);
        response.renderJavascriptReference(new ResourceReference(
            WicketAjaxJsPatch.class, wicket-ajax-patch.js));
    }

   �...@override
    protected void respond(AjaxRequestTarget target) {
        // Does nothing. The fact that we are extending
        // AbstractDefaultAjaxBehavior means that we will pull in
        // wicket-event.js and wicket-ajax.js. The job of this behavior is to
        // make sure that our wicket-ajax-patch.js script gets added to the 
 page
        // head after those scripts.
    }
 }


 wicket-ajax-patch.js
 ===

 /**
  * Overrides the attachFocusEvent function registered by wicket-ajax.js.
  * The original version traverses all anchor and button tags on the page
  * which incurs a major performance penalty on pages with many links.
  * This version skips these elements in the scanning.
  */
 if (typeof(Wicket) != undefined) {
  if (typeof(Wicket.Focus) != undefined) {
    // Deregister old attachFocusEvent function
    handlers = Wicket.Event.domReadyHandlers;
    filteredHandlers = new Array();
    for(i = 0; i  handlers.length; i++) {
       if (handlers[i] != Wicket.Focus.attachFocusEvent) {
          filteredHandlers.push(handlers[i]);
       }
    }
    Wicket.Event.domReadyHandlers = filteredHandlers;

    // Redefine and re-register attachFocusEvent
    Wicket.Focus.attachFocusEvent=function() {
      Wicket.Focus.setFocusOnElements(document.getElementsByTagName(input));
      Wicket.Focus.setFocusOnElements(document.getElementsByTagName(select));
      
 Wicket.Focus.setFocusOnElements(document.getElementsByTagName(textarea));
      
 //Wicket.Focus.setFocusOnElements(document.getElementsByTagName(button));
      //Wicket.Focus.setFocusOnElements(document.getElementsByTagName(a));
    }
    Wicket.Event.addDomReadyEvent(Wicket.Focus.attachFocusEvent);
  }
 }


 Attaching the behavior
 =
 What I do then is to add the WicketAjaxJsPatch to the page by doing.

  page.add(new WicketAjaxJsPatch());


 It seems to be doing its job for me. Please tell me if it doesn't work.

 cheers, Peter


 On Fri, Apr 17, 2009 at 12:15 PM, James Carman
 jcar...@carmanconsulting.com wrote:
 Did that code actually work for you?  I tried adding this js, but i
 couldn't get it to show up in the correct place.  And, when I did, it
 didn't seem to improve much.  Care to share your code?

 2009/4/17 Peter Gardfjäll peter.gardfj...@gmail.com:
 I have written a simple WicketAjaxJsPatch Behavior which simply adds
 the aforementioned javascript to the page.
 In our application, we have several pages that suffer from the same problem.
 It would be tedious to have to update all of these pages one-by-one.
 So is there any way for me to add this Behavior to my parent page
 (which other pages extend) and still have the javascript rendered last
 in the head?

 regards, Peter

 2009/4/17 Peter Gardfjäll peter.gardfj...@gmail.com:
 Thanks Igor,

 the suggested workaround seems to work fine. However, it is not enough
 to just override the attachFocusEvent function -- you also need to
 deregister the previously registered function. I did as follows (I
 apologize for the lack of elegance, I'm not a js expert):

 if (typeof(Wicket) != undefined) {
  if (typeof(Wicket.Focus) != undefined) {
    // Deregister old attachFocusEvent function
    handlers = Wicket.Event.domReadyHandlers;
    filteredHandlers = new Array();
    for(i = 0; i  handlers.length; i++) {
       if (handlers[i] != Wicket.Focus.attachFocusEvent) {
          

[poll] Interest in regular Deventer Wicket meetup?

2009-04-17 Thread Martijn Dashorst
I want to poll if there is an interest in a regular Wicket meetup in
Deventer, the Netherlands. We can only host at most ~20 people, so I
expect this to be much lower key than the Amsterdam meetups.

If there is an interest, I'll prod my employer to see if they are
willing to help with space, beamer and possibly pizza.

The venue would be one of the Topicus buildings, which are
conveniently located in the historical center of Deventer, very close
to the train station.

The types of presentations/discussions/etc. I'm looking for are rather simple:
 - show us your product and discuss where/how/why you used and extended wicket
 - show us how you integrated with
hibernate/db4o/ibatis/cayenne/rome/spring/guice/jquery/gmap/opensocial/...
 - ask us a question for a problem (with code... ;-)
 - ...

These events would start at ~18:30 with pizza, doors open at 18:00 and
presentations starting at 19:00.

I'd also like to keep the meetups short, about 90 minutes, or maybe 2
hours (max). This will give people the opportunity to return to home
at an appropriate time. Afterwards we could visit one of the bars that
serve Topicus Gifkikker.

Is this an event you would like to visit?

Martijn

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



Re: [OT] Wicket spirited conference?

2009-04-17 Thread John Armstrong
Somewhat on this topic, are there any gatherings of wicket folk in the
Bay Area (San Francisco)?

John-

On Fri, Apr 17, 2009 at 4:31 AM, nino martinez wael
nino.martinez.w...@gmail.com wrote:
 Yup.. So anyways, in order to justify the trip for the company (I do
 not know at current time if the budget will be approved). There has to
 be a minimum of serious content :)

 regarding dates it has to be after summer in my case.

 regards Nino

 2009/4/17 Linda van der Pal lvd...@heritageagenturen.nl:
 Of course, we could also hold an unconference. Then you wouldn't need a
 beamer and could still hold it anywhere. We could just discuss certain
 topics that interest us, without it being merely a social event.

 nino martinez wael wrote:

 True..

 2009/4/17 Linda van der Pal lvd...@heritageagenturen.nl:


 If you want sessions, a sponsor will have to be found for a room (and a
 beamer).

 nino martinez wael wrote:


 For me it had to have some sessions etc, I'll be happy to on
 something. But otherwise it's hard to justify..

 regadrs Nino

 2009/4/17 Linda van der Pal lvd...@heritageagenturen.nl:



 Well we could just set a date somewhere in the future and just organize
 something. I have no idea how large the Wicket community in the
 Netherlands
 is (I'm guessing the numbers were a bit skewed at the one meeting I was
 at,
 due to international guests who attended ApacheCon). But if the group
 who
 can attend isn't too large, we can just arrange a table at a bar or
 restaurant.

 So how many people would be interested in an informal meeting (i.e.
 without
 sessions) in Amsterdam?

 Regards,
 Linda

 Nino Martinez wrote:



 ... since meetups in netherlands seems to be rather spontaneous (and
 therefore
 hard to plan)...





 -
 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: [poll] Interest in regular Deventer Wicket meetup?

2009-04-17 Thread Linda van der Pal

-1

I'd love to come, but I live near Amsterdam, so it would be two hours by 
train for me. Not quite feasible.


Linda.

Martijn Dashorst wrote:

I want to poll if there is an interest in a regular Wicket meetup in
Deventer, the Netherlands. We can only host at most ~20 people, so I
expect this to be much lower key than the Amsterdam meetups.

If there is an interest, I'll prod my employer to see if they are
willing to help with space, beamer and possibly pizza.

The venue would be one of the Topicus buildings, which are
conveniently located in the historical center of Deventer, very close
to the train station.

The types of presentations/discussions/etc. I'm looking for are rather simple:
 - show us your product and discuss where/how/why you used and extended wicket
 - show us how you integrated with
hibernate/db4o/ibatis/cayenne/rome/spring/guice/jquery/gmap/opensocial/...
 - ask us a question for a problem (with code... ;-)
 - ...

These events would start at ~18:30 with pizza, doors open at 18:00 and
presentations starting at 19:00.

I'd also like to keep the meetups short, about 90 minutes, or maybe 2
hours (max). This will give people the opportunity to return to home
at an appropriate time. Afterwards we could visit one of the bars that
serve Topicus Gifkikker.

Is this an event you would like to visit?

Martijn

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




No virus found in this incoming message.
Checked by AVG - www.avg.com 
Version: 8.5.287 / Virus Database: 270.11.59/2064 - Release Date: 04/17/09 07:08:00


  



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



Re: [poll] Interest in regular Deventer Wicket meetup?

2009-04-17 Thread Yiannis Mavroukakis
Sounds grand, some of us in the UK might even make it, seeing as you 
didn't bring in any of
that wonderful beer, or your pgp key to sign our PDF editions of Wicket 
in Action :-P :-P


Ioannis.

Martijn Dashorst wrote:

I want to poll if there is an interest in a regular Wicket meetup in
Deventer, the Netherlands. We can only host at most ~20 people, so I
expect this to be much lower key than the Amsterdam meetups.

If there is an interest, I'll prod my employer to see if they are
willing to help with space, beamer and possibly pizza.

The venue would be one of the Topicus buildings, which are
conveniently located in the historical center of Deventer, very close
to the train station.

The types of presentations/discussions/etc. I'm looking for are rather simple:
 - show us your product and discuss where/how/why you used and extended wicket
 - show us how you integrated with
hibernate/db4o/ibatis/cayenne/rome/spring/guice/jquery/gmap/opensocial/...
 - ask us a question for a problem (with code... ;-)
 - ...

These events would start at ~18:30 with pizza, doors open at 18:00 and
presentations starting at 19:00.

I'd also like to keep the meetups short, about 90 minutes, or maybe 2
hours (max). This will give people the opportunity to return to home
at an appropriate time. Afterwards we could visit one of the bars that
serve Topicus Gifkikker.

Is this an event you would like to visit?

Martijn

-
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: Checkbox tree component

2009-04-17 Thread CrocodileShoes

Hi guys,

I've been fighting with trees for a week now and nearly have it doing what I
require.  However there is one thing I can't figure out.

-My tree is build using data from an external source.
-When I click a checkbox in the tree my tree model is completely
restructured based upon data from an external source.
-The tree is rebuilt from the root node downwards and the treemodel updated
via a call to it's setRoot() using the new root as the argument.

What I want is for the node that was checked to stay checked, that is,
persist across the tree update.  This obviously happens by default, that is,
without rebuilding the from the root node, but I don't know how to update
the tree without doing that.

Any ideas?



-- 
View this message in context: 
http://www.nabble.com/Checkbox-tree-component-tp13433102p23098936.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: AbstractAjaxTimerBehavior start

2009-04-17 Thread Tom Wollert
Hi there,

Couldn't you just add the AbstractAjaxTimerBehavior to the page/component
after you receive the ajax call from the onSubmit event and then update the
component using the ajax request target? (untested, but I don't see a reason
why it wouldn't work. could imagine that this solution might not be as
elegant as hoped)

- Tom


@SSLRequired

2009-04-17 Thread Douglas Ferguson
I'm implement an SSL scheme using annotations and I'm having some issues with 
redirecting properly.

The issue is when I have non-secured page that redirects to a secured page.

I'm doing the https/http redirecting inside of a WebRequestCycleProcessor, 
which works well unless there is a redirect prior to the ssl redirect. If this 
happens then I redirect back to the top of the chain, because I'm using the 
HttpServletRequest to build the url, which returns url info based on the 
orginal request. I've been looking all around and I can't find any way of 
building a url that represents the last redirect. I've tried 

Application.get().getRequestCycleProcessor().getRequestCodingStrategy().pathForTarget(requestTarget);
and
RequestCycle.get().urlFor(requestTarget)

Here's my current impl for The RequestCycleProcessor.


WebRequest webRequest = (WebRequest) requestCycle .getRequest();
WebResponse webResponse = (WebResponse) requestCycle .getResponse();
HttpServletRequest httpServletRequest = 
webRequest.getHttpServletRequest();
StringBuffer url = new StringBuffer(protocol);
url.append(httpServletRequest.getServerName());
if(defaultPort != port){
url.append(: + port);
}



url.append(webRequest.getHttpServletRequest().getContextPath());
url.append(webRequest.getServletPath());
String queryString = 
webRequest.getHttpServletRequest().getQueryString();

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



Re: @SSLRequired

2009-04-17 Thread Ryan Gravener
maybe this is of use:
http://cwiki.apache.org/WICKET/how-to-switch-to-ssl-mode.html

Ryan Gravener
http://ryangravener.com/flex | http://twitter.com/ryangravener


On Fri, Apr 17, 2009 at 10:48 AM, Douglas Ferguson 
doug...@douglasferguson.us wrote:

 I'm implement an SSL scheme using annotations and I'm having some issues
 with redirecting properly.

 The issue is when I have non-secured page that redirects to a secured page.

 I'm doing the https/http redirecting inside of a WebRequestCycleProcessor,
 which works well unless there is a redirect prior to the ssl redirect. If
 this happens then I redirect back to the top of the chain, because I'm using
 the HttpServletRequest to build the url, which returns url info based on the
 orginal request. I've been looking all around and I can't find any way of
 building a url that represents the last redirect. I've tried


 Application.get().getRequestCycleProcessor().getRequestCodingStrategy().pathForTarget(requestTarget);
 and
 RequestCycle.get().urlFor(requestTarget)

 Here's my current impl for The RequestCycleProcessor.


WebRequest webRequest = (WebRequest) requestCycle .getRequest();
WebResponse webResponse = (WebResponse) requestCycle .getResponse();
HttpServletRequest httpServletRequest =
 webRequest.getHttpServletRequest();
StringBuffer url = new StringBuffer(protocol);
url.append(httpServletRequest.getServerName());
if(defaultPort != port){
url.append(: + port);
}




  url.append(webRequest.getHttpServletRequest().getContextPath());
url.append(webRequest.getServletPath());
String queryString =
 webRequest.getHttpServletRequest().getQueryString();

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




RE: @SSLRequired

2009-04-17 Thread Douglas Ferguson
That's where I got my code..

I'm hitting 2 issues

1) The ssl detection/redirect isn't happening till the end of the chain and 
when it redirects it redirects back to the top.
Ie. Page 1 is not secure, Page 2 is secure. Page one redirects to Page 
2.
  If you go to page 1 then it attempts to redirect to page2 and then wicket 
redirects to Page 1 with https..
  I would prefer to go directly to Page 2, but I can't figure out how to 
build that url..
2) My other issues is this:
 else if (requestTarget instanceof IPageRequestTarget) {
targetClass = ((IPageRequestTarget) 
requestTarget).getPage()
.getClass();
}
 This means that if you redirect to a Page object which you have 
constructed with special state, then this throws that object away and wicket 
will use default constructor.

-Original Message-
From: snoop...@gmail.com [mailto:snoop...@gmail.com] On Behalf Of Ryan Gravener
Sent: Friday, April 17, 2009 10:00 AM
To: users@wicket.apache.org
Subject: Re: @SSLRequired

maybe this is of use:
http://cwiki.apache.org/WICKET/how-to-switch-to-ssl-mode.html

Ryan Gravener
http://ryangravener.com/flex | http://twitter.com/ryangravener


On Fri, Apr 17, 2009 at 10:48 AM, Douglas Ferguson 
doug...@douglasferguson.us wrote:

 I'm implement an SSL scheme using annotations and I'm having some issues
 with redirecting properly.

 The issue is when I have non-secured page that redirects to a secured page.

 I'm doing the https/http redirecting inside of a WebRequestCycleProcessor,
 which works well unless there is a redirect prior to the ssl redirect. If
 this happens then I redirect back to the top of the chain, because I'm using
 the HttpServletRequest to build the url, which returns url info based on the
 orginal request. I've been looking all around and I can't find any way of
 building a url that represents the last redirect. I've tried


 Application.get().getRequestCycleProcessor().getRequestCodingStrategy().pathForTarget(requestTarget);
 and
 RequestCycle.get().urlFor(requestTarget)

 Here's my current impl for The RequestCycleProcessor.


WebRequest webRequest = (WebRequest) requestCycle .getRequest();
WebResponse webResponse = (WebResponse) requestCycle .getResponse();
HttpServletRequest httpServletRequest =
 webRequest.getHttpServletRequest();
StringBuffer url = new StringBuffer(protocol);
url.append(httpServletRequest.getServerName());
if(defaultPort != port){
url.append(: + port);
}




  url.append(webRequest.getHttpServletRequest().getContextPath());
url.append(webRequest.getServletPath());
String queryString =
 webRequest.getHttpServletRequest().getQueryString();

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




Re: @SSLRequired

2009-04-17 Thread Ryan Gravener
How about just having apache httpd rewrite the http(s) for the pages you
need?  I haven't yet did our ssl implementation, but I know that I don't
want the logic in wicket.

Ryan Gravener
http://ryangravener.com/flex | http://twitter.com/ryangravener


On Fri, Apr 17, 2009 at 11:27 AM, Douglas Ferguson 
doug...@douglasferguson.us wrote:

 That's where I got my code..

 I'm hitting 2 issues

 1) The ssl detection/redirect isn't happening till the end of the chain and
 when it redirects it redirects back to the top.
Ie. Page 1 is not secure, Page 2 is secure. Page one redirects to
 Page 2.
  If you go to page 1 then it attempts to redirect to page2 and then
 wicket redirects to Page 1 with https..
  I would prefer to go directly to Page 2, but I can't figure out how to
 build that url..
 2) My other issues is this:
 else if (requestTarget instanceof IPageRequestTarget) {
targetClass = ((IPageRequestTarget)
 requestTarget).getPage()
.getClass();
}
 This means that if you redirect to a Page object which you have
 constructed with special state, then this throws that object away and wicket
 will use default constructor.

 -Original Message-
 From: snoop...@gmail.com [mailto:snoop...@gmail.com] On Behalf Of Ryan
 Gravener
 Sent: Friday, April 17, 2009 10:00 AM
 To: users@wicket.apache.org
 Subject: Re: @SSLRequired

 maybe this is of use:
 http://cwiki.apache.org/WICKET/how-to-switch-to-ssl-mode.html

 Ryan Gravener
 http://ryangravener.com/flex | http://twitter.com/ryangravener


 On Fri, Apr 17, 2009 at 10:48 AM, Douglas Ferguson 
 doug...@douglasferguson.us wrote:

  I'm implement an SSL scheme using annotations and I'm having some issues
  with redirecting properly.
 
  The issue is when I have non-secured page that redirects to a secured
 page.
 
  I'm doing the https/http redirecting inside of a
 WebRequestCycleProcessor,
  which works well unless there is a redirect prior to the ssl redirect. If
  this happens then I redirect back to the top of the chain, because I'm
 using
  the HttpServletRequest to build the url, which returns url info based on
 the
  orginal request. I've been looking all around and I can't find any way of
  building a url that represents the last redirect. I've tried
 
 
 
 Application.get().getRequestCycleProcessor().getRequestCodingStrategy().pathForTarget(requestTarget);
  and
  RequestCycle.get().urlFor(requestTarget)
 
  Here's my current impl for The RequestCycleProcessor.
 
 
 WebRequest webRequest = (WebRequest) requestCycle .getRequest();
 WebResponse webResponse = (WebResponse) requestCycle
 .getResponse();
 HttpServletRequest httpServletRequest =
  webRequest.getHttpServletRequest();
 StringBuffer url = new StringBuffer(protocol);
 url.append(httpServletRequest.getServerName());
 if(defaultPort != port){
 url.append(: + port);
 }
 
 
 
 
   url.append(webRequest.getHttpServletRequest().getContextPath());
 url.append(webRequest.getServletPath());
 String queryString =
  webRequest.getHttpServletRequest().getQueryString();
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 



Re: AbstractAjaxTimerBehavior start

2009-04-17 Thread Vladimir Zavada

Thanks for reply.
I am just newbie to wicket.
I tried this solution but it did not work. Probably its because 
AbstractAjaxTimerBehavior is not a component and I am not able to set 
setOutputMarkupId to true.


Vlado

Tom Wollert  wrote / napísal(a):

Hi there,

Couldn't you just add the AbstractAjaxTimerBehavior to the page/component
after you receive the ajax call from the onSubmit event and then update the
component using the ajax request target? (untested, but I don't see a reason
why it wouldn't work. could imagine that this solution might not be as
elegant as hoped)

- Tom

  



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



Wicketstuff artwork..

2009-04-17 Thread nino martinez wael
I've idle for some time so my hands are itching to code again. I'll be
implementing Nifty Corners Cube soon.. If you have further suggestions
or improvements, please come with them now, i'll consider them and
possibly implement it :)

regards Nino

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



Re: @SSLRequired

2009-04-17 Thread Igor Vaynberg
i just checked in org.apache.wicekt.protocol.https package that should
help with this. its in 1.4 only.

-igor

On Fri, Apr 17, 2009 at 8:52 AM, Ryan Gravener r...@ryangravener.com wrote:
 How about just having apache httpd rewrite the http(s) for the pages you
 need?  I haven't yet did our ssl implementation, but I know that I don't
 want the logic in wicket.

 Ryan Gravener
 http://ryangravener.com/flex | http://twitter.com/ryangravener


 On Fri, Apr 17, 2009 at 11:27 AM, Douglas Ferguson 
 doug...@douglasferguson.us wrote:

 That's where I got my code..

 I'm hitting 2 issues

 1) The ssl detection/redirect isn't happening till the end of the chain and
 when it redirects it redirects back to the top.
        Ie. Page 1 is not secure, Page 2 is secure. Page one redirects to
 Page 2.
      If you go to page 1 then it attempts to redirect to page2 and then
 wicket redirects to Page 1 with https..
      I would prefer to go directly to Page 2, but I can't figure out how to
 build that url..
 2) My other issues is this:
     else if (requestTarget instanceof IPageRequestTarget) {
                                targetClass = ((IPageRequestTarget)
 requestTarget).getPage()
                                                .getClass();
                        }
     This means that if you redirect to a Page object which you have
 constructed with special state, then this throws that object away and wicket
 will use default constructor.

 -Original Message-
 From: snoop...@gmail.com [mailto:snoop...@gmail.com] On Behalf Of Ryan
 Gravener
 Sent: Friday, April 17, 2009 10:00 AM
 To: users@wicket.apache.org
 Subject: Re: @SSLRequired

 maybe this is of use:
 http://cwiki.apache.org/WICKET/how-to-switch-to-ssl-mode.html

 Ryan Gravener
 http://ryangravener.com/flex | http://twitter.com/ryangravener


 On Fri, Apr 17, 2009 at 10:48 AM, Douglas Ferguson 
 doug...@douglasferguson.us wrote:

  I'm implement an SSL scheme using annotations and I'm having some issues
  with redirecting properly.
 
  The issue is when I have non-secured page that redirects to a secured
 page.
 
  I'm doing the https/http redirecting inside of a
 WebRequestCycleProcessor,
  which works well unless there is a redirect prior to the ssl redirect. If
  this happens then I redirect back to the top of the chain, because I'm
 using
  the HttpServletRequest to build the url, which returns url info based on
 the
  orginal request. I've been looking all around and I can't find any way of
  building a url that represents the last redirect. I've tried
 
 
 
 Application.get().getRequestCycleProcessor().getRequestCodingStrategy().pathForTarget(requestTarget);
  and
  RequestCycle.get().urlFor(requestTarget)
 
  Here's my current impl for The RequestCycleProcessor.
 
 
         WebRequest webRequest = (WebRequest) requestCycle .getRequest();
         WebResponse webResponse = (WebResponse) requestCycle
 .getResponse();
         HttpServletRequest httpServletRequest =
  webRequest.getHttpServletRequest();
                 StringBuffer url = new StringBuffer(protocol);
                 url.append(httpServletRequest.getServerName());
                 if(defaultPort != port){
                         url.append(: + port);
                 }
 
 
 
 
   url.append(webRequest.getHttpServletRequest().getContextPath());
                 url.append(webRequest.getServletPath());
                 String queryString =
  webRequest.getHttpServletRequest().getQueryString();
 
  -
  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



Resuming a request cycle

2009-04-17 Thread Adam Wenocur
Is it possible to resume a request cycle by submitting a web request  
using only a URL?


Ideally, we would like retrieve a unique identifier from the session  
or request cycle and include this value in a web request from a remote  
client in order to gain access to session parameters.


Thanks,
Adam

Re: nesting table problem

2009-04-17 Thread Igor Vaynberg
put it into a panel and add the panel to the item

-igor

On Fri, Apr 17, 2009 at 6:04 AM, Jeroen Verhagen
jeroenverha...@gmail.com wrote:
 Hi all,

 I'm new to Wicket and there's a problem to which I have not found a
 solution yet: I want to nest tables. So add a table to a cell of a
 table. When I add a dynamically generated DataTable to a cell in its
 populateItem() method Wicket does render a table in the cell but its
 surrounding table markup is missing (only the tbody markup is
 generated). This is probably caused by the fact that I didn't add the
 table markup to the cell like I did myself to html page for the
 parent table.

 How do I add a dynamically generated DataTable to a cell (or any other
 dynamically generated Wicket component for that matter) to a table
 cell that does not contain the appropriate html markup?

 --

 Thanks and regards,

 Jeroen

 -
 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: Validation of multiple textfield in a dynamic ListView

2009-04-17 Thread Igor Vaynberg
override form.onvalidate()

-igor

On Fri, Apr 17, 2009 at 7:05 AM, Thierry Leveque tleve...@gmail.com wrote:
 Hi

 I have a validation problem that I can figure out how to do:

 I have build a dynamic table for the user to enter data into text fields.
 I am using the ListView component and some ajax behavior.
 Users can add and delete rows of the table. Everything works well, except
 for the validation.

 One of the column in the table is a port number. And guess what, port values
 must be unique in the table.

 How can I do that kind of validation?

 I was thinking of using a Form Validator, but the problem is that form
 components are added and deleted dynamically.

 Any idea?

 Thierry


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



Re: Resuming a request cycle

2009-04-17 Thread nino martinez wael
should be just give state a uuid and save it.. Then when the request
comes in load it again... But how do you know when to save it? Just
all the time? And what will the session contain?

2009/4/17 Adam Wenocur weno...@genome.chop.edu:
 Is it possible to resume a request cycle by submitting a web request using
 only a URL?

 Ideally, we would like retrieve a unique identifier from the session or
 request cycle and include this value in a web request from a remote client
 in order to gain access to session parameters.

 Thanks,
 Adam

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



RE: @SSLRequired

2009-04-17 Thread Douglas Ferguson
Is 1.4 ready for prime-time?

If not, is there anything I could cull from that code for 1.3.5? Or any other 
thoughts that might help?


Douglas

-Original Message-
From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com] 
Sent: Friday, April 17, 2009 12:38 PM
To: users@wicket.apache.org
Subject: Re: @SSLRequired

i just checked in org.apache.wicekt.protocol.https package that should
help with this. its in 1.4 only.

-igor

On Fri, Apr 17, 2009 at 8:52 AM, Ryan Gravener r...@ryangravener.com wrote:
 How about just having apache httpd rewrite the http(s) for the pages you
 need?  I haven't yet did our ssl implementation, but I know that I don't
 want the logic in wicket.

 Ryan Gravener
 http://ryangravener.com/flex | http://twitter.com/ryangravener


 On Fri, Apr 17, 2009 at 11:27 AM, Douglas Ferguson 
 doug...@douglasferguson.us wrote:

 That's where I got my code..

 I'm hitting 2 issues

 1) The ssl detection/redirect isn't happening till the end of the chain and
 when it redirects it redirects back to the top.
        Ie. Page 1 is not secure, Page 2 is secure. Page one redirects to
 Page 2.
      If you go to page 1 then it attempts to redirect to page2 and then
 wicket redirects to Page 1 with https..
      I would prefer to go directly to Page 2, but I can't figure out how to
 build that url..
 2) My other issues is this:
     else if (requestTarget instanceof IPageRequestTarget) {
                                targetClass = ((IPageRequestTarget)
 requestTarget).getPage()
                                                .getClass();
                        }
     This means that if you redirect to a Page object which you have
 constructed with special state, then this throws that object away and wicket
 will use default constructor.

 -Original Message-
 From: snoop...@gmail.com [mailto:snoop...@gmail.com] On Behalf Of Ryan
 Gravener
 Sent: Friday, April 17, 2009 10:00 AM
 To: users@wicket.apache.org
 Subject: Re: @SSLRequired

 maybe this is of use:
 http://cwiki.apache.org/WICKET/how-to-switch-to-ssl-mode.html

 Ryan Gravener
 http://ryangravener.com/flex | http://twitter.com/ryangravener


 On Fri, Apr 17, 2009 at 10:48 AM, Douglas Ferguson 
 doug...@douglasferguson.us wrote:

  I'm implement an SSL scheme using annotations and I'm having some issues
  with redirecting properly.
 
  The issue is when I have non-secured page that redirects to a secured
 page.
 
  I'm doing the https/http redirecting inside of a
 WebRequestCycleProcessor,
  which works well unless there is a redirect prior to the ssl redirect. If
  this happens then I redirect back to the top of the chain, because I'm
 using
  the HttpServletRequest to build the url, which returns url info based on
 the
  orginal request. I've been looking all around and I can't find any way of
  building a url that represents the last redirect. I've tried
 
 
 
 Application.get().getRequestCycleProcessor().getRequestCodingStrategy().pathForTarget(requestTarget);
  and
  RequestCycle.get().urlFor(requestTarget)
 
  Here's my current impl for The RequestCycleProcessor.
 
 
         WebRequest webRequest = (WebRequest) requestCycle .getRequest();
         WebResponse webResponse = (WebResponse) requestCycle
 .getResponse();
         HttpServletRequest httpServletRequest =
  webRequest.getHttpServletRequest();
                 StringBuffer url = new StringBuffer(protocol);
                 url.append(httpServletRequest.getServerName());
                 if(defaultPort != port){
                         url.append(: + port);
                 }
 
 
 
 
   url.append(webRequest.getHttpServletRequest().getContextPath());
                 url.append(webRequest.getServletPath());
                 String queryString =
  webRequest.getHttpServletRequest().getQueryString();
 
  -
  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: @SSLRequired

2009-04-17 Thread Douglas Ferguson
Would rewrite work with the wicket's ability to forward to a instantiated Page?

Douglas

-Original Message-
From: snoop...@gmail.com [mailto:snoop...@gmail.com] On Behalf Of Ryan Gravener
Sent: Friday, April 17, 2009 10:52 AM
To: users@wicket.apache.org
Subject: Re: @SSLRequired

How about just having apache httpd rewrite the http(s) for the pages you
need?  I haven't yet did our ssl implementation, but I know that I don't
want the logic in wicket.

Ryan Gravener
http://ryangravener.com/flex | http://twitter.com/ryangravener


On Fri, Apr 17, 2009 at 11:27 AM, Douglas Ferguson 
doug...@douglasferguson.us wrote:

 That's where I got my code..

 I'm hitting 2 issues

 1) The ssl detection/redirect isn't happening till the end of the chain and
 when it redirects it redirects back to the top.
Ie. Page 1 is not secure, Page 2 is secure. Page one redirects to
 Page 2.
  If you go to page 1 then it attempts to redirect to page2 and then
 wicket redirects to Page 1 with https..
  I would prefer to go directly to Page 2, but I can't figure out how to
 build that url..
 2) My other issues is this:
 else if (requestTarget instanceof IPageRequestTarget) {
targetClass = ((IPageRequestTarget)
 requestTarget).getPage()
.getClass();
}
 This means that if you redirect to a Page object which you have
 constructed with special state, then this throws that object away and wicket
 will use default constructor.

 -Original Message-
 From: snoop...@gmail.com [mailto:snoop...@gmail.com] On Behalf Of Ryan
 Gravener
 Sent: Friday, April 17, 2009 10:00 AM
 To: users@wicket.apache.org
 Subject: Re: @SSLRequired

 maybe this is of use:
 http://cwiki.apache.org/WICKET/how-to-switch-to-ssl-mode.html

 Ryan Gravener
 http://ryangravener.com/flex | http://twitter.com/ryangravener


 On Fri, Apr 17, 2009 at 10:48 AM, Douglas Ferguson 
 doug...@douglasferguson.us wrote:

  I'm implement an SSL scheme using annotations and I'm having some issues
  with redirecting properly.
 
  The issue is when I have non-secured page that redirects to a secured
 page.
 
  I'm doing the https/http redirecting inside of a
 WebRequestCycleProcessor,
  which works well unless there is a redirect prior to the ssl redirect. If
  this happens then I redirect back to the top of the chain, because I'm
 using
  the HttpServletRequest to build the url, which returns url info based on
 the
  orginal request. I've been looking all around and I can't find any way of
  building a url that represents the last redirect. I've tried
 
 
 
 Application.get().getRequestCycleProcessor().getRequestCodingStrategy().pathForTarget(requestTarget);
  and
  RequestCycle.get().urlFor(requestTarget)
 
  Here's my current impl for The RequestCycleProcessor.
 
 
 WebRequest webRequest = (WebRequest) requestCycle .getRequest();
 WebResponse webResponse = (WebResponse) requestCycle
 .getResponse();
 HttpServletRequest httpServletRequest =
  webRequest.getHttpServletRequest();
 StringBuffer url = new StringBuffer(protocol);
 url.append(httpServletRequest.getServerName());
 if(defaultPort != port){
 url.append(: + port);
 }
 
 
 
 
   url.append(webRequest.getHttpServletRequest().getContextPath());
 url.append(webRequest.getServletPath());
 String queryString =
  webRequest.getHttpServletRequest().getQueryString();
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 



Re: @SSLRequired

2009-04-17 Thread Igor Vaynberg
see org.apache.wicket.protocol.https package

-igor

On Fri, Apr 17, 2009 at 11:40 AM, Douglas Ferguson
doug...@douglasferguson.us wrote:
 Is 1.4 ready for prime-time?

 If not, is there anything I could cull from that code for 1.3.5? Or any other 
 thoughts that might help?


 Douglas

 -Original Message-
 From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com]
 Sent: Friday, April 17, 2009 12:38 PM
 To: users@wicket.apache.org
 Subject: Re: @SSLRequired

 i just checked in org.apache.wicekt.protocol.https package that should
 help with this. its in 1.4 only.

 -igor

 On Fri, Apr 17, 2009 at 8:52 AM, Ryan Gravener r...@ryangravener.com wrote:
 How about just having apache httpd rewrite the http(s) for the pages you
 need?  I haven't yet did our ssl implementation, but I know that I don't
 want the logic in wicket.

 Ryan Gravener
 http://ryangravener.com/flex | http://twitter.com/ryangravener


 On Fri, Apr 17, 2009 at 11:27 AM, Douglas Ferguson 
 doug...@douglasferguson.us wrote:

 That's where I got my code..

 I'm hitting 2 issues

 1) The ssl detection/redirect isn't happening till the end of the chain and
 when it redirects it redirects back to the top.
        Ie. Page 1 is not secure, Page 2 is secure. Page one redirects to
 Page 2.
      If you go to page 1 then it attempts to redirect to page2 and then
 wicket redirects to Page 1 with https..
      I would prefer to go directly to Page 2, but I can't figure out how to
 build that url..
 2) My other issues is this:
     else if (requestTarget instanceof IPageRequestTarget) {
                                targetClass = ((IPageRequestTarget)
 requestTarget).getPage()
                                                .getClass();
                        }
     This means that if you redirect to a Page object which you have
 constructed with special state, then this throws that object away and wicket
 will use default constructor.

 -Original Message-
 From: snoop...@gmail.com [mailto:snoop...@gmail.com] On Behalf Of Ryan
 Gravener
 Sent: Friday, April 17, 2009 10:00 AM
 To: users@wicket.apache.org
 Subject: Re: @SSLRequired

 maybe this is of use:
 http://cwiki.apache.org/WICKET/how-to-switch-to-ssl-mode.html

 Ryan Gravener
 http://ryangravener.com/flex | http://twitter.com/ryangravener


 On Fri, Apr 17, 2009 at 10:48 AM, Douglas Ferguson 
 doug...@douglasferguson.us wrote:

  I'm implement an SSL scheme using annotations and I'm having some issues
  with redirecting properly.
 
  The issue is when I have non-secured page that redirects to a secured
 page.
 
  I'm doing the https/http redirecting inside of a
 WebRequestCycleProcessor,
  which works well unless there is a redirect prior to the ssl redirect. If
  this happens then I redirect back to the top of the chain, because I'm
 using
  the HttpServletRequest to build the url, which returns url info based on
 the
  orginal request. I've been looking all around and I can't find any way of
  building a url that represents the last redirect. I've tried
 
 
 
 Application.get().getRequestCycleProcessor().getRequestCodingStrategy().pathForTarget(requestTarget);
  and
  RequestCycle.get().urlFor(requestTarget)
 
  Here's my current impl for The RequestCycleProcessor.
 
 
         WebRequest webRequest = (WebRequest) requestCycle .getRequest();
         WebResponse webResponse = (WebResponse) requestCycle
 .getResponse();
         HttpServletRequest httpServletRequest =
  webRequest.getHttpServletRequest();
                 StringBuffer url = new StringBuffer(protocol);
                 url.append(httpServletRequest.getServerName());
                 if(defaultPort != port){
                         url.append(: + port);
                 }
 
 
 
 
   url.append(webRequest.getHttpServletRequest().getContextPath());
                 url.append(webRequest.getServletPath());
                 String queryString =
  webRequest.getHttpServletRequest().getQueryString();
 
  -
  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: Resuming a request cycle

2009-04-17 Thread Adam Wenocur
The session contains a stored query to which we'd like the user to  
have access from a second location, within a few seconds of  
establishing the initial request cycle.


How would I go about saving the state and assigning it a uuid?  This  
might work, as there is a particular WebPage that is loaded first.



On Apr 17, 2009, at 2:24 PM, nino martinez wael wrote:


should be just give state a uuid and save it.. Then when the request
comes in load it again... But how do you know when to save it? Just
all the time? And what will the session contain?

2009/4/17 Adam Wenocur weno...@genome.chop.edu:
Is it possible to resume a request cycle by submitting a web  
request using

only a URL?

Ideally, we would like retrieve a unique identifier from the  
session or
request cycle and include this value in a web request from a remote  
client

in order to gain access to session parameters.

Thanks,
Adam


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

2009-04-17 Thread Daniel Toffetti
Vladimir Zavada zavadav at gmail.com writes:
 
 Thanks for reply.
 I am just newbie to wicket.
 I tried this solution but it did not work. Probably its because 
 AbstractAjaxTimerBehavior is not a component and I am not able to set 
 setOutputMarkupId to true.
 
 Vlado
 
 Tom Wollert  wrote / napísal(a):
  Hi there,
 
  Couldn't you just add the AbstractAjaxTimerBehavior to the page/component
  after you receive the ajax call from the onSubmit event and then update the
  component using the ajax request target? (untested, but I don't see a reason
  why it wouldn't work. could imagine that this solution might not be as
  elegant as hoped)
 
  - Tom
 

You don't have to set setOutputMarkupId to true in
AbstractAjaxTimerBehavior, you just need to add it to the component that you
want activated on timer, for example your page.

hth,

Daniel



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



Re: @SSLRequired

2009-04-17 Thread Jeremy Thomerson
Yes - 1.4 is stable enough for production.  It is getting very near a final
release.  Many are already using it in production (I am on numerous apps)
and have been for some time now.

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



On Fri, Apr 17, 2009 at 1:40 PM, Douglas Ferguson 
doug...@douglasferguson.us wrote:

 Is 1.4 ready for prime-time?

 If not, is there anything I could cull from that code for 1.3.5? Or any
 other thoughts that might help?


 Douglas

 -Original Message-
 From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com]
 Sent: Friday, April 17, 2009 12:38 PM
 To: users@wicket.apache.org
 Subject: Re: @SSLRequired

 i just checked in org.apache.wicekt.protocol.https package that should
 help with this. its in 1.4 only.

 -igor

 On Fri, Apr 17, 2009 at 8:52 AM, Ryan Gravener r...@ryangravener.com
 wrote:
  How about just having apache httpd rewrite the http(s) for the pages you
  need?  I haven't yet did our ssl implementation, but I know that I don't
  want the logic in wicket.
 
  Ryan Gravener
  http://ryangravener.com/flex | http://twitter.com/ryangravener
 
 
  On Fri, Apr 17, 2009 at 11:27 AM, Douglas Ferguson 
  doug...@douglasferguson.us wrote:
 
  That's where I got my code..
 
  I'm hitting 2 issues
 
  1) The ssl detection/redirect isn't happening till the end of the chain
 and
  when it redirects it redirects back to the top.
 Ie. Page 1 is not secure, Page 2 is secure. Page one redirects to
  Page 2.
   If you go to page 1 then it attempts to redirect to page2 and then
  wicket redirects to Page 1 with https..
   I would prefer to go directly to Page 2, but I can't figure out how
 to
  build that url..
  2) My other issues is this:
  else if (requestTarget instanceof IPageRequestTarget) {
 targetClass = ((IPageRequestTarget)
  requestTarget).getPage()
 .getClass();
 }
  This means that if you redirect to a Page object which you have
  constructed with special state, then this throws that object away and
 wicket
  will use default constructor.
 
  -Original Message-
  From: snoop...@gmail.com [mailto:snoop...@gmail.com] On Behalf Of Ryan
  Gravener
  Sent: Friday, April 17, 2009 10:00 AM
  To: users@wicket.apache.org
  Subject: Re: @SSLRequired
 
  maybe this is of use:
  http://cwiki.apache.org/WICKET/how-to-switch-to-ssl-mode.html
 
  Ryan Gravener
  http://ryangravener.com/flex | http://twitter.com/ryangravener
 
 
  On Fri, Apr 17, 2009 at 10:48 AM, Douglas Ferguson 
  doug...@douglasferguson.us wrote:
 
   I'm implement an SSL scheme using annotations and I'm having some
 issues
   with redirecting properly.
  
   The issue is when I have non-secured page that redirects to a secured
  page.
  
   I'm doing the https/http redirecting inside of a
  WebRequestCycleProcessor,
   which works well unless there is a redirect prior to the ssl redirect.
 If
   this happens then I redirect back to the top of the chain, because I'm
  using
   the HttpServletRequest to build the url, which returns url info based
 on
  the
   orginal request. I've been looking all around and I can't find any way
 of
   building a url that represents the last redirect. I've tried
  
  
  
 
 Application.get().getRequestCycleProcessor().getRequestCodingStrategy().pathForTarget(requestTarget);
   and
   RequestCycle.get().urlFor(requestTarget)
  
   Here's my current impl for The RequestCycleProcessor.
  
  
  WebRequest webRequest = (WebRequest) requestCycle
 .getRequest();
  WebResponse webResponse = (WebResponse) requestCycle
  .getResponse();
  HttpServletRequest httpServletRequest =
   webRequest.getHttpServletRequest();
  StringBuffer url = new StringBuffer(protocol);
  url.append(httpServletRequest.getServerName());
  if(defaultPort != port){
  url.append(: + port);
  }
  
  
  
  
url.append(webRequest.getHttpServletRequest().getContextPath());
  url.append(webRequest.getServletPath());
  String queryString =
   webRequest.getHttpServletRequest().getQueryString();
  
   -
   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: @SSLRequired

2009-04-17 Thread Igor Vaynberg
there are a couple of api-breaking refactors coming though, like the
generics thing for listview.

-igor

On Fri, Apr 17, 2009 at 12:08 PM, Jeremy Thomerson
jer...@wickettraining.com wrote:
 Yes - 1.4 is stable enough for production.  It is getting very near a final
 release.  Many are already using it in production (I am on numerous apps)
 and have been for some time now.

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



 On Fri, Apr 17, 2009 at 1:40 PM, Douglas Ferguson 
 doug...@douglasferguson.us wrote:

 Is 1.4 ready for prime-time?

 If not, is there anything I could cull from that code for 1.3.5? Or any
 other thoughts that might help?


 Douglas

 -Original Message-
 From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com]
 Sent: Friday, April 17, 2009 12:38 PM
 To: users@wicket.apache.org
 Subject: Re: @SSLRequired

 i just checked in org.apache.wicekt.protocol.https package that should
 help with this. its in 1.4 only.

 -igor

 On Fri, Apr 17, 2009 at 8:52 AM, Ryan Gravener r...@ryangravener.com
 wrote:
  How about just having apache httpd rewrite the http(s) for the pages you
  need?  I haven't yet did our ssl implementation, but I know that I don't
  want the logic in wicket.
 
  Ryan Gravener
  http://ryangravener.com/flex | http://twitter.com/ryangravener
 
 
  On Fri, Apr 17, 2009 at 11:27 AM, Douglas Ferguson 
  doug...@douglasferguson.us wrote:
 
  That's where I got my code..
 
  I'm hitting 2 issues
 
  1) The ssl detection/redirect isn't happening till the end of the chain
 and
  when it redirects it redirects back to the top.
         Ie. Page 1 is not secure, Page 2 is secure. Page one redirects to
  Page 2.
       If you go to page 1 then it attempts to redirect to page2 and then
  wicket redirects to Page 1 with https..
       I would prefer to go directly to Page 2, but I can't figure out how
 to
  build that url..
  2) My other issues is this:
      else if (requestTarget instanceof IPageRequestTarget) {
                                 targetClass = ((IPageRequestTarget)
  requestTarget).getPage()
                                                 .getClass();
                         }
      This means that if you redirect to a Page object which you have
  constructed with special state, then this throws that object away and
 wicket
  will use default constructor.
 
  -Original Message-
  From: snoop...@gmail.com [mailto:snoop...@gmail.com] On Behalf Of Ryan
  Gravener
  Sent: Friday, April 17, 2009 10:00 AM
  To: users@wicket.apache.org
  Subject: Re: @SSLRequired
 
  maybe this is of use:
  http://cwiki.apache.org/WICKET/how-to-switch-to-ssl-mode.html
 
  Ryan Gravener
  http://ryangravener.com/flex | http://twitter.com/ryangravener
 
 
  On Fri, Apr 17, 2009 at 10:48 AM, Douglas Ferguson 
  doug...@douglasferguson.us wrote:
 
   I'm implement an SSL scheme using annotations and I'm having some
 issues
   with redirecting properly.
  
   The issue is when I have non-secured page that redirects to a secured
  page.
  
   I'm doing the https/http redirecting inside of a
  WebRequestCycleProcessor,
   which works well unless there is a redirect prior to the ssl redirect.
 If
   this happens then I redirect back to the top of the chain, because I'm
  using
   the HttpServletRequest to build the url, which returns url info based
 on
  the
   orginal request. I've been looking all around and I can't find any way
 of
   building a url that represents the last redirect. I've tried
  
  
  
 
 Application.get().getRequestCycleProcessor().getRequestCodingStrategy().pathForTarget(requestTarget);
   and
   RequestCycle.get().urlFor(requestTarget)
  
   Here's my current impl for The RequestCycleProcessor.
  
  
          WebRequest webRequest = (WebRequest) requestCycle
 .getRequest();
          WebResponse webResponse = (WebResponse) requestCycle
  .getResponse();
          HttpServletRequest httpServletRequest =
   webRequest.getHttpServletRequest();
                  StringBuffer url = new StringBuffer(protocol);
                  url.append(httpServletRequest.getServerName());
                  if(defaultPort != port){
                          url.append(: + port);
                  }
  
  
  
  
    url.append(webRequest.getHttpServletRequest().getContextPath());
                  url.append(webRequest.getServletPath());
                  String queryString =
   webRequest.getHttpServletRequest().getQueryString();
  
   -
   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 

Re: @SSLRequired

2009-04-17 Thread Douglas Ferguson
Where cab I view it online I don't see it in the javadoc

Douglas Ferguson
512-293-7279
Sent from my iPhone

On Apr 17, 2009, at 1:52 PM, Igor Vaynberg igor.vaynb...@gmail.com
wrote:

 see org.apache.wicket.protocol.https package

 -igor

 On Fri, Apr 17, 2009 at 11:40 AM, Douglas Ferguson
 doug...@douglasferguson.us wrote:
 Is 1.4 ready for prime-time?

 If not, is there anything I could cull from that code for 1.3.5? Or
 any other thoughts that might help?


 Douglas

 -Original Message-
 From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com]
 Sent: Friday, April 17, 2009 12:38 PM
 To: users@wicket.apache.org
 Subject: Re: @SSLRequired

 i just checked in org.apache.wicekt.protocol.https package that
 should
 help with this. its in 1.4 only.

 -igor

 On Fri, Apr 17, 2009 at 8:52 AM, Ryan Gravener
 r...@ryangravener.com wrote:
 How about just having apache httpd rewrite the http(s) for the
 pages you
 need?  I haven't yet did our ssl implementation, but I know that I
 don't
 want the logic in wicket.

 Ryan Gravener
 http://ryangravener.com/flex | http://twitter.com/ryangravener


 On Fri, Apr 17, 2009 at 11:27 AM, Douglas Ferguson 
 doug...@douglasferguson.us wrote:

 That's where I got my code..

 I'm hitting 2 issues

 1) The ssl detection/redirect isn't happening till the end of the
 chain and
 when it redirects it redirects back to the top.
Ie. Page 1 is not secure, Page 2 is secure. Page one
 redirects to
 Page 2.
  If you go to page 1 then it attempts to redirect to page2
 and then
 wicket redirects to Page 1 with https..
  I would prefer to go directly to Page 2, but I can't figure
 out how to
 build that url..
 2) My other issues is this:
 else if (requestTarget instanceof IPageRequestTarget) {
targetClass = ((IPageRequestTarget)
 requestTarget).getPage()
.getClass();
}
 This means that if you redirect to a Page object which you have
 constructed with special state, then this throws that object away
 and wicket
 will use default constructor.

 -Original Message-
 From: snoop...@gmail.com [mailto:snoop...@gmail.com] On Behalf Of
 Ryan
 Gravener
 Sent: Friday, April 17, 2009 10:00 AM
 To: users@wicket.apache.org
 Subject: Re: @SSLRequired

 maybe this is of use:
 http://cwiki.apache.org/WICKET/how-to-switch-to-ssl-mode.html

 Ryan Gravener
 http://ryangravener.com/flex | http://twitter.com/ryangravener


 On Fri, Apr 17, 2009 at 10:48 AM, Douglas Ferguson 
 doug...@douglasferguson.us wrote:

 I'm implement an SSL scheme using annotations and I'm having
 some issues
 with redirecting properly.

 The issue is when I have non-secured page that redirects to a
 secured
 page.

 I'm doing the https/http redirecting inside of a
 WebRequestCycleProcessor,
 which works well unless there is a redirect prior to the ssl
 redirect. If
 this happens then I redirect back to the top of the chain,
 because I'm
 using
 the HttpServletRequest to build the url, which returns url info
 based on
 the
 orginal request. I've been looking all around and I can't find
 any way of
 building a url that represents the last redirect. I've tried



 Application.
 get(
 ).g
 etRequestCycleProcessor(
 ).getRequestCodingStrategy().pathForTarget(requestTarget);
 and
 RequestCycle.get().urlFor(requestTarget)

 Here's my current impl for The RequestCycleProcessor.


WebRequest webRequest = (WebRequest)
 requestCycle .getRequest();
WebResponse webResponse = (WebResponse) requestCycle
 .getResponse();
HttpServletRequest httpServletRequest =
 webRequest.getHttpServletRequest();
StringBuffer url = new StringBuffer(protocol);
url.append(httpServletRequest.getServerName());
if(defaultPort != port){
url.append(: + port);
}




  url.append(webRequest.getHttpServletRequest().getContextPath());
url.append(webRequest.getServletPath());
String queryString =
 webRequest.getHttpServletRequest().getQueryString();

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

Re: Validation of multiple textfield in a dynamic ListView

2009-04-17 Thread Thierry Leveque
Ok, that is a good start.

Now how do I access the form data within that method?
Is there any documentation on that or any example?

Thanks!

Thierry
Sent from Montreal, Quebec, Canada

On Fri, Apr 17, 2009 at 14:22, Igor Vaynberg igor.vaynb...@gmail.comwrote:

 override form.onvalidate()

 -igor

 On Fri, Apr 17, 2009 at 7:05 AM, Thierry Leveque tleve...@gmail.com
 wrote:
  Hi
 
  I have a validation problem that I can figure out how to do:
 
  I have build a dynamic table for the user to enter data into text fields.
  I am using the ListView component and some ajax behavior.
  Users can add and delete rows of the table. Everything works well, except
  for the validation.
 
  One of the column in the table is a port number. And guess what, port
 values
  must be unique in the table.
 
  How can I do that kind of validation?
 
  I was thinking of using a Form Validator, but the problem is that form
  components are added and deleted dynamically.
 
  Any idea?
 
  Thierry
 

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




Re: Resuming a request cycle

2009-04-17 Thread nino martinez wael
Make a custom request cycle, or make a special filestore..The thing to
think about are how do you know if you need to save the state. It has
a impact on system scalability todo this... However this are so far I
can go, I havent played much with request cycles or filestores...

regards Nino

2009/4/17 Adam Wenocur weno...@genome.chop.edu:
 The session contains a stored query to which we'd like the user to have
 access from a second location, within a few seconds of establishing the
 initial request cycle.

 How would I go about saving the state and assigning it a uuid?  This might
 work, as there is a particular WebPage that is loaded first.


 On Apr 17, 2009, at 2:24 PM, nino martinez wael wrote:

 should be just give state a uuid and save it.. Then when the request
 comes in load it again... But how do you know when to save it? Just
 all the time? And what will the session contain?

 2009/4/17 Adam Wenocur weno...@genome.chop.edu:

 Is it possible to resume a request cycle by submitting a web request
 using
 only a URL?

 Ideally, we would like retrieve a unique identifier from the session or
 request cycle and include this value in a web request from a remote
 client
 in order to gain access to session parameters.

 Thanks,
 Adam

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

2009-04-17 Thread Jeremy Thomerson
Go to wicket.apache.org - in the left bar near the bottom there are links to
the source repo and to the fisheye view.

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



On Fri, Apr 17, 2009 at 2:30 PM, Douglas Ferguson 
doug...@douglasferguson.us wrote:

 Where cab I view it online I don't see it in the javadoc

 Douglas Ferguson
 512-293-7279
 Sent from my iPhone

 On Apr 17, 2009, at 1:52 PM, Igor Vaynberg igor.vaynb...@gmail.com
 wrote:

  see org.apache.wicket.protocol.https package
 
  -igor
 
  On Fri, Apr 17, 2009 at 11:40 AM, Douglas Ferguson
  doug...@douglasferguson.us wrote:
  Is 1.4 ready for prime-time?
 
  If not, is there anything I could cull from that code for 1.3.5? Or
  any other thoughts that might help?
 
 
  Douglas
 
  -Original Message-
  From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com]
  Sent: Friday, April 17, 2009 12:38 PM
  To: users@wicket.apache.org
  Subject: Re: @SSLRequired
 
  i just checked in org.apache.wicekt.protocol.https package that
  should
  help with this. its in 1.4 only.
 
  -igor
 
  On Fri, Apr 17, 2009 at 8:52 AM, Ryan Gravener
  r...@ryangravener.com wrote:
  How about just having apache httpd rewrite the http(s) for the
  pages you
  need?  I haven't yet did our ssl implementation, but I know that I
  don't
  want the logic in wicket.
 
  Ryan Gravener
  http://ryangravener.com/flex | http://twitter.com/ryangravener
 
 
  On Fri, Apr 17, 2009 at 11:27 AM, Douglas Ferguson 
  doug...@douglasferguson.us wrote:
 
  That's where I got my code..
 
  I'm hitting 2 issues
 
  1) The ssl detection/redirect isn't happening till the end of the
  chain and
  when it redirects it redirects back to the top.
 Ie. Page 1 is not secure, Page 2 is secure. Page one
  redirects to
  Page 2.
   If you go to page 1 then it attempts to redirect to page2
  and then
  wicket redirects to Page 1 with https..
   I would prefer to go directly to Page 2, but I can't figure
  out how to
  build that url..
  2) My other issues is this:
  else if (requestTarget instanceof IPageRequestTarget) {
 targetClass = ((IPageRequestTarget)
  requestTarget).getPage()
 .getClass();
 }
  This means that if you redirect to a Page object which you have
  constructed with special state, then this throws that object away
  and wicket
  will use default constructor.
 
  -Original Message-
  From: snoop...@gmail.com [mailto:snoop...@gmail.com] On Behalf Of
  Ryan
  Gravener
  Sent: Friday, April 17, 2009 10:00 AM
  To: users@wicket.apache.org
  Subject: Re: @SSLRequired
 
  maybe this is of use:
  http://cwiki.apache.org/WICKET/how-to-switch-to-ssl-mode.html
 
  Ryan Gravener
  http://ryangravener.com/flex | http://twitter.com/ryangravener
 
 
  On Fri, Apr 17, 2009 at 10:48 AM, Douglas Ferguson 
  doug...@douglasferguson.us wrote:
 
  I'm implement an SSL scheme using annotations and I'm having
  some issues
  with redirecting properly.
 
  The issue is when I have non-secured page that redirects to a
  secured
  page.
 
  I'm doing the https/http redirecting inside of a
  WebRequestCycleProcessor,
  which works well unless there is a redirect prior to the ssl
  redirect. If
  this happens then I redirect back to the top of the chain,
  because I'm
  using
  the HttpServletRequest to build the url, which returns url info
  based on
  the
  orginal request. I've been looking all around and I can't find
  any way of
  building a url that represents the last redirect. I've tried
 
 
 
  Application.
  get(
  ).g
  etRequestCycleProcessor(
  ).getRequestCodingStrategy().pathForTarget(requestTarget);
  and
  RequestCycle.get().urlFor(requestTarget)
 
  Here's my current impl for The RequestCycleProcessor.
 
 
 WebRequest webRequest = (WebRequest)
  requestCycle .getRequest();
 WebResponse webResponse = (WebResponse) requestCycle
  .getResponse();
 HttpServletRequest httpServletRequest =
  webRequest.getHttpServletRequest();
 StringBuffer url = new StringBuffer(protocol);
 url.append(httpServletRequest.getServerName());
 if(defaultPort != port){
 url.append(: + port);
 }
 
 
 
 
   url.append(webRequest.getHttpServletRequest().getContextPath());
 url.append(webRequest.getServletPath());
 String queryString =
  webRequest.getHttpServletRequest().getQueryString();
 
  ---
  --
  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: Validation of multiple textfield in a dynamic ListView

2009-04-17 Thread Igor Vaynberg
however you want. you have the object graph. you can either use a
visitor to locate whatever components you want, or you can keep direct
references, or you can use a visitor to broadcast an event. completely
up to you.

-igor

On Fri, Apr 17, 2009 at 12:44 PM, Thierry Leveque tleve...@gmail.com wrote:
 Ok, that is a good start.

 Now how do I access the form data within that method?
 Is there any documentation on that or any example?

 Thanks!

 Thierry
 Sent from Montreal, Quebec, Canada

 On Fri, Apr 17, 2009 at 14:22, Igor Vaynberg igor.vaynb...@gmail.comwrote:

 override form.onvalidate()

 -igor

 On Fri, Apr 17, 2009 at 7:05 AM, Thierry Leveque tleve...@gmail.com
 wrote:
  Hi
 
  I have a validation problem that I can figure out how to do:
 
  I have build a dynamic table for the user to enter data into text fields.
  I am using the ListView component and some ajax behavior.
  Users can add and delete rows of the table. Everything works well, except
  for the validation.
 
  One of the column in the table is a port number. And guess what, port
 values
  must be unique in the table.
 
  How can I do that kind of validation?
 
  I was thinking of using a Form Validator, but the problem is that form
  components are added and deleted dynamically.
 
  Any idea?
 
  Thierry
 

 -
 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: jboss + ear + wicket

2009-04-17 Thread nino martinez wael
Hi Francis,

I think I know the problem.. Remember what igor wrote a few days ago
about the new maven eclipse:eclipse plugin not allowing html resources
along in main java or test only in resources.. Anyway that seems the
issue I've run into now on my ubuntu box. I get the exact same thing
as you do when I run it in a embedded jetty..:

WicketMessage: Markup of type 'html' for component
'org.wicketstuff.HomePage' not found. Enable debug messages for
org.apache.wicket.util.resource to get a list of all filenames tried.:
[Page class = org.wicketstuff.HomePage, id = 0, version = 0]

Root cause:

org.apache.wicket.markup.MarkupNotFoundException: Markup of type
'html' for component 'org.wicketstuff.HomePage' not found. Enable
debug messages for org.apache.wicket.util.resource to get a list of
all filenames tried.: [Page class = org.wicketstuff.HomePage, id = 0,
version = 0]
at org.apache.wicket.markup.MarkupCache.getMarkupStream(MarkupCache.java:226)
at 
org.apache.wicket.MarkupContainer.getAssociatedMarkupStream(MarkupContainer.java:351)
at org.apache.wicket.Page.onRender(Page.java:1515)
at org.apache.wicket.Component.render(Component.java:2421)
at org.apache.wicket.Page.renderPage(Page.java:926)
at 
org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.respond(BookmarkablePageRequestTarget.java:262)
at 
org.apache.wicket.request.AbstractRequestCycleProcessor.respond(AbstractRequestCycleProcessor.java:105)
at 
org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1200)
at org.apache.wicket.RequestCycle.step(RequestCycle.java:1271)
at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1370)
at org.apache.wicket.RequestCycle.request(RequestCycle.java:501)
at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:455)
at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:288)
at 
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1089)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:365)
at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
at org.mortbay.jetty.Server.handle(Server.java:295)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:503)
at 
org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:827)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:511)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:210)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:379)
at 
org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:226)
at 
org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442)

2009/4/16 Francis De Brabandere franci...@gmail.com:
 Hi,

 Are there any known problems on deploying wicket web applications on JBoss?

 I'm deploying an ear containing a war, this works correctly on
 glassfish but on jboss wicket gives me this exception:
 Markup of type 'html' for component
 'xxx.updater.web.page.HomePage$MainLogPanel' not found
 [stacktrace at the bottom of this mail]

 I have this kind of exection on all pages using (anonymous) inner
 classes (non-static)

 Deploying only the war does not give me this problem (jboss 4.x and 5.x)
 Any idea?


 org.apache.wicket.markup.MarkupNotFoundException: Markup of type
 'html' for component 'xxx.updater.web.page.HomePage$MainLogPanel' not
 found. Enable debug messages for org.apache.wicket.util.resource to
 get a list of all filenames tried.: [MarkupContainer [Component id =
 log]]
     at 
 org.apache.wicket.markup.MarkupCache.getMarkupStream(MarkupCache.java:226)
     at 
 org.apache.wicket.MarkupContainer.getAssociatedMarkupStream(MarkupContainer.java:351)
     at 
 org.apache.wicket.MarkupContainer.renderAssociatedMarkup(MarkupContainer.java:632)
     at 
 org.apache.wicket.markup.html.panel.Panel.onComponentTagBody(Panel.java:114)
     at org.apache.wicket.Component.renderComponent(Component.java:2596)
     at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1521)
     at org.apache.wicket.Component.render(Component.java:2421)
     at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1399)
     at 
 org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1586)
     at 
 org.apache.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:1510)
     at org.apache.wicket.Component.renderComponent(Component.java:2596)
     at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1521)
     at org.apache.wicket.Component.render(Component.java:2421)
     at org.apache.wicket.MarkupContainer.autoAdd(MarkupContainer.java:229)
     

Re: jboss + ear + wicket

2009-04-17 Thread nino martinez wael
Ahh I think it was Martijn.. and just a general maven thing perhaps..

2009/4/17 nino martinez wael nino.martinez.w...@gmail.com:
 Hi Francis,

 I think I know the problem.. Remember what igor wrote a few days ago
 about the new maven eclipse:eclipse plugin not allowing html resources
 along in main java or test only in resources.. Anyway that seems the
 issue I've run into now on my ubuntu box. I get the exact same thing
 as you do when I run it in a embedded jetty..:

 WicketMessage: Markup of type 'html' for component
 'org.wicketstuff.HomePage' not found. Enable debug messages for
 org.apache.wicket.util.resource to get a list of all filenames tried.:
 [Page class = org.wicketstuff.HomePage, id = 0, version = 0]

 Root cause:

 org.apache.wicket.markup.MarkupNotFoundException: Markup of type
 'html' for component 'org.wicketstuff.HomePage' not found. Enable
 debug messages for org.apache.wicket.util.resource to get a list of
 all filenames tried.: [Page class = org.wicketstuff.HomePage, id = 0,
 version = 0]
 at org.apache.wicket.markup.MarkupCache.getMarkupStream(MarkupCache.java:226)
 at 
 org.apache.wicket.MarkupContainer.getAssociatedMarkupStream(MarkupContainer.java:351)
 at org.apache.wicket.Page.onRender(Page.java:1515)
 at org.apache.wicket.Component.render(Component.java:2421)
 at org.apache.wicket.Page.renderPage(Page.java:926)
 at 
 org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.respond(BookmarkablePageRequestTarget.java:262)
 at 
 org.apache.wicket.request.AbstractRequestCycleProcessor.respond(AbstractRequestCycleProcessor.java:105)
 at 
 org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1200)
 at org.apache.wicket.RequestCycle.step(RequestCycle.java:1271)
 at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1370)
 at org.apache.wicket.RequestCycle.request(RequestCycle.java:501)
 at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:455)
 at 
 org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:288)
 at 
 org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1089)
 at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:365)
 at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
 at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
 at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712)
 at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
 at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
 at org.mortbay.jetty.Server.handle(Server.java:295)
 at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:503)
 at 
 org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:827)
 at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:511)
 at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:210)
 at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:379)
 at 
 org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:226)
 at 
 org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442)

 2009/4/16 Francis De Brabandere franci...@gmail.com:
 Hi,

 Are there any known problems on deploying wicket web applications on JBoss?

 I'm deploying an ear containing a war, this works correctly on
 glassfish but on jboss wicket gives me this exception:
 Markup of type 'html' for component
 'xxx.updater.web.page.HomePage$MainLogPanel' not found
 [stacktrace at the bottom of this mail]

 I have this kind of exection on all pages using (anonymous) inner
 classes (non-static)

 Deploying only the war does not give me this problem (jboss 4.x and 5.x)
 Any idea?


 org.apache.wicket.markup.MarkupNotFoundException: Markup of type
 'html' for component 'xxx.updater.web.page.HomePage$MainLogPanel' not
 found. Enable debug messages for org.apache.wicket.util.resource to
 get a list of all filenames tried.: [MarkupContainer [Component id =
 log]]
     at 
 org.apache.wicket.markup.MarkupCache.getMarkupStream(MarkupCache.java:226)
     at 
 org.apache.wicket.MarkupContainer.getAssociatedMarkupStream(MarkupContainer.java:351)
     at 
 org.apache.wicket.MarkupContainer.renderAssociatedMarkup(MarkupContainer.java:632)
     at 
 org.apache.wicket.markup.html.panel.Panel.onComponentTagBody(Panel.java:114)
     at org.apache.wicket.Component.renderComponent(Component.java:2596)
     at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1521)
     at org.apache.wicket.Component.render(Component.java:2421)
     at 
 org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1399)
     at 
 org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1586)
     at 
 org.apache.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:1510)
     at org.apache.wicket.Component.renderComponent(Component.java:2596)
     at 

Re: jboss + ear + wicket

2009-04-17 Thread nino martinez wael
anyhow applying Krasnays fix or was it Bill solved it :

  build
   plugins
 plugin
   artifactIdmaven-eclipse-plugin/artifactId
   version2.5.1/version
 /plugin
   /plugins
 /build

2009/4/17 nino martinez wael nino.martinez.w...@gmail.com:
 Ahh I think it was Martijn.. and just a general maven thing perhaps..

 2009/4/17 nino martinez wael nino.martinez.w...@gmail.com:
 Hi Francis,

 I think I know the problem.. Remember what igor wrote a few days ago
 about the new maven eclipse:eclipse plugin not allowing html resources
 along in main java or test only in resources.. Anyway that seems the
 issue I've run into now on my ubuntu box. I get the exact same thing
 as you do when I run it in a embedded jetty..:

 WicketMessage: Markup of type 'html' for component
 'org.wicketstuff.HomePage' not found. Enable debug messages for
 org.apache.wicket.util.resource to get a list of all filenames tried.:
 [Page class = org.wicketstuff.HomePage, id = 0, version = 0]

 Root cause:

 org.apache.wicket.markup.MarkupNotFoundException: Markup of type
 'html' for component 'org.wicketstuff.HomePage' not found. Enable
 debug messages for org.apache.wicket.util.resource to get a list of
 all filenames tried.: [Page class = org.wicketstuff.HomePage, id = 0,
 version = 0]
 at org.apache.wicket.markup.MarkupCache.getMarkupStream(MarkupCache.java:226)
 at 
 org.apache.wicket.MarkupContainer.getAssociatedMarkupStream(MarkupContainer.java:351)
 at org.apache.wicket.Page.onRender(Page.java:1515)
 at org.apache.wicket.Component.render(Component.java:2421)
 at org.apache.wicket.Page.renderPage(Page.java:926)
 at 
 org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.respond(BookmarkablePageRequestTarget.java:262)
 at 
 org.apache.wicket.request.AbstractRequestCycleProcessor.respond(AbstractRequestCycleProcessor.java:105)
 at 
 org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1200)
 at org.apache.wicket.RequestCycle.step(RequestCycle.java:1271)
 at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1370)
 at org.apache.wicket.RequestCycle.request(RequestCycle.java:501)
 at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:455)
 at 
 org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:288)
 at 
 org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1089)
 at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:365)
 at 
 org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
 at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
 at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712)
 at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
 at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
 at org.mortbay.jetty.Server.handle(Server.java:295)
 at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:503)
 at 
 org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:827)
 at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:511)
 at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:210)
 at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:379)
 at 
 org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:226)
 at 
 org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442)

 2009/4/16 Francis De Brabandere franci...@gmail.com:
 Hi,

 Are there any known problems on deploying wicket web applications on JBoss?

 I'm deploying an ear containing a war, this works correctly on
 glassfish but on jboss wicket gives me this exception:
 Markup of type 'html' for component
 'xxx.updater.web.page.HomePage$MainLogPanel' not found
 [stacktrace at the bottom of this mail]

 I have this kind of exection on all pages using (anonymous) inner
 classes (non-static)

 Deploying only the war does not give me this problem (jboss 4.x and 5.x)
 Any idea?


 org.apache.wicket.markup.MarkupNotFoundException: Markup of type
 'html' for component 'xxx.updater.web.page.HomePage$MainLogPanel' not
 found. Enable debug messages for org.apache.wicket.util.resource to
 get a list of all filenames tried.: [MarkupContainer [Component id =
 log]]
     at 
 org.apache.wicket.markup.MarkupCache.getMarkupStream(MarkupCache.java:226)
     at 
 org.apache.wicket.MarkupContainer.getAssociatedMarkupStream(MarkupContainer.java:351)
     at 
 org.apache.wicket.MarkupContainer.renderAssociatedMarkup(MarkupContainer.java:632)
     at 
 org.apache.wicket.markup.html.panel.Panel.onComponentTagBody(Panel.java:114)
     at org.apache.wicket.Component.renderComponent(Component.java:2596)
     at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1521)
     at org.apache.wicket.Component.render(Component.java:2421)
     at 
 org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1399)
     at 
 

Re: jboss + ear + wicket

2009-04-17 Thread nino martinez wael
Nope not general.. However if you use a eclipse plugin to
publish/deploy with It might be the case anyhow..

2009/4/17 nino martinez wael nino.martinez.w...@gmail.com:
 Ahh I think it was Martijn.. and just a general maven thing perhaps..

 2009/4/17 nino martinez wael nino.martinez.w...@gmail.com:
 Hi Francis,

 I think I know the problem.. Remember what igor wrote a few days ago
 about the new maven eclipse:eclipse plugin not allowing html resources
 along in main java or test only in resources.. Anyway that seems the
 issue I've run into now on my ubuntu box. I get the exact same thing
 as you do when I run it in a embedded jetty..:

 WicketMessage: Markup of type 'html' for component
 'org.wicketstuff.HomePage' not found. Enable debug messages for
 org.apache.wicket.util.resource to get a list of all filenames tried.:
 [Page class = org.wicketstuff.HomePage, id = 0, version = 0]

 Root cause:

 org.apache.wicket.markup.MarkupNotFoundException: Markup of type
 'html' for component 'org.wicketstuff.HomePage' not found. Enable
 debug messages for org.apache.wicket.util.resource to get a list of
 all filenames tried.: [Page class = org.wicketstuff.HomePage, id = 0,
 version = 0]
 at org.apache.wicket.markup.MarkupCache.getMarkupStream(MarkupCache.java:226)
 at 
 org.apache.wicket.MarkupContainer.getAssociatedMarkupStream(MarkupContainer.java:351)
 at org.apache.wicket.Page.onRender(Page.java:1515)
 at org.apache.wicket.Component.render(Component.java:2421)
 at org.apache.wicket.Page.renderPage(Page.java:926)
 at 
 org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.respond(BookmarkablePageRequestTarget.java:262)
 at 
 org.apache.wicket.request.AbstractRequestCycleProcessor.respond(AbstractRequestCycleProcessor.java:105)
 at 
 org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1200)
 at org.apache.wicket.RequestCycle.step(RequestCycle.java:1271)
 at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1370)
 at org.apache.wicket.RequestCycle.request(RequestCycle.java:501)
 at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:455)
 at 
 org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:288)
 at 
 org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1089)
 at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:365)
 at 
 org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
 at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
 at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712)
 at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
 at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
 at org.mortbay.jetty.Server.handle(Server.java:295)
 at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:503)
 at 
 org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:827)
 at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:511)
 at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:210)
 at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:379)
 at 
 org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:226)
 at 
 org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442)

 2009/4/16 Francis De Brabandere franci...@gmail.com:
 Hi,

 Are there any known problems on deploying wicket web applications on JBoss?

 I'm deploying an ear containing a war, this works correctly on
 glassfish but on jboss wicket gives me this exception:
 Markup of type 'html' for component
 'xxx.updater.web.page.HomePage$MainLogPanel' not found
 [stacktrace at the bottom of this mail]

 I have this kind of exection on all pages using (anonymous) inner
 classes (non-static)

 Deploying only the war does not give me this problem (jboss 4.x and 5.x)
 Any idea?


 org.apache.wicket.markup.MarkupNotFoundException: Markup of type
 'html' for component 'xxx.updater.web.page.HomePage$MainLogPanel' not
 found. Enable debug messages for org.apache.wicket.util.resource to
 get a list of all filenames tried.: [MarkupContainer [Component id =
 log]]
     at 
 org.apache.wicket.markup.MarkupCache.getMarkupStream(MarkupCache.java:226)
     at 
 org.apache.wicket.MarkupContainer.getAssociatedMarkupStream(MarkupContainer.java:351)
     at 
 org.apache.wicket.MarkupContainer.renderAssociatedMarkup(MarkupContainer.java:632)
     at 
 org.apache.wicket.markup.html.panel.Panel.onComponentTagBody(Panel.java:114)
     at org.apache.wicket.Component.renderComponent(Component.java:2596)
     at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1521)
     at org.apache.wicket.Component.render(Component.java:2421)
     at 
 org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1399)
     at 
 org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1586)
     at 
 

Re: Lazy loading via AJAX on stateless pages?

2009-04-17 Thread Martin Grotzke
Hello,

can somebody help with this?

Thanx  cheers,
Martin


On Mon, 2009-04-13 at 12:16 +0200, martin.grot...@javakaffee.de wrote:
 Hi,
 
 I'm currently evaluating how it's possible to have stateless pages with
 some information loaded asynchronously via AJAX.
 
 I found these postings that are somehow related to this
 http://www.nabble.com/Stateless-AJAX-links-td20031309.html
 http://www.nabble.com/Directions-for-Stateless-Ajax-td17518987.html
 
 but I'm not sure what exactly has to be done to achieve what I want.
 
 Basically I have a simple page where I added an AjaxBehavior to a label
 that shall get replaced via AJAX:
 
 final Label label = new Label( info, foo );
 add( label.setOutputMarkupId( true ) );
 label.add(new AbstractDefaultAjaxBehavior() {
 
 @Override
 protected void respond( AjaxRequestTarget target ) {
 final Label lazyLabel = new Label( info, loaded asynchronously );
 Index.this.replace( lazyLabel.setOutputMarkupId( true ) );
 target.addComponent( lazyLabel );
 }
 
 @Override
 public void renderHead( IHeaderResponse response ) {
 super.renderHead( response );
 response.renderOnDomReadyJavascript( getCallbackScript().toString() );
 }
 
 } );
 
 This turns the previously statelesss page to stateful, AFAICS because of
   getStatelessHint( Component component )
 returning false for the label.
 
 When I change this to return true, wicket says the page is expired on the 
 AJAX request...
 
 Can anybody say what had to be done?
 
 Btw: I'm using wicket-1.4-SNAPSHOT.
 
 Thanx in advance,
 cheers,
 Martin
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 


signature.asc
Description: This is a digitally signed message part


Google Analytics and Wicket

2009-04-17 Thread Mariana Bustamante
Hello,

I'm trying to use Google Analytics with my web application made using
Wicket. The layout of my application is like this:

I have a global plage called homePage that contains some panels inside.
One of the panels is a menu which is completely made in java code using
Wicket, the other important panel is the content panel that changes to a
different panel with Ajax every time a user clicks a button on the menu.

I tried placing the Google Analytics script at the bottom of the homePage
but, as expected, in the generated report I can only see this page. However,
I need to be able to view every panel as a different page.

There is a link in the google analytics suppport page that seems like what
I'm looking for (
http://www.google.com/support/googleanalytics/bin/answer.py?hl=enanswer=55519)
but I can't see where to put the code they give since the links in my menu
are generated by Wicket in java code and not in html.

I would really appreciate any help to solve this problem,

Thanks in advance,

Mariana


Re: Lazy loading via AJAX on stateless pages?

2009-04-17 Thread Igor Vaynberg
you cannot use wicket ajax facilities as they are designed for
stateful pages - the link that wicket uses for ajax callback is
inherently stateful.

what you can do is write javascript yourself using jquery, or
something else to perform an ajax callback to some url you control and
then replace some markup on your page with returned markup.

-igor

On Fri, Apr 17, 2009 at 2:52 PM, Martin Grotzke
martin.grot...@javakaffee.de wrote:
 Hello,

 can somebody help with this?

 Thanx  cheers,
 Martin


 On Mon, 2009-04-13 at 12:16 +0200, martin.grot...@javakaffee.de wrote:
 Hi,

 I'm currently evaluating how it's possible to have stateless pages with
 some information loaded asynchronously via AJAX.

 I found these postings that are somehow related to this
 http://www.nabble.com/Stateless-AJAX-links-td20031309.html
 http://www.nabble.com/Directions-for-Stateless-Ajax-td17518987.html

 but I'm not sure what exactly has to be done to achieve what I want.

 Basically I have a simple page where I added an AjaxBehavior to a label
 that shall get replaced via AJAX:

 final Label label = new Label( info, foo );
 add( label.setOutputMarkupId( true ) );
 label.add(new AbstractDefaultAjaxBehavior() {

     @Override
     protected void respond( AjaxRequestTarget target ) {
         final Label lazyLabel = new Label( info, loaded asynchronously );
         Index.this.replace( lazyLabel.setOutputMarkupId( true ) );
         target.addComponent( lazyLabel );
     }

     @Override
     public void renderHead( IHeaderResponse response ) {
         super.renderHead( response );
         response.renderOnDomReadyJavascript( getCallbackScript().toString() 
 );
     }

 } );

 This turns the previously statelesss page to stateful, AFAICS because of
   getStatelessHint( Component component )
 returning false for the label.

 When I change this to return true, wicket says the page is expired on the 
 AJAX request...

 Can anybody say what had to be done?

 Btw: I'm using wicket-1.4-SNAPSHOT.

 Thanx in advance,
 cheers,
 Martin


 -
 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: Google Analytics and Wicket

2009-04-17 Thread nino martinez wael
If you use markup inheritance just drop it in the parent page.. And
there you go.. :) If not.. Well this is a good reason to start :)
Works like a snug for my applications

2009/4/17 Mariana Bustamante marian...@gmail.com:
 Hello,

 I'm trying to use Google Analytics with my web application made using
 Wicket. The layout of my application is like this:

 I have a global plage called homePage that contains some panels inside.
 One of the panels is a menu which is completely made in java code using
 Wicket, the other important panel is the content panel that changes to a
 different panel with Ajax every time a user clicks a button on the menu.

 I tried placing the Google Analytics script at the bottom of the homePage
 but, as expected, in the generated report I can only see this page. However,
 I need to be able to view every panel as a different page.

 There is a link in the google analytics suppport page that seems like what
 I'm looking for (
 http://www.google.com/support/googleanalytics/bin/answer.py?hl=enanswer=55519)
 but I can't see where to put the code they give since the links in my menu
 are generated by Wicket in java code and not in html.

 I would really appreciate any help to solve this problem,

 Thanks in advance,

 Mariana


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



Re: Lazy loading via AJAX on stateless pages?

2009-04-17 Thread Martin Grotzke
Wow, very fast response!

Is it possible to use wicket concepts like RequestTarget and Behavior on
the serverside? I'd like to have this integrated with wicket as much as
possible.

Cheers,
Martin


On Fri, 2009-04-17 at 14:55 -0700, Igor Vaynberg wrote:
 you cannot use wicket ajax facilities as they are designed for
 stateful pages - the link that wicket uses for ajax callback is
 inherently stateful.
 
 what you can do is write javascript yourself using jquery, or
 something else to perform an ajax callback to some url you control and
 then replace some markup on your page with returned markup.
 
 -igor
 
 On Fri, Apr 17, 2009 at 2:52 PM, Martin Grotzke
 martin.grot...@javakaffee.de wrote:
  Hello,
 
  can somebody help with this?
 
  Thanx  cheers,
  Martin
 
 
  On Mon, 2009-04-13 at 12:16 +0200, martin.grot...@javakaffee.de wrote:
  Hi,
 
  I'm currently evaluating how it's possible to have stateless pages with
  some information loaded asynchronously via AJAX.
 
  I found these postings that are somehow related to this
  http://www.nabble.com/Stateless-AJAX-links-td20031309.html
  http://www.nabble.com/Directions-for-Stateless-Ajax-td17518987.html
 
  but I'm not sure what exactly has to be done to achieve what I want.
 
  Basically I have a simple page where I added an AjaxBehavior to a label
  that shall get replaced via AJAX:
 
  final Label label = new Label( info, foo );
  add( label.setOutputMarkupId( true ) );
  label.add(new AbstractDefaultAjaxBehavior() {
 
  @Override
  protected void respond( AjaxRequestTarget target ) {
  final Label lazyLabel = new Label( info, loaded asynchronously 
  );
  Index.this.replace( lazyLabel.setOutputMarkupId( true ) );
  target.addComponent( lazyLabel );
  }
 
  @Override
  public void renderHead( IHeaderResponse response ) {
  super.renderHead( response );
  response.renderOnDomReadyJavascript( 
  getCallbackScript().toString() );
  }
 
  } );
 
  This turns the previously statelesss page to stateful, AFAICS because of
getStatelessHint( Component component )
  returning false for the label.
 
  When I change this to return true, wicket says the page is expired on the 
  AJAX request...
 
  Can anybody say what had to be done?
 
  Btw: I'm using wicket-1.4-SNAPSHOT.
 
  Thanx in advance,
  cheers,
  Martin
 
 
  -
  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
 


signature.asc
Description: This is a digitally signed message part


Re: Google Analytics and Wicket

2009-04-17 Thread Mariana Bustamante
Is there any other method that doesn't mean many changes in my application??
Everything is already working fine and adding Google Analytics was supposed
to be one the final details..

I was thinking of something like adding the javascript manually into my
panels, I tried this on the panel to test it but it didn't work:

border.add(new AjaxEventBehavior(onload){
@Override
protected void onEvent(AjaxRequestTarget target) {
if(!tracked){
String jsGoogle = if
(http_request.readyState == 4) { if (http_request.status == 200) {
alert(http_request.responseText);
pageTracker._trackPageview('+GOOGLE_NAME+' ); } else { alert('Error.'); ;

target.addComponent(border);

target.appendJavascript(jsGoogle);
tracked = true;
}
}

});

any more ideas?

Thanks in advance,

Mariana

On Sat, Apr 18, 2009 at 5:28 PM, nino martinez wael 
nino.martinez.w...@gmail.com wrote:

 If you use markup inheritance just drop it in the parent page.. And
 there you go.. :) If not.. Well this is a good reason to start :)
 Works like a snug for my applications

 2009/4/17 Mariana Bustamante marian...@gmail.com:
  Hello,
 
  I'm trying to use Google Analytics with my web application made using
  Wicket. The layout of my application is like this:
 
  I have a global plage called homePage that contains some panels inside.
  One of the panels is a menu which is completely made in java code using
  Wicket, the other important panel is the content panel that changes to a
  different panel with Ajax every time a user clicks a button on the menu.
 
  I tried placing the Google Analytics script at the bottom of the homePage
  but, as expected, in the generated report I can only see this page.
 However,
  I need to be able to view every panel as a different page.
 
  There is a link in the google analytics suppport page that seems like
 what
  I'm looking for (
 
 http://www.google.com/support/googleanalytics/bin/answer.py?hl=enanswer=55519
 )
  but I can't see where to put the code they give since the links in my
 menu
  are generated by Wicket in java code and not in html.
 
  I would really appreciate any help to solve this problem,
 
  Thanks in advance,
 
  Mariana
 

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




RE: @SSLRequired

2009-04-17 Thread Douglas Ferguson
Ok.. I had a chance to look at the code. 

It will have the same problem as my code.

1) Page1 (doesn't require https)  
   Page2 (requires https)
   I load Page1 and it detects a situation that requires it to load Page2.
   The redirect is done inside wicket using setResponsePage(page2)
   The requestCyledProcessor will intercept this after the internarl redirect 
   at which point it sees Page2 on the target and realizes it needs to redirect 
to https
   When it redirects it uses the httpservlet request to build a new url and 
changing the protocol.
   Since the orginal request was made for Page1, wicket will request Page1 
(this constructing another object), when then we redirect to Page2 again, if 
loading these pages causing side effects, these side effects will happen twice!
2) Page1 (doesn't required https)
   Page2 (required https)
   Page1 does a redirect to Pages using setResponsePage(new 
Page2(..specialParameters..))
   The internal redirect will trigger a protocol change, which triggers this 
code   
else if (target instanceof IBookmarkablePageRequestTarget)
{
return 
((IBookmarkablePageRequestTarget)target).getPageClass();
}
Which means that the instantiated Page2 that you expecting to redirect to 
will be thrown away 
and wicket will do a new instance on the Page2.getClass()




-Original Message-
From: Jeremy Thomerson [mailto:jer...@wickettraining.com] 
Sent: Friday, April 17, 2009 2:55 PM
To: users@wicket.apache.org
Subject: Re: @SSLRequired

Go to wicket.apache.org - in the left bar near the bottom there are links to
the source repo and to the fisheye view.

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



On Fri, Apr 17, 2009 at 2:30 PM, Douglas Ferguson 
doug...@douglasferguson.us wrote:

 Where cab I view it online I don't see it in the javadoc

 Douglas Ferguson
 512-293-7279
 Sent from my iPhone

 On Apr 17, 2009, at 1:52 PM, Igor Vaynberg igor.vaynb...@gmail.com
 wrote:

  see org.apache.wicket.protocol.https package
 
  -igor
 
  On Fri, Apr 17, 2009 at 11:40 AM, Douglas Ferguson
  doug...@douglasferguson.us wrote:
  Is 1.4 ready for prime-time?
 
  If not, is there anything I could cull from that code for 1.3.5? Or
  any other thoughts that might help?
 
 
  Douglas
 
  -Original Message-
  From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com]
  Sent: Friday, April 17, 2009 12:38 PM
  To: users@wicket.apache.org
  Subject: Re: @SSLRequired
 
  i just checked in org.apache.wicekt.protocol.https package that
  should
  help with this. its in 1.4 only.
 
  -igor
 
  On Fri, Apr 17, 2009 at 8:52 AM, Ryan Gravener
  r...@ryangravener.com wrote:
  How about just having apache httpd rewrite the http(s) for the
  pages you
  need?  I haven't yet did our ssl implementation, but I know that I
  don't
  want the logic in wicket.
 
  Ryan Gravener
  http://ryangravener.com/flex | http://twitter.com/ryangravener
 
 
  On Fri, Apr 17, 2009 at 11:27 AM, Douglas Ferguson 
  doug...@douglasferguson.us wrote:
 
  That's where I got my code..
 
  I'm hitting 2 issues
 
  1) The ssl detection/redirect isn't happening till the end of the
  chain and
  when it redirects it redirects back to the top.
 Ie. Page 1 is not secure, Page 2 is secure. Page one
  redirects to
  Page 2.
   If you go to page 1 then it attempts to redirect to page2
  and then
  wicket redirects to Page 1 with https..
   I would prefer to go directly to Page 2, but I can't figure
  out how to
  build that url..
  2) My other issues is this:
  else if (requestTarget instanceof IPageRequestTarget) {
 targetClass = ((IPageRequestTarget)
  requestTarget).getPage()
 .getClass();
 }
  This means that if you redirect to a Page object which you have
  constructed with special state, then this throws that object away
  and wicket
  will use default constructor.
 
  -Original Message-
  From: snoop...@gmail.com [mailto:snoop...@gmail.com] On Behalf Of
  Ryan
  Gravener
  Sent: Friday, April 17, 2009 10:00 AM
  To: users@wicket.apache.org
  Subject: Re: @SSLRequired
 
  maybe this is of use:
  http://cwiki.apache.org/WICKET/how-to-switch-to-ssl-mode.html
 
  Ryan Gravener
  http://ryangravener.com/flex | http://twitter.com/ryangravener
 
 
  On Fri, Apr 17, 2009 at 10:48 AM, Douglas Ferguson 
  doug...@douglasferguson.us wrote:
 
  I'm implement an SSL scheme using annotations and I'm having
  some issues
  with redirecting properly.
 
  The issue is when I have non-secured page that redirects to a
  secured
  page.
 
  I'm doing the https/http redirecting inside of a
  WebRequestCycleProcessor,
  which works well unless there is a redirect prior to the ssl
  redirect. If
  this happens then I redirect back to the top of the chain,
  because I'm
  using
  the HttpServletRequest to build the url, which returns url info
  

Re: Lazy loading via AJAX on stateless pages?

2009-04-17 Thread Igor Vaynberg
sure, you can use behaviors and requesttargets of whatever kind. just
make sure nothing on your page calls urlfor(component, interface) -
this is what causes the page to be stateful.

-igor

On Fri, Apr 17, 2009 at 3:14 PM, Martin Grotzke
martin.grot...@javakaffee.de wrote:
 Wow, very fast response!

 Is it possible to use wicket concepts like RequestTarget and Behavior on
 the serverside? I'd like to have this integrated with wicket as much as
 possible.

 Cheers,
 Martin


 On Fri, 2009-04-17 at 14:55 -0700, Igor Vaynberg wrote:
 you cannot use wicket ajax facilities as they are designed for
 stateful pages - the link that wicket uses for ajax callback is
 inherently stateful.

 what you can do is write javascript yourself using jquery, or
 something else to perform an ajax callback to some url you control and
 then replace some markup on your page with returned markup.

 -igor

 On Fri, Apr 17, 2009 at 2:52 PM, Martin Grotzke
 martin.grot...@javakaffee.de wrote:
  Hello,
 
  can somebody help with this?
 
  Thanx  cheers,
  Martin
 
 
  On Mon, 2009-04-13 at 12:16 +0200, martin.grot...@javakaffee.de wrote:
  Hi,
 
  I'm currently evaluating how it's possible to have stateless pages with
  some information loaded asynchronously via AJAX.
 
  I found these postings that are somehow related to this
  http://www.nabble.com/Stateless-AJAX-links-td20031309.html
  http://www.nabble.com/Directions-for-Stateless-Ajax-td17518987.html
 
  but I'm not sure what exactly has to be done to achieve what I want.
 
  Basically I have a simple page where I added an AjaxBehavior to a label
  that shall get replaced via AJAX:
 
  final Label label = new Label( info, foo );
  add( label.setOutputMarkupId( true ) );
  label.add(new AbstractDefaultAjaxBehavior() {
 
      @Override
      protected void respond( AjaxRequestTarget target ) {
          final Label lazyLabel = new Label( info, loaded 
  asynchronously );
          Index.this.replace( lazyLabel.setOutputMarkupId( true ) );
          target.addComponent( lazyLabel );
      }
 
      @Override
      public void renderHead( IHeaderResponse response ) {
          super.renderHead( response );
          response.renderOnDomReadyJavascript( 
  getCallbackScript().toString() );
      }
 
  } );
 
  This turns the previously statelesss page to stateful, AFAICS because of
    getStatelessHint( Component component )
  returning false for the label.
 
  When I change this to return true, wicket says the page is expired on the 
  AJAX request...
 
  Can anybody say what had to be done?
 
  Btw: I'm using wicket-1.4-SNAPSHOT.
 
  Thanx in advance,
  cheers,
  Martin
 
 
  -
  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: @SSLRequired

2009-04-17 Thread Igor Vaynberg
huh?
if you call setresponsepage(new page2()) this will not create a
bookmarkable page request target, if it did then these kinds of links
wouldnt work regardless of http or https.

-igor

On Fri, Apr 17, 2009 at 3:35 PM, Douglas Ferguson
doug...@douglasferguson.us wrote:
 Ok.. I had a chance to look at the code.

 It will have the same problem as my code.

 1) Page1 (doesn't require https)
   Page2 (requires https)
   I load Page1 and it detects a situation that requires it to load Page2.
   The redirect is done inside wicket using setResponsePage(page2)
   The requestCyledProcessor will intercept this after the internarl redirect
   at which point it sees Page2 on the target and realizes it needs to 
 redirect to https
   When it redirects it uses the httpservlet request to build a new url and 
 changing the protocol.
   Since the orginal request was made for Page1, wicket will request Page1 
 (this constructing another object), when then we redirect to Page2 again, if 
 loading these pages causing side effects, these side effects will happen 
 twice!
 2) Page1 (doesn't required https)
   Page2 (required https)
   Page1 does a redirect to Pages using setResponsePage(new 
 Page2(..specialParameters..))
   The internal redirect will trigger a protocol change, which triggers this 
 code
    else if (target instanceof IBookmarkablePageRequestTarget)
                {
                        return 
 ((IBookmarkablePageRequestTarget)target).getPageClass();
                }
    Which means that the instantiated Page2 that you expecting to redirect to 
 will be thrown away
    and wicket will do a new instance on the Page2.getClass()




 -Original Message-
 From: Jeremy Thomerson [mailto:jer...@wickettraining.com]
 Sent: Friday, April 17, 2009 2:55 PM
 To: users@wicket.apache.org
 Subject: Re: @SSLRequired

 Go to wicket.apache.org - in the left bar near the bottom there are links to
 the source repo and to the fisheye view.

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



 On Fri, Apr 17, 2009 at 2:30 PM, Douglas Ferguson 
 doug...@douglasferguson.us wrote:

 Where cab I view it online I don't see it in the javadoc

 Douglas Ferguson
 512-293-7279
 Sent from my iPhone

 On Apr 17, 2009, at 1:52 PM, Igor Vaynberg igor.vaynb...@gmail.com
 wrote:

  see org.apache.wicket.protocol.https package
 
  -igor
 
  On Fri, Apr 17, 2009 at 11:40 AM, Douglas Ferguson
  doug...@douglasferguson.us wrote:
  Is 1.4 ready for prime-time?
 
  If not, is there anything I could cull from that code for 1.3.5? Or
  any other thoughts that might help?
 
 
  Douglas
 
  -Original Message-
  From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com]
  Sent: Friday, April 17, 2009 12:38 PM
  To: users@wicket.apache.org
  Subject: Re: @SSLRequired
 
  i just checked in org.apache.wicekt.protocol.https package that
  should
  help with this. its in 1.4 only.
 
  -igor
 
  On Fri, Apr 17, 2009 at 8:52 AM, Ryan Gravener
  r...@ryangravener.com wrote:
  How about just having apache httpd rewrite the http(s) for the
  pages you
  need?  I haven't yet did our ssl implementation, but I know that I
  don't
  want the logic in wicket.
 
  Ryan Gravener
  http://ryangravener.com/flex | http://twitter.com/ryangravener
 
 
  On Fri, Apr 17, 2009 at 11:27 AM, Douglas Ferguson 
  doug...@douglasferguson.us wrote:
 
  That's where I got my code..
 
  I'm hitting 2 issues
 
  1) The ssl detection/redirect isn't happening till the end of the
  chain and
  when it redirects it redirects back to the top.
         Ie. Page 1 is not secure, Page 2 is secure. Page one
  redirects to
  Page 2.
       If you go to page 1 then it attempts to redirect to page2
  and then
  wicket redirects to Page 1 with https..
       I would prefer to go directly to Page 2, but I can't figure
  out how to
  build that url..
  2) My other issues is this:
      else if (requestTarget instanceof IPageRequestTarget) {
                                 targetClass = ((IPageRequestTarget)
  requestTarget).getPage()
                                                 .getClass();
                         }
      This means that if you redirect to a Page object which you have
  constructed with special state, then this throws that object away
  and wicket
  will use default constructor.
 
  -Original Message-
  From: snoop...@gmail.com [mailto:snoop...@gmail.com] On Behalf Of
  Ryan
  Gravener
  Sent: Friday, April 17, 2009 10:00 AM
  To: users@wicket.apache.org
  Subject: Re: @SSLRequired
 
  maybe this is of use:
  http://cwiki.apache.org/WICKET/how-to-switch-to-ssl-mode.html
 
  Ryan Gravener
  http://ryangravener.com/flex | http://twitter.com/ryangravener
 
 
  On Fri, Apr 17, 2009 at 10:48 AM, Douglas Ferguson 
  doug...@douglasferguson.us wrote:
 
  I'm implement an SSL scheme using annotations and I'm having
  some issues
  with redirecting properly.
 
  The issue is when I have non-secured page that redirects to a
  secured
  page.
 
  I'm doing the 

changing style of ajax link

2009-04-17 Thread Jason Novotny


Hi,

I have code to create an ajax link and I want it to dynamically adjust 
its css class when clicked. This doesn't work since I don't think the 
onComponentTag is being called.


final AjaxLink link = new AjaxLink(navlink) {
   @Override
   public void onClick(AjaxRequestTarget target) {

 
   }


   public void onComponentTag(ComponentTag tag) {
   super.onComponentTag(tag);
   if (foo == 77) {
  tag.put(class, secondaryCurrent);
   }
   }

   };

Any help is greatly appreciated!

Thanks, Jason

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



Re: Google Analytics and Wicket

2009-04-17 Thread Brill Pappin
I'm not sure its going to work like that because as far as the browser  
is concerned (where google analytics runs) it's one seamless page.
in other words your panels are only separate as a means to easy  
development and maintenance but not as visible http requests.
That would be true of pretty much *any* ajax application, which really  
only has one (or a few) pages.


- Brill Pappin



On 18-Apr-09, at 5:57 PM, Mariana Bustamante wrote:

Is there any other method that doesn't mean many changes in my  
application??
Everything is already working fine and adding Google Analytics was  
supposed

to be one the final details..

I was thinking of something like adding the javascript manually into  
my

panels, I tried this on the panel to test it but it didn't work:

   border.add(new AjaxEventBehavior(onload){
   @Override
   protected void onEvent(AjaxRequestTarget  
target) {

   if(!tracked){
   String jsGoogle = if
(http_request.readyState == 4) { if (http_request.status ==  
200) {

alert(http_request.responseText);
pageTracker._trackPageview('+GOOGLE_NAME+' ); } else  
{ alert('Error.'); ;



target.addComponent(border);


target.appendJavascript(jsGoogle);
   tracked = true;
   }
   }

   });

any more ideas?

Thanks in advance,

Mariana

On Sat, Apr 18, 2009 at 5:28 PM, nino martinez wael 
nino.martinez.w...@gmail.com wrote:


If you use markup inheritance just drop it in the parent page.. And
there you go.. :) If not.. Well this is a good reason to start :)
Works like a snug for my applications

2009/4/17 Mariana Bustamante marian...@gmail.com:

Hello,

I'm trying to use Google Analytics with my web application made  
using

Wicket. The layout of my application is like this:

I have a global plage called homePage that contains some panels  
inside.
One of the panels is a menu which is completely made in java code  
using
Wicket, the other important panel is the content panel that  
changes to a
different panel with Ajax every time a user clicks a button on the  
menu.


I tried placing the Google Analytics script at the bottom of the  
homePage

but, as expected, in the generated report I can only see this page.

However,

I need to be able to view every panel as a different page.

There is a link in the google analytics suppport page that seems  
like

what

I'm looking for (


http://www.google.com/support/googleanalytics/bin/answer.py?hl=enanswer=55519
)
but I can't see where to put the code they give since the links in  
my

menu

are generated by Wicket in java code and not in html.

I would really appreciate any help to solve this problem,

Thanks in advance,

Mariana



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






smime.p7s
Description: S/MIME cryptographic signature


Re: Google Analytics and Wicket

2009-04-17 Thread Janos Cserep
Hi Mariana,

Yes, with __trackPageview you can pretty much achieve what you want to do.

In your menu component you probably change the panels by instantiating and
replacing a main panel inside your page, right?

If yes, do something like this:

public void onClick(AjaxRequestTarget target) {
  // ... replace, etc

  target.appendJavaScript(pageTracker._trackPageview(' + panel trackCode +
'););

}

AjaxRequestTarget.appendJavaScript gets evaluated by the browser at the end
of the AJAX call.

Hope this helps,

Janos


On Fri, Apr 17, 2009 at 11:53 PM, Mariana Bustamante marian...@gmail.comwrote:

 Hello,

 I'm trying to use Google Analytics with my web application made using
 Wicket. The layout of my application is like this:

 I have a global plage called homePage that contains some panels inside.
 One of the panels is a menu which is completely made in java code using
 Wicket, the other important panel is the content panel that changes to a
 different panel with Ajax every time a user clicks a button on the menu.

 I tried placing the Google Analytics script at the bottom of the homePage
 but, as expected, in the generated report I can only see this page.
 However,
 I need to be able to view every panel as a different page.

 There is a link in the google analytics suppport page that seems like what
 I'm looking for (

 http://www.google.com/support/googleanalytics/bin/answer.py?hl=enanswer=55519
 )
 but I can't see where to put the code they give since the links in my menu
 are generated by Wicket in java code and not in html.

 I would really appreciate any help to solve this problem,

 Thanks in advance,

 Mariana



Re: sessionsize of requestlogger

2009-04-17 Thread Bernard
It is tempting to use references of previous pages. But I understand
that passing references between pages and page serialization don't
mix nicely
http://mail-archives.apache.org/mod_mbox/wicket-dev/200903.mbox/%3c2e1ce7cd0903030143h4a525b8cu46915c799061a...@mail.gmail.com%3e

What would be the best Wicket way of letting the current page directly
modify the model of the previous page and then let the current page
show the previous page with the new model?

I prefer not to instantiate a page with a non-default constructor
because it breaks if the user reloads it. How do we pass parameters
between pages except via query strings which I try to avoid for
various reasons?

Or as Daniele asked: Is there a way to recover the last Page in a non
restful way?

Is there any jira issue that tracks this subject?

Bernard

On Wed, 15 Apr 2009 09:09:12 -0700, you wrote:

On Wed, Apr 15, 2009 at 2:22 AM, Daniele Dellafiore ilde...@gmail.com wrote:
 On Mon, Jan 12, 2009 at 5:43 PM, carloc carlo_ca...@yahoo.com wrote:

 What Page Does Wicket Store in its HttpSession?

the last page accessed from every pagemap is stored in httpsession.

 Is it bad to keep a reference to the previous pages in instance variables of
 new pages?

when using diskpagestore there are certain usecases that break. if you
keep a page purely for navigation purposes it is fine. but if you
manipulate instance of a page from inside a page that holds a
reference to it it might lead to unintended sideeffects like your
changes to that instance being lost. this has to do with how
diskpagestore keeps each page separate and how it rewrites references
during serialization.

-igor


 I am really interested in an answer about this two questions. I am
 using 1.3 so I cannot use Page Reference mechanism.

 Finally, I cannot find a way to recover the last Page in a non restful
 way and as I stated in another mail, history.back does not work in all
 conditions (i.e. submit that reload the page instead of calling a
 setResponse)

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

 -
 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-ajax and IE performance problems for pages with many links

2009-04-17 Thread Jason Lea
Wicket.Focus.attachFocusEvent is very slow in IE compared to FireFox.  
At first I thought attaching an event was slow, but it seems to be just 
iterating over the list of elements returned by 
document.getElementsByTagName takes forever. 
FF would take 17 ms, IE 900ms for a test page with 1200 links.


Another issue with attaching events to all of these elements is that it 
occurs once in DOM load, but also after every ajax response.  So my test 
page with one ajax link, with an empty onClick(AjaxRequestTarget), there 
is a 900ms delay after the response comes back even with no changes.


I changed the Wicket.Focus.attachFocusEvent function to do nothing, and 
added these events (can be done before dom load)


   Wicket.Event.add(window,'focus',Wicket.Focus.setFocus);
   Wicket.Event.add(window,'blur',Wicket.Focus.blur);

So we capture all the focus and blur events inside the window, and call 
the existing functions.  The window gets the focus event for the element 
first before it gets to the element and bubbles back up again.  A quick 
look at FF and IE show the same Focus/Blue events in the log, and the 
delay is gone.  The other benefit is you don't have to reattach events 
after the ajax response changes the dom :)


Matej Knopp wrote:

Well, it kinda does. You can submit the links and buttons with
keyboard  - and when you do it does make sense to preserve focus when
you replace the submitting button or link.

-Matej

On Fri, Apr 17, 2009 at 9:48 AM, Johan Compagner jcompag...@gmail.com wrote:
  

Buttons and links dont make much sense yes.
Dont remember why we should do this.
Will check the code

On 16/04/2009, Igor Vaynberg igor.vaynb...@gmail.com wrote:


this code is there so we can track focus and properly restore it after
ajax modifies the dom. i am not sure why we need to track and restore
focus on anchors, it is only important when you are typing so that the
cursor doesnt move elsewhere - so only for textfields and textareas.

johan, matej says you wanted to track focus for anchors, whats the deal?

-igor

2009/4/16 Peter Gardfjäll peter.gardfj...@gmail.com:
  

Hi James,

I'm pretty sure that links are part of the problem.
To verify this, try replacing all a tags with e.g. span and see if
you can spot any difference in response time.
Alternatively, try replacing/commenting out ajax components/behaviors
on your page to prevent wicket-ajax.js from being pulled into the
page.

cheers, Peter

On Thu, Apr 16, 2009 at 3:52 PM, James Carman
jcar...@carmanconsulting.com wrote:


Peter,
I have experienced similar problems just recently.  I didn't narrow it
down
to the fact that the links were the problem, as you have, though!  I have
been racking my brains trying to figure this thing out.  My page is
similar,
a table with lots of cells in them that are links.  I've turned off CSS
and
other stuff trying to find the bottleneck.  I didn't think for a moment
that
it might be the links.

James

2009/4/16 Peter Gardfjäll peter.gardfj...@gmail.com

  

Hi all,

I am working on a wicket application intended to be executed both on
FF3 and IE7.
While working on this application I have discovered that the rendering
of some pages are a lot slower in IE.
The pages that were significantly slower on IE have a couple of things
in common: they are ajax-enabled and have lots of links.
These pages all appear to freeze for a while after all data has been
transferred, but before the page becomes responsive.

The reason (or at least one of the reasons) is that wicket-ajax.js,
which gets pulled in whenever an Ajax component/behavior is added to a
page, registers a function
(addDomReadyEvent(Wicket.Focus.attachFocusEvent)) that traverses all
{input,select,a,textarea,button} tags in the DOM tree when the page
has been loaded.

I timed this function for one of my pages (containing a single big
table with around 300 rows, with each row having about six links).
When the function is registered, the fireDomReadyHandlers in
wicket-event.js takes 2400 ms to execute, compared to 700 ms when not
registered. In firefox, the corresponding numbers are about 470 ms and
400 ms.

Hence, there seems to be quite a performance penalty involved in
loading ajax pages with lots of links in IE7.
I'm a bit worried about this overhead, particularly since I have a
rather fast machine (a lot better than most of the end users anyway).
I would not be surprised if clients see double page load times.

Have anyone on this list experienced similar problems?
Is this a known issue? (I have not been able to find anything similar
on the mailing list)
Any suggestions or pointers are welcome.

best regards, Peter

/PS By the way, I am using wicket 1.3.5.

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




-

Re: sessionsize of requestlogger

2009-04-17 Thread Igor Vaynberg
On Fri, Apr 17, 2009 at 5:49 PM, Bernard b...@actrix.gen.nz wrote:
 I prefer not to instantiate a page with a non-default constructor
 because it breaks if the user reloads it. How do we pass parameters
 between pages except via query strings which I try to avoid for
 various reasons?

can you please explain this a bit more? it is perfectly normal to do
setresponsepage(new edituserpage(usermodel));

wicket will redirect to a GET url which will always properly load that
instance of the page, not create a new one every time.

you can pass page references around using Page#getPageReference,
formerly Page#getPageId, and constructing a url to it using
requestcycle.urlfor() method.

-igor


 Or as Daniele asked: Is there a way to recover the last Page in a non
 restful way?

 Is there any jira issue that tracks this subject?

 Bernard

 On Wed, 15 Apr 2009 09:09:12 -0700, you wrote:

On Wed, Apr 15, 2009 at 2:22 AM, Daniele Dellafiore ilde...@gmail.com wrote:
 On Mon, Jan 12, 2009 at 5:43 PM, carloc carlo_ca...@yahoo.com wrote:

 What Page Does Wicket Store in its HttpSession?

the last page accessed from every pagemap is stored in httpsession.

 Is it bad to keep a reference to the previous pages in instance variables 
 of
 new pages?

when using diskpagestore there are certain usecases that break. if you
keep a page purely for navigation purposes it is fine. but if you
manipulate instance of a page from inside a page that holds a
reference to it it might lead to unintended sideeffects like your
changes to that instance being lost. this has to do with how
diskpagestore keeps each page separate and how it rewrites references
during serialization.

-igor


 I am really interested in an answer about this two questions. I am
 using 1.3 so I cannot use Page Reference mechanism.

 Finally, I cannot find a way to recover the last Page in a non restful
 way and as I stated in another mail, history.back does not work in all
 conditions (i.e. submit that reload the page instead of calling a
 setResponse)

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

 -
 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: changing style of ajax link

2009-04-17 Thread Jeremy Thomerson
try something like this:

onClick(AjaxRequestTarget art) {
art.appendJavascript(document.getElementById(' + getMarkupId() +
').className='yourcssclass');
}

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



On Fri, Apr 17, 2009 at 5:57 PM, Jason Novotny novo...@gridsphere.orgwrote:


 Hi,

 I have code to create an ajax link and I want it to dynamically adjust its
 css class when clicked. This doesn't work since I don't think the
 onComponentTag is being called.

 final AjaxLink link = new AjaxLink(navlink) {
   @Override
   public void onClick(AjaxRequestTarget target) {

   }

   public void onComponentTag(ComponentTag tag) {
   super.onComponentTag(tag);
   if (foo == 77) {
  tag.put(class, secondaryCurrent);
   }
   }

   };

 Any help is greatly appreciated!

 Thanks, Jason

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




Re: changing style of ajax link

2009-04-17 Thread James Carman
Couldn't you use an AttributeModifier behavior?  The value of the
attribute can be obtained from a model.  Just make sure you update the
link itself inside the onClick()

On Fri, Apr 17, 2009 at 11:30 PM, Jeremy Thomerson
jer...@wickettraining.com wrote:
 try something like this:

 onClick(AjaxRequestTarget art) {
 art.appendJavascript(document.getElementById(' + getMarkupId() +
 ').className='yourcssclass');
 }

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



 On Fri, Apr 17, 2009 at 5:57 PM, Jason Novotny novo...@gridsphere.orgwrote:


 Hi,

 I have code to create an ajax link and I want it to dynamically adjust its
 css class when clicked. This doesn't work since I don't think the
 onComponentTag is being called.

 final AjaxLink link = new AjaxLink(navlink) {
           @Override
           public void onClick(AjaxRequestTarget target) {

                       }

           public void onComponentTag(ComponentTag tag) {
               super.onComponentTag(tag);
               if (foo == 77) {
                  tag.put(class, secondaryCurrent);
               }
           }

       };

 Any help is greatly appreciated!

 Thanks, Jason

 -
 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: Checkbox tree component

2009-04-17 Thread Edi

Hello Doug,

I am not able to configure the above example Doug.

Could you give me .war file. please

thanks and regards,
edi 
-- 
View this message in context: 
http://www.nabble.com/Checkbox-tree-component-tp13433102p23109331.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: changing style of ajax link

2009-04-17 Thread James Carman
By the way, I tested this out and it works.  Just use a model that you
can change (perhaps a property model) in your onClick() method.

On Fri, Apr 17, 2009 at 11:41 PM, James Carman
jcar...@carmanconsulting.com wrote:
 Couldn't you use an AttributeModifier behavior?  The value of the
 attribute can be obtained from a model.  Just make sure you update the
 link itself inside the onClick()

 On Fri, Apr 17, 2009 at 11:30 PM, Jeremy Thomerson
 jer...@wickettraining.com wrote:
 try something like this:

 onClick(AjaxRequestTarget art) {
 art.appendJavascript(document.getElementById(' + getMarkupId() +
 ').className='yourcssclass');
 }

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



 On Fri, Apr 17, 2009 at 5:57 PM, Jason Novotny novo...@gridsphere.orgwrote:


 Hi,

 I have code to create an ajax link and I want it to dynamically adjust its
 css class when clicked. This doesn't work since I don't think the
 onComponentTag is being called.

 final AjaxLink link = new AjaxLink(navlink) {
           @Override
           public void onClick(AjaxRequestTarget target) {

                       }

           public void onComponentTag(ComponentTag tag) {
               super.onComponentTag(tag);
               if (foo == 77) {
                  tag.put(class, secondaryCurrent);
               }
           }

       };

 Any help is greatly appreciated!

 Thanks, Jason

 -
 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