[Wicket-user] Avoid session reuse on login page when previous user doesn't log out

2006-12-16 Thread Robert McClay
Wicket 1.2.3

User A and B share a computer at an office.

User A logs in. Session is setup with account info. User A doesn't log out.

User B clicks on his login bookmark, and logs in using the same session 
(as it wasn't invalidated with a logout) -- the same session is reused. 
The login process would then need to manually clear any of the 
user-specific objects that may have been stored in the session (eg, 
user preferences, whatever was set in the custom session object). A way 
around this would be for the login page to invalidate the session, but 
then a submit would have a page expired error.

Any graceful way around this in wicket 1.2.3?



-
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] 1 app, 2 HomePages. 1 public, 1 logged-in

2006-11-24 Thread Robert McClay
I have an app that has a public section and a logged-in section. If the 
session expires for a logged-in user, I'd like to direct him to the 
login. If a page expires for a public user, I'd like to direct him to 
the / page. Any thoughts on how to handle this efficently? One easy 
way would be to break the app into 2 apps, 2 separate WicketServlets, 
each with its own HomePage defined, but that may use too many resources 
just to accomplish this.



-
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] TinyMCE issues with resources

2006-08-15 Thread Robert McClay
I'm using wicket 1.2 jar and wicket-contrib-tinymce-1.0-SNAPSHOT.jar 
(built in maven from checking out 1.2 branch of wicket-stuff)

I've added TinyMCEPanel to my page via add(new TinyMCEPanel(tinyMCE));

When I click on the page (I'm using Fire Fox 1.5.0.6 under OS X), the 
following javascript errors are reported in the console:

Error: this.contentWindow has no properties
Source File: 
http://localhost:9092/car/loads/resources/wicket.contrib.tinymce.TinyMCEPanel/tiny_mce/tiny_mce_src.js
Line: 

2395

Error: editorTemplate has no properties
Source File: 
http://localhost:9092/car/loads/resources/wicket.contrib.tinymce.TinyMCEPanel/tiny_mce/tiny_mce_src.js
Line: 

3372

When I look at the java console, the following is reported:

15 Aug 2006 10:18:26,317 ERROR resource.SharedResourceRequestTarget - 
shared resource 
wicket.contrib.tinymce.TinyMCEPanel/tiny_mce/themes/simple/editor_template_src.js
 
not found
15 Aug 2006 10:18:26,331 ERROR resource.SharedResourceRequestTarget - 
shared resource 
wicket.contrib.tinymce.TinyMCEPanel/tiny_mce/langs/en.js not found
15 Aug 2006 10:18:26,351 ERROR resource.SharedResourceRequestTarget - 
shared resource 
wicket.contrib.tinymce.TinyMCEPanel/tiny_mce/themes/simple/css/editor_ui.css 
not found

So it appears not to have issues requesting 
http://localhost:9092/car/loads/resources/wicket.contrib.tinymce.TinyMCEPanel/tiny_mce/tiny_mce_src.js,
 
but the other resources are failing.

Any ideas? 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] Re: Wicket Include vs. RequestDispatcher.include

2006-03-30 Thread Robert McClay
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@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Back button, setVisible, isVisible, Submit Button is not Visible

2006-03-22 Thread Robert McClay

I'm writing a simple Upload File/View File/Delete File panel. It has 3 buttons.

1. Upload - Only visible when no file is stored  permissions are 
correct via isVisible() override.
2. View File - Only visible when a file is already stored via 
isVisible() override.
3. Delete File - Only visible when a file is already stored  
permissions are correct via isVisible() override.


When I upload a file, the upload button is hidden, the view and delete 
buttons are visible. However, if I hit back and click upload again I 
get wicket.WicketRuntimeException: Submit Button is not visible. What 
I'd like to do is say a file is already uploaded and ignore their file 
(I think). For remove I'd say No file to remove. Etc. Or just do 
nothing and render the current display. Maybe if it threw a named 
exception?


Or do I need to use state changes explicitly and call setVisible so 
that it rolls the page back to that state. Using setVisible is much 
less convenient that using isVisible for this kind of logic.


Thanks!




---
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] Re: Back button, setVisible, isVisible, Submit Button is not Visible

2006-03-22 Thread Robert McClay
Perhaps a flag on the component to specify whether it handles clicks 
when it is invisible? That would fix the issue and the component 
would get the click, could check if it whether it is visible / 
invisible and then act accordingly. I tried turning on versioning and 
then using setVisible explicitly but it isn't working (at least the way 
I'd expect it) The version numbers are incrementing but the visibility 
isn't changing. I am of course many levels deep in panels.. For now I 
may choose to have the buttons available at all times and that will get 
around the problem for the present. Thanks.


On 2006-03-22 12:16:18 -0700, Igor Vaynberg [EMAIL PROTECTED] said:



problem with approach like that in this case is that when you go back the
upload button should indeed be hidden because youve already uploaded a file=
.
so in your case it would be better to call setvisible isntead of overriding
isvisible because your condition does not work well across requests.

-Igor


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


I'm writing a simple Upload File/View File/Delete File panel. It has 3
buttons.

1. Upload - Only visible when no file is stored  permissions are
correct via isVisible() override.
2. View File - Only visible when a file is already stored via
isVisible() override.
3. Delete File - Only visible when a file is already stored 
permissions are correct via isVisible() override.

When I upload a file, the upload button is hidden, the view and delete
buttons are visible. However, if I hit back and click upload again I
get wicket.WicketRuntimeException: Submit Button is not visible. What
I'd like to do is say a file is already uploaded and ignore their file
(I think). For remove I'd say No file to remove. Etc. Or just do
nothing and render the current display. Maybe if it threw a named
exception?

Or do I need to use state changes explicitly and call setVisible so
that it rolls the page back to that state. Using setVisible is much
less convenient that using isVisible for this kind of logic.

Thanks!




---
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=3Dlnkkid=3D110944bid=3D241720dat=

=3D121642

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




problem with approach like that in this case is that when you go back the u=
pload button should indeed be hidden because youve already uploaded a file.=
 so in your case it would be better to call setvisible isntead of overridin=
g isvisible because your condition does not work well across requests.
brbr-Igorbrbrbrdivspan class=3Dgmail_quoteOn 3/22/06, b cl=
ass=3Dgmail_sendernameRobert McClay/b lt;a href=3Dmailto:montecrist=
[EMAIL PROTECTED][EMAIL PROTECTED]/agt; wrote:/spanblockquote cla=
ss=3Dgmail_quote style=3Dborder-left: 1px solid rgb(204, 204, 204); marg=
in: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;
I'm writing a simple Upload File/View File/Delete File panel. It has 3 butt=
ons.brbr1. Upload - Only visible when no file is stored amp; permissio=
ns arebrcorrect via isVisible() override.br2. View File - Only visible =
when a file is already stored via
brisVisible() override.br3. Delete File - Only visible when a file is a=
lready stored amp;brpermissions are correct via isVisible() override.br=

brWhen I upload a file, the upload button is hidden, the view and delete

brbuttons are visible. However, if I hit back and click upload again Ibr=

get quot;wicket.WicketRuntimeException: Submit Button is not visiblequot=

;. WhatbrI'd like to do is say a file is already uploaded and ignore thei=
r file
br(I think). For remove I'd say quot;No file to removequot;. Etc. Or ju=
st dobrnothing and render the current display. Maybe if it threw a named=
brexception?brbrOr do I need to use state changes explicitly and call =
setVisible so
brthat it rolls the page back to that state. Using setVisible is muchbr=
less convenient that using isVisible for this kind of logic.brbrThanks!=
brbrbrbrbr---
brThis SF.Net email is sponsored by xPML, a groundbreaking scripting lang=
uagebrthat extends applications into web and mobile media. Attend the liv=
e webcastbrand join the prime developer group breaking into this new codi=
ng territory!
bra href=3Dhttp://sel.as-us.falkag.net/sel?cmd=3Dlnkamp;kid=3D110944a=
mp;bid=3D241720amp;dat=3D121642http://sel.as-us.falkag.net/sel?cmd=3Dlnk=
amp;kid=3D110944amp;bid=3D241720amp;dat=3D121642/abr=
___
brWicket-user mailing listbra href=3Dmailto:[EMAIL PROTECTED]
orge.netWicket-user@lists.sourceforge.net/abra href=3Dhttps://lists=
.sourceforge.net/lists/listinfo

[Wicket-user] Upload, multipart form, Resin

2006-03-21 Thread Robert McClay

Resin has an option that handles parsing multipart forms automatically.

http://www.caucho.com/products/resin/ref/app-config.xtp#multipart-form

...an uploaded file with a form name of foo, the parameter value 
contains the path name to a temporary file containing the uploaded 
file. foo.filename contains the uploaded filename, and foo.content-type 
contains the content-type of the uploaded file.


To use this option with Wicket, my workaround was to remove 
final/private from Form.handleMultiPart() and override it to return 
true. I then use a custom FileUploadField that gets the file 
information from the parameters instead of the built-in-wicket 
multipart form handling.


Rob




---
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] Re: Upload, multipart form, Resin

2006-03-21 Thread Robert McClay
Specific to the Resin container I think. It handles multipart forms 
automatically and puts the file path in the request parameters. So the 
form needs to be specified as multipart/form-data but Wicket shouldn't 
handle it as a multipart form. A less intrusive fix to get it working 
is I explicitly specific enctype=multipart/form-data in the markup 
and I override Form.onComponentTag, call its super, and then call 
setMultiPart(false) so wicket doesn't handle it as a multipart form.


On 2006-03-21 10:26:54 -0700, Eelco Hillenius 
[EMAIL PROTECTED] said:



Is this specific to Resin, or is it something more general?

Eelco

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

Resin has an option that handles parsing multipart forms automatically.

http://www.caucho.com/products/resin/ref/app-config.xtp#multipart-form

...an uploaded file with a form name of foo, the parameter value
contains the path name to a temporary file containing the uploaded
file. foo.filename contains the uploaded filename, and foo.content-type
contains the content-type of the uploaded file.

To use this option with Wicket, my workaround was to remove
final/private from Form.handleMultiPart() and override it to return
true. I then use a custom FileUploadField that gets the file
information from the parameters instead of the built-in-wicket
multipart form handling.

Rob




---
This SF.Net email is sponsored by xPML, a groundbreaking scripting langua

ge

that extends applications into web and mobile media. Attend the live webc

ast

and join the prime developer group breaking into this new coding territor

y!

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






---
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] Porting to 1.2 -- using getSession().invalidate()

2006-03-05 Thread Robert McClay
In 1.1, given a runtime exception of type SecurityException, I'd 
forward to a special error page that then calls 
getSession().invalidate() to log the user out. The special error page 
would render and then the session would be invalidated, causing 
additional clicks to forward to the login page. In 1.2 my page no 
longer renders -- it jumps straight to the Page Expired page if I call 
getSession().invalidate(). I'm using the default render strategy. Is 
there a preferred way to implement this type of behavior in 1.2? I want 
to invalidate the session so that the user can't repeatedly request 
resources that throw SecurityExceptions, but I'd like a page to be 
rendered prior to the session being invalidated.


Thanks.




---
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] Page Versioning Problem

2006-02-25 Thread Robert McClay
I'm using Wicket 1.1. I have a page with 1 constructor (no default 
constructor):


public ChoiceListDetailPage(final Page backPage, final ChoiceList detail)

I construct and then go to the page from a bookmarkable list page. The 
new page doesn't handle versioning correctly though. It is the same as 
its parent page but it isn't bookmarkable. It contains a ListView that 
needs to be versioned, but even though I say 
listView.setVersioned(true) the version number for the list is never 
incremented. The listview's model is a LoadableDetachableModel 
generated from database records fresh each time.


Any ideas? Why does it work on a bookmarkable page but not on one that isn't?

Thanks.




---
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] Re: Page Versioning Problem

2006-02-25 Thread Robert McClay
My mistake, my listview was accidentally in a form, which caused the 
issue. All is resolved. Thanks.


On 2006-02-25 15:33:16 -0700, Johan Compagner [EMAIL PROTECTED] said:



first of all a page has a version number not the listview.
And when must the version be bumped up one?
When the model of the listview changes?
See the modelChanging can modelChanged() events. That will up the version
number.
johan


On 2/25/06, Robert McClay [EMAIL PROTECTED] wrote:


I'm using Wicket 1.1. I have a page with 1 constructor (no default
constructor):

public ChoiceListDetailPage(final Page backPage, final ChoiceList detail)

I construct and then go to the page from a bookmarkable list page. The
new page doesn't handle versioning correctly though. It is the same as
its parent page but it isn't bookmarkable. It contains a ListView that
needs to be versioned, but even though I say
listView.setVersioned(true) the version number for the list is never
incremented. The listview's model is a LoadableDetachableModel
generated from database records fresh each time.

Any ideas? Why does it work on a bookmarkable page but not on one that
isn't?

Thanks.




---
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=3Dlnkkid=3D110944bid=3D241720dat=

=3D121642

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




first of all a page has a version number not the listview.brAnd when must=
 the version be bumped up one?brWhen the model of the listview changes?b=
rSee the modelChanging can modelChanged() events. That will up the version=
 number.
brbrjohanbrbrbrdivspan class=3Dgmail_quoteOn 2/25/06, b cl=
ass=3Dgmail_sendernameRobert McClay/b lt;a href=3Dmailto:montecrist=
[EMAIL PROTECTED][EMAIL PROTECTED]/agt; wrote:/spanblockquote cla=
ss=3Dgmail_quote style=3Dborder-left: 1px solid rgb(204, 204, 204); marg=
in: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;
I'm using Wicket 1.1. I have a page with 1 constructor (no defaultbrconst=
ructor):brbrpublic ChoiceListDetailPage(final Page backPage, final Choi=
ceList detail)brbrI construct and then go to the page from a bookmarkab=
le list page. The
brnew page doesn't handle versioning correctly though. It is the same as=
brits parent page but it isn't bookmarkable. It contains a ListView thatb=
rneeds to be versioned, but even though I saybrlistView.setVersioned
(true) the version number for the list is neverbrincremented. The listvie=
w's model is a LoadableDetachableModelbrgenerated from database records f=
resh each time.brbrAny ideas? Why does it work on a bookmarkable page b=
ut not on one that isn't?
brbrThanks.brbrbrbrbr=
---brThis SF.Net email is sponsored by xPML, a groundbreaking=
 scripting languagebrthat extends applications into web and mobile media.=
 Attend the live webcast
brand join the prime developer group breaking into this new coding territ=
ory!bra href=3Dhttp://sel.as-us.falkag.net/sel?cmd=3Dlnkamp;kid=3D1109=
44amp;bid=3D241720amp;dat=3D121642http://sel.as-us.falkag.net/sel?cmd=
=3Dlnkamp;kid=3D110944amp;bid=3D241720amp;dat=3D121642
/abr___brWicket-user mail=
ing listbra href=3Dmailto:Wicket-user@lists.sourceforge.net;Wicket-use=
[EMAIL PROTECTED]/abra href=3Dhttps://lists.sourceforge.net/lis=
ts/listinfo/wicket-user
https://lists.sourceforge.net/lists/listinfo/wicket-user/abr/blockquot=
e/divbr


---
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@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Re: DatePicker wicket 1.1 IE 6.0 with HTTPS synchronization / blocking issues

2006-01-30 Thread Robert McClay

I haven't tried it with 1.2 yet, but will. Thanks.

On 2006-01-28 12:30:43 -0700, Eelco Hillenius [EMAIL PROTECTED] said:


It's sounds really nasty. Sorry we haven't been able to help you with
it directly. Did you test it with the current version of 1.2 at all?
It would certainly be reasuring if that is fixed in that version.

Eelco

On 1/28/06, Robert McClay [EMAIL PROTECTED] wrote:

I modified my copy of DatePicker.java and DatePicker.html to reference
resources (images, javascript, and css) from the web server directly
and everything works great now. Hopefully I can throw it out when 1.2
is released. It appears that IE / https / wicket combination causes
some threads to get stuck when lots of images are requested
simultaneously. Has anyone else experienced this?

On 2006-01-27 12:57:11 -0700, Martijn Dashorst
[EMAIL PROTECTED] said:



Can you see the requests stalling in the server logs?
As for 1.2: the resource requests will not pass a blocking section. Thi

s is

hard to achieve in Wicket 1.1, which is one of the reasons we (mainly E

elco

)
replaced the internal request processing in Wicket 1.2

Martijn






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


[Wicket-user] Re: DatePicker wicket 1.1 IE 6.0 with HTTPS synchronization / blocking issues

2006-01-28 Thread Robert McClay
I modified my copy of DatePicker.java and DatePicker.html to reference 
resources (images, javascript, and css) from the web server directly 
and everything works great now. Hopefully I can throw it out when 1.2 
is released. It appears that IE / https / wicket combination causes 
some threads to get stuck when lots of images are requested 
simultaneously. Has anyone else experienced this?


On 2006-01-27 12:57:11 -0700, Martijn Dashorst 
[EMAIL PROTECTED] said:




Can you see the requests stalling in the server logs?
As for 1.2: the resource requests will not pass a blocking section. This is
hard to achieve in Wicket 1.1, which is one of the reasons we (mainly Eelco=
)
replaced the internal request processing in Wicket 1.2

Martijn





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


[Wicket-user] DatePicker wicket 1.1 IE 6.0 with HTTPS synchronization / blocking issues

2006-01-27 Thread Robert McClay
Users of our https site using IE 6 have reported that pages that use a 
DatePicker seem to stall on downloading the images for the datepicker. 
I've verified and it happens when the images aren't in the browser 
cache -- sometimes it takes forever to download the images. Haven't 
noticed the same behavior when not using https with IE, and of course 
Safari and Firefox work well.


When the datepicker is stalled downloading the images, and I click on 
another page in the app, it behaves as if it is blocked and doesn't 
respond to my session until all of the images datepicker images have 
finished downloading (which can take forever). Does 1.1.1 or 1.2 allow 
static image resources or .css files to be requested by the browser 
without synchronization/blocking? I've also noticed that IE will 
request the images again if I mouseover the datepicker window if they 
haven't downloaded yet, adding to the delay.


Of course, the problem can only be replicated under IE -- maybe it 
requests all of the images at once and causes some sort of strange 
blocking phenomenon? Any ideas? Does serving up static resources / 
images in a package cause the session to block? If so, does it need to?


Thanks.





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


[Wicket-user] Re: DatePicker wicket 1.1 IE 6.0 with HTTPS synchronization / blocking issues

2006-01-27 Thread Robert McClay
When the session times out I can get a boat load of these exceptions (1 
per stalled thread I assume), which leads me to believe the thread 
stalls when the resource is requested, if they're all requested 
simultaneously. I'm going to hunt for a quick way to adjust DatePicker 
to get its resources directly from the web server as opposed to going 
through a PackageResource. Thanks.


== Exception Data ==
java.lang.IllegalStateException: Can't call removeAttribute(String) 
when session is no longer valid.

at 
com.caucho.http.session.SessionImpl.removeAttribute(SessionImpl.java:389)
at wicket.protocol.http.WebSession.removeAttribute(WebSession.java:188)
at wicket.Session.touch(Session.java:804)
at wicket.Page.doRender(Page.java:225)
at 
wicket.protocol.http.WebRequestCycle.redirectTo(WebRequestCycle.java:218)
at 
wicket.RequestCycle.redirectToExceptionErrorPage(RequestCycle.java:847)
at wicket.RequestCycle.internalOnRuntimeException(RequestCycle.java:745)
at wicket.RequestCycle.request(RequestCycle.java:428)
at wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:197)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:162)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:103)
	at 
com.caucho.server.http.FilterChainServlet.doFilter(FilterChainServlet.java:96)
	at 


com.bci.car.servlets.gzip.GzipFilter.doFilter(GzipFilter.java:127)
	at 
com.caucho.server.http.FilterChainFilter.doFilter(FilterChainFilter.java:88)
	at 


com.caucho.server.http.Invocation.service(Invocation.java:315)
at 
com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:135)
at 
com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:253)
at 
com.caucho.server.http.HttpRequest.handleConnection(HttpRequest.java:170)
at com.caucho.server.TcpConnection.run(TcpConnection.java:139)
at java.lang.Thread.run(Thread.java:595)

On 2006-01-27 12:57:11 -0700, Martijn Dashorst 
[EMAIL PROTECTED] said:




Can you see the requests stalling in the server logs?
As for 1.2: the resource requests will not pass a blocking section. This is
hard to achieve in Wicket 1.1, which is one of the reasons we (mainly Eelco=
)
replaced the internal request processing in Wicket 1.2

Martijn

On 1/27/06, Robert McClay [EMAIL PROTECTED] wrote:


Users of our https site using IE 6 have reported that pages that use a
DatePicker seem to stall on downloading the images for the datepicker.
I've verified and it happens when the images aren't in the browser
cache -- sometimes it takes forever to download the images. Haven't
noticed the same behavior when not using https with IE, and of course
Safari and Firefox work well.

When the datepicker is stalled downloading the images, and I click on
another page in the app, it behaves as if it is blocked and doesn't
respond to my session until all of the images datepicker images have
finished downloading (which can take forever). Does 1.1.1 or 1.2 allow
static image resources or .css files to be requested by the browser
without synchronization/blocking? I've also noticed that IE will
request the images again if I mouseover the datepicker window if they
haven't downloaded yet, adding to the delay.

Of course, the problem can only be replicated under IE -- maybe it
requests all of the images at once and causes some sort of strange
blocking phenomenon? Any ideas? Does serving up static resources /
images in a package cause the session to block? If so, does it need to?

Thanks.





---
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=3Dlnkkid=3D103432bid=3D230486dat=

=3D121642

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


[Wicket-user] No version manager available exception instead of Page Expired on second click to versioned page

2006-01-23 Thread Robert McClay
In Wicket 1.1 if the session expires and you click on a versioned page, 
the first time it will take you to the Page Expired page. If you then 
hit back and click the link again, it'll throw an exception. Is that a 
bug?


java.lang.IllegalStateException: No version manager available to 
retrieve requested versionNumber 2
at 
wicket.Page.getVersion(Page.java:387)
at 
wicket.Session.getPage(Session.java:271)
at 
wicket.protocol.http.WebRequestCycle.callComponentListener(WebRequestCycle.java:425)
 
  at 
wicket.protocol.http.WebRequestCycle.parseRequest(WebRequestCycle.java:140)
 
  at wicket.RequestCycle.request(RequestCycle.java:418)
at 
wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:197)
at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:126)
at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:103)
at 
com.caucho.server.http.FilterChainServlet.doFilter(FilterChainServlet.java:96)
 
  at 
com.bci.car.servlets.gzip.GzipFilter.doFilter(GzipFilter.java:127)

at 
com.caucho.server.http.FilterChainFilter.doFilter(FilterChainFilter.java:88)
 
  at com.caucho.server.http.Invocation.service(Invocation.java:315)
   
at 
com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:135)
 
  at 
com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:253)
 
  at 
com.caucho.server.http.HttpRequest.handleConnection(HttpRequest.java:170)
 
  at com.caucho.server.TcpConnection.run(TcpConnection.java:139)

at java.lang.Thread.run(Thread.java:613)





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


[Wicket-user] Security / Page Access / Page Construction / IAuthorizationStrategy

2005-11-13 Thread Robert McClay
I would like to enable page level security in my application. I don't 
want my page to be constructed unless a certain security requirement is 
met as at present I do a lot of data loading / etc in page constructors 
(as featured in the wicket examples).


It seems a new security policy is in the works to handle this -- 
IAuthorizationStrategy. In the meantime, what would be a good way to 
prevent a bookmarkable page from being constructed? Should I provide a 
new IPageFactory implementation that checks the session for 
authorization prior to returning a new page, and perhaps swap the page 
to a denied access or login page if access isn't available? Or should 
I check out the latest CVS sources and try IAuthorization strategy if 
it is implemented? Thanks.





---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42 plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Servlet forward to a JSP

2005-11-06 Thread Robert McClay
I'm exploring the possibility of integrating Wicket into a JSP 
application. Is it possible to tell Wicket to do a servlet forward to a 
JSP? I would like to add a few request attributes and then forward to a 
JSP. The reason I'd like to do a forward VS include is I need to be 
able to populate request attributes prior to the JSP running. The login 
page is currently implemented in JSP. Another option would be to 
refactor the login page, but I'm curious if it is feasibile to attempt 
the former as I want to use as much of the existing system as possible. 
Thanks.





---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42 plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Re: Servlet forward to a JSP

2005-11-06 Thread Robert McClay
If I come up with anything useful I'd be happy to contribute. The JSP I 
need to forward to requires request attributes, so I don't think the 
wicket.markup.html.include.Include component will work as from what I 
understand it is a separate request whose output is then included into 
the markup? In this case, the result of RedirectPage would be the same 
as it is a fresh browser request and I need to populate a request with 
request.setAttribute() and have the JSP be able to retrieve the request 
attributes. What I'm looking for is a way in Wicket to tell it to 
finish its processing, not output any markup, and then forward the 
request to another servlet, not include or redirect.  Thanks.


On 2005-11-06 15:38:06 -0700, Eelco Hillenius [EMAIL PROTECTED] said:


Sure. Use wicket.markup.html.pages.RedirectPage for server-side
redirecting to a non-wicket locations. If you want to inlcude things
likes JSP pages into Wicket pages, you can use the
wicket.markup.html.include.Include component. The latter is a bit
rough, so if you need better support on that one, please contribute ;)

Eelco


On 11/6/05, Robert McClay [EMAIL PROTECTED] wrote:

I'm exploring the possibility of integrating Wicket into a JSP
application. Is it possible to tell Wicket to do a servlet forward to a
JSP? I would like to add a few request attributes and then forward to a
JSP. The reason I'd like to do a forward VS include is I need to be
able to populate request attributes prior to the JSP running. The login
page is currently implemented in JSP. Another option would be to
refactor the login page, but I'm curious if it is feasibile to attempt
the former as I want to use as much of the existing system as possible.
Thanks.




---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Downl oad
it for free - -and be entered to win a 42 plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user




---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42 plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php






---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42 plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Re: Multiple checkboxes, table columns how-to in Wicket?

2005-10-26 Thread Robert McClay
Within a form I'm using a detachable model  for a ListView that 
contains business objects loaded directly via JDBC, each of which has a 
selected flag, rendered in the ListItem as a checkbox. However, when I 
get to onSubmit in the form, the model is still detached, and therefore 
the state hasn't been transferred from the form to the model. 
Therefore, when it renders, it reattaches but the model hasn't changed. 
What is the best way to fix this? In onSubmit I'd like to delete the 
records. The reason I use a detachable model is I want each render to 
have fresh results from the database via JDBC, but perhaps is there is 
better way? I haven't set optimizedItemRemoval to true because I don't 
need anything to be validated. Thanks


On 2005-08-16 23:48:08 -0600, Eelco Hillenius 
[EMAIL PROTECTED] said:
Note that if you are using detachable models (e.g. your list), if you 
don't do anything in the form's submit method (like persisting your 
changes), the next time the list renders it will use the same old 
value, which could give you the idea nothing happened.






---
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user