Re: [Wicket-user] NPE in Session.cleanupFeedbackMessages in wicket 1.2.2

2007-07-22 Thread Nili Adoram
anyone ?

Nili Adoram wrote:
 Hi all,
 The following error has occurred to a member of our QA team.
 He could not reproduce the scenario.
 If you look at the source files of 1.2.2 this is a very weird error,
 since a few lines  ahead we verify that feedback messages are not null.
 Could this be a race between threads? (AJAX races a non-AJAX request?)
 Please advise,
 Thanks
 Nili
 P.S.
 I know 1.2.2 is an ancient version, however I cannot upgrade at the moment.

 java.lang.NullPointerException
 at wicket.Session.cleanupFeedbackMessages(Session.java:1015)
 at wicket.RequestCycle.detach(RequestCycle.java:817)
 at wicket.RequestCycle.steps(RequestCycle.java:1058)
 at wicket.RequestCycle.request(RequestCycle.java:454)
 at wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:216)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
 at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
 at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
 at
 com.qlusters.qrm.server.api.objects.transactions.TransactionFilter.doFilter(TransactionFilter.java:140)
 at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
 at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
 at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
 at
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
 at
 org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
 at
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
 at
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
 at
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
 at
 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
 at
 org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870)
 at
 org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
 at
 org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
 at
 org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
 at
 org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
 at java.lang.Thread.run(Thread.java:595)


 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user

   

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now   http://get.splunk.com/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] NPE in Session.cleanupFeedbackMessages in wicket 1.2.2

2007-07-16 Thread Nili Adoram
Hi all,
The following error has occurred to a member of our QA team.
He could not reproduce the scenario.
If you look at the source files of 1.2.2 this is a very weird error,
since a few lines  ahead we verify that feedback messages are not null.
Could this be a race between threads? (AJAX races a non-AJAX request?)
Please advise,
Thanks
Nili
P.S.
I know 1.2.2 is an ancient version, however I cannot upgrade at the moment.

java.lang.NullPointerException
at wicket.Session.cleanupFeedbackMessages(Session.java:1015)
at wicket.RequestCycle.detach(RequestCycle.java:817)
at wicket.RequestCycle.steps(RequestCycle.java:1058)
at wicket.RequestCycle.request(RequestCycle.java:454)
at wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:216)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at
com.qlusters.qrm.server.api.objects.transactions.TransactionFilter.doFilter(TransactionFilter.java:140)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870)
at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
at java.lang.Thread.run(Thread.java:595)


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] javascript error 'too much recursion'ifcalendar.js is included more than once

2007-06-30 Thread Nili Adoram
Indeed, if placing a page (modal.setPageCreator()) instead of a panel
(modal.setContent()) the date picker is properly displayed even in 1.2.2
Thanks :)

Nili Adoram wrote:
 sorry for lighting the fire.
 you're doing a great job :)
 However, when I tried to upgrade to 1.2.6 many errors were thrown.
 Since I'm very short on time due to deadline, I had to postpone this
 upgrade until our software is released.


 Matej Knopp wrote:
   
 Of course not. I believe we did our best. But there were couple of
 changes (such as short-int, etc) that needs recompiling. And again,
 this was not intentional, it just happened.

 -Matej

 On 6/27/07, Martijn Dashorst [EMAIL PROTECTED] wrote:
   
 
 I remember many quarrels about maintaining binary compatibility... Are
 you saying those were for nothing?

 /me crawls back in cave

 Martijn

 On 6/27/07, Matej Knopp [EMAIL PROTECTED] wrote:
 
   
 I believe even i 1.2.6 isn't binary compatible (there might be some
 very small minor changes that slipped in by accident), it's still
 should be almost drop-in replacement, and the upgrade should be rather
 painless.

 Wicket 1.2.2 is from august 2006, that's almost a year ago.

 -Matej
   
 
 --
 Wicket joins the Apache Software Foundation as Apache Wicket
 Join the wicket community at irc.freenode.net: ##wicket
 Wicket 1.2.6 contains a very important fix. Download Wicket now!
 http://wicketframework.org

 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user

 
   
 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user

   
 

 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user

   

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] javascript error 'too much recursion'ifcalendar.js is included more than once

2007-06-27 Thread Nili Adoram
sorry for lighting the fire.
you're doing a great job :)
However, when I tried to upgrade to 1.2.6 many errors were thrown.
Since I'm very short on time due to deadline, I had to postpone this
upgrade until our software is released.


Matej Knopp wrote:
 Of course not. I believe we did our best. But there were couple of
 changes (such as short-int, etc) that needs recompiling. And again,
 this was not intentional, it just happened.

 -Matej

 On 6/27/07, Martijn Dashorst [EMAIL PROTECTED] wrote:
   
 I remember many quarrels about maintaining binary compatibility... Are
 you saying those were for nothing?

 /me crawls back in cave

 Martijn

 On 6/27/07, Matej Knopp [EMAIL PROTECTED] wrote:
 
 I believe even i 1.2.6 isn't binary compatible (there might be some
 very small minor changes that slipped in by accident), it's still
 should be almost drop-in replacement, and the upgrade should be rather
 painless.

 Wicket 1.2.2 is from august 2006, that's almost a year ago.

 -Matej
   
 --
 Wicket joins the Apache Software Foundation as Apache Wicket
 Join the wicket community at irc.freenode.net: ##wicket
 Wicket 1.2.6 contains a very important fix. Download Wicket now!
 http://wicketframework.org

 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user

 

 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user

   

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] javascript error 'too much recursion ' if calendar.js is included more than once

2007-06-26 Thread Nili Adoram
Hi all,
I am working with wicket-1.2.2.
I included datepicker calendar.js twice in the same page, and the
following error occurred when clicked on the datepicker.
Any suggestions?

too much recursion
setFullYear(2007)calendar.js (line 1796)
setFullYear(2007)calendar.js (line 1796)
setFullYear(2007)calendar.js (line 1796)
setFullYear(2007)calendar.js (line 1796)
setFullYear(2007)calendar.js (line 1796)
setFullYear(2007)calendar.js (line 1796)
setFullYear(2007)calendar.js (line 1796)
setFullYear(2007)calendar.js (line 1796)
setFullYear(2007)calendar.js (line 1796)
setFullYear(2007)calendar.js (line 1796)
setFullYear(2007)calendar.js (line 1796)
setFullYear(2007)calendar.js (line 1796)
setFullYear(2007)calendar.js (line 1796)
setFullYear(2007)calendar.js (line 1796)
setFullYear(2007)calendar.js (line 1796)
setFullYear(2007)calendar.js (line 1796)
setFullYear(2007)calendar.js (line 1796)
setFullYear(2007)calendar.js (line 1796)
setFullYear(2007)calendar.js (line 1796)
setFullYear(2007)calendar.js (line 1796)
setFullYear(2007)calendar.js (line 1796)
setFullYear(2007)calendar.js (line 1796)
setFullYear(2007)calendar.js (line 1796)
setFullYear(2007)calendar.js (line 1796)
setFullYear(2007)calendar.js (line 1796)
setFullYear(2007)calendar.js (line 1796)
setFullYear(2007)calendar.js (line 1796)
setFullYear(2007)calendar.js (line 1796)
setFullYear(2007)calendar.js (line 1796)
setFullYear(2007)calendar.js (line 1796)
setFullYear(2007)calendar.js (line 1796)
setFullYear(2007)calendar.js (line 1796)
setFullYear(2007)calendar.js (line 1796)
setFullYear(2007)calendar.js (line 1796)
setFullYear(2007)calendar.js (line 1796)
setFullYear(2007)calendar.js (line 1796)
setFullYear(2007)calendar.js (line 1796)
setFullYear(2007)calendar.js (line 1796)
setFullYear(2007)calendar.js (line 1796)
setFullYear(2007)calendar.js (line 1796)
setFullYear(2007)calendar.js (line 1796)
setFullYear(2007)calendar.js (line 1796)
setFullYear(2007)calendar.js (line 1796)
setFullYear(2007)calendar.js (line 1796)
setFullYear(2007)calendar.js (line 1796)
setFullYear(2007)calendar.js (line 1796)
setFullYear(2007)calendar.js (line 1796)
setFullYear(2007)calendar.js (line 1796)
setFullYear(2007)calendar.js (line 1796)
setFullYear(2007)calendar.js (line 1796)
setFullYear(2007)calendar.js (line 1796)
setFullYear(2007)calendar.js (line 1796)
setFullYear(2007)calendar.js (line 1796)
setFullYear(2007)calendar.js (line 1796)
setFullYear(2007)calendar.js (line 1796)
setFullYear(2007)calendar.js (line 1796)
setFullYear(2007)calendar.js (line 1796)
setFullYear(2007)calendar.js (line 1796)
setFullYear(2007)calendar.js (line 1796)
setFullYear(2007)calendar.js (line 1796)
setFullYear(2007)calendar.js (line 1796)
setFullYear(2007)calendar.js (line 1796)
setFullYear(2007)calendar.js (line 1796)
setFullYear(2007)calendar.js (line 1796)
setFullYear(2007)calendar.js (line 1796)
setFullYear(2007)calendar.js (line 1796)
setFullYear(2007)calendar.js (line 1796)
setFullYear(2007)calendar.js (line 1796)
setFullYear(2007)calendar.js (line 1796)
setFullYear(2007)calendar.js (line 1796)
setFullYear(2007)calendar.js (line 1796)
setFullYear(2007)calendar.js (line 1796)
setFullYear(2007)calendar.js (line 1796)
setFullYear(2007)calendar.js (line 1796)
setFullYear(2007)calendar.js (line 1796)
setFullYear(2007)calendar.js (line 1796)
setFullYear(2007)calendar.js (line 1796)
setFullYear(2007)calendar.js (line 1796)
setFullYear(2007)calendar.js (line 1796)
setFullYear(2007)calendar.js (line 1796)
setFullYear(2007)calendar.js (line 1796)
setFullYear(2007)calendar.js (line 1796)
setFullYear(2007)calendar.js (line 1796)
setFullYear(2007)calendar.js (line 1796)
setFullYear(2007)calendar.js (line 1796)
setFullYear(2007)calendar.js (line 1796)
setFullYear(2007)calendar.js (line 1796)
setFullYear(2007)calendar.js (line 1796)
setFullYear(2007)calendar.js (line 1796)
setFullYear(2007)calendar.js (line 1796)
setFullYear(2007)calendar.js (line 1796)
setFullYear(2007)calendar.js (line 1796)
setFullYear(2007)calendar.js (line 1796)
setFullYear(2007)calendar.js (line 1796)
setFullYear(2007)calendar.js (line 1796)
setFullYear(2007)calendar.js (line 1796)
setFullYear(2007)calendar.js (line 1796)
setFullYear(2007)calendar.js (line 1796)
setFullYear(2007)calendar.js (line 1796)
setFullYear(2007)calendar.js (line 1796)
setFullYear(2007)calendar.js (line 1796)
setFullYear(2007)calendar.js (line 1796)
setFullYear(2007)calendar.js (line 1796)
setFullYear(2007)calendar.js (line 1796)
setFullYear(2007)calendar.js (line 1796)
setFullYear(2007)calendar.js (line 1796)
setFullYear(2007)calendar.js (line 1796)
setFullYear(2007)calendar.js (line 1796)
setFullYear(2007)calendar.js (line 1796)
setFullYear(2007)calendar.js (line 1796)
setFullYear(2007)calendar.js (line 1796)
setFullYear(2007)calendar.js (line 1796)
setFullYear(2007)calendar.js (line 1796)
setFullYear(2007)calendar.js (line 1796)
setFullYear(2007)calendar.js (line 1796)
setFullYear(2007)calendar.js (line 1796)
setFullYear(2007)calendar.js (line 1796)

Re: [Wicket-user] javascript error 'too much recursion ' ifcalendar.js is included more than once

2007-06-26 Thread Nili Adoram
sorry :(
I am afraid I cannot upgrade at the moment since we don't have the time
for massive API changes of 1.3.
Is it a simple patch (e.g. replace this javascript file) or a
significant refactoring?

10x
Nili

Matej Knopp wrote:
 Btw, next time, you don't need to post 1000 lines of
 setFullYear(2007)calendar.js (line 1796)
 :)

 -Matej

 On 6/26/07, Matej Knopp [EMAIL PROTECTED] wrote:
   
 You need to use more recent version. Wicket 1.2.2 is really ancient.
 Also after upgrade, don't forget to clean browser cache.

 -Matej

 On 6/26/07, Nili Adoram [EMAIL PROTECTED] wrote:
 
 Hi all,
 I am working with wicket-1.2.2.
 I included datepicker calendar.js twice in the same page, and the
 following error occurred when clicked on the datepicker.
 Any suggestions?

 too much recursion
 setFullYear(2007)calendar.js (line 1796)
 setFullYear(2007)calendar.js (line 1796)
 setFullYear(2007)calendar.js (line 1796)
 setFullYear(2007)calendar.js (line 1796)
 setFullYear(2007)calendar.js (line 1796)
 setFullYear(2007)calendar.js (line 1796)
 setFullYear(2007)calendar.js (line 1796)
 setFullYear(2007)calendar.js (line 1796)
 setFullYear(2007)calendar.js (line 1796)
 setFullYear(2007)calendar.js (line 1796)
 setFullYear(2007)calendar.js (line 1796)
 setFullYear(2007)calendar.js (line 1796)
 setFullYear(2007)calendar.js (line 1796)
 setFullYear(2007)calendar.js (line 1796)
 setFullYear(2007)calendar.js (line 1796)
 setFullYear(2007)calendar.js (line 1796)
 setFullYear(2007)calendar.js (line 1796)
 setFullYear(2007)calendar.js (line 1796)
 setFullYear(2007)calendar.js (line 1796)
 setFullYear(2007)calendar.js (line 1796)
 setFullYear(2007)calendar.js (line 1796)
 setFullYear(2007)calendar.js (line 1796)
 setFullYear(2007)calendar.js (line 1796)
 setFullYear(2007)calendar.js (line 1796)
 setFullYear(2007)calendar.js (line 1796)
 setFullYear(2007)calendar.js (line 1796)
 setFullYear(2007)calendar.js (line 1796)
 setFullYear(2007)calendar.js (line 1796)
 setFullYear(2007)calendar.js (line 1796)
 setFullYear(2007)calendar.js (line 1796)
 setFullYear(2007)calendar.js (line 1796)
 setFullYear(2007)calendar.js (line 1796)
 setFullYear(2007)calendar.js (line 1796)
 setFullYear(2007)calendar.js (line 1796)
 setFullYear(2007)calendar.js (line 1796)
 setFullYear(2007)calendar.js (line 1796)
 setFullYear(2007)calendar.js (line 1796)
 setFullYear(2007)calendar.js (line 1796)
 setFullYear(2007)calendar.js (line 1796)
 setFullYear(2007)calendar.js (line 1796)
 setFullYear(2007)calendar.js (line 1796)
 setFullYear(2007)calendar.js (line 1796)
 setFullYear(2007)calendar.js (line 1796)
 setFullYear(2007)calendar.js (line 1796)
 setFullYear(2007)calendar.js (line 1796)
 setFullYear(2007)calendar.js (line 1796)
 setFullYear(2007)calendar.js (line 1796)
 setFullYear(2007)calendar.js (line 1796)
 setFullYear(2007)calendar.js (line 1796)
 setFullYear(2007)calendar.js (line 1796)
 setFullYear(2007)calendar.js (line 1796)
 setFullYear(2007)calendar.js (line 1796)
 setFullYear(2007)calendar.js (line 1796)
 setFullYear(2007)calendar.js (line 1796)
 setFullYear(2007)calendar.js (line 1796)
 setFullYear(2007)calendar.js (line 1796)
 setFullYear(2007)calendar.js (line 1796)
 setFullYear(2007)calendar.js (line 1796)
 setFullYear(2007)calendar.js (line 1796)
 setFullYear(2007)calendar.js (line 1796)
 setFullYear(2007)calendar.js (line 1796)
 setFullYear(2007)calendar.js (line 1796)
 setFullYear(2007)calendar.js (line 1796)
 setFullYear(2007)calendar.js (line 1796)
 setFullYear(2007)calendar.js (line 1796)
 setFullYear(2007)calendar.js (line 1796)
 setFullYear(2007)calendar.js (line 1796)
 setFullYear(2007)calendar.js (line 1796)
 setFullYear(2007)calendar.js (line 1796)
 setFullYear(2007)calendar.js (line 1796)
 setFullYear(2007)calendar.js (line 1796)
 setFullYear(2007)calendar.js (line 1796)
 setFullYear(2007)calendar.js (line 1796)
 setFullYear(2007)calendar.js (line 1796)
 setFullYear(2007)calendar.js (line 1796)
 setFullYear(2007)calendar.js (line 1796)
 setFullYear(2007)calendar.js (line 1796)
 setFullYear(2007)calendar.js (line 1796)
 setFullYear(2007)calendar.js (line 1796)
 setFullYear(2007)calendar.js (line 1796)
 setFullYear(2007)calendar.js (line 1796)
 setFullYear(2007)calendar.js (line 1796)
 setFullYear(2007)calendar.js (line 1796)
 setFullYear(2007)calendar.js (line 1796)
 setFullYear(2007)calendar.js (line 1796)
 setFullYear(2007)calendar.js (line 1796)
 setFullYear(2007)calendar.js (line 1796)
 setFullYear(2007)calendar.js (line 1796)
 setFullYear(2007)calendar.js (line 1796)
 setFullYear(2007)calendar.js (line 1796)
 setFullYear(2007)calendar.js (line 1796)
 setFullYear(2007)calendar.js (line 1796)
 setFullYear(2007)calendar.js (line 1796)
 setFullYear(2007)calendar.js (line 1796)
 setFullYear(2007)calendar.js (line 1796)
 setFullYear(2007)calendar.js (line 1796)
 setFullYear(2007)calendar.js (line 1796)
 setFullYear(2007)calendar.js (line 1796)
 setFullYear(2007)calendar.js (line 1796)
 setFullYear(2007)calendar.js (line 1796

Re: [Wicket-user] javascript error 'too much recursion 'ifcalendar.js is included more than once

2007-06-26 Thread Nili Adoram
even upgrade to 1.2.6  is involved with lots of adoptions.
the question is whether it will solve this issue.

Timo Rantalaiho wrote:
 On Tue, 26 Jun 2007, Nili Adoram wrote:
   
 I am afraid I cannot upgrade at the moment since we don't have the time
 for massive API changes of 1.3.
 

 1.2.2 is really ancient, you should use 1.2.6.

 - Timo

   

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Help: modalwindow question

2007-06-14 Thread Nili Adoram
in your panel:


final ModalWindow modal;
add(modal = new ModalWindow(modalAdvancedSearch));
add(new AjaxLink(openModal) {

@Override
public void onClick(AjaxRequestTarget target) {

modal.show(target);

}
});

modal.setCloseButtonCallback(new ModalWindow.CloseButtonCallback() {

public boolean onCloseButtonClicked(AjaxRequestTarget target) {
return true;
}
});

modal.setWindowClosedCallback(new
ModalWindow.WindowClosedCallback() {

public void onClose(AjaxRequestTarget target) {

setResponsePage();
}
});
Crag wrote:
 An open modalwindow, when the form had been submmitted, I want to refresh
 parent window , and close current window, how to do ?

 the simple code:

 html
  head/head
  body
   form wicket:id=nodeForm
table
 tr
  td
   input wicket:id=name type=text /
  /td
 /tr
 tr
  td 
   input wicket:id=edit type=submit value=Add/Update
 onclick=return confirm('Are you sure you want to edit?') /
  /td
 /tr
/table
   /form
  /body
 /html


 public class EditModal extends WebPage {
  private static final long serialVersionUID = 1L;

  public Tree0EditModal(final ModalWindowPage modalWindowPage, IModel model)
 {

   final NodeForm form = new NodeForm(nodeForm, model);

   Button btnEdit = new Button(edit) {
protected void onSubmit( ) {
 System.out.println(submit...);
 // now I want to refresh parent window(modalWindowPage), and close
 current window(EditModal), how to do ?
 //ModalWindow.close(target);
}
   };

   form.add(btnEdit);
   TextField name = new TextField(name);

   form.add(name);

   add(form);
  }

  class NodeForm extends Form {
   private static final long serialVersionUID = 1L;

   public NodeForm(String id, IModel model) {
super(id, model);
   }
  }
 }




 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user

   

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Help: modalwindow question

2007-06-14 Thread Nili Adoram
add AjaxSubmitButton to the form embedded inside the modal window:

 AjaxSubmitButton submit = new AjaxSubmitButton(submitSearch,
AdvancedSearchForm.this) {


@Override
protected void onSubmit(AjaxRequestTarget target, Form form) {
ModalWindow.close(target);

}
};

Crag wrote:
 sorry.

 An opener modalwindow has a form,  when  the form onSubmit( ) , I want to 
 refresh
 parent window , and close current window, how to do ?



 Crag [EMAIL PROTECTED]  news:[EMAIL PROTECTED]
   
 thanks Nili.


 but   it's not my meaning.

 An open modalwindow has a form, when the form had been submmitted( where 
 form onSubmit( )  I will do something here), I want to refresh
 parent window , and close current window, how to do ?




 Nili Adoram [EMAIL PROTECTED]  
 news:[EMAIL PROTECTED]
 
 in your panel:


 final ModalWindow modal;
 add(modal = new ModalWindow(modalAdvancedSearch));
 add(new AjaxLink(openModal) {

@Override
public void onClick(AjaxRequestTarget target) {

modal.show(target);

}
});

 modal.setCloseButtonCallback(new ModalWindow.CloseButtonCallback() {

public boolean onCloseButtonClicked(AjaxRequestTarget target) 
 {
return true;
}
});

modal.setWindowClosedCallback(new
 ModalWindow.WindowClosedCallback() {

public void onClose(AjaxRequestTarget target) {

setResponsePage();
}
});
 Crag wrote:
   
 An open modalwindow, when the form had been submmitted, I want to 
 refresh
 parent window , and close current window, how to do ?

 the simple code:

 html
  head/head
  body
   form wicket:id=nodeForm
table
 tr
  td
   input wicket:id=name type=text /
  /td
 /tr
 tr
  td 
   input wicket:id=edit type=submit value=Add/Update
 onclick=return confirm('Are you sure you want to edit?') /
  /td
 /tr
/table
   /form
  /body
 /html


 public class EditModal extends WebPage {
  private static final long serialVersionUID = 1L;

  public Tree0EditModal(final ModalWindowPage modalWindowPage, IModel 
 model)
 {

   final NodeForm form = new NodeForm(nodeForm, model);

   Button btnEdit = new Button(edit) {
protected void onSubmit( ) {
 System.out.println(submit...);
 // now I want to refresh parent window(modalWindowPage), and 
 close
 current window(EditModal), how to do ?
 //ModalWindow.close(target);
}
   };

   form.add(btnEdit);
   TextField name = new TextField(name);

   form.add(name);

   add(form);
  }

  class NodeForm extends Form {
   private static final long serialVersionUID = 1L;

   public NodeForm(String id, IModel model) {
super(id, model);
   }
  }
 }




 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


 
 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
   


 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/ 
 




 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user

   

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] MarkupContainer.add() fails if log4j is enabled

2007-06-07 Thread Nili Adoram
If wicket policy prohibits isVisible() to depend on parent page,
you might as well make it final.
This is acceptable if you provide some other hook that may depend on
parent page.

Johan Compagner wrote:

 Moreover, this is an inconsistent behavior. System should have the
 same
 behavior regardless whether log is enabled or not. 


 thats true, i was just saying your isVisible() shouldn't absolutely
 depend on a parent page..
 It could be used in none logging code  also. The parent hierarchy
 doesn't have to be there
 in specific cases (that we tried to solve in the now dead branch 2.0)

 johan


 

 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 

 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user
   

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] MarkupContainer.add() fails if log4j is enabled

2007-06-06 Thread Nili Adoram
I come across a very puzzling behavior in wicket-1.2.2.
I add a component to its container when the page is initialized, BEFORE
it is rendered and before page model finished to initialize.
if log4j is configured to enable wicket debug, the container toString()
is called.
This method invoked isVisible() of the container.
I have overriden isVisible(), to query the page model before deciding
whether the component is actually visible.
I assumed this method is called when the component is rendered, and by
that time the model is completely initialized.
However, since it was called before component rendering, my code failed
and the page failed to be created.
My question is:
1. Why isn't toString() of Component a safe method ?
2. Why does it call isVisible before page is rendered?
Thanks
Nili

java.lang.NullPointerException
at
com.qlusters.qrm.plugins.provision.web.ProvisionWebUtils.isVeDeleted(ProvisionWebUtils.java:374)
at
com.qlusters.qrm.plugins.provision.web.ProvisioningRequestSummaryForm$15.isVisible(ProvisioningRequestSummaryForm.java:405)
at wicket.Component.toString(Component.java:2176)
at wicket.MarkupContainer.toString(MarkupContainer.java:685)
at wicket.MarkupContainer.toString(MarkupContainer.java:673)
at java.lang.String.valueOf(String.java:2615)
at java.lang.StringBuffer.append(StringBuffer.java:220)
at wicket.MarkupContainer.add(MarkupContainer.java:149)
at
com.qlusters.qrm.plugins.provision.web.ProvisioningRequestSummaryForm.addChangeIndication(ProvisioningRequestSummaryForm.java:453)
at
com.qlusters.qrm.plugins.provision.web.ProvisioningRequestSummaryForm.init(ProvisioningRequestSummaryForm.java:47)
at
com.qlusters.qrm.plugins.provision.web.ProvisioningRequestSummary.doView(ProvisioningRequestSummary.java:50)
at
com.qlusters.qrm.web.wicket.WebPageFactory.decorate(WebPageFactory.java:84)
at
com.qlusters.qrm.web.wicket.WebPageFactory.newPage(WebPageFactory.java:53)
at
wicket.request.target.component.BookmarkablePageRequestTarget.newPage(BookmarkablePageRequestTarget.java:271)
at
wicket.request.target.component.BookmarkablePageRequestTarget.getPage(BookmarkablePageRequestTarget.java:286)
at
wicket.request.target.component.BookmarkablePageRequestTarget.processEvents(BookmarkablePageRequestTarget.java:205)
at
wicket.request.compound.DefaultEventProcessorStrategy.processEvents(DefaultEventProcessorStrategy.java:65)
at
wicket.request.compound.AbstractCompoundRequestCycleProcessor.processEvents(AbstractCompoundRequestCycleProcessor.java:57)
at
wicket.RequestCycle.doProcessEventsAndRespond(RequestCycle.java:852)
at
wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:885)
at wicket.RequestCycle.step(RequestCycle.java:966)
at wicket.RequestCycle.steps(RequestCycle.java:1040)
at wicket.RequestCycle.request(RequestCycle.java:454)
at wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:216)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at
com.qlusters.qrm.server.api.objects.transactions.TransactionFilter.doFilter(TransactionFilter.java:135)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870)
at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
at java.lang.Thread.run(Thread.java:595)



Re: [Wicket-user] MarkupContainer.add() fails if log4j is enabled

2007-06-06 Thread Nili Adoram
Issued:
https://issues.apache.org/jira/browse/WICKET-622
Thanks,
Nili

Eelco Hillenius wrote:
 1. Why isn't toString() of Component a safe method ?
 

 It should be, and later versions tweaked this. However, it's still
 defaulting to the extended debug info, which is maybe not the best
 idea. Can you open a JIRA issue for this please?

 Thanks,

 Eelco

 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user

   

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] modal window is closed when form inside content panel is submitted

2007-01-10 Thread Nili Adoram

Indeed there was an error since I put an input tag for the 
AjaxSubmitLink inside the markup instead of a tag.
I fixed the markup and now the form is submitted, the modal window is 
closed and the window closed callback is invoked.

Thank you,
Nili


Matej Knopp wrote:
 Can you please check your log? Probably there will be an exception. Can 
 you post the stacktrace?

 -Matej

 Nili Adoram wrote:
   
 I tried replacing the original SubmitLink in the form with an 
 AjaxSubmitLink:

 public class AdvancedSearchForm extends Form {

 private static final String id = advanedSearchFrom;

 public AdvancedSearchForm(IModel model) {
 super(id, model);
   
 add(new TextField(name));
 add(new TextField(user));

 //  old code:
 //add(new SubmitLink(submitSearch));
 add(new AjaxSubmitLink(submitSearch,AdvancedSearchForm.this){

 @Override
 protected void onSubmit(AjaxRequestTarget target, Form form) {
 ModalWindow.close(target);

 }});
 }
  
 }

 However the modal window did not open and the following errors were 
 displayed:

 Firefox Error console:
 
 Error: no element found
 Source File: 
 http://nilia/provision?wicket:interface=:9:simpleSearchPanel:advancedSearch::IBehaviorListenerwicket:behaviorId=0random=0.6456663530703572
 Line: 1, Column: 54
 Source Code:
 ?xml version=1.0 
 encoding=UTF-8?ajax-response-^
 Error: no element found
 Source File: 
 http://nilia/provision/plugins/request-provision/ProvisioningRequests
 Line: 1, Column: 54
 Source Code:
 ?xml version=1.0 
 encoding=UTF-8?ajax-response-^

 Wicket Ajax Debug window:
 -
 ?xml version=1.0 encoding=UTF-8?ajax-response
 ERROR: Error while parsing response: Could not find root ajax-response 
 element
  INFO: Invoking post-call handler(s)...
  INFO: Invoking failure handler(s)...

 When I replace the AjaxSubmitLink back with a SubmitLink the modal 
 window properly appears.

 Thanks
 Nili

 Matej Knopp wrote:
 
 You have to use AjaxSubmitLink and call Window.close(target) inside the 
 onSubmit(AjaxRequestTarget...) method.

 -Matej

 Nili Adoram wrote:
   
   
 Hi all,

 I have a panel (named AdvancedSearchPanel) containing a Form with a 
 SubmitLink.

 I open this panel inside a modal dialog:

 final ModalWindow modal;
 add(modal = new ModalWindow(modalAdvancedSearch));

 final AdvancedSearchPanel searchPanel = new 
 AdvancedSearchPanel(modal
 .getContentId());
 modal.setContent(searchPanel);

 When the form is submitted, a message is displayed  (Reloading this 
 page will cause the modal window disappear.)  and the modal window is 
 closed.

 However, the CloseButtonCallback and WindowClosedCallback are not called.

 These callbacks are only called if the close button is clicked.

 What causes the submit button to close the window?
 How can verify that these callbacks are invoked whenever the window is 
 closed?

 Thanks,
 Nili



 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share 
 your
 opinions on IT  business topics through brief surveys - and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user

 
 
 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys - and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user

   
   
 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys - and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user

 


 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions

[Wicket-user] modal window is closed when form inside content panel is submitted

2007-01-09 Thread Nili Adoram
Hi all,

I have a panel (named AdvancedSearchPanel) containing a Form with a 
SubmitLink.

I open this panel inside a modal dialog:

final ModalWindow modal;
add(modal = new ModalWindow(modalAdvancedSearch));

final AdvancedSearchPanel searchPanel = new 
AdvancedSearchPanel(modal
.getContentId());
modal.setContent(searchPanel);

When the form is submitted, a message is displayed  (Reloading this 
page will cause the modal window disappear.)  and the modal window is 
closed.

However, the CloseButtonCallback and WindowClosedCallback are not called.

These callbacks are only called if the close button is clicked.

What causes the submit button to close the window?
How can verify that these callbacks are invoked whenever the window is 
closed?

Thanks,
Nili



-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] modal window is closed when form inside content panel is submitted

2007-01-09 Thread Nili Adoram
I tried replacing the original SubmitLink in the form with an 
AjaxSubmitLink:

public class AdvancedSearchForm extends Form {

private static final String id = advanedSearchFrom;

public AdvancedSearchForm(IModel model) {
super(id, model);
  
add(new TextField(name));
add(new TextField(user));

//  old code:
//add(new SubmitLink(submitSearch));
add(new AjaxSubmitLink(submitSearch,AdvancedSearchForm.this){

@Override
protected void onSubmit(AjaxRequestTarget target, Form form) {
ModalWindow.close(target);
   
}});
}
 
}

However the modal window did not open and the following errors were 
displayed:

Firefox Error console:

Error: no element found
Source File: 
http://nilia/provision?wicket:interface=:9:simpleSearchPanel:advancedSearch::IBehaviorListenerwicket:behaviorId=0random=0.6456663530703572
Line: 1, Column: 54
Source Code:
?xml version=1.0 
encoding=UTF-8?ajax-response-^
Error: no element found
Source File: 
http://nilia/provision/plugins/request-provision/ProvisioningRequests
Line: 1, Column: 54
Source Code:
?xml version=1.0 
encoding=UTF-8?ajax-response-^

Wicket Ajax Debug window:
-
?xml version=1.0 encoding=UTF-8?ajax-response
ERROR: Error while parsing response: Could not find root ajax-response element
 INFO: Invoking post-call handler(s)...
 INFO: Invoking failure handler(s)...

When I replace the AjaxSubmitLink back with a SubmitLink the modal 
window properly appears.

Thanks
Nili

Matej Knopp wrote:
 You have to use AjaxSubmitLink and call Window.close(target) inside the 
 onSubmit(AjaxRequestTarget...) method.

 -Matej

 Nili Adoram wrote:
   
 Hi all,

 I have a panel (named AdvancedSearchPanel) containing a Form with a 
 SubmitLink.

 I open this panel inside a modal dialog:

 final ModalWindow modal;
 add(modal = new ModalWindow(modalAdvancedSearch));

 final AdvancedSearchPanel searchPanel = new 
 AdvancedSearchPanel(modal
 .getContentId());
 modal.setContent(searchPanel);

 When the form is submitted, a message is displayed  (Reloading this 
 page will cause the modal window disappear.)  and the modal window is 
 closed.

 However, the CloseButtonCallback and WindowClosedCallback are not called.

 These callbacks are only called if the close button is clicked.

 What causes the submit button to close the window?
 How can verify that these callbacks are invoked whenever the window is 
 closed?

 Thanks,
 Nili



 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys - and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user

 


 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys - and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user

   

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] modal window with form

2007-01-08 Thread Nili Adoram
Hi all,
I want to implement the following:
All application pages should contain some Search button.
When the user clicks this button, a modal dialog with Search Form will 
be displayed.
Once the user submits the form the modal dialog should be closed and 
Search Results Page will be displayed.

What would be the best practice to implement this?
Thanks
Nili

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] ajax causes page to expire when 2 browser tabsareopen with bookmarkable pages

2006-11-28 Thread Nili Adoram
If 2 browser tabs are already open and I paste the same URL into both 
tabs they are both created in the same page map.
WebPage.onNewBrowserWindow() hook is never called if the tabs are 
already open.
Thus, after the first is refreshed by Ajax, the second fails to refresh 
by Ajax.

How can I VERIFY that they are not opened in the same page map?

Thanks.
-- Nili

Igor Vaynberg wrote:
 whatever does not work, can you reproduce it in a quickstart so we can 
 debug it?

 -igor


 On 11/27/06, *Eelco Hillenius*  [EMAIL PROTECTED] 
 mailto:[EMAIL PROTECTED] wrote:

 There's a trick in Wicket that tries to match the window name and the
 page map name. This works in many cases. You'll find the script in
 class WebPage, and if you use links with popup specs and a proper page
 map etc, or e.g. open a new tab and paste your current URL in, you'll
 find it works in many cases.

 Eelco


 On 11/27/06, Nili Adoram [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED] wrote:
  How do I do that?
  How do I recognize that an instance of that page is currently
 active
  within a different browser tab?
  Should I explore all page maps?
 
  Thanks,
  -- Nili
 
  Eelco Hillenius wrote:
   You should make sure those two tabs each have their own pagemap.
   Wicket tries as much as it can to do this automatically, but
 it helps
   if you do this manually as well.
  
   Eelco
  
  
   On 11/27/06, Nili Adoram  [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED] wrote:
  
   Hi all,
  
   I have a 'Item editing' page containing a form. When the form is
   submitted I want to return to the 'Item List' page but with
 fresh data.
   In order to do that, after the form is submitted I look for
 the last
   instance of the Item List page in the page map, retrieve some
 of its
   page parameters (sorting, filtering, paging params) ,
   and call setResponsePage with this page class and page
 parameters. This
   constructs a bookmarkable page with fresh data.
   In addition this page contains an AjaxEventBehavior that
 refreshes some
   of the page components once a minute.
   This all works great if only one browser tab is open.
  
   However, if two browser tabs are open simultaneously things
 go wrong:
   I open the Item List page in both tabs.
   I open the Item page in one tab and submit the form.
   I open the Item page in the second tab and submit the form.
   When ajax tries to refresh the first tab it fails to find the
 page
   (inside
 DefaultRequestTargetResolverStrategyresolveRenderedPage()) and
   'page expired' page is displayed.
  
   getCallBackScript of AjaxEventBehavior is called with false for
   recordPageVersion and false for onlyTargetActivePage.
   If I modify onlyTargetActivePage to true one of the tabs stops
   refreshing after the aforementioned scenario.
  
   Any ideas how to avoid this page expired problem ?
  
   Thanks,
   Nili
  
  
 -

   Take Surveys. Earn Cash. Influence the Future of IT
   Join SourceForge.net's Techsay panel and you'll get the
 chance to share your
   opinions on IT  business topics through brief surveys - and
 earn cash
  
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
 mailto:Wicket-user@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/wicket-user
  
  
  
  
 -
   Take Surveys. Earn Cash. Influence the Future of IT
   Join SourceForge.net's Techsay panel and you'll get the chance
 to share your
   opinions on IT  business topics through brief surveys - and
 earn cash
  
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
 mailto:Wicket-user@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/wicket-user
  
  
 
 
 -

  Take Surveys. Earn Cash. Influence the Future of IT
  Join SourceForge.net's Techsay panel and you'll get the chance
 to share your
  opinions on IT  business topics through brief surveys - and
 earn cash
 
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID

[Wicket-user] setResponsePage() with page map

2006-11-28 Thread Nili Adoram
Hi all,

Component.setResponsePage(Class cls, PageParameters params) creates a 
bookmarkable page.
However I cannot determine in which page map it is created.
How can I overload this method setResponsePage(String pageMapName, Class 
cls, PageParameters params) ?

Thanks,
-- Nili

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] ajax causes page to expire when 2 browser tabs are open with bookmarkable pages

2006-11-27 Thread Nili Adoram
Hi all,

I have a 'Item editing' page containing a form. When the form is 
submitted I want to return to the 'Item List' page but with fresh data.
In order to do that, after the form is submitted I look for the last 
instance of the Item List page in the page map, retrieve some of its 
page parameters (sorting, filtering, paging params) ,
and call setResponsePage with this page class and page parameters. This 
constructs a bookmarkable page with fresh data.
In addition this page contains an AjaxEventBehavior that refreshes some 
of the page components once a minute.
This all works great if only one browser tab is open.

However, if two browser tabs are open simultaneously things go wrong:
I open the Item List page in both tabs.
I open the Item page in one tab and submit the form.
I open the Item page in the second tab and submit the form.
When ajax tries to refresh the first tab it fails to find the page 
(inside DefaultRequestTargetResolverStrategyresolveRenderedPage()) and 
'page expired' page is displayed.

getCallBackScript of AjaxEventBehavior is called with false for  
recordPageVersion and false for onlyTargetActivePage.
If I modify onlyTargetActivePage to true one of the tabs stops 
refreshing after the aforementioned scenario.

Any ideas how to avoid this page expired problem ?

Thanks,
Nili

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] ajax causes page to expire when 2 browser tabsare open with bookmarkable pages

2006-11-27 Thread Nili Adoram
How do I do that?
How do I recognize that an instance of that page is currently active 
within a different browser tab?
Should I explore all page maps?

Thanks,
-- Nili

Eelco Hillenius wrote:
 You should make sure those two tabs each have their own pagemap.
 Wicket tries as much as it can to do this automatically, but it helps
 if you do this manually as well.

 Eelco


 On 11/27/06, Nili Adoram [EMAIL PROTECTED] wrote:
   
 Hi all,

 I have a 'Item editing' page containing a form. When the form is
 submitted I want to return to the 'Item List' page but with fresh data.
 In order to do that, after the form is submitted I look for the last
 instance of the Item List page in the page map, retrieve some of its
 page parameters (sorting, filtering, paging params) ,
 and call setResponsePage with this page class and page parameters. This
 constructs a bookmarkable page with fresh data.
 In addition this page contains an AjaxEventBehavior that refreshes some
 of the page components once a minute.
 This all works great if only one browser tab is open.

 However, if two browser tabs are open simultaneously things go wrong:
 I open the Item List page in both tabs.
 I open the Item page in one tab and submit the form.
 I open the Item page in the second tab and submit the form.
 When ajax tries to refresh the first tab it fails to find the page
 (inside DefaultRequestTargetResolverStrategyresolveRenderedPage()) and
 'page expired' page is displayed.

 getCallBackScript of AjaxEventBehavior is called with false for
 recordPageVersion and false for onlyTargetActivePage.
 If I modify onlyTargetActivePage to true one of the tabs stops
 refreshing after the aforementioned scenario.

 Any ideas how to avoid this page expired problem ?

 Thanks,
 Nili

 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys - and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user

 

 -
 Take Surveys. Earn Cash. Influence the Future of IT
 Join SourceForge.net's Techsay panel and you'll get the chance to share your
 opinions on IT  business topics through brief surveys - and earn cash
 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user

   

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] wicket 1.2.1 and ModalDialog problem

2006-11-14 Thread Nili Adoram
replace the hard-coded window.open with window.showModalDialog or some 
other javascript method that determines the size and location of the 
popup relative to the opener.

Johan Compagner wrote:
 just curious why do you want to extend it? what do you need?

 johan


 On 11/14/06, *Nili Adoram* [EMAIL PROTECTED] 
 mailto:[EMAIL PROTECTED] wrote:

 In version 1.2.2 is it still cumbersome to extend PopupSettings.
 all fields are private (windowName, top, left etc.) with no
 getters, as
 well as flagToString().

 -- Nili

 Eelco Hillenius wrote:
  I'm having trouble with porting this code into wicket. For the
 first
  time when one clicks the ... button, modal dialog comes up.
 For the
  following clicks, IE opens up both a new window and the modal
 dialog
  with the same contents.
  With FF it works as expected.
 
  I suspect, it has something to do with pagemaps or versioning,
 but how
  could I know, I'm new to wicket world. Please, help me.
 
 
  Could you try with the latest Wicket version from branch wicket-1.x?
  We just removed a redundant check for page maps that was a problem
  with frames; that might be a problem here too.
 
 
  BTW, in order to make a different javascript code I copy-pasted
 entire
  content of PopupSettings and made a new getPopupSettings
 function. Is
  there other way around?
 
 
  Kind of the same, but you don't have to copy the whole class if you
  extend. This:
 
PopupSettings popupSettings = new MyPopupSettings(
 PageMap.forName(popup)) {
  public String getPopupJavaScript() {
// return your custom javascript here
  }
}
 
  Eelco
 
 
 -

  Using Tomcat but need to do more? Need to support web services,
 security?
  Get stuff done quickly with pre-integrated technology to make
 your job easier
  Download IBM WebSphere Application Server v.1.0.1 based on
 Apache Geronimo
 
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
 mailto:Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 


 -
 Using Tomcat but need to do more? Need to support web services,
 security?
 Get stuff done quickly with pre-integrated technology to make your
 job easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache
 Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 mailto:Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


 

 -
 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 

 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user
   

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] window name is not taken fromPopopSetting'spagemap

2006-11-13 Thread Nili Adoram
Sorry, this was my mistake.
I rewrote the URL inside the javascript function getReportUrl() and 
omitted the page map from URL.

Thanks.

Eelco Hillenius wrote:
 I the current version of Wicket the target is set on bookmarkable
 links when you explicitly set the target on the link itself. You don't
 need this for popups though, as this is the window name you're passing
 in.

 window.open(getReportUrl(), 'myReport'   ---

 If you look at the url:
 '/mypath//MyReport?wicket:bookmarkablePage=myReport:com.MyReport'

 you can see the pagemap being part of page path (myReport), so that
 all looks just fine.

 So I don't know what your issue is exactly, as what is generated looks
 fine (the second parameter of window.open is 'myReport' which is
 exactly what it should be).

 Eelco


 On 11/13/06, Nili Adoram [EMAIL PROTECTED] wrote:
   
 onComponentTag of Link does not write any target attribute.

 It looks like the bookmarkable page is not entered to the proper page
 map so renderHead in WebPage sets window name to wicket:default.

 Erik van Oosten wrote:
 
 Should this not also include a target attribute, e.g. target=myReport?

   Erik.

 Nili Adoram write:

   
 Yes, the generated link is:

 a href=/mypath//MyReport?wicket:bookmarkablePage=myReport:com.MyReport 
 wicket:id=reportLink onclick=window.open(getReportUrl(), 'myReport', 
 'scrollbars=yes,location=no,menuBar=no,resizable=no,status=no,toolbar=no');
   return false; id=reportLinkReport/a


 Johan Compagner wrote:


 
 what does the link where you click on look like?

 Does it include the pagemap?

 johan


   
 -
 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user

 

 -
 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user

   

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Too many open files

2006-11-13 Thread Nili Adoram
This solves the problem of course.

However, why does the ModificationWatcher look for modified resources 
within wicket jars?
If component A extends component B, the MarkupCache should indeed verify 
watch B as well unless it is a wicket component.
Why would anyone replace markup inside a wicket jar?


Eelco Hillenius wrote:
 You probably run in development mode? Set it to development and your
 problems should be gone.

   context-param
 param-nameconfiguration/param-name
 param-valuedeployment/param-value
   /context-param

 Upgrading shouldn't solve any particular problems here I think, though
 we solved enough issues to upgrade to the latest anyway :)

 Eelco



 On 11/13/06, Nili Adoram [EMAIL PROTECTED] wrote:
   
 Hi all,
 When running our Wicket based web application as well Nagios on the same 
 machine
 we come across Too many open files problem.
 We are using soft limit of 4096 and hard limit of 63536.
 However, we are monitoring the number of file handles open and it is
 gradually increasing.


 The files - /opt/qrm/java/webapp/WEB-INF/lib/wicket-1.2.2.jar 
 /opt/qrm/java/webapp/WEB-INF/lib/wicket-extensions-1.2.2-patch.jar are
 being opened repeatedly.

 Eventually we see the following problem and the web server is stuck.

 Any ideas?


 2006-11-08 19:42:22,104 ERROR [ManagerBase] (Thread-29:) IOException
 while saving persisted sessions: java.io.FileNotFoundException:
 /opt/qrm/usr/tomcat/work/Catalina/localhost/host-manager/SESSIONS.ser
 (Too many open files)

  java.io.FileNotFoundException:
 /opt/qrm/usr/tomcat/work/Catalina/localhost/host-manager/SESSIONS.ser
 (Too many open files)

 at java.io.FileOutputStream.open(Native Method)

 at java.io.FileOutputStream.init(FileOutputStream.java:179)

 at java.io.FileOutputStream.init(FileOutputStream.java:70)

 at
 org.apache.catalina.session.StandardManager.doUnload(StandardManager.java:488)

 at
 org.apache.catalina.session.StandardManager.unload(StandardManager.java:462)

 at
 org.apache.catalina.session.StandardManager.stop(StandardManager.java:666)

 at
 org.apache.catalina.core.StandardContext.stop(StandardContext.java:4337)

 at
 org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:892)

 at
 org.apache.catalina.startup.HostConfig.undeployApps(HostConfig.java:1153)

 at org.apache.catalina.startup.HostConfig.stop(HostConfig.java:1125)

 at
 org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:312)

 at
 org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)

 at
 org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1054)

 at
 org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1066)

 at
 org.apache.catalina.core.StandardEngine.stop(StandardEngine.java:447)

 at
 org.apache.catalina.core.StandardService.stop(StandardService.java:512)

 at
 org.apache.catalina.core.StandardServer.stop(StandardServer.java:743)

 at org.apache.catalina.startup.Catalina.stop(Catalina.java:601)

 at
 org.apache.catalina.startup.Catalina$CatalinaShutdownHook.run(Catalina.java:644)



 -
 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user

 

 -
 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user

   

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] wicket 1.2.1 and ModalDialog problem

2006-11-13 Thread Nili Adoram
In version 1.2.2 is it still cumbersome to extend PopupSettings.
all fields are private (windowName, top, left etc.) with no getters, as
well as flagToString().

-- Nili

Eelco Hillenius wrote:
 I'm having trouble with porting this code into wicket. For the first
 time when one clicks the ... button, modal dialog comes up. For the
 following clicks, IE opens up both a new window and the modal dialog
 with the same contents.
 With FF it works as expected.

 I suspect, it has something to do with pagemaps or versioning, but how
 could I know, I'm new to wicket world. Please, help me.
 

 Could you try with the latest Wicket version from branch wicket-1.x?
 We just removed a redundant check for page maps that was a problem
 with frames; that might be a problem here too.

   
 BTW, in order to make a different javascript code I copy-pasted entire
 content of PopupSettings and made a new getPopupSettings function. Is
 there other way around?
 

 Kind of the same, but you don't have to copy the whole class if you
 extend. This:

   PopupSettings popupSettings = new MyPopupSettings(PageMap.forName(popup)) 
 {
 public String getPopupJavaScript() {
   // return your custom javascript here
 }
   }

 Eelco

 -
 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user

   


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] window name is not taken from PopopSetting's page map

2006-11-12 Thread Nili Adoram
Hi all,
I've created a BookmarkableLink with PopupSettings:
BookmarkablePageLink reportButton = new 
BookmarkablePageLink(reportLink, MyReport.class);
PopupSettings popup = new PopupSettings(PageMap.forName(myReport), 
PopupSettings.SCROLLBARS);
popup.setTarget(getReportUrl());   //a javascript function that 
determines the URL
reportButton.setPopupSettings(popup);
add(reportButton);

However, when the popup is opened and I call window.name I get 
wicket:default.
Consequently, whenever  I click this link a new popup is opened instead 
of reusing the same window.

It seems that when the bookmarkable page is created it does not get the 
popup page map.

I tried with ExternalLink and Link but nothing helped.

How can I guarantee that the popup is opened with the name I set in 
PopupSettings.

Thanks,
Nili



-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] window name is not taken from PopopSetting's pagemap

2006-11-12 Thread Nili Adoram
Yes, the generated link is:

a href=/mypath//MyReport?wicket:bookmarkablePage=myReport:com.MyReport 
wicket:id=reportLink onclick=window.open(getReportUrl(), 'myReport', 
'scrollbars=yes,location=no,menuBar=no,resizable=no,status=no,toolbar=no');  
return false; id=reportLinkReport/a


Johan Compagner wrote:
 what does the link where you click on look like?

 Does it include the pagemap?

 johan


 On 11/12/06, *Nili Adoram*  [EMAIL PROTECTED] 
 mailto:[EMAIL PROTECTED] wrote:

 Hi all,
 I've created a BookmarkableLink with PopupSettings:
 BookmarkablePageLink reportButton = new
 BookmarkablePageLink(reportLink, MyReport.class);
 PopupSettings popup = new PopupSettings(PageMap.forName(myReport),
 PopupSettings.SCROLLBARS);
 popup.setTarget(getReportUrl());   //a javascript function that
 determines the URL
 reportButton.setPopupSettings(popup);
 add(reportButton);

 However, when the popup is opened and I call window.name
 http://window.name I get
 wicket:default.
 Consequently, whenever  I click this link a new popup is opened
 instead
 of reusing the same window.

 It seems that when the bookmarkable page is created it does not
 get the
 popup page map.

 I tried with ExternalLink and Link but nothing helped.

 How can I guarantee that the popup is opened with the name I set in
 PopupSettings.

 Thanks,
 Nili



 -

 Using Tomcat but need to do more? Need to support web services,
 security?
 Get stuff done quickly with pre-integrated technology to make your
 job easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache
 Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 mailto:Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user
 https://lists.sourceforge.net/lists/listinfo/wicket-user


 

 -
 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 

 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user
   

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Too many open files

2006-11-12 Thread Nili Adoram
Hi all,
When running our Wicket based web application as well Nagios on the same 
machine 
we come across Too many open files problem.
We are using soft limit of 4096 and hard limit of 63536.
However, we are monitoring the number of file handles open and it is
gradually increasing. 


The files - /opt/qrm/java/webapp/WEB-INF/lib/wicket-1.2.2.jar  
/opt/qrm/java/webapp/WEB-INF/lib/wicket-extensions-1.2.2-patch.jar are
being opened repeatedly. 

Eventually we see the following problem and the web server is stuck.

Any ideas?


2006-11-08 19:42:22,104 ERROR [ManagerBase] (Thread-29:) IOException 
while saving persisted sessions: java.io.FileNotFoundException: 
/opt/qrm/usr/tomcat/work/Catalina/localhost/host-manager/SESSIONS.ser 
(Too many open files)

 java.io.FileNotFoundException: 
/opt/qrm/usr/tomcat/work/Catalina/localhost/host-manager/SESSIONS.ser 
(Too many open files)

at java.io.FileOutputStream.open(Native Method)

at java.io.FileOutputStream.init(FileOutputStream.java:179)

at java.io.FileOutputStream.init(FileOutputStream.java:70)

at 
org.apache.catalina.session.StandardManager.doUnload(StandardManager.java:488)

at 
org.apache.catalina.session.StandardManager.unload(StandardManager.java:462)

at 
org.apache.catalina.session.StandardManager.stop(StandardManager.java:666)

at 
org.apache.catalina.core.StandardContext.stop(StandardContext.java:4337)

at 
org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:892)

at 
org.apache.catalina.startup.HostConfig.undeployApps(HostConfig.java:1153)

at org.apache.catalina.startup.HostConfig.stop(HostConfig.java:1125)

at 
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:312)

at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)

at 
org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1054)

at 
org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1066)

at 
org.apache.catalina.core.StandardEngine.stop(StandardEngine.java:447)

at 
org.apache.catalina.core.StandardService.stop(StandardService.java:512)

at 
org.apache.catalina.core.StandardServer.stop(StandardServer.java:743)

at org.apache.catalina.startup.Catalina.stop(Catalina.java:601)

at 
org.apache.catalina.startup.Catalina$CatalinaShutdownHook.run(Catalina.java:644)



-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] window name is not taken fromPopopSetting's pagemap

2006-11-12 Thread Nili Adoram
onComponentTag of Link does not write any target attribute.

It looks like the bookmarkable page is not entered to the proper page 
map so renderHead in WebPage sets window name to wicket:default.

Erik van Oosten wrote:
 Should this not also include a target attribute, e.g. target=myReport?

   Erik.

 Nili Adoram write:
   
 Yes, the generated link is:

 a href=/mypath//MyReport?wicket:bookmarkablePage=myReport:com.MyReport 
 wicket:id=reportLink onclick=window.open(getReportUrl(), 'myReport', 
 'scrollbars=yes,location=no,menuBar=no,resizable=no,status=no,toolbar=no');  
 return false; id=reportLinkReport/a


 Johan Compagner wrote:
   
 
 what does the link where you click on look like?

 Does it include the pagemap?

 johan
 
   

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] inconsistent exception

2006-09-11 Thread Nili Adoram
After a long testing cycle we've discovered the problem.
Since we work in development mode, by default Page.checkRendering() 
verifies that all page components were indeed rendered.
When each component is rendered it calls Page.componentRendered().
This method is responsible for adding the calling component to the list 
of rendered components, if debug settings require that (again, true in 
development mode).

However, if during this checkRendering an AJAX request has been sent, it 
turns componentUseCheck to false.
This causes to all components that were not yet check to be marked as 
unredered which causes a WicketRuntimeException - The component(s) 
below failed to render...

This looks like a bug to me. I believe there should be some protection 
on the currently checked page.

Moreover, it seems that working in deployment mode will never reveal 
this problem.

Please advise,
Thanks,
Nili

Nili Adoram wrote:
 Could this be a race between Ajax and synchronized rendering?
 Is it possible that Ajax has removed nodes from the DOM and the when 
 Page tries to render itself it does not find the components in the markup?

 Tomer Mevorach wrote:
   
 Hi,
 My application works fine most of the time, however, sometimes an 
 exception indicating a mismatch between java and html component's 
 hierarchy is thrown.
 I can't think of a test case that generates this exception as it is 
 thrown inconsistently.
 can anyone please help figure out the problem.

 I must add that all of my pages are unversioned and some of the 
 components are being refreshed by ajax every 5 seconds.

 Best Regards,
 Tomer.


 Runtime exception has ocurred in Page [Page class = 
 com.qlusters.qrm.plugins.provision.web.ProvisioningRequest, id = 2]. 
 Original cause: The component(s) below failed to render. A common 
 problem is that you have added a component in code but forgot to 
 reference it in the markup (thus the component will never be rendered). 
 1. [MarkupContainer [Component id = feedback, page = 
 com.qlusters.qrm.plugins.provision.web.ProvisioningRequest, path = 
 2:feedback.JavascriptFeedbackPanel, isVisible = true, isVersioned = 
 false]] 2. [MarkupContainer [Component id = feedback-simple, page = 
 com.qlusters.qrm.plugins.provision.web.ProvisioningRequest, path = 
 2:feedback-simple.FeedbackPanel, isVisible = true, isVersioned = false]] 
 3. [Component id = breadcrumbs, page = 
 com.qlusters.qrm.plugins.provision.web.ProvisioningRequest, path = 
 2:breadcrumbs.Label, isVisible = true, isVersioned = false] 4. 
 [Component id = title, page = 
 com.qlusters.qrm.plugins.provision.web.ProvisioningRequest, path = 
 2:title.Label, isVisible = true, isVersioned = false] 5. 
 [MarkupContainer [Component id = mainTabs, page = 
 com.qlusters.qrm.plugins.provision.web.ProvisioningRequest, path = 
 2:mainTabs.FiltersPanel, isVisible = true, isVersioned = false]] 6. 
 [MarkupContainer [Component id = filters, page = 
 com.qlusters.qrm.plugins.provision.web.ProvisioningRequest, path = 
 2:mainTabs:filters.FiltersPanel$FiltersListView, isVisible = true, 
 isVersioned = false]] 7. [MarkupContainer [Component id = 0, page = 
 com.qlusters.qrm.plugins.provision.web.ProvisioningRequest, path = 
 2:mainTabs:filters:0.ListItem, isVisible = true, isVersioned = false]] 
 8. [MarkupContainer [Component id = filterLink, page = 
 com.qlusters.qrm.plugins.provision.web.ProvisioningRequest, path = 
 2:mainTabs:filters:0:filterLink.FiltersPanel$FiltersListView$1, 
 isVisible = true, isVersioned = false]] 9. [Component id = filterImage, 
 page = com.qlusters.qrm.plugins.provision.web.ProvisioningRequest, path 
 = 
 2:mainTabs:filters:0:filterLink:filterImage.FiltersPanel$FiltersListView$2, 
 isVisible = true, isVersioned = false] 10. [Component id = filterCount, 
 page = com.qlusters.qrm.plugins.provision.web.ProvisioningRequest, path 
 = 2:mainTabs:filters:0:filterLink:filterCount.Label, isVisible = true, 
 isVersioned = false] 11. [MarkupContainer [Component id = 1, page = 
 com.qlusters.qrm.plugins.provision.web.ProvisioningRequest, path = 
 2:mainTabs:filters:1.ListItem, isVisible = true, isVersioned = false]] 
 12. [MarkupContainer [Component id = filterLink, page = 
 com.qlusters.qrm.plugins.provision.web.ProvisioningRequest, path = 
 2:mainTabs:filters:1:filterLink.FiltersPanel$FiltersListView$1, 
 isVisible = true, isVersioned = false]] 13. [Component id = filterImage, 
 page = com.qlusters.qrm.plugins.provision.web.ProvisioningRequest, path 
 = 
 2:mainTabs:filters:1:filterLink:filterImage.FiltersPanel$FiltersListView$2, 
 isVisible = true, isVersioned = false] 14. [Component id = filterCount, 
 page = com.qlusters.qrm.plugins.provision.web.ProvisioningRequest, path 
 = 2:mainTabs:filters:1:filterLink:filterCount.Label, isVisible = true, 
 isVersioned = false] 15. [MarkupContainer [Component id = 2, page = 
 com.qlusters.qrm.plugins.provision.web.ProvisioningRequest, path = 
 2:mainTabs:filters:2.ListItem, isVisible = true, isVersioned = false

Re: [Wicket-user] DatePicker enabled

2006-09-09 Thread Nili Adoram
I faced the same issue not long ago and solved it by adding a disabled 
date picker image and toggling between the enabled and disabled date 
pickers by modifying the disabled attribute.

Igor Vaynberg wrote:
 yes. datepicker doesnt support the disabled attribute yet. if you 
 would like you can create a patch and send it in. the core team will 
 be concentrating on replacing it because of license issues with what 
 is now in wicket-contrib-datepicker (about 20% there). help is always 
 welcome.

 -Igor


 On 9/8/06, *Charles A Deal* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 
 wrote:


 I am using the DatePicker
 (wicket.extensions.markup.html.datepicker) Panel on one of my
 forms.  I want it to start out disabled so I called
 setEnabled(false) on the object.  However, I can still click on
 the DatePicker icon.  

 Admittedly, I am still very new to this, but after looking at the
 code, it looks like the TriggerButton is not picking up the
 settings from the Parent.  So, the TriggerButton doesn't know that
 it is supposed to be disabled.  Is this a correct statement?

 Charles Deal

 -
 Using Tomcat but need to do more? Need to support web services,
 security?
 Get stuff done quickly with pre-integrated technology to make your
 job easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache
 Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642

 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 mailto:Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user
 https://lists.sourceforge.net/lists/listinfo/wicket-user



 

 -
 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 

 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user
   

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] inconsistent exception

2006-09-05 Thread Nili Adoram
Could this be a race between Ajax and synchronized rendering?
Is it possible that Ajax has removed nodes from the DOM and the when 
Page tries to render itself it does not find the components in the markup?

Tomer Mevorach wrote:
 Hi,
 My application works fine most of the time, however, sometimes an 
 exception indicating a mismatch between java and html component's 
 hierarchy is thrown.
 I can't think of a test case that generates this exception as it is 
 thrown inconsistently.
 can anyone please help figure out the problem.

 I must add that all of my pages are unversioned and some of the 
 components are being refreshed by ajax every 5 seconds.

 Best Regards,
 Tomer.


 Runtime exception has ocurred in Page [Page class = 
 com.qlusters.qrm.plugins.provision.web.ProvisioningRequest, id = 2]. 
 Original cause: The component(s) below failed to render. A common 
 problem is that you have added a component in code but forgot to 
 reference it in the markup (thus the component will never be rendered). 
 1. [MarkupContainer [Component id = feedback, page = 
 com.qlusters.qrm.plugins.provision.web.ProvisioningRequest, path = 
 2:feedback.JavascriptFeedbackPanel, isVisible = true, isVersioned = 
 false]] 2. [MarkupContainer [Component id = feedback-simple, page = 
 com.qlusters.qrm.plugins.provision.web.ProvisioningRequest, path = 
 2:feedback-simple.FeedbackPanel, isVisible = true, isVersioned = false]] 
 3. [Component id = breadcrumbs, page = 
 com.qlusters.qrm.plugins.provision.web.ProvisioningRequest, path = 
 2:breadcrumbs.Label, isVisible = true, isVersioned = false] 4. 
 [Component id = title, page = 
 com.qlusters.qrm.plugins.provision.web.ProvisioningRequest, path = 
 2:title.Label, isVisible = true, isVersioned = false] 5. 
 [MarkupContainer [Component id = mainTabs, page = 
 com.qlusters.qrm.plugins.provision.web.ProvisioningRequest, path = 
 2:mainTabs.FiltersPanel, isVisible = true, isVersioned = false]] 6. 
 [MarkupContainer [Component id = filters, page = 
 com.qlusters.qrm.plugins.provision.web.ProvisioningRequest, path = 
 2:mainTabs:filters.FiltersPanel$FiltersListView, isVisible = true, 
 isVersioned = false]] 7. [MarkupContainer [Component id = 0, page = 
 com.qlusters.qrm.plugins.provision.web.ProvisioningRequest, path = 
 2:mainTabs:filters:0.ListItem, isVisible = true, isVersioned = false]] 
 8. [MarkupContainer [Component id = filterLink, page = 
 com.qlusters.qrm.plugins.provision.web.ProvisioningRequest, path = 
 2:mainTabs:filters:0:filterLink.FiltersPanel$FiltersListView$1, 
 isVisible = true, isVersioned = false]] 9. [Component id = filterImage, 
 page = com.qlusters.qrm.plugins.provision.web.ProvisioningRequest, path 
 = 
 2:mainTabs:filters:0:filterLink:filterImage.FiltersPanel$FiltersListView$2, 
 isVisible = true, isVersioned = false] 10. [Component id = filterCount, 
 page = com.qlusters.qrm.plugins.provision.web.ProvisioningRequest, path 
 = 2:mainTabs:filters:0:filterLink:filterCount.Label, isVisible = true, 
 isVersioned = false] 11. [MarkupContainer [Component id = 1, page = 
 com.qlusters.qrm.plugins.provision.web.ProvisioningRequest, path = 
 2:mainTabs:filters:1.ListItem, isVisible = true, isVersioned = false]] 
 12. [MarkupContainer [Component id = filterLink, page = 
 com.qlusters.qrm.plugins.provision.web.ProvisioningRequest, path = 
 2:mainTabs:filters:1:filterLink.FiltersPanel$FiltersListView$1, 
 isVisible = true, isVersioned = false]] 13. [Component id = filterImage, 
 page = com.qlusters.qrm.plugins.provision.web.ProvisioningRequest, path 
 = 
 2:mainTabs:filters:1:filterLink:filterImage.FiltersPanel$FiltersListView$2, 
 isVisible = true, isVersioned = false] 14. [Component id = filterCount, 
 page = com.qlusters.qrm.plugins.provision.web.ProvisioningRequest, path 
 = 2:mainTabs:filters:1:filterLink:filterCount.Label, isVisible = true, 
 isVersioned = false] 15. [MarkupContainer [Component id = 2, page = 
 com.qlusters.qrm.plugins.provision.web.ProvisioningRequest, path = 
 2:mainTabs:filters:2.ListItem, isVisible = true, isVersioned = false]] 
 16. [MarkupContainer [Component id = filterLink, page = 
 com.qlusters.qrm.plugins.provision.web.ProvisioningRequest, path = 
 2:mainTabs:filters:2:filterLink.FiltersPanel$FiltersListView$1, 
 isVisible = true, isVersioned = false]] 17. [Component id = filterImage, 
 page = com.qlusters.qrm.plugins.provision.web.ProvisioningRequest, path 
 = 
 2:mainTabs:filters:2:filterLink:filterImage.FiltersPanel$FiltersListView$2, 
 isVisible = true, isVersioned = false] 18. [Component id = filterCount, 
 page = com.qlusters.qrm.plugins.provision.web.ProvisioningRequest, path 
 = 2:mainTabs:filters:2:filterLink:filterCount.Label, isVisible = true, 
 isVersioned = false] 19. [MarkupContainer [Component id = 3, page = 
 com.qlusters.qrm.plugins.provision.web.ProvisioningRequest, path = 
 2:mainTabs:filters:3.ListItem, isVisible = true, isVersioned = false]] 
 20. [MarkupContainer [Component id = filterLink, page = 
 

[Wicket-user] wicket 1.2.2

2006-08-24 Thread Nili Adoram
Hi all,
How can I download 1.2.2 ?
I found no link in wicket download page.
Thanks
Nili

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] user is logged in although not through authenticated (jsessionid)

2006-08-24 Thread Nili Adoram
I have an authenticated session extending DefaultAuthenticatedSession.
This session authenticates the user against LDAP or DB.
My SignIn page does not persist the username and password.
This should imply a sign-in page displayed per session.

Indeed, if the browser is closed or SignOut page invalidates the session 
a sign-in page is displayed.
However, if I restart Tomcat and the Browser remains open, no sign-in 
page is displayed but instead my home page is displayed.

How does DefaultAuthenticatedSession know that the user is authenticated?

Thanks,
Nili

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] body onload contributors

2006-08-22 Thread Nili Adoram
We have issued bug number 1544413 about this.
However, is there a workaround for this?
Currently, after a few ajax refreshes the onLoad attribute is huge!
Thanks
Nili

Eelco Hillenius wrote:
 I can imagine something like this yes; we probably don't have a nifty
 filter mechanism for onload contribs as we have for header
 contributions. If you could open up an issue for this, we could take a
 look. Thanks,

 Eelco


 On 8/16/06, Nili Adoram [EMAIL PROTECTED] wrote:
   
 Hi,

 I have attached a AjaxSelfUpdatingTimerBehavior to one of the page
 components and discovered that when I navigate from on link to the other
 then the AjaxSelfUpdatingTimerBehavior adds another similar JS statement
 to html body onload and onunload attributes.
 all Links (ExternalLink) point to same page with different parameters.

 Is there anything I can do to stop this behavior?


 Thanks,
 Tomer



 -
 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user

 

 -
 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user

   

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Form submit from outside Wicket

2006-08-22 Thread Nili Adoram
But how would the bookmarkable page would know it is supposed to submit 
its form instead of rendering ?

Johan Compagner wrote:
 i would submit to a bookmarkable page yes.
 That would be the easiest thing to do.

 johan


 On 3/29/06, *Sven Meier*  [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 
 wrote:

 How would you handle a submit of a form that originates from
 outside of
 Wicket?

 Let me explain:

 In many web applications some forms (e.g. 'search a product') are
 replicated on other pages of the same application or even on other
 sites
 of business partners or advertisers.
 For our actionframework-brethren this poses no problem, because an
 action (e.g. a Struts action) can usally be initated with a form post.
 But I don't have a clue how to do something similar in wicket. AFAIK a
 form has to be rendered first, before being able to accept
 incoming data
 on the next request.

 Does somebody have a suggestion for this, something like 'open a page
 with a bookmarkable link and immediately submit its contained form
 with
 the transmitted parameters'?

 Thanks

 Sven


 ---
 This SF.Net email is sponsored by xPML, a groundbreaking scripting
 language
 that extends applications into web and mobile media. Attend the
 live webcast
 and join the prime developer group breaking into this new coding
 territory!
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 mailto:Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user



-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Form submit from outside Wicket

2006-08-22 Thread Nili Adoram
But then I would not have the Form.process() method called with all its 
benefits (form validation etc).
Is it valid to invoke it from page constructor?

Frank Bille wrote:
 Bookmarkable pages has a PageParameters constructor. From these 
 parameters can you get the form values. You would now that it would be 
 a submit because the pageparameters contains the expected values.

 - Frank


 On 8/22/06, *Nili Adoram* [EMAIL PROTECTED] 
 mailto:[EMAIL PROTECTED] wrote:

 But how would the bookmarkable page would know it is supposed to
 submit
 its form instead of rendering ?

 Johan Compagner wrote:
  i would submit to a bookmarkable page yes.
  That would be the easiest thing to do.
 
  johan
 
 
  On 3/29/06, *Sven Meier*  [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED]
  wrote:
 
  How would you handle a submit of a form that originates from
  outside of
  Wicket?
 
  Let me explain:
 
  In many web applications some forms (e.g. 'search a
 product') are
  replicated on other pages of the same application or even on
 other
  sites
  of business partners or advertisers.
  For our actionframework-brethren this poses no problem,
 because an
  action (e.g. a Struts action) can usally be initated with a
 form post.
  But I don't have a clue how to do something similar in
 wicket. AFAIK a
  form has to be rendered first, before being able to accept
  incoming data
  on the next request.
 
  Does somebody have a suggestion for this, something like
 'open a page
  with a bookmarkable link and immediately submit its
 contained form
  with
  the transmitted parameters'?
 
  Thanks
 
  Sven
 
 
  ---
  This SF.Net email is sponsored by xPML, a groundbreaking
 scripting
  language
  that extends applications into web and mobile media. Attend the
  live webcast
  and join the prime developer group breaking into this new coding
  territory!
 
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
  
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
 
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
 mailto:Wicket-user@lists.sourceforge.net
  mailto:Wicket-user@lists.sourceforge.net
 mailto:Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 

 -
 Using Tomcat but need to do more? Need to support web services,
 security?
 Get stuff done quickly with pre-integrated technology to make your
 job easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache
 Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 mailto:Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


 

 -
 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 

 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user
   

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] how to display login page after logout?

2006-08-20 Thread Nili Adoram
Hi all,
I want to display Login page right after logout.
However, instead of displaying login page an Expired page is displayed.
Please advise,

Here is the logout page:

public class LogoutPage extends SignOutPage {
public LogoutPage() {
super();
}

public LogoutPage(PageParameters parameters) {
setRedirect(false);
((WebSession) getSession()).invalidateNow();
setResponsePage(LoginPage.class);
}

}

Thanks
Nili


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] how to display login page after logout?

2006-08-20 Thread Nili Adoram
as martijn says do use the normal invalidate() method and dont call 
invalidateNow directly.
I tried both options, no success.

Then that will not work becaus that form has a call back to the
page that is created in a wicket session that was invalidated. 
Exactly, when the login form is submitted, 
DefaultRequestTargetResolverStrategy.resolveRenderedPage cannot find the 
page
since the session has been invalidated.

So, at the end of the day, no solution?

Johan Compagner wrote:
 as martijn says do use the normal invalidate() method and dont call 
 invalidateNow directly.

 But that code also can go wrong in more places.
 You should do a redirect.. And response to a bookmarkable page
 (you already do that by setting the class instead of the instance of 
 the login page)

 because currently your login page is directly created and served to 
 the outside world
 But has that login page a form? Then that will not work becaus that 
 form has a call back to the
 page that is created in a wicket session that was invalidated.

 johan


 On 8/20/06, *Nili Adoram* [EMAIL PROTECTED] 
 mailto:[EMAIL PROTECTED] wrote:

 Hi all,
 I want to display Login page right after logout.
 However, instead of displaying login page an Expired page is
 displayed.
 Please advise,

 Here is the logout page:

 public class LogoutPage extends SignOutPage {
 public LogoutPage() {
 super();
 }

 public LogoutPage(PageParameters parameters) {
 setRedirect(false);
 ((WebSession) getSession()).invalidateNow();
 setResponsePage( LoginPage.class);
 }

 }

 Thanks
 Nili


 -
 Using Tomcat but need to do more? Need to support web services,
 security?
 Get stuff done quickly with pre-integrated technology to make your
 job easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache
 Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 mailto:Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


 

 -
 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 

 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user
   

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] how to display login page after logout?

2006-08-20 Thread Nili Adoram
It works!!
Thanks!!

Igor Vaynberg wrote:
 so

 onclick() {
   session.invalidate();
   response.redirect('bookmarkable url for login page');
  }

 doesnt work?

 -Igor


 On 8/20/06, * Nili Adoram* [EMAIL PROTECTED] 
 mailto:[EMAIL PROTECTED] wrote:

 as martijn says do use the normal invalidate() method and dont call
 invalidateNow directly.
 I tried both options, no success.

 Then that will not work becaus that form has a call back to the
 page that is created in a wicket session that was invalidated. 
 Exactly, when the login form is submitted,
 DefaultRequestTargetResolverStrategy.resolveRenderedPage cannot
 find the
 page
 since the session has been invalidated.

 So, at the end of the day, no solution?

 Johan Compagner wrote:
  as martijn says do use the normal invalidate() method and dont call
  invalidateNow directly.
 
  But that code also can go wrong in more places.
  You should do a redirect.. And response to a bookmarkable page
  (you already do that by setting the class instead of the instance of
  the login page)
 
  because currently your login page is directly created and served to
  the outside world
  But has that login page a form? Then that will not work becaus that
  form has a call back to the
  page that is created in a wicket session that was invalidated.
 
  johan
 
 
  On 8/20/06, *Nili Adoram* [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED]
  mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote:
 
  Hi all,
  I want to display Login page right after logout.
  However, instead of displaying login page an Expired page is
  displayed.
  Please advise,
 
  Here is the logout page:
 
  public class LogoutPage extends SignOutPage {
  public LogoutPage() {
  super();
  }
 
  public LogoutPage(PageParameters parameters) {
  setRedirect(false);
  ((WebSession) getSession()).invalidateNow();
  setResponsePage( LoginPage.class);
  }
 
  }
 
  Thanks
  Nili
 
 
 
 -
  Using Tomcat but need to do more? Need to support web services,
  security?
  Get stuff done quickly with pre-integrated technology to
 make your
  job easier
  Download IBM WebSphere Application Server v.1.0.1 based on
 Apache
  Geronimo
 
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
 mailto:Wicket-user@lists.sourceforge.net
  mailto: Wicket-user@lists.sourceforge.net
 mailto:Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 
 
 
 
 
 -
  Using Tomcat but need to do more? Need to support web services,
 security?
  Get stuff done quickly with pre-integrated technology to make
 your job easier
  Download IBM WebSphere Application Server v.1.0.1 based on
 Apache Geronimo
 
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 
 
 
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
 mailto:Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 https://lists.sourceforge.net/lists/listinfo/wicket-user
 

 -
 Using Tomcat but need to do more? Need to support web services,
 security?
 Get stuff done quickly with pre-integrated technology to make your
 job easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache
 Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net

Re: [Wicket-user] AJAX causes submit to display expired page

2006-08-19 Thread Nili Adoram
Thanks for the reply.
We had to develop our own self-updating behavior since wicket does not 
provide any means for enabling/disabling auto-update per user request.


Igor Vaynberg wrote:
 its probably because your ajax urls are creating new versions of pages 
 - and when you submit the form it unrolls the page version. why cant 
 you use the self updating behavior? if you dont - which is fine - you 
 have to construct the url exactly like it does - those urls do not 
 construct/nor rollback any versions.

 -Igor


 On 8/17/06, *Nili Adoram* [EMAIL PROTECTED] 
 mailto:[EMAIL PROTECTED] wrote:

 Hi all,
 I have a submit button that sets response page to some other page
 after
 form is submitted (I override Form.delegateSubmit).
 In addition there is an AJAX link in that page that refreshes some
 components in the page every 5 seconds.
 Since we cannot disable AjaxSelfUpdatingTimerBehavior we used our own
 JavaScript for re-invoking AJAX every 5 seconds.
 When DefaultRequestTargetResolverStrategy.resolveRenderedPage handles
 repeating AJAX request it cannot find any page
 so it defaults to ExpiredPageClassRequestTarget.
 This causes no problem when an AJAX requests is handled.
 However, if I submit the form and an AJAX request is handled
 simultaneously this causes the expired page to be rendered instead of
 the target page.

 Please advise,
 Thanks,
 Nili


 -
 Using Tomcat but need to do more? Need to support web services,
 security?
 Get stuff done quickly with pre-integrated technology to make your
 job easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache
 Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 mailto:Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


 

 -
 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 

 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user
   

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] AJAX causes submit to display expired page

2006-08-17 Thread Nili Adoram
Hi all,
I have a submit button that sets response page to some other page after 
form is submitted (I override Form.delegateSubmit).
In addition there is an AJAX link in that page that refreshes some 
components in the page every 5 seconds.
Since we cannot disable AjaxSelfUpdatingTimerBehavior we used our own 
JavaScript for re-invoking AJAX every 5 seconds.
When DefaultRequestTargetResolverStrategy.resolveRenderedPage handles 
repeating AJAX request it cannot find any page
so it defaults to ExpiredPageClassRequestTarget.
This causes no problem when an AJAX requests is handled.
However, if I submit the form and an AJAX request is handled 
simultaneously this causes the expired page to be rendered instead of 
the target page.

Please advise,
Thanks,
Nili


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] body onload contributors

2006-08-16 Thread Nili Adoram
Hi,

I have attached a AjaxSelfUpdatingTimerBehavior to one of the page 
components and discovered that when I navigate from on link to the other 
then the AjaxSelfUpdatingTimerBehavior adds another similar JS statement 
to html body onload and onunload attributes.
all Links (ExternalLink) point to same page with different parameters.

Is there anything I can do to stop this behavior?


Thanks,
Tomer



-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] how to disable trigger button of DatePicker

2006-08-15 Thread Nili Adoram
Hi all,
I have a DatePicker within a form which I want to disable when I press a 
certain radio,
but it seems impossible to disable this trigger button.
The DatePicker provides no getter to this button, and it is private and 
final.
Since wicket specifically sets the id of this image I tried adding an 
AttributeModifier with a name:

endDatePicker.get(trigger).add(new AttributeModifier(name, true, new 
Model(endDateTrigger)));


Next I called a javascript that  looks for this element by name and sets 
the disabled attribute to true.

However, clicking this image continues to open the calendar.
How can I prevent the calendar from opening ?

Thanks,
Nili

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] DateTextField with Timestamp

2006-08-02 Thread Nili Adoram
Hi all,
I want to use a DateTextField but the model object is a Timestamp.
However, the looking at the converters registry for a suitable converter 
is done with Date.class.
Even though Timestamp extends java.util.Date it will never find a 
suitable converter and use a StringConverter.
Please advise,
10x
Nili




-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Behavior cannot change 'enabled' property in onComponentTag

2006-08-01 Thread Nili Adoram

Hi all,
I have added the following behavior to all page components:
..
public void onComponentTag(Component component, ComponentTag tag) {
if (...)
component.setEnabled(false);
}

However, when the page is rendered, the following exception is thrown 
(see forward).
This looks like a misbehavior of the IBehavior!

Thanks
Nili

WicketMessage: Cannot modify component hierarchy during render phase

Root cause:

wicket.WicketRuntimeException: Cannot modify component hierarchy during 
render phase
at wicket.Page.checkHierarchyChange(Page.java:1040)
at wicket.Page.componentStateChanging(Page.java:957)
at wicket.Component.addStateChange(Component.java:2273)
at wicket.Component.setEnabled(Component.java:1845)
at 
com.qlusters.qrm.web.wicket.behavior.DisableBehavior.onComponentTag(DisableBehavior.java:42)
at wicket.Component.renderComponentTag(Component.java:2703)
at wicket.Component.renderComponent(Component.java:1666)
at wicket.markup.html.WebComponent.onRender(WebComponent.java:61)
at wicket.Component.render(Component.java:1511)
at wicket.MarkupContainer.renderNext(MarkupContainer.java:1332)
at wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:980)
at wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:915)
at wicket.markup.html.form.Form.onComponentTagBody(Form.java:776)
at wicket.Component.renderComponent(Component.java:1675)
at wicket.MarkupContainer.onRender(MarkupContainer.java:925)
at wicket.markup.html.form.Form.onRender(Form.java:847)
at wicket.Component.render(Component.java:1511)
at wicket.MarkupContainer.renderNext(MarkupContainer.java:1332)
at wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:980)
at wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:915)
at wicket.Component.renderComponent(Component.java:1675)
at wicket.MarkupContainer.onRender(MarkupContainer.java:925)
at wicket.Component.render(Component.java:1511)
at wicket.Component.render(Component.java:1477)
at wicket.MarkupContainer.autoAdd(MarkupContainer.java:196)
at 
wicket.markup.resolver.MarkupInheritanceResolver.resolve(MarkupInheritanceResolver.java:66)
at wicket.MarkupContainer.renderNext(MarkupContainer.java:1359)
at wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:980)
at wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:915)
at wicket.Component.renderComponent(Component.java:1675)
at wicket.MarkupContainer.onRender(MarkupContainer.java:925)
at wicket.Component.render(Component.java:1511)
at wicket.Component.render(Component.java:1477)
at wicket.MarkupContainer.autoAdd(MarkupContainer.java:196)
at 
wicket.markup.resolver.MarkupInheritanceResolver.resolve(MarkupInheritanceResolver.java:73)
at wicket.MarkupContainer.renderNext(MarkupContainer.java:1359)
at wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:980)
at wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:915)
at wicket.Component.renderComponent(Component.java:1675)
at wicket.MarkupContainer.onRender(MarkupContainer.java:925)
at wicket.Component.render(Component.java:1511)
at wicket.MarkupContainer.renderNext(MarkupContainer.java:1332)
at wicket.MarkupContainer.renderAll(MarkupContainer.java:942)
at wicket.Page.onRender(Page.java:867)


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] how to disable all choices of a radio choice

2006-07-23 Thread Nili Adoram
Hi all,
I have a radio choice add to form:
FormComponentfc = new RadioChoice(types, types),
new IChoiceRenderer() {
//some code
});
fc.setEnabled(false);
add(fc);

I wanted to disabled all choices so I call fc.setEnabled(false).
However, in the markup, only the div is disabled and not the choices.
When markup is created (RadioChoice.onComponentTagBody()) disbaled 
property is not considered per choice.
So my question is, how can I disable all/some choices from Java code?
Thanks,
Nili

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] bookmarkable ajax link

2006-07-17 Thread Nili Adoram
Hi all,
I have an AjaxLink that opens a modal dialog (which is implemented as an 
iframe that displays the URL of that link).
The link is embedded inside a ListView that refreshes itself every 30 
seconds via ajax.
The URL of that link is generated of course by Ajax and include session 
mapping parameters so it is not bookmarkable.
Whenever I click the link just before the table is refreshed, the target 
of that link page is expired from session.
Is it possible to generate a bookmarkable ajax link ?
Thanks
Nili


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] bookmarkable ajax link

2006-07-17 Thread Nili Adoram
1. The generated URL is:
javascript:var 
wcall=wicketAjaxGet('/page;jsessionid=66D2B1310B47081B62EE203A648CDAE8?wicket:interface=:0:statusForm:data:nodeGroups:0:deprovision::IBehaviorListenerwicket:behaviorId=0',
 
function() { }, function() { });
2. Can you please explain what is th purpose of PageMap in this case?
Thanks
-Nili

Matej Knopp wrote:
 What URL do you exactly display in the iframe? I think the behavior is 
 caused by PageMap in 1.2 which behaves as stack. So to get over this you 
 have to put the page that is shown in the iframe to separate pagemap.

 You can change the pagemap in which wicket is created by either 
 specifying it in Page constructor or as URL parameter of 
 bookmarkablePages (wicket:pageMapName=myModalPageMap)

 -Matej

 Nili Adoram wrote:
   
 Hi all,
 I have an AjaxLink that opens a modal dialog (which is implemented as an 
 iframe that displays the URL of that link).
 The link is embedded inside a ListView that refreshes itself every 30 
 seconds via ajax.
 The URL of that link is generated of course by Ajax and include session 
 mapping parameters so it is not bookmarkable.
 Whenever I click the link just before the table is refreshed, the target 
 of that link page is expired from session.
 Is it possible to generate a bookmarkable ajax link ?
 Thanks
 Nili


 -
 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user

 



 -
 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user

   


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] ajax stops self updating

2006-07-09 Thread Nili Adoram
Hi all,
I have WebMarkupContainer that has a AjaxSelfUpdatingTimerBehavior 
refreshing itself every 30 seconds.
I leave the browser opened at this page but after a while the component 
stops refreshing.
Is there a limit on the amount of refresh requests?
Is it related to session timeout?
Thanks,
Nili


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Sending data back from popup page

2006-07-08 Thread Nili Adoram
There is a very nice framework for modal dialogs:
http://www.mail-archive.com/wicket-user@lists.sourceforge.net/msg09537.html
Inside the onClose of the modal dialog you can add information to the 
popup/opener page
using AJAX.

michal petras wrote:
 On my page i have a link with popup settings that opens a popup dialog page.
 In the dialog page user can make some selections and than close the dialog.
 i would like to refresh (with AJAX) a part of the base page according to the
 data received from the dialog without reloading the whole page. How can it
 be done?

 Thanks.

   


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] invalid XHTML

2006-07-06 Thread Nili Adoram
Hi all,
I tried to validate the following HTML code in http://validator.w3.org/ 
but received validation errors.
Does anyone know what is the correct namespace declaration?

Input HTML:
==
!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN
 http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;
  
html  
  xmlns=http://www.w3.org/1999/xhtml;  
  xmlns:wicket=http://wicket.sourceforge.net/;  
  xml:lang=en  
  lang=en

/html

Validation Results:
==
Error /Line 6 column 19/: there is no attribute xmlns:wicket.

|  xmlns:wicket=**http://wicket.sourceforge.net/;  |

Thanks
Nili




Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] ajax failed to update a component (wicket-1.2)

2006-06-25 Thread Nili Adoram
I added a list in form with id statusForm as follows:

ListView list = new ListView(myList);
list.add(new AjaxSelfUpdatingTimerBehavior(Duration.seconds(30)));
list.setOutputMarkupId(true);
add(nodeGroups);

This is the corresponding markup:
table class=dataTable
tr wicket:id=list
tdspan wicket:id=namefoo/span/td
tdspan wicket:id=statusStarting/span/td
/tr
/table

But Ajax has failed to auto-refresh the page and produced the following 
error:
ERROR: Component with id [[statusForm_list]] a was not found while 
trying to perform markup update. Make sure you called 
component.setOutputMarkupId(true) on the component whose markup you are 
trying to update.

Why is markup update looking for component id statusForm_list and not list?

10x
Nili


Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] ajax failed to update a component (wicket-1.2)

2006-06-25 Thread Nili Adoram
Thanks, I wrapped with a WebMarkupContainer and it worked!

Johan Compagner wrote:
 because that is the complete path to that list (i guess new 
 ListView(myList)) is wrong? it should be just list?

 but a ListView doesn't have a markup by itself. Only the list items. 
 If you want to update a listview
 you have to wrap in in a container and attach the ajax behaviiour to that.

 johan


 On 6/25/06, *Nili Adoram*  [EMAIL PROTECTED] 
 mailto:[EMAIL PROTECTED] wrote:

 I added a list in form with id statusForm as follows:

 ListView list = new ListView(myList);
 list.add(new AjaxSelfUpdatingTimerBehavior(Duration.seconds(30)));
 list.setOutputMarkupId(true);
 add(nodeGroups);

 This is the corresponding markup:
 table class=dataTable
 tr wicket:id=list
 tdspan wicket:id=namefoo/span/td
 tdspan wicket:id=statusStarting/span/td
 /tr
 /table

 But Ajax has failed to auto-refresh the page and produced the
 following
 error:
 ERROR: Component with id [[statusForm_list]] a was not found while
 trying to perform markup update. Make sure you called
 component.setOutputMarkupId(true) on the component whose markup
 you are
 trying to update.

 Why is markup update looking for component id statusForm_list and
 not list?

 10x
 Nili


 Using Tomcat but need to do more? Need to support web services,
 security?
 Get stuff done quickly with pre-integrated technology to make your
 job easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache
 Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 mailto:Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


 

 Using Tomcat but need to do more? Need to support web services, security?
 Get stuff done quickly with pre-integrated technology to make your job easier
 Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
   
 

 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user
   

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] will wicket-contrib-dojo upgrade to wicket 1.2?

2006-06-22 Thread Nili Adoram
When is wicket 1.2.1 expected to be released?

Martijn Dashorst wrote:
 I tried (a 0.4 snapshot version of ) dojo with 1.2, but that got
 several exceptions. After putting the most recent (soon to be
 released) Wicket 1.2.1 and trunk from dojo into the project, both
 seemed to work.

 When 1.2.1 is released, I'll see to upgrade and put up a release (0.4) of 
 dojo.

 Martijn

 On 6/22/06, Nili Adoram [EMAIL PROTECTED] wrote:
   
 Hi all,
 Does anyone know whether it is planned to upgrade wicket-contrib-dojo to
 wicket 1.2?
 Currently we cannot use them both in the same classpath since there are
 collisions.
 Thanks
 Nili

 All the advantages of Linux Managed Hosting--Without the Cost and Risk!
 Fully trained technicians. The highest number of Red Hat certifications in
 the hosting industry. Fanatical Support. Click to learn more
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=107521bid=248729dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user

 


   

All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnkkid=107521bid=248729dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] will wicket-contrib-dojo upgrade to wicket 1.2?

2006-06-22 Thread Nili Adoram
I'm sure it will.
Best,
Nili

Martijn Dashorst wrote:
 somewhere next week. I'm currently on a conference, and we still have
 some (minor) things to solve before we can finally ship 1.2.1.

 We're trying to package as much fixes as possible into 1.2.1, and
 make it a great release.

 Martijn

 On 6/22/06, Nili Adoram [EMAIL PROTECTED] wrote:
   
 When is wicket 1.2.1 expected to be released?

 Martijn Dashorst wrote:
 
 I tried (a 0.4 snapshot version of ) dojo with 1.2, but that got
 several exceptions. After putting the most recent (soon to be
 released) Wicket 1.2.1 and trunk from dojo into the project, both
 seemed to work.

 When 1.2.1 is released, I'll see to upgrade and put up a release (0.4) of 
 dojo.

 Martijn

 On 6/22/06, Nili Adoram [EMAIL PROTECTED] wrote:

   
 Hi all,
 Does anyone know whether it is planned to upgrade wicket-contrib-dojo to
 wicket 1.2?
 Currently we cannot use them both in the same classpath since there are
 collisions.
 Thanks
 Nili

 All the advantages of Linux Managed Hosting--Without the Cost and Risk!
 Fully trained technicians. The highest number of Red Hat certifications in
 the hosting industry. Fanatical Support. Click to learn more
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=107521bid=248729dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


 

   
 All the advantages of Linux Managed Hosting--Without the Cost and Risk!
 Fully trained technicians. The highest number of Red Hat certifications in
 the hosting industry. Fanatical Support. Click to learn more
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=107521bid=248729dat=121642
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user

 


   

All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnkkid=107521bid=248729dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] ajax modal dialog

2006-06-21 Thread Nili Adoram
Dear Mr. Knopp,
On February you have posted a wonderful example of an ajax modal dialog.
Did you upgrade this example to wicket-1.2?
Thanks for your cooperation,
Nili



___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] will wicket-contrib-dojo upgrade to wicket 1.2?

2006-06-21 Thread Nili Adoram
Hi all,
Does anyone know whether it is planned to upgrade wicket-contrib-dojo to 
wicket 1.2?
Currently we cannot use them both in the same classpath since there are 
collisions.
Thanks
Nili

All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnkkid=107521bid=248729dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Re: Wicket Include vs. RequestDispatcher.include

2006-04-02 Thread Nili Adoram
Our application is composed of wicket page and struts page (we wanted to 
avoid rewriting our huge application so we decided that only new pages 
are implemented as wicket pages).
In order to achieve a unique layout for all pages no matter if wicket or 
struts I used sitemesh servlet filter with url pattern /* which 
decorates all pages.

This is truly as simple as it sounds.

Nili

Eelco Hillenius wrote:

That's interesting. Do you include Wicket pages in you sitemesh definitions too?

Eelco

On 4/1/06, Nili Adoram [EMAIL PROTECTED] wrote:
  

After reconsidering I used Sitemesh which provides a better approach to
this issue.

However, this is a good opportunity to thank you Wicket team for
developing the most wonderful framework.
I voted for you!

Nili


Eelco Hillenius wrote:


To my knowledge, none of the core developers of Wicket uses the
Include component for their projects. What about this: if you and
anyone else that uses this functionality agree on what would be the
best implementation, I'd be happy to look at the patch and put it in
Wicket if we agree on it. That would work better than me developing it
and guessing what is right.

Ideally, it should work similar to sitemesh, but simpler, as we don't
need the composition (it would steer people the wrong direction for
how to do things with Wicket) and of course without a line of xml
configuration.

I'd like to keep it one component thought, so I wouldn't be in favor
of the LightInclude as mentioned the post before this. I'd rather have
some property for deciding how the include should work.

Related issues:
http://sourceforge.net/tracker/?group_id=119783atid=684978func=detailaid=1243549
http://sourceforge.net/tracker/?group_id=119783atid=684978func=detailaid=1285909

Eelco


On 3/30/06, Robert McClay [EMAIL PROTECTED] wrote:

  

I posted a very similar component to the group a while back -- search
for Servlet forward to a JSP. It could be used as a starting point
for a nice component, as it definitely needs polishing.

On 2006-03-29 23:54:57 -0700, Nili Adoram [EMAIL PROTECTED] said:




How about extending Include as follows:
public class LightInclude extends Include {

public LightInclude(String id, String model, ServletRequest
request, ServletResponse response) {
   this.request = request;
   this.response = response;
}

protected String importUrl(String url) {
//create a buffer
Writer writer = new BufferedWriter(new CharArratWriter());
//create some mockup response
ServletResponse mockupResponse = new ServletResponse() {
   //implement all interface methods by delegating to the
original response except for this:
   public PrintWriter getWriter(){
  return new PrintWriter(writer);
   }
};
   //call RequestDispatcher with the mockup response
//this will write the response to our buffer
request.getrequestDispatcher(url).include(request, mockupResponse);
   //return the content of the buffer
return writer.toString();
}
}

I guess some additional polish is required..
Nili

Eelco Hillenius wrote:

  

That's what I did in the first version(s) of Include. There were
issues with it, which I unfortunately forgot. I never use this
component myself, but if you have good ideas in the form of patches,
I'd be happy to look at them.

Eelco

On 3/29/06, Nili Adoram [EMAIL PROTECTED] wrote:




Hi,
Is there an option to use utilize wicket Include without opening a new
connection?
I would like to include the contents of a URL like
RequestDispatcher.include() does, directly into a wicket component.
10x
Nili


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user



  

---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=kkid0944bid$1720dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user





---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer

Re: [Wicket-user] Re: Wicket Include vs. RequestDispatcher.include

2006-04-01 Thread Nili Adoram
After reconsidering I used Sitemesh which provides a better approach to 
this issue.


However, this is a good opportunity to thank you Wicket team for 
developing the most wonderful framework.

I voted for you!

Nili


Eelco Hillenius wrote:

To my knowledge, none of the core developers of Wicket uses the
Include component for their projects. What about this: if you and
anyone else that uses this functionality agree on what would be the
best implementation, I'd be happy to look at the patch and put it in
Wicket if we agree on it. That would work better than me developing it
and guessing what is right.

Ideally, it should work similar to sitemesh, but simpler, as we don't
need the composition (it would steer people the wrong direction for
how to do things with Wicket) and of course without a line of xml
configuration.

I'd like to keep it one component thought, so I wouldn't be in favor
of the LightInclude as mentioned the post before this. I'd rather have
some property for deciding how the include should work.

Related issues:
http://sourceforge.net/tracker/?group_id=119783atid=684978func=detailaid=1243549
http://sourceforge.net/tracker/?group_id=119783atid=684978func=detailaid=1285909

Eelco


On 3/30/06, Robert McClay [EMAIL PROTECTED] wrote:
  

I posted a very similar component to the group a while back -- search
for Servlet forward to a JSP. It could be used as a starting point
for a nice component, as it definitely needs polishing.

On 2006-03-29 23:54:57 -0700, Nili Adoram [EMAIL PROTECTED] said:



How about extending Include as follows:
public class LightInclude extends Include {

public LightInclude(String id, String model, ServletRequest
request, ServletResponse response) {
   this.request = request;
   this.response = response;
}

protected String importUrl(String url) {
//create a buffer
Writer writer = new BufferedWriter(new CharArratWriter());
//create some mockup response
ServletResponse mockupResponse = new ServletResponse() {
   //implement all interface methods by delegating to the
original response except for this:
   public PrintWriter getWriter(){
  return new PrintWriter(writer);
   }
};
   //call RequestDispatcher with the mockup response
//this will write the response to our buffer
request.getrequestDispatcher(url).include(request, mockupResponse);
   //return the content of the buffer
return writer.toString();
}
}

I guess some additional polish is required..
Nili

Eelco Hillenius wrote:
  

That's what I did in the first version(s) of Include. There were
issues with it, which I unfortunately forgot. I never use this
component myself, but if you have good ideas in the form of patches,
I'd be happy to look at them.

Eelco

On 3/29/06, Nili Adoram [EMAIL PROTECTED] wrote:



Hi,
Is there an option to use utilize wicket Include without opening a new
connection?
I would like to include the contents of a URL like
RequestDispatcher.include() does, directly into a wicket component.
10x
Nili


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


  

---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=kkid0944bid$1720dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user




---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
  




---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Wicket-user mailing list
Wicket-user

[Wicket-user] Wicket Include vs. RequestDispatcher.include

2006-03-29 Thread Nili Adoram

Hi,
Is there an option to use utilize wicket Include without opening a new 
connection?
I would like to include the contents of a URL like 
RequestDispatcher.include() does, directly into a wicket component.

10x
Nili


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Wicket Include vs. RequestDispatcher.include

2006-03-29 Thread Nili Adoram

How about extending Include as follows:
public class LightInclude extends Include {

   public LightInclude(String id, String model, ServletRequest request, 
ServletResponse response) {

  this.request = request;
  this.response = response;
   }

   protected String importUrl(String url) {
   //create a buffer
   Writer writer = new BufferedWriter(new CharArratWriter());
   //create some mockup response
   ServletResponse mockupResponse = new ServletResponse() {
  //implement all interface methods by delegating to the 
original response except for this:

  public PrintWriter getWriter(){
 return new PrintWriter(writer);
  }
   };
  
   //call RequestDispatcher with the mockup response

   //this will write the response to our buffer
   request.getrequestDispatcher(url).include(request, mockupResponse);
  
   //return the content of the buffer

   return writer.toString();
   }
}

I guess some additional polish is required..
Nili

Eelco Hillenius wrote:

That's what I did in the first version(s) of Include. There were
issues with it, which I unfortunately forgot. I never use this
component myself, but if you have good ideas in the form of patches,
I'd be happy to look at them.

Eelco

On 3/29/06, Nili Adoram [EMAIL PROTECTED] wrote:
  

Hi,
Is there an option to use utilize wicket Include without opening a new
connection?
I would like to include the contents of a URL like
RequestDispatcher.include() does, directly into a wicket component.
10x
Nili


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user





---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=kkid0944bid$1720dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

  



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] how to include a Struts action from a wicket page

2006-03-20 Thread Nili Adoram

Hi All,
I would like to include the output of a struts action inside a wicket page.
For example:
public MyPage(PageParameters params) {
   add (new Include(header,/action/header.do));
   add (new Include(sidebar,/action/sidebar.do));
}

However Tomcat is redirecting me to login action according to 
login-config definition inside web.xml.

It seems that the Include is ignoring the authenticated user.
Any suggestions how to overcome this issue?
Thanks
Nili



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] markup/java location

2006-03-05 Thread Nili Adoram

Hi,
Can you please explain how can I place markup and Java files in 
different directories ?

Thanks
Nili


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] cannot checkout wicket-struff from cvs at sourceforge

2006-03-01 Thread Nili Adoram

Hi,
I tried to checkout wicket-stuff from cvs at sourceforge according to 
the instructions at

http://wicket-stuff.sourceforge.net/cvs-usage.html:

I tried:
cvs -d :pserver:[EMAIL PROTECTED]:/cvsroot/wicket-stuff login
I pressed Enter when asked for password and the reply was:
cvs [login aborted]: end of file from server (consult above messages if any)

Is CVS server down or my command is wrong?
thanks
Nili



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] cannot checkout wicket-struff from cvs at sourceforge

2006-03-01 Thread Nili Adoram

Thanks :-)

Eelco Hillenius wrote:

Yeah. We will move to SVN is soon is that is supported good enough by
sourceforge, which is hopefully soon.

Eelco

On 3/1/06, John Patterson [EMAIL PROTECTED] wrote:
  

Sourceforge anonymous cvs access is hopeless.  You will need to try during off
peak hours or retry many times until you can get a connection.

On Wednesday 01 Mar 2006 08:30, Nili Adoram wrote:


Hi,
I tried to checkout wicket-stuff from cvs at sourceforge according to
the instructions at
http://wicket-stuff.sourceforge.net/cvs-usage.html:

I tried:
cvs -d :pserver:[EMAIL PROTECTED]:/cvsroot/wicket-stuff login
I pressed Enter when asked for password and the reply was:
cvs [login aborted]: end of file from server (consult above messages if
any)

Is CVS server down or my command is wrong?
thanks
Nili



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live
webcast and join the prime developer group breaking into this new coding
territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
  

---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user





---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=kkid0944bid$1720dat1642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

  



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Template page

2006-02-26 Thread Nili Adoram

Hi All,
What is the best practice to create a template page containing header, 
footer, menu etc. using Wicket?

Thanks
Nili


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] enable/disable form controls

2006-02-26 Thread Nili Adoram

Hi All,
Suppose I have two check boxes , A and B, in a single page form.
When the page is first rendered, A and B should be enabled/disabled 
according to some logic.
When the user selects A I want B to be enabled as well, without round 
trip to the server, which means JavaScript code, of course.

This will result in duplicate code both in Java and JavaScript.
How can I avoid this overhead and maintain view logic at a single point?
10x
Nili


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] light tree

2006-02-26 Thread Nili Adoram

Hi All,
Is there an extension of the Tree component that avoids round trip to 
server whenever a node is expanded/collapsed?


10x
Nili



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Real commercial application using wicket

2006-02-21 Thread Nili Adoram

Hi All,
Has anyone developed a real commercial heavy-duty application based on 
Wicket?
I found numerous toy examples but I really need a feedback about 
real-life applications utilizing Wicket.

Thanks,
Nili



---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user