Re: wicketAjaxGet callback?

2009-10-22 Thread Vytautas Čivilis
Hi.

I've read this, but it has the same hacky solution, just from different
perspective.
I.e.,  var tip=document.getElementById('mooTipContent').innerHTML;
you still need to have some global variable to store result.
In the end, you need to generate some unique identifier and store either
callback or result to avoid race conditions.

nino martinez wael wrote:
 http://blog.jayway.com/2008/09/26/wicket-javascript-internals-dissected/
 
 and also check the mootips on wicketstuff..
 
 2009/10/21 Vytautas Čivilis vytautas.civi...@gmail.com
 mailto:vytautas.civi...@gmail.com
 
 Hi.
 
 Is there any way wicketAjaxGet can call the provided callback function
 with parameters from the backend?
 
 Now, as far as I can see, there are only options to:
 1. update component using AjaxRequestTarget
 2. execute javascript using AjaxRequestTarget
 
 What I need is to call the particular function (not the global one),
 with parameters from backend.
 The only possible way to achieve that (in my view), is to use 2nd option
 combined with storing the callback function in some global map. Then I
 would be able to call the correct callback function.
 
 Is there any easier (not hacky) way?
 
 Vytautas
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 mailto:users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 mailto:users-h...@wicket.apache.org
 
 

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Idiomatic way to reference shared images?

2009-10-22 Thread Ceki Gulcu

Hi John,

Thank you for your answer. I was already aware of the idiomatic way for 
referencing packaged resources. It is a nice way for bundling images which are 
used within a package. My question was about images shared among multiple packages.


Igor VaynBerg suggested adding a ContextImage which is what I was looking for. 
Another person (alankila) suggested images defined by ContextRelativeResource.


Here is sample code:

public class MyPage extends WebPage {
  public Contact() {
ContextImage ci = new ContextImage(helpImage, images/help.gif);
add(ci);
  }
}

Associated markup:

   img wicket:id=helpImage src=/

Of course the interesting part is that the help.gif file is located as a 
resource of my web-app and *not* part of WEB-INF/lib or WEB-INF/classes.


HTH,

John Krasnay wrote:

On Wed, Oct 21, 2009 at 07:57:12PM +0200, Ceki Gulcu wrote:

Hello,

I am trying to defined shared images in a Wicket application.

In my prokect, the image file help.gif is located under the
src/main/java/com/foo/ folder of my project. I have created an empty
class called Images.

package com.foo;
public class Images {
}

In the init() method of my web-application, I add help.gif as a shared resource:

public class MyApplication extends WebApplication {


  @Override
  protected void init() {
...
PackageResource pr = PackageResource.get(Images.class, help.gif);
sharedResources.add(help.gif, pr);
  }
}



I normally don't need to do anything in my app's init() method for images.


In markup, I attempt to access the images as

   wicket:link
 tdimg src=/resources/help.gif align=top//td
   /wicket:link



You would use wicket:link when the image is in the same package as the
markup. In this case, you would just put in img src=help.gif and Wicket
will re-write the src attribute to the right value. This works well if you like
to preview your markup in a browser.

Since your images are (I think) in a different package, you should get rid of
the wicket:link tag.

(Actually, I think using a relative path to the right package in src might
work with wicket:link, but I never do it that way. See below.)


Unfortunately, this does not seem to work. However, the following
markup works just fine but it's too cumbersome to write.

   wicket:link
 img src=resources/org.apache.wicket.Application/help.gif/
   /wicket:link

Reading page 229 of the Wicket in Action book, I would have thought
that the /resources/help.gif reference would have worked. Quoting
from the book:

  The resource is then available through a stable URL (/resources/discounts),
  independent of components. (page 229)

What is the idiomatic way in Wicket to reference shared images?



Here's my idiom. First, in the same package as my images, I create a class that
extends ResourceReference:

public class MyImage extends ResourceReference {
public MyImage(String name) {
super(MyImage.class, name);
}
}

Then, I attach an Image component to the img tag:

img wicket:id=smiley/

add(new Image(smiley, new MyImage(smiley.gif)));

No code needed in Application.init(), and no wicket:link tags required.

jk


--
Ceki Gülcü
Logback: The reliable, generic, fast and flexible logging framework for Java.
http://logback.qos.ch

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Wicket Eclipse plugin, is there another?

2009-10-22 Thread Olivier Bourgeois
2009/10/21 dtoffe dto...@yahoo.com.ar


By the way, just out of curiosity, what are the specific features you
 are missing in Wicket Bench ??

 Regards,

 Daniel


 Hi,

   I tried a little bit Wicket Bench and stoped because it's missing one
important feature for me : a way to use a custom IResourceFinder to load the
templates.

  All my templates are in a different folder than the source code, so Wicket
Bench was yelling at me because it could'nt find them.


How to do unit test for a session protected wicket page?

2009-10-22 Thread Haulyn R. Jason
Hi, all:

I have a page which is protected by MySession.isLogin().

I want to unit test this page and write the following code:

---
WicketTester tester = new WicketTester(new WebsiteApplication());

tester.createRequestCycle();
tester.setupRequestAndResponse();
tester.startPage(GmailImportPage.class);

WebsiteSession session = (WebsiteSession)tester.getWicketSession();
Member m = new Member();
m.setId(2);
session.setMember(m);

tester.assertRenderedPage(GmailImportPage.class);
---
But, the result is: expected: GmailImportPage but was IndexPage

that right, IndexPage is my Index Page setting by WebsiteApplication,
I think maybe I lost some steps, can anybody help me?

Thanks.



-- 
Many thanks!

Haulyn Microproduction

Location: Shandong Jinan Shumagang 6H-8, 25
Mobile: +086-15864011231
email: saharab...@gmail.com, hmp.hau...@foxmail.com
website: http://haulynjason.net
gtalk: saharab...@gmail.com
skype: saharabear
QQ: 378606292
persional Twitter: http://twitter.com/saharabear
persional Linkedin: http://www.linkedin.com/in/haulyn
Haulyn Microproduction Twitter: http://twitter.com/haulynmp


Haulyn Jason

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: How to do unit test for a session protected wicket page?

2009-10-22 Thread Martin Grigorov
El jue, 22-10-2009 a las 17:07 +0800, Haulyn R. Jason escribió:
 Hi, all:
 
 I have a page which is protected by MySession.isLogin().
 
 I want to unit test this page and write the following code:
 
 ---
 WicketTester tester = new WicketTester(new WebsiteApplication());
 
 tester.createRequestCycle();
 tester.setupRequestAndResponse();
put a User in the Session here and then isLogin() will pass
 tester.startPage(GmailImportPage.class);
 
 WebsiteSession session = (WebsiteSession)tester.getWicketSession();
 Member m = new Member();
 m.setId(2);
 session.setMember(m);
 
 tester.assertRenderedPage(GmailImportPage.class);
 ---
 But, the result is: expected: GmailImportPage but was IndexPage
 
 that right, IndexPage is my Index Page setting by WebsiteApplication,
 I think maybe I lost some steps, can anybody help me?
 
 Thanks.
 
 
 


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Markup-Edit in Eclipse = wicket:panel is not recognized

2009-10-22 Thread Martin U
Hi Community,

iam totally new to wicket and i want to use eclipse for editing my
wicket-java and markup files.

But the html-validator fools me with this error in the subject. Iam not able
to disable the validation (Window-Preferences-Validation).
Dont know why eclipse is not recognizing my configuration.

Which Editor inside eclipse use you for editing the markup-pages?

Thanks in Advance and apologise my english. Its not my mothers tongue.

- Martin


Re: Markup-Edit in Eclipse = wicket:panel is not recognized

2009-10-22 Thread Ernesto Reinaldo Barreiro
html xmlns:wicket=org.apache.wicket
body
 
/body
/html

Best,

Ernesto

On Thu, Oct 22, 2009 at 12:07 PM, Martin U ufer.mar...@googlemail.comwrote:

 Hi Community,

 iam totally new to wicket and i want to use eclipse for editing my
 wicket-java and markup files.

 But the html-validator fools me with this error in the subject. Iam not
 able
 to disable the validation (Window-Preferences-Validation).
 Dont know why eclipse is not recognizing my configuration.

 Which Editor inside eclipse use you for editing the markup-pages?

 Thanks in Advance and apologise my english. Its not my mothers tongue.

 - Martin



Re: Wicket, Tooltips and IE 8

2009-10-22 Thread nino martinez wael
So you tried the mootips integration from wicket-stuff-minis-mootip? As
Martin wrote please upgrade the dependencies and commit a patch :) Or ask
for commit rights

2009/10/21 Callum MacGregor callum.macgre...@gmail.com

 Hi there,

 I have a wicket application (using wicket 1.4.1)  that uses tooltips and
 have been using Prototip up to this point. However I now find that with IE
 8
 they won't work, even in IE7 compatibility mode. As most of the users run
 IE this is a major problem. I have tried switching to Mootips and that
 doesn't seem to help. I have also tried upgrading to Prototype 1.6.1rc but
 doesn't seem to help. Prototip 2.1 with Prototype 1.6.1rc is supposed to
 work but the wicket-stuff-minis-prototip uses Prototip 1.2.1 and Prototype
 1.6.0.2. I need to use Panels in my tooltips and was hoping to avoid having
 to render them to Strings in order to usethem and so was hoping to use a
 tooltip library that was already integrated with Wicket.  Does anyone have
 any tips on either: a) a wicket tooltip plugin to use or b) any other ways
 to achieve this...

 Cheers,

 Callum



Re: Markup-Edit in Eclipse = wicket:panel is not recognized

2009-10-22 Thread Ernesto Reinaldo Barreiro
Sorry, I thought you where talking about the annoying warning of Wicket
namespace. I use the HTML editor that comes with WTP project. With that
editor I always add the name-space declaration to avoid the annoying
warnings. The same project includes JavaScript and CSS editors.
Best,

Ernesto


On Thu, Oct 22, 2009 at 12:07 PM, Martin U ufer.mar...@googlemail.comwrote:

 Hi Community,

 iam totally new to wicket and i want to use eclipse for editing my
 wicket-java and markup files.

 But the html-validator fools me with this error in the subject. Iam not
 able
 to disable the validation (Window-Preferences-Validation).
 Dont know why eclipse is not recognizing my configuration.

 Which Editor inside eclipse use you for editing the markup-pages?

 Thanks in Advance and apologise my english. Its not my mothers tongue.

 - Martin



Small bug in inmethod datagrid

2009-10-22 Thread Linda van der Pal
I've just reported a bug with the inmethod datagrid: 
http://wicketstuff.org/jira/browse/GRID-2

I've added a quickstart as well.

When I try to resize the columns of a datagrid with both columns that 
are lightweight and those that are not, the position of the table 
borders changes, but the text doesn't move position. The text position 
is only refreshed if I resize the first column or if I resize the 
window. This bug only occurs in Firefox and not in IE or Chrome.


Regards,
Linda

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Markup-Edit in Eclipse = wicket:panel is not recognized

2009-10-22 Thread MattyDE

Thanks a lot,

but which eclipse editor understand xmlns and will validate against it?

I still got the Error :,(



reiern70 wrote:
 
 html xmlns:wicket=org.apache.wicket
 body
  
 /body
 /html
 
 Best,
 
 Ernesto
 
 On Thu, Oct 22, 2009 at 12:07 PM, Martin U
 ufer.mar...@googlemail.comwrote:
 
 Hi Community,

 iam totally new to wicket and i want to use eclipse for editing my
 wicket-java and markup files.

 But the html-validator fools me with this error in the subject. Iam not
 able
 to disable the validation (Window-Preferences-Validation).
 Dont know why eclipse is not recognizing my configuration.

 Which Editor inside eclipse use you for editing the markup-pages?

 Thanks in Advance and apologise my english. Its not my mothers tongue.

 - Martin

 
 

-- 
View this message in context: 
http://www.nabble.com/Markup-Edit-in-Eclipse-%3D%3E-wicket%3Apanel-is-not-recognized-tp26007708p26007931.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Markup-Edit in Eclipse = wicket:panel is not recognized

2009-10-22 Thread Ernesto Reinaldo Barreiro
I mean install

http://www.eclipse.org/webtools/
http://www.eclipse.org/webtools/Installing this plugin should bind the
.html files to an HTML editor. The xmlns is just to avoid warnings on your
HTML files.

Ernesto

On Thu, Oct 22, 2009 at 12:52 PM, MattyDE ufer.mar...@gmail.com wrote:


 Thanks a lot,

 but which eclipse editor understand xmlns and will validate against it?

 I still got the Error :,(



 reiern70 wrote:
 
  html xmlns:wicket=org.apache.wicket
  body
   
  /body
  /html
 
  Best,
 
  Ernesto
 
  On Thu, Oct 22, 2009 at 12:07 PM, Martin U
  ufer.mar...@googlemail.comwrote:
 
  Hi Community,
 
  iam totally new to wicket and i want to use eclipse for editing my
  wicket-java and markup files.
 
  But the html-validator fools me with this error in the subject. Iam not
  able
  to disable the validation (Window-Preferences-Validation).
  Dont know why eclipse is not recognizing my configuration.
 
  Which Editor inside eclipse use you for editing the markup-pages?
 
  Thanks in Advance and apologise my english. Its not my mothers tongue.
 
  - Martin
 
 
 

 --
 View this message in context:
 http://www.nabble.com/Markup-Edit-in-Eclipse-%3D%3E-wicket%3Apanel-is-not-recognized-tp26007708p26007931.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




Re: How to do unit test for a session protected wicket page?

2009-10-22 Thread Haulyn R. Jason
Thanks very much, it works!

On Thu, Oct 22, 2009 at 6:17 PM, Martin Grigorov mcgreg...@e-card.bg wrote:
 El jue, 22-10-2009 a las 17:07 +0800, Haulyn R. Jason escribió:
 Hi, all:

 I have a page which is protected by MySession.isLogin().

 I want to unit test this page and write the following code:

 ---
         WicketTester tester = new WicketTester(new WebsiteApplication());

         tester.createRequestCycle();
         tester.setupRequestAndResponse();
 put a User in the Session here and then isLogin() will pass
         tester.startPage(GmailImportPage.class);

         WebsiteSession session = (WebsiteSession)tester.getWicketSession();
         Member m = new Member();
         m.setId(2);
         session.setMember(m);

         tester.assertRenderedPage(GmailImportPage.class);
 ---
 But, the result is: expected: GmailImportPage but was IndexPage

 that right, IndexPage is my Index Page setting by WebsiteApplication,
 I think maybe I lost some steps, can anybody help me?

 Thanks.





 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org





-- 
Many thanks!

Haulyn Microproduction

You can access me with the following ways:
Location: Shandong Jinan Shumagang 6H-8, 25
Mobile: +086-15864011231
email: saharab...@gmail.com, hmp.hau...@foxmail.com
website: http://haulynjason.net
gtalk: saharab...@gmail.com
skype: saharabear
QQ: 378606292
persional Twitter: http://twitter.com/saharabear
persional Linkedin: http://www.linkedin.com/in/haulyn
Haulyn Microproduction Twitter: http://twitter.com/haulynmp


Haulyn Jason

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Idiomatic way to reference shared images?

2009-10-22 Thread John Krasnay
On Thu, Oct 22, 2009 at 09:15:35AM +0200, Ceki Gulcu wrote:
 Hi John,

 Thank you for your answer. I was already aware of the idiomatic way for  
 referencing packaged resources. It is a nice way for bundling images 
 which are used within a package. My question was about images shared 
 among multiple packages.

Not sure what you mean. The Image/ResourceReference solution works fine across
packages and even across modules, e.g. your images could be part of a shared
library and used by a component in your application.

 Of course the interesting part is that the help.gif file is located as 
 a resource of my web-app and *not* part of WEB-INF/lib or 
 WEB-INF/classes.

Ah, I see, you want to put it there. Is there a technical reason for this or is
it just a preference? Seems to me to be a lot less flexible than simply letting
your images live on the classpath, since you lose the ability to later package
the images in a shared JAR.

jk


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



container based authentication

2009-10-22 Thread Peter Diefenthaeler

Hello,
I try to secure my wicket appication with container based authentication.
The problem is, that all users can log also if they don't have the right
role.

In my login.html I use following form action:
  form action=login/j_security_check method=post

If I change the security-constraint - url-pattern from /login to /*,
the security check works, but I don't get any page displayed
(images/leer.gif not found).
 Also the login page doesn't render complete because all images are
blocked.

It would be nice if their is an example for the correct use of the
container based authentication. The often statet example in

http://cwiki.apache.org/WICKET/servlet-container-authentication.html

doesn't work!



The configuration for Apache Tomcat 6.xx:

?xml version=1.0 encoding=UTF-8?
tomcat-users
  role rolename=MyWeb/
  role rolename=manager/
  role rolename=admin/
  role rolename=TheirWeb/
  user username=zorro password=zorro roles=MyWeb/
  user username=Pete password=Pete roles=TheirWeb/
  user username=Pete1 password=Pete1 roles=MyWeb/
  user username=admin password=admin roles=admin,manager/
/tomcat-users


The deployment descriptor:

?xml version=1.0 encoding=UTF-8?
!DOCTYPE web-app PUBLIC
  -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
  http://java.sun.com/dtd/web-app_2_3.dtd;

web-app id=MyWeb
  display-name.MyWeb/display-name.
  servlet
servlet-name.wicket.wicket/servlet-name
servlet-classorg.apache.wicket.protocol.http.WicketServlet/
servlet-class
init-param
  param-nameapplicationClassName/param-name
  param-value
com.csc.pts.aar.web.application.AarWebApplication./param-value.
/init-param
load-on-startup.1/load-on-startup.
  /servlet
  servlet-mapping.
servlet-namewicket.wicket/servlet-name
url-pattern/*/url-pattern
  /servlet-mapping.

  security-constraint.
web-resource-collection
  web-resource-nameMyWeb/web-resource-name
  url-pattern/login/url-pattern
  http-methodGET/http-method
  http-methodPOST/http-method
/web-resource-collection
auth-constraint
  role-nameMyWeb/role-name
/auth-constraint
  /security-constraint

  login-config
auth-methodFORM/auth-method
form-login-config
 form-login-page/login/form-login-page
 form-error-page/loginerror/form-error-page
/form-login-config
  /login-config

  security-role
description
  The role that is required to log in to the Manager Application
/description
role-nameMyWeb/role-name
  /security-role

/web-app

The login.html:
body onload=initForm()
  div class=LoginBackground
  div class=LoginBoxDB
  table border=0 cellpadding=0 cellspacing=0
tr
  td
  form action=j_security_check method=post
table class=LoginNavi border=0 cellpadding=0
cellspacing=2
  tr
tdspan class=LoginNaviItem
Username:/span/td
tdinput id=userName name=
j_username value= size=23 tabindex=1 //td
tdimg src=images/leer.gif height=
20 width=18 //td
  /tr
  tr
tdspan class=LoginNaviItem
Password:/span/td
tdinput type=password name=
j_password value= size=25 tabindex=2 //td
tdimg src=images/leer.gif height=
20 width=18 //td
  /tr
  tr
tdimg src=images/leer.gif height=
0 width=1 //td
tdinput type=submit value=Login
class=buttonStandard//td
tdimg src=images/leer.gif height=
20 width=18 //td
  /tr
/table
  /form
  /td
/tr
  /table
  /div
  /div
/body
/html


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Embeding PDF DynamicWebResource works in FireFox but not IE

2009-10-22 Thread David R Robison
I am trying to embed the PDF output from a Jasper Report as a 
DynamicWebResource. The output is embedded into the web page with

object wicket:id=report height=100% width=100% /

The actual output from the Wicket application is
object wicket:id=report height=100% width=100% 
data=?wicket:interface=:6:report::IResourceListener:: 
type=application/pdf/


However, this works fine for FF but does not display anything for IE.
I am using Wicket 1.4.2. Any ideas?
Thanks, David

--

David R Robison
Open Roads Consulting, Inc.
103 Watson Road, Chesapeake, VA 23320
phone: (757) 546-3401
e-mail: drrobi...@openroadsconsulting.com
web: http://openroadsconsulting.com
blog: http://therobe.blogspot.com
book: http://www.xulonpress.com/book_detail.php?id=2579






-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



I18N for bookmarkable urls

2009-10-22 Thread Ilja Pavkovic
Hi,

as we need some SEO optimization I want to provide the following bookmarkable 
pages:

http://xxx/impressum
http://xxx/imprint

the native approach would be somethink like:

mountBookmarkablePage(imprint, ImprintPage.class);

mountBookmarkablePage(impressum, ImprintPage.class);

This looks ugly but works. 

Now I don't know how to create a bookmarkable links having an url in the 
expected language.

if( getLocale().equals(Locale.GERMAN)) {
  //create http://xxx/impressum
} else {
  // http://xxx/imprint
}

Obviously the following code does not help:
  add(new BookmarkablePageLink(link, ImprintPage.class));

Does anyone have a good idea?

Best regards,
Ilja Pavkovic


-- 
binaere bauten gmbh · tempelhofer ufer 1a · 10961 berlin

   +49 · 171 · 9342 465

Handelsregister: HRB 115854 - Amtsgericht Charlottenburg
Geschäftsführer: Dipl.-Inform. Ilja Pavkovic, Dipl.-Inform. Jost Becker

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Embeding PDF DynamicWebResource works in FireFox but not IE

2009-10-22 Thread Ernesto Reinaldo Barreiro
Hi David,

I know this approach works.

http://cwiki.apache.org/WICKET/displaying-content-eg-pdf-excel-word-in-an-iframe.html

Ernesto

On Thu, Oct 22, 2009 at 5:17 PM, David R Robison 
drrobi...@openroadsconsulting.com wrote:

 I am trying to embed the PDF output from a Jasper Report as a
 DynamicWebResource. The output is embedded into the web page with
 object wicket:id=report height=100% width=100% /

 The actual output from the Wicket application is
 object wicket:id=report height=100% width=100%
 data=?wicket:interface=:6:report::IResourceListener::
 type=application/pdf/

 However, this works fine for FF but does not display anything for IE.
 I am using Wicket 1.4.2. Any ideas?
 Thanks, David

 --

 David R Robison
 Open Roads Consulting, Inc.
 103 Watson Road, Chesapeake, VA 23320
 phone: (757) 546-3401
 e-mail: drrobi...@openroadsconsulting.com
 web: http://openroadsconsulting.com
 blog: http://therobe.blogspot.com
 book: http://www.xulonpress.com/book_detail.php?id=2579






 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




Re: AW: file download using ajaxLink

2009-10-22 Thread Sven Meier

I added my description to the well-known Wiki page:


http://cwiki.apache.org/confluence/display/WICKET/AJAX+update+and+file+download+in+one+blow

IMHO the solution with a behavior is simpler.
Furthermore huge amounts of data shouldn't be kept in the session but better be 
generated on the fly.

Regards

Sven


Ernesto Reinaldo Barreiro wrote:

Can you share your solution with the rest of us? I can imagine using a
behavior for adding the resource listener part... but it will be nice to see
what you are doing.

Best,

Ernesto

On Wed, Oct 21, 2009 at 9:12 PM, Sven Meier s...@meiers.net wrote:

  

I've added an alternative solution with a behavior.

Thanks for the original idea.

Sven


Giambalvo, Christian wrote:



Updated
http://cwiki.apache.org/confluence/display/WICKET/AJAX+update+and+file+download+in+one+blow

Mit freundlichen Grüßen
Christian Giambalvo
--
Fachinformatiker für Anwendungsentwicklung

EXCELSIS Informationssysteme GmbH
Wilhelmsplatz 8 - 70182 Stuttgart
Mobile +49 176 196 32 406
Office +49 711 6 20 30 406
christian.giamba...@excelsisnet.com
www.excelsisnet.com
www.twitter.com/excelsis_info

Sitz Stuttgart
Amtsgericht Stuttgart, HRB 21104
Geschäftsführer: Christian Sauter, Dr. Nils Herda, Frank Wolf


-Ursprüngliche Nachricht-
Von: Ernesto Reinaldo Barreiro [mailto:reier...@gmail.com] Gesendet:
Mittwoch, 21. Oktober 2009 09:40
An: users@wicket.apache.org
Betreff: Re: file download using ajaxLink

Maybe this might help

http://cwiki.apache.org/WICKET/ajax-update-and-file-download-in-one-blow.html


http://cwiki.apache.org/WICKET/ajax-update-and-file-download-in-one-blow.html
  
Ernesto


On Tue, Oct 20, 2009 at 10:12 PM, tubin gen fachh...@gmail.com wrote:



  

I do download in traditional way

here is the code

  public void download(String filename, byte[] filedata){
  setRedirect(false);
  WebResponse response = (WebResponse) getResponse();
  response.setAttachmentHeader(filename);
  response.setLastModifiedTime(Time.now());
  response.setContentType(application/octet-stream);
  response.write(
  new ByteArrayInputStream(filedata));
  response.close();
  }


  item.add(new LinkVoid(download){
  {
  add(new Label(filename,
eaAuditProgramAttachment.getFileName()));
  }
  @Override
  public void onClick() {

((BasePage)getPage()).download(eaAuditProgramAttachment.getFileName(),
eaAuditProgramAttachment.getEaBlob().getBlobData());
  }
  });


If I replace this link with AjaxLink it will not work  and I must use  an
ajaxlinkplease tell me how can I use ajaxLink for download





-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



  

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org





  



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: AW: file download using ajaxLink

2009-10-22 Thread Ernesto Reinaldo Barreiro
Hi Seven,
Thanks for sharing! More neat solution indeed.

About caching data on session: is you diff the wiki page, or see the
original code at

http://code.google.com/p/antilia/source/browse/trunk/com.antilia.ext/src/com/antilia/web/ajaxdownload/MyPdfResource.java

you will see nothing was cached on the solution I proposed. That part was
introduced later on.

Best,

Ernesto



On Thu, Oct 22, 2009 at 6:58 PM, Sven Meier s...@meiers.net wrote:

 I added my description to the well-known Wiki page:


 http://cwiki.apache.org/confluence/display/WICKET/AJAX+update+and+file+download+in+one+blow

 IMHO the solution with a behavior is simpler.
 Furthermore huge amounts of data shouldn't be kept in the session but
 better be generated on the fly.

 Regards

 Sven



 Ernesto Reinaldo Barreiro wrote:

 Can you share your solution with the rest of us? I can imagine using a
 behavior for adding the resource listener part... but it will be nice to
 see
 what you are doing.

 Best,

 Ernesto

 On Wed, Oct 21, 2009 at 9:12 PM, Sven Meier s...@meiers.net wrote:



 I've added an alternative solution with a behavior.

 Thanks for the original idea.

 Sven


 Giambalvo, Christian wrote:



 Updated

 http://cwiki.apache.org/confluence/display/WICKET/AJAX+update+and+file+download+in+one+blow

 Mit freundlichen Grüßen
 Christian Giambalvo
 --
 Fachinformatiker für Anwendungsentwicklung

 EXCELSIS Informationssysteme GmbH
 Wilhelmsplatz 8 - 70182 Stuttgart
 Mobile +49 176 196 32 406
 Office +49 711 6 20 30 406
 christian.giamba...@excelsisnet.com
 www.excelsisnet.com
 www.twitter.com/excelsis_info

 Sitz Stuttgart
 Amtsgericht Stuttgart, HRB 21104
 Geschäftsführer: Christian Sauter, Dr. Nils Herda, Frank Wolf


 -Ursprüngliche Nachricht-
 Von: Ernesto Reinaldo Barreiro [mailto:reier...@gmail.com] Gesendet:
 Mittwoch, 21. Oktober 2009 09:40
 An: users@wicket.apache.org
 Betreff: Re: file download using ajaxLink

 Maybe this might help


 http://cwiki.apache.org/WICKET/ajax-update-and-file-download-in-one-blow.html

 

 http://cwiki.apache.org/WICKET/ajax-update-and-file-download-in-one-blow.html
  Ernesto

 On Tue, Oct 20, 2009 at 10:12 PM, tubin gen fachh...@gmail.com wrote:





 I do download in traditional way

 here is the code

  public void download(String filename, byte[] filedata){
  setRedirect(false);
  WebResponse response = (WebResponse) getResponse();
  response.setAttachmentHeader(filename);
  response.setLastModifiedTime(Time.now());
  response.setContentType(application/octet-stream);
  response.write(
  new ByteArrayInputStream(filedata));
  response.close();
  }


  item.add(new LinkVoid(download){
  {
  add(new Label(filename,
 eaAuditProgramAttachment.getFileName()));
  }
  @Override
  public void onClick() {

 ((BasePage)getPage()).download(eaAuditProgramAttachment.getFileName(),
 eaAuditProgramAttachment.getEaBlob().getBlobData());
  }
  });


 If I replace this link with AjaxLink it will not work  and I must use
  an
 ajaxlinkplease tell me how can I use ajaxLink for download





 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org





 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org









 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




Re: AW: file download using ajaxLink

2009-10-22 Thread Sven Meier

Yes, that's better :).

IMHO the behavior+resourcestream combination is much simpler:
- no additional markup needed,
- no state to keep (even if it's only the web resource and not the 
actual byte array).


Do you mind if I tidy up the Wiki page?

Sven

Ernesto Reinaldo Barreiro wrote:

Hi Seven,
Thanks for sharing! More neat solution indeed.

About caching data on session: is you diff the wiki page, or see the
original code at

http://code.google.com/p/antilia/source/browse/trunk/com.antilia.ext/src/com/antilia/web/ajaxdownload/MyPdfResource.java

you will see nothing was cached on the solution I proposed. That part was
introduced later on.

Best,

Ernesto



On Thu, Oct 22, 2009 at 6:58 PM, Sven Meier s...@meiers.net wrote:

  

I added my description to the well-known Wiki page:


http://cwiki.apache.org/confluence/display/WICKET/AJAX+update+and+file+download+in+one+blow

IMHO the solution with a behavior is simpler.
Furthermore huge amounts of data shouldn't be kept in the session but
better be generated on the fly.

Regards

Sven



Ernesto Reinaldo Barreiro wrote:



Can you share your solution with the rest of us? I can imagine using a
behavior for adding the resource listener part... but it will be nice to
see
what you are doing.

Best,

Ernesto

On Wed, Oct 21, 2009 at 9:12 PM, Sven Meier s...@meiers.net wrote:



  

I've added an alternative solution with a behavior.

Thanks for the original idea.

Sven


Giambalvo, Christian wrote:





Updated

http://cwiki.apache.org/confluence/display/WICKET/AJAX+update+and+file+download+in+one+blow

Mit freundlichen Grüßen
Christian Giambalvo
--
Fachinformatiker für Anwendungsentwicklung

EXCELSIS Informationssysteme GmbH
Wilhelmsplatz 8 - 70182 Stuttgart
Mobile +49 176 196 32 406
Office +49 711 6 20 30 406
christian.giamba...@excelsisnet.com
www.excelsisnet.com
www.twitter.com/excelsis_info

Sitz Stuttgart
Amtsgericht Stuttgart, HRB 21104
Geschäftsführer: Christian Sauter, Dr. Nils Herda, Frank Wolf


-Ursprüngliche Nachricht-
Von: Ernesto Reinaldo Barreiro [mailto:reier...@gmail.com] Gesendet:
Mittwoch, 21. Oktober 2009 09:40
An: users@wicket.apache.org
Betreff: Re: file download using ajaxLink

Maybe this might help


http://cwiki.apache.org/WICKET/ajax-update-and-file-download-in-one-blow.html



http://cwiki.apache.org/WICKET/ajax-update-and-file-download-in-one-blow.html
 Ernesto

On Tue, Oct 20, 2009 at 10:12 PM, tubin gen fachh...@gmail.com wrote:





  

I do download in traditional way

here is the code

 public void download(String filename, byte[] filedata){
 setRedirect(false);
 WebResponse response = (WebResponse) getResponse();
 response.setAttachmentHeader(filename);
 response.setLastModifiedTime(Time.now());
 response.setContentType(application/octet-stream);
 response.write(
 new ByteArrayInputStream(filedata));
 response.close();
 }


 item.add(new LinkVoid(download){
 {
 add(new Label(filename,
eaAuditProgramAttachment.getFileName()));
 }
 @Override
 public void onClick() {

((BasePage)getPage()).download(eaAuditProgramAttachment.getFileName(),
eaAuditProgramAttachment.getEaBlob().getBlobData());
 }
 });


If I replace this link with AjaxLink it will not work  and I must use
 an
ajaxlinkplease tell me how can I use ajaxLink for download







-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org





  

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org







  

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org





  



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: AW: file download using ajaxLink

2009-10-22 Thread Ernesto Reinaldo Barreiro
Yes, the solution you propose is very elegant. My initial solution was just
something I composed hastily because I just wanted to know if it was
possible to do it, after a question asked on the list, and I'm not using it
on my applications.
Modify the page as you please, as long as the final result is be better than
presently is;-).

Best,

Ernesto

On Thu, Oct 22, 2009 at 8:47 PM, Sven Meier s...@meiers.net wrote:

 Yes, that's better :).

 IMHO the behavior+resourcestream combination is much simpler:
 - no additional markup needed,
 - no state to keep (even if it's only the web resource and not the actual
 byte array).

 Do you mind if I tidy up the Wiki page?


 Sven

 Ernesto Reinaldo Barreiro wrote:

 Hi Seven,
 Thanks for sharing! More neat solution indeed.

 About caching data on session: is you diff the wiki page, or see the
 original code at


 http://code.google.com/p/antilia/source/browse/trunk/com.antilia.ext/src/com/antilia/web/ajaxdownload/MyPdfResource.java

 you will see nothing was cached on the solution I proposed. That part was
 introduced later on.

 Best,

 Ernesto



 On Thu, Oct 22, 2009 at 6:58 PM, Sven Meier s...@meiers.net wrote:



 I added my description to the well-known Wiki page:



 http://cwiki.apache.org/confluence/display/WICKET/AJAX+update+and+file+download+in+one+blow

 IMHO the solution with a behavior is simpler.
 Furthermore huge amounts of data shouldn't be kept in the session but
 better be generated on the fly.

 Regards

 Sven



 Ernesto Reinaldo Barreiro wrote:



 Can you share your solution with the rest of us? I can imagine using a
 behavior for adding the resource listener part... but it will be nice to
 see
 what you are doing.

 Best,

 Ernesto

 On Wed, Oct 21, 2009 at 9:12 PM, Sven Meier s...@meiers.net wrote:





 I've added an alternative solution with a behavior.

 Thanks for the original idea.

 Sven


 Giambalvo, Christian wrote:





 Updated


 http://cwiki.apache.org/confluence/display/WICKET/AJAX+update+and+file+download+in+one+blow

 Mit freundlichen Grüßen
 Christian Giambalvo
 --
 Fachinformatiker für Anwendungsentwicklung

 EXCELSIS Informationssysteme GmbH
 Wilhelmsplatz 8 - 70182 Stuttgart
 Mobile +49 176 196 32 406
 Office +49 711 6 20 30 406
 christian.giamba...@excelsisnet.com
 www.excelsisnet.com
 www.twitter.com/excelsis_info

 Sitz Stuttgart
 Amtsgericht Stuttgart, HRB 21104
 Geschäftsführer: Christian Sauter, Dr. Nils Herda, Frank Wolf


 -Ursprüngliche Nachricht-
 Von: Ernesto Reinaldo Barreiro [mailto:reier...@gmail.com] Gesendet:
 Mittwoch, 21. Oktober 2009 09:40
 An: users@wicket.apache.org
 Betreff: Re: file download using ajaxLink

 Maybe this might help



 http://cwiki.apache.org/WICKET/ajax-update-and-file-download-in-one-blow.html

 


 http://cwiki.apache.org/WICKET/ajax-update-and-file-download-in-one-blow.html
 Ernesto

 On Tue, Oct 20, 2009 at 10:12 PM, tubin gen fachh...@gmail.com
 wrote:







 I do download in traditional way

 here is the code

  public void download(String filename, byte[] filedata){
 setRedirect(false);
 WebResponse response = (WebResponse) getResponse();
 response.setAttachmentHeader(filename);
 response.setLastModifiedTime(Time.now());
 response.setContentType(application/octet-stream);
 response.write(
 new ByteArrayInputStream(filedata));
 response.close();
  }


 item.add(new LinkVoid(download){
 {
 add(new Label(filename,
 eaAuditProgramAttachment.getFileName()));
 }
 @Override
 public void onClick() {


 ((BasePage)getPage()).download(eaAuditProgramAttachment.getFileName(),
 eaAuditProgramAttachment.getEaBlob().getBlobData());
 }
 });


 If I replace this link with AjaxLink it will not work  and I must use
  an
 ajaxlinkplease tell me how can I use ajaxLink for download







 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org







 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org









 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org









 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




Wicket in JBoss cluster

2009-10-22 Thread Jan Grathwohl
Dear all,

would you be so kind and share your experience about whether it is
reasonable to use Wicket for app development in the following situation:

We are planning to develop an application that will be deployed in our
customer's portlet environment (JBoss Portal). There will be two clustered
JBoss instances with JBoss's own session replication mechanism enabled. The
main reason for the clustering is to have failover that should be
transparent for logged in users, and this has to work really reliably. I
don't know what the exact configuration of the load balancer and the JBoss
servers will be, and how much influence we will have on it.

Is it safe to use wicket in such a situation, or should we rather go for a
more stateless framework?

I did some tests to run a very simple Wicket app in two clustered JBoss
instances, and after I shut down the instance with the active session, the
session continues to be available on the other cluster node, and the links
in the pages still work. So far, so good. But when I hit the browser's back
button, I receive a Page Expired Error. This probably means that the content
of the page store is not correctly replicated to the other cluster node?

Is this a known limitation, or caused by some wrong configuration?

Thanks for any feedback on these topics, please let me know what your
experiences and opinions are.

Kind regards,

Jan


Re: Wicket in JBoss cluster

2009-10-22 Thread Matej Knopp
Well, if JBoss doesn't deserialize session immediately after
replication (which i have no idea if it does) the back button will not
work. However if you are using sticky sessions (which you definitely
should) then this will only be issue when user click  back button
after a node went down.

-Matej

On Thu, Oct 22, 2009 at 10:27 PM, Jan Grathwohl
jan.grathw...@googlemail.com wrote:
 Dear all,

 would you be so kind and share your experience about whether it is
 reasonable to use Wicket for app development in the following situation:

 We are planning to develop an application that will be deployed in our
 customer's portlet environment (JBoss Portal). There will be two clustered
 JBoss instances with JBoss's own session replication mechanism enabled. The
 main reason for the clustering is to have failover that should be
 transparent for logged in users, and this has to work really reliably. I
 don't know what the exact configuration of the load balancer and the JBoss
 servers will be, and how much influence we will have on it.

 Is it safe to use wicket in such a situation, or should we rather go for a
 more stateless framework?

 I did some tests to run a very simple Wicket app in two clustered JBoss
 instances, and after I shut down the instance with the active session, the
 session continues to be available on the other cluster node, and the links
 in the pages still work. So far, so good. But when I hit the browser's back
 button, I receive a Page Expired Error. This probably means that the content
 of the page store is not correctly replicated to the other cluster node?

 Is this a known limitation, or caused by some wrong configuration?

 Thanks for any feedback on these topics, please let me know what your
 experiences and opinions are.

 Kind regards,

 Jan


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Wicket Job

2009-10-22 Thread Robert McGuinness
Location: Jacksonville, FL
Company: Availity
Job Description: http://www.availity.com/about-availity/careers/ (search for
for Developer III position)
Summary: Web app written in JSP/Servlets being converted to Wicket.  ORM
layer is Hibernate.   Javascript library is JQuery.

Obviously should great at using Wicket (creating custom components,
modifying existing Wicket components, integrating with JQuery, understanding
Wicket component lifecycle, understanding models, integrating Servlet/JSP
legacy with Wicket, etc) but also understand HTML/CSS/Javascript best
practices and making the UI cross browser.  ORM expertise a plus but not
super important.  More importantly, a passion for technology, especially
pushing the boundaries of UI development!

It's a great place to work and if you have fresh ideas on how to improve the
code base they are welcome; Ex: Availity was going to use JSF before I
joined, whew!

If you have specific questions just shoot me an email and I will do my best
to answer.

-- 
Regards,

Robert McGuinness III


Re: Wicket in JBoss cluster

2009-10-22 Thread Randy S.
Isn't this caused by the storage of past pages in files on disk rather than
in HTTP Session? This is in the default ISessionStore implementation (see
SecondLevelCacheSessionStore, DiskPageStore).

On Thu, Oct 22, 2009 at 3:27 PM, Jan Grathwohl jan.grathw...@googlemail.com
 wrote:

 Dear all,

 would you be so kind and share your experience about whether it is
 reasonable to use Wicket for app development in the following situation:

 We are planning to develop an application that will be deployed in our
 customer's portlet environment (JBoss Portal). There will be two clustered
 JBoss instances with JBoss's own session replication mechanism enabled. The
 main reason for the clustering is to have failover that should be
 transparent for logged in users, and this has to work really reliably. I
 don't know what the exact configuration of the load balancer and the JBoss
 servers will be, and how much influence we will have on it.

 Is it safe to use wicket in such a situation, or should we rather go for a
 more stateless framework?

 I did some tests to run a very simple Wicket app in two clustered JBoss
 instances, and after I shut down the instance with the active session, the
 session continues to be available on the other cluster node, and the links
 in the pages still work. So far, so good. But when I hit the browser's back
 button, I receive a Page Expired Error. This probably means that the
 content
 of the page store is not correctly replicated to the other cluster node?

 Is this a known limitation, or caused by some wrong configuration?

 Thanks for any feedback on these topics, please let me know what your
 experiences and opinions are.

 Kind regards,

 Jan



Re: Wicket in JBoss cluster

2009-10-22 Thread Matej Knopp
Yes. But wicket tries to store the page being sent across cluster
during replication when the session is deserialized on target node.

-Matej

On Thu, Oct 22, 2009 at 11:46 PM, Randy S. randypo...@gmail.com wrote:
 Isn't this caused by the storage of past pages in files on disk rather than
 in HTTP Session? This is in the default ISessionStore implementation (see
 SecondLevelCacheSessionStore, DiskPageStore).

 On Thu, Oct 22, 2009 at 3:27 PM, Jan Grathwohl jan.grathw...@googlemail.com
 wrote:

 Dear all,

 would you be so kind and share your experience about whether it is
 reasonable to use Wicket for app development in the following situation:

 We are planning to develop an application that will be deployed in our
 customer's portlet environment (JBoss Portal). There will be two clustered
 JBoss instances with JBoss's own session replication mechanism enabled. The
 main reason for the clustering is to have failover that should be
 transparent for logged in users, and this has to work really reliably. I
 don't know what the exact configuration of the load balancer and the JBoss
 servers will be, and how much influence we will have on it.

 Is it safe to use wicket in such a situation, or should we rather go for a
 more stateless framework?

 I did some tests to run a very simple Wicket app in two clustered JBoss
 instances, and after I shut down the instance with the active session, the
 session continues to be available on the other cluster node, and the links
 in the pages still work. So far, so good. But when I hit the browser's back
 button, I receive a Page Expired Error. This probably means that the
 content
 of the page store is not correctly replicated to the other cluster node?

 Is this a known limitation, or caused by some wrong configuration?

 Thanks for any feedback on these topics, please let me know what your
 experiences and opinions are.

 Kind regards,

 Jan



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



DateValidator - formatting date in the error message

2009-10-22 Thread Jeffrey Schneller
I looked around and saw various discussions on how to format the date
for the error message in the DateValidator.  Was there a fix for this?

 

I am using DateValidator.minimum and I would like the date that is the
minimum to be formatted with just MMM-dd- or dd-MMM- based on
the locale.  Is there a way to do this with the DateValidator.minimum as
it is today [1.4.1]

 

Thanks.

 

 



Re: Wicket in JBoss cluster

2009-10-22 Thread Randy S.
Are you saying that because HTTP Session will contain the
last-displayed-page, a single back button after failover should have worked
because the second server would have persisted that one page to its own
disk?

On Thu, Oct 22, 2009 at 4:49 PM, Matej Knopp matej.kn...@gmail.com wrote:

 Yes. But wicket tries to store the page being sent across cluster
 during replication when the session is deserialized on target node.

 -Matej

 On Thu, Oct 22, 2009 at 11:46 PM, Randy S. randypo...@gmail.com wrote:
  Isn't this caused by the storage of past pages in files on disk rather
 than
  in HTTP Session? This is in the default ISessionStore implementation (see
  SecondLevelCacheSessionStore, DiskPageStore).



Re: Wicket in JBoss cluster

2009-10-22 Thread Matej Knopp
Not quite. On every request when page is changed and the session with
page is replicated on cluster the receiving nodes should store the
page to diskpagestore. This way every state of page should be saved.
But this will only work if the container deserializes sessions
immediately after replication.

-Matej

On Fri, Oct 23, 2009 at 12:00 AM, Randy S. randypo...@gmail.com wrote:
 Are you saying that because HTTP Session will contain the
 last-displayed-page, a single back button after failover should have worked
 because the second server would have persisted that one page to its own
 disk?

 On Thu, Oct 22, 2009 at 4:49 PM, Matej Knopp matej.kn...@gmail.com wrote:

 Yes. But wicket tries to store the page being sent across cluster
 during replication when the session is deserialized on target node.

 -Matej

 On Thu, Oct 22, 2009 at 11:46 PM, Randy S. randypo...@gmail.com wrote:
  Isn't this caused by the storage of past pages in files on disk rather
 than
  in HTTP Session? This is in the default ISessionStore implementation (see
  SecondLevelCacheSessionStore, DiskPageStore).



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



wicket:enclosure ( setting visible when hidden on render )

2009-10-22 Thread Douglas Ferguson

I have a component that is wrapped with a wicket enclosure.

When the page is rendered I set the component visible(false) which  
make the entire wicket enclosure hidden.

Then I set visible(true) during runtime and at the component to the  
AjaxTarget.

The component is not rendered.

Is there a way to get this to work? Or do I have to explicitly add a  
markup container if i want to start with it hidden and then display  
later?

D/

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Wicket in JBoss cluster

2009-10-22 Thread Randy S.
Oh I see. Thanks for the explanation.

I can't comment on JBoss's session replication. I'm familiar with websphere
with a DB-backed session which does not deserialize until it has to re-load
from the DB, either because you bounced nodes or had the session expunged
from memory due to the limit of in-memory sessions.

On Oct 22, 2009 5:41 PM, Matej Knopp matej.kn...@gmail.com wrote:

Not quite. On every request when page is changed and the session with
page is replicated on cluster the receiving nodes should store the
page to diskpagestore. This way every state of page should be saved.
But this will only work if the container deserializes sessions
immediately after replication.

-Matej

On Fri, Oct 23, 2009 at 12:00 AM, Randy S. randypo...@gmail.com wrote: 
Are you saying that beca...

- To
unsubscribe, e-mail: users-...


Re: AjaxFallbackLink problem on Internet Explorer 6

2009-10-22 Thread wicketnewuser

Hi tried to follow this and having problem with it . Could someone please let
me know what I'm doing wrong
Here is the code
package com.swishmark.tugboat;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

import org.apache.wicket.PageParameters;
import org.apache.wicket.Session;
import org.apache.wicket.markup.html.WebMarkupContainer;
import org.apache.wicket.markup.html.basic.Label;
import org.apache.wicket.markup.html.link.Link;
import org.apache.wicket.markup.html.panel.Panel;
import org.apache.wicket.markup.repeater.Item;
import org.apache.wicket.ajax.AjaxRequestTarget;
import org.apache.wicket.ajax.markup.html.AjaxFallbackLink;
import
org.apache.wicket.extensions.ajax.markup.html.repeater.data.table.AjaxFallbackDefaultDataTable;
import
org.apache.wicket.extensions.markup.html.repeater.data.grid.ICellPopulator;
import org.apache.wicket.extensions.markup.html.repeater.data.table.IColumn; 
import
org.apache.wicket.extensions.markup.html.repeater.data.table.PropertyColumn; 
import org.apache.wicket.model.IModel;
import org.apache.wicket.model.Model;

import com.swishmark.tugboat.util.DateTimePropertyColumn;
import com.swishmark.tugboat.util.LinkPropertyColumn;
import com.swishmark.tugboat.util.ReportListProvider;
import com.swishmark.tugboat.util.TugboatReport;

// http://cwiki.apache.org/WICKET/simple-sortable-datatable-example.html
// AJAX:
http://www.wicket-library.com/wicket-examples/repeater/?wicket:bookmarkablePage=:org.apache.wicket.examples.repeater.AjaxDataTablePage

public class TrafficReportListPanel extends Panel {

Integer contactId;

public TrafficReportListPanel(String id, final String include) {
super(id);

final ListIColumn? columns = new ArrayListIColumn?();

columns.add(new PropertyColumn(new Model(Report ID), 
reportId,
reportId));
columns.add(new PropertyColumn(new Model(Contact Name), 
contactName,
contactName));

//http://www.mail-archive.com/wicket-u...@lists.sourceforge.net/msg16575.html
if (include != null  include.equals(running)){
columns.add(new PropertyColumn(new Model(Report 
Name), reportName,
reportName));
} else {
columns.add(new LinkPropertyColumn(new Model(Report Name), 
reportName,
reportName) {

@Override
public void onClick(Item item, String componentId, 
IModel model) {
 HashMapString, Integer params = new 
HashMapString, Integer();
 TugboatReport selectedReport = (TugboatReport) 
model.getObject();
 params.put(reportId, 
selectedReport.getReportId());

 
 setResponsePage( ReportResultsPage.class, new 
PageParameters(params));

}
   
});
}
columns.add(new DateTimePropertyColumn(new Model(Start Time),
startTime, startTime));
columns.add(new DateTimePropertyColumn(new Model(End Time), 
endTime,
endTime));
columns.add(new PropertyColumn(new Model(Duration), 
duration,
duration));


final AjaxFallbackDefaultDataTable datatable = new
AjaxFallbackDefaultDataTable(trafficreportlistdatatable, columns, new
ReportListProvider(Traffic, include), 8);
add(datatable);
final WebMarkupContainer showMineSpan = new
WebMarkupContainer(showMineSpan);
final WebMarkupContainer showAllSpan = new
WebMarkupContainer(showAllSpan);
  final Link showAllLink = new
AjaxFallbackLink(trafficreportlistshowall) { 
public void onClick(AjaxRequestTarget target) {
AjaxFallbackDefaultDataTable 
replacement = new
AjaxFallbackDefaultDataTable(trafficreportlistdatatable, columns, new
ReportListProvider(Traffic, all), 8);
//this.replaceWith(replacement);
replacement.setOutputMarkupId(true);
datatable.replaceWith(replacement);
showMineSpan.setVisible(true);
showAllSpan.setVisible(false);
target.addComponent(replacement);

}
};
final Link showMineLink =new 
AjaxFallbackLink(trafficreportlistmine) { 
public void onClick(AjaxRequestTarget target) {
AjaxFallbackDefaultDataTable 
replacement = new

Re: AjaxFallbackLink problem on Internet Explorer 6

2009-10-22 Thread wicketnewuser

It's suppose to hide Show All and show Show Mine when I click on Show All but
that doesn't happen. on the onclick of showmine it is supposed to be
showMineSpan.setVisible(false);
showAllSpan.setVisible(true);
instead of  what I listed earlier as
showMineSpan.setVisible(true);
showAllSpan.setVisible(false); 


wicketnewuser wrote:
 
 Hi tried to follow this and having problem with it . Could someone please
 let me know what I'm doing wrong
 Here is the code
 package com.swishmark.tugboat;
 
 import java.util.ArrayList;
 import java.util.HashMap;
 import java.util.List;
 
 import org.apache.wicket.PageParameters;
 import org.apache.wicket.Session;
 import org.apache.wicket.markup.html.WebMarkupContainer;
 import org.apache.wicket.markup.html.basic.Label;
 import org.apache.wicket.markup.html.link.Link;
 import org.apache.wicket.markup.html.panel.Panel;
 import org.apache.wicket.markup.repeater.Item;
 import org.apache.wicket.ajax.AjaxRequestTarget;
 import org.apache.wicket.ajax.markup.html.AjaxFallbackLink;
 import
 org.apache.wicket.extensions.ajax.markup.html.repeater.data.table.AjaxFallbackDefaultDataTable;
 import
 org.apache.wicket.extensions.markup.html.repeater.data.grid.ICellPopulator;
 import
 org.apache.wicket.extensions.markup.html.repeater.data.table.IColumn; 
 import
 org.apache.wicket.extensions.markup.html.repeater.data.table.PropertyColumn; 
 import org.apache.wicket.model.IModel;
 import org.apache.wicket.model.Model;
 
 import com.swishmark.tugboat.util.DateTimePropertyColumn;
 import com.swishmark.tugboat.util.LinkPropertyColumn;
 import com.swishmark.tugboat.util.ReportListProvider;
 import com.swishmark.tugboat.util.TugboatReport;
 
 // http://cwiki.apache.org/WICKET/simple-sortable-datatable-example.html
 // AJAX:
 http://www.wicket-library.com/wicket-examples/repeater/?wicket:bookmarkablePage=:org.apache.wicket.examples.repeater.AjaxDataTablePage
 
 public class TrafficReportListPanel extends Panel {
 
   Integer contactId;
   
   public TrafficReportListPanel(String id, final String include) {
   super(id);
   
   final ListIColumn? columns = new ArrayListIColumn?();
   
   columns.add(new PropertyColumn(new Model(Report ID), 
 reportId,
 reportId));
   columns.add(new PropertyColumn(new Model(Contact Name), 
 contactName,
 contactName));
   
 //http://www.mail-archive.com/wicket-u...@lists.sourceforge.net/msg16575.html
   if (include != null  include.equals(running)){
   columns.add(new PropertyColumn(new Model(Report 
 Name), reportName,
 reportName));
   } else {
   columns.add(new LinkPropertyColumn(new Model(Report Name),
 reportName, reportName) {
 
   @Override
   public void onClick(Item item, String componentId, 
 IModel model) {
HashMapString, Integer params = new 
 HashMapString, Integer();
TugboatReport selectedReport = (TugboatReport) 
 model.getObject();
params.put(reportId, 
 selectedReport.getReportId());
 

setResponsePage( ReportResultsPage.class, new
 PageParameters(params));
   
   }

 });
   }
   columns.add(new DateTimePropertyColumn(new Model(Start Time),
 startTime, startTime));
   columns.add(new DateTimePropertyColumn(new Model(End Time), 
 endTime,
 endTime));
   columns.add(new PropertyColumn(new Model(Duration), 
 duration,
 duration));
   
   
   final AjaxFallbackDefaultDataTable datatable = new
 AjaxFallbackDefaultDataTable(trafficreportlistdatatable, columns, new
 ReportListProvider(Traffic, include), 8);
   add(datatable);
   final WebMarkupContainer showMineSpan = new
 WebMarkupContainer(showMineSpan);
   final WebMarkupContainer showAllSpan = new
 WebMarkupContainer(showAllSpan);
 final Link showAllLink = new
 AjaxFallbackLink(trafficreportlistshowall) { 
   public void onClick(AjaxRequestTarget target) {
   AjaxFallbackDefaultDataTable 
 replacement = new
 AjaxFallbackDefaultDataTable(trafficreportlistdatatable, columns, new
 ReportListProvider(Traffic, all), 8);
   //this.replaceWith(replacement);
   replacement.setOutputMarkupId(true);
   datatable.replaceWith(replacement);
   showMineSpan.setVisible(true);
   

Re: AjaxFallbackLink problem on Internet Explorer 6

2009-10-22 Thread Dane Laverty
You need to add the spans to the target in onClick, and the links need to
have their outputMarkupId set to true, as follows (I've added the ***
lines):

final Link showMineLink =new AjaxFallbackLink(trafficreportlistmine) {
  public void onClick(AjaxRequestTarget target) {
 AjaxFallbackDefaultDataTable replacement = new
AjaxFallbackDefaultDataTable(trafficreportlistdatatable, columns, new
ReportListProvider(Traffic, mine), 8);
//this.replaceWith(replacement);
replacement.setOutputMarkupId(true);
datatable.replaceWith(replacement);
showMineSpan.setVisible(true);
showAllSpan.setVisible(false);
target.addComponent(replacement);
***target.addComponent(showMineSpan);
***target.addComponent(showAllSpan);
  }
};
*** showMineLink.setOutputMarkupId(true);

Then do the same with the other link.

Dane


On Thu, Oct 22, 2009 at 4:42 PM, wicketnewuser swarn...@hotmail.com wrote:


 It's suppose to hide Show All and show Show Mine when I click on Show All
 but
 that doesn't happen. on the onclick of showmine it is supposed to be
showMineSpan.setVisible(false);
showAllSpan.setVisible(true);
 instead of  what I listed earlier as
 showMineSpan.setVisible(true);
showAllSpan.setVisible(false);


 wicketnewuser wrote:
 
  Hi tried to follow this and having problem with it . Could someone please
  let me know what I'm doing wrong
  Here is the code
  package com.swishmark.tugboat;
 
  import java.util.ArrayList;
  import java.util.HashMap;
  import java.util.List;
 
  import org.apache.wicket.PageParameters;
  import org.apache.wicket.Session;
  import org.apache.wicket.markup.html.WebMarkupContainer;
  import org.apache.wicket.markup.html.basic.Label;
  import org.apache.wicket.markup.html.link.Link;
  import org.apache.wicket.markup.html.panel.Panel;
  import org.apache.wicket.markup.repeater.Item;
  import org.apache.wicket.ajax.AjaxRequestTarget;
  import org.apache.wicket.ajax.markup.html.AjaxFallbackLink;
  import
 
 org.apache.wicket.extensions.ajax.markup.html.repeater.data.table.AjaxFallbackDefaultDataTable;
  import
 
 org.apache.wicket.extensions.markup.html.repeater.data.grid.ICellPopulator;
  import
  org.apache.wicket.extensions.markup.html.repeater.data.table.IColumn;
  import
 
 org.apache.wicket.extensions.markup.html.repeater.data.table.PropertyColumn;
  import org.apache.wicket.model.IModel;
  import org.apache.wicket.model.Model;
 
  import com.swishmark.tugboat.util.DateTimePropertyColumn;
  import com.swishmark.tugboat.util.LinkPropertyColumn;
  import com.swishmark.tugboat.util.ReportListProvider;
  import com.swishmark.tugboat.util.TugboatReport;
 
  // http://cwiki.apache.org/WICKET/simple-sortable-datatable-example.html
  // AJAX:
 
 http://www.wicket-library.com/wicket-examples/repeater/?wicket:bookmarkablePage=:org.apache.wicket.examples.repeater.AjaxDataTablePage
 
  public class TrafficReportListPanel extends Panel {
 
Integer contactId;
 
public TrafficReportListPanel(String id, final String include) {
super(id);
 
final ListIColumn? columns = new
 ArrayListIColumn?();
 
columns.add(new PropertyColumn(new Model(Report ID),
 reportId,
  reportId));
columns.add(new PropertyColumn(new Model(Contact Name),
 contactName,
  contactName));
 
  //
 http://www.mail-archive.com/wicket-u...@lists.sourceforge.net/msg16575.html
if (include != null  include.equals(running)){
columns.add(new PropertyColumn(new Model(Report
 Name), reportName,
  reportName));
} else {
columns.add(new LinkPropertyColumn(new Model(Report
 Name),
  reportName, reportName) {
 
@Override
public void onClick(Item item, String componentId,
 IModel model) {
 HashMapString, Integer params = new
 HashMapString, Integer();
 TugboatReport selectedReport =
 (TugboatReport) model.getObject();
 params.put(reportId,
 selectedReport.getReportId());
 
 
 setResponsePage( ReportResultsPage.class,
 new
  PageParameters(params));
 
}
 
  });
}
columns.add(new DateTimePropertyColumn(new Model(Start
 Time),
  startTime, startTime));
columns.add(new DateTimePropertyColumn(new Model(End
 Time), endTime,
  endTime));
columns.add(new PropertyColumn(new Model(Duration),
 duration,
  duration));
 
 
final AjaxFallbackDefaultDataTable datatable = new
  AjaxFallbackDefaultDataTable(trafficreportlistdatatable, columns, new
  ReportListProvider(Traffic, include), 8);
add(datatable);
final WebMarkupContainer 

RE: AjaxFallbackLink problem on Internet Explorer 6

2009-10-22 Thread Swarnim Ranjitkar

Thank you for you suggestion. It didn't really work. Looks like the setvisible 
inside  onclick doesn't work . Here is the code that I have
 //this.replaceWith(replacement);
replacement.setOutputMarkupId(true);
datatable.replaceWith(replacement);
showMineSpan.setVisible(true);
showAllSpan.setVisible(false);
showMineSpan.setOutputMarkupId(true);
showAllSpan.setOutputMarkupId(true);
target.addComponent(showMineSpan);
target.addComponent(showAllSpan);
target.addComponent(replacement);

}
};
showAllLink.setOutputMarkupId(true);



 Date: Thu, 22 Oct 2009 18:05:46 -0700
 Subject: Re: AjaxFallbackLink problem on Internet Explorer 6
 From: danelave...@gmail.com
 To: users@wicket.apache.org
 
 You need to add the spans to the target in onClick, and the links need to
 have their outputMarkupId set to true, as follows (I've added the ***
 lines):
 
 final Link showMineLink =new AjaxFallbackLink(trafficreportlistmine) {
   public void onClick(AjaxRequestTarget target) {
  AjaxFallbackDefaultDataTable replacement = new
 AjaxFallbackDefaultDataTable(trafficreportlistdatatable, columns, new
 ReportListProvider(Traffic, mine), 8);
 //this.replaceWith(replacement);
 replacement.setOutputMarkupId(true);
 datatable.replaceWith(replacement);
 showMineSpan.setVisible(true);
 showAllSpan.setVisible(false);
 target.addComponent(replacement);
 ***target.addComponent(showMineSpan);
 ***target.addComponent(showAllSpan);
   }
 };
 *** showMineLink.setOutputMarkupId(true);
 
 Then do the same with the other link.
 
 Dane
 
 
 On Thu, Oct 22, 2009 at 4:42 PM, wicketnewuser swarn...@hotmail.com wrote:
 
 
  It's suppose to hide Show All and show Show Mine when I click on Show All
  but
  that doesn't happen. on the onclick of showmine it is supposed to be
 showMineSpan.setVisible(false);
 showAllSpan.setVisible(true);
  instead of  what I listed earlier as
  showMineSpan.setVisible(true);
 showAllSpan.setVisible(false);
 
 
  wicketnewuser wrote:
  
   Hi tried to follow this and having problem with it . Could someone please
   let me know what I'm doing wrong
   Here is the code
   package com.swishmark.tugboat;
  
   import java.util.ArrayList;
   import java.util.HashMap;
   import java.util.List;
  
   import org.apache.wicket.PageParameters;
   import org.apache.wicket.Session;
   import org.apache.wicket.markup.html.WebMarkupContainer;
   import org.apache.wicket.markup.html.basic.Label;
   import org.apache.wicket.markup.html.link.Link;
   import org.apache.wicket.markup.html.panel.Panel;
   import org.apache.wicket.markup.repeater.Item;
   import org.apache.wicket.ajax.AjaxRequestTarget;
   import org.apache.wicket.ajax.markup.html.AjaxFallbackLink;
   import
  
  org.apache.wicket.extensions.ajax.markup.html.repeater.data.table.AjaxFallbackDefaultDataTable;
   import
  
  org.apache.wicket.extensions.markup.html.repeater.data.grid.ICellPopulator;
   import
   org.apache.wicket.extensions.markup.html.repeater.data.table.IColumn;
   import
  
  org.apache.wicket.extensions.markup.html.repeater.data.table.PropertyColumn;
   import org.apache.wicket.model.IModel;
   import org.apache.wicket.model.Model;
  
   import com.swishmark.tugboat.util.DateTimePropertyColumn;
   import com.swishmark.tugboat.util.LinkPropertyColumn;
   import com.swishmark.tugboat.util.ReportListProvider;
   import com.swishmark.tugboat.util.TugboatReport;
  
   // http://cwiki.apache.org/WICKET/simple-sortable-datatable-example.html
   // AJAX:
  
  http://www.wicket-library.com/wicket-examples/repeater/?wicket:bookmarkablePage=:org.apache.wicket.examples.repeater.AjaxDataTablePage
  
   public class TrafficReportListPanel extends Panel {
  
 Integer contactId;
  
 public TrafficReportListPanel(String id, final String include) {
 super(id);
  
 final ListIColumn? columns = new
  ArrayListIColumn?();
  
 columns.add(new PropertyColumn(new Model(Report ID),
  reportId,
   reportId));
 columns.add(new PropertyColumn(new Model(Contact Name),
  contactName,
   contactName));
  
   //
  http://www.mail-archive.com/wicket-u...@lists.sourceforge.net/msg16575.html
 if (include != null  include.equals(running)){
 columns.add(new PropertyColumn(new Model(Report
  Name), reportName,
   reportName));
 } else {
 columns.add(new LinkPropertyColumn(new Model(Report
  Name),
   reportName, reportName) {
  
 @Override
 public void 

Re: Behind proxy

2009-10-22 Thread Anton Veretennikov
Jeremy, thank you,

For experiment, guys,
Open, please, http://www.wickettraining.com and click in sequence these links:

Contact Me and then
Class Information (format, content, etc)

If you see jsessionid appended to URL, please, answer:

[  ] YES
[  ] NO

-- Tony


On Thu, Oct 22, 2009 at 10:09 PM, Jeremy Thomerson
jer...@wickettraining.com wrote:
 The problem that makes jsessionid appear is nearly always related to cookies
 and cookie paths.  the servlet container will try to set a cookie with the
 jsessionid.  If that doesn't work, it will continue adding jsessionid to the
 urls.  So, use HttpFox (or similar) to see when the servlet container sets a
 cookie with the jsessionid, and pay attention to what path it sets it on.
 Then see if your browser is sending the jsessionid back to the container on
 the next request.

 --
 Jeremy Thomerson
 http://www.wickettraining.com



 On Wed, Oct 21, 2009 at 9:44 AM, Anton Veretennikov 
 anton.veretenni...@gmail.com wrote:

 1. I checked it with Tomcat 5.5. Problem remained. All my bookmarkable
 links to Home page with parameters contained jsessionid.

 2. I got 1.5-SNAPSHOT, compiled, tried, problem remained.

 3. I removed lines in WebResponse::encodeURL and
 ServletWebResponse::encodeURL with logic about bug in apache tomcat
 5.5:

       �...@override
        public String encodeURL(String url)
        {
                if (url != null)
                {
                                return
 httpServletResponse.encodeURL(url.toString());
                }
                return httpServletResponse.encodeURL(url);
         }

 and  miracle. jsessionid disappeared!

 I don't know may be this workaround for 5.5 is not correct?

 -- Tony


 On Wed, Oct 21, 2009 at 10:02 PM, nino martinez wael
 nino.martinez.w...@gmail.com wrote:
  Strange I have tomcat 5.5 here, it does not have that problem.. Could it
 be
  that it's tomcat related?
 
  2009/10/21 Anton Veretennikov anton.veretenni...@gmail.com
 
  Additional info to jsessionid problem:
 
  This is seen on Tomcat 6.0.18 WITHOUT any proxy on bookmarkable links.
  Glassfish 2.1 seems not appending jsessionid to url even on first call
  (I have default settings) so there is no such behaviour.
 
  -- Tony
 
  On Wed, Oct 21, 2009 at 6:20 PM, Anton Veretennikov
  anton.veretenni...@gmail.com wrote:
   Thank you, Nino, I'll repeat then,
  
   The problem is that all Bookmarkable links continue to have
   ;jsessionid=... string even after first call. The same time, Ajax
   links work (jsessionid is removed) as desired but only if they are
   not called after any bookmarkable link.
  
   Hope somebody have such a problem and solved it. May be this have
   nothing to do with proxy.
  
   -- Tony.
  
   On Wed, Oct 21, 2009 at 5:32 PM, nino martinez wael
   nino.martinez.w...@gmail.com wrote:
   Hmm Anton im not sure, but dont think so.. BookmarkablePageLinks are
  just
   that, and if session ID were appended they would'nt work..
  
   One of my sites are running a beta 1.4 i'll try to upgrade and see if
 I
  can
   replicate the error. But it might take some time..
  
   Im taking this issue back to the wicket list as it may speed up
  responses to
   it. So please respond to it there.
  
   2009/10/20 Anton Veretennikov anton.veretenni...@gmail.com
  
   Nino, seems to me that it has something with BookmarkablePageLinks.
 I
   use them everywhere except expanding tree links where Ajax is used.
   Look, when you press on +/- signes of tree, jsessionid
   disappears after first click (only in this tree Ajaxed block). After
   that you can press on bookmarkable links and everything will be
 okey.
  
   I tried to remove everything about cookies even Google Analytics
 code,
   this changes nothing.
   So, may be there is something in urlFor, is it possible?
  
   -- Tony
  
  
   On Mon, Oct 19, 2009 at 9:00 PM, nino martinez wael
   nino.martinez.w...@gmail.com wrote:
No problem, please get back and tell if it works now:) im curios.
   
2009/10/19 Anton Veretennikov anton.veretenni...@gmail.com
   
I think this may have something with cookies since I try to set
  cookie
treeInfo and sometimes see it is set twice in response. May be
 I'm
doing something wrong with a way how I do this. I'll try to turn
 off
and see if it solves jsessionid problem.
   
Thank you for your help, Nino
   
-- Tony
   
On Mon, Oct 19, 2009 at 5:39 PM, nino martinez wael
nino.martinez.w...@gmail.com wrote:
 Hmm, then it not Apache HTTP, very wierd. So maybe it is either
 something
 for the wicket list or the Tomcat one, if you can get them to
 answer.. I
 saw
 that the jesession id were sat so it should work.

 2009/10/19 Anton Veretennikov anton.veretenni...@gmail.com

 The same thing 

 http://72.249.185.124:8080/FivePinSite-1.0-SNAPSHOT/

 very strange...

 On Mon, Oct 19, 2009 at 5:13 PM, nino martinez wael
 

Re: Behind proxy

2009-10-22 Thread Jeremy Thomerson
You WILL see jsessionid on that server because the cookie path is not the
path that the server is serving on.  Notice that the URL is
wickettraining.com/app but when you first view a page on the site, it will
set a cookie with the jsessionid that is on patch /wickettraining (should be
/app).

That's what I was trying to explain earlier.

Now, look at http://www.texashuntfish.com - after the first page, you will
not see the jsessionid in the URL any more - because if you notice, the URL
is /app and the cookie is set on /app.

--
Jeremy Thomerson
http://www.wickettraining.com



On Fri, Oct 23, 2009 at 12:19 AM, Anton Veretennikov 
anton.veretenni...@gmail.com wrote:

 Jeremy, thank you,

 For experiment, guys,
 Open, please, http://www.wickettraining.com and click in sequence these
 links:

 Contact Me and then
 Class Information (format, content, etc)

 If you see jsessionid appended to URL, please, answer:

 [  ] YES
 [  ] NO

 -- Tony


 On Thu, Oct 22, 2009 at 10:09 PM, Jeremy Thomerson
 jer...@wickettraining.com wrote:
  The problem that makes jsessionid appear is nearly always related to
 cookies
  and cookie paths.  the servlet container will try to set a cookie with
 the
  jsessionid.  If that doesn't work, it will continue adding jsessionid to
 the
  urls.  So, use HttpFox (or similar) to see when the servlet container
 sets a
  cookie with the jsessionid, and pay attention to what path it sets it on.
  Then see if your browser is sending the jsessionid back to the container
 on
  the next request.
 
  --
  Jeremy Thomerson
  http://www.wickettraining.com
 
 
 
  On Wed, Oct 21, 2009 at 9:44 AM, Anton Veretennikov 
  anton.veretenni...@gmail.com wrote:
 
  1. I checked it with Tomcat 5.5. Problem remained. All my bookmarkable
  links to Home page with parameters contained jsessionid.
 
  2. I got 1.5-SNAPSHOT, compiled, tried, problem remained.
 
  3. I removed lines in WebResponse::encodeURL and
  ServletWebResponse::encodeURL with logic about bug in apache tomcat
  5.5:
 
 @Override
 public String encodeURL(String url)
 {
 if (url != null)
 {
 return
  httpServletResponse.encodeURL(url.toString());
 }
 return httpServletResponse.encodeURL(url);
  }
 
  and  miracle. jsessionid disappeared!
 
  I don't know may be this workaround for 5.5 is not correct?
 
  -- Tony
 
 
  On Wed, Oct 21, 2009 at 10:02 PM, nino martinez wael
  nino.martinez.w...@gmail.com wrote:
   Strange I have tomcat 5.5 here, it does not have that problem.. Could
 it
  be
   that it's tomcat related?
  
   2009/10/21 Anton Veretennikov anton.veretenni...@gmail.com
  
   Additional info to jsessionid problem:
  
   This is seen on Tomcat 6.0.18 WITHOUT any proxy on bookmarkable
 links.
   Glassfish 2.1 seems not appending jsessionid to url even on first
 call
   (I have default settings) so there is no such behaviour.
  
   -- Tony
  
   On Wed, Oct 21, 2009 at 6:20 PM, Anton Veretennikov
   anton.veretenni...@gmail.com wrote:
Thank you, Nino, I'll repeat then,
   
The problem is that all Bookmarkable links continue to have
;jsessionid=... string even after first call. The same time, Ajax
links work (jsessionid is removed) as desired but only if they
 are
not called after any bookmarkable link.
   
Hope somebody have such a problem and solved it. May be this have
nothing to do with proxy.
   
-- Tony.
   
On Wed, Oct 21, 2009 at 5:32 PM, nino martinez wael
nino.martinez.w...@gmail.com wrote:
Hmm Anton im not sure, but dont think so.. BookmarkablePageLinks
 are
   just
that, and if session ID were appended they would'nt work..
   
One of my sites are running a beta 1.4 i'll try to upgrade and see
 if
  I
   can
replicate the error. But it might take some time..
   
Im taking this issue back to the wicket list as it may speed up
   responses to
it. So please respond to it there.
   
2009/10/20 Anton Veretennikov anton.veretenni...@gmail.com
   
Nino, seems to me that it has something with
 BookmarkablePageLinks.
  I
use them everywhere except expanding tree links where Ajax is
 used.
Look, when you press on +/- signes of tree, jsessionid
disappears after first click (only in this tree Ajaxed block).
 After
that you can press on bookmarkable links and everything will be
  okey.
   
I tried to remove everything about cookies even Google Analytics
  code,
this changes nothing.
So, may be there is something in urlFor, is it possible?
   
-- Tony
   
   
On Mon, Oct 19, 2009 at 9:00 PM, nino martinez wael
nino.martinez.w...@gmail.com wrote:
 No problem, please get back and tell if it works now:) im
 curios.

 2009/10/19 Anton Veretennikov anton.veretenni...@gmail.com

 I think this may have something with cookies since I try to
 set
   cookie
 treeInfo and sometimes