Why is my page stateless, and how do I make it stateful? (using Wicket 1.4-m3)

2008-11-16 Thread Ilja
Hi,
I have a mounted, bookmarkable page with a form in it.

My problem is that I want to keep state in the page. However, at every
request, the page is constructed anew and, obviously, I lose the state I'd
like to keep.

At the same time (and this mystifies me a little), form components seem to
keep state between requests during validation (non-form components, such as
Labels, which are also included in my form class, do not keep state).

So, since the page is re-constructed at every request, am I dealing with a
stateless page (even though the form seems to keep some state)?
And how could I make that page stateful?
(I've tried setting setStatelessHint(false) on the page but that doesn't
make a difference).
Why is the page stateless even though it has a stateful component (the form)
in it?

I've scoured the Wiki and can't seem to find an answer to this problem.

Any thoughts would be appreciated!

Thanks!

ilja


RE: Reading an attribute that is set in a CSS file as a class

2008-11-16 Thread Swinsburg, Stephen
On your component attach an AttributeAppender or AttributeModifier, set the 
class attribute to be the name of your class. Done :)


-Original Message-
From: egolan74 [mailto:[EMAIL PROTECTED]
Sent: Sun 11/16/2008 10:05 AM
To: users@wicket.apache.org
Subject: Reading an attribute that is set in a CSS file as a class
 

Hello,
Suppose I have a CSS file that is used in our application (HeaderContributer
etc.)
In this file I have many classes.
Suppose I want to get an attribute that is in one of these classes.
Example:
In my CSS file I have:
...
.colored-table {
  border: thin;
  background-color: #BB
...
}

I want in Wicket code something like:
getClassAttributeFromCss(CSS_File, attributeName).
And, putting in CSS file the location of that file (same methods as in the
HeaderContributor.forCss).
Putting background-color in the second parameter.

Result: #BB

Is it possible?

-
Eyal Golan
[EMAIL PROTECTED]

Visit:  http://jvdrums.sourceforge.net/ JVDrums 
LinkedIn:  http://www.linkedin.com/in/egolan74 LinkedIn 
-- 
View this message in context: 
http://www.nabble.com/Reading-an-attribute-that-is-set-in-a-CSS-file-as-a-class-tp20523855p20523855.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reading an attribute that is set in a CSS file as a class

2008-11-16 Thread egolan74

Hello,
Suppose I have a CSS file that is used in our application (HeaderContributer
etc.)
In this file I have many classes.
Suppose I want to get an attribute that is in one of these classes.
Example:
In my CSS file I have:
...
.colored-table {
  border: thin;
  background-color: #BB
...
}

I want in Wicket code something like:
getClassAttributeFromCss(CSS_File, attributeName).
And, putting in CSS file the location of that file (same methods as in the
HeaderContributor.forCss).
Putting background-color in the second parameter.

Result: #BB

Is it possible?

-
Eyal Golan
[EMAIL PROTECTED]

Visit:  http://jvdrums.sourceforge.net/ JVDrums 
LinkedIn:  http://www.linkedin.com/in/egolan74 LinkedIn 
-- 
View this message in context: 
http://www.nabble.com/Reading-an-attribute-that-is-set-in-a-CSS-file-as-a-class-tp20523855p20523855.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Reading an attribute that is set in a CSS file as a class

2008-11-16 Thread egolan74



Steve Swinsburg-2 wrote:
 
 On your component attach an AttributeAppender or AttributeModifier, set
 the class attribute to be the name of your class. Done :)
 

Thanks Steve but this is not what I meant.
Adding a class as an attribute to a component is a pretty basic stuff.

What I want is, getting a value of an attribute of a class in a CSS file.

-
Eyal Golan
[EMAIL PROTECTED]

Visit:  http://jvdrums.sourceforge.net/ JVDrums 
LinkedIn:  http://www.linkedin.com/in/egolan74 LinkedIn 
-- 
View this message in context: 
http://www.nabble.com/Reading-an-attribute-that-is-set-in-a-CSS-file-as-a-class-tp20523855p20524044.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Reading an attribute that is set in a CSS file as a class

2008-11-16 Thread Swinsburg, Stephen

What do you need it for? Why can't you just make another class with just the 
attribute in it and AttributeAppender that in?



-Original Message-
From: egolan74 [mailto:[EMAIL PROTECTED]
Sent: Sun 11/16/2008 10:42 AM
To: users@wicket.apache.org
Subject: RE: Reading an attribute that is set in a CSS file as a class
 



Steve Swinsburg-2 wrote:
 
 On your component attach an AttributeAppender or AttributeModifier, set
 the class attribute to be the name of your class. Done :)
 

Thanks Steve but this is not what I meant.
Adding a class as an attribute to a component is a pretty basic stuff.

What I want is, getting a value of an attribute of a class in a CSS file.

-
Eyal Golan
[EMAIL PROTECTED]

Visit:  http://jvdrums.sourceforge.net/ JVDrums 
LinkedIn:  http://www.linkedin.com/in/egolan74 LinkedIn 
-- 
View this message in context: 
http://www.nabble.com/Reading-an-attribute-that-is-set-in-a-CSS-file-as-a-class-tp20523855p20524044.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: TextField inside a ModalWindow problems

2008-11-16 Thread richardwilko

Im at a loss then, the only other thing i could suggest is that you put the
code directly into the page, rather than in the domready event.

form
..form code..
script type=text/javascript !--/*--![CDATA[/*!--*/
 Event.observe('peopleLocatorForm18', 'submit', function(event){
Event.stop(event); alert('success!!!'); });
/*--]]*//script
/form

Or maybe it has something to do with the modal window javascript code?

Richard 

venuko wrote:
 
 Richard,
 
 I looked at the zoomf.com, the search worked in my browser, so I modified
 my JavaScript accordingly. Here is what you got on that page:
 
 script type=text/javascript !--/*--![CDATA[/*!--*/
 Wicket.Event.add(window, domready, function() {
 Event.observe('searchForm74', 'submit', function(event){
 Event.stop(event); submitSearchForm(); });;});
 /*--]]*//script
 
 Here is what I got:
 
 script type=text/javascript !--/*--![CDATA[/*!--*/
 Wicket.Event.add(window, domready, function() {
 Event.observe('peopleLocatorForm18', 'submit', function(event){
 Event.stop(event); alert('success!!!'); });;});
 /*--]]*//script
 
 I really can't see a difference. However mine still submits the form
 normally. And I am pretty sure it is the right form that I am attaching
 the observer to. As my son says, it just not fair :)
 
 --Victor
 
 
 richardwilko wrote:
 
 the page is www.zoomf.com/map if you want to see it for yourself.
 
 
 


-
http://richard-wilkinson.co.uk My blog: http://richard-wilkinson.co.uk 
-- 
View this message in context: 
http://www.nabble.com/TextField-inside-a-ModalWindow-problems-tp20363183p20524625.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Reading an attribute that is set in a CSS file as a class

2008-11-16 Thread James Carman
I have the same sort of need in my application.  I need to do an
overlay on an existing image using the same colors that are defined
in a CSS document.  I guess I could dynamically generate the CSS, but
I have no idea how to go about that. :)

On Sun, Nov 16, 2008 at 7:02 AM, Swinsburg, Stephen
[EMAIL PROTECTED] wrote:

 What do you need it for? Why can't you just make another class with just the 
 attribute in it and AttributeAppender that in?



 -Original Message-
 From: egolan74 [mailto:[EMAIL PROTECTED]
 Sent: Sun 11/16/2008 10:42 AM
 To: users@wicket.apache.org
 Subject: RE: Reading an attribute that is set in a CSS file as a class




 Steve Swinsburg-2 wrote:

 On your component attach an AttributeAppender or AttributeModifier, set
 the class attribute to be the name of your class. Done :)


 Thanks Steve but this is not what I meant.
 Adding a class as an attribute to a component is a pretty basic stuff.

 What I want is, getting a value of an attribute of a class in a CSS file.

 -
 Eyal Golan
 [EMAIL PROTECTED]

 Visit:  http://jvdrums.sourceforge.net/ JVDrums
 LinkedIn:  http://www.linkedin.com/in/egolan74 LinkedIn
 --
 View this message in context: 
 http://www.nabble.com/Reading-an-attribute-that-is-set-in-a-CSS-file-as-a-class-tp20523855p20524044.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Reading an attribute that is set in a CSS file as a class

2008-11-16 Thread Ernesto Reinaldo Barreiro
I see two options:
1-Generate the css out for of some other data you can easily use at Java
level (a velocity template maybe?)
2-Parse the CSS (e.g. with
http://cssparser.sourceforge.net/)http://cssparser.sourceforge.net/
  http://www.w3.org/Style/CSS/SAC/

For a project I had to use approach 2 and it worked fine except for some
glitches on the parser (don't remember exactly but I think it was something
about _ character not accepted by the parser as part of CSS class-names, but
maybe this has already been fixed).

Best,

Ernesto

On Sun, Nov 16, 2008 at 3:09 PM, James Carman [EMAIL PROTECTED]wrote:

 I have the same sort of need in my application.  I need to do an
 overlay on an existing image using the same colors that are defined
 in a CSS document.  I guess I could dynamically generate the CSS, but
 I have no idea how to go about that. :)

 On Sun, Nov 16, 2008 at 7:02 AM, Swinsburg, Stephen
 [EMAIL PROTECTED] wrote:
 
  What do you need it for? Why can't you just make another class with just
 the attribute in it and AttributeAppender that in?
 
 
 
  -Original Message-
  From: egolan74 [mailto:[EMAIL PROTECTED]
  Sent: Sun 11/16/2008 10:42 AM
  To: users@wicket.apache.org
  Subject: RE: Reading an attribute that is set in a CSS file as a class
 
 
 
 
  Steve Swinsburg-2 wrote:
 
  On your component attach an AttributeAppender or AttributeModifier, set
  the class attribute to be the name of your class. Done :)
 
 
  Thanks Steve but this is not what I meant.
  Adding a class as an attribute to a component is a pretty basic stuff.
 
  What I want is, getting a value of an attribute of a class in a CSS file.
 
  -
  Eyal Golan
  [EMAIL PROTECTED]
 
  Visit:  http://jvdrums.sourceforge.net/ JVDrums
  LinkedIn:  http://www.linkedin.com/in/egolan74 LinkedIn
  --
  View this message in context:
 http://www.nabble.com/Reading-an-attribute-that-is-set-in-a-CSS-file-as-a-class-tp20523855p20524044.html
  Sent from the Wicket - User mailing list archive at Nabble.com.
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Re: Reading an attribute that is set in a CSS file as a class

2008-11-16 Thread James Carman
I was thinking about learning how to use TextTemplates to generate the
CSS.  Is there any good reference out there?

On Sun, Nov 16, 2008 at 9:44 AM, Ernesto Reinaldo Barreiro
[EMAIL PROTECTED] wrote:
 I see two options:
 1-Generate the css out for of some other data you can easily use at Java
 level (a velocity template maybe?)
 2-Parse the CSS (e.g. with
 http://cssparser.sourceforge.net/)http://cssparser.sourceforge.net/
  http://www.w3.org/Style/CSS/SAC/

 For a project I had to use approach 2 and it worked fine except for some
 glitches on the parser (don't remember exactly but I think it was something
 about _ character not accepted by the parser as part of CSS class-names, but
 maybe this has already been fixed).

 Best,

 Ernesto

 On Sun, Nov 16, 2008 at 3:09 PM, James Carman [EMAIL PROTECTED]wrote:

 I have the same sort of need in my application.  I need to do an
 overlay on an existing image using the same colors that are defined
 in a CSS document.  I guess I could dynamically generate the CSS, but
 I have no idea how to go about that. :)

 On Sun, Nov 16, 2008 at 7:02 AM, Swinsburg, Stephen
 [EMAIL PROTECTED] wrote:
 
  What do you need it for? Why can't you just make another class with just
 the attribute in it and AttributeAppender that in?
 
 
 
  -Original Message-
  From: egolan74 [mailto:[EMAIL PROTECTED]
  Sent: Sun 11/16/2008 10:42 AM
  To: users@wicket.apache.org
  Subject: RE: Reading an attribute that is set in a CSS file as a class
 
 
 
 
  Steve Swinsburg-2 wrote:
 
  On your component attach an AttributeAppender or AttributeModifier, set
  the class attribute to be the name of your class. Done :)
 
 
  Thanks Steve but this is not what I meant.
  Adding a class as an attribute to a component is a pretty basic stuff.
 
  What I want is, getting a value of an attribute of a class in a CSS file.
 
  -
  Eyal Golan
  [EMAIL PROTECTED]
 
  Visit:  http://jvdrums.sourceforge.net/ JVDrums
  LinkedIn:  http://www.linkedin.com/in/egolan74 LinkedIn
  --
  View this message in context:
 http://www.nabble.com/Reading-an-attribute-that-is-set-in-a-CSS-file-as-a-class-tp20523855p20524044.html
  Sent from the Wicket - User mailing list archive at Nabble.com.
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Reading an attribute that is set in a CSS file as a class

2008-11-16 Thread Ernesto Reinaldo Barreiro
I don't know on the Wicket wiki... but when I have to use such things I
always look into the existing wicket code. A quick search on my IDE leads
me to this the class org.wicketstuff.yui.markup.html.slider.Slider where a
text template is used to populate the init.js file... Hope this helps...
Best,

Ernesto

On Sun, Nov 16, 2008 at 3:50 PM, James Carman [EMAIL PROTECTED]wrote:

 I was thinking about learning how to use TextTemplates to generate the
 CSS.  Is there any good reference out there?

 On Sun, Nov 16, 2008 at 9:44 AM, Ernesto Reinaldo Barreiro
 [EMAIL PROTECTED] wrote:
  I see two options:
  1-Generate the css out for of some other data you can easily use at Java
  level (a velocity template maybe?)
  2-Parse the CSS (e.g. with
  http://cssparser.sourceforge.net/)http://cssparser.sourceforge.net/
   http://www.w3.org/Style/CSS/SAC/
 
  For a project I had to use approach 2 and it worked fine except for some
  glitches on the parser (don't remember exactly but I think it was
 something
  about _ character not accepted by the parser as part of CSS class-names,
 but
  maybe this has already been fixed).
 
  Best,
 
  Ernesto
 
  On Sun, Nov 16, 2008 at 3:09 PM, James Carman 
 [EMAIL PROTECTED]wrote:
 
  I have the same sort of need in my application.  I need to do an
  overlay on an existing image using the same colors that are defined
  in a CSS document.  I guess I could dynamically generate the CSS, but
  I have no idea how to go about that. :)
 
  On Sun, Nov 16, 2008 at 7:02 AM, Swinsburg, Stephen
  [EMAIL PROTECTED] wrote:
  
   What do you need it for? Why can't you just make another class with
 just
  the attribute in it and AttributeAppender that in?
  
  
  
   -Original Message-
   From: egolan74 [mailto:[EMAIL PROTECTED]
   Sent: Sun 11/16/2008 10:42 AM
   To: users@wicket.apache.org
   Subject: RE: Reading an attribute that is set in a CSS file as a class
  
  
  
  
   Steve Swinsburg-2 wrote:
  
   On your component attach an AttributeAppender or AttributeModifier,
 set
   the class attribute to be the name of your class. Done :)
  
  
   Thanks Steve but this is not what I meant.
   Adding a class as an attribute to a component is a pretty basic stuff.
  
   What I want is, getting a value of an attribute of a class in a CSS
 file.
  
   -
   Eyal Golan
   [EMAIL PROTECTED]
  
   Visit:  http://jvdrums.sourceforge.net/ JVDrums
   LinkedIn:  http://www.linkedin.com/in/egolan74 LinkedIn
   --
   View this message in context:
 
 http://www.nabble.com/Reading-an-attribute-that-is-set-in-a-CSS-file-as-a-class-tp20523855p20524044.html
   Sent from the Wicket - User mailing list archive at Nabble.com.
  
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
  
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Unable to load Wicket app in hosting provider

2008-11-16 Thread moraleslos

Hi,

I'm running into an issue where my Wicket-based application will absolutely
not load in the shared hosting environment.  I'm trying out GoDaddy's Java
Web hosting that uses Java 1.5 and Tomcat 5.0.27.  I have this same setup on
my box and deploying my Wicket 1.3.4-based application works.  However,
deploying the exact same war file on GoDaddy will not work.  The war
explodes appropriately but it seems as though Tomcat doesn't know what to do
with it.  I always get a 403 error when accessing my site.  The application
is really simple-- no DB even.  I made sure that log4j wrote to their /tmp
directory to avoid any issues.  I contacted GoDaddy and they said they could
not find any issues on their side.

Although I probably won't continue with Godaddy after my month is up, I just
can't seem to debug this issue.  Its a really simple Wicket app that should
work on any hosting environment.  All of my files are under the directories:
/WEB-INF/classes/
/WEB-INF/lib/
/WEB-INF/web.xml

My deployment descriptor looks like this:

web-app 
version=2.4 
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;

display-namemoralesTest/display-name
context-param
param-nameconfiguration/param-name
param-valuedeployment/param-value
/context-param
filter
filter-namewicket.moraleslos/filter-name

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

param-valuecom.moraleslos.WicketTestApplication/param-value
/init-param
/filter
filter-mapping
filter-namewicket.moraleslos/filter-name
url-pattern/*/url-pattern
/filter-mapping
/web-app

Again, it seems as though Tomcat doesn't understand Wicket filters or
something, since I always get a 403 error. Any ideas on how I should debug
and/or fix this issue would be appreciated.  Thanks.

-los
-- 
View this message in context: 
http://www.nabble.com/Unable-to-load-Wicket-app-in-hosting-provider-tp20526412p20526412.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Unable to load Wicket app in hosting provider

2008-11-16 Thread moraleslos

Hi,

Thanks for the reply.  I did a quick check and would assume that Tomcat 5.0
supported 2.4 since the description on Apache's Web site says Apache Tomcat
5.5.x supports the same Servlet and JSP Specification versions as Apache
Tomcat 5.0.x., which happens to be Servlet 2.4 / JSP 2.0 (
http://tomcat.apache.org/whichversion.html
http://tomcat.apache.org/whichversion.html ). 

Lets say that Tomcat 5.0 only supports 2.3.  Another check on the 2.3 dtd
shows that it doesn't have servlet filters.  If this is the case, how do I
define Wicket in the deployment descriptor without having to use Wicket
filters?  Is there a Wicket servlet I can configure?  Thanks.

-los



Stefan Lindner wrote:
 
 I guess that 'web-app version=2.4' means this is a web application for
 servlet version 2.4. But Tomcat 5.0 supports only version 2.3? Mybe this
 could help you. Or you just drop the 'version =...' attribute.
 
 Stefan
 
 -Ursprüngliche Nachricht-
 Von: moraleslos [mailto:[EMAIL PROTECTED] 
 Gesendet: Sonntag, 16. November 2008 16:36
 An: users@wicket.apache.org
 Betreff: Unable to load Wicket app in hosting provider
 
 
 Hi,
 
 I'm running into an issue where my Wicket-based application will
 absolutely
 not load in the shared hosting environment.  I'm trying out GoDaddy's Java
 Web hosting that uses Java 1.5 and Tomcat 5.0.27.  I have this same setup
 on
 my box and deploying my Wicket 1.3.4-based application works.  However,
 deploying the exact same war file on GoDaddy will not work.  The war
 explodes appropriately but it seems as though Tomcat doesn't know what to
 do
 with it.  I always get a 403 error when accessing my site.  The
 application
 is really simple-- no DB even.  I made sure that log4j wrote to their /tmp
 directory to avoid any issues.  I contacted GoDaddy and they said they
 could
 not find any issues on their side.
 
 Although I probably won't continue with Godaddy after my month is up, I
 just
 can't seem to debug this issue.  Its a really simple Wicket app that
 should
 work on any hosting environment.  All of my files are under the
 directories:
 /WEB-INF/classes/
 /WEB-INF/lib/
 /WEB-INF/web.xml
 
 My deployment descriptor looks like this:
 
 web-app 
   version=2.4 
   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;
   
   display-namemoralesTest/display-name
   context-param
   param-nameconfiguration/param-name
   param-valuedeployment/param-value
   /context-param
   filter
   filter-namewicket.moraleslos/filter-name
   
 filter-classorg.apache.wicket.protocol.http.WicketFilter/filter-class
   init-param
   param-nameapplicationClassName/param-name
   
 param-valuecom.moraleslos.WicketTestApplication/param-value
   /init-param
   /filter
   filter-mapping
   filter-namewicket.moraleslos/filter-name
   url-pattern/*/url-pattern
   /filter-mapping
 /web-app
 
 Again, it seems as though Tomcat doesn't understand Wicket filters or
 something, since I always get a 403 error. Any ideas on how I should debug
 and/or fix this issue would be appreciated.  Thanks.
 
 -los
 -- 
 View this message in context:
 http://www.nabble.com/Unable-to-load-Wicket-app-in-hosting-provider-tp20526412p20526412.html
 Sent from the Wicket - User mailing list archive at Nabble.com.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Unable-to-load-Wicket-app-in-hosting-provider-tp20526412p20527093.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Adding/Removing a AjaxSelfUpdatingTimerBehavior...

2008-11-16 Thread Graeme Knight

Maybe I'm trying to do something silly. Is there an alternative?


Graeme Knight wrote:
 
 Hi.
 
 What's the best way of achieving this effect:
 
 1) Button is pressed to start a process.
 2) Updating of various panels contained within a WebMarkupContainer occurs
 on a 5 second period.
 3) Process stops and updating of WebMarkupContainer also stops.
 
 I understand the use of AjaxSelfUpdatingTimerBehavior - this really is a
 question of the best way to add/remove from the WebMarkupContainer on
 demand, or enable/disable on demand.
 
 Any thoughts most welcome.
 
 Rgds, Graeme.
 

-- 
View this message in context: 
http://www.nabble.com/Adding-Removing-a-AjaxSelfUpdatingTimerBehavior...-tp20520576p20527143.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Unable to load Wicket app in hosting provider

2008-11-16 Thread Stefan Lindner
It was just a guess!

-Ursprüngliche Nachricht-
Von: moraleslos [mailto:[EMAIL PROTECTED] 
Gesendet: Sonntag, 16. November 2008 17:37
An: users@wicket.apache.org
Betreff: RE: Unable to load Wicket app in hosting provider


Hi,

Thanks for the reply.  I did a quick check and would assume that Tomcat 5.0
supported 2.4 since the description on Apache's Web site says Apache Tomcat
5.5.x supports the same Servlet and JSP Specification versions as Apache
Tomcat 5.0.x., which happens to be Servlet 2.4 / JSP 2.0 (
http://tomcat.apache.org/whichversion.html
http://tomcat.apache.org/whichversion.html ). 

Lets say that Tomcat 5.0 only supports 2.3.  Another check on the 2.3 dtd
shows that it doesn't have servlet filters.  If this is the case, how do I
define Wicket in the deployment descriptor without having to use Wicket
filters?  Is there a Wicket servlet I can configure?  Thanks.

-los



Stefan Lindner wrote:
 
 I guess that 'web-app version=2.4' means this is a web application for
 servlet version 2.4. But Tomcat 5.0 supports only version 2.3? Mybe this
 could help you. Or you just drop the 'version =...' attribute.
 
 Stefan
 
 -Ursprüngliche Nachricht-
 Von: moraleslos [mailto:[EMAIL PROTECTED] 
 Gesendet: Sonntag, 16. November 2008 16:36
 An: users@wicket.apache.org
 Betreff: Unable to load Wicket app in hosting provider
 
 
 Hi,
 
 I'm running into an issue where my Wicket-based application will
 absolutely
 not load in the shared hosting environment.  I'm trying out GoDaddy's Java
 Web hosting that uses Java 1.5 and Tomcat 5.0.27.  I have this same setup
 on
 my box and deploying my Wicket 1.3.4-based application works.  However,
 deploying the exact same war file on GoDaddy will not work.  The war
 explodes appropriately but it seems as though Tomcat doesn't know what to
 do
 with it.  I always get a 403 error when accessing my site.  The
 application
 is really simple-- no DB even.  I made sure that log4j wrote to their /tmp
 directory to avoid any issues.  I contacted GoDaddy and they said they
 could
 not find any issues on their side.
 
 Although I probably won't continue with Godaddy after my month is up, I
 just
 can't seem to debug this issue.  Its a really simple Wicket app that
 should
 work on any hosting environment.  All of my files are under the
 directories:
 /WEB-INF/classes/
 /WEB-INF/lib/
 /WEB-INF/web.xml
 
 My deployment descriptor looks like this:
 
 web-app 
   version=2.4 
   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;
   
   display-namemoralesTest/display-name
   context-param
   param-nameconfiguration/param-name
   param-valuedeployment/param-value
   /context-param
   filter
   filter-namewicket.moraleslos/filter-name
   
 filter-classorg.apache.wicket.protocol.http.WicketFilter/filter-class
   init-param
   param-nameapplicationClassName/param-name
   
 param-valuecom.moraleslos.WicketTestApplication/param-value
   /init-param
   /filter
   filter-mapping
   filter-namewicket.moraleslos/filter-name
   url-pattern/*/url-pattern
   /filter-mapping
 /web-app
 
 Again, it seems as though Tomcat doesn't understand Wicket filters or
 something, since I always get a 403 error. Any ideas on how I should debug
 and/or fix this issue would be appreciated.  Thanks.
 
 -los
 -- 
 View this message in context:
 http://www.nabble.com/Unable-to-load-Wicket-app-in-hosting-provider-tp20526412p20526412.html
 Sent from the Wicket - User mailing list archive at Nabble.com.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Unable-to-load-Wicket-app-in-hosting-provider-tp20526412p20527093.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Unable to load Wicket app in hosting provider

2008-11-16 Thread moraleslos

BTW, I did test this on my box using Tomcat 5.0.27 with that same v2.4
deployment descriptor and the wicket filters and it worked fine.  Not sure
if one can enforce Tomcat 5.0.27 to use 2.3 instead of 2.4.  

-los
-- 
View this message in context: 
http://www.nabble.com/Unable-to-load-Wicket-app-in-hosting-provider-tp20526412p20527146.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Unable to load Wicket app in hosting provider

2008-11-16 Thread Martijn Dashorst
sounds like a rights problem on godaddy's part. Either they need to do
some tweaking of their apache side (I assume they have apache httpd
running in front of tomcat) or something else is fishy. this does not
sound like a Wicket problem.

Did you try deploying a helloworld servlet?

Martijn

On Sun, Nov 16, 2008 at 4:36 PM, moraleslos [EMAIL PROTECTED] wrote:

 Hi,

 I'm running into an issue where my Wicket-based application will absolutely
 not load in the shared hosting environment.  I'm trying out GoDaddy's Java
 Web hosting that uses Java 1.5 and Tomcat 5.0.27.  I have this same setup on
 my box and deploying my Wicket 1.3.4-based application works.  However,
 deploying the exact same war file on GoDaddy will not work.  The war
 explodes appropriately but it seems as though Tomcat doesn't know what to do
 with it.  I always get a 403 error when accessing my site.  The application
 is really simple-- no DB even.  I made sure that log4j wrote to their /tmp
 directory to avoid any issues.  I contacted GoDaddy and they said they could
 not find any issues on their side.

 Although I probably won't continue with Godaddy after my month is up, I just
 can't seem to debug this issue.  Its a really simple Wicket app that should
 work on any hosting environment.  All of my files are under the directories:
 /WEB-INF/classes/
 /WEB-INF/lib/
 /WEB-INF/web.xml

 My deployment descriptor looks like this:

 web-app
version=2.4
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;

display-namemoralesTest/display-name
context-param
param-nameconfiguration/param-name
param-valuedeployment/param-value
/context-param
filter
filter-namewicket.moraleslos/filter-name

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

 param-valuecom.moraleslos.WicketTestApplication/param-value
/init-param
/filter
filter-mapping
filter-namewicket.moraleslos/filter-name
url-pattern/*/url-pattern
/filter-mapping
 /web-app

 Again, it seems as though Tomcat doesn't understand Wicket filters or
 something, since I always get a 403 error. Any ideas on how I should debug
 and/or fix this issue would be appreciated.  Thanks.

 -los
 --
 View this message in context: 
 http://www.nabble.com/Unable-to-load-Wicket-app-in-hosting-provider-tp20526412p20526412.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]





-- 
Become a Wicket expert, learn from the best: http://wicketinaction.com
Apache Wicket 1.3.4 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Unable to load Wicket app in hosting provider

2008-11-16 Thread moraleslos

Thanks for the reply.  I think it could be a rights problem since a 403 error
is typically a permissions issue but I'm not sure how to explain it to these
GoDaddy people because they're really inexperienced.  If this is an apache
issue, what are the things I need to look for in order for me to explain it
appropriately, or to ask the right questions?

As for a helloworld servlet, do you mean a Wicket-based one or a simple one? 
I know that servlets do work since they gave me their test war file that
exploded and is able to work.  I haven't done a Wicket one and won't know
until tomorrow (GoDaddy bounces Tomcat at 1:00am every morning).  Thanks.

-los



Martijn Dashorst wrote:
 
 sounds like a rights problem on godaddy's part. Either they need to do
 some tweaking of their apache side (I assume they have apache httpd
 running in front of tomcat) or something else is fishy. this does not
 sound like a Wicket problem.
 
 Did you try deploying a helloworld servlet?
 
 Martijn
 
 On Sun, Nov 16, 2008 at 4:36 PM, moraleslos [EMAIL PROTECTED]
 wrote:

 Hi,

 I'm running into an issue where my Wicket-based application will
 absolutely
 not load in the shared hosting environment.  I'm trying out GoDaddy's
 Java
 Web hosting that uses Java 1.5 and Tomcat 5.0.27.  I have this same setup
 on
 my box and deploying my Wicket 1.3.4-based application works.  However,
 deploying the exact same war file on GoDaddy will not work.  The war
 explodes appropriately but it seems as though Tomcat doesn't know what to
 do
 with it.  I always get a 403 error when accessing my site.  The
 application
 is really simple-- no DB even.  I made sure that log4j wrote to their
 /tmp
 directory to avoid any issues.  I contacted GoDaddy and they said they
 could
 not find any issues on their side.

 Although I probably won't continue with Godaddy after my month is up, I
 just
 can't seem to debug this issue.  Its a really simple Wicket app that
 should
 work on any hosting environment.  All of my files are under the
 directories:
 /WEB-INF/classes/
 /WEB-INF/lib/
 /WEB-INF/web.xml

 My deployment descriptor looks like this:

 web-app
version=2.4
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;

display-namemoralesTest/display-name
context-param
param-nameconfiguration/param-name
param-valuedeployment/param-value
/context-param
filter
filter-namewicket.moraleslos/filter-name
   
 filter-classorg.apache.wicket.protocol.http.WicketFilter/filter-class
init-param
param-nameapplicationClassName/param-name
   
 param-valuecom.moraleslos.WicketTestApplication/param-value
/init-param
/filter
filter-mapping
filter-namewicket.moraleslos/filter-name
url-pattern/*/url-pattern
/filter-mapping
 /web-app

 Again, it seems as though Tomcat doesn't understand Wicket filters or
 something, since I always get a 403 error. Any ideas on how I should
 debug
 and/or fix this issue would be appreciated.  Thanks.

 -los
 --
 View this message in context:
 http://www.nabble.com/Unable-to-load-Wicket-app-in-hosting-provider-tp20526412p20526412.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


 
 
 
 -- 
 Become a Wicket expert, learn from the best: http://wicketinaction.com
 Apache Wicket 1.3.4 is released
 Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Unable-to-load-Wicket-app-in-hosting-provider-tp20526412p20527470.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Reading an attribute that is set in a CSS file as a class

2008-11-16 Thread James Carman
Thanks for the tip, Ernesto.  I'll check it out.

On Sun, Nov 16, 2008 at 10:23 AM, Ernesto Reinaldo Barreiro
[EMAIL PROTECTED] wrote:
 I don't know on the Wicket wiki... but when I have to use such things I
 always look into the existing wicket code. A quick search on my IDE leads
 me to this the class org.wicketstuff.yui.markup.html.slider.Slider where a
 text template is used to populate the init.js file... Hope this helps...
 Best,

 Ernesto

 On Sun, Nov 16, 2008 at 3:50 PM, James Carman [EMAIL PROTECTED]wrote:

 I was thinking about learning how to use TextTemplates to generate the
 CSS.  Is there any good reference out there?

 On Sun, Nov 16, 2008 at 9:44 AM, Ernesto Reinaldo Barreiro
 [EMAIL PROTECTED] wrote:
  I see two options:
  1-Generate the css out for of some other data you can easily use at Java
  level (a velocity template maybe?)
  2-Parse the CSS (e.g. with
  http://cssparser.sourceforge.net/)http://cssparser.sourceforge.net/
   http://www.w3.org/Style/CSS/SAC/
 
  For a project I had to use approach 2 and it worked fine except for some
  glitches on the parser (don't remember exactly but I think it was
 something
  about _ character not accepted by the parser as part of CSS class-names,
 but
  maybe this has already been fixed).
 
  Best,
 
  Ernesto
 
  On Sun, Nov 16, 2008 at 3:09 PM, James Carman 
 [EMAIL PROTECTED]wrote:
 
  I have the same sort of need in my application.  I need to do an
  overlay on an existing image using the same colors that are defined
  in a CSS document.  I guess I could dynamically generate the CSS, but
  I have no idea how to go about that. :)
 
  On Sun, Nov 16, 2008 at 7:02 AM, Swinsburg, Stephen
  [EMAIL PROTECTED] wrote:
  
   What do you need it for? Why can't you just make another class with
 just
  the attribute in it and AttributeAppender that in?
  
  
  
   -Original Message-
   From: egolan74 [mailto:[EMAIL PROTECTED]
   Sent: Sun 11/16/2008 10:42 AM
   To: users@wicket.apache.org
   Subject: RE: Reading an attribute that is set in a CSS file as a class
  
  
  
  
   Steve Swinsburg-2 wrote:
  
   On your component attach an AttributeAppender or AttributeModifier,
 set
   the class attribute to be the name of your class. Done :)
  
  
   Thanks Steve but this is not what I meant.
   Adding a class as an attribute to a component is a pretty basic stuff.
  
   What I want is, getting a value of an attribute of a class in a CSS
 file.
  
   -
   Eyal Golan
   [EMAIL PROTECTED]
  
   Visit:  http://jvdrums.sourceforge.net/ JVDrums
   LinkedIn:  http://www.linkedin.com/in/egolan74 LinkedIn
   --
   View this message in context:
 
 http://www.nabble.com/Reading-an-attribute-that-is-set-in-a-CSS-file-as-a-class-tp20523855p20524044.html
   Sent from the Wicket - User mailing list archive at Nabble.com.
  
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
  
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Unable to load Wicket app in hosting provider

2008-11-16 Thread Anton Veretennikov
Didn't try GoDaddy but left 3 other hostings because Wicket did not work there.
On one it didn't work at all.
On two others app opened 1-2 times and then hanged down for unknown time.

Now I opened an account on javaprovider.net - Private JVM Developer.
Wicket works here and I'm glad BUT works only when context name is in URL.
On aliases links don't work. Posted a problem to this list yesterday
and to hosting support today.
May be a problem with aliases, may be in settings.

Tony.

On Mon, Nov 17, 2008 at 12:10 AM, moraleslos [EMAIL PROTECTED] wrote:

 Thanks for the reply.  I think it could be a rights problem since a 403 error
 is typically a permissions issue but I'm not sure how to explain it to these
 GoDaddy people because they're really inexperienced.  If this is an apache
 issue, what are the things I need to look for in order for me to explain it
 appropriately, or to ask the right questions?

 As for a helloworld servlet, do you mean a Wicket-based one or a simple one?
 I know that servlets do work since they gave me their test war file that
 exploded and is able to work.  I haven't done a Wicket one and won't know
 until tomorrow (GoDaddy bounces Tomcat at 1:00am every morning).  Thanks.

 -los



 Martijn Dashorst wrote:

 sounds like a rights problem on godaddy's part. Either they need to do
 some tweaking of their apache side (I assume they have apache httpd
 running in front of tomcat) or something else is fishy. this does not
 sound like a Wicket problem.

 Did you try deploying a helloworld servlet?

 Martijn

 On Sun, Nov 16, 2008 at 4:36 PM, moraleslos [EMAIL PROTECTED]
 wrote:

 Hi,

 I'm running into an issue where my Wicket-based application will
 absolutely
 not load in the shared hosting environment.  I'm trying out GoDaddy's
 Java
 Web hosting that uses Java 1.5 and Tomcat 5.0.27.  I have this same setup
 on
 my box and deploying my Wicket 1.3.4-based application works.  However,
 deploying the exact same war file on GoDaddy will not work.  The war
 explodes appropriately but it seems as though Tomcat doesn't know what to
 do
 with it.  I always get a 403 error when accessing my site.  The
 application
 is really simple-- no DB even.  I made sure that log4j wrote to their
 /tmp
 directory to avoid any issues.  I contacted GoDaddy and they said they
 could
 not find any issues on their side.

 Although I probably won't continue with Godaddy after my month is up, I
 just
 can't seem to debug this issue.  Its a really simple Wicket app that
 should
 work on any hosting environment.  All of my files are under the
 directories:
 /WEB-INF/classes/
 /WEB-INF/lib/
 /WEB-INF/web.xml

 My deployment descriptor looks like this:

 web-app
version=2.4
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;

display-namemoralesTest/display-name
context-param
param-nameconfiguration/param-name
param-valuedeployment/param-value
/context-param
filter
filter-namewicket.moraleslos/filter-name

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

 param-valuecom.moraleslos.WicketTestApplication/param-value
/init-param
/filter
filter-mapping
filter-namewicket.moraleslos/filter-name
url-pattern/*/url-pattern
/filter-mapping
 /web-app

 Again, it seems as though Tomcat doesn't understand Wicket filters or
 something, since I always get a 403 error. Any ideas on how I should
 debug
 and/or fix this issue would be appreciated.  Thanks.

 -los
 --
 View this message in context:
 http://www.nabble.com/Unable-to-load-Wicket-app-in-hosting-provider-tp20526412p20526412.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]





 --
 Become a Wicket expert, learn from the best: http://wicketinaction.com
 Apache Wicket 1.3.4 is released
 Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




 --
 View this message in context: 
 http://www.nabble.com/Unable-to-load-Wicket-app-in-hosting-provider-tp20526412p20527470.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, 

Re: Unable to load Wicket app in hosting provider

2008-11-16 Thread Erik van Oosten
Maybe this helps. I've found that you need to start Tomcat from a 
directory that is writable for the user you are using (no idea why 
though). Besides the application log, you should also check Tomcat's log 
files.


Good luck,
   Erik.

moraleslos wrote:

Hi,

I'm running into an issue where my Wicket-based application will absolutely
not load in the shared hosting environment.  I'm trying out GoDaddy's Java
Web hosting that uses Java 1.5 and Tomcat 5.0.27.  I have this same setup on
my box and deploying my Wicket 1.3.4-based application works 


--
Erik van Oosten
http://www.day-to-day-stuff.blogspot.com/


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Why is my page stateless, and how do I make it stateful? (using Wicket 1.4-m3)

2008-11-16 Thread Ilja
Hi Igor, thanks for the response.
No, I don't mean when I press the refresh button. Here's exactly what
happens:

- I type the URL into my browser. In my debugger, I can see that a new page
is constructed (the page constructor runs).
- There is a form on the page. I type something into the form (something
that won't pass form validation).
- I click on the form submit button. In my debugger, I can see that a whole
new page is constructed (losing, of course, any state I had in the previous
page).
- Even though a new page is constructed, the form is returned to me with the
values filled in and a validation error.
I know this sounds very strange. But it's true, I've tested it many times.

The same thing happens when I fill in the form with values that will pass
validation:
- When I click the form submit button, I can see in my debugger that a whole
new page is constructed, and THEN the onSubmit() method of my form is
executed. Somehow, values filled into the form are retained even though a
whole new page was constructed. Other state in the page is lost.
Again, I know it sounds very strange.

I've tested some other pages in my application and they do not show this
behavior.
The only difference between this particular page and the other pages is that
for each of the other pages, a user has to be logged into the application.
The page in question, on the other hand, is a publicly accessible page for
which you do not have to be logged in. However, I don't see how that would
result in the behavior I see.
Also, the page in question uses PageParameters to receive some initial
values. But, again, I don't see how that would result in what I see.
I've also tried to get some info by calling isStateless() on the page but it
returns null.

What else could I try/what other info could I collect?

Thanks for the help!

ilja

On Sun, Nov 16, 2008 at 9:09 AM, Igor Vaynberg [EMAIL PROTECTED]wrote:

 a page with a form on it cannot be stateless. what do you mean
 reconstructing on every request? when you press the refresh button?
 that is because this is a bookmarkable url...

 -igor

 On Sun, Nov 16, 2008 at 12:54 AM, Ilja [EMAIL PROTECTED] wrote:
  Hi,
  I have a mounted, bookmarkable page with a form in it.
 
  My problem is that I want to keep state in the page. However, at every
  request, the page is constructed anew and, obviously, I lose the state
 I'd
  like to keep.
 
  At the same time (and this mystifies me a little), form components seem
 to
  keep state between requests during validation (non-form components, such
 as
  Labels, which are also included in my form class, do not keep state).
 
  So, since the page is re-constructed at every request, am I dealing with
 a
  stateless page (even though the form seems to keep some state)?
  And how could I make that page stateful?
  (I've tried setting setStatelessHint(false) on the page but that doesn't
  make a difference).
  Why is the page stateless even though it has a stateful component (the
 form)
  in it?
 
  I've scoured the Wiki and can't seem to find an answer to this problem.
 
  Any thoughts would be appreciated!
 
  Thanks!
 
  ilja
 

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Re: Why is my page stateless, and how do I make it stateful? (using Wicket 1.4-m3)

2008-11-16 Thread Igor Vaynberg
try adding a Link to the page and see if it still happens. also, what
is the action url of the form?

-igor

On Sun, Nov 16, 2008 at 12:06 PM, Ilja [EMAIL PROTECTED] wrote:
 Hi Igor, thanks for the response.
 No, I don't mean when I press the refresh button. Here's exactly what
 happens:

 - I type the URL into my browser. In my debugger, I can see that a new page
 is constructed (the page constructor runs).
 - There is a form on the page. I type something into the form (something
 that won't pass form validation).
 - I click on the form submit button. In my debugger, I can see that a whole
 new page is constructed (losing, of course, any state I had in the previous
 page).
 - Even though a new page is constructed, the form is returned to me with the
 values filled in and a validation error.
 I know this sounds very strange. But it's true, I've tested it many times.

 The same thing happens when I fill in the form with values that will pass
 validation:
 - When I click the form submit button, I can see in my debugger that a whole
 new page is constructed, and THEN the onSubmit() method of my form is
 executed. Somehow, values filled into the form are retained even though a
 whole new page was constructed. Other state in the page is lost.
 Again, I know it sounds very strange.

 I've tested some other pages in my application and they do not show this
 behavior.
 The only difference between this particular page and the other pages is that
 for each of the other pages, a user has to be logged into the application.
 The page in question, on the other hand, is a publicly accessible page for
 which you do not have to be logged in. However, I don't see how that would
 result in the behavior I see.
 Also, the page in question uses PageParameters to receive some initial
 values. But, again, I don't see how that would result in what I see.
 I've also tried to get some info by calling isStateless() on the page but it
 returns null.

 What else could I try/what other info could I collect?

 Thanks for the help!

 ilja

 On Sun, Nov 16, 2008 at 9:09 AM, Igor Vaynberg [EMAIL PROTECTED]wrote:

 a page with a form on it cannot be stateless. what do you mean
 reconstructing on every request? when you press the refresh button?
 that is because this is a bookmarkable url...

 -igor

 On Sun, Nov 16, 2008 at 12:54 AM, Ilja [EMAIL PROTECTED] wrote:
  Hi,
  I have a mounted, bookmarkable page with a form in it.
 
  My problem is that I want to keep state in the page. However, at every
  request, the page is constructed anew and, obviously, I lose the state
 I'd
  like to keep.
 
  At the same time (and this mystifies me a little), form components seem
 to
  keep state between requests during validation (non-form components, such
 as
  Labels, which are also included in my form class, do not keep state).
 
  So, since the page is re-constructed at every request, am I dealing with
 a
  stateless page (even though the form seems to keep some state)?
  And how could I make that page stateful?
  (I've tried setting setStatelessHint(false) on the page but that doesn't
  make a difference).
  Why is the page stateless even though it has a stateful component (the
 form)
  in it?
 
  I've scoured the Wiki and can't seem to find an answer to this problem.
 
  Any thoughts would be appreciated!
 
  Thanks!
 
  ilja
 

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Page references and serialization

2008-11-16 Thread Mikko Pukki
Hi,

I tried to recreate similar situation where Page A has a link to PageB
and PageB holds a reference to PageA. I got similar result with as Cristiano.
though I only tried Wicket 1.3.5.

PageA is serialized twice and pageId, versionNumber and ajaxVersionNumber
are same with two instances of PageA (I put a breakpoint and checked contents
of List pages on DiskPageStore line 961). Field data was also identical.

Also on line 246:
channel.write(ByteBuffer.wrap(page.getData()), window.getFilePartOffset());

PageA is written to channel twice with identical content.


Hope this helps.

Regards,
Mikko Pukki

-Original Message-
From: Johan Compagner [mailto:[EMAIL PROTECTED] 
Sent: 14. marraskuuta 2008 21:10
To: users@wicket.apache.org
Subject: Re: Page references and serialization

Doesnt have to be  a bug, (it could be a new version of page a) but
besides that dont we have a sliding window in the pagemap, so if page
a is touched shouldnt it get its own new place in the file (more 2 the
top) so that it doesnt get overwritten later on to early?

On 11/14/08, Matej Knopp [EMAIL PROTECTED] wrote:
 That would be a bug then. What wicket version are you using?

 -Matej

 On Fri, Nov 14, 2008 at 4:11 PM, Cristiano Kliemann
 [EMAIL PROTECTED] wrote:
 Martijn,

 I'm pretty sure it is serializing PageA again. I've put some breakpoints
 to
 confirm it (at DiskPageStore.PageSavingThread.run()). Also, the growt rate
 of the page store indicates that.

 The test I've run:

 PageA has one simple link (to do some stuff and go to PageB) and a byte
 array with 25KB.
 PageB has another link (to go back to PageA instance), the reference to
 PageA and a byte array of 10KB.

 After PageA is first serialized, the page store goes from nothing to about
 27KB. When PageB is serialized, it goes to about 64KB, a 37KB difference.

 Testing the same thing but letting the reference to PageA null makes a lot
 of difference. When PageB is serialized, the page strore it grows from
 27KB
 to just 38KB (a 11KB difference).

 -Cristiano


 2008/11/14 Martijn Dashorst [EMAIL PROTECTED]

 iirc Wicket serialization is smart enough to discover that PageA
 should not be serialized as part of PageB, but instead will replace it
 with a reference to PageA's serialized instance.

 Martijn

 On Fri, Nov 14, 2008 at 7:15 AM, Igor Vaynberg [EMAIL PROTECTED]
 wrote:
  if you are using 1.4rc1 there is no need to pass page references
  anymore. see Page#getPageId() and requestcycle.urlfor(pageid)
 
  -igor
 
  On Thu, Nov 13, 2008 at 6:20 PM, Cristiano Kliemann
  [EMAIL PROTECTED] wrote:
  Hi!
 
  Some questions about Wicket serialization...
 
  Let's say I have two pages, A and B, and page B holds a reference to
 page A.
  First, an instance of page A is rendered and gets serialized by
  Wicket.
 Then
  the user clicks on a button that creates an instance of page B, sets a
  reference to the current page A and executes setCurrentPage using page
  B
 as
  the response page, like the following:
 
  PageB b = new PageB();
  b.setPageA(this);
  setResponsePage(b);
 
  The first question is: when the page B gets serialized, Wicket
 serializes
  the instance of page A again, right? If several of my pages need to
  hold
  references to other pages, the page store gets very big. I know that
 Wicket
  must serialize the same instance again because one of its attributes
 might
  have been changed.
 
  In my application, sometimes I need to hold references to the page
  that
  originated certain operations. Later, the user has the option to go
  back
 to
  that page. The 'problem' is that the originated page gets serialized
  all
 the
  time, and I don't need that. It gets worse when I have a chain of
  references.
 
  So, another question is: what's the best way to reference another page
  without serializing it again? I know I can hold the page's page map,
  id
 and
  version and get the instance on demand. Is it a good solution? Is
  there
  someting ready for that?
 
  Thanks
  Cristiano
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 



 --
 Become a Wicket expert, learn from the best: http://wicketinaction.com
 Apache Wicket 1.3.4 is released
 Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional 

Re: Why is my page stateless, and how do I make it stateful? (using Wicket 1.4-m3)

2008-11-16 Thread jWeekend

Ilja,

This does indeed sound strange, in fact, worse than that!
I'd like to take a look so if you can, make the *simplest possible*
Quickstart demonstrating this problem.

Regards - Cemal
http://www.jWeekend.co.uk http://jWeekend.co.uk 


King Of All Germans wrote:
 
 Hi Igor, thanks for the response.
 No, I don't mean when I press the refresh button. Here's exactly what
 happens:
 
 - I type the URL into my browser. In my debugger, I can see that a new
 page
 is constructed (the page constructor runs).
 - There is a form on the page. I type something into the form (something
 that won't pass form validation).
 - I click on the form submit button. In my debugger, I can see that a
 whole
 new page is constructed (losing, of course, any state I had in the
 previous
 page).
 - Even though a new page is constructed, the form is returned to me with
 the
 values filled in and a validation error.
 I know this sounds very strange. But it's true, I've tested it many times.
 
 The same thing happens when I fill in the form with values that will pass
 validation:
 - When I click the form submit button, I can see in my debugger that a
 whole
 new page is constructed, and THEN the onSubmit() method of my form is
 executed. Somehow, values filled into the form are retained even though a
 whole new page was constructed. Other state in the page is lost.
 Again, I know it sounds very strange.
 
 I've tested some other pages in my application and they do not show this
 behavior.
 The only difference between this particular page and the other pages is
 that
 for each of the other pages, a user has to be logged into the application.
 The page in question, on the other hand, is a publicly accessible page for
 which you do not have to be logged in. However, I don't see how that would
 result in the behavior I see.
 Also, the page in question uses PageParameters to receive some initial
 values. But, again, I don't see how that would result in what I see.
 I've also tried to get some info by calling isStateless() on the page but
 it
 returns null.
 
 What else could I try/what other info could I collect?
 
 Thanks for the help!
 
 ilja
 
 On Sun, Nov 16, 2008 at 9:09 AM, Igor Vaynberg
 [EMAIL PROTECTED]wrote:
 
 a page with a form on it cannot be stateless. what do you mean
 reconstructing on every request? when you press the refresh button?
 that is because this is a bookmarkable url...

 -igor

 On Sun, Nov 16, 2008 at 12:54 AM, Ilja [EMAIL PROTECTED]
 wrote:
  Hi,
  I have a mounted, bookmarkable page with a form in it.
 
  My problem is that I want to keep state in the page. However, at every
  request, the page is constructed anew and, obviously, I lose the state
 I'd
  like to keep.
 
  At the same time (and this mystifies me a little), form components seem
 to
  keep state between requests during validation (non-form components,
 such
 as
  Labels, which are also included in my form class, do not keep state).
 
  So, since the page is re-constructed at every request, am I dealing
 with
 a
  stateless page (even though the form seems to keep some state)?
  And how could I make that page stateful?
  (I've tried setting setStatelessHint(false) on the page but that
 doesn't
  make a difference).
  Why is the page stateless even though it has a stateful component (the
 form)
  in it?
 
  I've scoured the Wiki and can't seem to find an answer to this problem.
 
  Any thoughts would be appreciated!
 
  Thanks!
 
  ilja
 

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


 
 

-- 
View this message in context: 
http://www.nabble.com/Why-is-my-page-stateless%2C-and-how-do-I-make-it-stateful--%28using-Wicket-1.4-m3%29-tp20523463p20529816.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Why is my page stateless, and how do I make it stateful? (using Wicket 1.4-m3)

2008-11-16 Thread Jeremy Thomerson
Put a breakpoint in your constructor (sounds like you already have) and see 
what's calling it. Is it possible that you're constructing the page yourself 
(accidentally for a page link or something)?

Also - what's the URL after you submit the form?  Are you redirecting to the 
page in your onSubmit?


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


-Original Message-
From: Ilja [EMAIL PROTECTED]
Sent: Sunday, November 16, 2008 2:06 PM
To: users@wicket.apache.org
Subject: Re: Why is my page stateless, and how do I make it stateful? (using 
Wicket 1.4-m3)

Hi Igor, thanks for the response.
No, I don't mean when I press the refresh button. Here's exactly what
happens:

- I type the URL into my browser. In my debugger, I can see that a new page
is constructed (the page constructor runs).
- There is a form on the page. I type something into the form (something
that won't pass form validation).
- I click on the form submit button. In my debugger, I can see that a whole
new page is constructed (losing, of course, any state I had in the previous
page).
- Even though a new page is constructed, the form is returned to me with the
values filled in and a validation error.
I know this sounds very strange. But it's true, I've tested it many times.

The same thing happens when I fill in the form with values that will pass
validation:
- When I click the form submit button, I can see in my debugger that a whole
new page is constructed, and THEN the onSubmit() method of my form is
executed. Somehow, values filled into the form are retained even though a
whole new page was constructed. Other state in the page is lost.
Again, I know it sounds very strange.

I've tested some other pages in my application and they do not show this
behavior.
The only difference between this particular page and the other pages is that
for each of the other pages, a user has to be logged into the application.
The page in question, on the other hand, is a publicly accessible page for
which you do not have to be logged in. However, I don't see how that would
result in the behavior I see.
Also, the page in question uses PageParameters to receive some initial
values. But, again, I don't see how that would result in what I see.
I've also tried to get some info by calling isStateless() on the page but it
returns null.

What else could I try/what other info could I collect?

Thanks for the help!

ilja

On Sun, Nov 16, 2008 at 9:09 AM, Igor Vaynberg [EMAIL PROTECTED]wrote:

 a page with a form on it cannot be stateless. what do you mean
 reconstructing on every request? when you press the refresh button?
 that is because this is a bookmarkable url...

 -igor

 On Sun, Nov 16, 2008 at 12:54 AM, Ilja [EMAIL PROTECTED] wrote:
  Hi,
  I have a mounted, bookmarkable page with a form in it.
 
  My problem is that I want to keep state in the page. However, at every
  request, the page is constructed anew and, obviously, I lose the state
 I'd
  like to keep.
 
  At the same time (and this mystifies me a little), form components seem
 to
  keep state between requests during validation (non-form components, such
 as
  Labels, which are also included in my form class, do not keep state).
 
  So, since the page is re-constructed at every request, am I dealing with
 a
  stateless page (even though the form seems to keep some state)?
  And how could I make that page stateful?
  (I've tried setting setStatelessHint(false) on the page but that doesn't
  make a difference).
  Why is the page stateless even though it has a stateful component (the
 form)
  in it?
 
  I've scoured the Wiki and can't seem to find an answer to this problem.
 
  Any thoughts would be appreciated!
 
  Thanks!
 
  ilja
 

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: @Configurable instead of @SpringBean

2008-11-16 Thread Robert

I made a test case and it works.

BTW - My thread seems to be put inside another thread. I did not expect 
this to happen if I would hit reply in Thunderbird using Gmail IMAP. Sorry!




James Carman wrote:

Are you sure they're being deserialized?  I'd try a test case



On 11/15/08, Robert [EMAIL PROTECTED] wrote:
  

In what way is serialization the issue? Because the fields are marked as
transient anyway, so not serialized, and after deserialization, Spring
re-injects the bean. Or are you saying this does not happen? It seemed
to work...

James Carman wrote:


Serialization is the issue.  @Configurable doesn't handle
serialization properly.

On Sat, Nov 15, 2008 at 2:59 PM, Robert [EMAIL PROTECTED]
wrote:

  

Hi,

I have been using the @SpringBean annotation for dependency inject my
DAO's
inside certain objects. However for objects that are not managed by
wicket
the InjectorHolder is needed and this might be easy to forget. So I tried
an
alternative way to inject my Spring beans.

Now I use the Spring @Configurable and @Resource annotation, together
with
load-time aspect weaving. I also mark the objects as transient.

It all seems to work well. But I just wanted to ask if there are any
special
cases I should be worried about. Are there any disadvantages (except
being
forced to use weaving)?

Robert


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


  



  




Re: @Configurable instead of @SpringBean

2008-11-16 Thread Igor Vaynberg
as jweekend told you, you should read this thread [1]

[1] http://www.nabble.com/%40SpringBean-vs-%40Configurable-to18572291.html

-igor



On Sun, Nov 16, 2008 at 1:14 PM, Robert [EMAIL PROTECTED] wrote:
 I made a test case and it works.

 BTW - My thread seems to be put inside another thread. I did not expect this
 to happen if I would hit reply in Thunderbird using Gmail IMAP. Sorry!



 James Carman wrote:

 Are you sure they're being deserialized?  I'd try a test case



 On 11/15/08, Robert [EMAIL PROTECTED] wrote:


 In what way is serialization the issue? Because the fields are marked as
 transient anyway, so not serialized, and after deserialization, Spring
 re-injects the bean. Or are you saying this does not happen? It seemed
 to work...

 James Carman wrote:


 Serialization is the issue.  @Configurable doesn't handle
 serialization properly.

 On Sat, Nov 15, 2008 at 2:59 PM, Robert [EMAIL PROTECTED]
 wrote:



 Hi,

 I have been using the @SpringBean annotation for dependency inject my
 DAO's
 inside certain objects. However for objects that are not managed by
 wicket
 the InjectorHolder is needed and this might be easy to forget. So I
 tried
 an
 alternative way to inject my Spring beans.

 Now I use the Spring @Configurable and @Resource annotation, together
 with
 load-time aspect weaving. I also mark the objects as transient.

 It all seems to work well. But I just wanted to ask if there are any
 special
 cases I should be worried about. Are there any disadvantages (except
 being
 forced to use weaving)?

 Robert


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]





 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]










-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: @Configurable instead of @SpringBean

2008-11-16 Thread Robert

Yes, I read it. I was just responding to James.
I understand now the problem that would occur when passing a bean to 
another object that will be serialized.

So both methods seems to have its positive and negative sides.

Igor Vaynberg wrote:

as jweekend told you, you should read this thread [1]

[1] http://www.nabble.com/%40SpringBean-vs-%40Configurable-to18572291.html

-igor



On Sun, Nov 16, 2008 at 1:14 PM, Robert [EMAIL PROTECTED] wrote:
  

I made a test case and it works.

BTW - My thread seems to be put inside another thread. I did not expect this
to happen if I would hit reply in Thunderbird using Gmail IMAP. Sorry!



James Carman wrote:


Are you sure they're being deserialized?  I'd try a test case



On 11/15/08, Robert [EMAIL PROTECTED] wrote:

  

In what way is serialization the issue? Because the fields are marked as
transient anyway, so not serialized, and after deserialization, Spring
re-injects the bean. Or are you saying this does not happen? It seemed
to work...

James Carman wrote:



Serialization is the issue.  @Configurable doesn't handle
serialization properly.

On Sat, Nov 15, 2008 at 2:59 PM, Robert [EMAIL PROTECTED]
wrote:


  

Hi,

I have been using the @SpringBean annotation for dependency inject my
DAO's
inside certain objects. However for objects that are not managed by
wicket
the InjectorHolder is needed and this might be easy to forget. So I
tried
an
alternative way to inject my Spring beans.

Now I use the Spring @Configurable and @Resource annotation, together
with
load-time aspect weaving. I also mark the objects as transient.

It all seems to work well. But I just wanted to ask if there are any
special
cases I should be worried about. Are there any disadvantages (except
being
forced to use weaving)?

Robert


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



  

  



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

  




Firefox 2.0.0.18

2008-11-16 Thread Cristi Manole
Hello,

Since Firefox automatically updated to 2.0.0.18 every ajax I had in the
application (for instance ajax link / button) stopped working if it didn't
have fallback.

The applications I have are all in production so this is very annoying. In
Internet Explorer all work.

Did anybody else experience this? Is there a workaround?

Thank you,
Cristi Manole


Re: Firefox 2.0.0.18

2008-11-16 Thread Martijn Dashorst
It would be helpful if you posted the wicket version and errors you
get from the firefox console and if the wicket debugger shows any
errors. Now we're just left to guess. See also [1]

Martijn

[1] http://www.catb.org/~esr/faqs/smart-questions.html

On Mon, Nov 17, 2008 at 12:08 AM, Cristi Manole [EMAIL PROTECTED] wrote:
 Hello,

 Since Firefox automatically updated to 2.0.0.18 every ajax I had in the
 application (for instance ajax link / button) stopped working if it didn't
 have fallback.

 The applications I have are all in production so this is very annoying. In
 Internet Explorer all work.

 Did anybody else experience this? Is there a workaround?

 Thank you,
 Cristi Manole




-- 
Become a Wicket expert, learn from the best: http://wicketinaction.com
Apache Wicket 1.3.4 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Firefox 2.0.0.18

2008-11-16 Thread jWeekend

Cristi,

We have just upgraded to 2.0.0.18 on one of our machines and all the AJAX on 
http://jweekend.com/dev/BookingPage/ this page  works fine. 
Try that link and if it fails to work check Tools/Options/Content to ensure
JavaScript is enabled.

Regards - Cemal
http://www.jWeekend.co.uk http://jWeekend.co.uk  



Cristi Manole wrote:
 
 Hello,
 
 Since Firefox automatically updated to 2.0.0.18 every ajax I had in the
 application (for instance ajax link / button) stopped working if it didn't
 have fallback.
 
 The applications I have are all in production so this is very annoying. In
 Internet Explorer all work.
 
 Did anybody else experience this? Is there a workaround?
 
 Thank you,
 Cristi Manole
 
 

-- 
View this message in context: 
http://www.nabble.com/Firefox-2.0.0.18-tp20531316p20531584.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Unable to load Wicket app in hosting provider

2008-11-16 Thread moraleslos

Ok,

Finally talked to someone at GoDaddy who gave me some advice.  With their
Java hosting, it seems that they force Tomcat to look for a default file
(e.g. index.html) at the root directory.  Since I don't have one (all of my
files are under WEB-INF/classes/...), I get the 403 error. 

Now here's the question.  How do I write up a default index.html file and
place this in the root directory such that it will start up the Wicket
filter in the web.xml file and run the Wicket application appropriately? 
Again, my actual Index.html, and hence it's Index.class, is packaged under
the WEB-INF/classes/... directory.  Thanks!

-los



Erik van Oosten wrote:
 
 Maybe this helps. I've found that you need to start Tomcat from a 
 directory that is writable for the user you are using (no idea why 
 though). Besides the application log, you should also check Tomcat's log 
 files.
 
 Good luck,
 Erik.
 
 moraleslos wrote:
 Hi,

 I'm running into an issue where my Wicket-based application will
 absolutely
 not load in the shared hosting environment.  I'm trying out GoDaddy's
 Java
 Web hosting that uses Java 1.5 and Tomcat 5.0.27.  I have this same setup
 on
 my box and deploying my Wicket 1.3.4-based application works 
 
 -- 
 Erik van Oosten
 http://www.day-to-day-stuff.blogspot.com/
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Unable-to-load-Wicket-app-in-hosting-provider-tp20526412p20531825.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Unable to load Wicket app in hosting provider

2008-11-16 Thread Martijn Dashorst
mount the wicket filter under context root app and tell the index.html
to redirect to that url with a pragma header.

Martijn

On Mon, Nov 17, 2008 at 1:10 AM, moraleslos [EMAIL PROTECTED] wrote:

 Ok,

 Finally talked to someone at GoDaddy who gave me some advice.  With their
 Java hosting, it seems that they force Tomcat to look for a default file
 (e.g. index.html) at the root directory.  Since I don't have one (all of my
 files are under WEB-INF/classes/...), I get the 403 error.

 Now here's the question.  How do I write up a default index.html file and
 place this in the root directory such that it will start up the Wicket
 filter in the web.xml file and run the Wicket application appropriately?
 Again, my actual Index.html, and hence it's Index.class, is packaged under
 the WEB-INF/classes/... directory.  Thanks!

 -los



 Erik van Oosten wrote:

 Maybe this helps. I've found that you need to start Tomcat from a
 directory that is writable for the user you are using (no idea why
 though). Besides the application log, you should also check Tomcat's log
 files.

 Good luck,
 Erik.

 moraleslos wrote:
 Hi,

 I'm running into an issue where my Wicket-based application will
 absolutely
 not load in the shared hosting environment.  I'm trying out GoDaddy's
 Java
 Web hosting that uses Java 1.5 and Tomcat 5.0.27.  I have this same setup
 on
 my box and deploying my Wicket 1.3.4-based application works

 --
 Erik van Oosten
 http://www.day-to-day-stuff.blogspot.com/


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




 --
 View this message in context: 
 http://www.nabble.com/Unable-to-load-Wicket-app-in-hosting-provider-tp20526412p20531825.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]





-- 
Become a Wicket expert, learn from the best: http://wicketinaction.com
Apache Wicket 1.3.4 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Why is my page stateless, and how do I make it stateful? (using Wicket 1.4-m3)

2008-11-16 Thread Ilja
You guys will want to know this:
I figured that perhaps the problem lies with Wicket1.4-m3.
So I swapped it out for Wicket1.4-m2.
I did not change my code at all. I didn't change anything else. All I did
was swap out the two Wicket versions.

After I switched to Wicket1.4-m2, the page worked fine.
The page is now not being re-constructed at every request and keeps state as
expected.

So, my problem is solved, but do you guys still want me to send you more
info?
I could switch back to m3 and send to the URLs that are being generated
(Igor and Jeremy asked for that).
I could still try and add a link to the page under m3 and see if that would
make a difference (Igor asked for that).

Jeremy's question about accidentally constructing the page myself or
redirecting to it from my onSubmit() method has, I believe, answered itself
(no to both).

jWeekend, I assume you're talking about a Maven Quick Start - I don't use
Maven (I know, I know, I should) but if that's something that can be done
quickly and for which you could give me a pointer or two, I can try to do
it. If you're still interested, that is.

Let me know.

Thanks to each of you for the help, I appreciate it!

ilja

On Sun, Nov 16, 2008 at 12:49 PM, Jeremy Thomerson 
[EMAIL PROTECTED] wrote:

 Put a breakpoint in your constructor (sounds like you already have) and see
 what's calling it. Is it possible that you're constructing the page yourself
 (accidentally for a page link or something)?

 Also - what's the URL after you submit the form?  Are you redirecting to
 the page in your onSubmit?


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


 -Original Message-
 From: Ilja [EMAIL PROTECTED]
 Sent: Sunday, November 16, 2008 2:06 PM
 To: users@wicket.apache.org
 Subject: Re: Why is my page stateless, and how do I make it stateful?
 (using Wicket 1.4-m3)

 Hi Igor, thanks for the response.
 No, I don't mean when I press the refresh button. Here's exactly what
 happens:

 - I type the URL into my browser. In my debugger, I can see that a new page
 is constructed (the page constructor runs).
 - There is a form on the page. I type something into the form (something
 that won't pass form validation).
 - I click on the form submit button. In my debugger, I can see that a whole
 new page is constructed (losing, of course, any state I had in the previous
 page).
 - Even though a new page is constructed, the form is returned to me with
 the
 values filled in and a validation error.
 I know this sounds very strange. But it's true, I've tested it many times.

 The same thing happens when I fill in the form with values that will pass
 validation:
 - When I click the form submit button, I can see in my debugger that a
 whole
 new page is constructed, and THEN the onSubmit() method of my form is
 executed. Somehow, values filled into the form are retained even though a
 whole new page was constructed. Other state in the page is lost.
 Again, I know it sounds very strange.

 I've tested some other pages in my application and they do not show this
 behavior.
 The only difference between this particular page and the other pages is
 that
 for each of the other pages, a user has to be logged into the application.
 The page in question, on the other hand, is a publicly accessible page for
 which you do not have to be logged in. However, I don't see how that would
 result in the behavior I see.
 Also, the page in question uses PageParameters to receive some initial
 values. But, again, I don't see how that would result in what I see.
 I've also tried to get some info by calling isStateless() on the page but
 it
 returns null.

 What else could I try/what other info could I collect?

 Thanks for the help!

 ilja

 On Sun, Nov 16, 2008 at 9:09 AM, Igor Vaynberg [EMAIL PROTECTED]
 wrote:

  a page with a form on it cannot be stateless. what do you mean
  reconstructing on every request? when you press the refresh button?
  that is because this is a bookmarkable url...
 
  -igor
 
  On Sun, Nov 16, 2008 at 12:54 AM, Ilja [EMAIL PROTECTED]
 wrote:
   Hi,
   I have a mounted, bookmarkable page with a form in it.
  
   My problem is that I want to keep state in the page. However, at every
   request, the page is constructed anew and, obviously, I lose the state
  I'd
   like to keep.
  
   At the same time (and this mystifies me a little), form components seem
  to
   keep state between requests during validation (non-form components,
 such
  as
   Labels, which are also included in my form class, do not keep state).
  
   So, since the page is re-constructed at every request, am I dealing
 with
  a
   stateless page (even though the form seems to keep some state)?
   And how could I make that page stateful?
   (I've tried setting setStatelessHint(false) on the page but that
 doesn't
   make a difference).
   Why is the page stateless even though it has a stateful component (the
  form)
   in it?
  
   I've scoured the Wiki and can't seem to 

Graphs, Charts and Wicket

2008-11-16 Thread Yazbek, Daniel (Daniel)
Hi all,

 

I'd like to put some simple bar graphs, pie graphs and possible line
graphs into my wicket pages.

 

Have any of you used a good framework that you can recommend, that also
plays nicely with Wicket?

 

Thanks!

 

-Daniel.

 

 



Re: Why is my page stateless, and how do I make it stateful? (using Wicket 1.4-m3)

2008-11-16 Thread Ilja
P.S.By my problem is solved I mean, obviously, that I'll stick with m2 for
the time being.
Didn't mean to sound like that is ideal, or that I'm not concerned that the
problem appears in m3.
Let me know if I can do anything to help out with that.
Cheers,
ilja

On Sun, Nov 16, 2008 at 5:15 PM, Ilja [EMAIL PROTECTED] wrote:

 You guys will want to know this:
 I figured that perhaps the problem lies with Wicket1.4-m3.
 So I swapped it out for Wicket1.4-m2.
 I did not change my code at all. I didn't change anything else. All I did
 was swap out the two Wicket versions.

 After I switched to Wicket1.4-m2, the page worked fine.
 The page is now not being re-constructed at every request and keeps state
 as expected.

 So, my problem is solved, but do you guys still want me to send you more
 info?
 I could switch back to m3 and send to the URLs that are being generated
 (Igor and Jeremy asked for that).
 I could still try and add a link to the page under m3 and see if that would
 make a difference (Igor asked for that).

 Jeremy's question about accidentally constructing the page myself or
 redirecting to it from my onSubmit() method has, I believe, answered itself
 (no to both).

 jWeekend, I assume you're talking about a Maven Quick Start - I don't use
 Maven (I know, I know, I should) but if that's something that can be done
 quickly and for which you could give me a pointer or two, I can try to do
 it. If you're still interested, that is.

 Let me know.

 Thanks to each of you for the help, I appreciate it!

 ilja

 On Sun, Nov 16, 2008 at 12:49 PM, Jeremy Thomerson 
 [EMAIL PROTECTED] wrote:

 Put a breakpoint in your constructor (sounds like you already have) and
 see what's calling it. Is it possible that you're constructing the page
 yourself (accidentally for a page link or something)?

 Also - what's the URL after you submit the form?  Are you redirecting to
 the page in your onSubmit?


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


 -Original Message-
 From: Ilja [EMAIL PROTECTED]
 Sent: Sunday, November 16, 2008 2:06 PM
 To: users@wicket.apache.org
 Subject: Re: Why is my page stateless, and how do I make it stateful?
 (using Wicket 1.4-m3)

 Hi Igor, thanks for the response.
 No, I don't mean when I press the refresh button. Here's exactly what
 happens:

 - I type the URL into my browser. In my debugger, I can see that a new
 page
 is constructed (the page constructor runs).
 - There is a form on the page. I type something into the form (something
 that won't pass form validation).
 - I click on the form submit button. In my debugger, I can see that a
 whole
 new page is constructed (losing, of course, any state I had in the
 previous
 page).
 - Even though a new page is constructed, the form is returned to me with
 the
 values filled in and a validation error.
 I know this sounds very strange. But it's true, I've tested it many times.

 The same thing happens when I fill in the form with values that will pass
 validation:
 - When I click the form submit button, I can see in my debugger that a
 whole
 new page is constructed, and THEN the onSubmit() method of my form is
 executed. Somehow, values filled into the form are retained even though a
 whole new page was constructed. Other state in the page is lost.
 Again, I know it sounds very strange.

 I've tested some other pages in my application and they do not show this
 behavior.
 The only difference between this particular page and the other pages is
 that
 for each of the other pages, a user has to be logged into the application.
 The page in question, on the other hand, is a publicly accessible page for
 which you do not have to be logged in. However, I don't see how that would
 result in the behavior I see.
 Also, the page in question uses PageParameters to receive some initial
 values. But, again, I don't see how that would result in what I see.
 I've also tried to get some info by calling isStateless() on the page but
 it
 returns null.

 What else could I try/what other info could I collect?

 Thanks for the help!

 ilja

 On Sun, Nov 16, 2008 at 9:09 AM, Igor Vaynberg [EMAIL PROTECTED]
 wrote:

  a page with a form on it cannot be stateless. what do you mean
  reconstructing on every request? when you press the refresh button?
  that is because this is a bookmarkable url...
 
  -igor
 
  On Sun, Nov 16, 2008 at 12:54 AM, Ilja [EMAIL PROTECTED]
 wrote:
   Hi,
   I have a mounted, bookmarkable page with a form in it.
  
   My problem is that I want to keep state in the page. However, at every
   request, the page is constructed anew and, obviously, I lose the state
  I'd
   like to keep.
  
   At the same time (and this mystifies me a little), form components
 seem
  to
   keep state between requests during validation (non-form components,
 such
  as
   Labels, which are also included in my form class, do not keep state).
  
   So, since the page is re-constructed at every request, am I dealing
 

Re: Graphs, Charts and Wicket

2008-11-16 Thread Jurek Piasek
I have been using Amcharts

http://www.amcharts.com/

together with SWFObject
http://cwiki.apache.org/WICKET/creating-a-behavior-to-use-a-javascript-library.html

Regards,
Jurek


On Sun, Nov 16, 2008 at 8:20 PM, Yazbek, Daniel (Daniel)
[EMAIL PROTECTED]wrote:

 Hi all,



 I'd like to put some simple bar graphs, pie graphs and possible line
 graphs into my wicket pages.



 Have any of you used a good framework that you can recommend, that also
 plays nicely with Wicket?



 Thanks!



 -Daniel.








isEnabled on AjaxSelfUpdatingTimerBehavior.

2008-11-16 Thread Graeme Knight

Hi.

I have looked at removing the timer from a component when a condition is not
true, but according to the forums this is not possible. 

Recommended is the use of isEnabled. I have the following code, but
isEnabled doesn't appear to be working. 

I'm after a way of allowing a user to start a process by pressing a link,
then as the process continues over several minutes the WebMarkupContainer is
updated (every 5 seconds using an AjaxSelfUpdatingTimerBehavior) and when
the process finishes, stopping the timerbahavior until the link is next
pressed. I think this must be a common thing to do so any information would
be most welcome.

My refresh link that the user presses to render an indicator and a
percentage based on the fact a refresh is occuring:

public final class RefreshLink extends AbstractAjaxFallbackButtonLink
{
private static final long serialVersionUID = 1825145981122180572L;

@Override
public void onClick( AjaxRequestTarget target )
{
// create the refresh process worker
RefreshWorker refreshWorker = new RefreshWorker();

// execute the refresh thread
refreshWorker.refresh( Visit.get() );

// get the page
AccountViewPage page = AccountViewPage.class.cast( getPage() );

// get a reference to the markup container component containing a
refresh indicator and percentage complete
Component container = page.get( RefreshPanel.CONTAINER_ID_PATH );

target.addComponent( container );
}
}

In the panel containing the indicator (shown as the process continues along
with a percentage complete):

  :
WebMarkupContainer container = new WebMarkupContainer( CONTAINER );

Image refreshIndicator = new Image( REFRESH_INDICATOR,
IconFactory.getSmallGIF( REFRESH_INDICATOR ) );

AttributeModifier attributeModifier = new
RefreshImageAttributeModifier();

Label percentageCompleteLabel = new Label(
PERCENTAGE_COMPLETE_LABEL, new RefreshLabelReadOnlyModel() );

container.add( percentageLabel );
container.add( refreshIndicator );
container.add( attributeModifier );

container.setOutputMarkupId( true );

container.add( new RefreshTimerBehavior() );

add( refreshButton );
add( container );
 :

And the refresh timer:

public final class RefreshTimerBehavior extends
AjaxSelfUpdatingTimerBehavior
{
private static final long serialVersionUID = -6061033495202259806L;

private static final int FIVE_SECONDS = 5;

/**
 * @param updateInterval
 */
public RefreshTimerBehavior()
{
super( Duration.seconds( FIVE_SECONDS ) );
}

/*
 * (non-Javadoc)
 * 
 * @see
org.apache.wicket.behavior.AbstractBehavior#isEnabled(org.apache.wicket.Component)
 */
@Override
public boolean isEnabled( Component component )
{
boolean isEnabled = false;

if( Visit.get().isRefreshing() )
{
isEnabled = true;
}

return isEnabled;
}
}

Now, isEnabled is getting called, but the base class method onTimer is also
getting called - indicating to me that the value of isEnabled is being
ignored - I was hoping that a return value of false would tell the timer to
stop, but it keeps ticking away every five seconds. I obviously can't remove
the timer behavior but I would like to disable and enable it in the
following conditions:

 1) Enable: The timer gets enabled (i.e. isEnabled is true?) on
Visit.get().isRefreshing() equal to 'true'.

 2) Disable: The timer gets disabled (i.e. isEnabled is false?) on
Visit.get().isRefreshing() equal to 'false'.

I simply only want the timer to tick when the refreshing process via the
worker is occuring and not otherwise.

I hope this is clear... Any thoughts? This is with 1.3.5 Wicket.

Many thanks for your time, Graeme.
-- 
View this message in context: 
http://www.nabble.com/isEnabled-on-AjaxSelfUpdatingTimerBehavior.-tp20532502p20532502.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Why is my page stateless, and how do I make it stateful? (using Wicket 1.4-m3)

2008-11-16 Thread Igor Vaynberg
rc1 is out, why dont you try with that.

-igor

On Sun, Nov 16, 2008 at 5:23 PM, Ilja [EMAIL PROTECTED] wrote:
 P.S.By my problem is solved I mean, obviously, that I'll stick with m2 for
 the time being.
 Didn't mean to sound like that is ideal, or that I'm not concerned that the
 problem appears in m3.
 Let me know if I can do anything to help out with that.
 Cheers,
 ilja

 On Sun, Nov 16, 2008 at 5:15 PM, Ilja [EMAIL PROTECTED] wrote:

 You guys will want to know this:
 I figured that perhaps the problem lies with Wicket1.4-m3.
 So I swapped it out for Wicket1.4-m2.
 I did not change my code at all. I didn't change anything else. All I did
 was swap out the two Wicket versions.

 After I switched to Wicket1.4-m2, the page worked fine.
 The page is now not being re-constructed at every request and keeps state
 as expected.

 So, my problem is solved, but do you guys still want me to send you more
 info?
 I could switch back to m3 and send to the URLs that are being generated
 (Igor and Jeremy asked for that).
 I could still try and add a link to the page under m3 and see if that would
 make a difference (Igor asked for that).

 Jeremy's question about accidentally constructing the page myself or
 redirecting to it from my onSubmit() method has, I believe, answered itself
 (no to both).

 jWeekend, I assume you're talking about a Maven Quick Start - I don't use
 Maven (I know, I know, I should) but if that's something that can be done
 quickly and for which you could give me a pointer or two, I can try to do
 it. If you're still interested, that is.

 Let me know.

 Thanks to each of you for the help, I appreciate it!

 ilja

 On Sun, Nov 16, 2008 at 12:49 PM, Jeremy Thomerson 
 [EMAIL PROTECTED] wrote:

 Put a breakpoint in your constructor (sounds like you already have) and
 see what's calling it. Is it possible that you're constructing the page
 yourself (accidentally for a page link or something)?

 Also - what's the URL after you submit the form?  Are you redirecting to
 the page in your onSubmit?


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


 -Original Message-
 From: Ilja [EMAIL PROTECTED]
 Sent: Sunday, November 16, 2008 2:06 PM
 To: users@wicket.apache.org
 Subject: Re: Why is my page stateless, and how do I make it stateful?
 (using Wicket 1.4-m3)

 Hi Igor, thanks for the response.
 No, I don't mean when I press the refresh button. Here's exactly what
 happens:

 - I type the URL into my browser. In my debugger, I can see that a new
 page
 is constructed (the page constructor runs).
 - There is a form on the page. I type something into the form (something
 that won't pass form validation).
 - I click on the form submit button. In my debugger, I can see that a
 whole
 new page is constructed (losing, of course, any state I had in the
 previous
 page).
 - Even though a new page is constructed, the form is returned to me with
 the
 values filled in and a validation error.
 I know this sounds very strange. But it's true, I've tested it many times.

 The same thing happens when I fill in the form with values that will pass
 validation:
 - When I click the form submit button, I can see in my debugger that a
 whole
 new page is constructed, and THEN the onSubmit() method of my form is
 executed. Somehow, values filled into the form are retained even though a
 whole new page was constructed. Other state in the page is lost.
 Again, I know it sounds very strange.

 I've tested some other pages in my application and they do not show this
 behavior.
 The only difference between this particular page and the other pages is
 that
 for each of the other pages, a user has to be logged into the application.
 The page in question, on the other hand, is a publicly accessible page for
 which you do not have to be logged in. However, I don't see how that would
 result in the behavior I see.
 Also, the page in question uses PageParameters to receive some initial
 values. But, again, I don't see how that would result in what I see.
 I've also tried to get some info by calling isStateless() on the page but
 it
 returns null.

 What else could I try/what other info could I collect?

 Thanks for the help!

 ilja

 On Sun, Nov 16, 2008 at 9:09 AM, Igor Vaynberg [EMAIL PROTECTED]
 wrote:

  a page with a form on it cannot be stateless. what do you mean
  reconstructing on every request? when you press the refresh button?
  that is because this is a bookmarkable url...
 
  -igor
 
  On Sun, Nov 16, 2008 at 12:54 AM, Ilja [EMAIL PROTECTED]
 wrote:
   Hi,
   I have a mounted, bookmarkable page with a form in it.
  
   My problem is that I want to keep state in the page. However, at every
   request, the page is constructed anew and, obviously, I lose the state
  I'd
   like to keep.
  
   At the same time (and this mystifies me a little), form components
 seem
  to
   keep state between requests during validation (non-form components,
 such
  as
   Labels, which are also 

Re: Graphs, Charts and Wicket

2008-11-16 Thread James Carman
You can check out how I used JFreeChart in one of my Wicket presentations...

http://svn.carmanconsulting.com/public/wicket-advanced/trunk/src/main/java/com/carmanconsulting/wicket/advanced/web/story10/resource/StudentPerRankChart.java

and the resource class itself:

http://svn.carmanconsulting.com/public/wicket-advanced/trunk/src/main/java/com/carmanconsulting/wicket/advanced/web/common/resource/ChartImageResource.java

On Sun, Nov 16, 2008 at 8:29 PM, Jurek Piasek [EMAIL PROTECTED] wrote:
 I have been using Amcharts

 http://www.amcharts.com/

 together with SWFObject
 http://cwiki.apache.org/WICKET/creating-a-behavior-to-use-a-javascript-library.html

 Regards,
 Jurek


 On Sun, Nov 16, 2008 at 8:20 PM, Yazbek, Daniel (Daniel)
 [EMAIL PROTECTED]wrote:

 Hi all,



 I'd like to put some simple bar graphs, pie graphs and possible line
 graphs into my wicket pages.



 Have any of you used a good framework that you can recommend, that also
 plays nicely with Wicket?



 Thanks!



 -Daniel.








-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: browser back button - shouldn't onBeforeRender() execute?

2008-11-16 Thread Timo Rantalaiho
On Fri, 14 Nov 2008, dukehoops wrote:
 -user clicks browser back button and lands on A without server being hit at
 all.
 
 At this point I expected browser to issue GET /A and A's onBeforeRender to
 run. is my expectation correct? If not, what is the expected behavior.
 
 The reason for my question, is that I want to prevent user from back-ing
 to A once on B. So I wanted to use A's onBeforeRender to evaluate state and
 redirect someplace else. If my expectation above is incorrect, could someone
 suggest a better approach?

That behaviour depends on the browser caching behaviour. 
Some brosers on some settings get page A from their cache, 
in which case the server is not being hit.

You might get it to work by adding non-caching HTTP headers
on page A.

Best wishes,
Timo

-- 
Timo Rantalaiho   
Reaktor Innovations OyURL: http://www.ri.fi/ 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Problem with Crypted URL

2008-11-16 Thread Andrew Berman
I upgraded from 1.3.4 to 1.3.5 and now I am seeing this error all over the
place in my log files..

[ERROR] 21:44:24 CryptedUrlWebRequestCodingStrategy - Invalid URL:
foo/?x=kSQEmQImbZiH47lvkBIVh0gnXDVDx7-UQqHufLUVx5IVu10xEJYI8UXQ2B0gQCTDdAzJ7rUByXI
org.apache.wicket.WicketRuntimeException: Unable to decrypt the text
'�$^D�^Bm���o�^R^U�H'\5Cǿ�B��|�^Uǒ^U�]1^P�^H�E��^] @$�t^L��^A�r'
at
org.apache.wicket.util.crypt.AbstractCrypt.decryptByteArray(AbstractCrypt.java:145)
at
org.apache.wicket.util.crypt.AbstractCrypt.decryptUrlSafe(AbstractCrypt.java:67)
at
org.apache.wicket.protocol.http.request.CryptedUrlWebRequestCodingStrategy.decodeURL(CryptedUrlWebRequestCodingStrategy.java:250)
at
org.apache.wicket.protocol.http.request.CryptedUrlWebRequestCodingStrategy.decode(CryptedUrlWebRequestCodingStrategy.java:98)
at org.apache.wicket.Request.getRequestParameters(Request.java:171)
at org.apache.wicket.RequestCycle.step(RequestCycle.java:1233)
at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1353)
at org.apache.wicket.RequestCycle.request(RequestCycle.java:493)
at
org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:355)
at
org.apache.wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:124)

Anyone have any ideas what in the world is causing the jibberish?  I am
using JDK 6 and Wicket 1.3.5.

Thanks,

Andrew


Re: Why is my page stateless, and how do I make it stateful? (using Wicket 1.4-m3)

2008-11-16 Thread Ilja
Igor, rc1 gives me the exact same problem m3 gave me...

On Sun, Nov 16, 2008 at 6:35 PM, Igor Vaynberg [EMAIL PROTECTED]wrote:

 rc1 is out, why dont you try with that.

 -igor

 On Sun, Nov 16, 2008 at 5:23 PM, Ilja [EMAIL PROTECTED] wrote:
  P.S.By my problem is solved I mean, obviously, that I'll stick with m2
 for
  the time being.
  Didn't mean to sound like that is ideal, or that I'm not concerned that
 the
  problem appears in m3.
  Let me know if I can do anything to help out with that.
  Cheers,
  ilja
 
  On Sun, Nov 16, 2008 at 5:15 PM, Ilja [EMAIL PROTECTED]
 wrote:
 
  You guys will want to know this:
  I figured that perhaps the problem lies with Wicket1.4-m3.
  So I swapped it out for Wicket1.4-m2.
  I did not change my code at all. I didn't change anything else. All I
 did
  was swap out the two Wicket versions.
 
  After I switched to Wicket1.4-m2, the page worked fine.
  The page is now not being re-constructed at every request and keeps
 state
  as expected.
 
  So, my problem is solved, but do you guys still want me to send you more
  info?
  I could switch back to m3 and send to the URLs that are being generated
  (Igor and Jeremy asked for that).
  I could still try and add a link to the page under m3 and see if that
 would
  make a difference (Igor asked for that).
 
  Jeremy's question about accidentally constructing the page myself or
  redirecting to it from my onSubmit() method has, I believe, answered
 itself
  (no to both).
 
  jWeekend, I assume you're talking about a Maven Quick Start - I don't
 use
  Maven (I know, I know, I should) but if that's something that can be
 done
  quickly and for which you could give me a pointer or two, I can try to
 do
  it. If you're still interested, that is.
 
  Let me know.
 
  Thanks to each of you for the help, I appreciate it!
 
  ilja
 
  On Sun, Nov 16, 2008 at 12:49 PM, Jeremy Thomerson 
  [EMAIL PROTECTED] wrote:
 
  Put a breakpoint in your constructor (sounds like you already have) and
  see what's calling it. Is it possible that you're constructing the page
  yourself (accidentally for a page link or something)?
 
  Also - what's the URL after you submit the form?  Are you redirecting
 to
  the page in your onSubmit?
 
 
  Jeremy Thomerson
  http://www.wickettraining.com
  -- sent from a wireless device
 
 
  -Original Message-
  From: Ilja [EMAIL PROTECTED]
  Sent: Sunday, November 16, 2008 2:06 PM
  To: users@wicket.apache.org
  Subject: Re: Why is my page stateless, and how do I make it stateful?
  (using Wicket 1.4-m3)
 
  Hi Igor, thanks for the response.
  No, I don't mean when I press the refresh button. Here's exactly what
  happens:
 
  - I type the URL into my browser. In my debugger, I can see that a new
  page
  is constructed (the page constructor runs).
  - There is a form on the page. I type something into the form
 (something
  that won't pass form validation).
  - I click on the form submit button. In my debugger, I can see that a
  whole
  new page is constructed (losing, of course, any state I had in the
  previous
  page).
  - Even though a new page is constructed, the form is returned to me
 with
  the
  values filled in and a validation error.
  I know this sounds very strange. But it's true, I've tested it many
 times.
 
  The same thing happens when I fill in the form with values that will
 pass
  validation:
  - When I click the form submit button, I can see in my debugger that a
  whole
  new page is constructed, and THEN the onSubmit() method of my form is
  executed. Somehow, values filled into the form are retained even though
 a
  whole new page was constructed. Other state in the page is lost.
  Again, I know it sounds very strange.
 
  I've tested some other pages in my application and they do not show
 this
  behavior.
  The only difference between this particular page and the other pages is
  that
  for each of the other pages, a user has to be logged into the
 application.
  The page in question, on the other hand, is a publicly accessible page
 for
  which you do not have to be logged in. However, I don't see how that
 would
  result in the behavior I see.
  Also, the page in question uses PageParameters to receive some initial
  values. But, again, I don't see how that would result in what I see.
  I've also tried to get some info by calling isStateless() on the page
 but
  it
  returns null.
 
  What else could I try/what other info could I collect?
 
  Thanks for the help!
 
  ilja
 
  On Sun, Nov 16, 2008 at 9:09 AM, Igor Vaynberg 
 [EMAIL PROTECTED]
  wrote:
 
   a page with a form on it cannot be stateless. what do you mean
   reconstructing on every request? when you press the refresh button?
   that is because this is a bookmarkable url...
  
   -igor
  
   On Sun, Nov 16, 2008 at 12:54 AM, Ilja [EMAIL PROTECTED]
  wrote:
Hi,
I have a mounted, bookmarkable page with a form in it.
   
My problem is that I want to keep state in the page. However, at
 every

ProxyPass will not work?

2008-11-16 Thread Anton Veretennikov
Good day,

My hosting provider says that they use ProxyPass for aliases.
Seems that site opens but links don't work: 404 error
(ContextName/ContextName is not found) Why ContextName is doubled?
May be ProxyPass is not a way to work with Wicket.

I found for example that Wicket adds ContextPath() in cookie Path:

cookie.setPath(getWebRequest().getHttpServletRequest().getContextPath())

ContextPath() returns real name of context weather site called by alias or not.

Is it possible to override this behaviour? Any suggestions?

Thanks in advance.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Why is my page stateless, and how do I make it stateful? (using Wicket 1.4-m3)

2008-11-16 Thread Igor Vaynberg
i guess then we need more info. if you can create a quickstart that
would be optimal.

-igor

On Sun, Nov 16, 2008 at 9:28 PM, Ilja [EMAIL PROTECTED] wrote:
 Igor, rc1 gives me the exact same problem m3 gave me...

 On Sun, Nov 16, 2008 at 6:35 PM, Igor Vaynberg [EMAIL PROTECTED]wrote:

 rc1 is out, why dont you try with that.

 -igor

 On Sun, Nov 16, 2008 at 5:23 PM, Ilja [EMAIL PROTECTED] wrote:
  P.S.By my problem is solved I mean, obviously, that I'll stick with m2
 for
  the time being.
  Didn't mean to sound like that is ideal, or that I'm not concerned that
 the
  problem appears in m3.
  Let me know if I can do anything to help out with that.
  Cheers,
  ilja
 
  On Sun, Nov 16, 2008 at 5:15 PM, Ilja [EMAIL PROTECTED]
 wrote:
 
  You guys will want to know this:
  I figured that perhaps the problem lies with Wicket1.4-m3.
  So I swapped it out for Wicket1.4-m2.
  I did not change my code at all. I didn't change anything else. All I
 did
  was swap out the two Wicket versions.
 
  After I switched to Wicket1.4-m2, the page worked fine.
  The page is now not being re-constructed at every request and keeps
 state
  as expected.
 
  So, my problem is solved, but do you guys still want me to send you more
  info?
  I could switch back to m3 and send to the URLs that are being generated
  (Igor and Jeremy asked for that).
  I could still try and add a link to the page under m3 and see if that
 would
  make a difference (Igor asked for that).
 
  Jeremy's question about accidentally constructing the page myself or
  redirecting to it from my onSubmit() method has, I believe, answered
 itself
  (no to both).
 
  jWeekend, I assume you're talking about a Maven Quick Start - I don't
 use
  Maven (I know, I know, I should) but if that's something that can be
 done
  quickly and for which you could give me a pointer or two, I can try to
 do
  it. If you're still interested, that is.
 
  Let me know.
 
  Thanks to each of you for the help, I appreciate it!
 
  ilja
 
  On Sun, Nov 16, 2008 at 12:49 PM, Jeremy Thomerson 
  [EMAIL PROTECTED] wrote:
 
  Put a breakpoint in your constructor (sounds like you already have) and
  see what's calling it. Is it possible that you're constructing the page
  yourself (accidentally for a page link or something)?
 
  Also - what's the URL after you submit the form?  Are you redirecting
 to
  the page in your onSubmit?
 
 
  Jeremy Thomerson
  http://www.wickettraining.com
  -- sent from a wireless device
 
 
  -Original Message-
  From: Ilja [EMAIL PROTECTED]
  Sent: Sunday, November 16, 2008 2:06 PM
  To: users@wicket.apache.org
  Subject: Re: Why is my page stateless, and how do I make it stateful?
  (using Wicket 1.4-m3)
 
  Hi Igor, thanks for the response.
  No, I don't mean when I press the refresh button. Here's exactly what
  happens:
 
  - I type the URL into my browser. In my debugger, I can see that a new
  page
  is constructed (the page constructor runs).
  - There is a form on the page. I type something into the form
 (something
  that won't pass form validation).
  - I click on the form submit button. In my debugger, I can see that a
  whole
  new page is constructed (losing, of course, any state I had in the
  previous
  page).
  - Even though a new page is constructed, the form is returned to me
 with
  the
  values filled in and a validation error.
  I know this sounds very strange. But it's true, I've tested it many
 times.
 
  The same thing happens when I fill in the form with values that will
 pass
  validation:
  - When I click the form submit button, I can see in my debugger that a
  whole
  new page is constructed, and THEN the onSubmit() method of my form is
  executed. Somehow, values filled into the form are retained even though
 a
  whole new page was constructed. Other state in the page is lost.
  Again, I know it sounds very strange.
 
  I've tested some other pages in my application and they do not show
 this
  behavior.
  The only difference between this particular page and the other pages is
  that
  for each of the other pages, a user has to be logged into the
 application.
  The page in question, on the other hand, is a publicly accessible page
 for
  which you do not have to be logged in. However, I don't see how that
 would
  result in the behavior I see.
  Also, the page in question uses PageParameters to receive some initial
  values. But, again, I don't see how that would result in what I see.
  I've also tried to get some info by calling isStateless() on the page
 but
  it
  returns null.
 
  What else could I try/what other info could I collect?
 
  Thanks for the help!
 
  ilja
 
  On Sun, Nov 16, 2008 at 9:09 AM, Igor Vaynberg 
 [EMAIL PROTECTED]
  wrote:
 
   a page with a form on it cannot be stateless. what do you mean
   reconstructing on every request? when you press the refresh button?
   that is because this is a bookmarkable url...
  
   -igor
  
   On Sun, Nov 16, 2008 at 12:54 AM, Ilja [EMAIL PROTECTED]
  wrote:

Re: ProxyPass will not work?

2008-11-16 Thread Igor Vaynberg
there is a page on the wiki that talks about proxy config.

-igor

On Sun, Nov 16, 2008 at 9:31 PM, Anton Veretennikov
[EMAIL PROTECTED] wrote:
 Good day,

 My hosting provider says that they use ProxyPass for aliases.
 Seems that site opens but links don't work: 404 error
 (ContextName/ContextName is not found) Why ContextName is doubled?
 May be ProxyPass is not a way to work with Wicket.

 I found for example that Wicket adds ContextPath() in cookie Path:

 cookie.setPath(getWebRequest().getHttpServletRequest().getContextPath())

 ContextPath() returns real name of context weather site called by alias or 
 not.

 Is it possible to override this behaviour? Any suggestions?

 Thanks in advance.

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Why is my page stateless, and how do I make it stateful? (using Wicket 1.4-m3)

2008-11-16 Thread Ilja
Yeah... like I said before, I don't use Maven and you're probably talking
about a Maven QuickStart? Is that right?Can you give a few pointers on how
to do a QuickStart?
Is there anything on the web?
ilja

On Sun, Nov 16, 2008 at 9:51 PM, Igor Vaynberg [EMAIL PROTECTED]wrote:

 i guess then we need more info. if you can create a quickstart that
 would be optimal.

 -igor

 On Sun, Nov 16, 2008 at 9:28 PM, Ilja [EMAIL PROTECTED] wrote:
  Igor, rc1 gives me the exact same problem m3 gave me...
 
  On Sun, Nov 16, 2008 at 6:35 PM, Igor Vaynberg [EMAIL PROTECTED]
 wrote:
 
  rc1 is out, why dont you try with that.
 
  -igor
 
  On Sun, Nov 16, 2008 at 5:23 PM, Ilja [EMAIL PROTECTED]
 wrote:
   P.S.By my problem is solved I mean, obviously, that I'll stick with
 m2
  for
   the time being.
   Didn't mean to sound like that is ideal, or that I'm not concerned
 that
  the
   problem appears in m3.
   Let me know if I can do anything to help out with that.
   Cheers,
   ilja
  
   On Sun, Nov 16, 2008 at 5:15 PM, Ilja [EMAIL PROTECTED]
  wrote:
  
   You guys will want to know this:
   I figured that perhaps the problem lies with Wicket1.4-m3.
   So I swapped it out for Wicket1.4-m2.
   I did not change my code at all. I didn't change anything else. All I
  did
   was swap out the two Wicket versions.
  
   After I switched to Wicket1.4-m2, the page worked fine.
   The page is now not being re-constructed at every request and keeps
  state
   as expected.
  
   So, my problem is solved, but do you guys still want me to send you
 more
   info?
   I could switch back to m3 and send to the URLs that are being
 generated
   (Igor and Jeremy asked for that).
   I could still try and add a link to the page under m3 and see if that
  would
   make a difference (Igor asked for that).
  
   Jeremy's question about accidentally constructing the page myself or
   redirecting to it from my onSubmit() method has, I believe, answered
  itself
   (no to both).
  
   jWeekend, I assume you're talking about a Maven Quick Start - I don't
  use
   Maven (I know, I know, I should) but if that's something that can be
  done
   quickly and for which you could give me a pointer or two, I can try
 to
  do
   it. If you're still interested, that is.
  
   Let me know.
  
   Thanks to each of you for the help, I appreciate it!
  
   ilja
  
   On Sun, Nov 16, 2008 at 12:49 PM, Jeremy Thomerson 
   [EMAIL PROTECTED] wrote:
  
   Put a breakpoint in your constructor (sounds like you already have)
 and
   see what's calling it. Is it possible that you're constructing the
 page
   yourself (accidentally for a page link or something)?
  
   Also - what's the URL after you submit the form?  Are you
 redirecting
  to
   the page in your onSubmit?
  
  
   Jeremy Thomerson
   http://www.wickettraining.com
   -- sent from a wireless device
  
  
   -Original Message-
   From: Ilja [EMAIL PROTECTED]
   Sent: Sunday, November 16, 2008 2:06 PM
   To: users@wicket.apache.org
   Subject: Re: Why is my page stateless, and how do I make it
 stateful?
   (using Wicket 1.4-m3)
  
   Hi Igor, thanks for the response.
   No, I don't mean when I press the refresh button. Here's exactly
 what
   happens:
  
   - I type the URL into my browser. In my debugger, I can see that a
 new
   page
   is constructed (the page constructor runs).
   - There is a form on the page. I type something into the form
  (something
   that won't pass form validation).
   - I click on the form submit button. In my debugger, I can see that
 a
   whole
   new page is constructed (losing, of course, any state I had in the
   previous
   page).
   - Even though a new page is constructed, the form is returned to me
  with
   the
   values filled in and a validation error.
   I know this sounds very strange. But it's true, I've tested it many
  times.
  
   The same thing happens when I fill in the form with values that will
  pass
   validation:
   - When I click the form submit button, I can see in my debugger that
 a
   whole
   new page is constructed, and THEN the onSubmit() method of my form
 is
   executed. Somehow, values filled into the form are retained even
 though
  a
   whole new page was constructed. Other state in the page is lost.
   Again, I know it sounds very strange.
  
   I've tested some other pages in my application and they do not show
  this
   behavior.
   The only difference between this particular page and the other pages
 is
   that
   for each of the other pages, a user has to be logged into the
  application.
   The page in question, on the other hand, is a publicly accessible
 page
  for
   which you do not have to be logged in. However, I don't see how that
  would
   result in the behavior I see.
   Also, the page in question uses PageParameters to receive some
 initial
   values. But, again, I don't see how that would result in what I see.
   I've also tried to get some info by calling isStateless() on the
 page
  but
   it
   returns null.
  
   

Re: Why is my page stateless, and how do I make it stateful? (using Wicket 1.4-m3)

2008-11-16 Thread Igor Vaynberg
there are two ways to do this:
a) there is wicket-quickstart project in svn which you can customize and zip.
b) use maven. download and install maven, go to wicket.apache.org and
find the quickstart page which will gen the command line necessary to
let maven build the project. if this is the first time you run maven
it might take a good while because it has to download a ton of
dependencies.

-igor

On Sun, Nov 16, 2008 at 10:07 PM, Ilja [EMAIL PROTECTED] wrote:
 Yeah... like I said before, I don't use Maven and you're probably talking
 about a Maven QuickStart? Is that right?Can you give a few pointers on how
 to do a QuickStart?
 Is there anything on the web?
 ilja

 On Sun, Nov 16, 2008 at 9:51 PM, Igor Vaynberg [EMAIL PROTECTED]wrote:

 i guess then we need more info. if you can create a quickstart that
 would be optimal.

 -igor

 On Sun, Nov 16, 2008 at 9:28 PM, Ilja [EMAIL PROTECTED] wrote:
  Igor, rc1 gives me the exact same problem m3 gave me...
 
  On Sun, Nov 16, 2008 at 6:35 PM, Igor Vaynberg [EMAIL PROTECTED]
 wrote:
 
  rc1 is out, why dont you try with that.
 
  -igor
 
  On Sun, Nov 16, 2008 at 5:23 PM, Ilja [EMAIL PROTECTED]
 wrote:
   P.S.By my problem is solved I mean, obviously, that I'll stick with
 m2
  for
   the time being.
   Didn't mean to sound like that is ideal, or that I'm not concerned
 that
  the
   problem appears in m3.
   Let me know if I can do anything to help out with that.
   Cheers,
   ilja
  
   On Sun, Nov 16, 2008 at 5:15 PM, Ilja [EMAIL PROTECTED]
  wrote:
  
   You guys will want to know this:
   I figured that perhaps the problem lies with Wicket1.4-m3.
   So I swapped it out for Wicket1.4-m2.
   I did not change my code at all. I didn't change anything else. All I
  did
   was swap out the two Wicket versions.
  
   After I switched to Wicket1.4-m2, the page worked fine.
   The page is now not being re-constructed at every request and keeps
  state
   as expected.
  
   So, my problem is solved, but do you guys still want me to send you
 more
   info?
   I could switch back to m3 and send to the URLs that are being
 generated
   (Igor and Jeremy asked for that).
   I could still try and add a link to the page under m3 and see if that
  would
   make a difference (Igor asked for that).
  
   Jeremy's question about accidentally constructing the page myself or
   redirecting to it from my onSubmit() method has, I believe, answered
  itself
   (no to both).
  
   jWeekend, I assume you're talking about a Maven Quick Start - I don't
  use
   Maven (I know, I know, I should) but if that's something that can be
  done
   quickly and for which you could give me a pointer or two, I can try
 to
  do
   it. If you're still interested, that is.
  
   Let me know.
  
   Thanks to each of you for the help, I appreciate it!
  
   ilja
  
   On Sun, Nov 16, 2008 at 12:49 PM, Jeremy Thomerson 
   [EMAIL PROTECTED] wrote:
  
   Put a breakpoint in your constructor (sounds like you already have)
 and
   see what's calling it. Is it possible that you're constructing the
 page
   yourself (accidentally for a page link or something)?
  
   Also - what's the URL after you submit the form?  Are you
 redirecting
  to
   the page in your onSubmit?
  
  
   Jeremy Thomerson
   http://www.wickettraining.com
   -- sent from a wireless device
  
  
   -Original Message-
   From: Ilja [EMAIL PROTECTED]
   Sent: Sunday, November 16, 2008 2:06 PM
   To: users@wicket.apache.org
   Subject: Re: Why is my page stateless, and how do I make it
 stateful?
   (using Wicket 1.4-m3)
  
   Hi Igor, thanks for the response.
   No, I don't mean when I press the refresh button. Here's exactly
 what
   happens:
  
   - I type the URL into my browser. In my debugger, I can see that a
 new
   page
   is constructed (the page constructor runs).
   - There is a form on the page. I type something into the form
  (something
   that won't pass form validation).
   - I click on the form submit button. In my debugger, I can see that
 a
   whole
   new page is constructed (losing, of course, any state I had in the
   previous
   page).
   - Even though a new page is constructed, the form is returned to me
  with
   the
   values filled in and a validation error.
   I know this sounds very strange. But it's true, I've tested it many
  times.
  
   The same thing happens when I fill in the form with values that will
  pass
   validation:
   - When I click the form submit button, I can see in my debugger that
 a
   whole
   new page is constructed, and THEN the onSubmit() method of my form
 is
   executed. Somehow, values filled into the form are retained even
 though
  a
   whole new page was constructed. Other state in the page is lost.
   Again, I know it sounds very strange.
  
   I've tested some other pages in my application and they do not show
  this
   behavior.
   The only difference between this particular page and the other pages
 is
   that
   for each of the other pages, a user has to be logged 

Re: ProxyPass will not work?

2008-11-16 Thread Anton Veretennikov
 there is a page on the wiki that talks about proxy config.

 -igor

Thank you, Igor.
I found it: http://cwiki.apache.org/WICKET/wicket-behind-a-front-end-proxy.html

Don't understand how to setContextPath() in Wicket 1.3.5?
Seems getApplicationSettings().setContextPath(/) is an old API.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Unable to load Wicket app in hosting provider

2008-11-16 Thread Nino Saturnino Martinez Vazquez Wael

Hi '

If I were you I would pick up the wicket in action book, or follow a 
tutorial... These are very basic questions...


Wicket has a application class which specify the home folder with a 
method, you would override that and return your index.class wicket will 
then use that to display as root..


moraleslos wrote:

Hi,

Thanks for the reply.  I'm a bit confused on how to write the index.html. 
So, let's say my godaddy directory structure looks like this:


/
/xyz
/xyz/WEB-INF
/xyz/WEB-INF/web.xml
/xyz/WEB-INF/classes/com/xyz/Index.html
/xyz/WEB-INF/classes/com/xyz/Index.class
...

In my web.xml looks like this:

web-app 
	version=2.4 
	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;

display-namexyz/display-name
context-param
param-nameconfiguration/param-name
param-valuedeployment/param-value
/context-param
filter
filter-namewicket.xyz/filter-name

filter-classorg.apache.wicket.protocol.http.WicketFilter/filter-class
init-param
param-nameapplicationClassName/param-name
param-valuecom.xyz.XyzApplication/param-value
/init-param
/filter
filter-mapping
filter-namewicket.xyz/filter-name
url-pattern/*/url-pattern
/filter-mapping
/web-app


So how do I write the index.html that's going to be in the root directory to
invoke Wicket's Index.html under /xyz/WEB-INF/classes/com/xyz/Index.html? 
Thanks!


-los


Martijn Dashorst wrote:
  

so your wicket filter would service all requests going to:

http://godaddy.com/myapplication/app

or, you could still keep the filter mapping to /* but redirect to your
mounted homepage with mount name home or something similar.

Martijn

On Mon, Nov 17, 2008 at 1:40 AM, Martijn Dashorst
[EMAIL PROTECTED] wrote:


mount the wicket filter under context root app and tell the index.html
to redirect to that url with a pragma header.

Martijn

On Mon, Nov 17, 2008 at 1:10 AM, moraleslos [EMAIL PROTECTED]
wrote:
  

Ok,

Finally talked to someone at GoDaddy who gave me some advice.  With
their
Java hosting, it seems that they force Tomcat to look for a default file
(e.g. index.html) at the root directory.  Since I don't have one (all of
my
files are under WEB-INF/classes/...), I get the 403 error.

Now here's the question.  How do I write up a default index.html file
and
place this in the root directory such that it will start up the Wicket
filter in the web.xml file and run the Wicket application appropriately?
Again, my actual Index.html, and hence it's Index.class, is packaged
under
the WEB-INF/classes/... directory.  Thanks!

-los



Erik van Oosten wrote:


Maybe this helps. I've found that you need to start Tomcat from a
directory that is writable for the user you are using (no idea why
though). Besides the application log, you should also check Tomcat's
log
files.

Good luck,
Erik.

moraleslos wrote:
  

Hi,

I'm running into an issue where my Wicket-based application will
absolutely
not load in the shared hosting environment.  I'm trying out GoDaddy's
Java
Web hosting that uses Java 1.5 and Tomcat 5.0.27.  I have this same
setup
on
my box and deploying my Wicket 1.3.4-based application works


--
Erik van Oosten
http://www.day-to-day-stuff.blogspot.com/


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



  

--
View this message in context:
http://www.nabble.com/Unable-to-load-Wicket-app-in-hosting-provider-tp20526412p20531825.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
Become a Wicket expert, learn from the best: http://wicketinaction.com
Apache Wicket 1.3.4 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.

  


--
Become a Wicket expert, learn from the best: http://wicketinaction.com
Apache Wicket 1.3.4 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






  


--
-Wicket for love

Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Unable to load Wicket app in hosting provider

2008-11-16 Thread Igor Vaynberg
you just need a file named index.html in your /xyz dir

-igor

On Sun, Nov 16, 2008 at 5:01 PM, moraleslos [EMAIL PROTECTED] wrote:

 Hi,

 Thanks for the reply.  I'm a bit confused on how to write the index.html.
 So, let's say my godaddy directory structure looks like this:

 /
 /xyz
 /xyz/WEB-INF
 /xyz/WEB-INF/web.xml
 /xyz/WEB-INF/classes/com/xyz/Index.html
 /xyz/WEB-INF/classes/com/xyz/Index.class
 ...

 In my web.xml looks like this:

 web-app
version=2.4
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;

display-namexyz/display-name
context-param
param-nameconfiguration/param-name
param-valuedeployment/param-value
/context-param
filter
filter-namewicket.xyz/filter-name

 filter-classorg.apache.wicket.protocol.http.WicketFilter/filter-class
init-param
param-nameapplicationClassName/param-name
param-valuecom.xyz.XyzApplication/param-value
/init-param
/filter
filter-mapping
filter-namewicket.xyz/filter-name
url-pattern/*/url-pattern
/filter-mapping
 /web-app


 So how do I write the index.html that's going to be in the root directory to
 invoke Wicket's Index.html under /xyz/WEB-INF/classes/com/xyz/Index.html?
 Thanks!

 -los


 Martijn Dashorst wrote:

 so your wicket filter would service all requests going to:

 http://godaddy.com/myapplication/app

 or, you could still keep the filter mapping to /* but redirect to your
 mounted homepage with mount name home or something similar.

 Martijn

 On Mon, Nov 17, 2008 at 1:40 AM, Martijn Dashorst
 [EMAIL PROTECTED] wrote:
 mount the wicket filter under context root app and tell the index.html
 to redirect to that url with a pragma header.

 Martijn

 On Mon, Nov 17, 2008 at 1:10 AM, moraleslos [EMAIL PROTECTED]
 wrote:

 Ok,

 Finally talked to someone at GoDaddy who gave me some advice.  With
 their
 Java hosting, it seems that they force Tomcat to look for a default file
 (e.g. index.html) at the root directory.  Since I don't have one (all of
 my
 files are under WEB-INF/classes/...), I get the 403 error.

 Now here's the question.  How do I write up a default index.html file
 and
 place this in the root directory such that it will start up the Wicket
 filter in the web.xml file and run the Wicket application appropriately?
 Again, my actual Index.html, and hence it's Index.class, is packaged
 under
 the WEB-INF/classes/... directory.  Thanks!

 -los



 Erik van Oosten wrote:

 Maybe this helps. I've found that you need to start Tomcat from a
 directory that is writable for the user you are using (no idea why
 though). Besides the application log, you should also check Tomcat's
 log
 files.

 Good luck,
 Erik.

 moraleslos wrote:
 Hi,

 I'm running into an issue where my Wicket-based application will
 absolutely
 not load in the shared hosting environment.  I'm trying out GoDaddy's
 Java
 Web hosting that uses Java 1.5 and Tomcat 5.0.27.  I have this same
 setup
 on
 my box and deploying my Wicket 1.3.4-based application works

 --
 Erik van Oosten
 http://www.day-to-day-stuff.blogspot.com/


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




 --
 View this message in context:
 http://www.nabble.com/Unable-to-load-Wicket-app-in-hosting-provider-tp20526412p20531825.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]





 --
 Become a Wicket expert, learn from the best: http://wicketinaction.com
 Apache Wicket 1.3.4 is released
 Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.




 --
 Become a Wicket expert, learn from the best: http://wicketinaction.com
 Apache Wicket 1.3.4 is released
 Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




 --
 View this message in context: 
 http://www.nabble.com/Unable-to-load-Wicket-app-in-hosting-provider-tp20526412p20532223.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Simple GET based stateless form

2008-11-16 Thread Vinayak Borkar

Hi,

I am trying to create a simple GET based stateless form to implement 
search. My code is broken up into two parts

1. A SearchPanel component that renders the form containing the text field
2. A SearchPage that renders the search results.

The search page also has the SearchPanel component embedded in it so it 
would show a text field for the user to search again.


The SearchPage page is mounted using the mountBookmarkablePage() call, 
so the URL for the search page is great the first time someone does a 
search.


However, if a search is performed a second time from the form on the 
SearchPage, the URL for the new serach page has a bunch of extra wicket 
specific attributes.


How do I make the URL seen in the second search as clean as the first?
I am using wicket 1.4-m3

Thanks,
Vinayak

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]