You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by FakeBoy <da...@gmail.com> on 2008/08/10 14:25:46 UTC

Wicket 1.4m3 - AjaxButton, AjaxSubmitLink in ModalWindow in IE 7 Problem ?

Hi,
I tried to submit form from ModalWindow with AjaxButton or AjaxSubmitLink.
In Firefox, Opera, Safari everything works fine, but in IE 7 doesn't.
No onSubmit or onError method is fired after button or link cliked in IE 7.
I used WICKET DEBUG console and after clik on Button or Link i see message:
INFO: Ajax POST stopped because of precondition check,
url:?wicket:interface=modal-dialog-pagemap:0:form:testLink1::IActivePageBehaviorListener:0:&wicket:ignoreIfNotActive=true
What doe's it mean? It's wicket problem or I did something wrong? 
Thanks a lot for your soon reply.

-- 
View this message in context: http://www.nabble.com/Wicket-1.4m3---AjaxButton%2C-AjaxSubmitLink-in-ModalWindow-in-IE-7-Problem---tp18912755p18912755.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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


Re: Wicket 1.4m3 - AjaxButton, AjaxSubmitLink in ModalWindow in IE 7 Problem ?

Posted by jortiz <or...@yahoo.es>.
Thank you for your post Dave. I was having the same problem for a couple of
days until I found your post. The funny think is that one may expect Wicket
to use a different markup id if no id is defined in the markup and
setOutputMarkupId(true) is invoked on the component. However it still fails
and an explicit id (other than id="id") is required, at least in Wicket
1.3.5.


FakeBoy wrote:
> 
> Hi, I GOT IT !!!!
> I found the problem. The Problem was in the TextField with wicket id "id".
> When you want to safetly use ajax submit components (AjaxButton,
> AjaxSubmitLink) your form components (TextFiels etc.) CAN NOT have wicket
> id "id", because ajax submit stop work in IE. For example:
> form.add(new TextField("id",...)) -> cause in IE Ajax Submit Problem
> 
> I hope that it helps you, if you will have same problems like I had
> :thinking:
> 
> Dave
> 
> 
> 
> FakeBoy wrote:
>> 
>> Thanks for your interest :)
>> I tried to isolate problem, because I use it in some context of my
>> application. I made small fake startup project only with only necessary
>> classes and this problem hasn't occured. So everything works fine. But I
>> made only simple dummy modal window with no listeners and other features.
>> Now I will try make it more complex step by step and I will try
>> recognize, when it will stop working. If I detect something, let you
>> know.
>> Thanks one more for your help ;)
>> 
>> Dave
>> 
>> 
>> kag1526 wrote:
>>> 
>>> I just tested my app in IE 7 since I also have a ModalWindow with an
>>> AjaxSubmitLink that submits my form and closes the window and mine
>>> worked fine. sorry I can't help with a solution but I can tell you that
>>> it is possible to make work.
>>> 
>>> 
>>> 
>>> FakeBoy wrote:
>>>> 
>>>> Hi,
>>>> I tried to submit form from ModalWindow with AjaxButton or
>>>> AjaxSubmitLink.
>>>> In Firefox, Opera, Safari everything works fine, but in IE 7 doesn't.
>>>> No onSubmit or onError method is fired after button or link cliked in
>>>> IE 7.
>>>> I used WICKET DEBUG console and after clik on Button or Link i see
>>>> message:
>>>> INFO: Ajax POST stopped because of precondition check,
>>>> url:?wicket:interface=modal-dialog-pagemap:0:form:testLink1::IActivePageBehaviorListener:0:&wicket:ignoreIfNotActive=true
>>>> What doe's it mean? It's wicket problem or I did something wrong? 
>>>> Thanks a lot for your soon reply.
>>>> 
>>>> 
>>> 
>>> 
>> 
>> 
> 
> 

-- 
View this message in context: http://old.nabble.com/Wicket-1.4m3---AjaxButton%2C-AjaxSubmitLink-in-ModalWindow-in-IE-7-Problem---tp18912755p27714538.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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


Re: Wicket 1.4m3 - AjaxButton, AjaxSubmitLink in ModalWindow in IE 7 Problem ?

Posted by Asgaut Mjølne <as...@bouvet.no>.
Thanks, I had a similar problem and your post saved my day!

Postet it on wicket's Jira here:
https://issues.apache.org/jira/browse/WICKET-1787

Regards,


Asgaut Mjølne



Martijn Dashorst wrote:
> 
> also, don't use a submit button with wicket:id "submit"
> 
> Martijn
> 
> On Mon, Aug 11, 2008 at 9:57 PM, FakeBoy <da...@gmail.com> wrote:
>>
>> Hi, I GOT IT !!!!
>> I found the problem. The Problem was in the TextField with wicket id
>> "id".
>> When you want to safetly use ajax submit components (AjaxButton,
>> AjaxSubmitLink) your form components (TextFiels etc.) CAN NOT have wicket
>> id
>> "id", because ajax submit stop work in IE. For example:
>> form.add(new TextField("id",...)) -> cause in IE Ajax Submit Problem
>>
>> I hope that it helps you, if you will have same problems like I had
>> :thinking:
>>
>> Dave
>>
>>
>>
>> FakeBoy wrote:
>>>
>>> Thanks for your interest :)
>>> I tried to isolate problem, because I use it in some context of my
>>> application. I made small fake startup project only with only necessary
>>> classes and this problem hasn't occured. So everything works fine. But I
>>> made only simple dummy modal window with no listeners and other
>>> features.
>>> Now I will try make it more complex step by step and I will try
>>> recognize,
>>> when it will stop working. If I detect something, let you know.
>>> Thanks one more for your help ;)
>>>
>>> Dave
>>>
>>>
>>> kag1526 wrote:
>>>>
>>>> I just tested my app in IE 7 since I also have a ModalWindow with an
>>>> AjaxSubmitLink that submits my form and closes the window and mine
>>>> worked
>>>> fine. sorry I can't help with a solution but I can tell you that it is
>>>> possible to make work.
>>>>
>>>>
>>>>
>>>> FakeBoy wrote:
>>>>>
>>>>> Hi,
>>>>> I tried to submit form from ModalWindow with AjaxButton or
>>>>> AjaxSubmitLink.
>>>>> In Firefox, Opera, Safari everything works fine, but in IE 7 doesn't.
>>>>> No onSubmit or onError method is fired after button or link cliked in
>>>>> IE
>>>>> 7.
>>>>> I used WICKET DEBUG console and after clik on Button or Link i see
>>>>> message:
>>>>> INFO: Ajax POST stopped because of precondition check,
>>>>> url:?wicket:interface=modal-dialog-pagemap:0:form:testLink1::IActivePageBehaviorListener:0:&wicket:ignoreIfNotActive=true
>>>>> What doe's it mean? It's wicket problem or I did something wrong?
>>>>> Thanks a lot for your soon reply.
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Wicket-1.4m3---AjaxButton%2C-AjaxSubmitLink-in-ModalWindow-in-IE-7-Problem---tp18912755p18932529.html
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
> 
> 
> 
> -- 
> Become a Wicket expert, learn from the best: http://wicketinaction.com
> Apache Wicket 1.3.4 is released
> Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Wicket-1.4m3---AjaxButton%2C-AjaxSubmitLink-in-ModalWindow-in-IE-7-Problem---tp18912755p18943377.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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


Re: Wicket 1.4m3 - AjaxButton, AjaxSubmitLink in ModalWindow in IE 7 Problem ?

Posted by Martijn Dashorst <ma...@gmail.com>.
also, don't use a submit button with wicket:id "submit"

Martijn

On Mon, Aug 11, 2008 at 9:57 PM, FakeBoy <da...@gmail.com> wrote:
>
> Hi, I GOT IT !!!!
> I found the problem. The Problem was in the TextField with wicket id "id".
> When you want to safetly use ajax submit components (AjaxButton,
> AjaxSubmitLink) your form components (TextFiels etc.) CAN NOT have wicket id
> "id", because ajax submit stop work in IE. For example:
> form.add(new TextField("id",...)) -> cause in IE Ajax Submit Problem
>
> I hope that it helps you, if you will have same problems like I had
> :thinking:
>
> Dave
>
>
>
> FakeBoy wrote:
>>
>> Thanks for your interest :)
>> I tried to isolate problem, because I use it in some context of my
>> application. I made small fake startup project only with only necessary
>> classes and this problem hasn't occured. So everything works fine. But I
>> made only simple dummy modal window with no listeners and other features.
>> Now I will try make it more complex step by step and I will try recognize,
>> when it will stop working. If I detect something, let you know.
>> Thanks one more for your help ;)
>>
>> Dave
>>
>>
>> kag1526 wrote:
>>>
>>> I just tested my app in IE 7 since I also have a ModalWindow with an
>>> AjaxSubmitLink that submits my form and closes the window and mine worked
>>> fine. sorry I can't help with a solution but I can tell you that it is
>>> possible to make work.
>>>
>>>
>>>
>>> FakeBoy wrote:
>>>>
>>>> Hi,
>>>> I tried to submit form from ModalWindow with AjaxButton or
>>>> AjaxSubmitLink.
>>>> In Firefox, Opera, Safari everything works fine, but in IE 7 doesn't.
>>>> No onSubmit or onError method is fired after button or link cliked in IE
>>>> 7.
>>>> I used WICKET DEBUG console and after clik on Button or Link i see
>>>> message:
>>>> INFO: Ajax POST stopped because of precondition check,
>>>> url:?wicket:interface=modal-dialog-pagemap:0:form:testLink1::IActivePageBehaviorListener:0:&wicket:ignoreIfNotActive=true
>>>> What doe's it mean? It's wicket problem or I did something wrong?
>>>> Thanks a lot for your soon reply.
>>>>
>>>>
>>>
>>>
>>
>>
>
> --
> View this message in context: http://www.nabble.com/Wicket-1.4m3---AjaxButton%2C-AjaxSubmitLink-in-ModalWindow-in-IE-7-Problem---tp18912755p18932529.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>



-- 
Become a Wicket expert, learn from the best: http://wicketinaction.com
Apache Wicket 1.3.4 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.

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


Re: Wicket 1.4m3 - AjaxButton, AjaxSubmitLink in ModalWindow in IE 7 Problem ?

Posted by FakeBoy <da...@gmail.com>.
Hi, I GOT IT !!!!
I found the problem. The Problem was in the TextField with wicket id "id".
When you want to safetly use ajax submit components (AjaxButton,
AjaxSubmitLink) your form components (TextFiels etc.) CAN NOT have wicket id
"id", because ajax submit stop work in IE. For example:
form.add(new TextField("id",...)) -> cause in IE Ajax Submit Problem

I hope that it helps you, if you will have same problems like I had
:thinking:

Dave



FakeBoy wrote:
> 
> Thanks for your interest :)
> I tried to isolate problem, because I use it in some context of my
> application. I made small fake startup project only with only necessary
> classes and this problem hasn't occured. So everything works fine. But I
> made only simple dummy modal window with no listeners and other features.
> Now I will try make it more complex step by step and I will try recognize,
> when it will stop working. If I detect something, let you know.
> Thanks one more for your help ;)
> 
> Dave
> 
> 
> kag1526 wrote:
>> 
>> I just tested my app in IE 7 since I also have a ModalWindow with an
>> AjaxSubmitLink that submits my form and closes the window and mine worked
>> fine. sorry I can't help with a solution but I can tell you that it is
>> possible to make work.
>> 
>> 
>> 
>> FakeBoy wrote:
>>> 
>>> Hi,
>>> I tried to submit form from ModalWindow with AjaxButton or
>>> AjaxSubmitLink.
>>> In Firefox, Opera, Safari everything works fine, but in IE 7 doesn't.
>>> No onSubmit or onError method is fired after button or link cliked in IE
>>> 7.
>>> I used WICKET DEBUG console and after clik on Button or Link i see
>>> message:
>>> INFO: Ajax POST stopped because of precondition check,
>>> url:?wicket:interface=modal-dialog-pagemap:0:form:testLink1::IActivePageBehaviorListener:0:&wicket:ignoreIfNotActive=true
>>> What doe's it mean? It's wicket problem or I did something wrong? 
>>> Thanks a lot for your soon reply.
>>> 
>>> 
>> 
>> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Wicket-1.4m3---AjaxButton%2C-AjaxSubmitLink-in-ModalWindow-in-IE-7-Problem---tp18912755p18932529.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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


Re: Wicket 1.4m3 - AjaxButton, AjaxSubmitLink in ModalWindow in IE 7 Problem ?

Posted by FakeBoy <da...@gmail.com>.
Thanks for your interest :)
I tried to isolate problem, because I use it in some context of my
application. I made small fake startup project only with only necessary
classes and this problem hasn't occured. So everything works fine. But I
made only simple dummy modal window with no listeners and other features.
Now I will try make it more complex step by step and I will try recognize,
when it will stop working. If I detect something, let you know.
Thanks one more for your help ;)

Dave


kag1526 wrote:
> 
> I just tested my app in IE 7 since I also have a ModalWindow with an
> AjaxSubmitLink that submits my form and closes the window and mine worked
> fine. sorry I can't help with a solution but I can tell you that it is
> possible to make work.
> 
> 
> 
> FakeBoy wrote:
>> 
>> Hi,
>> I tried to submit form from ModalWindow with AjaxButton or
>> AjaxSubmitLink.
>> In Firefox, Opera, Safari everything works fine, but in IE 7 doesn't.
>> No onSubmit or onError method is fired after button or link cliked in IE
>> 7.
>> I used WICKET DEBUG console and after clik on Button or Link i see
>> message:
>> INFO: Ajax POST stopped because of precondition check,
>> url:?wicket:interface=modal-dialog-pagemap:0:form:testLink1::IActivePageBehaviorListener:0:&wicket:ignoreIfNotActive=true
>> What doe's it mean? It's wicket problem or I did something wrong? 
>> Thanks a lot for your soon reply.
>> 
>> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Wicket-1.4m3---AjaxButton%2C-AjaxSubmitLink-in-ModalWindow-in-IE-7-Problem---tp18912755p18931673.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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


Re: Wicket 1.4m3 - AjaxButton, AjaxSubmitLink in ModalWindow in IE 7 Problem ?

Posted by kag1526 <ka...@gmail.com>.
I just tested my app in IE 7 since I also have a ModalWindow with an
AjaxSubmitLink that submits my form and closes the window and mine worked
fine. sorry I can't help with a solution but I can tell you that it is
possible to make work.



FakeBoy wrote:
> 
> Hi,
> I tried to submit form from ModalWindow with AjaxButton or AjaxSubmitLink.
> In Firefox, Opera, Safari everything works fine, but in IE 7 doesn't.
> No onSubmit or onError method is fired after button or link cliked in IE
> 7.
> I used WICKET DEBUG console and after clik on Button or Link i see
> message:
> INFO: Ajax POST stopped because of precondition check,
> url:?wicket:interface=modal-dialog-pagemap:0:form:testLink1::IActivePageBehaviorListener:0:&wicket:ignoreIfNotActive=true
> What doe's it mean? It's wicket problem or I did something wrong? 
> Thanks a lot for your soon reply.
> 
> 

-- 
View this message in context: http://www.nabble.com/Wicket-1.4m3---AjaxButton%2C-AjaxSubmitLink-in-ModalWindow-in-IE-7-Problem---tp18912755p18927552.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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