Re: Nested form submit and parent form input

2010-11-01 Thread Marek Šabo

Hi,

thanks for answer, I was wondering if that is a normal behavior even for 
parent forms to process their values from input when nested form 
submits. Anyway, good to know it's supposed to be.


Regards,

--
Marek Šabo


On 11/01/2010 05:49 AM, Martin Makundi wrote:

Hi!

Yes. Every time form is processed the form component values are
processed from rawinput. That is the normal usecase = you want to know
what user has entered.

However, if you want to explicitly dismiss user input, you can call
clearInput or set a new model.

Alternatively there are behaviors like
AjaxFormComponentUpdatingBehavior that do NOT submit the form.

**
Martin


2010/11/1 Marek Šabo:

Hi all,

I'm using a form which embeds another nested form. An
AjaxFormUpdatingBehavior works in parent form (updates some textfields via
model changes). Problems start when I submit the nested form. Then the
before-mentioned behavior "stops working". While debugging I learned why -
during response building textfield values are rendered from rawinput and not
from updated models. Workaround is to clearInput() on those field in
mentioned behavior.

I would like to know it this is normal and why or ask for some guidance to
reveal why after nested form submits the parent form values are rendered
from raw input (parent form wasn't submitted). (The nested form component
implements IFormVisitingParticipant to skip validation when parent form
submits.)

Regards,

--
Marek Šabo


-
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: Nested form submit and parent form input

2010-11-01 Thread Martin Makundi
RawInput is how the form values are "kept". Otherwise you will lose
all values and have an empty form for example in page repaint.

**
Martin

2010/11/1 Marek Šabo :
> Hi,
>
> thanks for answer, I was wondering if that is a normal behavior even for
> parent forms to process their values from input when nested form submits.
> Anyway, good to know it's supposed to be.
>
> Regards,
>
> --
> Marek Šabo
>
>
> On 11/01/2010 05:49 AM, Martin Makundi wrote:
>>
>> Hi!
>>
>> Yes. Every time form is processed the form component values are
>> processed from rawinput. That is the normal usecase = you want to know
>> what user has entered.
>>
>> However, if you want to explicitly dismiss user input, you can call
>> clearInput or set a new model.
>>
>> Alternatively there are behaviors like
>> AjaxFormComponentUpdatingBehavior that do NOT submit the form.
>>
>> **
>> Martin
>>
>>
>> 2010/11/1 Marek Šabo:
>>>
>>> Hi all,
>>>
>>> I'm using a form which embeds another nested form. An
>>> AjaxFormUpdatingBehavior works in parent form (updates some textfields
>>> via
>>> model changes). Problems start when I submit the nested form. Then the
>>> before-mentioned behavior "stops working". While debugging I learned why
>>> -
>>> during response building textfield values are rendered from rawinput and
>>> not
>>> from updated models. Workaround is to clearInput() on those field in
>>> mentioned behavior.
>>>
>>> I would like to know it this is normal and why or ask for some guidance
>>> to
>>> reveal why after nested form submits the parent form values are rendered
>>> from raw input (parent form wasn't submitted). (The nested form component
>>> implements IFormVisitingParticipant to skip validation when parent form
>>> submits.)
>>>
>>> Regards,
>>>
>>> --
>>> Marek Šabo
>>>
>>>
>>> -
>>> 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: Nested form submit and parent form input

2010-11-01 Thread Marek Šabo

Hi,

ok, that makes sense, and how would that be (if somehow) affected by 
using setPersistent on formComponents (afaik form cookie support)?


Regards,

--
Marek Šabo



On 11/01/2010 09:22 AM, Martin Makundi wrote:

RawInput is how the form values are "kept". Otherwise you will lose
all values and have an empty form for example in page repaint.

**
Martin

2010/11/1 Marek Šabo:

Hi,

thanks for answer, I was wondering if that is a normal behavior even for
parent forms to process their values from input when nested form submits.
Anyway, good to know it's supposed to be.

Regards,

--
Marek Šabo


On 11/01/2010 05:49 AM, Martin Makundi wrote:

Hi!

Yes. Every time form is processed the form component values are
processed from rawinput. That is the normal usecase = you want to know
what user has entered.

However, if you want to explicitly dismiss user input, you can call
clearInput or set a new model.

Alternatively there are behaviors like
AjaxFormComponentUpdatingBehavior that do NOT submit the form.

**
Martin


2010/11/1 Marek Šabo:

Hi all,

I'm using a form which embeds another nested form. An
AjaxFormUpdatingBehavior works in parent form (updates some textfields
via
model changes). Problems start when I submit the nested form. Then the
before-mentioned behavior "stops working". While debugging I learned why
-
during response building textfield values are rendered from rawinput and
not
from updated models. Workaround is to clearInput() on those field in
mentioned behavior.

I would like to know it this is normal and why or ask for some guidance
to
reveal why after nested form submits the parent form values are rendered
from raw input (parent form wasn't submitted). (The nested form component
implements IFormVisitingParticipant to skip validation when parent form
submits.)

Regards,

--
Marek Šabo


-
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






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



Re: flot examples

2010-11-01 Thread Ivana

Thanks, i'm looking at the examples and i'll get back to you if i figure out
how to get multiple graphs on one page.
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/flot-examples-tp3013635p3021887.html
Sent from the Users forum 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: WebPage: geting string

2010-11-01 Thread msantos

Hi there, regarding this code, i have a problem, it is trying to acess a url
that dos not exist once the wicket application class name is diferent the
real application url. it is trying to access "http://localhost/(aplication
name)" but it is deployed with a diferent name because the war file has a
diferent name.

Is possible to change the name of the application to be equals to the war
file name?

thanks again
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/WebPage-geting-string-tp2993717p3022135.html
Sent from the Users forum 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



wicket-ajax header from url?

2010-11-01 Thread Frank van Lankvelt
In my attempts to integrate a javascript client-side framework (ext-js) to
wicket, I'm running into the problem that the client-side framework expects
URLs to send requests to, expecting a JSON/XML response.  This is of course
perfectly natural behavior for a js framework.

The documentation I could find suggested to use an AbstractAjaxBehavior.
 However, this doesn't quite work.  Concurrent proper wicket-ajax requests
(abstractdefaultajaxbehavior) are aborted due to
WebSession#isCurrentRequestValid returning false.

Am I doing something wrong here, or should I simply override the
isCurrentRequestValid method to always return true?

thanks, Frank

PS: I'm using wicket-1.4.9; but couldn't find relevant issues that have been
fixed since this release

-- 
Hippo
Europe  •  Amsterdam  Oosteinde 11  •  1017 WT Amsterdam  •  +31 (0)20 522
4466
USA  • San Francisco  185 H Street Suite B  •  Petaluma CA 94952-5100 •  +1
(707) 773 4646
Canada•   Montréal  5369 Boulevard St-Laurent #430 •  Montréal QC H2T
1S5  •  +1 (514) 316 8966
www.onehippo.com  •  www.onehippo.org  •  i...@onehippo.com


Re: wicket-ajax header from url?

2010-11-01 Thread Igor Vaynberg
did you check why it returns false? ajax requests should not increment
the page version, so they should always be "current". people have
built extjs integrations before, you may look into one of those for
hints.

-igor

On Mon, Nov 1, 2010 at 9:14 AM, Frank van Lankvelt
 wrote:
> In my attempts to integrate a javascript client-side framework (ext-js) to
> wicket, I'm running into the problem that the client-side framework expects
> URLs to send requests to, expecting a JSON/XML response.  This is of course
> perfectly natural behavior for a js framework.
>
> The documentation I could find suggested to use an AbstractAjaxBehavior.
>  However, this doesn't quite work.  Concurrent proper wicket-ajax requests
> (abstractdefaultajaxbehavior) are aborted due to
> WebSession#isCurrentRequestValid returning false.
>
> Am I doing something wrong here, or should I simply override the
> isCurrentRequestValid method to always return true?
>
> thanks, Frank
>
> PS: I'm using wicket-1.4.9; but couldn't find relevant issues that have been
> fixed since this release
>
> --
> Hippo
> Europe  •  Amsterdam  Oosteinde 11  •  1017 WT Amsterdam  •  +31 (0)20 522
> 4466
> USA  • San Francisco  185 H Street Suite B  •  Petaluma CA 94952-5100 •  +1
> (707) 773 4646
> Canada    •   Montréal  5369 Boulevard St-Laurent #430 •  Montréal QC H2T
> 1S5  •  +1 (514) 316 8966
> www.onehippo.com  •  www.onehippo.org  •  i...@onehippo.com
>

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



Really basic help...

2010-11-01 Thread adam.gibbons

Hi there!

I'm extreamly new to Whicket, trying to put together my first sample
application based on the AuthenticatedWebSession example.

I have everything up and running nicely now, but I'd like to make a few
simple changes.

On the LoginPage, there are feilds for username, password and a check box
for 'remeber me'.

I want the username feild to be empty, but it always says "support", I can
not find anywhere in the code where this is set or any way to change it to
something I want.

In my page's constructor I can get the TextField object for the username
feild using get("signInPanel:signInForm:username"), but I don't see any
methods for getting or setting the value...
I'm sure i'm missing something very obvious!! Any help would be much
appriciated!!

Kind regards,
Adam
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Really-basic-help-tp3022249p3022249.html
Sent from the Users forum 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: Really basic help...

2010-11-01 Thread Igor Vaynberg
it pulls that value out of its model, so check whatever object the
model is pointing to.

-igor

On Mon, Nov 1, 2010 at 7:44 AM, adam.gibbons  wrote:
>
> Hi there!
>
> I'm extreamly new to Whicket, trying to put together my first sample
> application based on the AuthenticatedWebSession example.
>
> I have everything up and running nicely now, but I'd like to make a few
> simple changes.
>
> On the LoginPage, there are feilds for username, password and a check box
> for 'remeber me'.
>
> I want the username feild to be empty, but it always says "support", I can
> not find anywhere in the code where this is set or any way to change it to
> something I want.
>
> In my page's constructor I can get the TextField object for the username
> feild using get("signInPanel:signInForm:username"), but I don't see any
> methods for getting or setting the value...
> I'm sure i'm missing something very obvious!! Any help would be much
> appriciated!!
>
> Kind regards,
> Adam
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/Really-basic-help-tp3022249p3022249.html
> Sent from the Users forum 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
>
>

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



Re: Really basic help...

2010-11-01 Thread Brian Topping
Adam,

If you are just getting started, models are one of the most important and 
underappreciated aspects of mastering Wicket.  It's really worth putting in the 
time up front to learn their nuances.

Have you checked out the excellent Wicket In Action book by Manning Press?  
It's one of those books that is worth the money if you value your time... 

Cheers, Brian

On Nov 1, 2010, at 12:52 PM, Igor Vaynberg wrote:

> it pulls that value out of its model, so check whatever object the
> model is pointing to.
> 
> -igor
> 
> On Mon, Nov 1, 2010 at 7:44 AM, adam.gibbons  wrote:
>> 
>> Hi there!
>> 
>> I'm extreamly new to Whicket, trying to put together my first sample
>> application based on the AuthenticatedWebSession example.
>> 
>> I have everything up and running nicely now, but I'd like to make a few
>> simple changes.
>> 
>> On the LoginPage, there are feilds for username, password and a check box
>> for 'remeber me'.
>> 
>> I want the username feild to be empty, but it always says "support", I can
>> not find anywhere in the code where this is set or any way to change it to
>> something I want.
>> 
>> In my page's constructor I can get the TextField object for the username
>> feild using get("signInPanel:signInForm:username"), but I don't see any
>> methods for getting or setting the value...
>> I'm sure i'm missing something very obvious!! Any help would be much
>> appriciated!!
>> 
>> Kind regards,
>> Adam
>> --
>> View this message in context: 
>> http://apache-wicket.1842946.n4.nabble.com/Really-basic-help-tp3022249p3022249.html
>> Sent from the Users forum 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
>> 
>> 
> 
> -
> 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: Really basic help...

2010-11-01 Thread Martin Makundi
Look at https://cwiki.apache.org/WICKET/type-safe-testing-in-wicket.html
to get rid of fragile string:component:paths.

Also look at compoundpropertymodel (try avoid using it for
suprisitivity) and propertymodel:
* https://cwiki.apache.org/WICKET/working-with-wicket-models.html

**
Martin

2010/11/1 adam.gibbons :
>
> Hi there!
>
> I'm extreamly new to Whicket, trying to put together my first sample
> application based on the AuthenticatedWebSession example.
>
> I have everything up and running nicely now, but I'd like to make a few
> simple changes.
>
> On the LoginPage, there are feilds for username, password and a check box
> for 'remeber me'.
>
> I want the username feild to be empty, but it always says "support", I can
> not find anywhere in the code where this is set or any way to change it to
> something I want.
>
> In my page's constructor I can get the TextField object for the username
> feild using get("signInPanel:signInForm:username"), but I don't see any
> methods for getting or setting the value...
> I'm sure i'm missing something very obvious!! Any help would be much
> appriciated!!
>
> Kind regards,
> Adam
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/Really-basic-help-tp3022249p3022249.html
> Sent from the Users forum 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
>
>

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



Re: Really basic help...

2010-11-01 Thread Martin Makundi
In my opinnion best way to learn is by trial and error ;)




Not the most profitable way, though ;)

**
Martin

2010/11/1 Brian Topping :
> Adam,
>
> If you are just getting started, models are one of the most important and 
> underappreciated aspects of mastering Wicket.  It's really worth putting in 
> the time up front to learn their nuances.
>
> Have you checked out the excellent Wicket In Action book by Manning Press?  
> It's one of those books that is worth the money if you value your time...
>
> Cheers, Brian
>
> On Nov 1, 2010, at 12:52 PM, Igor Vaynberg wrote:
>
>> it pulls that value out of its model, so check whatever object the
>> model is pointing to.
>>
>> -igor
>>
>> On Mon, Nov 1, 2010 at 7:44 AM, adam.gibbons  
>> wrote:
>>>
>>> Hi there!
>>>
>>> I'm extreamly new to Whicket, trying to put together my first sample
>>> application based on the AuthenticatedWebSession example.
>>>
>>> I have everything up and running nicely now, but I'd like to make a few
>>> simple changes.
>>>
>>> On the LoginPage, there are feilds for username, password and a check box
>>> for 'remeber me'.
>>>
>>> I want the username feild to be empty, but it always says "support", I can
>>> not find anywhere in the code where this is set or any way to change it to
>>> something I want.
>>>
>>> In my page's constructor I can get the TextField object for the username
>>> feild using get("signInPanel:signInForm:username"), but I don't see any
>>> methods for getting or setting the value...
>>> I'm sure i'm missing something very obvious!! Any help would be much
>>> appriciated!!
>>>
>>> Kind regards,
>>> Adam
>>> --
>>> View this message in context: 
>>> http://apache-wicket.1842946.n4.nabble.com/Really-basic-help-tp3022249p3022249.html
>>> Sent from the Users forum 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
>>>
>>>
>>
>> -
>> 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: Really basic help...

2010-11-01 Thread Brian Topping
As they say, "a million monkeys on typewriters will eventually produce the 
works of Shakespeare".  :-)

I guess I'm "lazy", to each his own.

On Nov 1, 2010, at 1:21 PM, Martin Makundi wrote:

> In my opinnion best way to learn is by trial and error ;)
> 
> 
> 
> 
> Not the most profitable way, though ;)
> 
> **
> Martin
> 
> 2010/11/1 Brian Topping :
>> Adam,
>> 
>> If you are just getting started, models are one of the most important and 
>> underappreciated aspects of mastering Wicket.  It's really worth putting in 
>> the time up front to learn their nuances.
>> 
>> Have you checked out the excellent Wicket In Action book by Manning Press?  
>> It's one of those books that is worth the money if you value your time...
>> 
>> Cheers, Brian
>> 
>> On Nov 1, 2010, at 12:52 PM, Igor Vaynberg wrote:
>> 
>>> it pulls that value out of its model, so check whatever object the
>>> model is pointing to.
>>> 
>>> -igor
>>> 
>>> On Mon, Nov 1, 2010 at 7:44 AM, adam.gibbons  
>>> wrote:
 
 Hi there!
 
 I'm extreamly new to Whicket, trying to put together my first sample
 application based on the AuthenticatedWebSession example.
 
 I have everything up and running nicely now, but I'd like to make a few
 simple changes.
 
 On the LoginPage, there are feilds for username, password and a check box
 for 'remeber me'.
 
 I want the username feild to be empty, but it always says "support", I can
 not find anywhere in the code where this is set or any way to change it to
 something I want.
 
 In my page's constructor I can get the TextField object for the username
 feild using get("signInPanel:signInForm:username"), but I don't see any
 methods for getting or setting the value...
 I'm sure i'm missing something very obvious!! Any help would be much
 appriciated!!
 
 Kind regards,
 Adam
 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/Really-basic-help-tp3022249p3022249.html
 Sent from the Users forum 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
 
 
>>> 
>>> -
>>> 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 1.4.12 and wicket-push 1.4.8

2010-11-01 Thread fachhoch

I am using wicket 1.4.12 and wicket-push 1.4.8 , will this combination work
fine  or can cause any issues ?
I cannot upgrade to wicket push   to 1.4.12 because of bugs .
Please   tell me if it is ok to use this combination ?
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/wicket-1-4-12-and-wicket-push-1-4-8-tp3022594p3022594.html
Sent from the Users forum 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



Send an object to page

2010-11-01 Thread Gustavo Henrique
hi!

what better way to send an object to webpage?
I'm sending in constructor but the URI is not friendly.

thanks!


Re: wicket 1.4.12 and wicket-push 1.4.8

2010-11-01 Thread Rodolfo Hansen
Yes, this is safe. 

Sebastian did some great work cleaning up the original API and classes. 

The examples have also been extended to make the usage scenarios much
clearer.

We are working on moving all this work into wicketstuff right now, we
would love for you to test it later as it becomes available, but please
feel free to use the previous (1.4.8) release as it is still the most
stable.

On Mon, 2010-11-01 at 11:35 -0700, fachhoch wrote:

> I am using wicket 1.4.12 and wicket-push 1.4.8 , will this combination work
> fine  or can cause any issues ?
> I cannot upgrade to wicket push   to 1.4.12 because of bugs .
> Please   tell me if it is ok to use this combination ?




Re: wicket-ajax header from url?

2010-11-01 Thread Frank van Lankvelt
it returned false because
a) the locking request was not ajax
b) the current request was ajax
c) they shared the same page version
Page versioning is disabled, though that shouldn't matter.  (that might be a
worthwhile additional check before comparing versions; I'm not very familiar
with versions)

It's a concurrency issue for one page, with some non-wicket-ajax behaviors,
so it might be pushing what people have seen?

Both ext-js integration projects I've found have the same basic setup; use
AbstractAjaxBehavior to provide data services, use
AbstractDefaultAjaxBehavior subclasses for listening to Ext events.  So
that's also where my bug occurs; I'm switching between ext components on the
client as the result of some action.  The action leads to a notification to
wicket, the new component starts fetching data.

thanks, Frank

On Mon, Nov 1, 2010 at 5:28 PM, Igor Vaynberg wrote:

> did you check why it returns false? ajax requests should not increment
> the page version, so they should always be "current". people have
> built extjs integrations before, you may look into one of those for
> hints.
>
> -igor
>
> On Mon, Nov 1, 2010 at 9:14 AM, Frank van Lankvelt
>  wrote:
> > In my attempts to integrate a javascript client-side framework (ext-js)
> to
> > wicket, I'm running into the problem that the client-side framework
> expects
> > URLs to send requests to, expecting a JSON/XML response.  This is of
> course
> > perfectly natural behavior for a js framework.
> >
> > The documentation I could find suggested to use an AbstractAjaxBehavior.
> >  However, this doesn't quite work.  Concurrent proper wicket-ajax
> requests
> > (abstractdefaultajaxbehavior) are aborted due to
> > WebSession#isCurrentRequestValid returning false.
> >
> > Am I doing something wrong here, or should I simply override the
> > isCurrentRequestValid method to always return true?
> >
> > thanks, Frank
> >
> > PS: I'm using wicket-1.4.9; but couldn't find relevant issues that have
> been
> > fixed since this release
> >
> > --
> > Hippo
> > Europe  •  Amsterdam  Oosteinde 11  •  1017 WT Amsterdam  •  +31 (0)20
> 522
> > 4466
> > USA  • San Francisco  185 H Street Suite B  •  Petaluma CA 94952-5100 •
>  +1
> > (707) 773 4646
> > Canada•   Montréal  5369 Boulevard St-Laurent #430 •  Montréal QC H2T
> > 1S5  •  +1 (514) 316 8966
> > www.onehippo.com  •  www.onehippo.org  •  i...@onehippo.com
> >
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


-- 
Hippo
Europe  •  Amsterdam  Oosteinde 11  •  1017 WT Amsterdam  •  +31 (0)20 522
4466
USA  • San Francisco  185 H Street Suite B  •  Petaluma CA 94952-5100 •  +1
(707) 773 4646
Canada•   Montréal  5369 Boulevard St-Laurent #430 •  Montréal QC H2T
1S5  •  +1 (514) 316 8966
www.onehippo.com  •  www.onehippo.org  •  i...@onehippo.com


DropDownChoice

2010-11-01 Thread drf

I wonder if anyone can help with the following bug in my code.
It relates to a Panel which contains a DropDownChoice.

This is the exception:

java.lang.IllegalArgumentException: Cannot format given Object as a Number

at java.text.DecimalFormat.format(DecimalFormat.java:487)
 at
java.text.Format.format(Format.java:140)
 at
org.apache.wicket.util.convert.converters.AbstractNumberConverter.convertToString(AbstractNumberConverter.java:111)


at
org.apache.wicket.util.lang.PropertyResolverConverter.convert(PropertyResolverConverter.java:85)


at
org.apache.wicket.util.lang.PropertyResolver$MethodGetAndSet.setValue(PropertyResolver.java:1110)


at
org.apache.wicket.util.lang.PropertyResolver$ObjectAndGetSetter.setValue(PropertyResolver.java:588)


at
org.apache.wicket.util.lang.PropertyResolver.setValue(PropertyResolver.java:136)


at
org.apache.wicket.model.AbstractPropertyModel.setObject(AbstractPropertyModel.java:169)


at
com.drf.hapoalim.gui.components.AccountDropDownChoice$4.onUpdate(AccountDropDownChoice.java:108)

Line 108 relates to the following line of code:
model.setObject(accountsMap.get(accountNumber));
What I cannot understand is what Decimal conversion is going on here: The
'model' variable is declared as IModel model, and the value
returned by the map is indeed an Account object.

Here is the code (trimmed down):
public class AccountDropDownChoice extends Panel {

private static final long serialVersionUID = 530407612837913746L;
@SpringBean
private AccountService accountService;
private List accountsList = new ArrayList();
private Map accountsMap = new HashMap();
private Long selectedAccount;
private DropDownChoice dropDown = null;

public AccountDropDownChoice(String id, final IModel model) {
super(id);
selectedAccount = 0L;
model.setObject(null);

dropDown = new DropDownChoice("accountsDropDown", new
Model(selectedAccount), accountsList, new AccountChoiceRenderer()){


@Override
protected boolean wantOnSelectionChangedNotifications() 
{
return true;
}

// Set default to 'all accounts' when used with this 
constructor
@Override
protected CharSequence getDefaultChoice(Object 
selected) {
return super.getDefaultChoice(0);
}
};

dropDown.add(new AjaxFormComponentUpdatingBehavior("onchange") {
private static final long serialVersionUID = 1L;

@Override
protected void onUpdate(AjaxRequestTarget target) {
if (selectedAccount!=null){
Long accountNumber = (Long)
accountsList.get(Integer.parseInt(dropDown.getModelValue()));
// EXCEPTION OCCURS HERE

model.setObject(accountsMap.get(accountNumber));

}

}
});

add(dropDown);
}

Whoever can help - thank you very much!!!

-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/DropDownChoice-tp3022770p3022770.html
Sent from the Users forum 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: DropDownChoice

2010-11-01 Thread andrea del bene

Hi,

you get this exception because you set as object model an Account object 
and not a Long one, which is the expected type for model. I suppose you 
should pass just Account id field as object model.

I wonder if anyone can help with the following bug in my code.
It relates to a Panel which contains a DropDownChoice.

This is the exception:

java.lang.IllegalArgumentException: Cannot format given Object as a Number

at java.text.DecimalFormat.format(DecimalFormat.java:487)
 at
java.text.Format.format(Format.java:140)
 at
org.apache.wicket.util.convert.converters.AbstractNumberConverter.convertToString(AbstractNumberConverter.java:111)


at
org.apache.wicket.util.lang.PropertyResolverConverter.convert(PropertyResolverConverter.java:85)


at
org.apache.wicket.util.lang.PropertyResolver$MethodGetAndSet.setValue(PropertyResolver.java:1110)


at
org.apache.wicket.util.lang.PropertyResolver$ObjectAndGetSetter.setValue(PropertyResolver.java:588)


at
org.apache.wicket.util.lang.PropertyResolver.setValue(PropertyResolver.java:136)


at
org.apache.wicket.model.AbstractPropertyModel.setObject(AbstractPropertyModel.java:169)


at
com.drf.hapoalim.gui.components.AccountDropDownChoice$4.onUpdate(AccountDropDownChoice.java:108)

Line 108 relates to the following line of code:
model.setObject(accountsMap.get(accountNumber));
What I cannot understand is what Decimal conversion is going on here: The
'model' variable is declared as IModel  model, and the value
returned by the map is indeed an Account object.

Here is the code (trimmed down):
public class AccountDropDownChoice extends Panel {

private static final long serialVersionUID = 530407612837913746L;
@SpringBean
private AccountService accountService;
private List accountsList = new ArrayList();
private Map  accountsMap = new HashMap();
private Long selectedAccount;
private DropDownChoice  dropDown = null;

public AccountDropDownChoice(String id, final IModel  model) {
super(id);
selectedAccount = 0L;
model.setObject(null);

dropDown = new DropDownChoice("accountsDropDown", new
Model(selectedAccount), accountsList, new AccountChoiceRenderer()){


@Override
protected boolean wantOnSelectionChangedNotifications() 
{
return true;
}

// Set default to 'all accounts' when used with this 
constructor
@Override
protected CharSequence getDefaultChoice(Object 
selected) {
return super.getDefaultChoice(0);
}
};

dropDown.add(new AjaxFormComponentUpdatingBehavior("onchange") {
private static final long serialVersionUID = 1L;

@Override
protected void onUpdate(AjaxRequestTarget target) {
if (selectedAccount!=null){
Long accountNumber = (Long)
accountsList.get(Integer.parseInt(dropDown.getModelValue()));
 // EXCEPTION OCCURS HERE

model.setObject(accountsMap.get(accountNumber));

}

}
});

add(dropDown);
}

Whoever can help - thank you very much!!!




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



Re: WebPage: geting string

2010-11-01 Thread msantos

I have notice that the WebApplication class has a private instance variable
wich gets the name of the class. It has a getter, but i do not see the
setter. Is it possible to change? Can we override the getName() method and
return the name we want, with no problems to the application?

Thanks a lot again
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/WebPage-geting-string-tp2993717p3022860.html
Sent from the Users forum 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: Send an object to page

2010-11-01 Thread andrea del bene
Passing objects to webpage via constructor is fine if you feel 
comfortable with it. If you wanna change URI you should take a look at  
Wicket URL Coding strategies: 
https://cwiki.apache.org/WICKET/url-coding-strategies.html. Using coding 
strategies you should be able to change URL as you prefer, but I've 
never used this technique so I can't be more precise.


Bye.

hi!

what better way to send an object to webpage?
I'm sending in constructor but the URI is not friendly.

thanks!




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



Re: WebPage: geting string

2010-11-01 Thread James Carman
Take a look at:

http://svn.apache.org/repos/asf/wicket/trunk/wicket/src/main/java/org/apache/wicket/protocol/http/WicketFilter.java

It calls setName() on the application object using the name of the
filter.  Are you using WicketFilter?

On Mon, Nov 1, 2010 at 5:57 PM, msantos  wrote:
>
> I have notice that the WebApplication class has a private instance variable
> wich gets the name of the class. It has a getter, but i do not see the
> setter. Is it possible to change? Can we override the getName() method and
> return the name we want, with no problems to the application?
>
> Thanks a lot again
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/WebPage-geting-string-tp2993717p3022860.html
> Sent from the Users forum 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
>
>

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



Re: DropDownChoice

2010-11-01 Thread msantos

Hi there.

Probably your "accountsList" has a value wich cannot be converted to long.
What does that list contains?
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/DropDownChoice-tp3022770p3022872.html
Sent from the Users forum 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: Send an object to page

2010-11-01 Thread James Carman
You could pass the "id" of the object (if possible) as a
PageParameter.  You can then use a bookmarkable URL for your page.
You'll have to lookup the object from the db, though.  Again, this is
only possible if the object is an "entity."

On Mon, Nov 1, 2010 at 6:04 PM, andrea del bene  wrote:
> Passing objects to webpage via constructor is fine if you feel comfortable
> with it. If you wanna change URI you should take a look at  Wicket URL
> Coding strategies:
> https://cwiki.apache.org/WICKET/url-coding-strategies.html. Using coding
> strategies you should be able to change URL as you prefer, but I've never
> used this technique so I can't be more precise.
>
> Bye.
>>
>> hi!
>>
>> what better way to send an object to webpage?
>> I'm sending in constructor but the URI is not friendly.
>>
>> thanks!
>>
>
>
> -
> 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: WebPage: geting string

2010-11-01 Thread msantos

the wicket version that i am using is 1.4.12, and that method on the
Application class does not exist neither on the WicketFilter. Wich version
is that source code you linked me?

thanks
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/WebPage-geting-string-tp2993717p3022891.html
Sent from the Users forum 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: WebPage: geting string

2010-11-01 Thread msantos

it can only be set once on the 1.5M version


/**
 * Sets application name. This method must be called before any other
methods are invoked and
 * can only be called once per application instance.
 * 
 * @param name
 *unique application name
 */
public final void setName(String name)
{
Args.notEmpty(name, "name");

if (this.name != null)
{
throw new IllegalStateException("Application name can 
only be set
once.");
}

if (applicationKeyToApplication.get(name) != null)
{
throw new IllegalStateException("Application with name 
'" + name + "'
already exists.'");
}

this.name = name;
applicationKeyToApplication.put(name, this);
}

-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/WebPage-geting-string-tp2993717p3022900.html
Sent from the Users forum 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: WebPage: geting string

2010-11-01 Thread msantos

its working. thanks a lot
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/WebPage-geting-string-tp2993717p3022961.html
Sent from the Users forum 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



Displaying update error in Wizard step, need ideas

2010-11-01 Thread Nelson Segura
Hello,
I am using the wicket-extensions wizard. On applyState() of a wizard step, I
am calling my back end to update some data.
There is a corner condition under which the update might fail, and we would
like to stay in the current step and display a message.

I thought about overriding the onClick() method of the NextButton(), but it
is declared as final.

Any ideas on how I can abort applyState() and go back to the current step?

- Nelson


Re: Displaying update error in Wizard step, need ideas

2010-11-01 Thread Nelson Segura
Just to clarify, I try setting then setComplete(false), but that creates an
internal error message added by the wizard. I am thinking of creating the
feedback panel for my wizard with a filter to accept only my messages, but I
am not sure if that is the best approach,
-nelson

On Mon, Nov 1, 2010 at 4:24 PM, Nelson Segura  wrote:

> Hello,
> I am using the wicket-extensions wizard. On applyState() of a wizard step,
> I am calling my back end to update some data.
> There is a corner condition under which the update might fail, and we would
> like to stay in the current step and display a message.
>
> I thought about overriding the onClick() method of the NextButton(), but it
> is declared as final.
>
> Any ideas on how I can abort applyState() and go back to the current step?
>
> - Nelson
>


Re: wicket-ajax header from url?

2010-11-01 Thread Igor Vaynberg
so why is there the non-ajax request?

once the page is loaded everything else - communication with ext -
should be happening via ajax requests...

-igor

On Mon, Nov 1, 2010 at 1:20 PM, Frank van Lankvelt
 wrote:
> it returned false because
> a) the locking request was not ajax
> b) the current request was ajax
> c) they shared the same page version
> Page versioning is disabled, though that shouldn't matter.  (that might be a
> worthwhile additional check before comparing versions; I'm not very familiar
> with versions)
>
> It's a concurrency issue for one page, with some non-wicket-ajax behaviors,
> so it might be pushing what people have seen?
>
> Both ext-js integration projects I've found have the same basic setup; use
> AbstractAjaxBehavior to provide data services, use
> AbstractDefaultAjaxBehavior subclasses for listening to Ext events.  So
> that's also where my bug occurs; I'm switching between ext components on the
> client as the result of some action.  The action leads to a notification to
> wicket, the new component starts fetching data.
>
> thanks, Frank
>
> On Mon, Nov 1, 2010 at 5:28 PM, Igor Vaynberg wrote:
>
>> did you check why it returns false? ajax requests should not increment
>> the page version, so they should always be "current". people have
>> built extjs integrations before, you may look into one of those for
>> hints.
>>
>> -igor
>>
>> On Mon, Nov 1, 2010 at 9:14 AM, Frank van Lankvelt
>>  wrote:
>> > In my attempts to integrate a javascript client-side framework (ext-js)
>> to
>> > wicket, I'm running into the problem that the client-side framework
>> expects
>> > URLs to send requests to, expecting a JSON/XML response.  This is of
>> course
>> > perfectly natural behavior for a js framework.
>> >
>> > The documentation I could find suggested to use an AbstractAjaxBehavior.
>> >  However, this doesn't quite work.  Concurrent proper wicket-ajax
>> requests
>> > (abstractdefaultajaxbehavior) are aborted due to
>> > WebSession#isCurrentRequestValid returning false.
>> >
>> > Am I doing something wrong here, or should I simply override the
>> > isCurrentRequestValid method to always return true?
>> >
>> > thanks, Frank
>> >
>> > PS: I'm using wicket-1.4.9; but couldn't find relevant issues that have
>> been
>> > fixed since this release
>> >
>> > --
>> > Hippo
>> > Europe  •  Amsterdam  Oosteinde 11  •  1017 WT Amsterdam  •  +31 (0)20
>> 522
>> > 4466
>> > USA  • San Francisco  185 H Street Suite B  •  Petaluma CA 94952-5100 •
>>  +1
>> > (707) 773 4646
>> > Canada    •   Montréal  5369 Boulevard St-Laurent #430 •  Montréal QC H2T
>> > 1S5  •  +1 (514) 316 8966
>> > www.onehippo.com  •  www.onehippo.org  •  i...@onehippo.com
>> >
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>
>
> --
> Hippo
> Europe  •  Amsterdam  Oosteinde 11  •  1017 WT Amsterdam  •  +31 (0)20 522
> 4466
> USA  • San Francisco  185 H Street Suite B  •  Petaluma CA 94952-5100 •  +1
> (707) 773 4646
> Canada    •   Montréal  5369 Boulevard St-Laurent #430 •  Montréal QC H2T
> 1S5  •  +1 (514) 316 8966
> www.onehippo.com  •  www.onehippo.org  •  i...@onehippo.com
>

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



Re: Send an object to page

2010-11-01 Thread Jeremy Thomerson
On Mon, Nov 1, 2010 at 5:09 PM, James Carman wrote:

> You could pass the "id" of the object (if possible) as a
> PageParameter.  You can then use a bookmarkable URL for your page.
> You'll have to lookup the object from the db, though.  Again, this is
> only possible if the object is an "entity."
>
>
And, of course, it opens you up to doing more security checks i.e., you
have editUserProfile.html?userID=123 - now you have to check that the signed
in person is allowed to edit whatever user they are trying to edit (since
they can twiddle the URL).


-- 
Jeremy Thomerson
http://wickettraining.com
*Need a CMS for Wicket?  Use Brix! http://brixcms.org*


Re: Really basic help...

2010-11-01 Thread Jeremy Thomerson
On Mon, Nov 1, 2010 at 12:21 PM, Martin Makundi <
martin.maku...@koodaripalvelut.com> wrote:

> In my opinnion best way to learn is by trial and error ;)
>

True but:

Not the most profitable way, though ;)
>

That's the problem.  Wicket makes it very easy to get up-and-running.  And
in doing so, you will definitely shoot yourself in the foot in a way that
kills the maintainability that a well-written Wicket app would give you.  As
Brian said, 98% of the time [1] this is caused by not understanding models -
something I've seen at literally dozens of companies as I teach and consult
on Wicket projects.

[1] - It is true that 76.98% of statistics are made up on the spot.

-- 
Jeremy Thomerson
http://wickettraining.com
*Need a CMS for Wicket?  Use Brix! http://brixcms.org*


Re: Really basic help...

2010-11-01 Thread Brian Topping

On Nov 1, 2010, at 1:57 PM, Brian Topping wrote:

> As they say, "a million monkeys on typewriters will eventually produce the 
> works of Shakespeare".  :-)

FWIW, http://en.wikipedia.org/wiki/Infinite_monkey_theorem describes what I was 
talking about here.  
-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Send an object to page

2010-11-01 Thread James Carman
On Mon, Nov 1, 2010 at 11:30 PM, Jeremy Thomerson
 wrote:
>>
> And, of course, it opens you up to doing more security checks i.e., you
> have editUserProfile.html?userID=123 - now you have to check that the signed
> in person is allowed to edit whatever user they are trying to edit (since
> they can twiddle the URL).
>

That's one more reason why I use UUID's for my object ids.  They're
harder to spoof.

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



Re: Really basic help...

2010-11-01 Thread James Carman
On Tue, Nov 2, 2010 at 12:11 AM, Brian Topping  wrote:
>
> FWIW, http://en.wikipedia.org/wiki/Infinite_monkey_theorem describes what I 
> was talking about here.

And I had already trained 5 monkeys to code Wicket.  I thought you were serious!

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



Re: Really basic help...

2010-11-01 Thread Brian Topping

On Nov 2, 2010, at 12:31 AM, James Carman wrote:

> On Tue, Nov 2, 2010 at 12:11 AM, Brian Topping  wrote:
>> 
>> FWIW, http://en.wikipedia.org/wiki/Infinite_monkey_theorem describes what I 
>> was talking about here.
> 
> And I had already trained 5 monkeys to code Wicket.  I thought you were 
> serious!


Please don't create competition, I'm already having enough trouble keeping my 
job!


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



[ANNOUNCE] Release Wicket 1.4.13

2010-11-01 Thread Jeremy Thomerson
The Wicket team is proud to announce that we have released Apache Wicket 1.4
.13. This is a bugfix release on the 1.4.x (stable) branch.

To download: http://www.apache.org/dyn/closer.cgi/wicket/1.4.13
Branch: http://svn.apache.org/repos/asf/wicket/branches/wicket-1.4.13/
Changelog:
https://issues.apache.org/jira/secure/ReleaseNote.jspa?projectId=12310561&styleName=Html&version=12315330

To use with Maven (the recommended way to use Wicket):

org.apache.wicket
wicket
1.4.13


Release Notes - Wicket - Version 1.4.13

** Sub-task
* [WICKET-3069] - java.rmi not allowed on GAE
* [WICKET-3112] - Fix of issue 2886 breaks all individual
implementations of any AbstractTree

** Bug
* [WICKET-2888] - Nullpointer when inserting [i.e. moving] a node in a
TreeTable (AbstactTree, treeNodesInserted)
* [WICKET-2912] - IE 8 gets 404 error after
continueToOriginalDestination() when app is at root context
* [WICKET-3052] - HybridUrlCodingStrategy probably uses wrong url
encoding
* [WICKET-3057] - NPE when deleting a TreeNode with visible children
* [WICKET-3061] - Whole page returns 404 when resource cannot be found
* [WICKET-3072] - Deleting only child of collapsed tree node doesn't
update the node
* [WICKET-3074] - CreditCardValidator throws NumberFormatException on
non-numeric characters.
* [WICKET-3075] - AJAX file upload fails in IE8 due to
Wicket.Ajax.handleMultipart() sniffing wicket:body tags as an HTML body
element when running Wicket in development mode
* [WICKET-3076] - UrlUtils.isRelative returns false if URL parameter
contains an absolute URL
* [WICKET-3083] - Broken AbstarctCalendar dependency
* [WICKET-3084] - CharSetUtil.getEncoding fails with an
IndexOutOfBoundsException
* [WICKET-3087] - Form inside ModalWindow causes 'Submit Button not
visible' exception in parent page's form
* [WICKET-3095] - Adding AjaxFormSubmitBehavior to Form leads to "Error:
too much recursion" JS Error
* [WICKET-3098] - AjaxEventBehavior#onEvent is invoked on disabled
behavior
* [WICKET-3102] - WicketTester does not handle
startPage(ITestPageSource) that contains a redirect/setResponsePage
correctly
* [WICKET-3106] - Security: Possible Redirection to foreign Page by
using BrowserInfoPage's PageParameter
* [WICKET-3108] - Problems with page maps stored in session
* [WICKET-3116] - class cast exception
* [WICKET-3119] - Localizer cache does not include style in cache key
when no component is given
* [WICKET-3120] - AbstractHttpSessionStore.bind throws null pointer
exception
* [WICKET-3127] - Adding node to a collapsed tree node should not cause
it to expand

** Improvement
* [WICKET-1779] - Palette component - make image URLs part of CSS
* [WICKET-1936] - Client-Side Image Map
* [WICKET-2776] - Enhancing RadioChoice input items with individual
title and css class attributes
* [WICKET-2937] - AbstractPropertyModel getObjectClass don't consider
nested IObjectClassAwareModel targets
* [WICKET-3055] - Application fails to start when disk access is denied
* [WICKET-3056] - Upgrade pom reference for joda-time from 1.6 to 1.6.2
* [WICKET-3071] - Upgrade maven plugins and non-essential dependencies
to newest version
* [WICKET-3089] - onBeforeRender in NextButton should not be final
* [WICKET-3090] - Make SecondLevelCacheSessionStore and its
SecondLevelCachePageMap reusable
* [WICKET-3128] - FormComponentLabel should open open-close tags like
Label does

** New Feature
* [WICKET-3082] - Introduce IComponentOnInitializeListener for
cross-cutting concerns


-- 
Jeremy Thomerson
http://wickettraining.com
*Need a CMS for Wicket?  Use Brix! http://brixcms.org*


Re: TinyMCE in ModalWindow

2010-11-01 Thread 蔡茂昌
i know that TinyMCE can only work in page , can this help you.

2010/10/19 Brad Grier 

> I've implemented TinyMCE in my app and all is well with one exception. I
> can't get it to work in a ModalWindow (TinyMCE works the first time but
> subsequently opens in an blank, uneditable state). Someone suggested using
> the TinyMCE javascript functions "mceRemoveControl" and "mceAddControl" to
> work around this issue. If that's the answer, I can't get it to work (likely
> because I'm missing something).
>
> Has anyone found a workaround to this problem?


Re: wicket-ajax header from url?

2010-11-01 Thread Frank van Lankvelt
well, the two kinds of ajax requests differ; the WebRequest#isAjax method
returns true for wicket-ajax, but false for non-wicket-ajax requests.  The
'wicket-ajax' request has the Wicket-Ajax header, the other does not.  So I
should have said that the first (locking) request was non-wicket-ajax; i.e.
an ajax request but without the Wicket-Ajax header set.

Some further digging turned up the wicket:ajax request parameter; I guess I
should simply append it to the URL for the non-wicket-ajax behavior.
 Perhaps that could happen in the base class AbstractAjaxBehavior?

cheers, Frank

On Tue, Nov 2, 2010 at 1:14 AM, Igor Vaynberg wrote:

> so why is there the non-ajax request?
>
> once the page is loaded everything else - communication with ext -
> should be happening via ajax requests...
>
> -igor
>
> On Mon, Nov 1, 2010 at 1:20 PM, Frank van Lankvelt
>  wrote:
> > it returned false because
> > a) the locking request was not ajax
> > b) the current request was ajax
> > c) they shared the same page version
> > Page versioning is disabled, though that shouldn't matter.  (that might
> be a
> > worthwhile additional check before comparing versions; I'm not very
> familiar
> > with versions)
> >
> > It's a concurrency issue for one page, with some non-wicket-ajax
> behaviors,
> > so it might be pushing what people have seen?
> >
> > Both ext-js integration projects I've found have the same basic setup;
> use
> > AbstractAjaxBehavior to provide data services, use
> > AbstractDefaultAjaxBehavior subclasses for listening to Ext events.  So
> > that's also where my bug occurs; I'm switching between ext components on
> the
> > client as the result of some action.  The action leads to a notification
> to
> > wicket, the new component starts fetching data.
> >
> > thanks, Frank
> >
> > On Mon, Nov 1, 2010 at 5:28 PM, Igor Vaynberg  >wrote:
> >
> >> did you check why it returns false? ajax requests should not increment
> >> the page version, so they should always be "current". people have
> >> built extjs integrations before, you may look into one of those for
> >> hints.
> >>
> >> -igor
> >>
> >> On Mon, Nov 1, 2010 at 9:14 AM, Frank van Lankvelt
> >>  wrote:
> >> > In my attempts to integrate a javascript client-side framework
> (ext-js)
> >> to
> >> > wicket, I'm running into the problem that the client-side framework
> >> expects
> >> > URLs to send requests to, expecting a JSON/XML response.  This is of
> >> course
> >> > perfectly natural behavior for a js framework.
> >> >
> >> > The documentation I could find suggested to use an
> AbstractAjaxBehavior.
> >> >  However, this doesn't quite work.  Concurrent proper wicket-ajax
> >> requests
> >> > (abstractdefaultajaxbehavior) are aborted due to
> >> > WebSession#isCurrentRequestValid returning false.
> >> >
> >> > Am I doing something wrong here, or should I simply override the
> >> > isCurrentRequestValid method to always return true?
> >> >
> >> > thanks, Frank
> >> >
> >> > PS: I'm using wicket-1.4.9; but couldn't find relevant issues that
> have
> >> been
> >> > fixed since this release
> >> >
> >> > --
> >> > Hippo
> >> > Europe  •  Amsterdam  Oosteinde 11  •  1017 WT Amsterdam  •  +31 (0)20
> >> 522
> >> > 4466
> >> > USA  • San Francisco  185 H Street Suite B  •  Petaluma CA 94952-5100
> •
> >>  +1
> >> > (707) 773 4646
> >> > Canada•   Montréal  5369 Boulevard St-Laurent #430 •  Montréal QC
> H2T
> >> > 1S5  •  +1 (514) 316 8966
> >> > www.onehippo.com  •  www.onehippo.org  •  i...@onehippo.com
> >> >
> >>
> >> -
> >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> >> For additional commands, e-mail: users-h...@wicket.apache.org
> >>
> >>
> >
> >
> > --
> > Hippo
> > Europe  •  Amsterdam  Oosteinde 11  •  1017 WT Amsterdam  •  +31 (0)20
> 522
> > 4466
> > USA  • San Francisco  185 H Street Suite B  •  Petaluma CA 94952-5100 •
>  +1
> > (707) 773 4646
> > Canada•   Montréal  5369 Boulevard St-Laurent #430 •  Montréal QC H2T
> > 1S5  •  +1 (514) 316 8966
> > www.onehippo.com  •  www.onehippo.org  •  i...@onehippo.com
> >
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


-- 
Hippo
Europe  •  Amsterdam  Oosteinde 11  •  1017 WT Amsterdam  •  +31 (0)20 522
4466
USA  • San Francisco  185 H Street Suite B  •  Petaluma CA 94952-5100 •  +1
(707) 773 4646
Canada•   Montréal  5369 Boulevard St-Laurent #430 •  Montréal QC H2T
1S5  •  +1 (514) 316 8966
www.onehippo.com  •  www.onehippo.org  •  i...@onehippo.com