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
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
+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
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
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-
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
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
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
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
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
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
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
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
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
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
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
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
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
18 matches
Mail list logo