Re: Facebook Wicket Integration

2008-04-11 Thread TH Lim

Hi,

I have redeployed this application in another Tomcat server it worked. I
have no idea what's wrong.  It is a classic PEBCAK. 

However, there is a work around it which I used when the solution was not
working. I directed the home Webpage to the Facebook login page if the user
has not login yet otherwise proceed to other pages. It is not elegant and it
worked at that time. Now that it works as it should be I have reverted to
the original code. 


itai wrote:
 
 Hi Lim, 
 
 I ran into the exact same problem ...
 Did you find a solution ??
 
 Thanks, 
 Itai.
 
 
 TH Lim wrote:
 
 
 java.lang.NullPointerException
 at org.thlim.sample.wicket.Login.init(Login.java:23)
 at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
 Method)
 at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
 at java.lang.Class.newInstance0(Class.java:350)
 at java.lang.Class.newInstance(Class.java:303)
 ..
 
 I traced the code and found that the application didn't redirect as
 stipulated here,
 
 ...
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Facebook-Wicket-Integration-tp16558748p16625615.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]



Problem with page wich shown via pagelink

2008-04-11 Thread Иванов Дмитрий
Добрый день.

  I have page with form and feedback on it. Page is mounted under some path.

  When i access this page via mounted path - everything is ok - after
  processing form feedback panel shows error and/or other messages, as
  expected.

  But when i create PageLink to this page on the other page and click
  form submit button - onSubmit method called as usual, but no
  feedback messages shown up.

  I can't get why this behaviour happens. Any ideas?

-- 
Greetz,
 Dmitriy Ivanov



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



Re: How to pass an arbitrary javascript variable to onSubmit?

2008-04-11 Thread Maurice Marrink
You could add a HiddenField to the Form and then in your markup set it
to your javascriptvariable.

Maurice

On Thu, Apr 10, 2008 at 5:39 PM, Vitaly Tsaplin
[EMAIL PROTECTED] wrote:
Hi everyone,

How to pass an arbitrary javascript variable to onSubmit?

Vitaly

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

2008-04-11 Thread Michael Sparer

in our application we use a custom authentication implemenation; but the
comparison you might be looking for can be found here:
http://wicketstuff.org/confluence/display/STUFFWIKI/Security+Framework+Comparison

regards
Michael

Scott Swank wrote:
 
 What do folk recommend for authentication?
 
 1) In Wicket in Action there is a simple, custom authentication
 implementation.
 2) In Wicket Examples authentication is based on wicket-auth-roles.
 3) Then there's WASP  SWARM
 
 Is there any sort of comparison of wicket-auth-roles with SWARM that I
 haven't yet found?
 
 Thank you,
 Scott
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 


-
Michael Sparer
http://talk-on-tech.blogspot.com
-- 
View this message in context: 
http://www.nabble.com/authentication-tp16621153p16626237.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: WebRequest question

2008-04-11 Thread Maurice Marrink
Wasp requires a custom WebSession, not a custom WebRequest, to handle
some trivial authentication stuff.

Maurice

On Thu, Apr 10, 2008 at 11:56 PM, James Carman
[EMAIL PROTECTED] wrote:
 I've never really cared for this whole idea of requiring subclassing
  to get your work done.  Is there no way to make things more pluggable?
   Perhaps use the decorator design pattern?

  On Thu, Apr 10, 2008 at 4:10 PM, Martijn Lindhout


 [EMAIL PROTECTED] wrote:
   If I remember well, Wasp/Swarm needs its own WebRequest subclass?
  
2008/4/10, Igor Vaynberg [EMAIL PROTECTED]:
  
  
   
 On Thu, Apr 10, 2008 at 12:34 PM, Martijn Lindhout
 [EMAIL PROTECTED] wrote:
   My two questions:
 
   1. is this necessary / bad?


 no, it just adds some extra capability to the request


   2. what if I need different types of requests in my application?


 i doubt you will. what usecases do you have? usecases for subclassing
 request/response are few and far in between.

 -igor



 
   Thanx,
 
   --
   Martijn Lindhout
   JointEffort IT Services
   http://www.jointeffort.nl
   [EMAIL PROTECTED]
   +31 (0)6 18 47 25 29
 


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


  
  
--
  
  
   Martijn Lindhout
JointEffort IT Services
http://www.jointeffort.nl
[EMAIL PROTECTED]
+31 (0)6 18 47 25 29
  

  -
  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: form-specific feedback

2008-04-11 Thread Michael Sparer

alternatively you can also use the setFilter method of the FeedbackPanel
class where you can apply a filter on component, container or errorlevel (or
any custom implementation) basis. AFAIK this is how the convenience class
componentfeedbackpanel works

regards
michael

Enrique Rodriguez-2 wrote:
 
 ComponentFeedbackPanel in org.apache.wicket.markup.html.panel.  Use
 your Form instances in the constructor to filter messages.
 
 Enrique
 
 
 On Thu, Apr 10, 2008 at 1:26 PM, Andrew Broderick
 [EMAIL PROTECTED] wrote:
 Hi,

 I have two forms on the same page, that are two different classes. Each
 uses a FeedbackPanel. The problem is, if one of them is submitted, and
 error(blah) is called somewhere in the onSubmit(), they both display
 the message! How can I make each form only display its own messages?

 Thanks

 ___

 The  information in this email or in any file attached
 hereto is intended only for the personal and confiden-
 tial  use  of  the individual or entity to which it is
 addressed and may contain information that is  propri-
 etary  and  confidential.  If you are not the intended
 recipient of this message you are hereby notified that
 any  review, dissemination, distribution or copying of
 this message is strictly prohibited.  This  communica-
 tion  is  for information purposes only and should not
 be regarded as an offer to sell or as  a  solicitation
 of an offer to buy any financial product. Email trans-
 mission cannot be guaranteed to be  secure  or  error-
 free. P6070214

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


-
Michael Sparer
http://talk-on-tech.blogspot.com
-- 
View this message in context: 
http://www.nabble.com/form-specific-feedback-tp16619365p16626240.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: how to get html source

2008-04-11 Thread Maurice Marrink
If you are only interested in a few of the tags you could overwrite
onComponentTag.

But if you want the full page you could render everything to a string
: see 
http://www.nabble.com/Wicket-as-a-template-generator-tp16609133p16610499.html

Another option, probably more efficient if you are only interested in
dumping all responses in a database is to put a filter in front of the
wicket filter and capture all output there.

Maurice

On Fri, Apr 11, 2008 at 2:55 AM, freak182 [EMAIL PROTECTED] wrote:


  What i mean is the html tags and all kind of stuff of the rendered page. not
  the .html file...i want to retrieve that and save to DB.




  Mr Mean wrote:
  
   What do you mean get the html source of a page?
   Wicket already fetches the html source for your page if it is located
   in the same package and has the same name as your page. You do not
   need it.
   The constructor is irrelevant for this process.
  
   Maurice
  
   On Thu, Apr 10, 2008 at 10:51 AM, freak182 [EMAIL PROTECTED] wrote:
  
Hello,
My problem is how to get the html source of the page with the
   constructor
having a parameter?...i see an example of getting the html source of the
page with the constructor having no parameter that i think is easy.
  
Thanks a lot...Cheers!
--
View this message in context:
   http://www.nabble.com/how-to-get-html-source-tp16605236p16605236.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/how-to-get-html-source-tp16605236p16623049.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: WebRequest question

2008-04-11 Thread Martijn Lindhout
I don't exactly where I saw it also, but James has a point. I like to see
the things also more pluggable. I don't know if Wicket needs to be modified
or if 'wicket-extenders' should take another approach, but I find myself to
many times having to extend the same thing (my Application class) from two
different supertypes, e.g. (and this is maybe not a correct example, but
there are more) when using Spring you must extends Spring application, and
when using wicket-auth-roles, you need to extend
AuthenticatedWebApplication. Since Java doesn't support multiple inheritance
this is a problem.

How should we fix this?

2008/4/11, Maurice Marrink [EMAIL PROTECTED]:

 Wasp requires a custom WebSession, not a custom WebRequest, to handle
 some trivial authentication stuff.


 Maurice


 On Thu, Apr 10, 2008 at 11:56 PM, James Carman
 [EMAIL PROTECTED] wrote:
  I've never really cared for this whole idea of requiring subclassing
   to get your work done.  Is there no way to make things more pluggable?
Perhaps use the decorator design pattern?
 
   On Thu, Apr 10, 2008 at 4:10 PM, Martijn Lindhout
 
 
  [EMAIL PROTECTED] wrote:
If I remember well, Wasp/Swarm needs its own WebRequest subclass?
   
 2008/4/10, Igor Vaynberg [EMAIL PROTECTED]:
   
   

  On Thu, Apr 10, 2008 at 12:34 PM, Martijn Lindhout
  [EMAIL PROTECTED] wrote:
My two questions:
  
1. is this necessary / bad?
 
 
  no, it just adds some extra capability to the request
 
 
2. what if I need different types of requests in my
 application?
 
 
  i doubt you will. what usecases do you have? usecases for
 subclassing
  request/response are few and far in between.
 
  -igor
 
 
 
  
Thanx,
  
--
Martijn Lindhout
JointEffort IT Services
http://www.jointeffort.nl
[EMAIL PROTECTED]
+31 (0)6 18 47 25 29
  
 
 
 
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
   
   
 --
   
   
Martijn Lindhout
 JointEffort IT Services
 http://www.jointeffort.nl
 [EMAIL PROTECTED]
 +31 (0)6 18 47 25 29
   
 
   -
   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]




-- 
Martijn Lindhout
JointEffort IT Services
http://www.jointeffort.nl
[EMAIL PROTECTED]
+31 (0)6 18 47 25 29


Re: WebRequest question

2008-04-11 Thread Maurice Marrink
You are correct in saying this may cause problems. So it is up to the
developers of the extensions to provide workarounds for this.
For instance wasp and swarm also provide an interface you can
implement on top of the other application you must extend. And if i
recall correctly an application can be springified using a simple
annotation or 1 line of code added to your application (don't ask me
how, i just remember hearing or reading about it somewhere, maybe one
of the other devs knows).

I know this is not always an ideal situation, for instance with the
interfaces you end up copy pasting a lot of code, So if you have a
better suggestion

Maurice

On Fri, Apr 11, 2008 at 9:30 AM, Martijn Lindhout
[EMAIL PROTECTED] wrote:
 I don't exactly where I saw it also, but James has a point. I like to see
  the things also more pluggable. I don't know if Wicket needs to be modified
  or if 'wicket-extenders' should take another approach, but I find myself to
  many times having to extend the same thing (my Application class) from two
  different supertypes, e.g. (and this is maybe not a correct example, but
  there are more) when using Spring you must extends Spring application, and
  when using wicket-auth-roles, you need to extend
  AuthenticatedWebApplication. Since Java doesn't support multiple inheritance
  this is a problem.

  How should we fix this?

  2008/4/11, Maurice Marrink [EMAIL PROTECTED]:


 
   Wasp requires a custom WebSession, not a custom WebRequest, to handle
   some trivial authentication stuff.
  
  
   Maurice
  
  
   On Thu, Apr 10, 2008 at 11:56 PM, James Carman
   [EMAIL PROTECTED] wrote:
I've never really cared for this whole idea of requiring subclassing
 to get your work done.  Is there no way to make things more pluggable?
  Perhaps use the decorator design pattern?
   
 On Thu, Apr 10, 2008 at 4:10 PM, Martijn Lindhout
   
   
[EMAIL PROTECTED] wrote:
  If I remember well, Wasp/Swarm needs its own WebRequest subclass?
 
   2008/4/10, Igor Vaynberg [EMAIL PROTECTED]:
 
 
  
On Thu, Apr 10, 2008 at 12:34 PM, Martijn Lindhout
[EMAIL PROTECTED] wrote:
  My two questions:

  1. is this necessary / bad?
   
   
no, it just adds some extra capability to the request
   
   
  2. what if I need different types of requests in my
   application?
   
   
i doubt you will. what usecases do you have? usecases for
   subclassing
request/response are few and far in between.
   
-igor
   
   
   

  Thanx,

  --
  Martijn Lindhout
  JointEffort IT Services
  http://www.jointeffort.nl
  [EMAIL PROTECTED]
  +31 (0)6 18 47 25 29

   
   
   
   -
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
   
   
 
 
   --
 
 
  Martijn Lindhout
   JointEffort IT Services
   http://www.jointeffort.nl
   [EMAIL PROTECTED]
   +31 (0)6 18 47 25 29
 
   
 -
 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]
  
  


  --
  Martijn Lindhout
  JointEffort IT Services
  http://www.jointeffort.nl
  [EMAIL PROTECTED]
  +31 (0)6 18 47 25 29


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



Re: BookmarkablePageLink Parameter order

2008-04-11 Thread Takeshi Matsuba
I make JIRA issue, WICKET-1215
thanks

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



Re: WebRequest question

2008-04-11 Thread Igor Vaynberg
On Fri, Apr 11, 2008 at 12:30 AM, Martijn Lindhout
[EMAIL PROTECTED] wrote:

 when using Spring you must extends Spring application

not if you are using annots, all you need to do is install the spring
component injector.

-igor


  2008/4/11, Maurice Marrink [EMAIL PROTECTED]:


 
   Wasp requires a custom WebSession, not a custom WebRequest, to handle
   some trivial authentication stuff.
  
  
   Maurice
  
  
   On Thu, Apr 10, 2008 at 11:56 PM, James Carman
   [EMAIL PROTECTED] wrote:
I've never really cared for this whole idea of requiring subclassing
 to get your work done.  Is there no way to make things more pluggable?
  Perhaps use the decorator design pattern?
   
 On Thu, Apr 10, 2008 at 4:10 PM, Martijn Lindhout
   
   
[EMAIL PROTECTED] wrote:
  If I remember well, Wasp/Swarm needs its own WebRequest subclass?
 
   2008/4/10, Igor Vaynberg [EMAIL PROTECTED]:
 
 
  
On Thu, Apr 10, 2008 at 12:34 PM, Martijn Lindhout
[EMAIL PROTECTED] wrote:
  My two questions:

  1. is this necessary / bad?
   
   
no, it just adds some extra capability to the request
   
   
  2. what if I need different types of requests in my
   application?
   
   
i doubt you will. what usecases do you have? usecases for
   subclassing
request/response are few and far in between.
   
-igor
   
   
   

  Thanx,

  --
  Martijn Lindhout
  JointEffort IT Services
  http://www.jointeffort.nl
  [EMAIL PROTECTED]
  +31 (0)6 18 47 25 29

   
   
   
   -
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
   
   
 
 
   --
 
 
  Martijn Lindhout
   JointEffort IT Services
   http://www.jointeffort.nl
   [EMAIL PROTECTED]
   +31 (0)6 18 47 25 29
 
   
 -
 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]
  
  


  --


 Martijn Lindhout
  JointEffort IT Services
  http://www.jointeffort.nl
  [EMAIL PROTECTED]
  +31 (0)6 18 47 25 29


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



Re: WebRequest question

2008-04-11 Thread lars vonk

 when using Spring you must extends Spring application


You don't need to. You could extend WebApplication and in the init() add :

void init() {
  addComponentInstantionListener(new SpringComponentInjector(this));
}

But coming back to your real point: It would be nice if Application and
RequestCycle and such classes would have interfaces. Then you could use the
(dynamic) proxying approach to apply multiple crosscutting concerns (like
security, monitoring etc) without the need for subclassing and such.


Lars

On Fri, Apr 11, 2008 at 9:30 AM, Martijn Lindhout [EMAIL PROTECTED]
wrote:

 I don't exactly where I saw it also, but James has a point. I like to see
 the things also more pluggable. I don't know if Wicket needs to be
 modified
 or if 'wicket-extenders' should take another approach, but I find myself
 to
 many times having to extend the same thing (my Application class) from two
 different supertypes, e.g. (and this is maybe not a correct example, but
 there are more) when using Spring you must extends Spring application, and
 when using wicket-auth-roles, you need to extend
 AuthenticatedWebApplication. Since Java doesn't support multiple
 inheritance
 this is a problem.

 How should we fix this?

 2008/4/11, Maurice Marrink [EMAIL PROTECTED]:
 
  Wasp requires a custom WebSession, not a custom WebRequest, to handle
  some trivial authentication stuff.
 
 
  Maurice
 
 
  On Thu, Apr 10, 2008 at 11:56 PM, James Carman
  [EMAIL PROTECTED] wrote:
   I've never really cared for this whole idea of requiring subclassing
to get your work done.  Is there no way to make things more
 pluggable?
 Perhaps use the decorator design pattern?
  
On Thu, Apr 10, 2008 at 4:10 PM, Martijn Lindhout
  
  
   [EMAIL PROTECTED] wrote:
 If I remember well, Wasp/Swarm needs its own WebRequest subclass?

  2008/4/10, Igor Vaynberg [EMAIL PROTECTED]:


 
   On Thu, Apr 10, 2008 at 12:34 PM, Martijn Lindhout
   [EMAIL PROTECTED] wrote:
 My two questions:
   
 1. is this necessary / bad?
  
  
   no, it just adds some extra capability to the request
  
  
 2. what if I need different types of requests in my
  application?
  
  
   i doubt you will. what usecases do you have? usecases for
  subclassing
   request/response are few and far in between.
  
   -igor
  
  
  
   
 Thanx,
   
 --
 Martijn Lindhout
 JointEffort IT Services
 http://www.jointeffort.nl
 [EMAIL PROTECTED]
 +31 (0)6 18 47 25 29
   
  
  
  
  -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  


  --


 Martijn Lindhout
  JointEffort IT Services
  http://www.jointeffort.nl
  [EMAIL PROTECTED]
  +31 (0)6 18 47 25 29

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


 --
 Martijn Lindhout
 JointEffort IT Services
 http://www.jointeffort.nl
 [EMAIL PROTECTED]
 +31 (0)6 18 47 25 29



Re: WebRequest question

2008-04-11 Thread Martijn Lindhout
Can't we implement 'something' using an interceptor chain? Extensions can
register themselves in the Application#init() method. There might be a chain
for the webrequest cycle, for example. Each part in the chain may add some
behavior to the cycle then.

2008/4/11, Maurice Marrink [EMAIL PROTECTED]:

 You are correct in saying this may cause problems. So it is up to the
 developers of the extensions to provide workarounds for this.
 For instance wasp and swarm also provide an interface you can
 implement on top of the other application you must extend. And if i
 recall correctly an application can be springified using a simple
 annotation or 1 line of code added to your application (don't ask me
 how, i just remember hearing or reading about it somewhere, maybe one
 of the other devs knows).

 I know this is not always an ideal situation, for instance with the
 interfaces you end up copy pasting a lot of code, So if you have a
 better suggestion

 Maurice

 On Fri, Apr 11, 2008 at 9:30 AM, Martijn Lindhout

 [EMAIL PROTECTED] wrote:
  I don't exactly where I saw it also, but James has a point. I like to
 see
   the things also more pluggable. I don't know if Wicket needs to be
 modified
   or if 'wicket-extenders' should take another approach, but I find
 myself to
   many times having to extend the same thing (my Application class) from
 two
   different supertypes, e.g. (and this is maybe not a correct example,
 but
   there are more) when using Spring you must extends Spring application,
 and
   when using wicket-auth-roles, you need to extend
   AuthenticatedWebApplication. Since Java doesn't support multiple
 inheritance
   this is a problem.
 
   How should we fix this?
 
   2008/4/11, Maurice Marrink [EMAIL PROTECTED]:
 
 
  
Wasp requires a custom WebSession, not a custom WebRequest, to handle
some trivial authentication stuff.
   
   
Maurice
   
   
On Thu, Apr 10, 2008 at 11:56 PM, James Carman
[EMAIL PROTECTED] wrote:
 I've never really cared for this whole idea of requiring
 subclassing
  to get your work done.  Is there no way to make things more
 pluggable?
   Perhaps use the decorator design pattern?

  On Thu, Apr 10, 2008 at 4:10 PM, Martijn Lindhout


 [EMAIL PROTECTED] wrote:
   If I remember well, Wasp/Swarm needs its own WebRequest
 subclass?
  
2008/4/10, Igor Vaynberg [EMAIL PROTECTED]:
  
  
   
 On Thu, Apr 10, 2008 at 12:34 PM, Martijn Lindhout
 [EMAIL PROTECTED] wrote:
   My two questions:
 
   1. is this necessary / bad?


 no, it just adds some extra capability to the request


   2. what if I need different types of requests in my
application?


 i doubt you will. what usecases do you have? usecases for
subclassing
 request/response are few and far in between.

 -igor



 
   Thanx,
 
   --
   Martijn Lindhout
   JointEffort IT Services
   http://www.jointeffort.nl
   [EMAIL PROTECTED]
   +31 (0)6 18 47 25 29
 



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


  
  
--
  
  
   Martijn Lindhout
JointEffort IT Services
http://www.jointeffort.nl
[EMAIL PROTECTED]
+31 (0)6 18 47 25 29
  

   
   -
  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]
   
   
 
 
   --
   Martijn Lindhout
   JointEffort IT Services
   http://www.jointeffort.nl
   [EMAIL PROTECTED]
   +31 (0)6 18 47 25 29
 

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




-- 
Martijn Lindhout
JointEffort IT Services
http://www.jointeffort.nl
[EMAIL PROTECTED]
+31 (0)6 18 47 25 29


Re: authentication

2008-04-11 Thread Maurice Marrink
Unfortunately there is no such thing yet as swarm on annotations.
This was mainly because wicket itself was still on java 1.4, now that
wicket has moved to java 1.5 wasp and swarm will follow (in a 1.4
release). but not before i have released at least a beta for 1.3.1. As
you can imagine I'd rather spend as much time on  a single product
then to have to split my time between 2 different branches. In the
mean time i am open to suggestions as to what should go into
wicket-security 1.4.

Maurice

On Fri, Apr 11, 2008 at 9:14 AM, Michael Sparer [EMAIL PROTECTED] wrote:

  in our application we use a custom authentication implemenation; but the
  comparison you might be looking for can be found here:
  
 http://wicketstuff.org/confluence/display/STUFFWIKI/Security+Framework+Comparison

  regards
  Michael



  Scott Swank wrote:
  
   What do folk recommend for authentication?
  
   1) In Wicket in Action there is a simple, custom authentication
   implementation.
   2) In Wicket Examples authentication is based on wicket-auth-roles.
   3) Then there's WASP  SWARM
  
   Is there any sort of comparison of wicket-auth-roles with SWARM that I
   haven't yet found?
  
   Thank you,
   Scott
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
  


  -
  Michael Sparer
  http://talk-on-tech.blogspot.com
  --
  View this message in context: 
 http://www.nabble.com/authentication-tp16621153p16626237.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: WebRequest question

2008-04-11 Thread Maurice Marrink
On Fri, Apr 11, 2008 at 9:46 AM, Martijn Lindhout
[EMAIL PROTECTED] wrote:
 Can't we implement 'something' using an interceptor chain? Extensions can
  register themselves in the Application#init() method. There might be a chain
  for the webrequest cycle, for example. Each part in the chain may add some
  behavior to the cycle then.
And how would conflicts be resolved then? for instance 2 extensions
that both require a custom websession?
Even when using proxies this could get tricky if both try to implement
the same method. whichever implementation wins your app will not work
properly.
I am afraid in those kinds of situations you still end up manually
merging the 2 implementations (if possible).

Maurice

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



Re: Problem with page wich shown via pagelink

2008-04-11 Thread Maurice Marrink
You could try a BookmarkablePageLink, but it should work with a
regular pagelink too, can you show us some code?

Maurice

2008/4/11 Иванов Дмитрий [EMAIL PROTECTED]:
 Добрый день.

   I have page with form and feedback on it. Page is mounted under some path.

   When i access this page via mounted path - everything is ok - after
   processing form feedback panel shows error and/or other messages, as
   expected.

   But when i create PageLink to this page on the other page and click
   form submit button - onSubmit method called as usual, but no
   feedback messages shown up.

   I can't get why this behaviour happens. Any ideas?

  --
  Greetz,
   Dmitriy Ivanov



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




Re: how to get html source

2008-04-11 Thread freak182

hello,
Thanks this is what i want...


Mr Mean wrote:
 
 If you are only interested in a few of the tags you could overwrite
 onComponentTag.
 
 But if you want the full page you could render everything to a string
 : see
 http://www.nabble.com/Wicket-as-a-template-generator-tp16609133p16610499.html
 
 - I already similar code but the one that do the trick here is the
 this.render();
 
 Another option, probably more efficient if you are only interested in
 dumping all responses in a database is to put a filter in front of the
 wicket filter and capture all output there.
 
 - i will consider this option if the client change the featuresThanks
 a lot...Cheers.
 
 Maurice
 
 On Fri, Apr 11, 2008 at 2:55 AM, freak182 [EMAIL PROTECTED] wrote:


  What i mean is the html tags and all kind of stuff of the rendered page.
 not
  the .html file...i want to retrieve that and save to DB.




  Mr Mean wrote:
  
   What do you mean get the html source of a page?
   Wicket already fetches the html source for your page if it is located
   in the same package and has the same name as your page. You do not
   need it.
   The constructor is irrelevant for this process.
  
   Maurice
  
   On Thu, Apr 10, 2008 at 10:51 AM, freak182 [EMAIL PROTECTED]
 wrote:
  
Hello,
My problem is how to get the html source of the page with the
   constructor
having a parameter?...i see an example of getting the html source of
 the
page with the constructor having no parameter that i think is easy.
  
Thanks a lot...Cheers!
--
View this message in context:
   http://www.nabble.com/how-to-get-html-source-tp16605236p16605236.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/how-to-get-html-source-tp16605236p16623049.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/how-to-get-html-source-tp16605236p16626781.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: WebRequest question

2008-04-11 Thread Martijn Lindhout
I would let all the parts in a chain implement the same WebRequest interface
for example, and than walk through this chain to let all parts do their
work.
I agree that there may be some combinations that migth break the chain, for
example a security interceptor that will block further handling.

2008/4/11, Maurice Marrink [EMAIL PROTECTED]:

 On Fri, Apr 11, 2008 at 9:46 AM, Martijn Lindhout
 [EMAIL PROTECTED] wrote:
  Can't we implement 'something' using an interceptor chain? Extensions
 can
   register themselves in the Application#init() method. There might be a
 chain
   for the webrequest cycle, for example. Each part in the chain may add
 some
   behavior to the cycle then.

 And how would conflicts be resolved then? for instance 2 extensions
 that both require a custom websession?
 Even when using proxies this could get tricky if both try to implement
 the same method. whichever implementation wins your app will not work
 properly.
 I am afraid in those kinds of situations you still end up manually
 merging the 2 implementations (if possible).


 Maurice


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




-- 
Martijn Lindhout
JointEffort IT Services
http://www.jointeffort.nl
[EMAIL PROTECTED]
+31 (0)6 18 47 25 29


Re[2]: Problem with page wich shown via pagelink

2008-04-11 Thread Иванов Дмитрий
Добрый день.

Friday, April 11, 2008, 2:00:08 PM, вы писали:

--- Code Start 
public class DBFUploadPage extends LightUIPage {
public DBFUploadPage() {
add(new UploadDBFTemplate(upload_dbf_form));
add(new PopupCloseLink(close_window));
}

public class UploadDBFTemplate extends Form {

private Folder uploadFolder;
private FileUploadField fileUploadField;

public UploadDBFTemplate(String id) {
super(id);

uploadFolder = new Folder(System.getProperty(java.io.tmpdir), 
nitro-uploads);
uploadFolder.mkdirs();
setMultiPart(true);

String tplDate = ;
add(new Label(template_date, tplDate));
add(fileUploadField = new FileUploadField(new_dbf_template));
add(new UploadProgressBar(progress, this));

FeedbackPanel feedbackPanel = new FeedbackPanel(feedback_message);
add(feedbackPanel);
}

protected void onSubmit() {
final FileUpload upload = fileUploadField.getFileUpload();
if (upload != null) {
// code skipped for clarity
} else {
error(Template not specified);
}
}
}
}

// Code in another page where i add PageLink to DBFUploadPage

PopupSettings ps = new PopupSettings()
.setHeight(200)
.setWidth(400)
.setTop(50)
.setLeft(200)
.setWindowName(Upload File);

BookmarkablePageLink pl = new BookmarkablePageLink(dbf_tpl_link, 
DBFUploadPage.class);
pl.setPopupSettings(ps); 
frm.add(pl);

--- Code End --

--- Markup Start 
html
head
...
/head
body
wicket:extend
table width=100% margin=5 padding=5
trtd
h3Template renewing/h3
form wicket:id=upload_dbf_form action=
Current template span wicket:id=template_date[template date]/span.
br/New template:br/
input wicket:id=new_dbf_template type=file size=30input 
type=submit value=Refresh /
span wicket:id=progress[[ajax upload progressbar]]/span
span wicket:id=feedback_message[feedback]/span
/form
br/
a wicket:id=close_window href=#Close window/a
/td/tr
/table
/wicket:extend
/body
/html
--- Markup End --


MM You could try a BookmarkablePageLink, but it should work with a
MM regular pagelink too, can you show us some code?

The same behaviour with BPL - it does not show any feedback on
page instances created via BookmarkablePageLink, but just via mounted path.


MM Maurice

MM 2008/4/11 Иванов Дмитрий [EMAIL PROTECTED]:
 Добрый день.

   I have page with form and feedback on it. Page is mounted under some path.

   When i access this page via mounted path - everything is ok - after
   processing form feedback panel shows error and/or other messages, as
   expected.

   But when i create PageLink to this page on the other page and click
   form submit button - onSubmit method called as usual, but no
   feedback messages shown up.

   I can't get why this behaviour happens. Any ideas?

  --
  Greetz,
   Dmitriy Ivanov



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





-- 
Greetz,
 Dmitriy Ivanov



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



Re: Tomcat dying with Wicket 1.3.2 (Windows / JDK 1.5.0_10)

2008-04-11 Thread Johan Compagner
by the way it is all your own fault that you get so many session.
I just searched for your other mails and i did came across: Removing the
jsessionid for SEO

where you where explaining that you remove the jsessionids from the urls..

johan


On Thu, Apr 3, 2008 at 7:23 AM, Jeremy Thomerson [EMAIL PROTECTED]
wrote:

 I upgraded my biggest production app from 1.2.6 to 1.3 last week.  I have
 had several apps running on 1.3 since it was in beta with no problems -
 running for months without restarting.

 This app receives more traffic than any of the rest.  We have a decent
 server, and I had always allowed Tomcat 1.5GB of RAM to operate with.  It
 never had a problem doing so, and I didn't have OutOfMemory errors.  Now,
 after the upgrade to 1.3.2, I am having all sorts of trouble.  It ran for
 several days without a problem, but then started dying a couple times a
 day.  Today it has died four times.  Here are a couple odd things about
 this:

   - On 1.2.6, I never had a problem with stability - the app would run
   weeks between restarts (I restart once per deployment, anywhere from
 once a
   week to at the longest about two months between deploy / restart).
   - Tomcat DIES instead of hanging when there is a problem.  Always
   before, if I had an issue, Tomcat would hang, and there would be OOM in
 the
   logs.  Now, when it crashes, and I sign in to the server, Tomcat is not
   running at all.  There is nothing in the Tomcat logs that says anything,
 or
   in eventvwr.
   - I do not get OutOfMemory error in any logs, whereas I have always
   seen it in the logs before when I had an issue with other apps.  I am
   running Tomcat as a service on Windows, but it writes stdout / stderr to
   logs, and I write my logging out to logs, and none of these logs include
 ANY
   errors - they all just suddenly stop at the time of the crash.

 My money is that it is an OOM error caused by somewhere that I am doing
 something I shouldn't be with Wicket.  There's no logs that even say it is
 an OOM, but the memory continues to increase linearly over time as the app
 runs now (it didn't do that before).  My first guess is my previous
 proliferate use of anonymous inner classes.  I have seen in the email
 threads that this shouldn't be done in 1.3.

 Of course, the real answer is that I'm going to be digging through
 profilers
 and lines of code until I get this fixed.

 My question, though, is from the Wicket devs / experienced users - where
 should I look first?  Is there something that changed between 1.2.6 and
 1.3
 that might have caused me problems where 1.2.6 was more forgiving?

 I'm running the app with JProbe right now so that I can get a snapshot of
 memory when it gets really high.

 Thank you,
 Jeremy Thomerson



Model refreshing and behaviors

2008-04-11 Thread Alexis

Hi list,

here's my little and annoying problem : 
I made a component A that encapsulate a lot of children component (in fact
it's a tree like component).
On that component, i attach an AjaxBehavior of my own that respond to an
ajax callback with :
- traversing A's children
- modifying these component's models (after the complete traversing is done)
- add the component A to the AjaxRequestTarget

When A is re-rendered, all the children components reflects their new model
states, this is good. A's Model has changed to, but A doesn't reflect this
changes.
I've spent some hours on this and this is what i could find : 
- A's model is read before his behavior responds
- A's model is not re-read after the behvior responds (when added to the
target), and contains stale data...

My knowledge on wicket's request-response loop might be too short for this
one, any ideas ?

Thanks


-- 
View this message in context: 
http://www.nabble.com/Model-refreshing-and-behaviors-tp16627278p16627278.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]



DateTimeField and zero padding hours

2008-04-11 Thread Federico Fanton
Hi everyone!
Just a quick question.. If I type inside a DateTimeField a 0 in the hours and 
minutes field, on submit the minutes field is padded to 00, while the 
hours field becomes blank.. Is this an intended behavior? I'm using Wicket 
1.3.3..
Thanks for your time!


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



Re: WebRequest question

2008-04-11 Thread lars vonk

 Even when using proxies this could get tricky if both try to implement
 the same method. whichever implementation wins your app will not work
 properly.


What do you mean by wins? Isn't this the same as how for instance Spring
interception works. There you can add multiple interceptors to one bean. It
is the developers responsibility that there are no conflicts.

Lars


On Fri, Apr 11, 2008 at 9:57 AM, Maurice Marrink [EMAIL PROTECTED] wrote:

 On Fri, Apr 11, 2008 at 9:46 AM, Martijn Lindhout
 [EMAIL PROTECTED] wrote:
  Can't we implement 'something' using an interceptor chain? Extensions
 can
   register themselves in the Application#init() method. There might be a
 chain
   for the webrequest cycle, for example. Each part in the chain may add
 some
   behavior to the cycle then.
 And how would conflicts be resolved then? for instance 2 extensions
 that both require a custom websession?
 Even when using proxies this could get tricky if both try to implement
 the same method. whichever implementation wins your app will not work
 properly.
 I am afraid in those kinds of situations you still end up manually
 merging the 2 implementations (if possible).

 Maurice

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




Re: How to pass an arbitrary javascript variable to onSubmit?

2008-04-11 Thread Vitaly Tsaplin
  I am doing it exactly like this. I am wondering if there is a
formless way to do this? Probably I can mount a page and then just add
some parameters to this URL?

On Fri, Apr 11, 2008 at 9:06 AM, Maurice Marrink [EMAIL PROTECTED] wrote:
 You could add a HiddenField to the Form and then in your markup set it
  to your javascriptvariable.

  Maurice



  On Thu, Apr 10, 2008 at 5:39 PM, Vitaly Tsaplin
  [EMAIL PROTECTED] wrote:
  Hi everyone,
  
  How to pass an arbitrary javascript variable to onSubmit?
  
  Vitaly
  
-
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: Re[2]: Problem with page wich shown via pagelink

2008-04-11 Thread Maurice Marrink
I don't get it. Where in your page constructor do you add a
feedbackmessage? The only place i see is in onsubmit and that is not
called on first page render. So where are the feedbackmessages shown
when you access the page via its mounted path coming from?

Feedbackmessages are cleared after they are rendered, so if somewhere
you add some and then go directly to the mounted path they will show
up on that page. Since you are not adding any feedback in the pagelink
it is perfectly logical that the page will not render feedback when
accessed from the pagelink.

Maurice

On Fri, Apr 11, 2008 at 10:24 AM, Иванов Дмитрий [EMAIL PROTECTED] wrote:
 Добрый день.

  Friday, April 11, 2008, 2:00:08 PM, вы писали:

  --- Code Start 
  public class DBFUploadPage extends LightUIPage {
 public DBFUploadPage() {
 add(new UploadDBFTemplate(upload_dbf_form));
 add(new PopupCloseLink(close_window));
 }

 public class UploadDBFTemplate extends Form {

 private Folder uploadFolder;
 private FileUploadField fileUploadField;

 public UploadDBFTemplate(String id) {
 super(id);

 uploadFolder = new Folder(System.getProperty(java.io.tmpdir), 
 nitro-uploads);
 uploadFolder.mkdirs();
 setMultiPart(true);

 String tplDate = ;
 add(new Label(template_date, tplDate));
 add(fileUploadField = new FileUploadField(new_dbf_template));
 add(new UploadProgressBar(progress, this));

 FeedbackPanel feedbackPanel = new 
 FeedbackPanel(feedback_message);
 add(feedbackPanel);
 }

 protected void onSubmit() {
 final FileUpload upload = fileUploadField.getFileUpload();
 if (upload != null) {
 // code skipped for clarity
 } else {
 error(Template not specified);
 }
 }
 }
  }

  // Code in another page where i add PageLink to DBFUploadPage

 PopupSettings ps = new PopupSettings()
 .setHeight(200)
 .setWidth(400)
 .setTop(50)
 .setLeft(200)
 .setWindowName(Upload File);

 BookmarkablePageLink pl = new BookmarkablePageLink(dbf_tpl_link, 
 DBFUploadPage.class);
 pl.setPopupSettings(ps);
 frm.add(pl);

  --- Code End --

  --- Markup Start 
  html
  head
  ...
  /head
  body
  wicket:extend
  table width=100% margin=5 padding=5
  trtd
  h3Template renewing/h3
  form wicket:id=upload_dbf_form action=
 Current template span wicket:id=template_date[template 
 date]/span.
 br/New template:br/
 input wicket:id=new_dbf_template type=file size=30input 
 type=submit value=Refresh /
 span wicket:id=progress[[ajax upload progressbar]]/span
 span wicket:id=feedback_message[feedback]/span
  /form
  br/
  a wicket:id=close_window href=#Close window/a
  /td/tr
  /table
  /wicket:extend
  /body
  /html
  --- Markup End --


  MM You could try a BookmarkablePageLink, but it should work with a
  MM regular pagelink too, can you show us some code?

  The same behaviour with BPL - it does not show any feedback on
  page instances created via BookmarkablePageLink, but just via mounted path.


  MM Maurice

  MM 2008/4/11 Иванов Дмитрий [EMAIL PROTECTED]:

  Добрый день.
  
 I have page with form and feedback on it. Page is mounted under some 
 path.
  
 When i access this page via mounted path - everything is ok - after
 processing form feedback panel shows error and/or other messages, as
 expected.
  
 But when i create PageLink to this page on the other page and click
 form submit button - onSubmit method called as usual, but no
 feedback messages shown up.
  
 I can't get why this behaviour happens. Any ideas?
  
--
Greetz,
 Dmitriy Ivanov
  
  
  
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
  
  



  --


 Greetz,
   Dmitriy Ivanov



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




Re: WebRequest question

2008-04-11 Thread Maurice Marrink
  It is the developers responsibility that there are no conflicts.
Exactly. But if you want A and B where both A and B override for
instance the same method, then you are screwed. an automated process
would pick just one or simply crash horribly but either way it does
not matter because you need to manually merge it.
So we are back to developers responsibility :)

Maurice

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



wicket.contrib.scriptaculous

2008-04-11 Thread Nino Saturnino Martinez Vazquez Wael

When I try to run mvn jetty:run I get this error:

2008-04-11 12:56:38.642::WARN:  failed wicketstuff-scriptaculous-examples
org.apache.wicket.WicketRuntimeException: Application class 
wicket.contrib.scriptaculous.examples.ScriptaculousExamplesApplication 
must be a subclass of WebApplication
   at 
org.apache.wicket.protocol.http.ContextParamWebApplicationFactory.createApplication(ContextParamWebApplicationFactory.java:76)
   at 
org.apache.wicket.protocol.http.ContextParamWebApplicationFactory.createApplication(ContextParamWebApplicationFactory.java:49)
   at 
org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:496)

   at org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:99)
   at 
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
   at 
org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:589)

   at org.mortbay.jetty.servlet.Context.startContext(Context.java:139)
   at 
org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1218)
   at 
org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:500)
   at 
org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:448)
   at 
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
   at 
org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:147)
   at 
org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:161)
   at 
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
   at 
org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:147)
   at 
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
   at 
org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:117)

   at org.mortbay.jetty.Server.doStart(Server.java:217)

Are it broken intentionally? Or am I just doing something wrong?

--
-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: Model refreshing and behaviors

2008-04-11 Thread lars vonk
Do you replace the model or change the content of the model?

replace model is:

componentA.setModel(new Model(...));

change model:

componentA.setModelObject(...);

I think when you change it it should work...

Another approach might be to replace component A with a fresh instance,
although I can't judge the impact regarding on its child components

So:

ComponentA replacement = new ComponentA(YourNewModel);
componentA.replaceWith(replacement);
target.addComponent(replacement);

Lars

On Fri, Apr 11, 2008 at 11:05 AM, Alexis [EMAIL PROTECTED] wrote:


 Hi list,

 here's my little and annoying problem :
 I made a component A that encapsulate a lot of children component (in fact
 it's a tree like component).
 On that component, i attach an AjaxBehavior of my own that respond to an
 ajax callback with :
 - traversing A's children
 - modifying these component's models (after the complete traversing is
 done)
 - add the component A to the AjaxRequestTarget

 When A is re-rendered, all the children components reflects their new
 model
 states, this is good. A's Model has changed to, but A doesn't reflect this
 changes.
 I've spent some hours on this and this is what i could find :
 - A's model is read before his behavior responds
 - A's model is not re-read after the behvior responds (when added to the
 target), and contains stale data...

 My knowledge on wicket's request-response loop might be too short for this
 one, any ideas ?

 Thanks


 --
 View this message in context:
 http://www.nabble.com/Model-refreshing-and-behaviors-tp16627278p16627278.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]




page reload

2008-04-11 Thread Milan Křápek
Hi,
  probably I need a very simple thing but I cannot find the solution. On my 
page I have table that represents some objects in database. I have there button 
for adding new item to database. This button opens new modal window with form 
for filling thenew object. After I submit this form, new object is created in 
database and modal window is closed. 
  What I need is to reload the page to get new model from database. But I do 
not know how. I suppose that there must be something in onClose() method in 
setWindowClosedCallback. Please how can I reload the page?

Thanks for any advice.

Milan

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



Re: page reload

2008-04-11 Thread Milan Křápek
Thanks for quick response. But I am not sure, that this what I want. I think it 
will need a little bit more description.

As I said I have table where I listed some objects from database. I have there 
link which creates new modal window. But I do not give any model to this modal 
window. In this modal window there is a form which I fill and with the filled 
parameters I create a new object that I store to database. Than I close the 
modal window. 

So in the modal window object I have not any model (ListView or DataTable) that 
can be refreshed. So I need to refresh the whole parent page. 

On wiki I found some example:

modalWindow.setWindowClosedCallback(new WindowClosedCallback(){
private static final long serialVersionUID = 1L;

@Override
public void onClose(AjaxRequestTarget target){
target.addComponent(parentPage);
}
});

But I dont know how to create the parentPage object and what is the type of it. 
I tried to create new page just something like

parentPage = new Mypage(); 

but of course this does not work. Than I try this

target.addComponent(new WebMarkupContainer(myPage, new Model(new MyPage(; 

this does not wokrs too. Please any other idea how to reload the WHOLE page.

Best regards

Milan

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



Re: page reload

2008-04-11 Thread Maurice Marrink
Set a WindowClosedCallback on the modalwindow and use that to add the
table to the ajaxtarget.
Note that most listviews,datatables, etc require that you wrap them in
a WebMarkupContainer or Panel before you can refresh them via ajax.

Of course i assume that the model of the table goes to the database
and not some in memory list.

Maurice

On Fri, Apr 11, 2008 at 12:14 PM, Milan Křápek [EMAIL PROTECTED] wrote:
 Hi,
   probably I need a very simple thing but I cannot find the solution. On my 
 page I have table that represents some objects in database. I have there 
 button for adding new item to database. This button opens new modal window 
 with form for filling thenew object. After I submit this form, new object is 
 created in database and modal window is closed.
   What I need is to reload the page to get new model from database. But I do 
 not know how. I suppose that there must be something in onClose() method in 
 setWindowClosedCallback. Please how can I reload the page?

  Thanks for any advice.

  Milan

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




Re: page reload

2008-04-11 Thread Martijn Dashorst
setResponsePage(getPage()) or setResponsePage(getPage())


On 4/11/08, Martijn Dashorst [EMAIL PROTECTED] wrote:
 setResponsePage(this)

  will send a redirect to the current page

  Martijn


  On 4/11/08, Milan Křápek [EMAIL PROTECTED] wrote:
   Thanks for quick response. But I am not sure, that this what I want. I 
 think it will need a little bit more description.
  
As I said I have table where I listed some objects from database. I have 
 there link which creates new modal window. But I do not give any model to 
 this modal window. In this modal window there is a form which I fill and with 
 the filled parameters I create a new object that I store to database. Than I 
 close the modal window.
  
So in the modal window object I have not any model (ListView or 
 DataTable) that can be refreshed. So I need to refresh the whole parent page.
  
On wiki I found some example:
  
modalWindow.setWindowClosedCallback(new WindowClosedCallback(){
   private static final long serialVersionUID = 1L;
  
   @Override
   public void onClose(AjaxRequestTarget target){
   target.addComponent(parentPage);
   }
});
  
But I dont know how to create the parentPage object and what is the type 
 of it. I tried to create new page just something like
  
parentPage = new Mypage();
  
but of course this does not work. Than I try this
  
target.addComponent(new WebMarkupContainer(myPage, new Model(new 
 MyPage(;
  
this does not wokrs too. Please any other idea how to reload the WHOLE 
 page.
  
Best regards
  
  
Milan
  
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
  
  



 --
  Buy Wicket in Action: http://manning.com/dashorst
  Apache Wicket 1.3.2 is released
  Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.2



-- 
Buy Wicket in Action: http://manning.com/dashorst
Apache Wicket 1.3.2 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.2


Re: page reload

2008-04-11 Thread Martijn Dashorst
setResponsePage(this)

will send a redirect to the current page

Martijn

On 4/11/08, Milan Křápek [EMAIL PROTECTED] wrote:
 Thanks for quick response. But I am not sure, that this what I want. I think 
 it will need a little bit more description.

  As I said I have table where I listed some objects from database. I have 
 there link which creates new modal window. But I do not give any model to 
 this modal window. In this modal window there is a form which I fill and with 
 the filled parameters I create a new object that I store to database. Than I 
 close the modal window.

  So in the modal window object I have not any model (ListView or DataTable) 
 that can be refreshed. So I need to refresh the whole parent page.

  On wiki I found some example:

  modalWindow.setWindowClosedCallback(new WindowClosedCallback(){
 private static final long serialVersionUID = 1L;

 @Override
 public void onClose(AjaxRequestTarget target){
 target.addComponent(parentPage);
 }
  });

  But I dont know how to create the parentPage object and what is the type of 
 it. I tried to create new page just something like

  parentPage = new Mypage();

  but of course this does not work. Than I try this

  target.addComponent(new WebMarkupContainer(myPage, new Model(new 
 MyPage(;

  this does not wokrs too. Please any other idea how to reload the WHOLE page.

  Best regards


  Milan

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




-- 
Buy Wicket in Action: http://manning.com/dashorst
Apache Wicket 1.3.2 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.2


Re: How to pass an arbitrary javascript variable to onSubmit?

2008-04-11 Thread Jeremy Levy
Check out IAjaxCallDecorator getAjaxCallDecorator().

Jeremy

On Fri, Apr 11, 2008 at 4:42 AM, Vitaly Tsaplin [EMAIL PROTECTED]
wrote:

  I am doing it exactly like this. I am wondering if there is a
 formless way to do this? Probably I can mount a page and then just add
 some parameters to this URL?

 On Fri, Apr 11, 2008 at 9:06 AM, Maurice Marrink [EMAIL PROTECTED]
 wrote:
  You could add a HiddenField to the Form and then in your markup set it
   to your javascriptvariable.
 
   Maurice
 
 
 
   On Thu, Apr 10, 2008 at 5:39 PM, Vitaly Tsaplin
   [EMAIL PROTECTED] wrote:
   Hi everyone,
   
   How to pass an arbitrary javascript variable to onSubmit?
   
   Vitaly
   
   
  -
 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: wicket.contrib.scriptaculous

2008-04-11 Thread Ryan Sonnek
hmmmthey worked the last time I checked.

I'll try to take a look, but if you see anything that's obviously
incorrect, let me know.

On Fri, Apr 11, 2008 at 5:58 AM, Nino Saturnino Martinez Vazquez Wael
[EMAIL PROTECTED] wrote:
 When I try to run mvn jetty:run I get this error:

  2008-04-11 12:56:38.642::WARN:  failed wicketstuff-scriptaculous-examples
  org.apache.wicket.WicketRuntimeException: Application class
 wicket.contrib.scriptaculous.examples.ScriptaculousExamplesApplication must
 be a subclass of WebApplication
at
 org.apache.wicket.protocol.http.ContextParamWebApplicationFactory.createApplication(ContextParamWebApplicationFactory.java:76)
at
 org.apache.wicket.protocol.http.ContextParamWebApplicationFactory.createApplication(ContextParamWebApplicationFactory.java:49)
at
 org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:496)
at org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:99)
at
 org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
at
 org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:589)
at org.mortbay.jetty.servlet.Context.startContext(Context.java:139)
at
 org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1218)
at
 org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:500)
at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:448)
at
 org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
at
 org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:147)
at
 org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:161)
at
 org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
at
 org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:147)
at
 org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
at
 org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:117)
at org.mortbay.jetty.Server.doStart(Server.java:217)

  Are it broken intentionally? Or am I just doing something wrong?

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



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



Re: wicket.contrib.scriptaculous

2008-04-11 Thread Charlie Dobbie
Might want to double-check you've not got conflicting Wicket jars on your
classpath.

Charlie.



On Fri, Apr 11, 2008 at 2:40 PM, Ryan Sonnek [EMAIL PROTECTED] wrote:

 hmmmthey worked the last time I checked.

 I'll try to take a look, but if you see anything that's obviously
 incorrect, let me know.

 On Fri, Apr 11, 2008 at 5:58 AM, Nino Saturnino Martinez Vazquez Wael
 [EMAIL PROTECTED] wrote:
  When I try to run mvn jetty:run I get this error:
 
   2008-04-11 12:56:38.642::WARN:  failed
 wicketstuff-scriptaculous-examples
   org.apache.wicket.WicketRuntimeException: Application class
  wicket.contrib.scriptaculous.examples.ScriptaculousExamplesApplication
 must
  be a subclass of WebApplication
 at
 
 org.apache.wicket.protocol.http.ContextParamWebApplicationFactory.createApplication(ContextParamWebApplicationFactory.java:76)
 at
 
 org.apache.wicket.protocol.http.ContextParamWebApplicationFactory.createApplication(ContextParamWebApplicationFactory.java:49)
 at
  org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:496)
 at
 org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:99)
 at
  org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
 at
 
 org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:589)
 at org.mortbay.jetty.servlet.Context.startContext(Context.java:139)
 at
 
 org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1218)
 at
 
 org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:500)
 at
 org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:448)
 at
  org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
 at
 
 org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:147)
 at
 
 org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:161)
 at
  org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
 at
 
 org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:147)
 at
  org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
 at
 
 org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:117)
 at org.mortbay.jetty.Server.doStart(Server.java:217)
 
   Are it broken intentionally? Or am I just doing something wrong?
 
   --
   -Wicket for love
 
   Nino Martinez Wael
   Java Specialist @ Jayway DK
   http://www.jayway.dk
   +45 2936 7684



Re: Model refreshing and behaviors

2008-04-11 Thread Alexis

Okay, i've managed to get it working with removing and adding the component
to its parent, here's a snippet :

final ChaptersTreeView treeView = new
ChaptersTreeView(activities_tree, loadModel);
treeView.add(new SortableTreeAjaxBehavior() {
@Override
protected void treeModelHasBeenReconstructed(AjaxRequestTarget
target) {
   
cdtServiceCenter().bookService().dataContext().commitChanges();
treeContainer.remove(treeView); // here's the thing
treeContainer.add(treeView);  // 
target.addComponent(treeContainer);
}
});

I don't know why but removing and adding the component wakes his model up.
Before that i tried to modelChanged(); and all kind of Dr House voodoo... 
I guess i might have miss something but i'll live with it :)


Alexis wrote:
 
 Hi list,
 
 here's my little and annoying problem : 
 I made a component A that encapsulate a lot of children component (in fact
 it's a tree like component).
 On that component, i attach an AjaxBehavior of my own that respond to an
 ajax callback with :
 - traversing A's children
 - modifying these component's models (after the complete traversing is
 done)
 - add the component A to the AjaxRequestTarget
 
 When A is re-rendered, all the children components reflects their new
 model states, this is good. A's Model has changed to, but A doesn't
 reflect this changes.
 I've spent some hours on this and this is what i could find : 
 - A's model is read before his behavior responds
 - A's model is not re-read after the behvior responds (when added to the
 target), and contains stale data...
 
 My knowledge on wicket's request-response loop might be too short for this
 one, any ideas ?
 
 Thanks
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Model-refreshing-and-behaviors-tp16627278p16627849.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]



WebMarkupContainer - images cannot be found after move to 1.3?

2008-04-11 Thread V. Jenks

Hi all,

I built our storefront almost two years ago now, in Wicket 1.2.x.  I'm now
upgrading from 1.2.4 to 1.3 and am just about finished but I'm stuck on one
seemingly simple thing.

My init() looks like this:

  public void init()
  {
//create external images resource
getSharedResources().add(imageResource, new ImageResource());
  }

I've had this method in my own hepler class since this project started:

public static WebMarkupContainer getImageContainer(String name, String
image)
{
//get reference to Application's ResourceReference
ResourceReference imageResource = new 
ResourceReference(imageResource);

//build URL of image from file
String imgUrl = RequestCycle.get().urlFor(imageResource) + 
?file= +
image;

return getContainer(name, src, imgUrl);
}

It just encapsulates my ability to use external images in my app (outside of
the deployed .ear).

I would use it like so, in a Wicket page:

String thumb = 
C:\\MYApp\\assets\\images\\category\\Bundles.jpg;
add(WicketHelper.getImageContainer(bundleThumbImg, thumb));

This always worked fine until the upgrade to 1.3 and change the filter in
web.xml to look at /* instead of home/* - which I'm guessing had
something to do with it?

Anyhow, the images are all broken even though my path on disk is correct. 
Am I missing something obvious?

Thanks!

-- 
View this message in context: 
http://www.nabble.com/WebMarkupContainer---images-cannot-be-found-after-move-to-1.3--tp16627879p16627879.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: WebMarkupContainer - images cannot be found after move to 1.3?

2008-04-11 Thread V. Jenks

Sorry, I forgot to include this class, which someone here on the mailing list
gave to me way back in '06 when I first built this app.  It's been so long
since I had to look at this I forgot it was a custom class:

public class ImageResource extends DynamicWebResource
{
private ImageService imgSrv;

public ImageResource()
{
super();
imgSrv = new ImageServiceEngine();
}

public String getImage(String image)
{
String retImg = null;

try
{
retImg = imgSrv.getImage(image).toString();
}
catch (IOException exp)
{
LogProxy.saveEntry(exp);
}

return retImg;
}

protected ResourceState getResourceState()
{
ImageResourceState state = null;

try
{
ValueMap params = getParameters();

byte[] data = null;
String imageId = params.get(file).toString();
//Date lastModified = getImageLastMod(imageId); 
state = new ImageResourceState(Time.valueOf(new 
Date()));
state.setContentType(image/gif);

//SECURITY PRECAUTION - DO NOT ALLOW ANYTHING BUT 
IMAGES!
if 
(imageId.contains(PropertyProxy.getExternalImagesRoot()) || 

imageId.contains(PropertyProxy.getExternalImagesAltRoot()))
{
data = imgSrv.getImage(imageId);
}
else
{
//change image to not found warning image
data = 
imgSrv.getImage(PropertyProxy.getImageNotFound());

//TODO: send email to notify of inappropriate 
access
}

state.setData(data);
}
catch (FileNotFoundException exp)
{
LogProxy.saveEntry(exp);
}
catch (IOException exp)
{
LogProxy.saveEntry(exp);
}
catch (NullPointerException exp)
{
LogProxy.saveEntry(exp);
}

return state;
}

/**
 * 
 * @author vjenks
 * 
 */
protected class ImageResourceState extends ResourceState
{
private String contentType;
private byte[] data;
private Time lastModified;

ImageResourceState(Time lastModified)
{
super();
this.lastModified = lastModified;
}

public String getContentType()
{
return contentType;
}

void setContentType(String contentType)
{
this.contentType = contentType;
}

public byte[] getData()
{
return data;
}

void setData(byte[] data)
{
this.data = data;
}

public int getLength()
{
if (data != null)
return data.length;
else
return 0;
}

public Time lastModifiedTime()
{
return lastModified;
}
}
}



V. Jenks wrote:
 
 Hi all,
 
 I built our storefront almost two years ago now, in Wicket 1.2.x.  I'm now
 upgrading from 1.2.4 to 1.3 and am just about finished but I'm stuck on
 one seemingly simple thing.
 
 My init() looks like this:
 
   public void init()
   {
 //create external images resource
 getSharedResources().add(imageResource, new ImageResource());
   }
 
 I've had this method in my own hepler class since this project started:
 
   public static WebMarkupContainer getImageContainer(String name, String
 image)
   {
   //get reference to Application's ResourceReference
   ResourceReference imageResource = new
 ResourceReference(imageResource);
   
   //build URL of image from file
   String imgUrl = RequestCycle.get().urlFor(imageResource) + 
 ?file= +
 image;
   
   return getContainer(name, src, imgUrl);
   }
 
 It just 

Re: Weird Ajax non-English characters encoding problem.

2008-04-11 Thread Nils Tesdal
Hi,

This thread is a few months old now but I have the same problem now... 
Scandinavian characters aren't encoded and decoded in the same way when using 
ajax POST requests and tomcat.

To me the problem seems to be that wicket does not specify the encoding in the 
ajax request. When tomcat receives the request and doesn't find an attached 
encoding, it defaults to ISO-8859-1 (in my case anyway).

If I change the Content-Type header from application/x-www-form-urlencoded 
to application/x-www-form-urlencoded; charset=UTF-8 by patching the 
wicket-ajax.js file, it works for me!

Did anyone find another solution to this?

Nils

-Opprinnelig melding-
Fra: Johan Compagner [mailto:[EMAIL PROTECTED] 
Sendt: 22. oktober 2007 23:00
Til: users@wicket.apache.org
Emne: Re: Weird Ajax non-English characters encoding problem.

is this reproduceable in a simple testcase? (junit)

johan



On 10/22/07, Paolo Di Tommaso [EMAIL PROTECTED] wrote:

 I'm experiencing a similar problem i.e.  I'm able to submit any Latin
 encoded characters but when I'm using an AjaxSubmitButton some characters
 are not encoded properly. This happens also specifying the right encoding
 with:

 getRequestCycleSettings().setResponseRequestEncoding(ISO-8859-1);


 So it appears to be clear that is an ajax encoding problem with wicket.


 Looking at the Wicket ajax code I found the following fragment:

if (t != null) {
t.open(POST, url, this.async);
t.onreadystatechange = this.stateChangeCallback.bind(this);
t.setRequestHeader(Content-Type,
 application/x-www-form-urlencoded);
t.setRequestHeader(Wicket-Ajax, true);
t.send(body);
return true;
} else {
   this.failure();
   return false;
}


 Now, how is defined the content encoding of an ajax request? I was
 expecting
 something like charset=defined encoding in the ajax request request
 header.

 Otherwise how the IRequestCycleSettings#setResponseRequestEncoding() will
 affect the charset definition in the ajax call?

 Thanks,

 Paolo


 On 10/22/07, Fabio Fioretti [EMAIL PROTECTED] wrote:
 
  Hi Matej and Johan,
 
  thanks for your replies.
 
  I'm using Latin1 because the page I'm talking about is part of a
  legacy web application fully encoded in ISO-8859-1. The application
  server it runs on is Tomcat 5.5, which defaults to Latin1, so it
  shouldn't be a problem.
 
  I tried to set the request/response encoding in the application main
  class using:
 
  getRequestCycleSettings().setResponseRequestEncoding(ISO-8859-1);
 
  but nothing changed, except that Wicket Ajax Debug now prints:
 
  INFO:
  ?xml version=1.0
 encoding=ISO-8859-1?ajax-response/ajax-response
 
  The problem I'm facing seems the same Stefan Lindner faced last year,
  whithout apparently finding a solution. I tried everything he tried.
  See link:
 
 
 http://www.nabble.com/AjaxSubmitButton-and-Umlauts-with-ISO-8859-1-%28Wicket-2%29-tf2622064.html
 
 
  I could migrate the whole application to UTF-8, but I would't do that
  for a single textarea in a single page... :-) It's the only page that
  needs non-English input.
 
 
  Any suggestion?
 
 
  Thanks a lot,
 
  Fabio Fioretti - WindoM
 
 
  On 10/21/07, Matej Knopp [EMAIL PROTECTED] wrote:
   I don't know tbh. I believe the request body is encoded in UTF-8.
   People usually use UTF-8, so no-one was complaining before. Can't you
   just use UTF-8? It's much safer than latin1.
  
   -Matej
  
   On 10/20/07, Johan Compagner  [EMAIL PROTECTED] wrote:
are you configuring wicket and you appserver correctly?
in wicket you have to set the encoding you want to use
why not just use utf8?
else matej?
How does the ajax submit work with encoding?
It is still a normal post and how do we interpret it?
   
   
On 10/19/07, Fabio Fioretti  [EMAIL PROTECTED] wrote:
 Hi all,

 thanks in advance for your time and suggestions.

 I'm building a really simple page made up of a form with a text
 area
 
 and a submit button (instance of Button). An
 AjaxFormSubmitBehavior
 that performs the save operation is added to the button. The
 page
  is
 encoded as follows:

 meta http-equiv=Content-Type content=text/html;
  charset=ISO-8859-1

 Everything works fine until a user submits a non-English text
  (French
 or Spanish, with characters like íéñ, still supported by the
 ISO-8859-1 encoding): all non-English characters are scrambled.

 What appears weird to me is that the problem doesn't happen if I
  use,
 for example, a SubmitLink instead of an Ajax-enabled Button.

 This makes me point to Ajax as the responsible, and to the fact
 that
 Wicket uses UTF-8 for requests... but I really have no clue about
  how
 to fix it.

 Any idea?


 Thank you very much and have a nice week-end.

 Fabio Fioretti - WindoM
 
  

Re: Model refreshing and behaviors

2008-04-11 Thread Igor Vaynberg
you can just call A.getmodel().detach() to uncache the model

-igor


On Fri, Apr 11, 2008 at 7:52 AM, Alexis [EMAIL PROTECTED] wrote:

  Okay, i've managed to get it working with removing and adding the component
  to its parent, here's a snippet :

 final ChaptersTreeView treeView = new
  ChaptersTreeView(activities_tree, loadModel);
 treeView.add(new SortableTreeAjaxBehavior() {
 @Override
 protected void treeModelHasBeenReconstructed(AjaxRequestTarget
  target) {

  cdtServiceCenter().bookService().dataContext().commitChanges();
 treeContainer.remove(treeView); // here's the thing
 treeContainer.add(treeView);  //
 target.addComponent(treeContainer);
 }
 });

  I don't know why but removing and adding the component wakes his model up.
  Before that i tried to modelChanged(); and all kind of Dr House voodoo...
  I guess i might have miss something but i'll live with it :)



  Alexis wrote:
  
   Hi list,
  
   here's my little and annoying problem :
   I made a component A that encapsulate a lot of children component (in fact
   it's a tree like component).
   On that component, i attach an AjaxBehavior of my own that respond to an
   ajax callback with :
   - traversing A's children
   - modifying these component's models (after the complete traversing is
   done)
   - add the component A to the AjaxRequestTarget
  
   When A is re-rendered, all the children components reflects their new
   model states, this is good. A's Model has changed to, but A doesn't
   reflect this changes.
   I've spent some hours on this and this is what i could find :
   - A's model is read before his behavior responds
   - A's model is not re-read after the behvior responds (when added to the
   target), and contains stale data...
  
   My knowledge on wicket's request-response loop might be too short for this
   one, any ideas ?
  
   Thanks
  
  
  

  --
  View this message in context: 
 http://www.nabble.com/Model-refreshing-and-behaviors-tp16627278p16627849.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: WebMarkupContainer - images cannot be found after move to 1.3?

2008-04-11 Thread Igor Vaynberg
what url gets constructed? is the imageresource ever hit?

-igor

On Fri, Apr 11, 2008 at 8:34 AM, V. Jenks [EMAIL PROTECTED] wrote:

  Sorry, I forgot to include this class, which someone here on the mailing list
  gave to me way back in '06 when I first built this app.  It's been so long
  since I had to look at this I forgot it was a custom class:

  public class ImageResource extends DynamicWebResource
  {
 private ImageService imgSrv;

 public ImageResource()
 {
 super();
 imgSrv = new ImageServiceEngine();
 }

 public String getImage(String image)
 {
 String retImg = null;

 try
 {
 retImg = imgSrv.getImage(image).toString();
 }
 catch (IOException exp)
 {
 LogProxy.saveEntry(exp);
 }

 return retImg;
 }

 protected ResourceState getResourceState()
 {
 ImageResourceState state = null;

 try
 {
 ValueMap params = getParameters();

 byte[] data = null;
 String imageId = params.get(file).toString();
 //Date lastModified = getImageLastMod(imageId);
 state = new ImageResourceState(Time.valueOf(new 
 Date()));
 state.setContentType(image/gif);

 //SECURITY PRECAUTION - DO NOT ALLOW ANYTHING BUT 
 IMAGES!
 if 
 (imageId.contains(PropertyProxy.getExternalImagesRoot()) ||
 
 imageId.contains(PropertyProxy.getExternalImagesAltRoot()))
 {
 data = imgSrv.getImage(imageId);
 }
 else
 {
 //change image to not found warning image
 data = 
 imgSrv.getImage(PropertyProxy.getImageNotFound());

 //TODO: send email to notify of inappropriate 
 access
 }

 state.setData(data);
 }
 catch (FileNotFoundException exp)
 {
 LogProxy.saveEntry(exp);
 }
 catch (IOException exp)
 {
 LogProxy.saveEntry(exp);
 }
 catch (NullPointerException exp)
 {
 LogProxy.saveEntry(exp);
 }

 return state;
 }

 /**
  *
  * @author vjenks
  *
  */
 protected class ImageResourceState extends ResourceState
 {
 private String contentType;
 private byte[] data;
 private Time lastModified;

 ImageResourceState(Time lastModified)
 {
 super();
 this.lastModified = lastModified;
 }

 public String getContentType()
 {
 return contentType;
 }

 void setContentType(String contentType)
 {
 this.contentType = contentType;
 }

 public byte[] getData()
 {
 return data;
 }

 void setData(byte[] data)
 {
 this.data = data;
 }

 public int getLength()
 {
 if (data != null)
 return data.length;
 else
 return 0;
 }

 public Time lastModifiedTime()
 {
 return lastModified;


 }
 }
  }



  V. Jenks wrote:
  
   Hi all,
  
   I built our storefront almost two years ago now, in Wicket 1.2.x.  I'm now
   upgrading from 1.2.4 to 1.3 and am just about finished but I'm stuck on
   one seemingly simple thing.
  
   My init() looks like this:
  
 public void init()
 {
   //create external images resource
   getSharedResources().add(imageResource, new ImageResource());
 }
  
   I've had this method in my own hepler class since this project started:
  
 public static WebMarkupContainer getImageContainer(String name, 
 String
   image)
 {
 //get reference to Application's ResourceReference
 ResourceReference imageResource = new
   ResourceReference(imageResource);
  
 //build URL of image from file

Re: Weird Ajax non-English characters encoding problem.

2008-04-11 Thread Roman Zechner

Hi Nils,

in order for AJAX to work properly configure your Tomcat connector with 
URIEncoding=UTF-8 as shown here:

http://cwiki.apache.org/WW/how-to-support-utf-8-uriencoding-with-tomcat.html

Roman

Nils Tesdal schrieb:

Hi,

This thread is a few months old now but I have the same problem now... 
Scandinavian characters aren't encoded and decoded in the same way when using 
ajax POST requests and tomcat.

To me the problem seems to be that wicket does not specify the encoding in the 
ajax request. When tomcat receives the request and doesn't find an attached 
encoding, it defaults to ISO-8859-1 (in my case anyway).

If I change the Content-Type header from application/x-www-form-urlencoded to 
application/x-www-form-urlencoded; charset=UTF-8 by patching the wicket-ajax.js file, it works 
for me!

Did anyone find another solution to this?

Nils

-Opprinnelig melding-
Fra: Johan Compagner [mailto:[EMAIL PROTECTED] 
Sendt: 22. oktober 2007 23:00

Til: users@wicket.apache.org
Emne: Re: Weird Ajax non-English characters encoding problem.

is this reproduceable in a simple testcase? (junit)

johan



On 10/22/07, Paolo Di Tommaso [EMAIL PROTECTED] wrote:
  

I'm experiencing a similar problem i.e.  I'm able to submit any Latin
encoded characters but when I'm using an AjaxSubmitButton some characters
are not encoded properly. This happens also specifying the right encoding
with:

getRequestCycleSettings().setResponseRequestEncoding(ISO-8859-1);


So it appears to be clear that is an ajax encoding problem with wicket.


Looking at the Wicket ajax code I found the following fragment:

   if (t != null) {
   t.open(POST, url, this.async);
   t.onreadystatechange = this.stateChangeCallback.bind(this);
   t.setRequestHeader(Content-Type,
application/x-www-form-urlencoded);
   t.setRequestHeader(Wicket-Ajax, true);
   t.send(body);
   return true;
   } else {
  this.failure();
  return false;
   }


Now, how is defined the content encoding of an ajax request? I was
expecting
something like charset=defined encoding in the ajax request request
header.

Otherwise how the IRequestCycleSettings#setResponseRequestEncoding() will
affect the charset definition in the ajax call?

Thanks,

Paolo


On 10/22/07, Fabio Fioretti [EMAIL PROTECTED] wrote:


Hi Matej and Johan,

thanks for your replies.

I'm using Latin1 because the page I'm talking about is part of a
legacy web application fully encoded in ISO-8859-1. The application
server it runs on is Tomcat 5.5, which defaults to Latin1, so it
shouldn't be a problem.

I tried to set the request/response encoding in the application main
class using:

getRequestCycleSettings().setResponseRequestEncoding(ISO-8859-1);

but nothing changed, except that Wicket Ajax Debug now prints:

INFO:
?xml version=1.0
  

encoding=ISO-8859-1?ajax-response/ajax-response


The problem I'm facing seems the same Stefan Lindner faced last year,
whithout apparently finding a solution. I tried everything he tried.
See link:


  

http://www.nabble.com/AjaxSubmitButton-and-Umlauts-with-ISO-8859-1-%28Wicket-2%29-tf2622064.html


I could migrate the whole application to UTF-8, but I would't do that
for a single textarea in a single page... :-) It's the only page that
needs non-English input.


Any suggestion?


Thanks a lot,

Fabio Fioretti - WindoM


On 10/21/07, Matej Knopp [EMAIL PROTECTED] wrote:
  

I don't know tbh. I believe the request body is encoded in UTF-8.
People usually use UTF-8, so no-one was complaining before. Can't you
just use UTF-8? It's much safer than latin1.

-Matej

On 10/20/07, Johan Compagner  [EMAIL PROTECTED] wrote:


are you configuring wicket and you appserver correctly?
in wicket you have to set the encoding you want to use
why not just use utf8?
else matej?
How does the ajax submit work with encoding?
It is still a normal post and how do we interpret it?


On 10/19/07, Fabio Fioretti  [EMAIL PROTECTED] wrote:
  

Hi all,

thanks in advance for your time and suggestions.

I'm building a really simple page made up of a form with a text


area


and a submit button (instance of Button). An


AjaxFormSubmitBehavior


that performs the save operation is added to the button. The


page


is
  

encoded as follows:

meta http-equiv=Content-Type content=text/html;


charset=ISO-8859-1
  

Everything works fine until a user submits a non-English text


(French
  

or Spanish, with characters like íéñ, still supported by the
ISO-8859-1 encoding): all non-English characters are scrambled.

What appears weird to me is that the problem doesn't happen if I


use,
  

for example, a SubmitLink instead of an Ajax-enabled Button.

This makes me point to Ajax as the responsible, and to the fact


that


Wicket uses UTF-8 for requests... but I 

infront of modalwindow

2008-04-11 Thread Nino Saturnino Martinez Vazquez Wael

Hi

Showing a prototip should be a matter of setting z-index right? Im 
having a little trouble doing just that... Even though i've set z-index 
to 3...


--
-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: Fragment question

2008-04-11 Thread Ritz123

Didnt hear anything back on the post, any fragment gurus?



Ritz123 wrote:
 
 Hi,
 
 This may be actually a stupid question - am little confused about
 Fragments use.
 
 Lets say I was extending existing component e.g. DataTable and did not
 have markup file of my derived component, (I think) in such a case, base
 class markup file will be used. Assuming that is the case if I wanted to
 add a fragment (since I would like to lets say add more than just 1 label)
 which will be a good place to put the fragment? The reason why I use
 Fragment instead of Panel is because for very small change, having a panel
 and a separate markup would be a headache and I will have multiple such
 changes.
 
 I dont quiet understand the use of markupProvider being the container
 instance in Fragment constructor - why could it just have been the class
 name? It would have been just easy to look up corresponding markup file
 even if it was a class name. I am assuimg Fragments can reside in any
 markup file.
 

-- 
View this message in context: 
http://www.nabble.com/Fragment-question-tp16623671p16628141.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: Migrating to 1.4-SNAPSHOT: how to rid of generic warnings?

2008-04-11 Thread Matej Knopp
That's only question of time, Johan hasn't yet had time to generify pages.

-Matej

On Fri, Apr 11, 2008 at 3:10 AM, Jonathan Locke
[EMAIL PROTECTED] wrote:


  uh, i meant WebPage obviously




  Jonathan Locke wrote:
  
  
   i didn't say it shouldn't be.  i was just saying /if it was not going to
   be/ (i'm not working on 1.4 yet, so i don't know why it's not generic
   already) it shouldn't create generics warnings.  in fact, i agree with you
   and people should ideally just say MyPage extends WebPage? if their page
   has no model.
  
  
   igor.vaynberg wrote:
  
   why wouldnt page be generic?
  
   class edituserpage extends webpageuser {
 public edituserpage(imodeluser user) {...}}
  
   -igor
  
  
   On Thu, Apr 10, 2008 at 5:22 PM, Jonathan Locke
   [EMAIL PROTECTED] wrote:
  
  
yeah.  if Page/WebPage are not going to be generic, maybe they should
   extend
(Web)MarkupContainer? or something?
  
  
MYoung wrote:

 public class HomePage extends WebPage {
  
   
 ERROR: The type WebPage is not generic; it cannot be parameterized
   with
 arguments



  
   you COULD use the @SuppressWarnings({unchecked})

 I would rather not use @SupressWarnings if I can do the right thing.

 On Thu, Apr 10, 2008 at 4:49 PM, Matej Knopp [EMAIL PROTECTED]
 wrote:

 Problem is that WebPage is generic class but your instance doesn't
 have the type specified. Since you page doesn't have a model object
 the type is not really necessary, but the compiler doesn't know
   that.

 You can try this:


 public class HomePage extends WebPage {
  
  
   
 This should get rid of the wanings when adding components.

 -Matej

 On Fri, Apr 11, 2008 at 1:19 AM, Matthew Young [EMAIL PROTECTED]
   wrote:
  Oh mine, some many generic warnings after moving to 1.4.  I got
   rid of
 them
   by putting in type parameters but I'm not sure if I'm doing the
   right
 thing.
   There is one warning I don't know how to fix:
 
   WARNING: Type safety: the method add(Component) belongs to the
   raw
 type
   MarkupContainer. Reference to generic type MarkupContainerT
   should
 be
   parameterized.
 
 
   What are the benefits of generifying Wicket? I only know one is
   type
 safe
   model.  What else?
 
 
 
   Here is a little test page, please take a look and see if I'm
   doing
 thing
   correctly?
 
   public class HomePage extends WebPage {
 
  private static final long serialVersionUID = 1L;
 
  private String hi =;
  private int count;
 
  public HomePage(final PageParameters parameters) {
 
  // WARNING HERE and next line
  add(new LabelHomePage(message, If you see this
   message
 wicket
   is properly configured and running));
  add(new FeedbackPanel(feedback));
  FormHomePage form = new FormHomePage(form, new
   CompoundPropertyModelHomePage(this)) {
  private static final long serialVersionUID = 1L;
  @Override public void onSubmit() {
  ++count;
  }
  };
  add(form);// WARNING HERE
  form.add(new TextFieldHomePage(hi).setRequired(true));
  // WARNING HERE
  add(new LabelHomePage(hihi, new
 PropertyModelHomePage(this,
   hello)));
  }
 
  public String getHello() {
  return hi + : you say hello  + count +  times.;
  }
   }
 



 --
 Resizable and reorderable grid components.
 http://www.inmethod.com


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




  
--
View this message in context:
   
 http://www.nabble.com/Migrating-to-1.4-SNAPSHOT%3A-how-to-rid-of-generic-warnings--tp16622159p16622850.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/Migrating-to-1.4-SNAPSHOT%3A-how-to-rid-of-generic-warnings--tp16622159p16623297.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]





-- 
Resizable and 

Change css style of AjaxButton

2008-04-11 Thread Karen Schaper
Hi,

I'd like to change the color of a button after clicking it.  The button was
added to the page using AjaxButton.

Is there a way to change the style of a button?  I've change the css style
when using PropertyColumns but I don't see anything for changing the style
of a button.

I could make 2 different buttons and make only one visible at a time but I
don't really want to do this.

Am I missing something?

Thanks

Karen



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



Ajax and isTransparentResolver

2008-04-11 Thread Meetesh Karia

Hi all,

We're seeing an issue with ajax and isTransparentResolver set to return 
true and I'm wondering if this is something we're doing wrong or if it's 
an oversight.  Here's an example:


add(new WebMarkupContainer(toUpdate) {
   @Override
   public boolean isTransparentResolver() {
   return true;
   }
});

add(new WebMarkupContainer(myChild));

with html like this:

div wicket:id=toUpdate
   div wicket:id=myChild
   ...
   /div
/div

When a user clicks on an ajax link (which is a child of toUpdate and 
added in the same manner as myChild), toUpdate is added to the target to 
be rendered.


Now, because toUpdate doesn't have any real children, it doesn't mark 
any of them as rendering in MarkupContainer.internalMarkRendering().  
However, Component.render(MarkupStream) does mark all of the children as 
rendering because it calls markRendering() itself.  When the rendering 
is finished, MarkupContainer.onAfterRenderChildren() is called but only 
the toUpdate container has it's rendering flag set to false and the 
child rendering flags remain set to true.  If there's now another ajax 
click within that same container which modifies the visibility of a 
component, an exception will be thrown indicating that a hierarchy 
change can't occur while rendering.


Are we using isTransparentResolver() incorrectly?

Thanks,
Meetesh


Re: Change css style of AjaxButton

2008-04-11 Thread Igor Vaynberg
you can add an attributemodifier to the button that alters the style attribute

-igor


On Fri, Apr 11, 2008 at 10:01 AM, Karen Schaper
[EMAIL PROTECTED] wrote:
 Hi,

  I'd like to change the color of a button after clicking it.  The button was
  added to the page using AjaxButton.

  Is there a way to change the style of a button?  I've change the css style
  when using PropertyColumns but I don't see anything for changing the style
  of a button.

  I could make 2 different buttons and make only one visible at a time but I
  don't really want to do this.

  Am I missing something?

  Thanks

  Karen



  -
  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: Ajax and isTransparentResolver

2008-04-11 Thread Igor Vaynberg
i dont think we can support transparent resolvers as ajax targets

-igor


On Fri, Apr 11, 2008 at 10:00 AM, Meetesh Karia [EMAIL PROTECTED] wrote:
 Hi all,

  We're seeing an issue with ajax and isTransparentResolver set to return
 true and I'm wondering if this is something we're doing wrong or if it's an
 oversight.  Here's an example:

  add(new WebMarkupContainer(toUpdate) {
@Override
public boolean isTransparentResolver() {
return true;
}
  });

  add(new WebMarkupContainer(myChild));

  with html like this:

  div wicket:id=toUpdate
div wicket:id=myChild
...
/div
  /div

  When a user clicks on an ajax link (which is a child of toUpdate and
 added in the same manner as myChild), toUpdate is added to the target to be
 rendered.

  Now, because toUpdate doesn't have any real children, it doesn't mark any
 of them as rendering in MarkupContainer.internalMarkRendering().  However,
 Component.render(MarkupStream) does mark all of the children as rendering
 because it calls markRendering() itself.  When the rendering is finished,
 MarkupContainer.onAfterRenderChildren() is called but only the toUpdate
 container has it's rendering flag set to false and the child rendering flags
 remain set to true.  If there's now another ajax click within that same
 container which modifies the visibility of a component, an exception will be
 thrown indicating that a hierarchy change can't occur while rendering.

  Are we using isTransparentResolver() incorrectly?

  Thanks,
  Meetesh


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



Re: Ajax and isTransparentResolver

2008-04-11 Thread Meetesh Karia

Thanks for the information ... I'll change our code.

Meetesh

Igor Vaynberg wrote:

i dont think we can support transparent resolvers as ajax targets

-igor


On Fri, Apr 11, 2008 at 10:00 AM, Meetesh Karia [EMAIL PROTECTED] wrote:
  

Hi all,

 We're seeing an issue with ajax and isTransparentResolver set to return
true and I'm wondering if this is something we're doing wrong or if it's an
oversight.  Here's an example:

 add(new WebMarkupContainer(toUpdate) {
   @Override
   public boolean isTransparentResolver() {
   return true;
   }
 });

 add(new WebMarkupContainer(myChild));

 with html like this:

 div wicket:id=toUpdate
   div wicket:id=myChild
   ...
   /div
 /div

 When a user clicks on an ajax link (which is a child of toUpdate and
added in the same manner as myChild), toUpdate is added to the target to be
rendered.

 Now, because toUpdate doesn't have any real children, it doesn't mark any
of them as rendering in MarkupContainer.internalMarkRendering().  However,
Component.render(MarkupStream) does mark all of the children as rendering
because it calls markRendering() itself.  When the rendering is finished,
MarkupContainer.onAfterRenderChildren() is called but only the toUpdate
container has it's rendering flag set to false and the child rendering flags
remain set to true.  If there's now another ajax click within that same
container which modifies the visibility of a component, an exception will be
thrown indicating that a hierarchy change can't occur while rendering.

 Are we using isTransparentResolver() incorrectly?

 Thanks,
 Meetesh




Re: Change css style of AjaxButton

2008-04-11 Thread Nino Saturnino Martinez Vazquez Wael

You could use a ajax link instead

http://www.wishingline.com/notebook/2006/06/revisitingslidingdoorbuttons/

Either way you would use a attribute modifier to change the class 
property...


Karen Schaper wrote:

Hi,

I'd like to change the color of a button after clicking it.  The button was
added to the page using AjaxButton.

Is there a way to change the style of a button?  I've change the css style
when using PropertyColumns but I don't see anything for changing the style
of a button.

I could make 2 different buttons and make only one visible at a time but I
don't really want to do this.

Am I missing something?

Thanks

Karen



-
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: wicket.contrib.scriptaculous

2008-04-11 Thread Nino Saturnino Martinez Vazquez Wael
Thats wierd, its working again.. Might have been a glitch in my network 
connection, messing up dependencies or something


Ryan Sonnek wrote:

hmmmthey worked the last time I checked.

I'll try to take a look, but if you see anything that's obviously
incorrect, let me know.

  
On Fri, Apr 11, 2008 at 5:58 AM, Nino Saturnino Martinez Vazquez Wael

[EMAIL PROTECTED] wrote:
  

When I try to run mvn jetty:run I get this error:

 2008-04-11 12:56:38.642::WARN:  failed wicketstuff-scriptaculous-examples
 org.apache.wicket.WicketRuntimeException: Application class
wicket.contrib.scriptaculous.examples.ScriptaculousExamplesApplication must
be a subclass of WebApplication
   at
org.apache.wicket.protocol.http.ContextParamWebApplicationFactory.createApplication(ContextParamWebApplicationFactory.java:76)
   at
org.apache.wicket.protocol.http.ContextParamWebApplicationFactory.createApplication(ContextParamWebApplicationFactory.java:49)
   at
org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:496)
   at org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:99)
   at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
   at
org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:589)
   at org.mortbay.jetty.servlet.Context.startContext(Context.java:139)
   at
org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1218)
   at
org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:500)
   at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:448)
   at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
   at
org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:147)
   at
org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:161)
   at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
   at
org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:147)
   at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
   at
org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:117)
   at org.mortbay.jetty.Server.doStart(Server.java:217)

 Are it broken intentionally? Or am I just doing something wrong?

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





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



Forms within borders

2008-04-11 Thread John Krasnay
Hi all. I'm trying to create a component I call a FormBorder. The idea
is to embed the form and OK/Cancel buttons into the border:

wicket:border
  div class=form
form wicket:id=form
  wicket:body/
  div class=buttons
input wicket:id=button type=submit/
  /div
/form
  /div
/wicket:border

public FormBorder(String id, IModel model) {
super(id, model);
add(form = new Form(form));
form.add(getBodyContainer());
form.add(buttons = new RepeatingView(button));
// ... add buttons to the repeating view
}

I'd like to use it like this...

  FormBorder border = new FormBorder(border);
  border.add(new TextField(name, new PropertyModel(person, name)));

...but it doesn't work quite right. The page renders fine, but upon
submit the data never makes it back into the TextField's model.
Presumably this is because the TextField is a child of the border, not
of the form.

Is there any way to make this work, other than taking the form
completely out of the border?

jk

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



Re: Invoulentary session sharing/leakage in Wicket 1.3.x

2008-04-11 Thread Gwyn Evans
Anything new on this issue?

/Gwyn

On Wed, Apr 9, 2008 at 5:55 PM, Niels Bo [EMAIL PROTECTED] wrote:

  ok, I can put a try-catch(Throwable t) around the service() and log that
  together with the request-url.
  But since it is a production server, I am not able to get it deployed until
  tomorrow evening, and right now we are doing ok with the workaround.

  Niels




  Johan Compagner wrote:
  
   if there was an error before that
   that should then be logged just before you log that there is a wrong state
  
   The way you do it now is in reverse
  
   the wrong state was already set in X number of request back
   so when you log it, You can;'t really tie it to a a specific request that
   did go wrong.
  
   If you log it later after the service method. Then you know that it did
   happen for that request
   And most likely there should be some error before that.. Because i dont
   see
   another way
   how it would be possible when the normal flow without exceptions would
   happen.
  
   johan
  
  
   On Wed, Apr 9, 2008 at 3:28 PM, Niels Bo [EMAIL PROTECTED] wrote:
  
  
   Hi
   How can I check/log if there are error for that thread?
   Niels
  
  
   Johan Compagner wrote:
   
could you change that method that it checks this after the fact?
and then see if there is an error for that thread before? for example
   also
log the url call so that we can see
what kind of request did let one thread local be there?
   
Which one is it by the way?
is it app, session or request cycle?
   
i just checked our code and we have finally blocks pretty much every
   where
in WicketFilter.doGet
and in RequestCycle.steps
   
And i have no idea how those can be jumped over.
   
johan
   
  
   --
   View this message in context:
   
 http://www.nabble.com/Invoulentary-session-sharing-leakage-in-Wicket-1.3.x-tp16550360p16585768.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]
  
  
  
  

  --
  View this message in context: 
 http://www.nabble.com/Invoulentary-session-sharing-leakage-in-Wicket-1.3.x-tp16550360p16590574.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: Forms within borders

2008-04-11 Thread Igor Vaynberg
try

formborder extends border {
  formborder() { form.add(getbodycontainer(); }
}

if that doesnt help you might have to say
formborder.getbodycontainer().add(textfield);

but i think the first tweak should fix it

-igor


On Fri, Apr 11, 2008 at 11:54 AM, John Krasnay [EMAIL PROTECTED] wrote:
 Hi all. I'm trying to create a component I call a FormBorder. The idea
  is to embed the form and OK/Cancel buttons into the border:

  wicket:border
   div class=form
 form wicket:id=form
   wicket:body/
   div class=buttons
 input wicket:id=button type=submit/
   /div
 /form
   /div
  /wicket:border

  public FormBorder(String id, IModel model) {
 super(id, model);
 add(form = new Form(form));
 form.add(getBodyContainer());
 form.add(buttons = new RepeatingView(button));
 // ... add buttons to the repeating view
  }

  I'd like to use it like this...

   FormBorder border = new FormBorder(border);
   border.add(new TextField(name, new PropertyModel(person, name)));

  ...but it doesn't work quite right. The page renders fine, but upon
  submit the data never makes it back into the TextField's model.
  Presumably this is because the TextField is a child of the border, not
  of the form.

  Is there any way to make this work, other than taking the form
  completely out of the border?

  jk

  -
  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: Forms within borders

2008-04-11 Thread John Krasnay
On Fri, Apr 11, 2008 at 01:12:15PM -0700, Igor Vaynberg wrote:
 try
 
 formborder extends border {
   formborder() { form.add(getbodycontainer(); }
 }
 

Yep, tried it but it doesn't help.

 if that doesnt help you might have to say
 formborder.getbodycontainer().add(textfield);

This indeed works, but the problem is I'm gonna forget to do it and
spend another half day banging my head against my desk wondering where
my data went. I think I'll go back to an explicit form...it's not too
onerous.

Thanks anyway!

jk

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



Re: Forms within borders

2008-04-11 Thread Igor Vaynberg
keep your eye on https://issues.apache.org/jira/browse/WICKET-1237

-igor


On Fri, Apr 11, 2008 at 1:22 PM, John Krasnay [EMAIL PROTECTED] wrote:
 On Fri, Apr 11, 2008 at 01:12:15PM -0700, Igor Vaynberg wrote:
   try
  
   formborder extends border {
 formborder() { form.add(getbodycontainer(); }
   }
  

  Yep, tried it but it doesn't help.


   if that doesnt help you might have to say
   formborder.getbodycontainer().add(textfield);

  This indeed works, but the problem is I'm gonna forget to do it and
  spend another half day banging my head against my desk wondering where
  my data went. I think I'll go back to an explicit form...it's not too
  onerous.

  Thanks anyway!



  jk

  -
  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: Forms within borders

2008-04-11 Thread James Carman
On Fri, Apr 11, 2008 at 4:22 PM, John Krasnay [EMAIL PROTECTED] wrote:
  This indeed works, but the problem is I'm gonna forget to do it and
  spend another half day banging my head against my desk wondering where
  my data went. I think I'll go back to an explicit form...it's not too
  onerous.


In the meantime, you might also want to consider being a bit more
proactive and buy a softer desk. ;)

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



IE/XP FileUpload Problem

2008-04-11 Thread JulianS

There is a well-known problem with the file upload control in IE that causes
user confusion. In this situation the submit button refuses to respond and
no error is shown to the user. I'm wondering if any Wicketeers have found a
workaround.

From http://support.microsoft.com/kb/892442: Users must submit a fully
qualified path when you use the input type=file element in a Web
application in Windows XP Service Pack 2.

The above mentioned Microsoft article recommends some workarounds, and I'd
like to use this one:

1.  If you can access the code that calls the Submit method, handle the
script error, and then prompt the user to enter a fully qualified path.

If anyone has done this I'd like to hear about it.

Thanks,
Julian

-- 
View this message in context: 
http://www.nabble.com/IE-XP-FileUpload-Problem-tp16630175p16630175.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]



Good example for FormComponentPanel?

2008-04-11 Thread Michael Mehrle
I need to build a TabbedPanel with three tabs which are part of one form
- the selected tab will contain form components which need to be
submitted by that one form. It seems FormComponentPanel is the way to
go: are there any good examples of this?

 

Also, would this be the recommended approach?

 

Thanks,

 

Michael



RE: Good example for FormComponentPanel?

2008-04-11 Thread Michael Mehrle
Yes, I agree, Vitaly - but unfortunately the design decision is out of my hand. 
It's got to have tabs. Of course it is possible to do the tabbing by CSS 
styling, but I wanted to see if FormComponentPanel is a way to go since the 
complexity of managing the tabbed panel would then be shifted to the CSS/JS 
side.

I just looked at the Multiply example and it seems to make sense. Again, if 
anyone wants to share any tips/input regarding this (or how to avoid traps), 
please don't be shy ;-)

Michael

-Original Message-
From: Vitaly Tsaplin [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 11, 2008 4:52 PM
To: users@wicket.apache.org
Subject: Re: Good example for FormComponentPanel?


   It seems that a simple panel would be the best approach.

On Sat, Apr 12, 2008 at 1:37 AM, Michael Mehrle [EMAIL PROTECTED] wrote:
 I need to build a TabbedPanel with three tabs which are part of one form
  - the selected tab will contain form components which need to be
  submitted by that one form. It seems FormComponentPanel is the way to
  go: are there any good examples of this?



  Also, would this be the recommended approach?



  Thanks,



  Michael



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



Re: Good example for FormComponentPanel?

2008-04-11 Thread Vitaly Tsaplin
   package org.apache.wicket.extensions.markup.html.tabs;

   public class TabbedPanel extends Panel  --- it extends the panel
   { ... }

   Am I wrong? :)

On Sat, Apr 12, 2008 at 2:11 AM, Michael Mehrle [EMAIL PROTECTED] wrote:
 Yes, I agree, Vitaly - but unfortunately the design decision is out of my 
 hand. It's got to have tabs. Of course it is possible to do the tabbing by 
 CSS styling, but I wanted to see if FormComponentPanel is a way to go since 
 the complexity of managing the tabbed panel would then be shifted to the 
 CSS/JS side.

  I just looked at the Multiply example and it seems to make sense. Again, if 
 anyone wants to share any tips/input regarding this (or how to avoid traps), 
 please don't be shy ;-)

  Michael



  -Original Message-
  From: Vitaly Tsaplin [mailto:[EMAIL PROTECTED]
  Sent: Friday, April 11, 2008 4:52 PM
  To: users@wicket.apache.org
  Subject: Re: Good example for FormComponentPanel?


It seems that a simple panel would be the best approach.

  On Sat, Apr 12, 2008 at 1:37 AM, Michael Mehrle [EMAIL PROTECTED] wrote:
   I need to build a TabbedPanel with three tabs which are part of one form
- the selected tab will contain form components which need to be
submitted by that one form. It seems FormComponentPanel is the way to
go: are there any good examples of this?
  
  
  
Also, would this be the recommended approach?
  
  
  
Thanks,
  
  
  
Michael
  
  

  -
  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: Tomcat dying with Wicket 1.3.2 (Windows / JDK 1.5.0_10)

2008-04-11 Thread Jeremy Thomerson
Thanks for your not very helpful email, but unfortunately, you're wrong.  In
that other email, I did say But, most don't (have jsessionid) because
almost all of my links are bookmarkable.  I don't strip out jsessionid - I
don't think you even can without disabling cookieless support - your
container adds the jsessionid to links in your returned HTML - it's not like
you add it (or remove it) manually.

If you go to http://www.texashuntfish.com/thf/app/home, you will notice that
the first time you hit the page, there are jsessionids in every link - same
if you go there with cookies disabled.  This won't happen if you just go to
http://www.texashuntfish.com/ because it does a redirect, and you end up
sending cookies back, and no jsessionid is needed.

I really don't know why Google doesn't index the jsessionid in our URLs - we
have 30,600 pages in Google indexes[1], and only two have jsessionid[2].

If anyone is interested, a slightly modified version of the code (just
setting different expiration lengths depending on signed in / not signed in)
I pasted in pastebin (linked in an earlier email) worked - we're maintaining
100-300 sessions now, and no crashes in the past 24 hours it's been
running.  This isn't a fix - it's a bandaid.

I think this problem is caused by something making the session bind at an
earlier time than it did when I was using 1.2.6 - it's probably still
something that I'm doing weird, but I need to find it.  Looking at the logs,
we're still having one to two sessions created every second - they're just
getting cleaned up better now.

[1] -
http://www.google.com/search?q=site%3Atexashuntfish.comie=utf-8oe=utf-8aq=trls=com.ubuntu:en-US:officialclient=firefox-a
[2] -
http://www.google.com/search?hl=ensafe=offclient=firefox-arls=com.ubuntu%3Aen-US%3Aofficialhs=bFpq=site%3Atexashuntfish.com+inurl%3AjsessionidbtnG=Search

On Fri, Apr 11, 2008 at 3:33 AM, Johan Compagner [EMAIL PROTECTED]
wrote:

 by the way it is all your own fault that you get so many session.
 I just searched for your other mails and i did came across: Removing the
 jsessionid for SEO

 where you where explaining that you remove the jsessionids from the urls..

 johan


 On Thu, Apr 3, 2008 at 7:23 AM, Jeremy Thomerson 
 [EMAIL PROTECTED]
 wrote:

  I upgraded my biggest production app from 1.2.6 to 1.3 last week.  I
 have
  had several apps running on 1.3 since it was in beta with no problems -
  running for months without restarting.
 
  This app receives more traffic than any of the rest.  We have a decent
  server, and I had always allowed Tomcat 1.5GB of RAM to operate with.
  It
  never had a problem doing so, and I didn't have OutOfMemory errors.
  Now,
  after the upgrade to 1.3.2, I am having all sorts of trouble.  It ran
 for
  several days without a problem, but then started dying a couple times a
  day.  Today it has died four times.  Here are a couple odd things about
  this:
 
- On 1.2.6, I never had a problem with stability - the app would run
weeks between restarts (I restart once per deployment, anywhere from
  once a
week to at the longest about two months between deploy / restart).
- Tomcat DIES instead of hanging when there is a problem.  Always
before, if I had an issue, Tomcat would hang, and there would be OOM
 in
  the
logs.  Now, when it crashes, and I sign in to the server, Tomcat is
 not
running at all.  There is nothing in the Tomcat logs that says
 anything,
  or
in eventvwr.
- I do not get OutOfMemory error in any logs, whereas I have always
seen it in the logs before when I had an issue with other apps.  I am
running Tomcat as a service on Windows, but it writes stdout / stderr
 to
logs, and I write my logging out to logs, and none of these logs
 include
  ANY
errors - they all just suddenly stop at the time of the crash.
 
  My money is that it is an OOM error caused by somewhere that I am doing
  something I shouldn't be with Wicket.  There's no logs that even say it
 is
  an OOM, but the memory continues to increase linearly over time as the
 app
  runs now (it didn't do that before).  My first guess is my previous
  proliferate use of anonymous inner classes.  I have seen in the email
  threads that this shouldn't be done in 1.3.
 
  Of course, the real answer is that I'm going to be digging through
  profilers
  and lines of code until I get this fixed.
 
  My question, though, is from the Wicket devs / experienced users - where
  should I look first?  Is there something that changed between 1.2.6 and
  1.3
  that might have caused me problems where 1.2.6 was more forgiving?
 
  I'm running the app with JProbe right now so that I can get a snapshot
 of
  memory when it gets really high.
 
  Thank you,
  Jeremy Thomerson
 



Re: Tomcat dying with Wicket 1.3.2 (Windows / JDK 1.5.0_10)

2008-04-11 Thread James Carman
On Fri, Apr 11, 2008 at 9:37 PM, Jeremy Thomerson
[EMAIL PROTECTED] wrote:
 Thanks for your not very helpful email, but unfortunately, you're wrong.  In
  that other email, I did say But, most don't (have jsessionid) because
  almost all of my links are bookmarkable.  I don't strip out jsessionid - I
  don't think you even can without disabling cookieless support - your
  container adds the jsessionid to links in your returned HTML - it's not like
  you add it (or remove it) manually.

I do not believe the servlet container adds the jsessionid into your
URLs automatically.  You have to call HttpServletResponse.encodeURL()
or HttpServletResponse.encodeRedirectURL() to get the jsessionid
appended.

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



Re: Tomcat dying with Wicket 1.3.2 (Windows / JDK 1.5.0_10)

2008-04-11 Thread Ryan Gravener
Are you storing a lot of variables in your session?  Also how often is
google visiting your site?

On Fri, Apr 11, 2008 at 9:37 PM, Jeremy Thomerson
[EMAIL PROTECTED] wrote:
 Thanks for your not very helpful email, but unfortunately, you're wrong.  In
  that other email, I did say But, most don't (have jsessionid) because
  almost all of my links are bookmarkable.  I don't strip out jsessionid - I
  don't think you even can without disabling cookieless support - your
  container adds the jsessionid to links in your returned HTML - it's not like
  you add it (or remove it) manually.

  If you go to http://www.texashuntfish.com/thf/app/home, you will notice that
  the first time you hit the page, there are jsessionids in every link - same
  if you go there with cookies disabled.  This won't happen if you just go to
  http://www.texashuntfish.com/ because it does a redirect, and you end up
  sending cookies back, and no jsessionid is needed.

  I really don't know why Google doesn't index the jsessionid in our URLs - we
  have 30,600 pages in Google indexes[1], and only two have jsessionid[2].

  If anyone is interested, a slightly modified version of the code (just
  setting different expiration lengths depending on signed in / not signed in)
  I pasted in pastebin (linked in an earlier email) worked - we're maintaining
  100-300 sessions now, and no crashes in the past 24 hours it's been
  running.  This isn't a fix - it's a bandaid.

  I think this problem is caused by something making the session bind at an
  earlier time than it did when I was using 1.2.6 - it's probably still
  something that I'm doing weird, but I need to find it.  Looking at the logs,
  we're still having one to two sessions created every second - they're just
  getting cleaned up better now.

  [1] -
  
 http://www.google.com/search?q=site%3Atexashuntfish.comie=utf-8oe=utf-8aq=trls=com.ubuntu:en-US:officialclient=firefox-a
  [2] -
  
 http://www.google.com/search?hl=ensafe=offclient=firefox-arls=com.ubuntu%3Aen-US%3Aofficialhs=bFpq=site%3Atexashuntfish.com+inurl%3AjsessionidbtnG=Search

  On Fri, Apr 11, 2008 at 3:33 AM, Johan Compagner [EMAIL PROTECTED]
  wrote:



   by the way it is all your own fault that you get so many session.
   I just searched for your other mails and i did came across: Removing the
   jsessionid for SEO
  
   where you where explaining that you remove the jsessionids from the urls..
  
   johan
  
  
   On Thu, Apr 3, 2008 at 7:23 AM, Jeremy Thomerson 
   [EMAIL PROTECTED]
   wrote:
  
I upgraded my biggest production app from 1.2.6 to 1.3 last week.  I
   have
had several apps running on 1.3 since it was in beta with no problems -
running for months without restarting.
   
This app receives more traffic than any of the rest.  We have a decent
server, and I had always allowed Tomcat 1.5GB of RAM to operate with.
It
never had a problem doing so, and I didn't have OutOfMemory errors.
Now,
after the upgrade to 1.3.2, I am having all sorts of trouble.  It ran
   for
several days without a problem, but then started dying a couple times a
day.  Today it has died four times.  Here are a couple odd things about
this:
   
  - On 1.2.6, I never had a problem with stability - the app would run
  weeks between restarts (I restart once per deployment, anywhere from
once a
  week to at the longest about two months between deploy / restart).
  - Tomcat DIES instead of hanging when there is a problem.  Always
  before, if I had an issue, Tomcat would hang, and there would be OOM
   in
the
  logs.  Now, when it crashes, and I sign in to the server, Tomcat is
   not
  running at all.  There is nothing in the Tomcat logs that says
   anything,
or
  in eventvwr.
  - I do not get OutOfMemory error in any logs, whereas I have always
  seen it in the logs before when I had an issue with other apps.  I am
  running Tomcat as a service on Windows, but it writes stdout / stderr
   to
  logs, and I write my logging out to logs, and none of these logs
   include
ANY
  errors - they all just suddenly stop at the time of the crash.
   
My money is that it is an OOM error caused by somewhere that I am doing
something I shouldn't be with Wicket.  There's no logs that even say it
   is
an OOM, but the memory continues to increase linearly over time as the
   app
runs now (it didn't do that before).  My first guess is my previous
proliferate use of anonymous inner classes.  I have seen in the email
threads that this shouldn't be done in 1.3.
   
Of course, the real answer is that I'm going to be digging through
profilers
and lines of code until I get this fixed.
   
My question, though, is from the Wicket devs / experienced users - where
should I look first?  Is there something that changed between 1.2.6 and
1.3
that might have caused me problems where 1.2.6 was more 

Re: Tomcat dying with Wicket 1.3.2 (Windows / JDK 1.5.0_10)

2008-04-11 Thread Igor Vaynberg
which wicket does for every url via webrequest.encodeurl or something
like that. of course if you subclass webrequest and dont forward the
encodeurl to httpservletrequest you effectively strip jsessionid from
the urls.

-igor


On Fri, Apr 11, 2008 at 6:53 PM, James Carman
[EMAIL PROTECTED] wrote:
 On Fri, Apr 11, 2008 at 9:37 PM, Jeremy Thomerson
  [EMAIL PROTECTED] wrote:
   Thanks for your not very helpful email, but unfortunately, you're wrong.  
 In
that other email, I did say But, most don't (have jsessionid) because
almost all of my links are bookmarkable.  I don't strip out jsessionid - 
 I
don't think you even can without disabling cookieless support - your
container adds the jsessionid to links in your returned HTML - it's not 
 like
you add it (or remove it) manually.

  I do not believe the servlet container adds the jsessionid into your
  URLs automatically.  You have to call HttpServletResponse.encodeURL()
  or HttpServletResponse.encodeRedirectURL() to get the jsessionid
  appended.



  -
  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: Tomcat dying with Wicket 1.3.2 (Windows / JDK 1.5.0_10)

2008-04-11 Thread Igor Vaynberg
On Fri, Apr 11, 2008 at 6:37 PM, Jeremy Thomerson
[EMAIL PROTECTED] wrote:
  If you go to http://www.texashuntfish.com/thf/app/home, you will notice that
  the first time you hit the page, there are jsessionids in every link - same
  if you go there with cookies disabled.

as far as i know jsessionid is only appended once an http session is
created and needs to be tracked. so the fact you see it right after
you go to /app/home should tell you that right away the session is
created and bound. not good. something in your page is stateful.

  I think this problem is caused by something making the session bind at an
  earlier time than it did when I was using 1.2.6 - it's probably still
  something that I'm doing weird, but I need to find it.

i think this is unlikely. if i remember correctly delayed session
creation was introduced in 1.3.0. 1.2.6 _always created a session on
first request_ regardless of whether or not the page you requested was
stateless or stateful.

-igor



  On Fri, Apr 11, 2008 at 3:33 AM, Johan Compagner [EMAIL PROTECTED]
  wrote:



   by the way it is all your own fault that you get so many session.
   I just searched for your other mails and i did came across: Removing the
   jsessionid for SEO
  
   where you where explaining that you remove the jsessionids from the urls..
  
   johan
  
  
   On Thu, Apr 3, 2008 at 7:23 AM, Jeremy Thomerson 
   [EMAIL PROTECTED]
   wrote:
  
I upgraded my biggest production app from 1.2.6 to 1.3 last week.  I
   have
had several apps running on 1.3 since it was in beta with no problems -
running for months without restarting.
   
This app receives more traffic than any of the rest.  We have a decent
server, and I had always allowed Tomcat 1.5GB of RAM to operate with.
It
never had a problem doing so, and I didn't have OutOfMemory errors.
Now,
after the upgrade to 1.3.2, I am having all sorts of trouble.  It ran
   for
several days without a problem, but then started dying a couple times a
day.  Today it has died four times.  Here are a couple odd things about
this:
   
  - On 1.2.6, I never had a problem with stability - the app would run
  weeks between restarts (I restart once per deployment, anywhere from
once a
  week to at the longest about two months between deploy / restart).
  - Tomcat DIES instead of hanging when there is a problem.  Always
  before, if I had an issue, Tomcat would hang, and there would be OOM
   in
the
  logs.  Now, when it crashes, and I sign in to the server, Tomcat is
   not
  running at all.  There is nothing in the Tomcat logs that says
   anything,
or
  in eventvwr.
  - I do not get OutOfMemory error in any logs, whereas I have always
  seen it in the logs before when I had an issue with other apps.  I am
  running Tomcat as a service on Windows, but it writes stdout / stderr
   to
  logs, and I write my logging out to logs, and none of these logs
   include
ANY
  errors - they all just suddenly stop at the time of the crash.
   
My money is that it is an OOM error caused by somewhere that I am doing
something I shouldn't be with Wicket.  There's no logs that even say it
   is
an OOM, but the memory continues to increase linearly over time as the
   app
runs now (it didn't do that before).  My first guess is my previous
proliferate use of anonymous inner classes.  I have seen in the email
threads that this shouldn't be done in 1.3.
   
Of course, the real answer is that I'm going to be digging through
profilers
and lines of code until I get this fixed.
   
My question, though, is from the Wicket devs / experienced users - where
should I look first?  Is there something that changed between 1.2.6 and
1.3
that might have caused me problems where 1.2.6 was more forgiving?
   
I'm running the app with JProbe right now so that I can get a snapshot
   of
memory when it gets really high.
   
Thank you,
Jeremy Thomerson
   
  


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



DatePicker Simple Question

2008-04-11 Thread Ayodeji Aladejebi
Please,

The default behavior of the current datepicker allows users to scroll month
by month, how can datepicker be configured to scroll year by year?

thanks


Re: Tomcat dying with Wicket 1.3.2 (Windows / JDK 1.5.0_10)

2008-04-11 Thread Jeremy Thomerson
Thanks for the insight - didn't know that the webapp had to make a call to
force the cookie-less support.  Someone asked for how often Google is
crawling us.  It seems like at any given point of almost any day, we have
one crawler or another going through the site.  I included some numbers
below to give an idea.

Igor - thanks - it could easily be the search form, which is the only thing
that would be stateful on about 95% of the pages that will be crawled.  I
made myself a note yestereday that I need to look at making that a stateless
form to see if that fixes the unnecessary session creation.  I'll post the
results.

The one thing I have determined from all this (which answers a question from
the other thread) is that Google (and the other crawlers) is definitely
going to pages with a jsessionid in the URL, and the jsessionid is not
appearing in the search results (with 2 exceptions out of 30,000+ pages
indexed).  But I know that maybe only a month ago, there were hundreds of
pages from our site that had jsessionids in the URLs that Google had
indexed.  Could it be possible that they are stripping the jsessionid from
URLs they visit now?  I haven't found anywhere that they volunteer much
information on this matter.

Bottom line - thanks for everyone's help - I have a bandaid on this now
which will buy me the time to see what's creating the early unnecessary
sessions.  Is there a particular place in the code I should put a breakpoint
to see where the session is being created / where it says oh, you have a
stateful page - here's the component that makes it stateful?  That's where
I'm headed next, so if anyone knows where that piece of code is, the tip
would be greatly appreciated.

Thanks again,
Jeremy

Here's a few numbers for the curious.  I took a four minute segment of our
logs from a very slow traffic period - middle of the night.  In that time,
67 sessions were created.  Then did reverse DNS lookups on the IPs.  The
traffic was from:

cuill.com crawler4   (interesting - new search engine - didn't know
about it before)
googlebot4
live.com bot1
unknown13
user28
yahoo crawler26




On Fri, Apr 11, 2008 at 9:20 PM, Igor Vaynberg [EMAIL PROTECTED]
wrote:

 On Fri, Apr 11, 2008 at 6:37 PM, Jeremy Thomerson
 [EMAIL PROTECTED] wrote:
   If you go to http://www.texashuntfish.com/thf/app/home, you will notice
 that
   the first time you hit the page, there are jsessionids in every link -
 same
   if you go there with cookies disabled.

 as far as i know jsessionid is only appended once an http session is
 created and needs to be tracked. so the fact you see it right after
 you go to /app/home should tell you that right away the session is
 created and bound. not good. something in your page is stateful.

   I think this problem is caused by something making the session bind at
 an
   earlier time than it did when I was using 1.2.6 - it's probably still
   something that I'm doing weird, but I need to find it.

 i think this is unlikely. if i remember correctly delayed session
 creation was introduced in 1.3.0. 1.2.6 _always created a session on
 first request_ regardless of whether or not the page you requested was
 stateless or stateful.

 -igor


 
   On Fri, Apr 11, 2008 at 3:33 AM, Johan Compagner [EMAIL PROTECTED]
   wrote:
 
 
 
by the way it is all your own fault that you get so many session.
I just searched for your other mails and i did came across: Removing
 the
jsessionid for SEO
   
where you where explaining that you remove the jsessionids from the
 urls..
   
johan
   
   
On Thu, Apr 3, 2008 at 7:23 AM, Jeremy Thomerson 
[EMAIL PROTECTED]
wrote:
   
 I upgraded my biggest production app from 1.2.6 to 1.3 last week.
  I
have
 had several apps running on 1.3 since it was in beta with no
 problems -
 running for months without restarting.

 This app receives more traffic than any of the rest.  We have a
 decent
 server, and I had always allowed Tomcat 1.5GB of RAM to operate
 with.
 It
 never had a problem doing so, and I didn't have OutOfMemory errors.
 Now,
 after the upgrade to 1.3.2, I am having all sorts of trouble.  It
 ran
for
 several days without a problem, but then started dying a couple
 times a
 day.  Today it has died four times.  Here are a couple odd things
 about
 this:

   - On 1.2.6, I never had a problem with stability - the app would
 run
   weeks between restarts (I restart once per deployment, anywhere
 from
 once a
   week to at the longest about two months between deploy /
 restart).
   - Tomcat DIES instead of hanging when there is a problem.  Always
   before, if I had an issue, Tomcat would hang, and there would be
 OOM
in
 the
   logs.  Now, when it crashes, and I sign in to the server, Tomcat
 is
not
   running at all.  There is nothing in the Tomcat logs that says
anything,
 or
   in eventvwr.
  

Re: Removing the jsessionid for SEO

2008-04-11 Thread Jeremy Thomerson
If I understood you correctly, the first page is bookmarkable, the second is
a wicket URL, tied to the session.  That'd be bad for SEO - search engines
couldn't see page 2, or they would, but the URL is tied to their session, so
even if a user visited that URL, they wouldn't get that page.  This means
that any content past page one is unreachable from a search engine.  I had
another thread going about a problem I was having with sessions, which
turned up some interesting data.  I have over 31,000 pages indexed by
Google, they are visiting bookmarkable URLS that DO have jsessionid in them,
but only two pages in their index have a jsessionid in them.  They obviously
handle jsessionid fine these days, or at least they are for me.

If you need all of your content to be indexed, you really need to concern
yourself with making every page bookmarkable.  Take a look at Korbinian's
comments above - it looks like he is doing it well.  Or have a look at my
comments or my site http://www.texashuntfish.com.

You should specifically look at http://www.texashuntfish.com/thf/app/forum -
I am using DataTable's there, but every link (including sort, etc) is
bookmarkable.  So, you may go into a category and get an URL like
http://www.texashuntfish.com/thf/app/forum/cat-53/Let-s-Talk-Texas-Outdoors-Classifieds-Buy-Sell-Tradeor
http://www.texashuntfish.com/thf/app/forum/18395/Winchester-22-model-61-for-sell.
The cat-53 or the /18395/ are the only things that matters.  I have a
strategy mounted on /forum that will take the first parameter and use it
to decode what kind of page is being requested - a category page, or a
specific post, etc.  Everything after that first parameter is specifically
for SEO.

Putting good keywords in the URL like that, and putting the subject of every
article / calendar event / news or forum thread is what shot us up in the
rankings of multiple search engines.  Migrating the app from what it was
before somerandomscript.cfm?foo=123123bar=12321 to this made a HUGE
difference.  It wasn't without work - Wicket is super easy if you don't have
to worry about URLs - but they also make it easy to totally customize all of
your URLs, too.

Shoot back any questions you have.  Hopefully I can share more information,
or even some code later.  Maybe Korbinian and I should put some information
on the Wiki about pretty URLs and SEO.

Jeremy

On Fri, Apr 4, 2008 at 1:09 PM, Dan Kaplan [EMAIL PROTECTED] wrote:

 Thanks,

 That's kinda the route I've already taken.  On my site, www.startfound.com
 ,
 if you click on any company to see more details it goes to a bookmarkable
 page.  Same with any tag.  Maybe if I've already got that much, I
 shouldn't
 concern myself with the fact that page 2 of my list is not bookmarkable
 but
 reachable by google bot.  Or maybe I should just add a noindex meta tag on
 every page that's not page 1.

 It'd be kinda ridiculous to require login to see past page 1.  That may be
 good for SEO but it'll drive people away.

  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
  Behalf Of Jeremy Thomerson
  Sent: Thursday, April 03, 2008 10:00 PM
  To: users@wicket.apache.org
  Subject: Re: Removing the jsessionid for SEO
 
  I've been building a community-driven hunting and fishing site in Texas
  for
  the past year and a half.  Since I have converted it to Wicket from
  ColdFusion, our search engine rankings have gone WAY UP.  That's right,
  we're on the first page for tons of searches.  Search for texas
 hunting
  -
  we're second under only the Texas Parks and Wildlife Association.
 
  How?  With Wicket?  Yes - it requires a little more work.  What I do is
  that
  for any link that I want Google to be able to follow, I have a subclass
 of
  Link specific to that.  For instance, ViewThreadLink, which takes the ID
  for
  the link and a model (detachable) of the thread.  Then I mount an
  IRequestTargetUrlCodingStrategy for each big category of things in my
  webapp.  I've made several strategies that I use over and over, just
  giving
  them a different mount path and a different parameter to tell it what
 kind
  of article, etc, that it will match to.  This is made easier because
 over
  75% of the objects in our site are all similar enough that the extend
 from
  a
  base class that provides the basic functionality for an article / thread
 /
  etc that has a title, text, pictures, comments, the standard stuff.
 
  So, yes, it takes work.  But that's okay - SEO always takes work.  I
 also
  have given a lot of care to use good page titles, good semantic HTML and
  stuff things into the URL that don't have anything to do with locating
 the
  resource, but give the search engines a clue as to what the content is.
 
  Yes, some pages end up with a jsessionid - and I don't like it (example:
  http://www.google.com/search?hl=enclient=firefox-arls=com.ubuntu%3Aen-
  US%3Aofficialq=%22south+texas+management+buck%22btnG=Search).
  But, most don't because almost all 

Re: Tomcat dying with Wicket 1.3.2 (Windows / JDK 1.5.0_10)

2008-04-11 Thread Igor Vaynberg
try a breakpoint in ISessionStore.bind() - that is where the wicket
session is pushed into httpsession

-igor


On Fri, Apr 11, 2008 at 9:26 PM, Jeremy Thomerson
[EMAIL PROTECTED] wrote:
 Thanks for the insight - didn't know that the webapp had to make a call to
  force the cookie-less support.  Someone asked for how often Google is
  crawling us.  It seems like at any given point of almost any day, we have
  one crawler or another going through the site.  I included some numbers
  below to give an idea.

  Igor - thanks - it could easily be the search form, which is the only thing
  that would be stateful on about 95% of the pages that will be crawled.  I
  made myself a note yestereday that I need to look at making that a stateless
  form to see if that fixes the unnecessary session creation.  I'll post the
  results.

  The one thing I have determined from all this (which answers a question from
  the other thread) is that Google (and the other crawlers) is definitely
  going to pages with a jsessionid in the URL, and the jsessionid is not
  appearing in the search results (with 2 exceptions out of 30,000+ pages
  indexed).  But I know that maybe only a month ago, there were hundreds of
  pages from our site that had jsessionids in the URLs that Google had
  indexed.  Could it be possible that they are stripping the jsessionid from
  URLs they visit now?  I haven't found anywhere that they volunteer much
  information on this matter.

  Bottom line - thanks for everyone's help - I have a bandaid on this now
  which will buy me the time to see what's creating the early unnecessary
  sessions.  Is there a particular place in the code I should put a breakpoint
  to see where the session is being created / where it says oh, you have a
  stateful page - here's the component that makes it stateful?  That's where
  I'm headed next, so if anyone knows where that piece of code is, the tip
  would be greatly appreciated.

  Thanks again,
  Jeremy

  Here's a few numbers for the curious.  I took a four minute segment of our
  logs from a very slow traffic period - middle of the night.  In that time,
  67 sessions were created.  Then did reverse DNS lookups on the IPs.  The
  traffic was from:

  cuill.com crawler4   (interesting - new search engine - didn't know
  about it before)
  googlebot4
  live.com bot1
  unknown13
  user28
  yahoo crawler26




  On Fri, Apr 11, 2008 at 9:20 PM, Igor Vaynberg [EMAIL PROTECTED]
  wrote:



   On Fri, Apr 11, 2008 at 6:37 PM, Jeremy Thomerson
   [EMAIL PROTECTED] wrote:
 If you go to http://www.texashuntfish.com/thf/app/home, you will notice
   that
 the first time you hit the page, there are jsessionids in every link -
   same
 if you go there with cookies disabled.
  
   as far as i know jsessionid is only appended once an http session is
   created and needs to be tracked. so the fact you see it right after
   you go to /app/home should tell you that right away the session is
   created and bound. not good. something in your page is stateful.
  
 I think this problem is caused by something making the session bind at
   an
 earlier time than it did when I was using 1.2.6 - it's probably still
 something that I'm doing weird, but I need to find it.
  
   i think this is unlikely. if i remember correctly delayed session
   creation was introduced in 1.3.0. 1.2.6 _always created a session on
   first request_ regardless of whether or not the page you requested was
   stateless or stateful.
  
   -igor
  
  
   
 On Fri, Apr 11, 2008 at 3:33 AM, Johan Compagner [EMAIL PROTECTED]
 wrote:
   
   
   
  by the way it is all your own fault that you get so many session.
  I just searched for your other mails and i did came across: Removing
   the
  jsessionid for SEO
 
  where you where explaining that you remove the jsessionids from the
   urls..
 
  johan
 
 
  On Thu, Apr 3, 2008 at 7:23 AM, Jeremy Thomerson 
  [EMAIL PROTECTED]
  wrote:
 
   I upgraded my biggest production app from 1.2.6 to 1.3 last week.
I
  have
   had several apps running on 1.3 since it was in beta with no
   problems -
   running for months without restarting.
  
   This app receives more traffic than any of the rest.  We have a
   decent
   server, and I had always allowed Tomcat 1.5GB of RAM to operate
   with.
   It
   never had a problem doing so, and I didn't have OutOfMemory errors.
   Now,
   after the upgrade to 1.3.2, I am having all sorts of trouble.  It
   ran
  for
   several days without a problem, but then started dying a couple
   times a
   day.  Today it has died four times.  Here are a couple odd things
   about
   this:
  
 - On 1.2.6, I never had a problem with stability - the app would
   run
 weeks between restarts (I restart once per deployment, anywhere
   from
   once a
 week to 

DropDown not setting the object - pls help

2008-04-11 Thread nemo_08

I am passing a list of RoomModel object to a DropDownChoice which I want to
be set in my BookModel object after selection. My BookModel has a pair of
get/set for a RoomModel class.

The code looks like

ArrayList list = new ArrayList(getRoomList());
ChoiceRenderer renderer = new ChoiceRenderer(roomName,roomID);
DropDownChoice roomDropDown = new DropDownChoice(roomlist, new
PropertyModel(bookingModel,room), new Model(list), renderer);
if(null!=selectedRoom)
  bookingModel.setRoom(selectedRoom);
add(roomDropDown);

The default selected choice comes perfectly but after I change the selection
I get a nulll value for bookingModel.getRoom().

Please help, I don't know where I am doing wrong. Should I try some other
Model ? I have tried AbstractReadOnlyModel but with the same result.
-- 
View this message in context: 
http://www.nabble.com/DropDown-not-setting-the-object---pls-help-tp16645752p16645752.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: Tomcat dying with Wicket 1.3.2 (Windows / JDK 1.5.0_10)

2008-04-11 Thread Ryan Gravener
Just make sure you are not receiving more than 90 requests from search
engines an hour.  If you are you may want to set up a robots.txt
(http://www.robotstxt.org/) and a sitemap (http://www.sitemaps.org/).

On Sat, Apr 12, 2008 at 1:20 AM, Igor Vaynberg [EMAIL PROTECTED] wrote:
 try a breakpoint in ISessionStore.bind() - that is where the wicke
  session is pushed into httpsession

  -igor


  On Fri, Apr 11, 2008 at 9:26 PM, Jeremy Thomerson


 [EMAIL PROTECTED] wrote:
   Thanks for the insight - didn't know that the webapp had to make a call to
force the cookie-less support.  Someone asked for how if your Google is
crawling us.  It seems like at any given point of almost any day, we have
one crawler or another going through the site.  I included some numbers
below to give an idea.
  
Igor - thanks - it could easily be the search form, which is the only 
 thing
that would be stateful on about 95% of the pages that will be crawled.  I
made myself a note yestereday that I need to look at making that a 
 stateless
form to see if that fixes the unnecessary session creation.  I'll post the
results.
  
The one thing I have determined from all this (which answers a question 
 from
the other thread) is that Google (and the other crawlers) is definitely
going to pages with a jsessionid in the URL, and the jsessionid is not
appearing in the search results (with 2 exceptions out of 30,000+ pages
indexed).  But I know that maybe only a month ago, there were hundreds of
pages from our site that had jsessionids in the URLs that Google had
indexed.  Could it be possible that they are stripping the jsessionid from
URLs they visit now?  I haven't found anywhere that they volunteer much
information on this matter.
  
Bottom line - thanks for everyone's help - I have a bandaid on this now
which will buy me the time to see what's creating the early unnecessary
sessions.  Is there a particular place in the code I should put a 
 breakpoint
to see where the session is being created / where it says oh, you have a
stateful page - here's the component that makes it stateful?  That's 
 where
I'm headed next, so if anyone knows where that piece of code is, the tip
would be greatly appreciated.
  
Thanks again,
Jeremy
  
Here's a few numbers for the curious.  I took a four minute segment of our
logs from a very slow traffic period - middle of the night.  In that time,
67 sessions were created.  Then did reverse DNS lookups on the IPs.  The
traffic was from:
  
cuill.com crawler4   (interesting - new search engine - didn't know
about it before)
googlebot4
live.com bot1
unknown13
user28
yahoo crawler26
  
  
  
  
On Fri, Apr 11, 2008 at 9:20 PM, Igor Vaynberg [EMAIL PROTECTED]
wrote:
  
  
  
 On Fri, Apr 11, 2008 at 6:37 PM, Jeremy Thomerson
 [EMAIL PROTECTED] wrote:
   If you go to http://www.texashuntfish.com/thf/app/home, you will 
 notice
 that
   the first time you hit the page, there are jsessionids in every link 
 -
 same
   if you go there with cookies disabled.

 as far as i know jsessionid is only appended once an http session is
 created and needs to be tracked. so the fact you see it right after
 you go to /app/home should tell you that right away the session is
 created and bound. not good. something in your page is stateful.

   I think this problem is caused by something making the session bind 
 at
 an
   earlier time than it did when I was using 1.2.6 - it's probably still
   something that I'm doing weird, but I need to find it.

 i think this is unlikely. if i remember correctly delayed session
 creation was introduced in 1.3.0. 1.2.6 _always created a session on
 first request_ regardless of whether or not the page you requested was
 stateless or stateful.

 -igor


 
   On Fri, Apr 11, 2008 at 3:33 AM, Johan Compagner [EMAIL PROTECTED]
   wrote:
 
 
 
by the way it is all your own fault that you get so many session.
I just searched for your other mails and i did came across: 
 Removing
 the
jsessionid for SEO
   
where you where explaining that you remove the jsessionids from the
 urls..
   
johan
   
   
On Thu, Apr 3, 2008 at 7:23 AM, Jeremy Thomerson 
[EMAIL PROTECTED]
wrote:
   
 I upgraded my biggest production app from 1.2.6 to 1.3 last week.
  I
have
 had several apps running on 1.3 since it was in beta with no
 problems -
 running for months without restarting.

 This app receives more traffic than any of the rest.  We have a
 decent
 server, and I had always allowed Tomcat 1.5GB of RAM to operate
 with.
 It
 never had a 

Re: DropDown not setting the object - pls help

2008-04-11 Thread Igor Vaynberg
what is bookingModel? what object is it and what does it extend? is it
an IModel?

-igor


On Fri, Apr 11, 2008 at 10:33 PM, nemo_08 [EMAIL PROTECTED] wrote:

  I am passing a list of RoomModel object to a DropDownChoice which I want to
  be set in my BookModel object after selection. My BookModel has a pair of
  get/set for a RoomModel class.

  The code looks like

  ArrayList list = new ArrayList(getRoomList());
  ChoiceRenderer renderer = new ChoiceRenderer(roomName,roomID);
  DropDownChoice roomDropDown = new DropDownChoice(roomlist, new
  PropertyModel(bookingModel,room), new Model(list), renderer);
  if(null!=selectedRoom)
   bookingModel.setRoom(selectedRoom);
  add(roomDropDown);

  The default selected choice comes perfectly but after I change the selection
  I get a nulll value for bookingModel.getRoom().

  Please help, I don't know where I am doing wrong. Should I try some other
  Model ? I have tried AbstractReadOnlyModel but with the same result.
  --
  View this message in context: 
 http://www.nabble.com/DropDown-not-setting-the-object---pls-help-tp16645752p16645752.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: DropDown not setting the object - pls help

2008-04-11 Thread nemo_08


I think my naming conventions are not perfect but BookingModel is a pojo
implementing Serializable which I am using to map through Hibernate. Similar
is RoomModel.

public class BookingModel implements Serializable {

private Integer bookingID;
private String bookingRef;
private Date fromTime;
private Date toTime;
private String purpose;
private UserModel user;
private RoomModel room;

// get/set methods

}


igor.vaynberg wrote:
 
 what is bookingModel? what object is it and what does it extend? is it
 an IModel?
 
 -igor
 
 

-- 
View this message in context: 
http://www.nabble.com/DropDown-not-setting-the-object---pls-help-tp16645752p16645834.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]