RE: IE7 Submit button stops working

2013-05-21 Thread Arseneault, Matthew R
Just out of curiosity did you set the type when you were using the button 
element? W3C notes that different browsers use different default types for 
buttons. Also probably more to your issue, they recommend not using the 
button element in html forms since the browsers may submit different values 
for them.

- Matthew Arseneault

-Original Message-
From: Entropy [mailto:blmulholl...@gmail.com]
Sent: Friday, May 17, 2013 12:25 PM
To: users@wicket.apache.org
Subject: Re: IE7 Submit button stops working

SOLUTION:

It was the button tags.  Replace them with input type=button ... and
it works fine.  What a simple little cause of a wierd @ss problem.



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/IE7-Submit-button-stops-working-tp4658857p4658907.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


This e-mail and any attachments are intended only for the use of the 
addressee(s) named herein and may contain proprietary information. If you are 
not the intended recipient of this e-mail or believe that you received this 
email in error, please take immediate action to notify the sender of the 
apparent error by reply e-mail; permanently delete the e-mail and any 
attachments from your computer; and do not disseminate, distribute, use, or 
copy this message and any attachments.

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



Re: IE7 Submit button stops working

2013-05-17 Thread Entropy
More More Info: Tried keeping the recipients panel enabled, wondering if it
being enabled was the problem or changing it via ajax was the problem.  It
appears that if it is always enabled the bug happens.  So it's not the act
of changing it.



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/IE7-Submit-button-stops-working-tp4658857p4658895.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: IE7 Submit button stops working

2013-05-17 Thread Entropy
Still more info:  I drilled into my panel, and began removing things to find
what component might be interacting poorly with the enabling.  I found that
it is my ajaxbuttons.  If I remove all four, the page works.  If I put ANY
of the four back in, it interacts with the enabling to cause the form submit
button (which is not in this panel).

The buttons all look approximately like the following in java:
add(new AjaxButton(removeAll) {
private static final long serialVersionUID = 1L;
@Override
public void onSubmit(AjaxRequestTarget target, Form 
form) {
onRemoveAll(target);
}
}.setDefaultFormProcessing(false));

In HTML:
div id=tabbuttons
button wicket:id=addSelected type=button title=Add
gt;/button
button wicket:id=addAll type=button title=Add All
gt;gt;/button
button wicket:id=removeSelected type=button
title=Remove lt;/button
button wicket:id=removeAll type=button title=Remove
All lt;lt;/button
/div

I'm going to start experimenting with different types of button, to see if
that matters.



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/IE7-Submit-button-stops-working-tp4658857p4658903.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: IE7 Submit button stops working

2013-05-17 Thread Entropy
SOLUTION:

It was the button tags.  Replace them with input type=button ... and
it works fine.  What a simple little cause of a wierd @ss problem.



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/IE7-Submit-button-stops-working-tp4658857p4658907.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: IE7 Submit button stops working

2013-05-16 Thread Ernesto Reinaldo Barreiro
Does it hit the

public void onError()
{

}

?

and thanks for the bacon;-)


On Thu, May 16, 2013 at 5:21 PM, Entropy blmulholl...@gmail.com wrote:

 Okay, I've got a riddle wrapped in an enigma wrapped in bacon for you.

 My page works perfectly in IE8.  When I use the developer tools to go to
 IE7
 compatability for testing, the submit button on my page stops working (I'll
 describe exact symptoms below).  It works in IE8.  Works in Firefox.

 Other buttons that appear pretty identical elsewhere in the app work in IE7
 compatility mode.  Ajax buttons and events on the page working fine in IE7
 mode.  But not that button nor the cancel button (which also submits with a
 javascript confirmation alert).  I've experimented with everything I notice
 being different between this button and other submit buttons in the
 application that work to no avail.

 The not working is that it basically just reloads the current page.  All
 selections are maintained.  No validation messages are shown, so it's not
 failing my validation, and a breakpoint tells me it's not running them
 either.  Breakpoints also tell me it never gets to the onSubmit.  I tried
 defining a onSubmit on the form instead but it also never gets there.

 My button in java:
 form.add(new Button(nextBtn) {
 private static final long serialVersionUID = 1L;
 public void onSubmit() {
 onNextButton();
 }
 });

 My buttons in html:
 input type=submit id=cancelBtn class=submit clr
 wicket:id=cancelBtn onclick=return confirm('Are you sure you want to
 cancel?'); value=Cancel
 input type=submit class=submit btnsubmit wicket:id=nextBtn
 value=eNote Criteria gt;




 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/IE7-Submit-button-stops-working-tp4658857.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




-- 
Regards - Ernesto Reinaldo Barreiro


Re: IE7 Submit button stops working

2013-05-16 Thread Entropy
Presuming you meant on the form, no it does not.



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/IE7-Submit-button-stops-working-tp4658857p4658866.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: IE7 Submit button stops working

2013-05-16 Thread Entropy
New info:  It works in IE8 from my localhost (using IBM RAD) but does NOT
work in IE8 from a standalone server (WebSphere).  However, it DOES still
work in Firefox on the standalone server.



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/IE7-Submit-button-stops-working-tp4658857p4658868.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: IE7 Submit button stops working

2013-05-16 Thread Entropy
More Info:

So I was able, through experimentation and heavy commenting in/out to narrow
it down.  It's an ajax behavior earlier in the page that is causing the
button to misbehave.  

UserMultiSelect recipients = (UserMultiSelect)
form.get(recipients_section);
if(!model.isSingleRecipientMode()) {
//  recipients.setEnabled(true);
recipients.clear();
}
target.addComponent(recipients);
target.addComponent(appsDropdown);

I comment in that setEnabled and it fails.  I leave it out, and the event
works.  UserMultiSelect is a complex hybrid component that is used in a few
spots in the app, though i am the only one who has to disable and then
enable it based on user input.  It consists of a jQuery tab, a multiselect
box, a handful of combo boxes, a text field and a couple more multiselect
boxes.

Why would enabling this panel cause the submit button to fail later on?  By
the way, I tried it without performing any events on the panel after it was
enabled and it still has the issue, so it's not like this enabling just made
some later event that was the real cause possible.

Does this help?



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/IE7-Submit-button-stops-working-tp4658857p4658870.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