Re: [Wicket-user] Hibernate transactions

2005-12-15 Thread Igor Vaynberg
There is in fact an on error handler Application.onRuntimeException(). its called whenever there is a runtime exception. instead of trying to do try/catch in your filter you can use a request variable to indicate success/failure. set it to success, and in the error handler set it to failure. I use

[Wicket-user] add feedback message during component construction ?

2005-12-15 Thread Ingram Chen
Dear all,    We have several Panels  need to add error message while constructing:public MyPanel(MyData data) {    //some process.    error(errorMessage);}However, panel can't find parent Page yet. I also tried adding error message in onBeginRequest(), but it didn't work.Is there any way to ad

Re: [Wicket-user] Help required for defining where wicket-strutsnested demo should be put in wicket-stuff

2005-12-15 Thread Juergen Donnerstag
+1 contrib-examples Juergen On 12/16/05, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > i would add it to the examples. > > -Igor > > > > On 12/15/05, Laurent PETIT <[EMAIL PROTECTED]> wrote: > > Hello, > > > > Would you prefer that I create a module named something like > > wicket-contrib-example-st

[Wicket-user] Hibernate transactions

2005-12-15 Thread John Patterson
Hi, I am using hibernate with my wicket application and was wondering how I can control transactions? Usually I use a servlet filter that either commits the current transaction or rolls it back. Something like this: try { chain.doFilter(req, resp); // commit if needed } catch (Exception

Re: [Wicket-user] Help required for defining where wicket-strutsnested demo should be put in wicket-stuff

2005-12-15 Thread Igor Vaynberg
i would add it to the examples.-IgorOn 12/15/05, Laurent PETIT <[EMAIL PROTECTED]> wrote: Hello,Would you prefer that I create a module named something likewicket-contrib-example-strutsnested or wicket-contrib-strutsnested-demo in wicket-stuff, or would you like meto add this example to the wicket-

[Wicket-user] Help required for defining where wicket-strutsnested demo should be put in wicket-stuff

2005-12-15 Thread Laurent PETIT
Hello, Would you prefer that I create a module named something like wicket-contrib-example-strutsnested or wicket-contrib-strutsnested-demo in wicket-stuff, or would you like me to add this example to the wicket-contrib-examples existing project ? The former is one more module at the root, but mo

Re: [Wicket-user] Some remarks on templates

2005-12-15 Thread Christian Essl
If anyone finds it useful enclosed is the code for an IComponentResolver which does what is described in this thread. See the InheritPage as an example. Christian On Fri, 09 Dec 2005 11:36:03 +0100, Christian Essl <[EMAIL PROTECTED]> wrote: Sorry the 'variable scoping' was misleading it is

Re: [Wicket-user] Changes between 1.1 and 1.2alhpa

2005-12-15 Thread Igor Vaynberg
i think we have it covered now thanks to Juergen. you can either let the prepender figure out the context path for you - which should work in most cases, or provide your own path in the constructor.-Igor On 12/15/05, Johan Compagner <[EMAIL PROTECTED]> wrote: that looks fine to me also.for my examp

Re: [Wicket-user] How to render part of page (with ajax maybe)

2005-12-15 Thread Juergen Donnerstag
Could you create a junit test and provide the source to us. I'll look into it. Juergen On 12/15/05, Marco van de Haar <[EMAIL PROTECTED]> wrote: > okay I'm kinda lost and I think i'm either doing somehting fundamentally > wrong or missing something really stupid.. > > this is the error I get

Re: [Wicket-user] How to render part of page (with ajax maybe)

2005-12-15 Thread Marco van de Haar
okay I'm kinda lost and I think i'm either doing somehting fundamentally wrong or missing something really stupid.. this is the error I get when i call someRequestCycle.request(myLabel) I studied the simplepageTest rerender calls, I created a ComponentRequestTarget, set the target, an

Re: [Wicket-user] FormComponents which can render on any tags

2005-12-15 Thread Christian Essl
Ok I understand that it is not the 'wicket-way'. But to subclass the FormComponents I think I have to replace the onComponentTag and this is final like on CheckBox, ListChoice, PasswordTextField, etc. Anyway I currently do the Panel aproach - will see how I come along. What I curently wirte

Re: [Wicket-user] Changes between 1.1 and 1.2alhpa

2005-12-15 Thread Johan Compagner
that looks fine to me also.for my example that i see it is mosty just a dns name mapped to a context (so no context should be prepended)IF it is mapped to a dns name and some dir context then i would say make the dir context the same as the context on the webapp then you don't have a problem. I thi

Re: [Wicket-user] FormComponents which can render on any tags

2005-12-15 Thread Johan Compagner
As martijn is saying it is not the wicket way to do it but ofcourse you can do it if you want.Just overwrite FormComponent or something and then implement onComponentTagBody()and there you can output anything you want. On 12/14/05, Christian Essl <[EMAIL PROTECTED]> wrote: I think I described the p

Re: [Wicket-user] FormComponents which can render on any tags

2005-12-15 Thread Martijn Dashorst
I find this not 'the wicket way'. I understand your wish, but I really like the 1-1 relationship the input fields have with their markup. If you really need to display different input fields, you can also put them all in the markup, and hide the ones you don't need: And in the Java: add(new Te

Re: [Wicket-user] reduce page size by not render wicket :id attribute

2005-12-15 Thread blackboy zabaha
Thank a lot, I never know that!Ali Zaid <[EMAIL PROTECTED]> wrote: Hi;WebApplication.getSettings().setStripWicketTags(true);will do the trick On 12/15/05, blackboy zabaha <[EMAIL PROTECTED]> wrote:Just an opinion of mine. I think the last result of page could not render any wicket:id attribu

Re: [Wicket-user] reduce page size by not render wicket :id attribute

2005-12-15 Thread Ali Zaid
Hi; WebApplication.getSettings().setStripWicketTags(true); will do the trick On 12/15/05, blackboy zabaha <[EMAIL PROTECTED]> wrote: Just an opinion of mine. I think the last result of page could not render any wicket:id attribute (also wicket:head, wicket:body, etc..) because it not necessary

Re: [Wicket-user] reduce page size by not render wicket :id attribute

2005-12-15 Thread Ingram Chen
You can tweak setting with:getSettings().setStripWicketTags(true);in your WebApplication.On 12/15/05, blackboy zabaha < [EMAIL PROTECTED]> wrote:Just an opinion of mine. I think the last result of page could not render any wicket:id attribute (also wicket:head, wicket:body, etc..) because it not

[Wicket-user] reduce page size by not render wicket :id attribute

2005-12-15 Thread blackboy zabaha
Just an opinion of mine. I think the last result of page could not render any wicket:id attribute (also wicket:head, wicket:body, etc..) because it not necessary for browser, and this may also reduce page size upto 10% (test on some of my report pages) if my page is some kind of report that norm