Re: [Wicket-user] Authentication Tomcat - Wicket

2006-11-12 Thread Erik van Oosten
Hello Rik,
 Questions;
 Do you use a normal login form according to Acegi or do you use a  
 Wicket login form?
   
We use a signin page that is derived from the example in 
wicket-auth-roles-example. So it's a Wicket login form.
 Where do you put your authorization settings?
   
The complete authorization picture in my current application is as follows:
- We use our wicket-auth-roles port to java 1.4 (took about 15 minutes 
to make) with just one change so that we can do authorization based on 
the base class of a component (see 
https://issues.apache.org/jira/browse/WICKET-21).

- MyApplication#init() contains the following code:
   getSecuritySettings().setAuthorizationStrategy(new 
MetaDataRoleAuthorizationStrategy(this));
   MetaDataRoleAuthorizationStrategy.authorize(SecurePage.class, 
role_viewer role_administrator);
   MetaDataRoleAuthorizationStrategy.authorize(AdminPage.class, 
role_administrator);
   MetaDataRoleAuthorizationStrategy.authorize(SecurePopupPage.class, 
role_viewer role_administrator);
   All pages that need a login extend either SecurePage or SecurePopupPage.

- The base class for all pages constructs a menu with links to all pages 
in the application. If the linked page requires authorization, during 
construction of the menu 
MetaDataRoleAuthorizationStrategy.authorize(link, Component.RENDER, 
roles) is called, where link is a Link instance and roles is derived 
from the metadata of the linked class. (Though I did not yet write the 
automatic role derivation, it should be easy to do so.)

 If desired we
 could have easily read that information from an ACL file.
 
 What do you have in mind as content for the ACL file. I understand  
 from the Acegi reference guide that you can set authorization on  
 domain objects. But what for example if the case is that a delete  
 button may only be visible for administrators?
   
As I said, we don't use ACL files, but it could be as simple as:
com.example.app.SecurePage role_viewer role_administrator
com.example.app.AdminPage role_administrator

How do this for buttons depend on the structure of your application. 
You'll have to devise a way to identify the button (or better, the 
function it will perform), and call a 
MetaDataRoleAuthorizationStrategy.authorize... before the button 
component is used.

 Erik.

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


-
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] CheckBox and GridView

2006-11-12 Thread Ingram Chen
This reminds me bad experiences with check + gridview sometime ago.GridView does not support Item reuse. i.e. If any form validation error occur,user input are just disappeared. use with care!
On 11/9/06, Frank Bille [EMAIL PROTECTED] wrote:
On 11/9/06, Flemming Seerup [EMAIL PROTECTED] wrote

public ThumbnailImageFragment(String id, final ImageReferencereference, IModelitemModel) {super(id);CheckBox checkBox = new CheckBox(select, itemModel);add(checkBox);
Try to use Check instead of CheckBox. I think that is your problem :)
http://wicket.sourceforge.net/apidocs/wicket/markup/html/form/CheckGroup.html
Frank

-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.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user
-- Ingram ChenJava [EMAIL PROTECTED]Institue of BioMedical Sciences Academia Sinica Taiwanblog: 
http://www.javaworld.com.tw/roller/page/ingramchen
-
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] Authentication Tomcat - Wicket

2006-11-12 Thread Rik van der Kleij
Hi Erik,

Thanks for your reply.

First I will arrange authentication with Acegi in mine application  
and then I will take a good look to the  
MetaDataRoleAuthorizationStrategy.

Regards,
Rik

On 12-nov-2006, at 13:47, Erik van Oosten wrote:

 Hello Rik,
 Questions;
 Do you use a normal login form according to Acegi or do you use a
 Wicket login form?

 We use a signin page that is derived from the example in
 wicket-auth-roles-example. So it's a Wicket login form.
 Where do you put your authorization settings?

 The complete authorization picture in my current application is as  
 follows:
 - We use our wicket-auth-roles port to java 1.4 (took about 15 minutes
 to make) with just one change so that we can do authorization based on
 the base class of a component (see
 https://issues.apache.org/jira/browse/WICKET-21).

 - MyApplication#init() contains the following code:
getSecuritySettings().setAuthorizationStrategy(new
 MetaDataRoleAuthorizationStrategy(this));
MetaDataRoleAuthorizationStrategy.authorize(SecurePage.class,
 role_viewer role_administrator);
MetaDataRoleAuthorizationStrategy.authorize(AdminPage.class,
 role_administrator);
MetaDataRoleAuthorizationStrategy.authorize(SecurePopupPage.class,
 role_viewer role_administrator);
All pages that need a login extend either SecurePage or  
 SecurePopupPage.

 - The base class for all pages constructs a menu with links to all  
 pages
 in the application. If the linked page requires authorization, during
 construction of the menu
 MetaDataRoleAuthorizationStrategy.authorize(link, Component.RENDER,
 roles) is called, where link is a Link instance and roles is derived
 from the metadata of the linked class. (Though I did not yet write the
 automatic role derivation, it should be easy to do so.)

 If desired we
 could have easily read that information from an ACL file.

 What do you have in mind as content for the ACL file. I understand
 from the Acegi reference guide that you can set authorization on
 domain objects. But what for example if the case is that a delete
 button may only be visible for administrators?

 As I said, we don't use ACL files, but it could be as simple as:
 com.example.app.SecurePage role_viewer role_administrator
 com.example.app.AdminPage role_administrator

 How do this for buttons depend on the structure of your application.
 You'll have to devise a way to identify the button (or better, the
 function it will perform), and call a
 MetaDataRoleAuthorizationStrategy.authorize... before the button
 component is used.

  Erik.

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


 -- 
 ---
 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 from PopopSetting's page map

2006-11-12 Thread Johan Compagner
what does the link where you click on look like?Does it include the pagemap?johanOn 11/12/06, Nili Adoram 
[EMAIL PROTECTED] wrote:Hi all,I've created a BookmarkableLink with PopupSettings:
BookmarkablePageLink reportButton = newBookmarkablePageLink(reportLink, MyReport.class);PopupSettings popup = new PopupSettings(PageMap.forName(myReport),PopupSettings.SCROLLBARS);
popup.setTarget(getReportUrl()); //a _javascript_ function thatdetermines the URLreportButton.setPopupSettings(popup);add(reportButton);However, when the popup is opened and I call 
window.name I getwicket:default.Consequently, wheneverI click this link a new popup is opened insteadof 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 inPopupSettings.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 easierDownload 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 listWicket-user@lists.sourceforge.nethttps://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] CheckBox and GridView

2006-11-12 Thread Igor Vaynberg
thats not true, see GridView.setItemReuseStrategy, IItemReuseStrategy, and ReuseIfModelsEqualStrategy-igorOn 11/12/06, Ingram Chen 
[EMAIL PROTECTED] wrote:This reminds me bad experiences with check + gridview sometime ago.
GridView does not support Item reuse. i.e. If any form validation error occur,user input are just disappeared. use with care!
On 11/9/06, Frank Bille [EMAIL PROTECTED]
 wrote:
On 11/9/06, Flemming Seerup [EMAIL PROTECTED] wrote

public ThumbnailImageFragment(String id, final ImageReferencereference, IModelitemModel) {super(id);CheckBox checkBox = new CheckBox(select, itemModel);add(checkBox);
Try to use Check instead of CheckBox. I think that is your problem :)

http://wicket.sourceforge.net/apidocs/wicket/markup/html/form/CheckGroup.html
Frank

-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.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user
-- Ingram ChenJava [EMAIL PROTECTED]Institue of BioMedical Sciences Academia Sinica Taiwanblog: 

http://www.javaworld.com.tw/roller/page/ingramchen

-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.nethttps://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] Bug in Wicketbench?

2006-11-12 Thread Rik van der Kleij
Hi Joni,

Do you have any idea why I'm getting the following error while  
opening a wicketpage:
Can't preview file. Check your wicket:preview path.

I have also wicket projects in Eclipse that do not have this error  
but I can't understand why this happens or see any difference with a  
project that gives this error.

Regards,
Rik


On 3-nov-2006, at 8:28, Joni Freeman wrote:

 On Fri, 2006-11-03 at 08:20 +0100, Rik van der Kleij wrote:

 Hi,


 The issue is that remote debugging with Jetty and Maven from Eclipse
 doesn't work right any more if the default editor is Wicket Editor.
 While debugging the line of code that is executed by a thread is not
 shown in the editor window anymore. Only the linenumber of the thread
 is mentioned in the debug window.


 Does someone recognize this behavior?

 Yes, this is a known bug. It is not possible to fix this easily in
 current eclipse versions. I (and some others) have reported the  
 issue to
 eclipse devs and the only news i've got from them is that they wont  
 fix
 it in 3.3. Let's hope it will be fixed at some point, though! A
 workaround is to set normal Java editor as a default editor when
 debugging.

 Joni



 -- 
 ---
 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] edit xhtml Wicket files in Eclipse?

2006-11-12 Thread Potje rode kool
I want to use xhtml with Wicket but fail to let it work correctly, that the editor finds the tags from the wicket dtd.I am using Eclipse as IDE to develop. Any one who has an idea or experience with this?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] Question about setting up request and response

2006-11-12 Thread Carfield Yim
I need to setup some parameter for the wicket test, I can see there is
a method call setupRequestAndResponse so I guess I should override
this one and do the setup there? However I don't know how as this
method take no parameters. Would anyone tell me how to do?

-
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] Question about setting up request and response

2006-11-12 Thread Iman Rahmatizadeh
I don't think that's what you're looking for. What exactly do you want to do ? On 11/13/06, Carfield Yim [EMAIL PROTECTED] wrote: I need to setup some parameter for the wicket test, I can see there is
 a method call setupRequestAndResponse so I guess I should override this one and do the setup there? However I don't know how as this method take no parameters. Would anyone tell me how to do?
  - 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] Question about setting up request and response

2006-11-12 Thread Carfield Yim
Yes... i only browse the name but haven't actually read the document,
sorry about that.

In my code I will get some parameters using
getRequest().getParameter() so I need to assert it at my test.

After I really read the document, I guess what I really need to do in
put a Map at setParametersForNextRequest() , right?

On 11/13/06, Iman Rahmatizadeh [EMAIL PROTECTED] wrote:
 I don't think that's what you're looking for. What exactly do you want to do
 ?


 On 11/13/06, Carfield Yim [EMAIL PROTECTED] wrote:
  I need to setup some parameter for the wicket test, I can see there is
  a method call setupRequestAndResponse so I guess I should override
  this one and do the setup there? However I don't know how as this
  method take no parameters. Would anyone tell me how to do?
 
 
 -
  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] Question about setting up request and response

2006-11-12 Thread Iman Rahmatizadeh
Yep, put them in a Map or set them one by one, using the component path.On 11/13/06, Carfield Yim [EMAIL PROTECTED]
 wrote:Yes... i only browse the name but haven't actually read the document,
sorry about that.In my code I will get some parameters usinggetRequest().getParameter() so I need to assert it at my test.After I really read the document, I guess what I really need to do input a Map at setParametersForNextRequest() , right?
On 11/13/06, Iman Rahmatizadeh [EMAIL PROTECTED] wrote: I don't think that's what you're looking for. What exactly do you want to do ?
 On 11/13/06, Carfield Yim [EMAIL PROTECTED] wrote:  I need to setup some parameter for the wicket test, I can see there is
  a method call setupRequestAndResponse so I guess I should override  this one and do the setup there? However I don't know how as this  method take no parameters. Would anyone tell me how to do?
   -  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 easierDownload 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 listWicket-user@lists.sourceforge.nethttps://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 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] Too many open files

2006-11-12 Thread Frank Bille
Have you tried upgrading to 1.2.3? There are some fixes for something like that in it AFAIK.FrankOn 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 isgradually 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 arebeing 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:) IOExceptionwhile 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)atorg.apache.catalina.session.StandardManager.doUnload
(StandardManager.java:488)atorg.apache.catalina.session.StandardManager.unload(StandardManager.java:462)atorg.apache.catalina.session.StandardManager.stop(StandardManager.java:666)
atorg.apache.catalina.core.StandardContext.stop(StandardContext.java:4337)atorg.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:892)atorg.apache.catalina.startup.HostConfig.undeployApps
(HostConfig.java:1153)at org.apache.catalina.startup.HostConfig.stop(HostConfig.java:1125)atorg.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:312)at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)atorg.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1054)atorg.apache.catalina.core.ContainerBase.stop
(ContainerBase.java:1066)atorg.apache.catalina.core.StandardEngine.stop(StandardEngine.java:447)atorg.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)atorg.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 Geronimohttp://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___Wicket-user mailing listWicket-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] CheckBox and GridView

2006-11-12 Thread Ingram Chen
Yes, I do try ReuseIfModelsEqualStrategybut... it does not work for me. I dig into source code and found GridView internally use another RepeatingView for rows, and it doesn't utilize IItemReuseStrategy.
Maybe I just do wrong configuration...On 11/13/06, Igor Vaynberg [EMAIL PROTECTED] wrote:
thats not true, see GridView.setItemReuseStrategy, IItemReuseStrategy, and ReuseIfModelsEqualStrategy
-igorOn 11/12/06, Ingram Chen 

[EMAIL PROTECTED] wrote:This reminds me bad experiences with check + gridview sometime ago.
GridView does not support Item reuse. i.e. If any form validation error occur,user input are just disappeared. use with care!
On 11/9/06, Frank Bille [EMAIL PROTECTED]

 wrote:
On 11/9/06, Flemming Seerup [EMAIL PROTECTED] wrote

public ThumbnailImageFragment(String id, final ImageReferencereference, IModelitemModel) {super(id);CheckBox checkBox = new CheckBox(select, itemModel);add(checkBox);
Try to use Check instead of CheckBox. I think that is your problem :)


http://wicket.sourceforge.net/apidocs/wicket/markup/html/form/CheckGroup.html
Frank

-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.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user
-- Ingram ChenJava [EMAIL PROTECTED]Institue of BioMedical Sciences Academia Sinica Taiwanblog: 


http://www.javaworld.com.tw/roller/page/ingramchen

-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.nethttps://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.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user
-- Ingram ChenJava [EMAIL PROTECTED]Institue of BioMedical Sciences Academia Sinica Taiwanblog: 
http://www.javaworld.com.tw/roller/page/ingramchen
-
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] Not sure how to use DatePicker component

2006-11-12 Thread Carfield Yim
Actually it work nice for me after I understand how it work...

I can see some complaint on the web and look like this just the
problem of documentation and the way of change the default is not
straigth forward? May be not worth to remove it? Not sure

On 11/11/06, Eelco Hillenius [EMAIL PROTECTED] wrote:
 Sorry for the misguidance there. Something like this works:

 final DateFormat fmt = new 
 SimpleDateFormat(-MM-dd);
 final DateConverter dateConverter = new 
 DateConverter()
 {
 public DateFormat getDateFormat(Locale locale)
 {
 return fmt;
 }
 };
 TextField datePropertyTextField = new 
 TextField(dateProperty, Date.class);
 add(datePropertyTextField);
 DatePicker datePicker = new DatePicker(datePicker, 
 dateLabel,
 datePropertyTextField);
 datePicker.setDateConverter(dateConverter);
 add(datePicker);


 though in the above example, the text field itself needs to use the
 proper date format as well.

 I was wrong about DatePickerSettings#setIfFormat. You don't need that.

 Instead of following the above example code I gave, you'd probably be
 best off to set a global date converter (explained here
 http://cwiki.apache.org/WICKET/using-custom-converters.html).


 Eelco

 All of this is friggin' ugly anyway. You may have noticed that we are
 about to remove the datepicker component from the extensions project.

 On 11/10/06, Carfield Yim [EMAIL PROTECTED] wrote:
   That would be:
  
   /**
* The format string that will be used to enter the date in the 
   input field.
* This format will be honored even if the input field is hidden. 
   Use
* Javascript notation, like '%m/%d/%Y'.
*/
   private String ifFormat = null;
  
   Use DatePicker#setDateConverter to align the two.
  
  
  I guess you mean something like
 
  DatePicker dp = new DatePicker(birthDayPicker, dateField);
  DateConverter dc = new DateConverter();
  dc.setDateFormat(Locale.ENGLISH,
  DateFormat.getDateInstance(DateFormat.SHORT, Locale.ENGLISH));
  dp.setDateConverter(dc);
 
  However, just try and no effect at al ... any problem ?
 
  -
  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] window name is not taken from PopopSetting's pagemap

2006-11-12 Thread Erik van Oosten
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
 
-- 
Erik van Oosten
http://www.day-to-day-stuff.blogspot.com/


-
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] generic bean support with webby: release 0.5

2006-11-12 Thread Chris M
Dear All,

there's a new version of webby available, see http://r8fe.net/wordpress/.

If generic bean (or: business object) manipulation and navigation is of 
interest to you, you might have a look and leave me a comment or an email.

Best regards,
Chris

-
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-12 Thread Eelco Hillenius
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


[Wicket-user] same sign-in, multiple Applications?

2006-11-12 Thread Nick Johnson
I want to be able to have a nice, clean implementation of one 
authorization strategy for all of my applications such that once I've 
signed in for one application, I'm signed in for all of them.

My rough plan was to create a concrete class implementing 
IAuthorizationStrategy, a SignIn.java and corresponding SignIn.html.  Then 
in any application that needed authorization, I'd call 
setAuthorizationStrategy and pass in an instance of my 
SignInAuthorizationStrategy.

The problem is that I *don't* want to have to force all of my applications 
to override getSessionFactory to provide a session for authorization; 
This is both because the applications may want to put something else in 
the session for their own use, and because this wouldn't solve my sign-in 
problem anyway.  I'd still end up having to sign in once per application.

The only way I can think to do it is a fairly gross-looking hack to get at 
the HttpSession object and put my authorization-related objects in the 
user's HTTP session diroctly.  This strikes me as inelegant, since it 
steps outside the framework to perform tasks inside the framework.

It also doesn't look like I can make SignIn its own WebApplication, since 
RestartResponseAtInterceptPageException takes a Page, not an Application. 
And if I call getSession on the SignIn page component, I'm going to get 
the Application's session, which again won't be shared across all 
applications.

I don't want to jam anything into a cookie and rely on that, since this 
would open up a vulnerability to xss-style attacks.

Is there a right way to do this in Wicket?

Nick

-- 
When you're a kid, they tell you it's all grow up, get a job, get married,
get a house, have a kid, and that's it.  No, the truth is the world is so
much stranger than that.  It's so much darker, and so much madder.
And so much better.
   -- Elton, Doctor Who, Love and Monsters
This message has been brought to you by Nick Johnson 2.1 and the number 6.
http://healerNick.com/   http://morons.org/http://spatula.net/

-
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