Re: Wicket 1.5.1 image resource not available if parent component is disabled

2011-10-19 Thread exl
Did a quick search and couldn't see anything so ticket raised: https://issues.apache.org/jira/browse/WICKET-4146 WICKET-4146 - Eric is learning how to use Wicket and enjoying the experience so far... -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-1-5-1-i

Occasional "Software caused connection abort: socket write error" with 1.5

2011-10-19 Thread Chris Colman
Occasionally over the last few days/weeks testing our 1.5 migration I've seen the following exception. I'm wondering if anyone has any idea of what's causing it or have seen something similar. We've never seen it before with Wicket 1.4 It only happens when I click a link while it is still process

Re: wicket + jasper reports

2011-10-19 Thread Martin Grigorov
On Wed, Oct 19, 2011 at 11:46 PM, Paul Szulc wrote: > Ok, below the code I use to create a link that allows to download pdf file > created by jasper on runtime. Hope it helps. Do not hesitate to ask > questions. > > > public class PdfGenerateLink extends ResourceLink { > >    public PdfGenerateLin

Re: Wrong path for resources on redirected login page

2011-10-19 Thread Martin Grigorov
Artifacts http://people.apache.org/~ivaynberg/wicket-1.5.2/dist/ Maven repo https://repository.apache.org/content/repositories/orgapachewicket-079/ On Thu, Oct 20, 2011 at 1:27 AM, Igor Vaynberg wrote: > first try with 1.5.2 candidate (see the vote thread on @dev for where > to get the artifact

POST-only StatelessForm

2011-10-19 Thread Chris Hansen
Is there a way to create a StatelessForm that can *only* be submitted via POST? The current behavior of StatelessForm is to allow the form to be submitted via GET even if the form's method is POST. I've provided two examples of this behavior below (one each for Wicket 1.4 and 1.5). When you visit

Re: Wrong path for resources on redirected login page

2011-10-19 Thread Igor Vaynberg
first try with 1.5.2 candidate (see the vote thread on @dev for where to get the artifacts). if it still doesnt work post a jira bug and attach a quickstart. -igor On Wed, Oct 19, 2011 at 1:55 PM, bjolletz wrote: > Addition to my post above: > > I noticed that the browser URL seems to be the sa

Re: ClassCastException: wicket.in.action.CheesrSession cannot be cast to wicket.in.action.CheesrSession

2011-10-19 Thread Filipe Sousa
Here is the eclipse project with all jars included. Launch configurations included http://dl.dropbox.com/u/5176435/wicket.tar.gz On Wed, Oct 19, 2011 at 9:49 PM, Filipe Sousa wrote: > I stated jetty from command line (no eclipse) > > $ /usr/lib/jvm/java-1.6.0-sun-1.6.0.27.x86_64/bin/java > -Dlogb

Re: Wrong path for resources on redirected login page

2011-10-19 Thread bjolletz
Addition to my post above: I noticed that the browser URL seems to be the same in both 1.4.18 and 1.5.1: /App/LoginPage But, in 1.4.18 the resource links looked something like this: ../resources/se.app.LoginPage/images/logo.png while in 1.5.1 it looks lke this: wicket/resource/se.app.LoginPage/i

Re: ClassCastException: wicket.in.action.CheesrSession cannot be cast to wicket.in.action.CheesrSession

2011-10-19 Thread Filipe Sousa
I stated jetty from command line (no eclipse) $ /usr/lib/jvm/java-1.6.0-sun-1.6.0.27.x86_64/bin/java -Dlogback.configurationFile=etc/logback.xml -verbose:class -Dfile.encoding=UTF-8 -classpath /home/fsousa/workspace/wicket/WebContent/WEB-INF/classes:/home/fsousa/.ivy2/cache/org.apache.wicket/wicke

Re: wicket + jasper reports

2011-10-19 Thread Paul Szulc
Ok, below the code I use to create a link that allows to download pdf file created by jasper on runtime. Hope it helps. Do not hesitate to ask questions. public class PdfGenerateLink extends ResourceLink { public PdfGenerateLink(final String id, final IModel model, final PdfBuilderFromBidCre

Wrong path for resources on redirected login page

2011-10-19 Thread bjolletz
Hi, I have the following setup: Two pages mounted like follows: mountPage("App/StartPage", StartPage.class); mountPage("LoginPage", LoginPage.class); In my web.xml, I have added a security constraint to the "/App/" path and set up the form-login-page to be "/LoginPage". This mea

Re: ClassCastException: wicket.in.action.CheesrSession cannot be cast to wicket.in.action.CheesrSession

2011-10-19 Thread Deniz Oğuz
Sorry it should be verbose:class (if it is oracle jre) On Oct 19, 2011 11:25 PM, "Deniz Oğuz" wrote: > Pass -verbose:gc to your server vm to see from where your class is loaded. > On Oct 19, 2011 11:22 PM, "Filipe Sousa" wrote: > >> On Wed, Oct 19, 2011 at 9:04 PM, Igor Vaynberg >> wrote: >> >

Re: ClassCastException: wicket.in.action.CheesrSession cannot be cast to wicket.in.action.CheesrSession

2011-10-19 Thread Deniz Oğuz
Pass -verbose:gc to your server vm to see from where your class is loaded. On Oct 19, 2011 11:22 PM, "Filipe Sousa" wrote: > On Wed, Oct 19, 2011 at 9:04 PM, Igor Vaynberg > wrote: > > > > you either somehow have two of these on your classpath or tomcate > > creates another one via a different c

Re: ClassCastException: wicket.in.action.CheesrSession cannot be cast to wicket.in.action.CheesrSession

2011-10-19 Thread Filipe Sousa
On Wed, Oct 19, 2011 at 9:04 PM, Igor Vaynberg wrote: > > you either somehow have two of these on your classpath or tomcate > creates another one via a different classloader and then you have a > class from one classloader trying to cast to a class loaded from > another one...its probably an envir

Re: ClassCastException: wicket.in.action.CheesrSession cannot be cast to wicket.in.action.CheesrSession

2011-10-19 Thread Deniz Oğuz
I have also tried same examples without any issues. Try it on another server instance or completely different server. There should be someting wrong in your jetty, eclipse combination. This kind of classcastexceptions (can not cast A to A) are a result of class loader hierarchy of app servers. Some

Re: ClassCastException: wicket.in.action.CheesrSession cannot be cast to wicket.in.action.CheesrSession

2011-10-19 Thread Igor Vaynberg
On Wed, Oct 19, 2011 at 12:55 PM, Filipe Sousa wrote: > Hi, > > I know that 1.3 is not the latest version, but I think that's the > version used in the book. Since I am learning wicket I don't want to > deal with compatibility issues. > > I tried the latest version (1.5.1) and the result is worse.

Re: ClassCastException: wicket.in.action.CheesrSession cannot be cast to wicket.in.action.CheesrSession

2011-10-19 Thread Filipe Sousa
Hi, I know that 1.3 is not the latest version, but I think that's the version used in the book. Since I am learning wicket I don't want to deal with compatibility issues. I tried the latest version (1.5.1) and the result is worse. If I refresh the browser 3 times I get the same exception and this

Re: ClassCastException: wicket.in.action.CheesrSession cannot be cast to wicket.in.action.CheesrSession

2011-10-19 Thread Matthias Gasser
Hello, Your wicket version is fairly old. Please try the latest 1.5 release... Have a look at the wicket examples they provide a very good starting point. Cheers, Matthias -- iPhone Mail On 19.10.2011, at 18:17, Filipe Sousa wrote: > Hi, > > I'm doing my first experiments with wicket. I'm

ClassCastException: wicket.in.action.CheesrSession cannot be cast to wicket.in.action.CheesrSession

2011-10-19 Thread Filipe Sousa
Hi, I'm doing my first experiments with wicket. I'm testing the example in chapter 3 (Wicket in Action) with eclipse and embedded jetty. The wicket version I'm using is 1.3.7. The example provided works quite well except when I make a change and redeploy it to jetty. Then I get an unexpected Runti

Re: MarkupId behavior when replacing component (wicket 1.4)

2011-10-19 Thread Igor Vaynberg
no need, fixed in trunk (1.5.2) -igor 2011/10/19 Yves-Marie LAINÉ : > Ok.  I'll try to check what happens in 1.5.1 in this case, and then create a > ticket. > > Thanks ! > > 2011/10/19 Martin Grigorov > >> Hi, >> >> 2011/10/19 Yves-Marie LAINÉ : >> > Hi All, >> > >> > Yesterday, i wrote a Page t

Re: Dynamic page display based on a configuration in Wicket

2011-10-19 Thread Vasu Srinivasan
James Took a quick look,, very interesting.. thanks for the suggestion On Wed, Oct 19, 2011 at 10:19 AM, James Carman wrote: > If you need inspiration, you can check out the Wicketopia project. It > dynamically builds forms for beans, but you could easily adapt the > logic to figure out whi

Re: Dynamic page display based on a configuration in Wicket

2011-10-19 Thread James Carman
If you need inspiration, you can check out the Wicketopia project. It dynamically builds forms for beans, but you could easily adapt the logic to figure out which fields to display from a different source. On Wed, Oct 19, 2011 at 11:16 AM, Vasu Srinivasan wrote: > Hello, > > I am familiar with w

Dynamic page display based on a configuration in Wicket

2011-10-19 Thread Vasu Srinivasan
Hello, I am familiar with wicket concepts and have done some basic stuff with it. I am currently working on a PoC, but not sure how to get this around in Wicket. In Wicket, the html and java are directly tied between each other. However I would like to have an external configuration (json or xml)

Re: Access Denied with AjaxEditableLabel ant AjaxEditableMultiLineLabel under chrome and safari #wicket1.5

2011-10-19 Thread Martin Grigorov
Hi, The EditableLabel's editor (the text field/area) saves the value on 'blur' event. It is interesting when this event is fired - when the user leaves the first tab or when she comes back. On Wed, Oct 19, 2011 at 12:48 AM, Gaetan Zoritchak wrote: > The problems occurs under chrome, safari and w

Re: onInitialize or Constructor

2011-10-19 Thread Josh Kamau
Thanks. Its clear now. On Wed, Oct 19, 2011 at 4:01 PM, Andrea Del Bene wrote: > Hi, > > when onInitialize is called, component has already been inserted into its > hierarchy so you can call getParent() or getPage() safely. > > Hi wicketeers ; >> >> Which is the recommended way of initializing p

Re: onInitialize or Constructor

2011-10-19 Thread Andrea Del Bene
Hi, when onInitialize is called, component has already been inserted into its hierarchy so you can call getParent() or getPage() safely. Hi wicketeers ; Which is the recommended way of initializing page components: onInitialize() or Constructor ? regards. Josh. ---

Re: onInitialize or Constructor

2011-10-19 Thread Martin Grigorov
Use onInitialize() if you need access to the parent component or to the associated markup On Wed, Oct 19, 2011 at 3:28 PM, Josh Kamau wrote: > Hi wicketeers ; > > Which is the recommended way of initializing page components: onInitialize() > or Constructor ? > > regards. > Josh. > -- Martin G

Re: MarkupId behavior when replacing component (wicket 1.4)

2011-10-19 Thread Yves-Marie LAINÉ
Ok. I'll try to check what happens in 1.5.1 in this case, and then create a ticket. Thanks ! 2011/10/19 Martin Grigorov > Hi, > > 2011/10/19 Yves-Marie LAINÉ : > > Hi All, > > > > Yesterday, i wrote a Page that need to ajax replace a component, so with > > outputMarkupId at true. This componen

onInitialize or Constructor

2011-10-19 Thread Josh Kamau
Hi wicketeers ; Which is the recommended way of initializing page components: onInitialize() or Constructor ? regards. Josh.

Re: [OT] Wicket Jobs List?

2011-10-19 Thread moèz ben rhouma
Hi, We have a linkedin group Apache Wicket and under this group we have a panel jobs I hope it helps you. 2011/10/19 James Carman > Fellow Wicketeers, > > Do we have a special mailing list for Wicket jobs? I'm looking again > and

[OT] Wicket Jobs List?

2011-10-19 Thread James Carman
Fellow Wicketeers, Do we have a special mailing list for Wicket jobs? I'm looking again and would like to find a good place to advertise that fact. :) Thanks, James Carman - To unsubscribe, e-mail: users-unsubscr...@wicket.apa

Re: MarkupId behavior when replacing component (wicket 1.4)

2011-10-19 Thread Martin Grigorov
Hi, 2011/10/19 Yves-Marie LAINÉ : > Hi All, > > Yesterday, i wrote a Page that need to ajax replace a component, so with > outputMarkupId at true. This component has to know the markupId when > onInitialize is called (depending of a component used by it that create a > javascript) > > I know that

MarkupId behavior when replacing component (wicket 1.4)

2011-10-19 Thread Yves-Marie LAINÉ
Hi All, Yesterday, i wrote a Page that need to ajax replace a component, so with outputMarkupId at true. This component has to know the markupId when onInitialize is called (depending of a component used by it that create a javascript) I know that when we replace Components, the markupId of the r

Re: Weblogic deployment

2011-10-19 Thread Wolfgang Schreiner
Thanks guys, removing the white spaces did the trick! From: jcgarciam To: users@wicket.apache.org Date: 18.10.2011 16:47 Subject: Re: Weblogic deployment Nop, this is a bug in the container no within the wicket framework. On Tue, Oct 18, 2011 at 11:44 AM, Wolfgang Schreiner [via Apache Wic