[jira] [Reopened] (WICKET-5234) OnEventHeaderItem can't be applied via AJAX
[ https://issues.apache.org/jira/browse/WICKET-5234?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Martin Grigorov reopened WICKET-5234: - OnEventHeaderItem can't be applied via AJAX --- Key: WICKET-5234 URL: https://issues.apache.org/jira/browse/WICKET-5234 Project: Wicket Issue Type: Bug Reporter: Andrea Del Bene Assignee: Martin Grigorov Fix For: 6.9.0, 7.0.0, 1.5.11 Attachments: EventScript.patch, OnEventAjax.zip, WICKET-5234.patch OnEventHeaderItem doesn't have effect if it is applied to a component refreshed via AJAX. In short, OnEventHeaderItem is applied before the component is refreshed via AJAX, hence the releated event handler is removed from the target component. We could modify JavaScript function Wicket.Ajax.Call.loadedCallback in order to apply header contributors after the component has been refreshed (see patch). -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira
[CONF] Apache Wicket Index
Index Page edited by Martijn Dashorst Changes (1) [Bookmarkable URL|http://cwiki.apache.org/WICKET/] {note:title=Linking to the wiki}To help with the server loading, please only link to pages under the [http://cwiki.apache.org/WICKET/] static root.{note} This wiki is dedicated to documenting the *Wicket Java application framework*. Wicket takes simplicity, separation of concerns and ease of development to a whole new level. The wiki is currently open to new users and contributors; see [the contribution page|How to contribute documentation to the Wiki] for more information. To download Wicket, please visit the [Wicket site|http://wicket.apache.org/]. {panel:borderStyle=solid|title=Table of contents} ... Full Content This wiki is dedicated to documenting the Wicket Java application framework. Wicket takes simplicity, separation of concerns and ease of development to a whole new level. The wiki is currently open to new users and contributors; see the contribution page for more information. To download Wicket, please visit the Wicket site. Table of contents About Wicket What is Wicket? Introduction to Java web applications Why Wicket Framework Comparisons Who is using Wicket Where to (get) help IRC Community initiatives Communities on social networking sites Contribute to Wicket Commercial Services What's next Wish List for Next Version Migrations More about Wicket... Videos, Talks, Screencasts Wicket Press User Stories Companies Hiring Wicket Developers External Links Using Wicket Development Environment Java Build tools IDE Application server Portal server Database Development Framework Documentation GUI-Components and Widgets Wicket Component Packaging Portlet Development Development Aids Testing About Wicket What is Wicket? Wicket is one of the most recent in a long line of Java web development frameworks and stands on the shoulders of many that have come before it. Wicket is a component-based framework, which puts it in stark contrast to some of the earlier solutions to the sometimes monotonous task of web programming. Like other frameworks, Wicket builds on top of Sun's servlet API; however, unlike frameworks like Struts or Spring MVC, the developer using Wicket is mostly removed from the request/response nature that is inherent with the web and Servlets. Instead of building controllers that must service many users and threads simultaneously, taking in requests, returning responses, and never storing any state, the Wicket developer thinks in terms of stateful components. Instead of creating a controller or action class, he or she creates a page, places components on it, and defines how each component reacts to user input. This may all sound familiar to those with desktop GUI experience; Microsoft's Visual Studio line, Sun's Swing API, and Borland's Delphi are all popular desktop GUI development tools that use component models. Using components allows the developer to spend less time on the visual tier of his or her app and more time implementing the core functionality. Even more important is how extensible this makes component-based GUIs. Adding additional functionality is simply a matter of adding one more component, which can act independently or in cooperation with other components in the view. These advantages have not been lost on web developers. In fact, many web framework projects have attempted to leverage the productivity and scalability of desktop applications. Apache Jakarta's Tapestry and Microsoft's own ASP.NET as well as Sun's Java Server Faces specification all present solutions to component-based development over the web and bring new ideas to the table. All of these technologies separate the page layout into a template file. JSF uses Sun's JSPs, ASP.NET uses ASP, and Tapestry use's it's own templating system based on standard HTML markup. These pages are rendered on each request, and as they are rendering, they make calls into a backing class to support dynamic content. As much as the word "template" would seem to suggest otherwise, this makes the page template king. Backing classes tends to be a series of listener methods, at the total mercy of the page template that is supposed to be merely defining the placement of components. This works fine, and it is definitely a step up from a model 2 controller singleton class. Instead of a giant if block, we have well defined methods. Instead of being stateless, we can have instance variables. But now our Java code is a second-class citizen, existing merely to provide the page with the information it needs while it renders itself.
svn commit: r1495964 [2/2] - in /wicket/common/site/trunk: _includes/ _site/ _site/2009/07/30/ _site/2009/08/21/ _site/2009/10/12/ _site/2009/10/24/ _site/2009/12/13/ _site/2009/12/21/ _site/2010/02/0
Modified: wicket/common/site/trunk/_site/index.html URL: http://svn.apache.org/viewvc/wicket/common/site/trunk/_site/index.html?rev=1495964r1=1495963r2=1495964view=diff == --- wicket/common/site/trunk/_site/index.html (original) +++ wicket/common/site/trunk/_site/index.html Mon Jun 24 09:13:58 2013 @@ -72,10 +72,10 @@ a href=/learn/projects/ title=Projects extending basic WicketProjects/a /li li - a href=http://cwiki.apache.org/WICKET;Wiki/a + a href=https://cwiki.apache.org/confluence/display/WICKET;Wiki/a /li li - a href=http://cwiki.apache.org/WICKET/reference-library.html;Reference guide/a + a href=https://cwiki.apache.org/confluence/display/WICKET/Reference+library;Reference guide/a /li li a href=/learn/books title=BooksBooks/a Modified: wicket/common/site/trunk/_site/learn/books/awc.html URL: http://svn.apache.org/viewvc/wicket/common/site/trunk/_site/learn/books/awc.html?rev=1495964r1=1495963r2=1495964view=diff == --- wicket/common/site/trunk/_site/learn/books/awc.html (original) +++ wicket/common/site/trunk/_site/learn/books/awc.html Mon Jun 24 09:13:58 2013 @@ -72,10 +72,10 @@ a href=/learn/projects/ title=Projects extending basic WicketProjects/a /li li - a href=http://cwiki.apache.org/WICKET;Wiki/a + a href=https://cwiki.apache.org/confluence/display/WICKET;Wiki/a /li li - a href=http://cwiki.apache.org/WICKET/reference-library.html;Reference guide/a + a href=https://cwiki.apache.org/confluence/display/WICKET/Reference+library;Reference guide/a /li li a href=/learn/books title=BooksBooks/a Modified: wicket/common/site/trunk/_site/learn/books/ewdww.html URL: http://svn.apache.org/viewvc/wicket/common/site/trunk/_site/learn/books/ewdww.html?rev=1495964r1=1495963r2=1495964view=diff == --- wicket/common/site/trunk/_site/learn/books/ewdww.html (original) +++ wicket/common/site/trunk/_site/learn/books/ewdww.html Mon Jun 24 09:13:58 2013 @@ -72,10 +72,10 @@ a href=/learn/projects/ title=Projects extending basic WicketProjects/a /li li - a href=http://cwiki.apache.org/WICKET;Wiki/a + a href=https://cwiki.apache.org/confluence/display/WICKET;Wiki/a /li li - a href=http://cwiki.apache.org/WICKET/reference-library.html;Reference guide/a + a href=https://cwiki.apache.org/confluence/display/WICKET/Reference+library;Reference guide/a /li li a href=/learn/books title=BooksBooks/a Modified: wicket/common/site/trunk/_site/learn/books/freeguide.html URL: http://svn.apache.org/viewvc/wicket/common/site/trunk/_site/learn/books/freeguide.html?rev=1495964r1=1495963r2=1495964view=diff == --- wicket/common/site/trunk/_site/learn/books/freeguide.html (original) +++ wicket/common/site/trunk/_site/learn/books/freeguide.html Mon Jun 24 09:13:58 2013 @@ -72,10 +72,10 @@ a href=/learn/projects/ title=Projects extending basic WicketProjects/a /li li - a href=http://cwiki.apache.org/WICKET;Wiki/a + a href=https://cwiki.apache.org/confluence/display/WICKET;Wiki/a /li li - a href=http://cwiki.apache.org/WICKET/reference-library.html;Reference guide/a + a href=https://cwiki.apache.org/confluence/display/WICKET/Reference+library;Reference guide/a /li li a href=/learn/books title=BooksBooks/a Modified: wicket/common/site/trunk/_site/learn/books/index.html URL: http://svn.apache.org/viewvc/wicket/common/site/trunk/_site/learn/books/index.html?rev=1495964r1=1495963r2=1495964view=diff == --- wicket/common/site/trunk/_site/learn/books/index.html (original) +++ wicket/common/site/trunk/_site/learn/books/index.html Mon Jun 24 09:13:58 2013 @@ -72,10 +72,10 @@ a href=/learn/projects/ title=Projects extending basic WicketProjects/a /li li - a
[CONF] Apache Wicket Migrating to Wicket 1.3
Migrating to Wicket 1.3 Page edited by Martijn Dashorst Changes (0) ... Full Content 1.3 is the current stable release. Migrating to Wicket 1.3 Getting ithttp://wicket.apache.org/getting-wicket.html explains how to obtain Wicket 1.3.x. Table of contents Package rename Filter instead of a Servlet API changes IModel change PageParameters. Static Images. Component.onAttach/onBeforeRender/onAfterRender changes. Converters Validation Changes WicketTester and MockWebApplication Mounts RequestCycle, IRequestCycleFactory, Session, ISessionFactory, IPageMap and PageMap changes Custom Sessions Repeaters TextTemplate DatePicker Portlets JSR-168 ISessionStore Button IHeaderContributor IBehavior Replacement for getBodyContainer FormComponent.IVisitor ClientProperties Application settings Custom resource loading Tree components Test serialization setting removed Palette component in wicket-extensions now has default CSS. IRequestCycleProcessor got simplified Removed IPageSettings#maxPageVersions Simplified HeaderContributor Removed feedback messages from page Slight change in the handling of multivalued widgets Made it easier to add IMarkupFilter to MarkupParser Logging API Change Application#configure() DEPLOYMENT/DEVELOPMENT changes HtmlBodyContainer body gone PasswordTextField no longer supports cookies by default New Features wicket:enclosure tag Reloading class loader Relative URLs Package rename Due to Wicket incubating at Apache, we applied a package rename for all core projects. Instead of wicket. we now use org.apache.wicket.*. The http://wicket.sourceforge.net namescape declarations should be changed to http://wicket.apache.org. Filter instead of a Servlet The recommended set-up for Wicket now uses a servlet-api Filter, not a servlet-api Servlet (although a Servlet is still provided for use in environments that do not support a Filter). Replace code like this (in subclasses of WebApplication): Unknown macro: {code} ServletContext sc = getWicketServlet().getServletContext(); with Unknown macro: {code} ServletContext sc = getServletContext(); and Unknown macro: {code} wicket.protocol.http.IWebApplicationFactory#createApplication(wicket.protocol.http.WicketServlet) is replaced by Unknown macro: {code} wicket.protocol.http.IWebApplicationFactory#createApplication(wicket.protocol.http.WicketFilter) You can get the servlet context from a filter like this: Unknown macro: {code} filter.getFilterConfig().getServletContext() The main advantage of working with a filter instead of a servlet is that it is easier to pass through resources, and map your application to the root. Here's an example of how to configure your application now with a filter in web.xml: Unknown macro: {code} ?xml version="1.0" encoding="UTF-8"? !DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd" web-app filter filter-nameMyApplication/filter-name filter-classorg.apache.wicket.protocol.http.WicketFilter/filter-class init-param param-nameapplicationClassName/param-name param-valuecom.myapp.MyApplication/param-value /init-param /filter filter-mapping filter-nameMyApplication/filter-name url-pattern/app/*/url-pattern /filter-mapping /web-app API changes IModel change IModel#getObject(Component) is replaced by IModel#getObject() and IModel#setObject(Component, Object) is replaced by IModel#setObject(Object) Here are some regex replacement that are helpful: Unknown macro: {code} s/public\s+Object\s+getObject\s*\s*(final)\s(wicket.)?Component\s+\w+\s*/public Object getObject() and Unknown macro: {code} s/public\s+void\s+setObject\s*\s*(final)\s(wicket.)?Component\s+\w+,\s*(final)\s*Object\s+(\w+)\s/public void setObject(Object \2) You're probably best off doing the calls to get/setObject you did on models yourself manually. Some miscellaneous abstract model classes have been removed as they did not provide much value. Here is a simple migration mapping if you extended one of the removed classes in your code: Unknown macro: {code} AbstractModel-Model AbstractReadOnlyDetachableModel-LoadableDetachableModel (or other detachable models that don't need to have a setObject method) if you do need the Component in the model (see below the IAssignementAwareModel) then there is a quick model Unknown macro: {code} ComponentModel that is pretty much a drop in replacement for the current model implementation you have. If that model was a DetacheableModel then you can use the Unknown macro: {code} ComponentDetachableModel
[CONF] Apache Wicket Wicket Cheat Sheet
Wicket Cheat Sheet File attached by Anonymous Wicket Cheat Sheet.png (18 kB image/png) - GLIFFY IMAGE Stop watching space | Change email notification preferences View Attachments
git commit: WICKET-5234 OnEventHeaderItem can't be applied via AJAX
Updated Branches: refs/heads/master ca72eda93 - 5c6f59e98 WICKET-5234 OnEventHeaderItem can't be applied via AJAX Project: http://git-wip-us.apache.org/repos/asf/wicket/repo Commit: http://git-wip-us.apache.org/repos/asf/wicket/commit/5c6f59e9 Tree: http://git-wip-us.apache.org/repos/asf/wicket/tree/5c6f59e9 Diff: http://git-wip-us.apache.org/repos/asf/wicket/diff/5c6f59e9 Branch: refs/heads/master Commit: 5c6f59e986a17c88ca278db58086d0ed96673d52 Parents: ca72eda Author: Martin Tzvetanov Grigorov mgrigo...@apache.org Authored: Mon Jun 24 14:47:17 2013 +0300 Committer: Martin Tzvetanov Grigorov mgrigo...@apache.org Committed: Mon Jun 24 14:47:17 2013 +0300 -- .../apache/wicket/ajax/AbstractAjaxResponse.java | 2 +- .../wicket/markup/head/OnEventHeaderItem.java| 19 +-- 2 files changed, 18 insertions(+), 3 deletions(-) -- http://git-wip-us.apache.org/repos/asf/wicket/blob/5c6f59e9/wicket-core/src/main/java/org/apache/wicket/ajax/AbstractAjaxResponse.java -- diff --git a/wicket-core/src/main/java/org/apache/wicket/ajax/AbstractAjaxResponse.java b/wicket-core/src/main/java/org/apache/wicket/ajax/AbstractAjaxResponse.java index b660edc..b7c51de 100644 --- a/wicket-core/src/main/java/org/apache/wicket/ajax/AbstractAjaxResponse.java +++ b/wicket-core/src/main/java/org/apache/wicket/ajax/AbstractAjaxResponse.java @@ -539,7 +539,7 @@ public abstract class AbstractAjaxResponse { if (!wasItemRendered(item)) { - AbstractAjaxResponse.this.appendJavaScript(((OnEventHeaderItem) item).getJavaScript()); + AbstractAjaxResponse.this.appendJavaScript(((OnEventHeaderItem) item).getCompleteJavaScript()); markItemRendered(item); } } http://git-wip-us.apache.org/repos/asf/wicket/blob/5c6f59e9/wicket-core/src/main/java/org/apache/wicket/markup/head/OnEventHeaderItem.java -- diff --git a/wicket-core/src/main/java/org/apache/wicket/markup/head/OnEventHeaderItem.java b/wicket-core/src/main/java/org/apache/wicket/markup/head/OnEventHeaderItem.java index ed65100..f6b8b91 100644 --- a/wicket-core/src/main/java/org/apache/wicket/markup/head/OnEventHeaderItem.java +++ b/wicket-core/src/main/java/org/apache/wicket/markup/head/OnEventHeaderItem.java @@ -95,8 +95,23 @@ public class OnEventHeaderItem extends HeaderItem @Override public void render(Response response) { - JavaScriptUtils.writeJavaScript(response, Wicket.Event.add( + getTarget() + , \ + - getEvent() + \, function(event) { + getJavaScript() + ;});); + JavaScriptUtils.writeJavaScript(response, getCompleteJavaScript()); + } + + /** +* @return The JavaScript that registers the event handler. +*/ + public CharSequence getCompleteJavaScript() + { + StringBuilder result = new StringBuilder(); + result.append(Wicket.Event.add() + .append(getTarget()) + .append(, \) + .append(getEvent()) + .append(\, function(event) { ) + .append(getJavaScript()) + .append(;});); + return result; } @Override
git commit: WICKET-5234 OnEventHeaderItem can't be applied via AJAX
Updated Branches: refs/heads/wicket-6.x 79362dc21 - 05e08a2d3 WICKET-5234 OnEventHeaderItem can't be applied via AJAX Project: http://git-wip-us.apache.org/repos/asf/wicket/repo Commit: http://git-wip-us.apache.org/repos/asf/wicket/commit/05e08a2d Tree: http://git-wip-us.apache.org/repos/asf/wicket/tree/05e08a2d Diff: http://git-wip-us.apache.org/repos/asf/wicket/diff/05e08a2d Branch: refs/heads/wicket-6.x Commit: 05e08a2d33c203465377bfc4be163a604a96cc43 Parents: 79362dc Author: Martin Tzvetanov Grigorov mgrigo...@apache.org Authored: Mon Jun 24 14:47:17 2013 +0300 Committer: Martin Tzvetanov Grigorov mgrigo...@apache.org Committed: Mon Jun 24 14:49:22 2013 +0300 -- .../apache/wicket/ajax/AbstractAjaxResponse.java | 2 +- .../wicket/markup/head/OnEventHeaderItem.java| 19 +-- 2 files changed, 18 insertions(+), 3 deletions(-) -- http://git-wip-us.apache.org/repos/asf/wicket/blob/05e08a2d/wicket-core/src/main/java/org/apache/wicket/ajax/AbstractAjaxResponse.java -- diff --git a/wicket-core/src/main/java/org/apache/wicket/ajax/AbstractAjaxResponse.java b/wicket-core/src/main/java/org/apache/wicket/ajax/AbstractAjaxResponse.java index b660edc..b7c51de 100644 --- a/wicket-core/src/main/java/org/apache/wicket/ajax/AbstractAjaxResponse.java +++ b/wicket-core/src/main/java/org/apache/wicket/ajax/AbstractAjaxResponse.java @@ -539,7 +539,7 @@ public abstract class AbstractAjaxResponse { if (!wasItemRendered(item)) { - AbstractAjaxResponse.this.appendJavaScript(((OnEventHeaderItem) item).getJavaScript()); + AbstractAjaxResponse.this.appendJavaScript(((OnEventHeaderItem) item).getCompleteJavaScript()); markItemRendered(item); } } http://git-wip-us.apache.org/repos/asf/wicket/blob/05e08a2d/wicket-core/src/main/java/org/apache/wicket/markup/head/OnEventHeaderItem.java -- diff --git a/wicket-core/src/main/java/org/apache/wicket/markup/head/OnEventHeaderItem.java b/wicket-core/src/main/java/org/apache/wicket/markup/head/OnEventHeaderItem.java index fbe098c..16e46a1 100644 --- a/wicket-core/src/main/java/org/apache/wicket/markup/head/OnEventHeaderItem.java +++ b/wicket-core/src/main/java/org/apache/wicket/markup/head/OnEventHeaderItem.java @@ -94,8 +94,23 @@ public class OnEventHeaderItem extends HeaderItem @Override public void render(Response response) { - JavaScriptUtils.writeJavaScript(response, Wicket.Event.add( + getTarget() + , \ + - getEvent() + \, function(event) { + getJavaScript() + ;});); + JavaScriptUtils.writeJavaScript(response, getCompleteJavaScript()); + } + + /** +* @return The JavaScript that registers the event handler. +*/ + public CharSequence getCompleteJavaScript() + { + StringBuilder result = new StringBuilder(); + result.append(Wicket.Event.add() + .append(getTarget()) + .append(, \) + .append(getEvent()) + .append(\, function(event) { ) + .append(getJavaScript()) + .append(;});); + return result; } @Override
[jira] [Resolved] (WICKET-5234) OnEventHeaderItem can't be applied via AJAX
[ https://issues.apache.org/jira/browse/WICKET-5234?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Martin Grigorov resolved WICKET-5234. - Resolution: Fixed OnEventHeaderItem can't be applied via AJAX --- Key: WICKET-5234 URL: https://issues.apache.org/jira/browse/WICKET-5234 Project: Wicket Issue Type: Bug Reporter: Andrea Del Bene Assignee: Martin Grigorov Fix For: 6.9.0, 7.0.0, 1.5.11 Attachments: EventScript.patch, OnEventAjax.zip, WICKET-5234.patch OnEventHeaderItem doesn't have effect if it is applied to a component refreshed via AJAX. In short, OnEventHeaderItem is applied before the component is refreshed via AJAX, hence the releated event handler is removed from the target component. We could modify JavaScript function Wicket.Ajax.Call.loadedCallback in order to apply header contributors after the component has been refreshed (see patch). -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Created] (WICKET-5248) OnEventHeaderItem is still broken in 6.9.0
Martin Grigorov created WICKET-5248: --- Summary: OnEventHeaderItem is still broken in 6.9.0 Key: WICKET-5248 URL: https://issues.apache.org/jira/browse/WICKET-5248 Project: Wicket Issue Type: Sub-task Components: wicket Affects Versions: 6.9.0 Reporter: Martin Grigorov Assignee: Martin Grigorov WICKET-5234 didn't fix properly the problem described in it. It used the JavaScript that handles the event instead of registering the event. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (WICKET-5248) OnEventHeaderItem is still broken in 6.9.0
[ https://issues.apache.org/jira/browse/WICKET-5248?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Martin Grigorov updated WICKET-5248: Fix Version/s: (was: 6.9.0) (was: 1.5.11) 6.10.0 OnEventHeaderItem is still broken in 6.9.0 -- Key: WICKET-5248 URL: https://issues.apache.org/jira/browse/WICKET-5248 Project: Wicket Issue Type: Sub-task Components: wicket Affects Versions: 6.9.0 Reporter: Martin Grigorov Assignee: Martin Grigorov Fix For: 7.0.0, 6.10.0 WICKET-5234 didn't fix properly the problem described in it. It used the JavaScript that handles the event instead of registering the event. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (WICKET-5248) OnEventHeaderItem is still broken in 6.9.0
[ https://issues.apache.org/jira/browse/WICKET-5248?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Martin Grigorov resolved WICKET-5248. - Resolution: Fixed A workaround that can be used until 6.10 is released is to use an extension of OnEventHeaderItem: class MyOnEventHeaderItem extends OnEventHeaderItem { @Override public CharSequence getJavaScript() { StringBuilder result = new StringBuilder(); result.append(Wicket.Event.add() .append(getTarget()) .append(, \) .append(getEvent()) .append(\, function(event) { ) .append(javaScript) .append(;});); return result; } } response.render(new MyOnEventHeaderItem(...)); OnEventHeaderItem is still broken in 6.9.0 -- Key: WICKET-5248 URL: https://issues.apache.org/jira/browse/WICKET-5248 Project: Wicket Issue Type: Sub-task Components: wicket Affects Versions: 6.9.0 Reporter: Martin Grigorov Assignee: Martin Grigorov Fix For: 7.0.0, 6.10.0 WICKET-5234 didn't fix properly the problem described in it. It used the JavaScript that handles the event instead of registering the event. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Created] (WICKET-5249) OnChangeAjaxBehavior doesn't work with cut/paste done with mouse
Oddgeir Bell created WICKET-5249: Summary: OnChangeAjaxBehavior doesn't work with cut/paste done with mouse Key: WICKET-5249 URL: https://issues.apache.org/jira/browse/WICKET-5249 Project: Wicket Issue Type: Bug Components: wicket Affects Versions: 6.8.0 Environment: Windows 7, IE 10. Reporter: Oddgeir Bell Priority: Minor Attachments: Quickstart.zip Add OnChangeAjaxBehavior to a text-field. In chrome/firefox, we can cut and paste using just the mouse (right-click) and it fires an ajax-call each time. In IE, i doesn't fire except when we use keyboard. Ctrl+c/Ctrl+v works, but mouse right-click and cut/paste doesn't fire an ajax event. This is extra noticable in our case, since we had to remove the onchange-event from OnChangeAjaxBehavior. (If textfield had focus, and user clicked an ajax-button, the onchange-event fired and stopped the ajax-button-click from firing. Most likely because we have implemented a veil on ajax-calls, so the user can't click anything on the page while the ajax-event is running.) Workaround was to add the events cut and paste: in updateAjaxAttributes: attributes.setEventNames(inputchange paste cut); This WILL create issues if you don't throttle the ajax (we have 200 milliseconds throttling). Without throttling, it fires twice (might or might not be a problem). A better way would be to make the inputchange-event work properly in IE, but I have no idea why it doesn't work -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (WICKET-5249) OnChangeAjaxBehavior doesn't work with cut/paste done with mouse
[ https://issues.apache.org/jira/browse/WICKET-5249?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Oddgeir Bell updated WICKET-5249: - Attachment: Quickstart.zip quickstart demonstrating the problem (if you use IE) OnChangeAjaxBehavior doesn't work with cut/paste done with mouse Key: WICKET-5249 URL: https://issues.apache.org/jira/browse/WICKET-5249 Project: Wicket Issue Type: Bug Components: wicket Affects Versions: 6.8.0 Environment: Windows 7, IE 10. Reporter: Oddgeir Bell Priority: Minor Labels: OnChangeAjaxBehavior, ajax, jquery, wicket Attachments: Quickstart.zip Add OnChangeAjaxBehavior to a text-field. In chrome/firefox, we can cut and paste using just the mouse (right-click) and it fires an ajax-call each time. In IE, i doesn't fire except when we use keyboard. Ctrl+c/Ctrl+v works, but mouse right-click and cut/paste doesn't fire an ajax event. This is extra noticable in our case, since we had to remove the onchange-event from OnChangeAjaxBehavior. (If textfield had focus, and user clicked an ajax-button, the onchange-event fired and stopped the ajax-button-click from firing. Most likely because we have implemented a veil on ajax-calls, so the user can't click anything on the page while the ajax-event is running.) Workaround was to add the events cut and paste: in updateAjaxAttributes: attributes.setEventNames(inputchange paste cut); This WILL create issues if you don't throttle the ajax (we have 200 milliseconds throttling). Without throttling, it fires twice (might or might not be a problem). A better way would be to make the inputchange-event work properly in IE, but I have no idea why it doesn't work -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (WICKET-5249) OnChangeAjaxBehavior doesn't work with cut/paste done with mouse
[ https://issues.apache.org/jira/browse/WICKET-5249?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Martin Grigorov resolved WICKET-5249. - Resolution: Fixed Fix Version/s: 6.9.0 Assignee: Martin Grigorov This is fixed last week with https://git-wip-us.apache.org/repos/asf/wicket/repo?p=wicket.git;a=commitdiff;h=2f0cd33240c649073c706a1c39c82f5dced86d7d Please try with latest snapshot from 6.x OnChangeAjaxBehavior doesn't work with cut/paste done with mouse Key: WICKET-5249 URL: https://issues.apache.org/jira/browse/WICKET-5249 Project: Wicket Issue Type: Bug Components: wicket Affects Versions: 6.8.0 Environment: Windows 7, IE 10. Reporter: Oddgeir Bell Assignee: Martin Grigorov Priority: Minor Labels: OnChangeAjaxBehavior, ajax, jquery, wicket Fix For: 6.9.0 Attachments: Quickstart.zip Add OnChangeAjaxBehavior to a text-field. In chrome/firefox, we can cut and paste using just the mouse (right-click) and it fires an ajax-call each time. In IE, i doesn't fire except when we use keyboard. Ctrl+c/Ctrl+v works, but mouse right-click and cut/paste doesn't fire an ajax event. This is extra noticable in our case, since we had to remove the onchange-event from OnChangeAjaxBehavior. (If textfield had focus, and user clicked an ajax-button, the onchange-event fired and stopped the ajax-button-click from firing. Most likely because we have implemented a veil on ajax-calls, so the user can't click anything on the page while the ajax-event is running.) Workaround was to add the events cut and paste: in updateAjaxAttributes: attributes.setEventNames(inputchange paste cut); This WILL create issues if you don't throttle the ajax (we have 200 milliseconds throttling). Without throttling, it fires twice (might or might not be a problem). A better way would be to make the inputchange-event work properly in IE, but I have no idea why it doesn't work -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira
svn commit: r1496145 - in /wicket/common/site/trunk: _posts/ _site/ _site/2009/07/30/ _site/2010/08/11/ _site/2010/09/17/ _site/2011/01/22/ _site/2011/02/25/ _site/2011/04/02/ _site/2011/05/11/ _site/
Author: dashorst Date: Mon Jun 24 18:14:45 2013 New Revision: 1496145 URL: http://svn.apache.org/r1496145 Log: Fixed confluence links for the most part Modified: wicket/common/site/trunk/_posts/2009-07-30-wicket-1.3.7-released.md wicket/common/site/trunk/_posts/2010-08-11-wicket-1.5-M1-released.md wicket/common/site/trunk/_posts/2010-09-17-wicket.1.5-M2.1-released.md wicket/common/site/trunk/_posts/2011-01-22-wicket-1.5-RC1-released.md wicket/common/site/trunk/_posts/2011-02-25-wicket-1.5-rc2-released.md wicket/common/site/trunk/_posts/2011-04-02-wicket-1.5-RC3-released.md wicket/common/site/trunk/_posts/2011-05-11-wicket-1.5-RC4.2-released.md wicket/common/site/trunk/_posts/2011-06-25-wicket-1.5-RC5.1-released.md wicket/common/site/trunk/_posts/2011-08-28-1.5-RC7-released.md wicket/common/site/trunk/_posts/2011-09-07-wicket-1.5-released.md wicket/common/site/trunk/_posts/2012-03-26-wicket-6.0.0-beta1-released.md wicket/common/site/trunk/_posts/2012-05-29-wicket-6.0.0-beta2-released.md wicket/common/site/trunk/_posts/2012-07-16-wicket-6.0.0-beta3-released.md wicket/common/site/trunk/_posts/2012-11-16-wicket-6.3.0-released.md wicket/common/site/trunk/_site/2009/07/30/wicket-1.3.7-released.html wicket/common/site/trunk/_site/2010/08/11/wicket-1.5-M1-released.html wicket/common/site/trunk/_site/2010/09/17/wicket.1.5-M2.1-released.html wicket/common/site/trunk/_site/2011/01/22/wicket-1.5-RC1-released.html wicket/common/site/trunk/_site/2011/02/25/wicket-1.5-rc2-released.html wicket/common/site/trunk/_site/2011/04/02/wicket-1.5-RC3-released.html wicket/common/site/trunk/_site/2011/05/11/wicket-1.5-RC4.2-released.html wicket/common/site/trunk/_site/2011/06/25/wicket-1.5-RC5.1-released.html wicket/common/site/trunk/_site/2011/08/28/1.5-RC7-released.html wicket/common/site/trunk/_site/2011/09/07/wicket-1.5-released.html wicket/common/site/trunk/_site/2012/03/26/wicket-6.0.0-beta1-released.html wicket/common/site/trunk/_site/2012/05/29/wicket-6.0.0-beta2-released.html wicket/common/site/trunk/_site/2012/07/16/wicket-6.0.0-beta3-released.html wicket/common/site/trunk/_site/2012/11/16/wicket-6.3.0-released.html wicket/common/site/trunk/_site/atom.xml wicket/common/site/trunk/_site/help/index.html wicket/common/site/trunk/_site/learn/examples/dropdownchoice.html wicket/common/site/trunk/_site/meet/blogs.html wicket/common/site/trunk/_site/start/download.html wicket/common/site/trunk/help/index.md wicket/common/site/trunk/learn/examples/dropdownchoice.md wicket/common/site/trunk/meet/blogs.md wicket/common/site/trunk/start/download.md Modified: wicket/common/site/trunk/_posts/2009-07-30-wicket-1.3.7-released.md URL: http://svn.apache.org/viewvc/wicket/common/site/trunk/_posts/2009-07-30-wicket-1.3.7-released.md?rev=1496145r1=1496144r2=1496145view=diff == --- wicket/common/site/trunk/_posts/2009-07-30-wicket-1.3.7-released.md (original) +++ wicket/common/site/trunk/_posts/2009-07-30-wicket-1.3.7-released.md Mon Jun 24 18:14:45 2013 @@ -45,8 +45,7 @@ will be supporting 1.4.x and 1.5.x. If you are coming from Wicket 1.2, you really want to read our migration guide, found on the wiki: -http://cwiki.apache.org/WICKET/migrate-13.html - +https://cwiki.apache.org/confluence/display/WICKET/Migrating+to+Wicket+1.3 ### Downloading the release Modified: wicket/common/site/trunk/_posts/2010-08-11-wicket-1.5-M1-released.md URL: http://svn.apache.org/viewvc/wicket/common/site/trunk/_posts/2010-08-11-wicket-1.5-M1-released.md?rev=1496145r1=1496144r2=1496145view=diff == --- wicket/common/site/trunk/_posts/2010-08-11-wicket-1.5-M1-released.md (original) +++ wicket/common/site/trunk/_posts/2010-08-11-wicket-1.5-M1-released.md Mon Jun 24 18:14:45 2013 @@ -8,7 +8,7 @@ provide our users with a more powerful a This release is NOT production-ready, it is more of a technology demo that should facilitate user-feedback we can fold into the next milestone. -* [Migration notes](https://cwiki.apache.org/WICKET/migration-to-wicket-15.html) +* [Migration notes](https://cwiki.apache.org/confluence/display/WICKET/Migration+to+Wicket+1.5) * [Subversion tag](http://svn.apache.org/repos/asf/wicket/releases/wicket-1.5-M1/) * To use in Maven: {% highlight xml %} Modified: wicket/common/site/trunk/_posts/2010-09-17-wicket.1.5-M2.1-released.md URL: http://svn.apache.org/viewvc/wicket/common/site/trunk/_posts/2010-09-17-wicket.1.5-M2.1-released.md?rev=1496145r1=1496144r2=1496145view=diff == --- wicket/common/site/trunk/_posts/2010-09-17-wicket.1.5-M2.1-released.md (original) +++ wicket/common/site/trunk/_posts/2010-09-17-wicket.1.5-M2.1-released.md Mon