Servlet Filter calling chain of Servlets

2012-07-05 Thread wicket user
Hi, I was wondering we can write a custom servlet filter , and in that filter call the servlet chain. If so what would be Request and Reponse Objects if I dont write any Request/Response Wrappers, and how to get that. Thanks, -- View this message in context:

Re: Servlet Filter calling chain of Servlets

2012-07-05 Thread Martin Grigorov
Hi, The request and response are the ones passed by the web container. Since you will not wrap them then they will be the same objects for all filters/servlets in the chain. On Thu, Jul 5, 2012 at 8:04 AM, wicket user samd...@live.com wrote: Hi, I was wondering we can write a custom servlet

Re: image from outside web application directory

2012-07-05 Thread Giovanni Cuccu
Hi, it's not wicket related but if you are using tomcat as application server you can use the aliases attribute of the context ( http://tomcat.apache.org/tomcat-7.0-doc/config/context.html) which allows you to map an external (to your web app) dir to an url (es c:/images on filesystem as

Unable to use wicket tester to simulate ajax behavior

2012-07-05 Thread Giovanni Cuccu
Hi all, I'm trying to test a wicket 1.5.7 application and I'm hitting a strange (at least for me) issue. I have two dropdowns (combo 1 and combo2) and when I select one value from combo1 I fire an AjaxUpdateBehavior on onchange event which selects a value on combo2. If I use the application

Re: Servlet Filter calling chain of Servlets

2012-07-05 Thread wicket user
so in this case i can get the Request/Response object by (WebRequest) getRequestCycle().getRequest() and (WebReponse) getRequestCycle().getResponse() right? and all the parameters or cookies can get from the WebRequest which will be passing thorough the Servlet Chain . -- View this message

Re: how to connect elements - label and input (checkbox)

2012-07-05 Thread yesotaso
I am not exactly sure if it is what you want but I used a decoretor for labeling task. public class SimpleDecorator extends Behavior implements IAjaxRegionMarkupIdProvider{ @Override public String getAjaxRegionMarkupId(Component component){ // This method is overriden from

Re: java pojo/Bean to generate html (textfield, dropdown,radio buttons)

2012-07-05 Thread yesotaso
While I absolutely agree with Thomas, I'd suggest using a text generator template like FTL, Ruby or even String#format will do as well :) Below is a FTL piece. package ${class.package.name}; import org.apache.wicket.markup.html.basic.Label; import org.apache.wicket.markup.html.panel.Panel;

Re: java pojo/Bean to generate html (textfield, dropdown,radio buttons)

2012-07-05 Thread Kees van Dieren
Stackoverflow post about wicket scaffolding: http://stackoverflow.com/questions/9997688/scaffolding-in-wicket Best regards / Met vriendelijke groet, Kees van Dieren Squins | IT, Honestly Oranjestraat 23 2983 HL Ridderkerk The Netherlands Phone: +31 (0)180 415559 Mobile: +31 (0)6 30413841

Re: Generate html page from java POJO in Wickets

2012-07-05 Thread Decebal Suiu
See also http://code.google.com/p/wicket-jsr303-validators/. It's not uptodate but you can see how it works. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Generate-html-page-from-java-POJO-in-Wickets-tp4650360p4650389.html Sent from the Users forum mailing list

Re: Generate html page from java POJO in Wickets

2012-07-05 Thread venkatnsm
Thanks Decebal Martin, I am starting to work on generating html form from POJO. I will come with questions, if i face any probem. On Thu, Jul 5, 2012 at 2:13 PM, Decebal Suiu [via Apache Wicket] ml-node+s1842946n4650389...@n4.nabble.com wrote: See also

Re: image from outside web application directory

2012-07-05 Thread lang
Martin could you give me an example of this? I my website i want to upload jpgt pictures from clients. I already store them on another location but i can't show the pictures on my website -- View this message in context:

Re: image from outside web application directory

2012-07-05 Thread Martin Grigorov
The blog article I gave you url to explains exactly this use case. Mount a resource that reads the image name from the request's path/parameters, loads it from external store and delivers it back to the client. On Thu, Jul 5, 2012 at 3:15 PM, lang delan...@telfort.nl wrote: Martin could you give

Re: image from outside web application directory

2012-07-05 Thread lang
Martin could you give me an example of this? I my website i want to upload jpgt pictures from clients. I already store them on another location but i can't show the pictures on my website -- View this message in context:

accessing components within a ListView

2012-07-05 Thread Carter, Isaac
I'm wondering if anyone knows how to properly access components that exist within a repeating listview? I have two buttons (we'll say an edit and remove button) that I'm repeat over and add them to the listview. I need to be able to disable all of the edit buttons that exist within a listView

Re: accessing components within a ListView

2012-07-05 Thread Carl-Eric Menzel
On Thu, 5 Jul 2012 11:36:06 -0400 Carter, Isaac isaac.car...@mantech.com wrote: I'm wondering if anyone knows how to properly access components that exist within a repeating listview? I have two buttons (we'll say an edit and remove button) that I'm repeat over and add them to the listview.

Re: image from outside web application directory

2012-07-05 Thread Scott Swank
This is what I've done. https://cwiki.apache.org/WICKET/how-to-load-an-external-image.html Scott On Thu, Jul 5, 2012 at 6:18 AM, lang delan...@telfort.nl wrote: Martin could you give me an example of this? I my website i want to upload jpgt pictures from clients. I already store them on

RE: accessing components within a ListView

2012-07-05 Thread Carter, Isaac
Awesome. That worked out perfectly. Thank you Carl-Eric. -Isaac Carter -Original Message- From: Carl-Eric Menzel [mailto:cmen...@wicketbuch.de] Sent: Thursday, July 05, 2012 12:04 PM To: users@wicket.apache.org Subject: Re: accessing components within a ListView On Thu, 5 Jul 2012

Re: Anybody is having problems with Wicket and Facebook Like button?

2012-07-05 Thread Alec Swan
Sorry for pushing this again, but this is a huge issue for us. Is anybody having problems with Facebook Like button? On Tue, Jul 3, 2012 at 3:34 PM, Alec Swan alecs...@gmail.com wrote: Hello, We started receiving complaints from users saying that Facebook Like buttons don't work on our web

RE: Anybody is having problems with Wicket and Facebook Like button?

2012-07-05 Thread Jeffrey Schneller
We have been using the Like button on one of our client's sites. I have not been told of or noticed any problems with it. I believe we are removing the JSESSIONID as well. -Original Message- From: Alec Swan [mailto:alecs...@gmail.com] Sent: Thursday, July 05, 2012 2:47 PM To:

RE: Anybody is having problems with Wicket and Facebook Like button?

2012-07-05 Thread Dale Ogilvie
Alec, If you are running in Tomcat 7 you can add this to your web.xml to turn off tomcat JSESSIONID in urls. Tomcat puts a jsessionid on all urls until it receives a session cookie from the client, to cope with cookieless clients. session-config tracking-modeCOOKIE/tracking-mode /session-config

1.6 - Verify Error - AbstractResourceStreamWriter

2012-07-05 Thread Douglas Ferguson
java.lang.VerifyError: (class: com/visiblehealth/ui/admin/reports/SQLReports, method: generateReport signature: (Ljava/io/File;)Lorg/apache/wicket/core/util/resource/AbstractResourceStreamWriter;) Wrong return type in function at java.lang.Class.getDeclaredConstructors0(Native Method)

Re: 1.6 - Verify Error - AbstractResourceStreamWriter

2012-07-05 Thread Martin Grigorov
Hi, On Fri, Jul 6, 2012 at 6:58 AM, Douglas Ferguson the...@gmail.com wrote: java.lang.VerifyError: (class: com/visiblehealth/ui/admin/reports/SQLReports, method: generateReport signature: (Ljava/io/File;)Lorg/apache/wicket/core/util/resource/AbstractResourceStreamWriter;) Wrong return