[CONF] Apache Wicket Migration to Wicket 7.0

2014-08-20 Thread Sven Meier (Confluence)














  


Sven Meier edited the page:
 


Migration to Wicket 7.0   




 Comment: IPackageResourceGuard#accept() 


...
This method was needed as a workaround for some old version of Firefox that had an issue with rendering images.The flush of the headers caused problems with proper buffering of the response, e.g. when the response needs to be compressed.
 org.apache.wicket.markup.html.IPackageResourceGuard#accept(String) now without scope parameter 
 The scope parameter was no longer used already, so it is now removed from the method signature. 
All IXyzSettings are removed WICKET-5410 
...






 View Online   Like   View Changes  
 Stop watching space   Manage Notifications  


 


 


  This message was sent by Atlassian Confluence 5.0.3, Team Collaboration Software  






[CONF] Apache Wicket Migration to Wicket 7.0

2014-08-13 Thread Martin Grigorov (Confluence)














  


Martin Grigorov edited the page:
 


Migration to Wicket 7.0   






...
All IXyzSettings are removed WICKET-5410 
 Keywords:IApplicationSettings,IDebugSettings,IExceptionSettings,IFrameworkSettings,IJavaScriptLibrarySettings,IMarkupSettings,IPageSettings,IRequestCycleSettings,IRequestLoggerSettings,IResourceSettings,ISecuritySettings,IStoreSettings,IWebSocketSettings 
All interfaces related to configuration settings have been removed because the user application usually call setter methods like application.getXyzSettings().setAbc(abc) and don't provide their own implementations of these interfaces. Additionally by using interfaces it is not possible to add new settings in a minor release of Wicket because it is considered as an API break.
...






 View Online   Like   View Changes  
 Stop watching space   Manage Notifications  


 


 


  This message was sent by Atlassian Confluence 5.0.3, Team Collaboration Software  






[CONF] Apache Wicket Migration to Wicket 7.0

2014-08-12 Thread Martin Grigorov (Confluence)














  


Martin Grigorov edited the page:
 


Migration to Wicket 7.0   






...
If the currently selected item is the first one and the user uses KEY_UP then the selection will move to the last option. Similarly for KEY_DOWN - if the selected option is the last one then using DOWN key will move the selection to the first one.
 Form#findSubmittingComponent() doesn't throw exceptions for invisible/disabled submitters WICKET-5672 
 The check whether the form submitter is invisible or disabled is moved to Form#onFormSubmitted(). Now the applications can change the visible/enabled state of the submitter in #onSubmit() implementations and later use Form#findSubmittingComponent() in the application code. It is now responsibility of the application to check whether the submitting component is visible/enabled or not and react on this appropriately. 
Dependency updates
All libraries on which Wicket modules depend are updated to their latest stable versions. The most notable ones are:
...






 View Online   Like   View Changes  
 Stop watching space   Manage Notifications  


 


 


  This message was sent by Atlassian Confluence 5.0.3, Team Collaboration Software  






[CONF] Apache Wicket Migration to Wicket 7.0

2014-08-08 Thread Martin Grigorov (Confluence)














  


Martin Grigorov edited the page:
 


Migration to Wicket 7.0   






...
For these components markup is changed from table to nested divs. Wizard's previous default CSS styling is no longer supported, Palette offers an optional styling via org.apache.wicket.extensions.markup.html.form.palette.theme.DefaultTheme.
 Use i18n property files for CSS class names WICKET-5257 
 Until Wicket 7.0.0 some components have been setting hardcoded CSS class names (e.g. FeedbackPanel), other were using a overridable Behavior to set the needed class names (e.g. OrderByLink's ICssProvider). 
 Since Wicket 7.0.0 this is simplified and now the applications can provide their own CSS class names when needed by overriding some keys in theiri18n properties files (e.g. in MyApplication.properties). 
 Here is a list of the default keys and their values: 
  FeedbackMessage.CSS.undefined=feedbackPanelUNDEFINED  FeedbackMessage.CSS.debug=feedbackPanelDEBUG  FeedbackMessage.CSS.info=feedbackPanelINFO  FeedbackMessage.CSS.success=feedbackPanelSUCCESS  FeedbackMessage.CSS.warning=feedbackPanelWARNING  FeedbackMessage.CSS.error=feedbackPanelERROR  FeedbackMessage.CSS.fatal=feedbackPanelFATAL 
 FormComponentLabel.CSS.required=required  FormComponentLabel.CSS.invalid=error  FormComponentLabel.CSS.disabled=disabled 
 OddEvenItem.CSS.odd=odd  OddEvenItem.CSS.even=even 
 OddEvenListItem.CSS.odd=odd  OddEvenListItem.CSS.even=even 
 AutoLabel.CSS.required=required  AutoLabel.CSS.invalid=error  AutoLabel.CSS.disabled=disabled 
  
 Behavior changes
org.apache.wicket.request.Url#getQueryString WICKET-4664 
...






 View Online   Like   View Changes  
 Stop watching space   Manage Notifications  


 


 


  This message was sent by Atlassian Confluence 5.0.3, Team Collaboration Software  






[CONF] Apache Wicket Migration to Wicket 7.0

2014-08-08 Thread Martin Grigorov (Confluence)














  


Martin Grigorov edited the page:
 


Migration to Wicket 7.0   






...
AutoLabel.CSS.required=requiredAutoLabel.CSS.invalid=errorAutoLabel.CSS.disabled=disabled
 OrderByLink.CSS.ascending=wicket_orderUp  OrderByLink.CSS.descending=wicket_orderDown  OrderByLink.CSS.none=wicket_orderNone 
 TabbedPanel.CSS.container=tab-row  TabbedPanel.CSS.selected=selected  TabbedPanel.CSS.last=last 
 Node.CSS.expanded=tree-junction-expanded   Node.CSS.collapsed=tree-junction-collapsed  Node.CSS.other=tree-junction 
 Folder.CSS.other=tree-folder-other  Folder.CSS.closed=tree-folder-closed  Folder.CSS.open=tree-folder-open  Folder.CSS.selected=selected 

Behavior changes
org.apache.wicket.request.Url#getQueryString WICKET-4664 
...






 View Online   Like   View Changes  
 Stop watching space   Manage Notifications  


 


 


  This message was sent by Atlassian Confluence 5.0.3, Team Collaboration Software  






[CONF] Apache Wicket Migration to Wicket 7.0

2014-07-22 Thread Martin Grigorov (Confluence)














  


Martin Grigorov edited the page:
 


Migration to Wicket 7.0   






...
isLinkEnabled() has been removed as well. Use isEnabledInHierarchy() as replacement.
 RadioChoice and CheckBoxMultipleChoice no longer append br/ as suffixWICKET-5640 
 org.apache.wicket.markup.html.form.RadioChoice andorg.apache.wicket.markup.html.form.CheckBoxMultipleChoice use empty prefix and suffix by default from now on. 

It is recommended to use CSS for styling them.


To revert the old behavior for easier migration the application could useorg.apache.wicket.markup.html.form.RadioChoiceWicket6Listener andorg.apache.wicket.markup.html.form.CheckBoxMultipleChoiceWicket6Listener.


These component instantiation listeners are marked as deprecated and will be removed with Wicket 8.0.

Button no longer silently ignores exceptions WICKET-5235 
...






 View Online   Like   View Changes  
 Stop watching space   Manage Notifications  


 


 


  This message was sent by Atlassian Confluence 5.0.3, Team Collaboration Software  






[CONF] Apache Wicket Migration to Wicket 7.0

2014-07-16 Thread Sven Meier (Confluence)














  


Sven Meier bearbeitete die Seite:
 


Migration to Wicket 7.0   




 Kommentar: WICKET-5349 


...
RadioGroup and RadioChoice use their generic type for the argument of #onSelectionChanged() now.
...
 Palette and Wizard use divs instead of table markup WICKET-5349 
 Wizard's For these components markup is changed from table to nested divs. The Wizard's previous default CSS styling is no longer supported, Palette offers an optional styling via org.apache.wicket.extensions.markup.html.form.palette.theme.DefaultTheme. 
Behavior changes
org.apache.wicket.request.Url#getQueryString WICKET-4664 
...






 Online anzeigen   Gefllt mir   nderungen anzeigen  
 berwachung des Bereichs beenden   Benachrichtigungen verwalten  


 


 


  Diese Nachricht wurde von Atlassian Confluence 5.0.3, der Kollaborationssoftware fr Teams, gesendet  






[CONF] Apache Wicket Migration to Wicket 7.0

2014-07-15 Thread Sven Meier (Confluence)














  


Sven Meier bearbeitete die Seite:
 


Migration to Wicket 7.0   




 Kommentar: Wizard styling 


...
RadioGroup and RadioChoice use their generic type for the argument of #onSelectionChanged() now.
 Wizard no longer supports a default style via CSS WICKET-5349 
 Wizard's markup is changed from table to nested divs. The previous default styling is no longer supported. 
Behavior changes
org.apache.wicket.request.Url#getQueryString WICKET-4664 
...






 Online anzeigen   Gefllt mir   nderungen anzeigen  
 berwachung des Bereichs beenden   Benachrichtigungen verwalten  


 


 


  Diese Nachricht wurde von Atlassian Confluence 5.0.3, der Kollaborationssoftware fr Teams, gesendet  






[CONF] Apache Wicket Dealing with cookies

2014-07-08 Thread Stefan Simik (Confluence)
 









 View Online   Like   View Changes  
 Stop watching space   Manage Notifications  


 


 


  This message was sent by Atlassian Confluence 5.0.3, Team Collaboration Software  






[CONF] Apache Wicket Migration to Wicket 6.0

2014-04-17 Thread Sven Meier (Confluence)
, MapString,Object)
org.apache.wicket.util.resource.IResourceStreamWriter#write() now works again with java.io.OutputStream as in Wicket 1.4.x. WICKET-4601 
WicketTester.startPanel - WicketTester.startComponentInPage
WebSession#authenticate() was moved to AuthenticatedWebSession and now abstract
 ChoiceFilteredPropertyColumn/ChoiceFilter use DropDownChoice#setNullValid(true) now 







 Online anzeigen   Gefllt mir   nderungen anzeigen  
 berwachung des Bereichs beenden   Benachrichtigungen verwalten  


 


 


  Diese Nachricht wurde von Atlassian Confluence 5.0.3, der Kollaborationssoftware fr Teams, gesendet  






[CONF] Apache Wicket Migration to Wicket 7.0

2014-04-05 Thread Sven Meier (Confluence)














  


Sven Meier bearbeitete die Seite:
 


Migration to Wicket 7.0   




 Kommentar: #onSelectionChanged() 


...
The property column from wicket-extensions has some methods renamed to better reflect their meaning.
 #onSelectionChanged() use generic type as argument 
 RadioGroup and RadioChoice use their generic type for the argument of #onSelectionChanged() now. 
Behavior changes
org.apache.wicket.request.Url#getQueryString WICKET-4664 
...






 Online anzeigen   Gefllt mir   nderungen anzeigen  
 berwachung des Bereichs beenden   Benachrichtigungen verwalten  


 


 


  Diese Nachricht wurde von Atlassian Confluence 5.0.3, der Kollaborationssoftware fr Teams, gesendet  






[CONF] Apache Wicket Migration to Wicket 7.0

2014-03-19 Thread Martin Grigorov (Confluence)














  


Martin Grigorov edited the page:
 


Migration to Wicket 7.0   




 Comment: Add a note about the missing AbstractLink#isLinkEnabled() 


...
Hence setAfterDisabledLink(String) and setBeforeDisabledLink(String) have been removed from AbstractLink.
 isLinkEnabled() has been removed as well. Use isEnabledInHierarchy() as replacement. 
Button no longer silently ignores exceptions WICKET-5235 
...






 View Online   Like   View Changes  
 Stop watching space   Manage Notifications  


 


 


  This message was sent by Atlassian Confluence 5.0.3, Team Collaboration Software  






[CONF] Apache Wicket Migration to Wicket 7.0

2014-01-31 Thread Martijn Dashorst (Confluence)














  


Martijn Dashorst edited the page:
 


Migration to Wicket 7.0   






...
The href and disabled attributes are still added/removed by AbstractLink as required. But no further mangling of markup is performed. org.apache.wicket.markup.html.link.DisabledLinkBehavior can be used to restore the pre-Wicket-7.x representation of disabled links with emspan/span/em (note that em and span swap their position though). If the old behavior is need it can be easily re-applied by using org.apache.wicket.markup.html.link.DisabledLinkBehavior.LinkInstantiationListener.
 Hence setAfterDisabledLink(String) and setBeforeDisabledLink(String) have been removed from AbstractLink. 
Button no longer silently ignores exceptions WICKET-5235 
...






 View Online   Like   View Changes  
 Stop watching space   Manage Notifications  


 


 


  This message was sent by Atlassian Confluence 5.0.3, Team Collaboration Software  






[CONF] Apache Wicket Migration to Wicket 7.0

2014-01-28 Thread Martin Grigorov (Confluence)














  


Martin Grigorov edited the page:
 


Migration to Wicket 7.0   






...
If you have used MountMapper for your custom mappers in Wicket 1.5/6.x then now your custom mapper has to extend from AbstractBookmarkableMapper.

 AuthenticatedWebApplication#onUnauthorizedPageWICKET-5490 
 The type of the parameter passed toAuthenticatedWebApplication#onUnauthorizedPage() has changed from org.apache.wicket.Page to org.apache.wicket.Component because this is an instance of a page that is partially constructed. Only the constructor of org.apache.wicket.Component is fully executed. All super constructors are not executed and the instance is not really a Page. 
Behavior changes
org.apache.wicket.request.Url#getQueryString WICKET-4664 
...






 View Online   Like   View Changes  
 Stop watching space   Manage Notifications  


 


 


  This message was sent by Atlassian Confluence 5.0.3, Team Collaboration Software  






[CONF] Apache Wicket Migration to Wicket 7.0

2014-01-28 Thread Martijn Dashorst (Confluence)














  


Martijn Dashorst edited the page:
 


Migration to Wicket 7.0   






...
The type of the parameter passed toAuthenticatedWebApplication#onUnauthorizedPage() has changed from org.apache.wicket.Page to org.apache.wicket.Component because this is an instance of a page that is partially constructed. Only the constructor of org.apache.wicket.Component is fully executed. All super constructors are not executed and the instance is not really a Page.
 PropertyColumn#createLabelModel has been renamed to getDataModel 
 The property column from wicket-extensions has some methods renamed to better reflect their meaning. 
Behavior changes
org.apache.wicket.request.Url#getQueryString WICKET-4664 
...






 View Online   Like   View Changes  
 Stop watching space   Manage Notifications  


 


 


  This message was sent by Atlassian Confluence 5.0.3, Team Collaboration Software  






[CONF] Apache Wicket Wicket 7.0 Roadmap

2014-01-20 Thread Martin Grigorov (Confluence)
);
 



...

 read-only  Dropped  
make it possible to differentiate between named indexed path parameters and query string ones. See WICKET-4594, http://markmail.org/thread/cc7yjwshqugj4wic, WICKET-4441 

...
otherwise referencing the component as needed in throttle settings is annoying



 Code Block




 

queryField.add(new AjaxFormComponentUpdatingBehavior(onkeydown) {
	protected void updateAjaxAttributes(AjaxRequestAttributes attributes) {
		attributes.setThrottlingSettings(new ThrottlingSettings(queryField.getMarkupId(), Duration.seconds(1)));
^
 



...
 _javascript_ResourceReference#getDependencies() should return an appendable List 
so we can do



 Code Block




 

class MyReference extends _javascript_Reference {
  getDependencies() { List? list=super.getDependencies(); list.add(...); return list; }
}
 



...
Assignee: ivaynberg Status: Not startedDropped  Jira: WICKET-5255 
cdi 1.1 upgrade
wicket-cdi should use cdi 1.1 which should remove dependency onto seam-conversation module.
Assignee: ivaynbergpapegaaji  Status: Done  Jira: WICKET-4951 
 Upgrade dependencies to their latest stable version 
...

getApplication().getCssSettings().setSortOrderDownClass(sort-order-down);

Assignee: mgrigorov  Status: not started Done  Jira: WICKET-5257 
 Remove deprecated in Wicket 6.x classes and methods 
...






 View Online   Like   View Changes  
 Stop watching space   Manage Notifications  


 


 


  This message was sent by Atlassian Confluence 5.0.3, Team Collaboration Software  






[CONF] Apache Wicket Migration to Wicket 7.0

2014-01-20 Thread Martin Grigorov (Confluence)














  


Martin Grigorov edited the page:
 


Migration to Wicket 7.0   






...
If an exception is thrown during processing in BaseWicketTester or the request was not processed by Wicket, you have to use #getLastRequest() to access this request (was #getRequest() previously).  WICKET-5389.
 WicketTester assert feedback message methods work with java.io.SerializableWICKET-5128 
 org.apache.wicket.util.tester.WicketTester#assertErrorMessages andorg.apache.wicket.util.tester.WicketTester#assertInfoMessages now accept a list/varargs of java.io.Serializable as argument. 
 This makes these methods consistent withorg.apache.wicket.Component#error and other feedback message related methods. 
 org.apache.wicket.Component#setMetaData() value could be only a Serializable WICKET-5227 
...






 View Online   Like   View Changes  
 Stop watching space   Manage Notifications  


 


 


  This message was sent by Atlassian Confluence 5.0.3, Team Collaboration Software  






[CONF] Apache Wicket Migrating to Wicket 1.4

2014-01-16 Thread Anonymous (Confluence)














  


 Anonyme a ajout un fichier  page
Migrating to Wicket 1.4
 


 






 abc.png  - 21 kB Fichier PNG 
 IMAGE GLIFFY 






 Afficher les pices jointes  
 Ne plus surveiller l'espace   Grer les notifications  


 


 


  Ce message a t envoy par le logiciel de collaboration d'quipe d'Atlassian Confluence 5.0.3  






[CONF] Apache Wicket Migrating to Wicket 1.4

2014-01-16 Thread Martin Grigorov (Confluence)














  


Martin Grigorov removed a file from the page
Migrating to Wicket 1.4
 


 






  

 abc.png  - 21 kB PNG File  
  


IMAGE GLIFFY







 
 Stop watching space   Manage Notifications  


 


 


  This message was sent by Atlassian Confluence 5.0.3, Team Collaboration Software  






[CONF] Apache Wicket Migrating to Wicket 1.4

2014-01-16 Thread Martin Grigorov (Confluence)














  


Martin Grigorov added a file to the page
Migrating to Wicket 1.4
 


 






 abc.png  - 21 kB PNG File 
 GLIFFY IMAGE 






 View Attachments  
 Stop watching space   Manage Notifications  


 


 


  This message was sent by Atlassian Confluence 5.0.3, Team Collaboration Software  






[CONF] Apache Wicket Migration to Wicket 7.0

2014-01-13 Thread Martin Grigorov (Confluence)














  


Martin Grigorov edited the page:
 


Migration to Wicket 7.0   






...
IPageLink has been removed because it was superseded by IPageProvider. Its last usage has been removed from InlineFrame
 org.apache.wicket.markup.html.form.EnumChoiceRenderer#postprocess() is removedWICKET-5470 
 WICKET-5470 shown thatorg.apache.wicket.markup.html.form.EnumChoiceRenderer#postprocess() is not really needed and the same canbe achieved by overriding #getDisplayValue() method and doing the processing after calling super.getDisplayValue(). 
 Additionally now the specialization of EnumChoiceRenderer can provide completely custom implementation of #getDisplayValue(). 
Using keyboard UP and DOWN keys will loop thru the AutoCompleter's options WICKET-5275 
...






 View Online   Like   View Changes  
 Stop watching space   Manage Notifications  


 


 


  This message was sent by Atlassian Confluence 5.0.3, Team Collaboration Software  






[CONF] Apache Wicket Migration to Wicket 7.0

2014-01-10 Thread Martin Grigorov (Confluence)














  


Martin Grigorov edited the page:
 


Migration to Wicket 7.0   






...
Any custom implementations of IChoiceRenderer interface now should extend from ChoiceRenderer class.
 remove org.apache.wicket.request.mapper.mount.MountMapperWICKET-4686 
 MountMapper and its related classes (IMountedRequestMapper, Mount,MountParameters,UnmountedMapperAdapter andUnmountedRequestHandlerAdapter) has been introduced with Wicket 1.5.0. 
 Its main task was to deal with the mounting of a delegate IRequestMapper at a given path. Unfortunately it has been used only for wrapping PackageMapper and at some point the most used mapper - MountedMapper, used to mount page class - has been improved to deal with mandatory and optional parameters. To fix WICKET-4686 (support mandatory and optional parameters in PackageMapper) we needed to extract the related logic to a place where it can be reused. We decided this place to be AbstractBookmarkableMapper - the parent class for all bookmarkable mappers. 
 If you have used MountMapper for your custom mappers in Wicket 1.5/6.x then now your custom mapper has to extend from AbstractBookmarkableMapper. 
  
Behavior changes
org.apache.wicket.request.Url#getQueryString WICKET-4664 
...






 View Online   Like   View Changes  
 Stop watching space   Manage Notifications  


 


 


  This message was sent by Atlassian Confluence 5.0.3, Team Collaboration Software  






[CONF] Apache Wicket Migration to Wicket 7.0

2014-01-08 Thread Martin Grigorov (Confluence)














  


Martin Grigorov edited the page:
 


Migration to Wicket 7.0   






...
AbstractAjaxTimerBehavior no longer updates its hosting component when stopped or restarted. Stopping and restarting is now possible on non-Ajax requests too.
...






 View Online   Like   View Changes  
 Stop watching space   Manage Notifications  


 


 


  This message was sent by Atlassian Confluence 5.0.3, Team Collaboration Software  






[CONF] Apache Wicket Migration to Wicket 7.0

2014-01-08 Thread Sven Meier (Confluence)














  


Sven Meier bearbeitete die Seite:
 


Migration to Wicket 7.0   




 Kommentar: Reverted from v. 60: stop() didn't update the hosting component 


...
AbstractAjaxTimerBehavior no longer updates its hosting component when stopped or restarted. Stopping and restarting is now possible on non-Ajax requests too.
...






 Online anzeigen   Gefllt mir   nderungen anzeigen  
 berwachung des Bereichs beenden   Benachrichtigungen verwalten  


 


 


  Diese Nachricht wurde von Atlassian Confluence 5.0.3, der Kollaborationssoftware fr Teams, gesendet  






[CONF] Apache Wicket Migration to Wicket 7.0

2013-12-20 Thread Martin Grigorov (Confluence)














  


Martin Grigorov edited the page:
 


Migration to Wicket 7.0   






...
To allow any pattern this method can return null or Pattern.compile(.* )
 remove org.apache.wicket.markup.html.form.IChoiceRendererinterfaceWICKET-663 
 With WICKET-663 we wanted to add a new method to the interface that will allow faster lookup of an object by its id. 
 It wasn't easy to add this new method because it would break the API. 
 Since the creation of WICKET-663 until now there was no big benefit of having the interface so we decided to drop it. 
 Any custom implementations of IChoiceRenderer interface now should extend from ChoiceRenderer class. 
Behavior changes
org.apache.wicket.request.Url#getQueryString WICKET-4664 
...






 View Online   Like   View Changes  
 Stop watching space   Manage Notifications  


 


 


  This message was sent by Atlassian Confluence 5.0.3, Team Collaboration Software  






[CONF] Apache Wicket Migration to Wicket 7.0

2013-12-17 Thread Martin Grigorov (Confluence)














  


Martin Grigorov edited the page:
 


Migration to Wicket 7.0   






...
To fix any compilation issues just remove the leading I from the class name, e.g. IMarkupSettings - MarkupSettings, and optimize the imports in your IDE.
 org.apache.wicket.request.resource.caching.version.IResourceVersion#getVersionPattern() is addedWICKET-5446 
 This method makes the API more flexible when extracting the version from the url. 
 The pattern is used to check whether a candidate String could be a version. 
 To allow any pattern this method can return null or Pattern.compile(.* ) 
Behavior changes
org.apache.wicket.request.Url#getQueryString WICKET-4664 
...






 View Online   Like   View Changes  
 Stop watching space   Manage Notifications  


 


 


  This message was sent by Atlassian Confluence 5.0.3, Team Collaboration Software  






[CONF] Apache Wicket Migration to Wicket 7.0

2013-12-16 Thread Martin Grigorov (Confluence)
);
 



...
InlineFrame uses IPageProvider WICKET-5347 
IPageLink has been scheduled for removal removed because it was superseded by IPageProvider. Its last usage has been removed from InlineFrame
...






 View Online   Like   View Changes  
 Stop watching space   Manage Notifications  


 


 


  This message was sent by Atlassian Confluence 5.0.3, Team Collaboration Software  






[CONF] Apache Wicket FAQs

2013-11-15 Thread Martin Grigorov (Confluence)







FAQs
Page edited by Martin Grigorov


 Changes (4)
 




...
h2. Which browsers have been tested with Wicket AJAX?  
To test it use the [AJAX examples|http://www.wicket-library.com/wicket-examples/ajax] and the [AJAX request header test|http://wicket.billen.dk/ajaxrequest]. examples|http://www.wicket-library.com/wicket-examples-6.0.x/ajax/]. 
* Google Chrome - latest two stable versions * Firefox - latest two stable versions * Safari 5.x and 6.x * Opera 12.x and 15.x 
* Internet Explorer 6 and 7 8+ 
* Firefox 1.5 * Firefox 2.0 * Safari 2.0.1 - 2.0.4 * Opera 8.54 (linux) * Opera 9 (linux) * Konqueror 3.5.2 (most of the examples works, but the [Todo list example|http://www.wicket-library.com/wicket-examples/ajax?wicket:bookmarkablePage=:wicket.examples.ajax.builtin.TodoList] makes the browser crash) 
 h2. Wicket.replaceOuterHtml gives weird result on Firefox 
...


Full Content

What, you want answers too?

This page addresses general FAQ's. More specific FAQ's can be found in the FAQ Category
Table of contents


Wicket architecture

What about performance and scalability?
Versioning
How does Wicket know when a new browser window is opened?
How do I provide the page map for bookmarkable pages?
What is the future of onAttach and onDetach methods?
How can I use wicket to develop webapps that target mobile devices?

Maven

How do I skip the tests when doing a Maven build?
Is Wicket available in the central Maven 2 repository?

Working with the Wicket API

Why are so many methods final?
Why no common init() method on pages?
How do I add custom error pages?
How can I have images/files uploaded to and downloaded from my wicket app?
What is the difference between setResponsePage(new MyWebPage()) and setResponsePage(MyWebPage.class)

The view layer, markup etc.

My markup element does not get rendered
How can I change the location of Markup files?
How can I render my templates to a String?
How to add #-anchor (opaque) to page url?

More on the view: AJAX

I get errors when I use Ajax in Opera Browser (before Version Beta 9 of Opera)
Which browsers have been tested with Wicket AJAX?
Wicket.replaceOuterHtml gives weird result on Firefox
How to repaint a (List/Grid/Data/Repeating)View via Ajax?

Wicket community

What do you look like?

Miscellaneous

What is the meaning of life, the universe and everything?

Deployment

My application says "DEVELOPMENT MODE", how do I switch to production?
How do I know in what mode (DEVELOPMENT/DEPLOYMENT) my application runs?




Wicket architecture


What about performance and scalability?

Wicket performance is actually quite good under stress. Remember though that in many real-world application your bottleneck will be in business or database layer.

Wicket benchmark can be found here: wicket-1.3.x-benchmark.

You should also search wicket-user mailing list for performance and scalability or simply use performance-scalability-tipsas your starting point.

Versioning

Wicket stores versions of pages to support the browser's back button.  Because this concept is difficult to understand, we'll present a simple use case that describes the problem and how versioning helps.

Suppose you have a paging ListView with links in the ListItems, and you've clicked through to display the third page of items.  On the third page, you click the link to view the details page for that item.  Now, the currently available state on the server is that you were on page 3 when you clicked the link.  Then you click the browser's back button twice (i.e. back to list page 3, then back to list page 2, but all in the browser).  While you're on page 2, the server state is that you're on page 3.  Without versioning, clicking on a ListItem link on page 2 would actually take you to the details page for an item on page 3.

(This was taken from an IRC discussion with Martijn.)

How does Wicket know when a new browser window is opened?

Wicket uses the _javascript_ window.name property to detect if a new window (or tab) was opened. This property is blank by default .

How do I provide the page map for bookmarkable pages?

You do this by providing it as part of the URL. How exactly this looks depends on the 'encoding' of the request. The common cases are (myPageMap is the page map):

	a normal request, where the page map name parameter is provided as a part of the bookmarkable page request parameter:


myapp?wicket:bookmarkablePage=myPageMap:somepackage.MyPage


	a request to a mounted URL, where the page map parameter is provided as a path encoded parameter:



[CONF] Apache Wicket Migration to Wicket 7.0

2013-11-13 Thread Martin Grigorov (Confluence)







Migration to Wicket 7.0
Page edited by Martin Grigorov


 Changes (1)
 




...
The flush of the headers caused problems with proper buffering of the response, e.g. when the response needs to be compressed.  
h5. All IXyzSettings are removed [WICKET-5410|https://issues.apache.org/jira/browse/WICKET-5410]  All interfaces related to configuration settings have been removed because the user application usually call setter methods like _application.getXyzSettings().setAbc(abc)_ and dont provide their own implementations of these interfaces. Additionally by using interfaces it is not possible to add new settings in a minor release of Wicket because it is considered as an API break.  
h3. Behavior changes  
...


Full Content

Migrating to Wicket 7.0



Environment

Wicket 7.0 requires at least Java 7
Wicket 7.0 requires Servlet 3.0

The HTTP response is not flushed automatically when the request is started in asynchronous mode. WICKET-5152


API changes


org/apache/wicket/core/util/io/SerializableChecker is replaced with org.apache.wicket.core.util.objects.checker.CheckingObjectOutputStream WICKET-4817
org/apache/wicket/markup/html/border/BoxBorder is removed with no replacement WICKET-4966.
org.apache.wicket.Component#renderHead(HtmlHeaderContainer) is renamed to Component#internalRenderHead(HtmlHeaderContainer) WICKET-4964
org.apache.wicket.request.resource.ResourceReference#getDependencies() now returns a mutable ListHeaderItem WICKET-5124
org.apache.wicket.model.StringResourceModel constructor accepts IModelString for its default value WICKET-4972
org.apache.wicket.extensions.validation.validator.+Xyz+Validator#decorate() now works with IValidationError WICKET-5174
org.apache.wicket.ajax.attributes.AjaxRequestAttributes#setAllowDefault is renamed to #setPreventDefault WICKET-5197
org.apache.wicket.ajax.attributes.AjaxRequestAttributes#eventPropagation is now BUBBLE by default WICKET-5198
org.apache.wicket.ajax.form.AjaxFormValidatingBehavior doesn't use static methods anymore WICKET-5196
org.apache.wicket.ajax.AjaxRequestTarget.IListener#updateAjaxAttributes() is introduced WICKET-5212
org.apache.wicket.ISessionListener#onUnbound(String) is added WICKET-5213
(Base)WicketTester uses org.junit.Assert instead of junit.framework.Assert
(Base)WicketTester can be reused after thrown exception
org.apache.wicket.Component#setMetaData() value could be only a Serializable WICKET-5227
org.apache.wicket.Application#getHeaderContributorListenerCollection() is renamed to #getHeaderContributorListeners()
org.apache.wicket.authorization.IAuthorizationStrategy#isResourceAuthorized(IResource, PageParameters) is introduced WICKET-5012
org.apache.wicket.Component#setResponsePage() now accepts org.apache.wicket.request.component.IRequestablePage instead of org.apache.wicket.Page
AutoCompleteTextField doesn't support useHideShowCoveredIEFix setting WICKET-5130
org.apache.wicket.markup.html.form.TextField#getInputType() returns String array WICKET-5286
AuthenticatedWebSession#authenticate is now protected instead of public. WICKET-5308
AbstractResource.ResourceResponse API became more fluent. WICKET-5330
org.apache.wicket.markup.head.IHeaderItemWrapper is merged to IWrappedHeaderItem. WICKET-5366
All 'QuirkXyz' properties has been removed from org.apache.wicket.protocol.http.ClientProperties WICKET-5370
org.apache.wicket.request.resource.AbstractResource#flushResponseAfterHeaders() is removed WICKET-5392
All IXyzSettings are removed WICKET-5410


Behavior changes


org.apache.wicket.request.Url#getQueryString WICKET-4664
org.apache.wicket.request.http.WebResponse encodes the value of the "filename" in Content-Disposition header WICKET-4934
org.apache.wicket.markup.html.form.FormComponentLabel outputs "required", "disabled" and "error" classes when its form component is either required, disabled or invalid. WICKET-5177
org.apache.wicket.markup.html.panel.FeedbackPanel Do not set CSS class on the li  span element for a feedback message WICKET-4831
AjaxEventBehavior doesn't prevent the default behavior of the _javascript_ event WICKET-5197
Ajax behaviors let _javascript_ events bubble by default WICKET-5198
PackageTextTemplate loads its content lazily WICKET-4579
AbstractLink no longer alters its markup to render itself as disabled WICKET-4904
Button no longer silently ignores exceptions WICKET-5235


Deprecated classes/methods/fields are removed WICKET-5201


AbstractDefaultAjaxBehavior's #getSuccessHandler(), #getFailureHandler(), #getChannel() and #getPrecondition() are removed.
The old Tree component in 

[CONF] Apache Wicket Migration to Wicket 7.0

2013-10-28 Thread Martin Grigorov (Confluence)







Migration to Wicket 7.0
Page edited by Martin Grigorov


 Changes (2)
 




...
The quirk properties were mostly related to IE6/7 and old versions of Firefox browsers.  
h5. org.apache.wicket.request.resource.AbstractResource#flushResponseAfterHeaders() is removed [WICKET-5392|https://issues.apache.org/jira/browse/WICKET-5392] 
 
This method was needed as a workaround for some old version of Firefox that had an issue with rendering images. The flush of the headers caused problems with proper buffering of the response, e.g. when the response needs to be compressed.  
h3. Behavior changes  
...


Full Content

Migrating to Wicket 7.0



Environment

Wicket 7.0 requires at least Java 7
Wicket 7.0 requires Servlet 3.0

The HTTP response is not flushed automatically when the request is started in asynchronous mode. WICKET-5152


API changes


org/apache/wicket/core/util/io/SerializableChecker is replaced with org.apache.wicket.core.util.objects.checker.CheckingObjectOutputStream WICKET-4817
org/apache/wicket/markup/html/border/BoxBorder is removed with no replacement WICKET-4966.
org.apache.wicket.Component#renderHead(HtmlHeaderContainer) is renamed to Component#internalRenderHead(HtmlHeaderContainer) WICKET-4964
org.apache.wicket.request.resource.ResourceReference#getDependencies() now returns a mutable ListHeaderItem WICKET-5124
org.apache.wicket.model.StringResourceModel constructor accepts IModelString for its default value WICKET-4972
org.apache.wicket.extensions.validation.validator.+Xyz+Validator#decorate() now works with IValidationError WICKET-5174
org.apache.wicket.ajax.attributes.AjaxRequestAttributes#setAllowDefault is renamed to #setPreventDefault WICKET-5197
org.apache.wicket.ajax.attributes.AjaxRequestAttributes#eventPropagation is now BUBBLE by default WICKET-5198
org.apache.wicket.ajax.form.AjaxFormValidatingBehavior doesn't use static methods anymore WICKET-5196
org.apache.wicket.ajax.AjaxRequestTarget.IListener#updateAjaxAttributes() is introduced WICKET-5212
org.apache.wicket.ISessionListener#onUnbound(String) is added WICKET-5213
(Base)WicketTester uses org.junit.Assert instead of junit.framework.Assert
(Base)WicketTester can be reused after thrown exception
org.apache.wicket.Component#setMetaData() value could be only a Serializable WICKET-5227
org.apache.wicket.Application#getHeaderContributorListenerCollection() is renamed to #getHeaderContributorListeners()
org.apache.wicket.authorization.IAuthorizationStrategy#isResourceAuthorized(IResource, PageParameters) is introduced WICKET-5012
org.apache.wicket.Component#setResponsePage() now accepts org.apache.wicket.request.component.IRequestablePage instead of org.apache.wicket.Page
AutoCompleteTextField doesn't support useHideShowCoveredIEFix setting WICKET-5130
org.apache.wicket.markup.html.form.TextField#getInputType() returns String array WICKET-5286
AuthenticatedWebSession#authenticate is now protected instead of public. WICKET-5308
AbstractResource.ResourceResponse API became more fluent. WICKET-5330
org.apache.wicket.markup.head.IHeaderItemWrapper is merged to IWrappedHeaderItem. WICKET-5366
All 'QuirkXyz' properties has been removed from org.apache.wicket.protocol.http.ClientProperties WICKET-5370
org.apache.wicket.request.resource.AbstractResource#flushResponseAfterHeaders() is removed WICKET-5392


Behavior changes


org.apache.wicket.request.Url#getQueryString WICKET-4664
org.apache.wicket.request.http.WebResponse encodes the value of the "filename" in Content-Disposition header WICKET-4934
org.apache.wicket.markup.html.form.FormComponentLabel outputs "required", "disabled" and "error" classes when its form component is either required, disabled or invalid. WICKET-5177
org.apache.wicket.markup.html.panel.FeedbackPanel Do not set CSS class on the li  span element for a feedback message WICKET-4831
AjaxEventBehavior doesn't prevent the default behavior of the _javascript_ event WICKET-5197
Ajax behaviors let _javascript_ events bubble by default WICKET-5198
PackageTextTemplate loads its content lazily WICKET-4579
AbstractLink no longer alters its markup to render itself as disabled WICKET-4904
Button no longer silently ignores exceptions WICKET-5235


Deprecated classes/methods/fields are removed WICKET-5201


AbstractDefaultAjaxBehavior's #getSuccessHandler(), #getFailureHandler(), #getChannel() and #getPrecondition() are removed.
The old Tree component in wicket-extensions is removed.
Wicket.Window.unloadConfirmation has been removed WICKET-5246
AllVisitFilter has been removed.

[CONF] Apache Wicket Migration to Wicket 7.0

2013-09-25 Thread Martin Grigorov (Confluence)







Migration to Wicket 7.0
Page edited by Martin Grigorov


 Changes (2)
 




...
The new method is moved its proper class - IWrappedHeaderItem.  
h5. All QuirkXyz properties has been removed from org.apache.wicket.protocol.http.ClientProperties [WICKET-5370|https://issues.apache.org/jira/browse/WICKET-5370] 
 
The quirk properties were mostly related to IE6/7 and old versions of Firefox browsers.   
h3. Behavior changes  
...


Full Content

Migrating to Wicket 7.0



Environment

Wicket 7.0 requires at least Java 7
Wicket 7.0 requires Servlet 3.0

The HTTP response is not flushed automatically when the request is started in asynchronous mode. WICKET-5152


API changes


org/apache/wicket/core/util/io/SerializableChecker is replaced with org.apache.wicket.core.util.objects.checker.CheckingObjectOutputStream WICKET-4817
org/apache/wicket/markup/html/border/BoxBorder is removed with no replacement WICKET-4966.
org.apache.wicket.Component#renderHead(HtmlHeaderContainer) is renamed to Component#internalRenderHead(HtmlHeaderContainer) WICKET-4964
org.apache.wicket.request.resource.ResourceReference#getDependencies() now returns a mutable ListHeaderItem WICKET-5124
org.apache.wicket.model.StringResourceModel constructor accepts IModelString for its default value WICKET-4972
org.apache.wicket.extensions.validation.validator.+Xyz+Validator#decorate() now works with IValidationError WICKET-5174
org.apache.wicket.ajax.attributes.AjaxRequestAttributes#setAllowDefault is renamed to #setPreventDefault WICKET-5197
org.apache.wicket.ajax.attributes.AjaxRequestAttributes#eventPropagation is now BUBBLE by default WICKET-5198
org.apache.wicket.ajax.form.AjaxFormValidatingBehavior doesn't use static methods anymore WICKET-5196
org.apache.wicket.ajax.AjaxRequestTarget.IListener#updateAjaxAttributes() is introduced WICKET-5212
org.apache.wicket.ISessionListener#onUnbound(String) is added WICKET-5213
(Base)WicketTester uses org.junit.Assert instead of junit.framework.Assert
org.apache.wicket.Component#setMetaData() value could be only a Serializable WICKET-5227
org.apache.wicket.Application#getHeaderContributorListenerCollection() is renamed to #getHeaderContributorListeners()
org.apache.wicket.authorization.IAuthorizationStrategy#isResourceAuthorized(IResource, PageParameters) is introduced WICKET-5012
org.apache.wicket.Component#setResponsePage() now accepts org.apache.wicket.request.component.IRequestablePage instead of org.apache.wicket.Page
AutoCompleteTextField doesn't support useHideShowCoveredIEFix setting WICKET-5130
org.apache.wicket.markup.html.form.TextField#getInputType() returns String array WICKET-5286
AuthenticatedWebSession#authenticate is now protected instead of public. WICKET-5308
AbstractResource.ResourceResponse API became more fluent. WICKET-5330
org.apache.wicket.markup.head.IHeaderItemWrapper is merged to IWrappedHeaderItem. WICKET-5366
All 'QuirkXyz' properties has been removed from org.apache.wicket.protocol.http.ClientProperties WICKET-5370


Behavior changes


org.apache.wicket.request.Url#getQueryString WICKET-4664
org.apache.wicket.request.http.WebResponse encodes the value of the "filename" in Content-Disposition header WICKET-4934
org.apache.wicket.markup.html.form.FormComponentLabel outputs "required", "disabled" and "error" classes when its form component is either required, disabled or invalid. WICKET-5177
org.apache.wicket.markup.html.panel.FeedbackPanel Do not set CSS class on the li  span element for a feedback message WICKET-4831
AjaxEventBehavior doesn't prevent the default behavior of the _javascript_ event WICKET-5197
Ajax behaviors let _javascript_ events bubble by default WICKET-5198
PackageTextTemplate loads its content lazily WICKET-4579
AbstractLink no longer alters its markup to render itself as disabled WICKET-4904
Button no longer silently ignores exceptions WICKET-5235


Deprecated classes/methods/fields are removed WICKET-5201


AbstractDefaultAjaxBehavior's #getSuccessHandler(), #getFailureHandler(), #getChannel() and #getPrecondition() are removed.
The old Tree component in wicket-extensions is removed.
Wicket.Window.unloadConfirmation has been removed WICKET-5246
AllVisitFilter has been removed.
Label constructor with String argument has been removed WICKET-5201
RangeValidator deprecated keys removed
InlineFrame uses IPageProvider WICKET-5347


Using keyboard UP and DOWN keys will loop thru the AutoCompleter's options WICKET-5275
Dependency updates


Environment

Wicket 7.0 requires at least Java 7

Wicket 7.0 

[CONF] Apache Wicket AJAX update and file download in one blow

2013-09-19 Thread Ernesto Reinaldo Barreiro (Confluence)







AJAX update and file download in one blow
Page
comment added by  Ernesto Reinaldo Barreiro



   I'm not the only contributor. Original idea/version was mine but Sven and Martin, and others, have improved on it. For me same licence as Wicket would be fine.

Best Regards,

Ernesto



In reply to a comment by Weifon Liu:
@ Ernesto Reinaldo Barreiro

What is the license that you would want to put this tool under?

Best Regards,

Wei



  
Stop watching space
|
Change email notification preferences

   View Online
  |
   Reply To This
   









[CONF] Apache Wicket AJAX update and file download in one blow

2013-09-18 Thread Weifon Liu (Confluence)







AJAX update and file download in one blow
Page
comment added by  Weifon Liu



   @ Ernesto Reinaldo Barreiro

What is the license that you would want to put this tool under?

Best Regards,

Wei




  
Stop watching space
|
Change email notification preferences

   View Online
  |
   Reply To This
   









[CONF] Apache Wicket Migration to Wicket 7.0

2013-09-02 Thread Martin Grigorov (Confluence)







Migration to Wicket 7.0
Page edited by Martin Grigorov


 Changes (2)
 




...
  
h5. AbstractResource.ResourceResponse API became more fluent. [WICKET-5330|https://issues.apache.org/jira/browse/WICKET-5330] 
 
All setter methods in AbstractResource.ResourceResponse class now will return _this_ instance for method chaining.   
h3. Behavior changes  
...


Full Content

Migrating to Wicket 7.0



Environment

Wicket 7.0 requires at least Java 7
Wicket 7.0 requires Servlet 3.0

The HTTP response is not flushed automatically when the request is started in asynchronous mode. WICKET-5152


API changes


org/apache/wicket/core/util/io/SerializableChecker is replaced with org.apache.wicket.core.util.objects.checker.CheckingObjectOutputStream WICKET-4817
org/apache/wicket/markup/html/border/BoxBorder is removed with no replacement WICKET-4966.
org.apache.wicket.Component#renderHead(HtmlHeaderContainer) is renamed to Component#internalRenderHead(HtmlHeaderContainer) WICKET-4964
org.apache.wicket.request.resource.ResourceReference#getDependencies() now returns a mutable ListHeaderItem WICKET-5124
org.apache.wicket.model.StringResourceModel constructor accepts IModelString for its default value WICKET-4972
org.apache.wicket.extensions.validation.validator.+Xyz+Validator#decorate() now works with IValidationError WICKET-5174
org.apache.wicket.ajax.attributes.AjaxRequestAttributes#setAllowDefault is renamed to #setPreventDefault WICKET-5197
org.apache.wicket.ajax.attributes.AjaxRequestAttributes#eventPropagation is now BUBBLE by default WICKET-5198
org.apache.wicket.ajax.form.AjaxFormValidatingBehavior doesn't use static methods anymore WICKET-5196
org.apache.wicket.ajax.AjaxRequestTarget.IListener#updateAjaxAttributes() is introduced WICKET-5212
org.apache.wicket.ISessionListener#onUnbound(String) is added WICKET-5213
(Base)WicketTester uses org.junit.Assert instead of junit.framework.Assert
org.apache.wicket.Component#setMetaData() value could be only a Serializable WICKET-5227
org.apache.wicket.Application#getHeaderContributorListenerCollection() is renamed to #getHeaderContributorListeners()
org.apache.wicket.authorization.IAuthorizationStrategy#isResourceAuthorized(IResource, PageParameters) is introduced WICKET-5012
org.apache.wicket.Component#setResponsePage() now accepts org.apache.wicket.request.component.IRequestablePage instead of org.apache.wicket.Page
AutoCompleteTextField doesn't support useHideShowCoveredIEFix setting WICKET-5130
org.apache.wicket.markup.html.form.TextField#getInputType() returns String array WICKET-5286
AuthenticatedWebSession#authenticate is now protected instead of public. WICKET-5308
AbstractResource.ResourceResponse API became more fluent. WICKET-5330


Behavior changes


org.apache.wicket.request.Url#getQueryString WICKET-4664
org.apache.wicket.request.http.WebResponse encodes the value of the "filename" in Content-Disposition header WICKET-4934
org.apache.wicket.markup.html.form.FormComponentLabel outputs "required", "disabled" and "error" classes when its form component is either required, disabled or invalid. WICKET-5177
org.apache.wicket.markup.html.panel.FeedbackPanel Do not set CSS class on the li  span element for a feedback message WICKET-4831
AjaxEventBehavior doesn't prevent the default behavior of the _javascript_ event WICKET-5197
Ajax behaviors let _javascript_ events bubble by default WICKET-5198
PackageTextTemplate loads its content lazily WICKET-4579
AbstractLink no longer alters its markup to render itself as disabled WICKET-4904
Button no longer silently ignores exceptions WICKET-5235


Deprecated classes/methods/fields are removed WICKET-5201


AbstractDefaultAjaxBehavior's #getSuccessHandler(), #getFailureHandler(), #getChannel() and #getPrecondition() are removed.
The old Tree component in wicket-extensions is removed.
Wicket.Window.unloadConfirmation has been removed WICKET-5246
Using keyboard UP and DOWN keys will loop thru the AutoCompleter's options WICKET-5275


Dependency updates


Environment

Wicket 7.0 requires at least Java 7

Wicket 7.0 requires Servlet 3.0

The HTTP response is not flushed automatically when the request is started in asynchronous mode. WICKET-5152

This is an improvement in Wicket 7.0 which should not affect any application migrating from Wicket 6.x. But if you use Servlet 3.0's AsyncContext in IResource in Wicket 7 then make sure that your code flushes the http response after completing the request.

API changes

org/apache/wicket/core/util/io/SerializableChecker is replaced with 

[CONF] Apache Wicket Migration to Wicket 7.0

2013-08-20 Thread Carl-Eric Menzel (Confluence)







Migration to Wicket 7.0
Page edited by Carl-Eric Menzel


 Changes (1)
 




...
{code}  
h5. AuthenticatedWebSession#authenticate is now protected instead of private. public. [WICKET-5308|https://issues.apache.org/jira/browse/WICKET-5308] 
 No change in user code is required, but the authenticate method can now be made protected to avoid confusion with the signIn method.  
...


Full Content

Migrating to Wicket 7.0



Environment

Wicket 7.0 requires at least Java 7
Wicket 7.0 requires Servlet 3.0

The HTTP response is not flushed automatically when the request is started in asynchronous mode. WICKET-5152


API changes


org/apache/wicket/core/util/io/SerializableChecker is replaced with org.apache.wicket.core.util.objects.checker.CheckingObjectOutputStream WICKET-4817
org/apache/wicket/markup/html/border/BoxBorder is removed with no replacement WICKET-4966.
org.apache.wicket.Component#renderHead(HtmlHeaderContainer) is renamed to Component#internalRenderHead(HtmlHeaderContainer) WICKET-4964
org.apache.wicket.request.resource.ResourceReference#getDependencies() now returns a mutable ListHeaderItem WICKET-5124
org.apache.wicket.model.StringResourceModel constructor accepts IModelString for its default value WICKET-4972
org.apache.wicket.extensions.validation.validator.+Xyz+Validator#decorate() now works with IValidationError WICKET-5174
org.apache.wicket.ajax.attributes.AjaxRequestAttributes#setAllowDefault is renamed to #setPreventDefault WICKET-5197
org.apache.wicket.ajax.attributes.AjaxRequestAttributes#eventPropagation is now BUBBLE by default WICKET-5198
org.apache.wicket.ajax.form.AjaxFormValidatingBehavior doesn't use static methods anymore WICKET-5196
org.apache.wicket.ajax.AjaxRequestTarget.IListener#updateAjaxAttributes() is introduced WICKET-5212
org.apache.wicket.ISessionListener#onUnbound(String) is added WICKET-5213
(Base)WicketTester uses org.junit.Assert instead of junit.framework.Assert
org.apache.wicket.Component#setMetaData() value could be only a Serializable WICKET-5227
org.apache.wicket.Application#getHeaderContributorListenerCollection() is renamed to #getHeaderContributorListeners()
org.apache.wicket.authorization.IAuthorizationStrategy#isResourceAuthorized(IResource, PageParameters) is introduced WICKET-5012
org.apache.wicket.Component#setResponsePage() now accepts org.apache.wicket.request.component.IRequestablePage instead of org.apache.wicket.Page
AutoCompleteTextField doesn't support useHideShowCoveredIEFix setting WICKET-5130
org.apache.wicket.markup.html.form.TextField#getInputType() returns String array WICKET-5286
AuthenticatedWebSession#authenticate is now protected instead of public. WICKET-5308


Behavior changes


org.apache.wicket.request.Url#getQueryString WICKET-4664
org.apache.wicket.request.http.WebResponse encodes the value of the "filename" in Content-Disposition header WICKET-4934
org.apache.wicket.markup.html.form.FormComponentLabel outputs "required", "disabled" and "error" classes when its form component is either required, disabled or invalid. WICKET-5177
org.apache.wicket.markup.html.panel.FeedbackPanel Do not set CSS class on the li  span element for a feedback message WICKET-4831
AjaxEventBehavior doesn't prevent the default behavior of the _javascript_ event WICKET-5197
Ajax behaviors let _javascript_ events bubble by default WICKET-5198
PackageTextTemplate loads its content lazily WICKET-4579
AbstractLink no longer alters its markup to render itself as disabled WICKET-4904
Button no longer silently ignores exceptions WICKET-5235


Deprecated classes/methods/fields are removed WICKET-5201


AbstractDefaultAjaxBehavior's #getSuccessHandler(), #getFailureHandler(), #getChannel() and #getPrecondition() are removed.
The old Tree component in wicket-extensions is removed.
Wicket.Window.unloadConfirmation has been removed WICKET-5246
Using keyboard UP and DOWN keys will loop thru the AutoCompleter's options WICKET-5275


Dependency updates


Environment

Wicket 7.0 requires at least Java 7

Wicket 7.0 requires Servlet 3.0

The HTTP response is not flushed automatically when the request is started in asynchronous mode. WICKET-5152

This is an improvement in Wicket 7.0 which should not affect any application migrating from Wicket 6.x. But if you use Servlet 3.0's AsyncContext in IResource in Wicket 7 then make sure that your code flushes the http response after completing the request.

API changes

org/apache/wicket/core/util/io/SerializableChecker is replaced with org.apache.wicket.core.util.objects.checker.CheckingObjectOutputStream WICKET-4817


[CONF] Apache Wicket Companies that provide services

2013-08-08 Thread Szurdi Miklos (Confluence)







Companies that provide services
Page edited by Szurdi Miklos


 Changes (1)
 




...
* [Mystic Coders, LLC|http://www.mysticcoders.com/] is a company that has developed Wicket solutions for many large to small companies and is available for consulting, developing, training and speaking engagements. * [Metaprime|http://www.metaprime.hu] is a Hungarian company developing Wicket web applications and offering consulting and development services, training sessions for small to medium sized teams. 
* [Sonrisa International Inc.|http://sonrisainc.com] is an IT Outsource company providing Apache Wicket development and Wicket consultancy in Europe and the US 
* [Richard Paul|http://www.linkedin.com/in/richardpaullinked] Wicket Consulting Services in the Greater Chicago Area. * [Solvation|http://www.solvation.net] Java  Wicket consulting based in Copenhagen, Denmark. 
...


Full Content

List of companies that provide commercial services for Wicket.


Wicket Support Services


	Jonathan Locke originated Wicket and provides consulting services.
	JTeam is a leading Dutch solutions company and sister company of SpringSource, offering Wicket training courses in Holland and Belgium in partnership with jWeekend.
	Zenika is a leading French training company, offering Wicket courses in Paris in partnership with jWeekend.
	Wicket Support is a company that provides training, consultations and commercial support for Wicket.
	Wicket Training provides training classes, on-site training, and consulting for Wicket (US-Based).
	Jaywayis a premier Java consulting group that via its Malaysian subsidiary provides services for Wicket development, especially running Wicket in OSGi environments.
	Jayway DKis a premier Java consulting group located in Denmark provides services for Wicket development, course etc.
	Skillsmatteris a leading provider of training, mentoring and project based skills transfer. Amongst other things, they provide Wicket courses.
	Anyware Technologies is a french company  that provides many training courses, including Wicket.
	jWeekend provides consultancy, product development and  weekday/weekend, expert training globally, in Java technologies, Scala, OO  also in Wicket, since 2007.
	comSysto GmbH provides Wicket consulting and training in Germany in cooperation with jWeekend. Furthermore they provide consulting services in Spring and Oracle BI.
	Doculibre Inc. is a Canadian company that provides Wicket support and development.
	Componence India  is an Indian company that provides Wicket support and development.
	Xavier Hanin is a french independent consultant who provides services for Wicket development and training.
	Curalia is Java consulting company that provides services for Wicket development.
	The Macau Productivity and Technology Transfer Center is a non-profit organization that is including Wicket in its extensive training programs.
	Reaktor Innovations is a Finnish company that provides Wicket development and training.
	Ralf Ebert is a German independent consultant who provides services for Wicket development and German Wicket training courses.
	JointEffort is a small Dutch company that provides training, consultations and services for Wicket development.
	Leverage IT is a small South African IT Consulting and Development company that specializes in the use of Java Open Source Technologies, Platforms and Frameworks, including Wicket.
	XENTUM is a Polish company that provides Wicket development and support.
	automação.info is a Brazilian company that provides Wicket development.
	Genuco Systems is a company with offices in Hong Kong and Canada that provide leading edge Wicket development solutions as well as financial services.
	Devotek IT is the corporate identity of Thomas Mäder. I offer contracting, consulting and training for Wicket and Eclipse (where I used to be a committer).
	footprint e.K. / Jan Kriesten provides training and consulting with Wicket, Java and Scala. Jan Kriesten is located in Hamburg, Germany, but will be available on-site in other countries as well.
	Studio M2J of Juan Moreno  C.is a company located in Milan Italy offering Wicket development/J2ee integration, Trainig in Java and Wicket/Tapestry, Eclipse and hibernate, embedded solutions too.
	3FConsulting is a company located in Florence Italy offering Wicket development/J2ee integration and embedded solutions too.
	Mystic Coders, LLC is a company that has developed Wicket solutions for many large to small companies and is available for consulting, developing, training and speaking engagements.
	Metaprime is a Hungarian company developing Wicket web applications and offering consulting and development services, training sessions for small to medium sized teams.
	Sonrisa 

[CONF] Apache Wicket Migration to Wicket 7.0

2013-08-07 Thread Carl-Eric Menzel (Confluence)







Migration to Wicket 7.0
Page edited by Carl-Eric Menzel


 Changes (2)
 




...
 org.apache.wicket.extensions.markup.html.form.DateTextField can be used with several date-like types: date, datetime, datetime-local, month, time, week. 
To be able to support this the return type of TextField#getInputType() has been changed from String to String\[\], and the method itself has been renamed to #getInputTypes(). 
 To migrate it you should do something like: 
...
{code}  
h5. AuthenticatedWebSession#authenticate is now protected instead of private. [WICKET-5308|https://issues.apache.org/jira/browse/WICKET-5308]  No change in user code is required, but the authenticate method can now be made protected to avoid confusion with the signIn method. 
h3. Behavior changes  
...


Full Content

Migrating to Wicket 7.0



Environment

Wicket 7.0 requires at least Java 7
Wicket 7.0 requires Servlet 3.0

The HTTP response is not flushed automatically when the request is started in asynchronous mode. WICKET-5152


API changes


org/apache/wicket/core/util/io/SerializableChecker is replaced with org.apache.wicket.core.util.objects.checker.CheckingObjectOutputStream WICKET-4817
org/apache/wicket/markup/html/border/BoxBorder is removed with no replacement WICKET-4966.
org.apache.wicket.Component#renderHead(HtmlHeaderContainer) is renamed to Component#internalRenderHead(HtmlHeaderContainer) WICKET-4964
org.apache.wicket.request.resource.ResourceReference#getDependencies() now returns a mutable ListHeaderItem WICKET-5124
org.apache.wicket.model.StringResourceModel constructor accepts IModelString for its default value WICKET-4972
org.apache.wicket.extensions.validation.validator.+Xyz+Validator#decorate() now works with IValidationError WICKET-5174
org.apache.wicket.ajax.attributes.AjaxRequestAttributes#setAllowDefault is renamed to #setPreventDefault WICKET-5197
org.apache.wicket.ajax.attributes.AjaxRequestAttributes#eventPropagation is now BUBBLE by default WICKET-5198
org.apache.wicket.ajax.form.AjaxFormValidatingBehavior doesn't use static methods anymore WICKET-5196
org.apache.wicket.ajax.AjaxRequestTarget.IListener#updateAjaxAttributes() is introduced WICKET-5212
org.apache.wicket.ISessionListener#onUnbound(String) is added WICKET-5213
(Base)WicketTester uses org.junit.Assert instead of junit.framework.Assert
org.apache.wicket.Component#setMetaData() value could be only a Serializable WICKET-5227
org.apache.wicket.Application#getHeaderContributorListenerCollection() is renamed to #getHeaderContributorListeners()
org.apache.wicket.authorization.IAuthorizationStrategy#isResourceAuthorized(IResource, PageParameters) is introduced WICKET-5012
org.apache.wicket.Component#setResponsePage() now accepts org.apache.wicket.request.component.IRequestablePage instead of org.apache.wicket.Page
AutoCompleteTextField doesn't support useHideShowCoveredIEFix setting WICKET-5130
org.apache.wicket.markup.html.form.TextField#getInputType() returns String array WICKET-5286
AuthenticatedWebSession#authenticate is now protected instead of private. WICKET-5308


Behavior changes


org.apache.wicket.request.Url#getQueryString WICKET-4664
org.apache.wicket.request.http.WebResponse encodes the value of the "filename" in Content-Disposition header WICKET-4934
org.apache.wicket.markup.html.form.FormComponentLabel outputs "required", "disabled" and "error" classes when its form component is either required, disabled or invalid. WICKET-5177
org.apache.wicket.markup.html.panel.FeedbackPanel Do not set CSS class on the li  span element for a feedback message WICKET-4831
AjaxEventBehavior doesn't prevent the default behavior of the _javascript_ event WICKET-5197
Ajax behaviors let _javascript_ events bubble by default WICKET-5198
PackageTextTemplate loads its content lazily WICKET-4579
AbstractLink no longer alters its markup to render itself as disabled WICKET-4904
Button no longer silently ignores exceptions WICKET-5235


Deprecated classes/methods/fields are removed WICKET-5201


AbstractDefaultAjaxBehavior's #getSuccessHandler(), #getFailureHandler(), #getChannel() and #getPrecondition() are removed.
The old Tree component in wicket-extensions is removed.
Wicket.Window.unloadConfirmation has been removed WICKET-5246
Using keyboard UP and DOWN keys will loop thru the AutoCompleter's options WICKET-5275


Dependency updates


Environment

Wicket 7.0 requires at least Java 7

Wicket 7.0 requires Servlet 3.0

The HTTP response is not flushed automatically when the request is started in 

[CONF] Apache Wicket Migration to Wicket 7.0

2013-07-29 Thread Martin Grigorov (Confluence)







Migration to Wicket 7.0
Page edited by Martin Grigorov


 Changes (1)
 




...
_useHideShowCoveredIEFix_ setting was needed for IE7 support.  This version of IE is not supported officially anymore and this setting has been removed.  
h5. org.apache.wicket.markup.html.form.TextField#getInputType() returns String array [WICKET-5286|https://issues.apache.org/jira/browse/WICKET-5286]  org.apache.wicket.extensions.markup.html.form.DateTextField can be used with several date-like types: date, datetime, datetime-local, month, time, week.  To be able to support this the return type of TextField#getInputType() has been changed from String to String[].  To migrate it you should do something like: {code:title=OldMyTextField.java|borderStyle=solid} ... @Override protected String getInputType() { 	return sometype; } ... {code} to {code:title=NewMyTextField.java|borderStyle=solid} ... @Override protected String[] getInputType() { 	return new String[] { sometype }; } ... {code}  
h3. Behavior changes  
...


Full Content

Migrating to Wicket 7.0



Environment

Wicket 7.0 requires at least Java 7
Wicket 7.0 requires Servlet 3.0

The HTTP response is not flushed automatically when the request is started in asynchronous mode. WICKET-5152


API changes


org/apache/wicket/core/util/io/SerializableChecker is replaced with org.apache.wicket.core.util.objects.checker.CheckingObjectOutputStream WICKET-4817
org/apache/wicket/markup/html/border/BoxBorder is removed with no replacement WICKET-4966.
org.apache.wicket.Component#renderHead(HtmlHeaderContainer) is renamed to Component#internalRenderHead(HtmlHeaderContainer) WICKET-4964
org.apache.wicket.request.resource.ResourceReference#getDependencies() now returns a mutable ListHeaderItem WICKET-5124
org.apache.wicket.model.StringResourceModel constructor accepts IModelString for its default value WICKET-4972
org.apache.wicket.extensions.validation.validator.+Xyz+Validator#decorate() now works with IValidationError WICKET-5174
org.apache.wicket.ajax.attributes.AjaxRequestAttributes#setAllowDefault is renamed to #setPreventDefault WICKET-5197
org.apache.wicket.ajax.attributes.AjaxRequestAttributes#eventPropagation is now BUBBLE by default WICKET-5198
org.apache.wicket.ajax.form.AjaxFormValidatingBehavior doesn't use static methods anymore WICKET-5196
org.apache.wicket.ajax.AjaxRequestTarget.IListener#updateAjaxAttributes() is introduced WICKET-5212
org.apache.wicket.ISessionListener#onUnbound(String) is added WICKET-5213
(Base)WicketTester uses org.junit.Assert instead of junit.framework.Assert
org.apache.wicket.Component#setMetaData() value could be only a Serializable WICKET-5227
org.apache.wicket.Application#getHeaderContributorListenerCollection() is renamed to #getHeaderContributorListeners()
org.apache.wicket.authorization.IAuthorizationStrategy#isResourceAuthorized(IResource, PageParameters) is introduced WICKET-5012
org.apache.wicket.Component#setResponsePage() now accepts org.apache.wicket.request.component.IRequestablePage instead of org.apache.wicket.Page
AutoCompleteTextField doesn't support useHideShowCoveredIEFix setting WICKET-5130
org.apache.wicket.markup.html.form.TextField#getInputType() returns String array WICKET-5286


Behavior changes


org.apache.wicket.request.Url#getQueryString WICKET-4664
org.apache.wicket.request.http.WebResponse encodes the value of the "filename" in Content-Disposition header WICKET-4934
org.apache.wicket.markup.html.form.FormComponentLabel outputs "required", "disabled" and "error" classes when its form component is either required, disabled or invalid. WICKET-5177
org.apache.wicket.markup.html.panel.FeedbackPanel Do not set CSS class on the li  span element for a feedback message WICKET-4831
AjaxEventBehavior doesn't prevent the default behavior of the _javascript_ event WICKET-5197
Ajax behaviors let _javascript_ events bubble by default WICKET-5198
PackageTextTemplate loads its content lazily WICKET-4579
AbstractLink no longer alters its markup to render itself as disabled WICKET-4904
Button no longer silently ignores exceptions WICKET-5235


Deprecated classes/methods/fields are removed WICKET-5201


AbstractDefaultAjaxBehavior's #getSuccessHandler(), #getFailureHandler(), #getChannel() and #getPrecondition() are removed.
The old Tree component in wicket-extensions is removed.
Wicket.Window.unloadConfirmation has been removed WICKET-5246
Using keyboard UP and DOWN keys will loop thru the AutoCompleter's options WICKET-5275


Dependency updates


Environment

Wicket 7.0 requires at least Java 7

Wicket 7.0 requires Servlet 

[CONF] Apache Wicket Migration to Wicket 7.0

2013-07-24 Thread Martin Grigorov (Confluence)







Migration to Wicket 7.0
Page edited by Martin Grigorov


 Changes (1)
 




...
In Wicket 6 a new setting has been added to ModalWindow - org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow#showUnloadConfirmation(). In Wicket 7 the new Java API should be used instead of dealing with the _javascript_ property _Wicket.Window.unloadConfirmation_.  
h5. Using keyboard UP and DOWN keys will loop thru the options [WICKET-5275|https://issues.apache.org/jira/browse/WICKET-5275]  If the currently selected item is the first one and the user uses KEY_UP then the selection will move to the last option. Similarly for KEY_DOWN - if the selected option is the last one then using DOWN key will move the selection to the first one.  
h3. Dependency updates  
...


Full Content

Migrating to Wicket 7.0



Environment

Wicket 7.0 requires at least Java 7
Wicket 7.0 requires Servlet 3.0

The HTTP response is not flushed automatically when the request is started in asynchronous mode. WICKET-5152


API changes


org/apache/wicket/core/util/io/SerializableChecker is replaced with org.apache.wicket.core.util.objects.checker.CheckingObjectOutputStream WICKET-4817
org/apache/wicket/markup/html/border/BoxBorder is removed with no replacement WICKET-4966.
org.apache.wicket.Component#renderHead(HtmlHeaderContainer) is renamed to Component#internalRenderHead(HtmlHeaderContainer) WICKET-4964
org.apache.wicket.request.resource.ResourceReference#getDependencies() now returns a mutable ListHeaderItem WICKET-5124
org.apache.wicket.model.StringResourceModel constructor accepts IModelString for its default value WICKET-4972
org.apache.wicket.extensions.validation.validator.+Xyz+Validator#decorate() now works with IValidationError WICKET-5174
org.apache.wicket.ajax.attributes.AjaxRequestAttributes#setAllowDefault is renamed to #setPreventDefault WICKET-5197
org.apache.wicket.ajax.attributes.AjaxRequestAttributes#eventPropagation is now BUBBLE by default WICKET-5198
org.apache.wicket.ajax.form.AjaxFormValidatingBehavior doesn't use static methods anymore WICKET-5196
org.apache.wicket.ajax.AjaxRequestTarget.IListener#updateAjaxAttributes() is introduced WICKET-5212
org.apache.wicket.ISessionListener#onUnbound(String) is added WICKET-5213
(Base)WicketTester uses org.junit.Assert instead of junit.framework.Assert
org.apache.wicket.Component#setMetaData() value could be only a Serializable WICKET-5227
org.apache.wicket.Application#getHeaderContributorListenerCollection() is renamed to #getHeaderContributorListeners()
org.apache.wicket.authorization.IAuthorizationStrategy#isResourceAuthorized(IResource, PageParameters) is introduced WICKET-5012
org.apache.wicket.Component#setResponsePage() now accepts org.apache.wicket.request.component.IRequestablePage instead of org.apache.wicket.Page
AutoCompleteTextField doesn't support useHideShowCoveredIEFix setting WICKET-5130


Behavior changes


org.apache.wicket.request.Url#getQueryString WICKET-4664
org.apache.wicket.request.http.WebResponse encodes the value of the "filename" in Content-Disposition header WICKET-4934
org.apache.wicket.markup.html.form.FormComponentLabel outputs "required", "disabled" and "error" classes when its form component is either required, disabled or invalid. WICKET-5177
org.apache.wicket.markup.html.panel.FeedbackPanel Do not set CSS class on the li  span element for a feedback message WICKET-4831
AjaxEventBehavior doesn't prevent the default behavior of the _javascript_ event WICKET-5197
Ajax behaviors let _javascript_ events bubble by default WICKET-5198
PackageTextTemplate loads its content lazily WICKET-4579
AbstractLink no longer alters its markup to render itself as disabled WICKET-4904
Button no longer silently ignores exceptions WICKET-5235


Deprecated classes/methods/fields are removed WICKET-5201


AbstractDefaultAjaxBehavior's #getSuccessHandler(), #getFailureHandler(), #getChannel() and #getPrecondition() are removed.
The old Tree component in wicket-extensions is removed.
Wicket.Window.unloadConfirmation has been removed WICKET-5246
Using keyboard UP and DOWN keys will loop thru the options WICKET-5275


Dependency updates


Environment

Wicket 7.0 requires at least Java 7

Wicket 7.0 requires Servlet 3.0

The HTTP response is not flushed automatically when the request is started in asynchronous mode. WICKET-5152

This is an improvement in Wicket 7.0 which should not affect any application migrating from Wicket 6.x. But if you use Servlet 3.0's AsyncContext in IResource in Wicket 7 then make sure that your code flushes the http response after 

[CONF] Apache Wicket Wicket Blogs

2013-07-08 Thread Tom Hombergs (Confluence)







Wicket Blogs
Page edited by Tom Hombergs


 Changes (1)
 




...
* [There is no place like ::1|http://www.bloggure.info/category/work/java-work/wicket-work] Wicket tips and tricks from a French startup developer * [Wicket + JPA without DI framework|http://ynagaraja.blogspot.in/2013/05/developing-web-application-with-apache.html] 
* [Wicked Software|http://thombergs.wordpress.com] 
 These were listed here, but now seem somewhat dead/abandoned: 
...


Full Content

Wicket Blogs

There are several blogs available with news, experiences, hints and tricks concerning Wicket. Here's a list of those blogs we have discovered so far. Please add your own blog to this list if you write something interesting on Wicket.


	Nadeem's Blog on Wicket (Editable Grid, Ajax Radio Button, Wicket loose coupling, Wicket XML RPC  )
	WorldTurner blog
	A Wicket Diary
	Geertjan's blog
	Eelco's blog new attempt
	Jonathan's blog
	Jonathan's new blog
	Jeremy Thomerson's blog
	Jesse Sightler's blog
	Coderspiel (runs on Wicket)
	Ruud en Marco's Weblog
	Matt Raible's Raible Designs
	Erik van Oosten's Blog
	Ryan Sonnek's Blog
	Here Be Beasties (Al Maw's blog)
	rue's headroom (Rüdiger Schulz' blog)
	Wicket Blog in China wanglei's blog
	Blog do Bruno Borges (pt_BR)
	Java for Dinner (pt_BR)
	Java Thoughts (Julian Sinai's blog)
	Carlo's Blog
	Eirik Rude's Blog
	Daan's blog, especially everything tagged 'Wicket'
	Nino's blog with screencasts, especially everything tagged 'Wicket'
	Wicket Praxis
	The Wicket Evangelist
	Mystic Blog
	WicketByExample
	Jeff's Blog
	Devproof Blog and Wicket articles (blog/portal is completely written in Wicket and downloadable)
	codesmell.org
	Paul Szulc: Wicket and TDD
	Tomasz Dziurko: Code Hard Go Pro
	Martin Dilger: German Blog, in Depth Knowledge about Wicket
	Sergei Sizov: Software Engineering with Java and Wicket 
	Dan Simko: Czech Blog about Wicket (runs on Wicket and Brix)
	There is no place like ::1 Wicket tips and tricks from a French startup developer
	Wicket + JPA without DI framework
	Wicked Software



These were listed here, but now seem somewhat dead/abandoned:


	steve-on-sakai
	John Banana Qwerty (Jean-Baptiste Quenot's blog)
	momania.net
	JavaGeek.org
	Phil Phil's Weblog
	Matej Knopp's blog
	Romain Guy get to love web development
	The code filled.. code story blog





Stop watching space
|
Change email notification preferences

View Online
|
View Changes
|
Add Comment









[CONF] Apache Wicket Wicket Blogs

2013-07-08 Thread Tom Hombergs (Confluence)







Wicket Blogs
Page edited by Tom Hombergs


 Changes (1)
 




...
* [There is no place like ::1|http://www.bloggure.info/category/work/java-work/wicket-work] Wicket tips and tricks from a French startup developer * [Wicket + JPA without DI framework|http://ynagaraja.blogspot.in/2013/05/developing-web-application-with-apache.html] 
* [Wicked Software|http://thombergs.wordpress.com] Blog about Software Engineering with a focus on Wicket 
 These were listed here, but now seem somewhat dead/abandoned: 
...


Full Content

Wicket Blogs

There are several blogs available with news, experiences, hints and tricks concerning Wicket. Here's a list of those blogs we have discovered so far. Please add your own blog to this list if you write something interesting on Wicket.


	Nadeem's Blog on Wicket (Editable Grid, Ajax Radio Button, Wicket loose coupling, Wicket XML RPC  )
	WorldTurner blog
	A Wicket Diary
	Geertjan's blog
	Eelco's blog new attempt
	Jonathan's blog
	Jonathan's new blog
	Jeremy Thomerson's blog
	Jesse Sightler's blog
	Coderspiel (runs on Wicket)
	Ruud en Marco's Weblog
	Matt Raible's Raible Designs
	Erik van Oosten's Blog
	Ryan Sonnek's Blog
	Here Be Beasties (Al Maw's blog)
	rue's headroom (Rüdiger Schulz' blog)
	Wicket Blog in China wanglei's blog
	Blog do Bruno Borges (pt_BR)
	Java for Dinner (pt_BR)
	Java Thoughts (Julian Sinai's blog)
	Carlo's Blog
	Eirik Rude's Blog
	Daan's blog, especially everything tagged 'Wicket'
	Nino's blog with screencasts, especially everything tagged 'Wicket'
	Wicket Praxis
	The Wicket Evangelist
	Mystic Blog
	WicketByExample
	Jeff's Blog
	Devproof Blog and Wicket articles (blog/portal is completely written in Wicket and downloadable)
	codesmell.org
	Paul Szulc: Wicket and TDD
	Tomasz Dziurko: Code Hard Go Pro
	Martin Dilger: German Blog, in Depth Knowledge about Wicket
	Sergei Sizov: Software Engineering with Java and Wicket 
	Dan Simko: Czech Blog about Wicket (runs on Wicket and Brix)
	There is no place like ::1 Wicket tips and tricks from a French startup developer
	Wicket + JPA without DI framework
	Wicked Software Blog about Software Engineering with a focus on Wicket



These were listed here, but now seem somewhat dead/abandoned:


	steve-on-sakai
	John Banana Qwerty (Jean-Baptiste Quenot's blog)
	momania.net
	JavaGeek.org
	Phil Phil's Weblog
	Matej Knopp's blog
	Romain Guy get to love web development
	The code filled.. code story blog





Stop watching space
|
Change email notification preferences

View Online
|
View Changes
|
Add Comment









[CONF] Apache Wicket Companies that provide services

2013-07-08 Thread Componence (Confluence)







Companies that provide services
Page edited by Componence


 Changes (1)
 




...
* [comSysto GmbH|http://blog.comsysto.com] provides Wicket consulting and training in Germany in cooperation with jWeekend. Furthermore they provide consulting services in Spring and Oracle BI. * [Doculibre Inc.|http://www.doculibre.com] is a Canadian company that provides Wicket support and development. 
* [Componence India |http://www.componence.in] is an Indian company that provides Wicket support and development. 
* [Xavier Hanin|http://www.xavierhanin.com/] is a french independent consultant who provides services for Wicket development and training. * [Curalia|http://www.curalia.se] is Java consulting company that provides services for Wicket development. 
...


Full Content

List of companies that provide commercial services for Wicket.


Wicket Support Services


	Jonathan Locke originated Wicket and provides consulting services.
	JTeam is a leading Dutch solutions company and sister company of SpringSource, offering Wicket training courses in Holland and Belgium in partnership with jWeekend.
	Zenika is a leading French training company, offering Wicket courses in Paris in partnership with jWeekend.
	Wicket Support is a company that provides training, consultations and commercial support for Wicket.
	Wicket Training provides training classes, on-site training, and consulting for Wicket (US-Based).
	Jaywayis a premier Java consulting group that via its Malaysian subsidiary provides services for Wicket development, especially running Wicket in OSGi environments.
	Jayway DKis a premier Java consulting group located in Denmark provides services for Wicket development, course etc.
	Skillsmatteris a leading provider of training, mentoring and project based skills transfer. Amongst other things, they provide Wicket courses.
	Anyware Technologies is a french company  that provides many training courses, including Wicket.
	jWeekend provides consultancy, product development and  weekday/weekend, expert training globally, in Java technologies, Scala, OO  also in Wicket, since 2007.
	comSysto GmbH provides Wicket consulting and training in Germany in cooperation with jWeekend. Furthermore they provide consulting services in Spring and Oracle BI.
	Doculibre Inc. is a Canadian company that provides Wicket support and development.
	Componence India  is an Indian company that provides Wicket support and development.
	Xavier Hanin is a french independent consultant who provides services for Wicket development and training.
	Curalia is Java consulting company that provides services for Wicket development.
	The Macau Productivity and Technology Transfer Center is a non-profit organization that is including Wicket in its extensive training programs.
	Reaktor Innovations is a Finnish company that provides Wicket development and training.
	Ralf Ebert is a German independent consultant who provides services for Wicket development and German Wicket training courses.
	JointEffort is a small Dutch company that provides training, consultations and services for Wicket development.
	Leverage IT is a small South African IT Consulting and Development company that specializes in the use of Java Open Source Technologies, Platforms and Frameworks, including Wicket.
	XENTUM is a Polish company that provides Wicket development and support.
	automação.info is a Brazilian company that provides Wicket development.
	Genuco Systems is a company with offices in Hong Kong and Canada that provide leading edge Wicket development solutions as well as financial services.
	Devotek IT is the corporate identity of Thomas Mäder. I offer contracting, consulting and training for Wicket and Eclipse (where I used to be a committer).
	footprint e.K. / Jan Kriesten provides training and consulting with Wicket, Java and Scala. Jan Kriesten is located in Hamburg, Germany, but will be available on-site in other countries as well.
	Studio M2J of Juan Moreno  C.is a company located in Milan Italy offering Wicket development/J2ee integration, Trainig in Java and Wicket/Tapestry, Eclipse and hibernate, embedded solutions too.
	3FConsulting is a company located in Florence Italy offering Wicket development/J2ee integration and embedded solutions too.
	Mystic Coders, LLC is a company that has developed Wicket solutions for many large to small companies and is available for consulting, developing, training and speaking engagements.
	Metaprime is a Hungarian company developing Wicket web applications and offering consulting and development services, training sessions for small to medium sized teams.
	Richard Paul Wicket Consulting Services in the Greater Chicago Area.
	Solvation Java  Wicket consulting based in Copenhagen, 

[CONF] Apache Wicket Wicket 7.0 Roadmap

2013-06-27 Thread Martin Grigorov (Confluence)







Wicket 7.0 Roadmap
Page edited by Martin Grigorov


 Changes (2)
 




...
 Assignee: ivaynberg 
Status:  Jira: 
Status: Not started Jira: [WICKET-5255|https://issues.apache.org/jira/browse/WICKET-5255] 
 h4. cdi 1.1 upgrade 
...


Full Content



This page lists the tasks the Wicket team agreed to implement for Wicket 7.0.

 Java 7 as a minimum

 Generics for org.apache.wicket.Component

 Servlet 3 as a minimum
Tickets in Jira with "Fix Version" = 7.0


PageParameters improvements
Minor API cleanups


API Tweaks

 SimpleFormComponentLabel should output the "required" class just like wicket:for
 ajaxbehavior#updateAjaxAttributes() should get component passed in
 throttling settings should be mutable to make it easier to override just the duration without having to figure out an id
 _javascript_ResourceReference#getDependencies() should return an appendable List
 XyzValidator#decorate() should work with IValidationError instead of ValidationError
Refactor checkgroup/radiogroup to make them non-components.
cdi 1.1 upgrade
 Upgrade dependencies to their latest stable version
Vote which experimental modules should become stable
Make css class strings used in the framework configurable
 Remove deprecated in Wicket 6.x classes and methods




This page lists the tasks the Wicket team agreed to implement for Wicket 7.0.

Ideas for Wicket 7.0 list some more ideas but to add a task in the Roadmap it has to be discussed first in the dev mailing list. Ideas with attached patch in Jira ticket or Pull Request have a bigger chance to be included in the Roadmap.

How to help us
	Pick a task from this wiki page or from Jira with "Fix Version" = 7.0.0.
	Implement it (+ tests when possible) and make a Pull Request at GitHub. We do not own the GitHub repo but it is easy to pull from your repos and apply the code. It is also easy to make code reviews and comment.
If there is no ticket in Jira for an entry in the Roadmap please create one. Always add a comment to the ticket in Jira when you start on it. Just to prevent two or  more people working on the same task.
	Add an entry to the Migration page with description of the change and short code sample of the old way and the new way of doing something.



Java 7 as a minimum

Java 7 has nice support for generics, better annotations, and Java 6 is reaching its end of life pretty soon.

Assignee: mgrigorov
Status: Done

Generics for org.apache.wicket.Component

Using Java 7 will allow to use the "diamonds operator", i.e. 
MyPage.java

  ComponentEntity c = new SomeComponent("id", model);



Assignee: 
Status:  Dropped  
Jira: WICKET-4930

Servlet 3 as a minimum

While we opted to not require servlet 3 for wicket 6, it has bitten us a couple of times solving issues in wicket 6. Servlet 3 has been out for ages, so we should move with the times.

Assignee: mgrigorov
Status: Done
Jira: WICKET-5167

Tickets in Jira with "Fix Version" = 7.0

PageParameters improvements


	read-only  Dropped 
	make it possible to differentiate between named indexed parameters and query string ones.
See WICKET-4594, http://markmail.org/thread/cc7yjwshqugj4wic, WICKET-4441



Assignee: 
Status: Not started

Minor API cleanups


	Rename renderHead(HtmlHeaderContainer) https://issues.apache.org/jira/browse/WICKET-4964
Assignee: mgrigorov
Status: Done
Jira: WICKET-4964



API Tweaks

SimpleFormComponentLabel should output the "required" class just like wicket:for
Assignee: mgrigorov
Status: Done
Jira: WICKET-5177

ajaxbehavior#updateAjaxAttributes() should get component passed in

otherwise referencing the component as needed in throttle settings is annoying



queryField.add(new AjaxFormComponentUpdatingBehavior("onkeydown") {
	protected void updateAjaxAttributes(AjaxRequestAttributes attributes) {
		attributes.setThrottlingSettings(new ThrottlingSettings(queryField.getMarkupId(), Duration.seconds(1)));
^


The component is easily reachable via AbstractAjaxBehavior#getComponent()

throttling settings should be mutable to make it easier to override just the duration without having to figure out an id
Status: Done
Assignee: mgrigorov
JIRA: WICKET-5173

_javascript_ResourceReference#getDependencies() should return an appendable List

so we can do


class MyReference extends _javascript_Reference {
  getDependencies() { List? list=super.getDependencies(); list.add(...); return list; }
}


Status: Done
Assignee: mgrigorov
Jira: WICKET-5124

XyzValidator#decorate() should work with IValidationError instead of ValidationError
Status: Done
Assignee: mgrigorov
Jira: WICKET-5174

Refactor 

[CONF] Apache Wicket Wicket 7.0 Roadmap

2013-06-27 Thread Martin Grigorov (Confluence)







Wicket 7.0 Roadmap
Page edited by Martin Grigorov


 Changes (1)
 




...
* getApplication().getCssSettings().setSortOrderDownClass(sort-order-down);  
Assignee: Status: not started Jira: [WICKET-5257|https://issues.apache.org/jira/browse/WICKET-5257] 
 h4. -Remove deprecated in Wicket 6.x classes and methods- 
...


Full Content



This page lists the tasks the Wicket team agreed to implement for Wicket 7.0.

 Java 7 as a minimum

 Generics for org.apache.wicket.Component

 Servlet 3 as a minimum
Tickets in Jira with "Fix Version" = 7.0


PageParameters improvements
Minor API cleanups


API Tweaks

 SimpleFormComponentLabel should output the "required" class just like wicket:for
 ajaxbehavior#updateAjaxAttributes() should get component passed in
 throttling settings should be mutable to make it easier to override just the duration without having to figure out an id
 _javascript_ResourceReference#getDependencies() should return an appendable List
 XyzValidator#decorate() should work with IValidationError instead of ValidationError
Refactor checkgroup/radiogroup to make them non-components.
cdi 1.1 upgrade
 Upgrade dependencies to their latest stable version
Vote which experimental modules should become stable
Make css class strings used in the framework configurable
 Remove deprecated in Wicket 6.x classes and methods




This page lists the tasks the Wicket team agreed to implement for Wicket 7.0.

Ideas for Wicket 7.0 list some more ideas but to add a task in the Roadmap it has to be discussed first in the dev mailing list. Ideas with attached patch in Jira ticket or Pull Request have a bigger chance to be included in the Roadmap.

How to help us
	Pick a task from this wiki page or from Jira with "Fix Version" = 7.0.0.
	Implement it (+ tests when possible) and make a Pull Request at GitHub. We do not own the GitHub repo but it is easy to pull from your repos and apply the code. It is also easy to make code reviews and comment.
If there is no ticket in Jira for an entry in the Roadmap please create one. Always add a comment to the ticket in Jira when you start on it. Just to prevent two or  more people working on the same task.
	Add an entry to the Migration page with description of the change and short code sample of the old way and the new way of doing something.



Java 7 as a minimum

Java 7 has nice support for generics, better annotations, and Java 6 is reaching its end of life pretty soon.

Assignee: mgrigorov
Status: Done

Generics for org.apache.wicket.Component

Using Java 7 will allow to use the "diamonds operator", i.e. 
MyPage.java

  ComponentEntity c = new SomeComponent("id", model);



Assignee: 
Status:  Dropped  
Jira: WICKET-4930

Servlet 3 as a minimum

While we opted to not require servlet 3 for wicket 6, it has bitten us a couple of times solving issues in wicket 6. Servlet 3 has been out for ages, so we should move with the times.

Assignee: mgrigorov
Status: Done
Jira: WICKET-5167

Tickets in Jira with "Fix Version" = 7.0

PageParameters improvements


	read-only  Dropped 
	make it possible to differentiate between named indexed parameters and query string ones.
See WICKET-4594, http://markmail.org/thread/cc7yjwshqugj4wic, WICKET-4441



Assignee: 
Status: Not started

Minor API cleanups


	Rename renderHead(HtmlHeaderContainer) https://issues.apache.org/jira/browse/WICKET-4964
Assignee: mgrigorov
Status: Done
Jira: WICKET-4964



API Tweaks

SimpleFormComponentLabel should output the "required" class just like wicket:for
Assignee: mgrigorov
Status: Done
Jira: WICKET-5177

ajaxbehavior#updateAjaxAttributes() should get component passed in

otherwise referencing the component as needed in throttle settings is annoying



queryField.add(new AjaxFormComponentUpdatingBehavior("onkeydown") {
	protected void updateAjaxAttributes(AjaxRequestAttributes attributes) {
		attributes.setThrottlingSettings(new ThrottlingSettings(queryField.getMarkupId(), Duration.seconds(1)));
^


The component is easily reachable via AbstractAjaxBehavior#getComponent()

throttling settings should be mutable to make it easier to override just the duration without having to figure out an id
Status: Done
Assignee: mgrigorov
JIRA: WICKET-5173

_javascript_ResourceReference#getDependencies() should return an appendable List

so we can do


class MyReference extends _javascript_Reference {
  getDependencies() { List? list=super.getDependencies(); list.add(...); return list; }
}


Status: Done
Assignee: mgrigorov
Jira: WICKET-5124

XyzValidator#decorate() should work with IValidationError instead of 

[CONF] Apache Wicket Migration to Wicket 7.0

2013-06-26 Thread Martin Grigorov (Confluence)







Migration to Wicket 7.0
Page edited by Martin Grigorov


 Changes (1)
 




...
org.apache.wicket.Component#setResponsePage(page) just delegates to org.apache.wicket.request.cycle.RequestCycle#setResponsePage() that required just IRequestablePage.  
h5. AutoCompleteTextField doesnt support _useHideShowCoveredIEFix_ setting [WICKET-5130|https://issues.apache.org/jira/browse/WICKET-5130]  _useHideShowCoveredIEFix_ setting was needed for IE7 support.  This version of IE is not supported officially anymore and this setting has been removed.  
h3. Behavior changes  
...


Full Content

Migrating to Wicket 7.0



Environment

Wicket 7.0 requires at least Java 7
Wicket 7.0 requires Servlet 3.0

The HTTP response is not flushed automatically when the request is started in asynchronous mode. WICKET-5152


API changes


org/apache/wicket/core/util/io/SerializableChecker is replaced with org.apache.wicket.core.util.objects.checker.CheckingObjectOutputStream WICKET-4817
org/apache/wicket/markup/html/border/BoxBorder is removed with no replacement WICKET-4966.
org.apache.wicket.Component#renderHead(HtmlHeaderContainer) is renamed to Component#internalRenderHead(HtmlHeaderContainer) WICKET-4964
org.apache.wicket.request.resource.ResourceReference#getDependencies() now returns a mutable ListHeaderItem WICKET-5124
org.apache.wicket.model.StringResourceModel constructor accepts IModelString for its default value WICKET-4972
org.apache.wicket.extensions.validation.validator.+Xyz+Validator#decorate() now works with IValidationError WICKET-5174
org.apache.wicket.ajax.attributes.AjaxRequestAttributes#setAllowDefault is renamed to #setPreventDefault WICKET-5197
org.apache.wicket.ajax.attributes.AjaxRequestAttributes#eventPropagation is now BUBBLE by default WICKET-5198
org.apache.wicket.ajax.form.AjaxFormValidatingBehavior doesn't use static methods anymore WICKET-5196
org.apache.wicket.ajax.AjaxRequestTarget.IListener#updateAjaxAttributes() is introduced WICKET-5212
org.apache.wicket.ISessionListener#onUnbound(String) is added WICKET-5213
(Base)WicketTester uses org.junit.Assert instead of junit.framework.Assert
org.apache.wicket.Component#setMetaData() value could be only a Serializable WICKET-5227
org.apache.wicket.Application#getHeaderContributorListenerCollection() is renamed to #getHeaderContributorListeners()
org.apache.wicket.authorization.IAuthorizationStrategy#isResourceAuthorized(IResource, PageParameters) is introduced WICKET-5012
org.apache.wicket.Component#setResponsePage() now accepts org.apache.wicket.request.component.IRequestablePage instead of org.apache.wicket.Page
AutoCompleteTextField doesn't support useHideShowCoveredIEFix setting WICKET-5130


Behavior changes


org.apache.wicket.request.Url#getQueryString WICKET-4664
org.apache.wicket.request.http.WebResponse encodes the value of the "filename" in Content-Disposition header WICKET-4934
org.apache.wicket.markup.html.form.FormComponentLabel outputs "required", "disabled" and "error" classes when its form component is either required, disabled or invalid. WICKET-5177
org.apache.wicket.markup.html.panel.FeedbackPanel Do not set CSS class on the li  span element for a feedback message WICKET-4831
AjaxEventBehavior doesn't prevent the default behavior of the _javascript_ event WICKET-5197
Ajax behaviors let _javascript_ events bubble by default WICKET-5198
PackageTextTemplate loads its content lazily WICKET-4579
AbstractLink no longer alters its markup to render itself as disabled WICKET-4904
Button no longer silently ignores exceptions WICKET-5235


Deprecated classes/methods/fields are removed WICKET-5201


AbstractDefaultAjaxBehavior's #getSuccessHandler(), #getFailureHandler(), #getChannel() and #getPrecondition() are removed.
The old Tree component in wicket-extensions is removed.
Wicket.Window.unloadConfirmation has been removed WICKET-5246


Dependency updates


Environment

Wicket 7.0 requires at least Java 7

Wicket 7.0 requires Servlet 3.0

The HTTP response is not flushed automatically when the request is started in asynchronous mode. WICKET-5152

This is an improvement in Wicket 7.0 which should not affect any application migrating from Wicket 6.x. But if you use Servlet 3.0's AsyncContext in IResource in Wicket 7 then make sure that your code flushes the http response after completing the request.

API changes

org/apache/wicket/core/util/io/SerializableChecker is replaced with org.apache.wicket.core.util.objects.checker.CheckingObjectOutputStream WICKET-4817

CheckingObjectOutputStream accepts a list of 

[CONF] Apache Wicket Index

2013-06-24 Thread Martijn Dashorst (Confluence)







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. 

[CONF] Apache Wicket Migrating to Wicket 1.3

2013-06-24 Thread Martijn Dashorst (Confluence)







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

2013-06-24 Thread Anonymous (Confluence)







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









[CONF] Apache Wicket Migration to Wicket 7.0

2013-06-21 Thread confluence







Migration to Wicket 7.0
Page edited by Cedric Gatay


Comment:
Wicket-5246


 Changes (12)
 




...
 h5. org.apache.wicket.request.Url#getQueryString [WICKET-4664|https://issues.apache.org/jira/browse/WICKET-4664] 
Url#getQueryString() now behaves as HttpServletRequest behaves :  
 
 * returns the query string without the leading ?  * returns null when there is no query string 
Url#getQueryString() now behaves as HttpServletRequest behaves : 
 
* returns the query string without the leading ? * returns null when there is no query string  
RequestUtils#decodeParameters() now strips the ? from the output value.  
...
The value of the file name used in Content-Disposition response header can contain characters which should be [encoded|http://greenbytes.de/tech/tc2231/]  
h5. org.apache.wicket.markup.html.form.FormComponentLabel outputs required, disabled and error classes when its form component is either required, disabled or invalid.   [WICKET-5177|https://issues.apache.org/jira/browse/WICKET-5177] 
 
This way it is in sync with AutoLabel (the auto component that is used for wicket:for attribute).  
...
 h5. AjaxEventBehavior doesnt prevent the default behavior of the _javascript_ event [WICKET-5197|https://issues.apache.org/jira/browse/WICKET-5197] 
 
From now on only AjaxFallback*\* components prevent the default _javascript_ event behavior so only the Ajax call is made when _javascript_ is enabled in the browser. 
If the default behavior should be prevented in any use case then use: {code:borderStyle=solid} 
...
 h5. Ajax behaviors let _javascript_ events bubble by default [WICKET-5198|https://issues.apache.org/jira/browse/WICKET-5198] 
 
If _javascript_ events should not bubble then use: {code:borderStyle=solid} 
...
 h5. Button no longer silently ignores exceptions [WICKET-5235|https://issues.apache.org/jira/browse/WICKET-5235] 
... when it renders its model into the value attribute.  
 
... when it renders its model into the value attribute.  
h3. Deprecated classes/methods/fields are removed [WICKET-5201|https://issues.apache.org/jira/browse/WICKET-5201]  
...
It was based on Swing APIs and many people complained about this. Use the new Tree component introduced in Wicket 6.0.0 instead.  
h5. Wicket.Window.unloadConfirmation has been removed [WICKET-5246|https://issues.apache.org/jira/browse/WICKET-5246]  In Wicket 6, Modal settings have been introduced, deprecating the old way of disabling unloadConfirmation. Please consider updating your _javascript_ to remove calls to Wicket.Window.unloadConfirmation.  
h3. Dependency updates  
...


Full Content

Migrating to Wicket 7.0



Environment

Wicket 7.0 requires at least Java 7
Wicket 7.0 requires Servlet 3.0

The HTTP response is not flushed automatically when the request is started in asynchronous mode. WICKET-5152


API changes


org/apache/wicket/core/util/io/SerializableChecker is replaced with org.apache.wicket.core.util.objects.checker.CheckingObjectOutputStream WICKET-4817
org/apache/wicket/markup/html/border/BoxBorder is removed with no replacement WICKET-4966.
org.apache.wicket.Component#renderHead(HtmlHeaderContainer) is renamed to Component#internalRenderHead(HtmlHeaderContainer) WICKET-4964
org.apache.wicket.request.resource.ResourceReference#getDependencies() now returns a mutable ListHeaderItem WICKET-5124
org.apache.wicket.model.StringResourceModel constructor accepts IModelString for its default value WICKET-4972
org.apache.wicket.extensions.validation.validator.+Xyz+Validator#decorate() now works with IValidationError WICKET-5174
org.apache.wicket.ajax.attributes.AjaxRequestAttributes#setAllowDefault is renamed to #setPreventDefault WICKET-5197
org.apache.wicket.ajax.attributes.AjaxRequestAttributes#eventPropagation is now BUBBLE by default WICKET-5198
org.apache.wicket.ajax.form.AjaxFormValidatingBehavior doesn't use static methods anymore WICKET-5196
org.apache.wicket.ajax.AjaxRequestTarget.IListener#updateAjaxAttributes() is introduced WICKET-5212
org.apache.wicket.ISessionListener#onUnbound(String) is added WICKET-5213
(Base)WicketTester uses org.junit.Assert instead of junit.framework.Assert
org.apache.wicket.Component#setMetaData() value could be only a Serializable WICKET-5227

[CONF] Apache Wicket Migration to Wicket 7.0

2013-06-20 Thread confluence







Migration to Wicket 7.0
Page edited by Martin Grigorov


 Changes (1)
 




...
Wicket 7.x supports authorization for requests to resources (IResource) additionally to authorization for components.  
h5. org.apache.wicket.Component#setResponsePage() now accepts org.apache.wicket.request.component.IRequestablePage instead of org.apache.wicket.Page org.apache.wicket.Component#setResponsePage(page) just delegates to org.apache.wicket.request.cycle.RequestCycle#setResponsePage() that required just IRequestablePage.  
h3. Behavior changes  
...


Full Content

Migrating to Wicket 7.0



Environment

Wicket 7.0 requires at least Java 7
Wicket 7.0 requires Servlet 3.0

The HTTP response is not flushed automatically when the request is started in asynchronous mode. WICKET-5152


API changes


org/apache/wicket/core/util/io/SerializableChecker is replaced with org.apache.wicket.core.util.objects.checker.CheckingObjectOutputStream WICKET-4817
org/apache/wicket/markup/html/border/BoxBorder is removed with no replacement WICKET-4966.
org.apache.wicket.Component#renderHead(HtmlHeaderContainer) is renamed to Component#internalRenderHead(HtmlHeaderContainer) WICKET-4964
org.apache.wicket.request.resource.ResourceReference#getDependencies() now returns a mutable ListHeaderItem WICKET-5124
org.apache.wicket.model.StringResourceModel constructor accepts IModelString for its default value WICKET-4972
org.apache.wicket.extensions.validation.validator.+Xyz+Validator#decorate() now works with IValidationError WICKET-5174
org.apache.wicket.ajax.attributes.AjaxRequestAttributes#setAllowDefault is renamed to #setPreventDefault WICKET-5197
org.apache.wicket.ajax.attributes.AjaxRequestAttributes#eventPropagation is now BUBBLE by default WICKET-5198
org.apache.wicket.ajax.form.AjaxFormValidatingBehavior doesn't use static methods anymore WICKET-5196
org.apache.wicket.ajax.AjaxRequestTarget.IListener#updateAjaxAttributes() is introduced WICKET-5212
org.apache.wicket.ISessionListener#onUnbound(String) is added WICKET-5213
(Base)WicketTester uses org.junit.Assert instead of junit.framework.Assert
org.apache.wicket.Component#setMetaData() value could be only a Serializable WICKET-5227
org.apache.wicket.Application#getHeaderContributorListenerCollection() is renamed to #getHeaderContributorListeners()
org.apache.wicket.authorization.IAuthorizationStrategy#isResourceAuthorized(IResource, PageParameters) is introduced WICKET-5012
org.apache.wicket.Component#setResponsePage() now accepts org.apache.wicket.request.component.IRequestablePage instead of org.apache.wicket.Page


Behavior changes


org.apache.wicket.request.Url#getQueryString WICKET-4664
org.apache.wicket.request.http.WebResponse encodes the value of the "filename" in Content-Disposition header WICKET-4934
org.apache.wicket.markup.html.form.FormComponentLabel outputs "required", "disabled" and "error" classes when its form component is either required, disabled or invalid. WICKET-5177
org.apache.wicket.markup.html.panel.FeedbackPanel Do not set CSS class on the li  span element for a feedback message WICKET-4831
AjaxEventBehavior doesn't prevent the default behavior of the _javascript_ event WICKET-5197
Ajax behaviors let _javascript_ events bubble by default WICKET-5198
PackageTextTemplate loads its content lazily WICKET-4579
AbstractLink no longer alters its markup to render itself as disabled WICKET-4904
Button no longer silently ignores exceptions WICKET-5235


Deprecated classes/methods/fields are removed WICKET-5201


AbstractDefaultAjaxBehavior's #getSuccessHandler(), #getFailureHandler(), #getChannel() and #getPrecondition() are removed.
The old Tree component in wicket-extensions is removed.


Dependency updates


Environment

Wicket 7.0 requires at least Java 7

Wicket 7.0 requires Servlet 3.0

The HTTP response is not flushed automatically when the request is started in asynchronous mode. WICKET-5152
This is an improvement in Wicket 7.0 which should not affect any application migrating from Wicket 6.x. But if you use Servlet 3.0's AsyncContext in IResource in Wicket 7 then make sure that your code flushes the http response after completing the request.

API changes

org/apache/wicket/core/util/io/SerializableChecker is replaced with org.apache.wicket.core.util.objects.checker.CheckingObjectOutputStream WICKET-4817
CheckingObjectOutputStream accepts a list of org.apache.wicket.core.util.objects.checker.IObjectChecker objects which are used to check for different kind of problems during object serialization. Commit diff: d0441059e0

org/apache/wicket/markup/html/border/BoxBorder 

[CONF] Apache Wicket Websites based on Wicket

2013-06-19 Thread confluence







Websites based on Wicket
Page edited by Ian Marshall


Comment:
Added MarketTree.co.uk to the list of public sites


 Changes (1)
 




...
* *Loved.by* \- [a simple way to get rewarded for your recommendations|http://loved.by] includes Facebook and Twitter integration * *lyhoo.com.cn* \- [Lyhoo|http://lyhoo.com.cn] A personalized product search, user needs matching and alerting site in Chinese. Migrated from Spring MVC. 
* *MarketTree.co.uk* \- [MarketTree.co.uk|http://MarketTree.co.uk] Trading exchange which uses Wicket throughout. 
* *mauswerks.net* \- [mauswerks.net|http://www.mauswerks.net] US-based ISV/ISP focused on Java application hosting, Brix CMS, and custom transactional solutions. * *me.dium.com* \- [Me.dium.com|http://me.dium.com] Social browsing company bringing a unique experience to the online world. 
...
* *www.songtexte.com* \- [Songtexte.com|http://www.songtexte.com/] A social network for music geeks including lyrics, videos,  Uses Wicket, Spring, Hibernate. * *www.svnsite.com* \- [SVNsite Subversion Hosting|http://www.svnsite.com] \- commercial SVN hosting service built on top of Wicket, JPA and Wicket RAD. 
* *www.srmvision.com* \- [SRMvision ITIL  e-SCM platform|http://www.srmvision.com] \- SRMvision is a whole platform allowing IT departments to manage their activities : assets, cases, services, requests... The application is made using Wicket + JPA + EJBs. 
* *taivallus.fi* \- [Taivallus|http://taivallus.fi] Social networking portal for people interested in travelling. * *www.teachus.dk* \- [TeachUs|http://www.teachus.dk/] Open Source booking system designed for teachers with one-to-one tuition. [Online demo|http://demo.teachus.dk/] (login with leif/leif). [Project website|http://dev.teachus.dk] 
...


Full Content

You can also submit your website to Built with Wicket, along with a screenshot.

(sorted alphabetically by web URL)

Public Sites


	AirBank.cz  A web of a bank and internet banking app.
	Vodafone web  See Vodafone Park
	TipSpot.com
	appgravity.com  appgravity.com Android App search engine.
	www.icecreamwear.com  www.icecreamwear.com Multilingual commercial website developed in Wicket: Personalized Yoga Clothing and Fitness Apparel for Women.
	www.fira.nl  www.fira.nl Sustainability rating system using both wicket and brix.
	pixmeaway.com  PixMeAway.cz Find your travel destination by pictures or get inspired for planning your next vacation
	pohlidame.cz  Pohlidame.cz Monitoring of a state web service called "Insolvenční rejstřík".
	preventivoonline.com  www.preventivoonline.com Italian search engine companies, with small business blog service for each registered company and other services.
	1100ad.com  1100AD Online massive multiplayer strategy game (web site on php, but the game itself on Wicket)
	8vents.com  8vents Message, Photo, File sharing service.
	beTurtle.com  beTurtle 'Green' social networking and information portal.
	Braziland  Braziland Brazilian dance and capoeira shows and classes based in Nice, Côte d'Azur, France.
	cronmaker.com  CronMaker A utility to generate cron expressions.
	datawink.com  datawink an online chart pattern recognition search engine
	dbserver.ics.upjs.sk/davano  Davano Collaborative storytelling and Play-by-post-RPG supporting system. Rewritten from from PHP to Wicket+Spring+Hibernate.
	deect.com  Deect Multilingual dictionary, lexicon, language-learning portal
	Equity Market Data.com  EquityMarketData Financial Data Provider
	evri.com  Evri Real-time news
	ewmix.com  eWmix.com Brazilian e-commerce website.
	exerciselog.eu, trainingslog.dk, træningslog.dk  Exerciselog An exercise log for your monitoring your progress.(different sites branded a bit)
	fabulously40.com  Fabulously40 40 woman's social network. Rails site gone wicket.
	genietown.com  GenieTown GenieTown is building a unique online community of customers and service providers. The site is designed to restore the lost experience of Main Street, where business was conducted in a personal way, the resources were local, and reputation was paramount.
	GreyWay.com  GreyWay.com Digital Signature and Professional Portfolio Management Web Site, based on Apache Wicket 1.4.7 and myBatis 3.01 ORM libraries. Open to General Public.
	homestaybay.com  HomestayBay An online homestay community that connects international ESL students with host families.
	home-account.com  Billed as "The best way to get a mortgage loan".
	insidewood.lib.ncsu.edu  InsideWood InsideWood contains brief descriptions of fossil and modern woody dicots (hardwoods) from more than 200 plant families, and is searchable by an interactive, multiple-entry key. There are over 34,000 images 

[CONF] Apache Wicket Migration to Wicket 7.0

2013-06-18 Thread confluence







Migration to Wicket 7.0
Page edited by Martin Grigorov


 Changes (1)
 




...
Component and Sessions meta data must be serializable.  
h5. org.apache.wicket.Application#getHeaderContributorListenerCollection() is renamed to #getHeaderContributorListeners() This way it is consistent with the other #getXyzListeners() methods in Application class  
h3. Behavior changes  
...


Full Content

Migrating to Wicket 7.0



Environment

Wicket 7.0 requires at least Java 7
Wicket 7.0 requires Servlet 3.0

The HTTP response is not flushed automatically when the request is started in asynchronous mode. WICKET-5152


API changes


org/apache/wicket/core/util/io/SerializableChecker is replaced with org.apache.wicket.core.util.objects.checker.CheckingObjectOutputStream WICKET-4817
org/apache/wicket/markup/html/border/BoxBorder is removed with no replacement WICKET-4966.
org.apache.wicket.Component#renderHead(HtmlHeaderContainer) is renamed to Component#internalRenderHead(HtmlHeaderContainer) WICKET-4964
org.apache.wicket.request.resource.ResourceReference#getDependencies() now returns a mutable ListHeaderItem WICKET-5124
org.apache.wicket.model.StringResourceModel constructor accepts IModelString for its default value WICKET-4972
org.apache.wicket.extensions.validation.validator.+Xyz+Validator#decorate() now works with IValidationError WICKET-5174
org.apache.wicket.ajax.attributes.AjaxRequestAttributes#setAllowDefault is renamed to #setPreventDefault WICKET-5197
org.apache.wicket.ajax.attributes.AjaxRequestAttributes#eventPropagation is now BUBBLE by default WICKET-5198
org.apache.wicket.ajax.form.AjaxFormValidatingBehavior doesn't use static methods anymore WICKET-5196
org.apache.wicket.ajax.AjaxRequestTarget.IListener#updateAjaxAttributes() is introduced WICKET-5212
org.apache.wicket.ISessionListener#onUnbound(String) is added WICKET-5213
(Base)WicketTester uses org.junit.Assert instead of junit.framework.Assert
org.apache.wicket.Component#setMetaData() value could be only a Serializable WICKET-5227
org.apache.wicket.Application#getHeaderContributorListenerCollection() is renamed to #getHeaderContributorListeners()


Behavior changes


org.apache.wicket.request.Url#getQueryString WICKET-4664
org.apache.wicket.request.http.WebResponse encodes the value of the "filename" in Content-Disposition header WICKET-4934
org.apache.wicket.markup.html.form.FormComponentLabel outputs "required", "disabled" and "error" classes when its form component is either required, disabled or invalid. WICKET-5177
org.apache.wicket.markup.html.panel.FeedbackPanel Do not set CSS class on the li  span element for a feedback message WICKET-4831
AjaxEventBehavior doesn't prevent the default behavior of the _javascript_ event WICKET-5197
Ajax behaviors let _javascript_ events bubble by default WICKET-5198
PackageTextTemplate loads its content lazily WICKET-4579
AbstractLink no longer alters its markup to render itself as disabled WICKET-4904
Button no longer silently ignores exceptions WICKET-5235


Deprecated classes/methods/fields are removed WICKET-5201


AbstractDefaultAjaxBehavior's #getSuccessHandler(), #getFailureHandler(), #getChannel() and #getPrecondition() are removed.
The old Tree component in wicket-extensions is removed.


Dependency updates


Environment

Wicket 7.0 requires at least Java 7

Wicket 7.0 requires Servlet 3.0

The HTTP response is not flushed automatically when the request is started in asynchronous mode. WICKET-5152
This is an improvement in Wicket 7.0 which should not affect any application migrating from Wicket 6.x. But if you use Servlet 3.0's AsyncContext in IResource in Wicket 7 then make sure that your code flushes the http response after completing the request.

API changes

org/apache/wicket/core/util/io/SerializableChecker is replaced with org.apache.wicket.core.util.objects.checker.CheckingObjectOutputStream WICKET-4817
CheckingObjectOutputStream accepts a list of org.apache.wicket.core.util.objects.checker.IObjectChecker objects which are used to check for different kind of problems during object serialization. Commit diff: d0441059e0

org/apache/wicket/markup/html/border/BoxBorder is removed with no replacement WICKET-4966.
BoxBorder class has been deprecated in Wicket 6.x series

org.apache.wicket.Component#renderHead(HtmlHeaderContainer) is renamed to Component#internalRenderHead(HtmlHeaderContainer) WICKET-4964
Component#renderHead(HtmlHeaderContainer) was very similar to the usually used Component#renderHead(IHeaderResponse). So it has been renamed to avoid any confusions.


[CONF] Apache Wicket Migration to Wicket 7.0

2013-06-18 Thread confluence







Migration to Wicket 7.0
Page edited by Martin Grigorov


 Changes (1)
 




...
This way it is consistent with the other #getXyzListeners() methods in Application class  
h5. org.apache.wicket.authorization.IAuthorizationStrategy#isResourceAuthorized(IResource, PageParameters) is introduced [WICKET-5012|https://issues.apache.org/jira/browse/WICKET-5012]  Wicket 7.x supports authorization for requests to resources (IResource) additionally to authorization for components.  
h3. Behavior changes  
...


Full Content

Migrating to Wicket 7.0



Environment

Wicket 7.0 requires at least Java 7
Wicket 7.0 requires Servlet 3.0

The HTTP response is not flushed automatically when the request is started in asynchronous mode. WICKET-5152


API changes


org/apache/wicket/core/util/io/SerializableChecker is replaced with org.apache.wicket.core.util.objects.checker.CheckingObjectOutputStream WICKET-4817
org/apache/wicket/markup/html/border/BoxBorder is removed with no replacement WICKET-4966.
org.apache.wicket.Component#renderHead(HtmlHeaderContainer) is renamed to Component#internalRenderHead(HtmlHeaderContainer) WICKET-4964
org.apache.wicket.request.resource.ResourceReference#getDependencies() now returns a mutable ListHeaderItem WICKET-5124
org.apache.wicket.model.StringResourceModel constructor accepts IModelString for its default value WICKET-4972
org.apache.wicket.extensions.validation.validator.+Xyz+Validator#decorate() now works with IValidationError WICKET-5174
org.apache.wicket.ajax.attributes.AjaxRequestAttributes#setAllowDefault is renamed to #setPreventDefault WICKET-5197
org.apache.wicket.ajax.attributes.AjaxRequestAttributes#eventPropagation is now BUBBLE by default WICKET-5198
org.apache.wicket.ajax.form.AjaxFormValidatingBehavior doesn't use static methods anymore WICKET-5196
org.apache.wicket.ajax.AjaxRequestTarget.IListener#updateAjaxAttributes() is introduced WICKET-5212
org.apache.wicket.ISessionListener#onUnbound(String) is added WICKET-5213
(Base)WicketTester uses org.junit.Assert instead of junit.framework.Assert
org.apache.wicket.Component#setMetaData() value could be only a Serializable WICKET-5227
org.apache.wicket.Application#getHeaderContributorListenerCollection() is renamed to #getHeaderContributorListeners()
org.apache.wicket.authorization.IAuthorizationStrategy#isResourceAuthorized(IResource, PageParameters) is introduced WICKET-5012


Behavior changes


org.apache.wicket.request.Url#getQueryString WICKET-4664
org.apache.wicket.request.http.WebResponse encodes the value of the "filename" in Content-Disposition header WICKET-4934
org.apache.wicket.markup.html.form.FormComponentLabel outputs "required", "disabled" and "error" classes when its form component is either required, disabled or invalid. WICKET-5177
org.apache.wicket.markup.html.panel.FeedbackPanel Do not set CSS class on the li  span element for a feedback message WICKET-4831
AjaxEventBehavior doesn't prevent the default behavior of the _javascript_ event WICKET-5197
Ajax behaviors let _javascript_ events bubble by default WICKET-5198
PackageTextTemplate loads its content lazily WICKET-4579
AbstractLink no longer alters its markup to render itself as disabled WICKET-4904
Button no longer silently ignores exceptions WICKET-5235


Deprecated classes/methods/fields are removed WICKET-5201


AbstractDefaultAjaxBehavior's #getSuccessHandler(), #getFailureHandler(), #getChannel() and #getPrecondition() are removed.
The old Tree component in wicket-extensions is removed.


Dependency updates


Environment

Wicket 7.0 requires at least Java 7

Wicket 7.0 requires Servlet 3.0

The HTTP response is not flushed automatically when the request is started in asynchronous mode. WICKET-5152
This is an improvement in Wicket 7.0 which should not affect any application migrating from Wicket 6.x. But if you use Servlet 3.0's AsyncContext in IResource in Wicket 7 then make sure that your code flushes the http response after completing the request.

API changes

org/apache/wicket/core/util/io/SerializableChecker is replaced with org.apache.wicket.core.util.objects.checker.CheckingObjectOutputStream WICKET-4817
CheckingObjectOutputStream accepts a list of org.apache.wicket.core.util.objects.checker.IObjectChecker objects which are used to check for different kind of problems during object serialization. Commit diff: d0441059e0

org/apache/wicket/markup/html/border/BoxBorder is removed with no replacement WICKET-4966.
BoxBorder class has been deprecated in Wicket 6.x series

org.apache.wicket.Component#renderHead(HtmlHeaderContainer) is renamed to 

[CONF] Apache Wicket Migration to Wicket 7.0

2013-06-14 Thread confluence







Migration to Wicket 7.0
Page edited by Sven Meier


Comment:
WICKET-5235


 Changes (1)
 




...
The href and disabled attributes are still added/removed by AbstractLink as required. But no further mangling of markup is performed. org.apache.wicket.markup.html.link.DisabledLinkBehavior can be used to restore the pre-Wicket-7.x representation of disabled links with emspan/span/em (note that em and span swap their position though). If the old behavior is need it can be easily re-applied by using org.apache.wicket.markup.html.link.DisabledLinkBehavior.LinkInstantiationListener.  
h5. Button no longer silently ignores exceptions [WICKET-5235|https://issues.apache.org/jira/browse/WICKET-5235] ... when it renders its model into the value attribute.   
h3. Deprecated classes/methods/fields are removed [WICKET-5201|https://issues.apache.org/jira/browse/WICKET-5201]  
...


Full Content

Migrating to Wicket 7.0



Environment

Wicket 7.0 requires at least Java 7
Wicket 7.0 requires Servlet 3.0

The HTTP response is not flushed automatically when the request is started in asynchronous mode. WICKET-5152


API changes


org/apache/wicket/core/util/io/SerializableChecker is replaced with org.apache.wicket.core.util.objects.checker.CheckingObjectOutputStream WICKET-4817
org/apache/wicket/markup/html/border/BoxBorder is removed with no replacement WICKET-4966.
org.apache.wicket.Component#renderHead(HtmlHeaderContainer) is renamed to Component#internalRenderHead(HtmlHeaderContainer) WICKET-4964
org.apache.wicket.request.resource.ResourceReference#getDependencies() now returns a mutable ListHeaderItem WICKET-5124
org.apache.wicket.model.StringResourceModel constructor accepts IModelString for its default value WICKET-4972
org.apache.wicket.extensions.validation.validator.+Xyz+Validator#decorate() now works with IValidationError WICKET-5174
org.apache.wicket.ajax.attributes.AjaxRequestAttributes#setAllowDefault is renamed to #setPreventDefault WICKET-5197
org.apache.wicket.ajax.attributes.AjaxRequestAttributes#eventPropagation is now BUBBLE by default WICKET-5198
org.apache.wicket.ajax.form.AjaxFormValidatingBehavior doesn't use static methods anymore WICKET-5196
org.apache.wicket.ajax.AjaxRequestTarget.IListener#updateAjaxAttributes() is introduced WICKET-5212
org.apache.wicket.ISessionListener#onUnbound(String) is added WICKET-5213
(Base)WicketTester uses org.junit.Assert instead of junit.framework.Assert
org.apache.wicket.Component#setMetaData() value could be only a Serializable WICKET-5227


Behavior changes


org.apache.wicket.request.Url#getQueryString WICKET-4664
org.apache.wicket.request.http.WebResponse encodes the value of the "filename" in Content-Disposition header WICKET-4934
org.apache.wicket.markup.html.form.FormComponentLabel outputs "required", "disabled" and "error" classes when its form component is either required, disabled or invalid. WICKET-5177
org.apache.wicket.markup.html.panel.FeedbackPanel Do not set CSS class on the li  span element for a feedback message WICKET-4831
AjaxEventBehavior doesn't prevent the default behavior of the _javascript_ event WICKET-5197
Ajax behaviors let _javascript_ events bubble by default WICKET-5198
PackageTextTemplate loads its content lazily WICKET-4579
AbstractLink no longer alters its markup to render itself as disabled WICKET-4904
Button no longer silently ignores exceptions WICKET-5235


Deprecated classes/methods/fields are removed WICKET-5201


AbstractDefaultAjaxBehavior's #getSuccessHandler(), #getFailureHandler(), #getChannel() and #getPrecondition() are removed.
The old Tree component in wicket-extensions is removed.


Dependency updates


Environment

Wicket 7.0 requires at least Java 7

Wicket 7.0 requires Servlet 3.0

The HTTP response is not flushed automatically when the request is started in asynchronous mode. WICKET-5152
This is an improvement in Wicket 7.0 which should not affect any application migrating from Wicket 6.x. But if you use Servlet 3.0's AsyncContext in IResource in Wicket 7 then make sure that your code flushes the http response after completing the request.

API changes

org/apache/wicket/core/util/io/SerializableChecker is replaced with org.apache.wicket.core.util.objects.checker.CheckingObjectOutputStream WICKET-4817
CheckingObjectOutputStream accepts a list of org.apache.wicket.core.util.objects.checker.IObjectChecker objects which are used to check for different kind of problems during object serialization. Commit diff: d0441059e0

org/apache/wicket/markup/html/border/BoxBorder is removed with no replacement WICKET-4966.

[CONF] Apache Wicket Migration to Wicket 7.0

2013-06-13 Thread confluence







Migration to Wicket 7.0
Page edited by Martin Grigorov


 Changes (1)
 




...
It was based on Swing APIs and many people complained about this. Use the new Tree component introduced in Wicket 6.0.0 instead.  
h5. PackageTextTemplate loads its content lazily [WICKET-4579|https://issues.apache.org/jira/browse/WICKET-4579] PackageTextTemplate will load its content at first usage of PackageTextTemplate#toString() or PackageTextTemplate#interpolate(Map) emthods. If its style/locale/variation/encoding are changed then it will reload its content. 
 h3. Dependency updates 
...


Full Content

Migrating to Wicket 7.0



Environment

Wicket 7.0 requires at least Java 7
Wicket 7.0 requires Servlet 3.0

The HTTP response is not flushed automatically when the request is started in asynchronous mode. WICKET-5152


API changes


org/apache/wicket/core/util/io/SerializableChecker is replaced with org.apache.wicket.core.util.objects.checker.CheckingObjectOutputStream WICKET-4817
org/apache/wicket/markup/html/border/BoxBorder is removed with no replacement WICKET-4966.
org.apache.wicket.Component#renderHead(HtmlHeaderContainer) is renamed to Component#internalRenderHead(HtmlHeaderContainer) WICKET-4964
org.apache.wicket.request.resource.ResourceReference#getDependencies() now returns a mutable ListHeaderItem WICKET-5124
org.apache.wicket.model.StringResourceModel constructor accepts IModelString for its default value WICKET-4972
org.apache.wicket.extensions.validation.validator.+Xyz+Validator#decorate() now works with IValidationError WICKET-5174
org.apache.wicket.ajax.attributes.AjaxRequestAttributes#setAllowDefault is renamed to #setPreventDefault WICKET-5197
org.apache.wicket.ajax.attributes.AjaxRequestAttributes#eventPropagation is now BUBBLE by default WICKET-5198
org.apache.wicket.ajax.form.AjaxFormValidatingBehavior doesn't use static methods anymore WICKET-5196
org.apache.wicket.ajax.AjaxRequestTarget.IListener#updateAjaxAttributes() is introduced WICKET-5212
org.apache.wicket.ISessionListener#onUnbound(String) is added WICKET-5213
(Base)WicketTester uses org.junit.Assert instead of junit.framework.Assert
org.apache.wicket.Component#setMetaData() value could be only a Serializable WICKET-5227


Behavior changes


org.apache.wicket.request.Url#getQueryString WICKET-4664
org.apache.wicket.request.http.WebResponse encodes the value of the "filename" in Content-Disposition header WICKET-4934
org.apache.wicket.markup.html.form.FormComponentLabel outputs "required", "disabled" and "error" classes when its form component is either required, disabled or invalid. WICKET-5177
org.apache.wicket.markup.html.panel.FeedbackPanel Do not set CSS class on the li  span element for a feedback message WICKET-4831
AjaxEventBehavior doesn't prevent the default behavior of the _javascript_ event WICKET-5197
Ajax behaviors let _javascript_ events bubble by default WICKET-5198


Deprecated classes/methods/fields are removed WICKET-5201


AbstractDefaultAjaxBehavior's #getSuccessHandler(), #getFailureHandler(), #getChannel() and #getPrecondition() are removed.
The old Tree component in wicket-extensions is removed.
PackageTextTemplate loads its content lazily WICKET-4579


Dependency updates


Environment

Wicket 7.0 requires at least Java 7

Wicket 7.0 requires Servlet 3.0

The HTTP response is not flushed automatically when the request is started in asynchronous mode. WICKET-5152
This is an improvement in Wicket 7.0 which should not affect any application migrating from Wicket 6.x. But if you use Servlet 3.0's AsyncContext in IResource in Wicket 7 then make sure that your code flushes the http response after completing the request.

API changes

org/apache/wicket/core/util/io/SerializableChecker is replaced with org.apache.wicket.core.util.objects.checker.CheckingObjectOutputStream WICKET-4817
CheckingObjectOutputStream accepts a list of org.apache.wicket.core.util.objects.checker.IObjectChecker objects which are used to check for different kind of problems during object serialization. Commit diff: d0441059e0

org/apache/wicket/markup/html/border/BoxBorder is removed with no replacement WICKET-4966.
BoxBorder class has been deprecated in Wicket 6.x series

org.apache.wicket.Component#renderHead(HtmlHeaderContainer) is renamed to Component#internalRenderHead(HtmlHeaderContainer) WICKET-4964
Component#renderHead(HtmlHeaderContainer) was very similar to the usually used Component#renderHead(IHeaderResponse). So it has been renamed to avoid any confusions.

org.apache.wicket.request.resource.ResourceReference#getDependencies() now returns a mutable ListHeaderItem 

[CONF] Apache Wicket Migration to Wicket 7.0

2013-06-13 Thread confluence







Migration to Wicket 7.0
Page edited by Martin Grigorov


 Changes (1)
 




...
If its style/locale/variation/encoding are changed then it will reload its content.  
h5. AbstractLink uses a Behavior to render itself as disabled [WICKET-4904|https://issues.apache.org/jira/browse/WICKET-4904]  org.apache.wicket.markup.html.link.AbstractLink#getDisablingBehavior() is introduced. This method can return a non-null Behavior that can render markup for the Link in disabled mode.  By default org.apache.wicket.markup.html.link.DisableLinkBehavior is used. It uses AbstractLink#getBeforeDisabledLink and AbstractLink#getAfterDisabledLink to prepend/append additional markup and changes the a to span.  
h3. Deprecated classes/methods/fields are removed [WICKET-5201|https://issues.apache.org/jira/browse/WICKET-5201]  
...


Full Content

Migrating to Wicket 7.0



Environment

Wicket 7.0 requires at least Java 7
Wicket 7.0 requires Servlet 3.0

The HTTP response is not flushed automatically when the request is started in asynchronous mode. WICKET-5152


API changes


org/apache/wicket/core/util/io/SerializableChecker is replaced with org.apache.wicket.core.util.objects.checker.CheckingObjectOutputStream WICKET-4817
org/apache/wicket/markup/html/border/BoxBorder is removed with no replacement WICKET-4966.
org.apache.wicket.Component#renderHead(HtmlHeaderContainer) is renamed to Component#internalRenderHead(HtmlHeaderContainer) WICKET-4964
org.apache.wicket.request.resource.ResourceReference#getDependencies() now returns a mutable ListHeaderItem WICKET-5124
org.apache.wicket.model.StringResourceModel constructor accepts IModelString for its default value WICKET-4972
org.apache.wicket.extensions.validation.validator.+Xyz+Validator#decorate() now works with IValidationError WICKET-5174
org.apache.wicket.ajax.attributes.AjaxRequestAttributes#setAllowDefault is renamed to #setPreventDefault WICKET-5197
org.apache.wicket.ajax.attributes.AjaxRequestAttributes#eventPropagation is now BUBBLE by default WICKET-5198
org.apache.wicket.ajax.form.AjaxFormValidatingBehavior doesn't use static methods anymore WICKET-5196
org.apache.wicket.ajax.AjaxRequestTarget.IListener#updateAjaxAttributes() is introduced WICKET-5212
org.apache.wicket.ISessionListener#onUnbound(String) is added WICKET-5213
(Base)WicketTester uses org.junit.Assert instead of junit.framework.Assert
org.apache.wicket.Component#setMetaData() value could be only a Serializable WICKET-5227


Behavior changes


org.apache.wicket.request.Url#getQueryString WICKET-4664
org.apache.wicket.request.http.WebResponse encodes the value of the "filename" in Content-Disposition header WICKET-4934
org.apache.wicket.markup.html.form.FormComponentLabel outputs "required", "disabled" and "error" classes when its form component is either required, disabled or invalid. WICKET-5177
org.apache.wicket.markup.html.panel.FeedbackPanel Do not set CSS class on the li  span element for a feedback message WICKET-4831
AjaxEventBehavior doesn't prevent the default behavior of the _javascript_ event WICKET-5197
Ajax behaviors let _javascript_ events bubble by default WICKET-5198
PackageTextTemplate loads its content lazily WICKET-4579
AbstractLink uses a Behavior to render itself as disabled WICKET-4904


Deprecated classes/methods/fields are removed WICKET-5201


AbstractDefaultAjaxBehavior's #getSuccessHandler(), #getFailureHandler(), #getChannel() and #getPrecondition() are removed.
The old Tree component in wicket-extensions is removed.


Dependency updates


Environment

Wicket 7.0 requires at least Java 7

Wicket 7.0 requires Servlet 3.0

The HTTP response is not flushed automatically when the request is started in asynchronous mode. WICKET-5152
This is an improvement in Wicket 7.0 which should not affect any application migrating from Wicket 6.x. But if you use Servlet 3.0's AsyncContext in IResource in Wicket 7 then make sure that your code flushes the http response after completing the request.

API changes

org/apache/wicket/core/util/io/SerializableChecker is replaced with org.apache.wicket.core.util.objects.checker.CheckingObjectOutputStream WICKET-4817
CheckingObjectOutputStream accepts a list of org.apache.wicket.core.util.objects.checker.IObjectChecker objects which are used to check for different kind of problems during object serialization. Commit diff: d0441059e0

org/apache/wicket/markup/html/border/BoxBorder is removed with no replacement WICKET-4966.
BoxBorder class has been deprecated in Wicket 6.x series

org.apache.wicket.Component#renderHead(HtmlHeaderContainer) is renamed to 

[CONF] Apache Wicket Migration to Wicket 7.0

2013-06-13 Thread confluence







Migration to Wicket 7.0
Page edited by Sven Meier


Comment:
AbstractLink WICKET-4904


 Changes (4)
 




...
If its style/locale/variation/encoding are changed then it will reload its content.  
h5. AbstractLink uses a Behavior no longer alters its markup to render itself as disabled [WICKET-4904|https://issues.apache.org/jira/browse/WICKET-4904] 
 
org.apache.wicket.markup.html.link.AbstractLink#getDisablingBehavior() is introduced. This method can return a non-null Behavior that can render markup for the Link in disabled mode. 
The href and disabled attributes are still added/removed by AbstractLink as required. But no further mangling of markup is performed. org.apache.wicket.markup.html.link.DisabledLinkBehavior can be used to restore the pre-Wicket-7.x representation of disabled links with emspan/span/em (note that em and span swap their position though). 
 
By default org.apache.wicket.markup.html.link.DisableLinkBehavior is used. It uses AbstractLink#getBeforeDisabledLink and AbstractLink#getAfterDisabledLink to prepend/append additional markup and changes the a to span.  
h3. Deprecated classes/methods/fields are removed [WICKET-5201|https://issues.apache.org/jira/browse/WICKET-5201]  
...


Full Content

Migrating to Wicket 7.0



Environment

Wicket 7.0 requires at least Java 7
Wicket 7.0 requires Servlet 3.0

The HTTP response is not flushed automatically when the request is started in asynchronous mode. WICKET-5152


API changes


org/apache/wicket/core/util/io/SerializableChecker is replaced with org.apache.wicket.core.util.objects.checker.CheckingObjectOutputStream WICKET-4817
org/apache/wicket/markup/html/border/BoxBorder is removed with no replacement WICKET-4966.
org.apache.wicket.Component#renderHead(HtmlHeaderContainer) is renamed to Component#internalRenderHead(HtmlHeaderContainer) WICKET-4964
org.apache.wicket.request.resource.ResourceReference#getDependencies() now returns a mutable ListHeaderItem WICKET-5124
org.apache.wicket.model.StringResourceModel constructor accepts IModelString for its default value WICKET-4972
org.apache.wicket.extensions.validation.validator.+Xyz+Validator#decorate() now works with IValidationError WICKET-5174
org.apache.wicket.ajax.attributes.AjaxRequestAttributes#setAllowDefault is renamed to #setPreventDefault WICKET-5197
org.apache.wicket.ajax.attributes.AjaxRequestAttributes#eventPropagation is now BUBBLE by default WICKET-5198
org.apache.wicket.ajax.form.AjaxFormValidatingBehavior doesn't use static methods anymore WICKET-5196
org.apache.wicket.ajax.AjaxRequestTarget.IListener#updateAjaxAttributes() is introduced WICKET-5212
org.apache.wicket.ISessionListener#onUnbound(String) is added WICKET-5213
(Base)WicketTester uses org.junit.Assert instead of junit.framework.Assert
org.apache.wicket.Component#setMetaData() value could be only a Serializable WICKET-5227


Behavior changes


org.apache.wicket.request.Url#getQueryString WICKET-4664
org.apache.wicket.request.http.WebResponse encodes the value of the "filename" in Content-Disposition header WICKET-4934
org.apache.wicket.markup.html.form.FormComponentLabel outputs "required", "disabled" and "error" classes when its form component is either required, disabled or invalid. WICKET-5177
org.apache.wicket.markup.html.panel.FeedbackPanel Do not set CSS class on the li  span element for a feedback message WICKET-4831
AjaxEventBehavior doesn't prevent the default behavior of the _javascript_ event WICKET-5197
Ajax behaviors let _javascript_ events bubble by default WICKET-5198
PackageTextTemplate loads its content lazily WICKET-4579
AbstractLink no longer alters its markup to render itself as disabled WICKET-4904


Deprecated classes/methods/fields are removed WICKET-5201


AbstractDefaultAjaxBehavior's #getSuccessHandler(), #getFailureHandler(), #getChannel() and #getPrecondition() are removed.
The old Tree component in wicket-extensions is removed.


Dependency updates


Environment

Wicket 7.0 requires at least Java 7

Wicket 7.0 requires Servlet 3.0

The HTTP response is not flushed automatically when the request is started in asynchronous mode. WICKET-5152
This is an improvement in Wicket 7.0 which should not affect any application migrating from Wicket 6.x. But if you use Servlet 3.0's AsyncContext in IResource in Wicket 7 then make sure that your code flushes the http response after completing the request.

API changes

org/apache/wicket/core/util/io/SerializableChecker is replaced with 

[CONF] Apache Wicket Migration to Wicket 7.0

2013-06-12 Thread confluence







Migration to Wicket 7.0
Page edited by Martin Grigorov


 Changes (2)
 




...
This way all registered ISessionListeners will be notified when a Session is unbound.  
h5. (Base)WicketTester uses org.junit.Assert instead of junit.framework.Assert junit.framework.Assert is deprecated. Due to this change org.junit.Assert#fail() throws now java.lang.AssertionError instead of junit.framework.AseertionFailedError 
 
h5. org.apache.wicket.Component#setMetaData() value could be only a Serializable [WICKET-5227|https://issues.apache.org/jira/browse/WICKET-5227] Component and Sessions meta data must be serializable.  
h3. Behavior changes  
...


Full Content

Migrating to Wicket 7.0



Environment

Wicket 7.0 requires at least Java 7
Wicket 7.0 requires Servlet 3.0

The HTTP response is not flushed automatically when the request is started in asynchronous mode. WICKET-5152


API changes


org/apache/wicket/core/util/io/SerializableChecker is replaced with org.apache.wicket.core.util.objects.checker.CheckingObjectOutputStream WICKET-4817
org/apache/wicket/markup/html/border/BoxBorder is removed with no replacement WICKET-4966.
org.apache.wicket.Component#renderHead(HtmlHeaderContainer) is renamed to Component#internalRenderHead(HtmlHeaderContainer) WICKET-4964
org.apache.wicket.request.resource.ResourceReference#getDependencies() now returns a mutable ListHeaderItem WICKET-5124
org.apache.wicket.model.StringResourceModel constructor accepts IModelString for its default value WICKET-4972
org.apache.wicket.extensions.validation.validator.+Xyz+Validator#decorate() now works with IValidationError WICKET-5174
org.apache.wicket.ajax.attributes.AjaxRequestAttributes#setAllowDefault is renamed to #setPreventDefault WICKET-5197
org.apache.wicket.ajax.attributes.AjaxRequestAttributes#eventPropagation is now BUBBLE by default WICKET-5198
org.apache.wicket.ajax.form.AjaxFormValidatingBehavior doesn't use static methods anymore WICKET-5196
org.apache.wicket.ajax.AjaxRequestTarget.IListener#updateAjaxAttributes() is introduced WICKET-5212
org.apache.wicket.ISessionListener#onUnbound(String) is added WICKET-5213
(Base)WicketTester uses org.junit.Assert instead of junit.framework.Assert
org.apache.wicket.Component#setMetaData() value could be only a Serializable WICKET-5227


Behavior changes


org.apache.wicket.request.Url#getQueryString WICKET-4664
org.apache.wicket.request.http.WebResponse encodes the value of the "filename" in Content-Disposition header WICKET-4934
org.apache.wicket.markup.html.form.FormComponentLabel outputs "required", "disabled" and "error" classes when its form component is either required, disabled or invalid. WICKET-5177
org.apache.wicket.markup.html.panel.FeedbackPanel Do not set CSS class on the li  span element for a feedback message WICKET-4831
AjaxEventBehavior doesn't prevent the default behavior of the _javascript_ event WICKET-5197
Ajax behaviors let _javascript_ events bubble by default WICKET-5198


Deprecated classes/methods/fields are removed WICKET-5201


AbstractDefaultAjaxBehavior's #getSuccessHandler(), #getFailureHandler(), #getChannel() and #getPrecondition() are removed.
The old Tree component in wicket-extensions is removed.


Dependency updates


Environment

Wicket 7.0 requires at least Java 7

Wicket 7.0 requires Servlet 3.0

The HTTP response is not flushed automatically when the request is started in asynchronous mode. WICKET-5152
This is an improvement in Wicket 7.0 which should not affect any application migrating from Wicket 6.x. But if you use Servlet 3.0's AsyncContext in IResource in Wicket 7 then make sure that your code flushes the http response after completing the request.

API changes

org/apache/wicket/core/util/io/SerializableChecker is replaced with org.apache.wicket.core.util.objects.checker.CheckingObjectOutputStream WICKET-4817
CheckingObjectOutputStream accepts a list of org.apache.wicket.core.util.objects.checker.IObjectChecker objects which are used to check for different kind of problems during object serialization. Commit diff: d0441059e0

org/apache/wicket/markup/html/border/BoxBorder is removed with no replacement WICKET-4966.
BoxBorder class has been deprecated in Wicket 6.x series

org.apache.wicket.Component#renderHead(HtmlHeaderContainer) is renamed to Component#internalRenderHead(HtmlHeaderContainer) WICKET-4964
Component#renderHead(HtmlHeaderContainer) was very similar to the usually used Component#renderHead(IHeaderResponse). So it has been renamed to avoid any confusions.

org.apache.wicket.request.resource.ResourceReference#getDependencies() now returns a 

[CONF] Apache Wicket How to write JSON response

2013-05-31 Thread confluence







How to write JSON response
Page edited by Kristian Rosenvold


Comment:
Updated to 1.5 syntax


 Changes (1)
 




...
	public JsonWebPage(PageParameters pageParameters) {  
getRequestCycle().setRequestTarget(new getRequestCycle().scheduleRequestHandlerAfterCurrent(new IRequestTarget() { 
 			@Override 
...
 } 
... {code} 
...


Full Content

In your WebPage...



...

public class JsonWebPage extends WebPage {

	public JsonWebPage(PageParameters pageParameters) {

		getRequestCycle().scheduleRequestHandlerAfterCurrent(new IRequestTarget() {

			@Override
			public void detach(RequestCycle requestCycle) {
// Nothing to do here.
			}

			@Override
			public void respond(RequestCycle requestCycle) {
// Add JSON-encoded string to the response.
requestCycle.getResponse().write("{\"jsonKey\":\"jsonValue\"}");
			}

		});

	}

}
...




NOTE: You DO NOT need to manually write JSON response, there are libraries like http://json-lib.sourceforge.net/ available that will allow you to convert an object hierarchy to something more useful in terms of JSON rather easily. For details, check the documentation at: http://json-lib.sourceforge.net/usage.html. 

Another library for JSON processing/generation is jackson.

NOTE Wicket = 1.5.x: see https://github.com/wicketstuff/core/tree/master/jdk-1.6-parent/autocomplete-tagit-parent for an example 



Change Notification Preferences

View Online
|
View Changes
|
Add Comment









[CONF] Apache Wicket How to write JSON response

2013-05-31 Thread confluence







How to write JSON response
Page edited by Martin Grigorov


 Changes (5)
 




...
	public JsonWebPage(PageParameters pageParameters) {  
getRequestCycle().scheduleRequestHandlerAfterCurrent(new IRequestTarget() IRequestHandler() { 
 			@Override 
...
			public void respond(RequestCycle requestCycle) { // Add JSON-encoded string to the response. 
Response response = requestCycle.getResponse(); 
requestCycle.getResponse().write({\jsonKey\:\jsonValue\}); response.setContentType(application/json); 
response.write({\jsonKey\:\jsonValue\}); 
			} 
		}); 
	} 
} ... {code}  
You can use TextRequestHandler to simplify the code above. 
 NOTE: You DO NOT need to manually write JSON response, there are libraries like [http://json-lib.sourceforge.net/] available that will allow you to convert an object hierarchy to something more useful in terms of JSON rather easily. For details, check the documentation at: [http://json-lib.sourceforge.net/usage.html].  
...


Full Content

In your WebPage...



...

public class JsonWebPage extends WebPage {

	public JsonWebPage(PageParameters pageParameters) {

		getRequestCycle().scheduleRequestHandlerAfterCurrent(new IRequestHandler() {

			@Override
			public void detach(RequestCycle requestCycle) {
// Nothing to do here.
			}

			@Override
			public void respond(RequestCycle requestCycle) {
// Add JSON-encoded string to the response.
Response response = requestCycle.getResponse();
response.setContentType("application/json");
response.write("{\"jsonKey\":\"jsonValue\"}");
			}
		});
	}
}
...



You can use TextRequestHandler to simplify the code above.

NOTE: You DO NOT need to manually write JSON response, there are libraries like http://json-lib.sourceforge.net/ available that will allow you to convert an object hierarchy to something more useful in terms of JSON rather easily. For details, check the documentation at: http://json-lib.sourceforge.net/usage.html. 

Another library for JSON processing/generation is jackson.

NOTE Wicket = 1.5.x: see https://github.com/wicketstuff/core/tree/master/jdk-1.6-parent/autocomplete-tagit-parent for an example 



Change Notification Preferences

View Online
|
View Changes
|
Add Comment









[CONF] Apache Wicket Index

2013-05-29 Thread confluence







Index
Page edited by Ilkka Seppälä


 Changes (1)
 




...
h3. External Links * [Wicket Spirals|http://www.webinaria.com/video.php?VID=477] teaching method by Dzenan Ridjanovic 
* [Online Maven Book|http://www.sonatype.com/book/index.html] Book|http://books.sonatype.com/mvnref-book/reference/] Get help understanding Maven 
* [Chinese Wicket WebSite|http://gocom.primeton.com/modules/newbb/viewforum.php?forum=41cat_id=11] A forum about wicket in china. * [Introduction to Apache Wicket (in German)|http://www.ralfebert.de/wicket/] 
...


Full Content

Bookmarkable URL
Linking to the wikiTo help with the server loading, please only link to pages under the http://cwiki.apache.org/WICKET/ static root.

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. Also, this 

[CONF] Apache Wicket Wicket Blogs

2013-05-29 Thread confluence







Wicket Blogs
Page edited by Nagaraja Yellapu


 Changes (1)
 




...
* [Dan Simko: Czech Blog about Wicket|http://wickeria.com/blog] (runs on Wicket and Brix) * [There is no place like ::1|http://www.bloggure.info/category/work/java-work/wicket-work] Wicket tips and tricks from a French startup developer 
* [Wicket + JPA without DI framework : http://ynagaraja.blogspot.in/2013/05/developing-web-application-with-apache.html] 
 
These were listed here, but now seem somewhat dead/abandoned:  
...


Full Content

Wicket Blogs

There are several blogs available with news, experiences, hints and tricks concerning Wicket. Here's a list of those blogs we have discovered so far. Please add your own blog to this list if you write something interesting on Wicket.


	Nadeem's Blog on Wicket (Editable Grid, Ajax Radio Button, Wicket loose coupling, Wicket XML RPC  )
	WorldTurner blog
	A Wicket Diary
	Geertjan's blog
	Eelco's blog new attempt
	Jonathan's blog
	Jonathan's new blog
	Jeremy Thomerson's blog
	Jesse Sightler's blog
	Coderspiel (runs on Wicket)
	Ruud en Marco's Weblog
	Matt Raible's Raible Designs
	Erik van Oosten's Blog
	Ryan Sonnek's Blog
	Here Be Beasties (Al Maw's blog)
	rue's headroom (Rüdiger Schulz' blog)
	Wicket Blog in China wanglei's blog
	Blog do Bruno Borges (pt_BR)
	Java for Dinner (pt_BR)
	Java Thoughts (Julian Sinai's blog)
	Carlo's Blog
	Eirik Rude's Blog
	Daan's blog, especially everything tagged 'Wicket'
	Nino's blog with screencasts, especially everything tagged 'Wicket'
	Wicket Praxis
	The Wicket Evangelist
	Mystic Blog
	WicketByExample
	Jeff's Blog
	Devproof Blog and Wicket articles (blog/portal is completely written in Wicket and downloadable)
	codesmell.org
	Paul Szulc: Wicket and TDD
	Tomasz Dziurko: Code Hard Go Pro
	Martin Dilger: German Blog, in Depth Knowledge about Wicket
	Sergei Sizov: Software Engineering with Java and Wicket 
	Dan Simko: Czech Blog about Wicket (runs on Wicket and Brix)
	There is no place like ::1 Wicket tips and tricks from a French startup developer
	Wicket + JPA without DI framework : http://ynagaraja.blogspot.in/2013/05/developing-web-application-with-apache.html



These were listed here, but now seem somewhat dead/abandoned:


	steve-on-sakai
	John Banana Qwerty (Jean-Baptiste Quenot's blog)
	momania.net
	JavaGeek.org
	Phil Phil's Weblog
	Matej Knopp's blog
	Romain Guy get to love web development
	The code filled.. code story blog





Change Notification Preferences

View Online
|
View Changes
|
Add Comment









[CONF] Apache Wicket Wicket Blogs

2013-05-29 Thread confluence







Wicket Blogs
Page edited by Nagaraja Yellapu


 Changes (1)
 




...
* [Dan Simko: Czech Blog about Wicket|http://wickeria.com/blog] (runs on Wicket and Brix) * [There is no place like ::1|http://www.bloggure.info/category/work/java-work/wicket-work] Wicket tips and tricks from a French startup developer 
* [Wicket + JPA without DI framework : http://ynagaraja.blogspot.in/2013/05/developing-web-application-with-apache.html] framework|http://ynagaraja.blogspot.in/2013/05/developing-web-application-with-apache.html] 
 These were listed here, but now seem somewhat dead/abandoned: 
...


Full Content

Wicket Blogs

There are several blogs available with news, experiences, hints and tricks concerning Wicket. Here's a list of those blogs we have discovered so far. Please add your own blog to this list if you write something interesting on Wicket.


	Nadeem's Blog on Wicket (Editable Grid, Ajax Radio Button, Wicket loose coupling, Wicket XML RPC  )
	WorldTurner blog
	A Wicket Diary
	Geertjan's blog
	Eelco's blog new attempt
	Jonathan's blog
	Jonathan's new blog
	Jeremy Thomerson's blog
	Jesse Sightler's blog
	Coderspiel (runs on Wicket)
	Ruud en Marco's Weblog
	Matt Raible's Raible Designs
	Erik van Oosten's Blog
	Ryan Sonnek's Blog
	Here Be Beasties (Al Maw's blog)
	rue's headroom (Rüdiger Schulz' blog)
	Wicket Blog in China wanglei's blog
	Blog do Bruno Borges (pt_BR)
	Java for Dinner (pt_BR)
	Java Thoughts (Julian Sinai's blog)
	Carlo's Blog
	Eirik Rude's Blog
	Daan's blog, especially everything tagged 'Wicket'
	Nino's blog with screencasts, especially everything tagged 'Wicket'
	Wicket Praxis
	The Wicket Evangelist
	Mystic Blog
	WicketByExample
	Jeff's Blog
	Devproof Blog and Wicket articles (blog/portal is completely written in Wicket and downloadable)
	codesmell.org
	Paul Szulc: Wicket and TDD
	Tomasz Dziurko: Code Hard Go Pro
	Martin Dilger: German Blog, in Depth Knowledge about Wicket
	Sergei Sizov: Software Engineering with Java and Wicket 
	Dan Simko: Czech Blog about Wicket (runs on Wicket and Brix)
	There is no place like ::1 Wicket tips and tricks from a French startup developer
	Wicket + JPA without DI framework



These were listed here, but now seem somewhat dead/abandoned:


	steve-on-sakai
	John Banana Qwerty (Jean-Baptiste Quenot's blog)
	momania.net
	JavaGeek.org
	Phil Phil's Weblog
	Matej Knopp's blog
	Romain Guy get to love web development
	The code filled.. code story blog





Change Notification Preferences

View Online
|
View Changes
|
Add Comment









[CONF] Apache Wicket Migration to Wicket 7.0

2013-05-29 Thread confluence







Migration to Wicket 7.0
Page edited by Martin Grigorov


 Changes (2)
 




...
in this case the formComponents owning Form will be used.  
 
h5. org.apache.wicket.ajax.AjaxRequestTarget.IListener#updateAjaxAttributes() is introduced [WICKET-5212|https://issues.apache.org/jira/browse/WICKET-5212] With [WICKET-4958|https://issues.apache.org/jira/browse/WICKET-4958] has been introduced org.apache.wicket.ajax.AjaxRequestTarget.AbstractListener which is an empty implementation of AjaxRequestTarget.IListener to be able to introduce AbstractListener#updateAjaxAttributes() method - a place where an application can configure globally the Ajax attributes. With [WICKET-5212|https://issues.apache.org/jira/browse/WICKET-5212] this new method is moved to the interface as well. From now on it is recommended all implementations of AjaxRequestTarget.IListener to extend from AjaxRequestTarget.AbstractListener. This way they wont need to a implement another method when a new one is added in a major release.  
  
...


Full Content

Migrating to Wicket 7.0



Environment

Wicket 7.0 requires at least Java 7
Wicket 7.0 requires Servlet 3.0

The HTTP response is not flushed automatically when the request is started in asynchronous mode. WICKET-5152


API changes


org/apache/wicket/core/util/io/SerializableChecker is replaced with org.apache.wicket.core.util.objects.checker.CheckingObjectOutputStream WICKET-4817
org/apache/wicket/markup/html/border/BoxBorder is removed with no replacement WICKET-4966.
org.apache.wicket.Component#renderHead(HtmlHeaderContainer) is renamed to Component#internalRenderHead(HtmlHeaderContainer) WICKET-4964
org.apache.wicket.request.resource.ResourceReference#getDependencies() now returns a mutable ListHeaderItem WICKET-5124
org.apache.wicket.model.StringResourceModel constructor accepts IModelString for its default value WICKET-4972
org.apache.wicket.extensions.validation.validator.+Xyz+Validator#decorate() now works with IValidationError WICKET-5174
org.apache.wicket.ajax.attributes.AjaxRequestAttributes#setAllowDefault is renamed to #setPreventDefault WICKET-5197
org.apache.wicket.ajax.attributes.AjaxRequestAttributes#eventPropagation is now BUBBLE by default WICKET-5198
org.apache.wicket.ajax.form.AjaxFormValidatingBehavior doesn't use static methods anymore WICKET-5196
org.apache.wicket.ajax.AjaxRequestTarget.IListener#updateAjaxAttributes() is introduced WICKET-5212


Behavior changes


org.apache.wicket.request.Url#getQueryString WICKET-4664
org.apache.wicket.request.http.WebResponse encodes the value of the "filename" in Content-Disposition header WICKET-4934
org.apache.wicket.markup.html.form.FormComponentLabel outputs "required", "disabled" and "error" classes when its form component is either required, disabled or invalid. WICKET-5177
org.apache.wicket.markup.html.panel.FeedbackPanel Do not set CSS class on the li  span element for a feedback message WICKET-4831
AjaxEventBehavior doesn't prevent the default behavior of the _javascript_ event WICKET-5197
Ajax behaviors let _javascript_ events bubble by default WICKET-5198


Deprecated classes/methods/fields are removed WICKET-5201


AbstractDefaultAjaxBehavior's #getSuccessHandler(), #getFailureHandler(), #getChannel() and #getPrecondition() are removed.
The old Tree component in wicket-extensions is removed.


Dependency updates


Environment

Wicket 7.0 requires at least Java 7

Wicket 7.0 requires Servlet 3.0

The HTTP response is not flushed automatically when the request is started in asynchronous mode. WICKET-5152
This is an improvement in Wicket 7.0 which should not affect any application migrating from Wicket 6.x. But if you use Servlet 3.0's AsyncContext in IResource in Wicket 7 then make sure that your code flushes the http response after completing the request.

API changes

org/apache/wicket/core/util/io/SerializableChecker is replaced with org.apache.wicket.core.util.objects.checker.CheckingObjectOutputStream WICKET-4817
CheckingObjectOutputStream accepts a list of org.apache.wicket.core.util.objects.checker.IObjectChecker objects which are used to check for different kind of problems during object serialization. Commit diff: d0441059e0

org/apache/wicket/markup/html/border/BoxBorder is removed with no replacement WICKET-4966.
BoxBorder class has been deprecated in Wicket 6.x series

org.apache.wicket.Component#renderHead(HtmlHeaderContainer) is renamed to Component#internalRenderHead(HtmlHeaderContainer) WICKET-4964
Component#renderHead(HtmlHeaderContainer) was very similar to the usually used Component#renderHead(IHeaderResponse). So it has been renamed to 

[CONF] Apache Wicket Wicket 7.0 Roadmap

2013-05-29 Thread confluence







Wicket 7.0 Roadmap
Page edited by Martin Grigorov


 Changes (1)
 




...
Jira: [WICKET-5167|https://issues.apache.org/jira/browse/WICKET-5167]  
h4. Update the quickstart archetype as well. Should we use @WebFilter for the quickstart ?!  Assignee: Status: Jira:  
h3. Tickets in Jira with Fix Version = 7.0  
...


Full Content



This page lists the tasks the Wicket team agreed to implement for Wicket 7.0.

 Java 7 as a minimum

Generics for org.apache.wicket.Component

 Servlet 3 as a minimum
Tickets in Jira with "Fix Version" = 7.0


PageParameters improvements
Minor API cleanups


API Tweaks

 SimpleFormComponentLabel should output the "required" class just like wicket:for
 ajaxbehavior#updateAjaxAttributes() should get component passed in
 throttling settings should be mutable to make it easier to override just the duration without having to figure out an id
 _javascript_ResourceReference#getDependencies() should return an appendable List
 XyzValidator#decorate() should work with IValidationError instead of ValidationError
Refactor checkgroup/radiogroup to make them non-components.
cdi 1.1 upgrade
 Upgrade dependencies to their latest stable version
Vote which experimental modules should become stable
Make css class strings used in the framework configurable
Remove deprecated in Wicket 6.x classes and methods




This page lists the tasks the Wicket team agreed to implement for Wicket 7.0.

Ideas for Wicket 7.0 list some more ideas but to add a task in the Roadmap it has to be discussed first in the dev mailing list. Ideas with attached patch in Jira ticket or Pull Request have a bigger chance to be included in the Roadmap.

How to help us
	Pick a task from this wiki page or from Jira with "Fix Version" = 7.0.0.
	Implement it (+ tests when possible) and make a Pull Request at GitHub. We do not own the GitHub repo but it is easy to pull from your repos and apply the code. It is also easy to make code reviews and comment.
If there is no ticket in Jira for an entry in the Roadmap please create one. Always add a comment to the ticket in Jira when you start on it. Just to prevent two or  more people working on the same task.
	Add an entry to the Migration page with description of the change and short code sample of the old way and the new way of doing something.



Java 7 as a minimum

Java 7 has nice support for generics, better annotations, and Java 6 is reaching its end of life pretty soon.

Assignee: mgrigorov
Status: Done

Generics for org.apache.wicket.Component

Using Java 7 will allow to use the "diamonds operator", i.e. 
MyPage.java

  ComponentEntity c = new SomeComponent("id", model);



Assignee: 
Status: Not started
Jira: WICKET-4930

Servlet 3 as a minimum

While we opted to not require servlet 3 for wicket 6, it has bitten us a couple of times solving issues in wicket 6. Servlet 3 has been out for ages, so we should move with the times.

Assignee: mgrigorov
Status: Done
Jira: WICKET-5167

Tickets in Jira with "Fix Version" = 7.0

PageParameters improvements


	read-only
	make it possible to differentiate between named indexed parameters and query string ones.
See WICKET-4594, http://markmail.org/thread/cc7yjwshqugj4wic, WICKET-4441



Assignee: 
Status: Not started

Minor API cleanups


	Rename renderHead(HtmlHeaderContainer) https://issues.apache.org/jira/browse/WICKET-4964
Assignee: mgrigorov
Status: Done
Jira: WICKET-4964



API Tweaks

SimpleFormComponentLabel should output the "required" class just like wicket:for
Assignee: mgrigorov
Status: Done
Jira: WICKET-5177

ajaxbehavior#updateAjaxAttributes() should get component passed in

otherwise referencing the component as needed in throttle settings is annoying



queryField.add(new AjaxFormComponentUpdatingBehavior("onkeydown") {
	protected void updateAjaxAttributes(AjaxRequestAttributes attributes) {
		attributes.setThrottlingSettings(new ThrottlingSettings(queryField.getMarkupId(), Duration.seconds(1)));
^


The component is easily reachable via AbstractAjaxBehavior#getComponent()

throttling settings should be mutable to make it easier to override just the duration without having to figure out an id
Status: Done
Assignee: mgrigorov
JIRA: WICKET-5173

_javascript_ResourceReference#getDependencies() should return an appendable List

so we can do


class MyReference extends _javascript_Reference {
  getDependencies() { List? list=super.getDependencies(); list.add(...); return list; }
}


Status: Done
Assignee: mgrigorov
Jira: WICKET-5124

XyzValidator#decorate() should work with IValidationError instead of ValidationError
Status: 

[CONF] Apache Wicket Migration to Wicket 7.0

2013-05-29 Thread confluence







Migration to Wicket 7.0
Page edited by Martin Grigorov


 Changes (1)
 




...
From now on it is recommended all implementations of AjaxRequestTarget.IListener to extend from AjaxRequestTarget.AbstractListener. This way they wont need to a implement another method when a new one is added in a major release.   
h5. org.apache.wicket.ISessionListener#onUnbound(String) is added [WICKET-5213|https://issues.apache.org/jira/browse/WICKET-5213] This way all registered ISessionListeners will be notified when a Session is unbound. 
  
...


Full Content

Migrating to Wicket 7.0



Environment

Wicket 7.0 requires at least Java 7
Wicket 7.0 requires Servlet 3.0

The HTTP response is not flushed automatically when the request is started in asynchronous mode. WICKET-5152


API changes


org/apache/wicket/core/util/io/SerializableChecker is replaced with org.apache.wicket.core.util.objects.checker.CheckingObjectOutputStream WICKET-4817
org/apache/wicket/markup/html/border/BoxBorder is removed with no replacement WICKET-4966.
org.apache.wicket.Component#renderHead(HtmlHeaderContainer) is renamed to Component#internalRenderHead(HtmlHeaderContainer) WICKET-4964
org.apache.wicket.request.resource.ResourceReference#getDependencies() now returns a mutable ListHeaderItem WICKET-5124
org.apache.wicket.model.StringResourceModel constructor accepts IModelString for its default value WICKET-4972
org.apache.wicket.extensions.validation.validator.+Xyz+Validator#decorate() now works with IValidationError WICKET-5174
org.apache.wicket.ajax.attributes.AjaxRequestAttributes#setAllowDefault is renamed to #setPreventDefault WICKET-5197
org.apache.wicket.ajax.attributes.AjaxRequestAttributes#eventPropagation is now BUBBLE by default WICKET-5198
org.apache.wicket.ajax.form.AjaxFormValidatingBehavior doesn't use static methods anymore WICKET-5196
org.apache.wicket.ajax.AjaxRequestTarget.IListener#updateAjaxAttributes() is introduced WICKET-5212
org.apache.wicket.ISessionListener#onUnbound(String) is added WICKET-5213


Behavior changes


org.apache.wicket.request.Url#getQueryString WICKET-4664
org.apache.wicket.request.http.WebResponse encodes the value of the "filename" in Content-Disposition header WICKET-4934
org.apache.wicket.markup.html.form.FormComponentLabel outputs "required", "disabled" and "error" classes when its form component is either required, disabled or invalid. WICKET-5177
org.apache.wicket.markup.html.panel.FeedbackPanel Do not set CSS class on the li  span element for a feedback message WICKET-4831
AjaxEventBehavior doesn't prevent the default behavior of the _javascript_ event WICKET-5197
Ajax behaviors let _javascript_ events bubble by default WICKET-5198


Deprecated classes/methods/fields are removed WICKET-5201


AbstractDefaultAjaxBehavior's #getSuccessHandler(), #getFailureHandler(), #getChannel() and #getPrecondition() are removed.
The old Tree component in wicket-extensions is removed.


Dependency updates


Environment

Wicket 7.0 requires at least Java 7

Wicket 7.0 requires Servlet 3.0

The HTTP response is not flushed automatically when the request is started in asynchronous mode. WICKET-5152
This is an improvement in Wicket 7.0 which should not affect any application migrating from Wicket 6.x. But if you use Servlet 3.0's AsyncContext in IResource in Wicket 7 then make sure that your code flushes the http response after completing the request.

API changes

org/apache/wicket/core/util/io/SerializableChecker is replaced with org.apache.wicket.core.util.objects.checker.CheckingObjectOutputStream WICKET-4817
CheckingObjectOutputStream accepts a list of org.apache.wicket.core.util.objects.checker.IObjectChecker objects which are used to check for different kind of problems during object serialization. Commit diff: d0441059e0

org/apache/wicket/markup/html/border/BoxBorder is removed with no replacement WICKET-4966.
BoxBorder class has been deprecated in Wicket 6.x series

org.apache.wicket.Component#renderHead(HtmlHeaderContainer) is renamed to Component#internalRenderHead(HtmlHeaderContainer) WICKET-4964
Component#renderHead(HtmlHeaderContainer) was very similar to the usually used Component#renderHead(IHeaderResponse). So it has been renamed to avoid any confusions.

org.apache.wicket.request.resource.ResourceReference#getDependencies() now returns a mutable ListHeaderItem WICKET-5124
The old API returned Iterable? extends HeaderItem and was inconvenient to override and add additional dependencies.
With the new API it is as easy as:

MyResourceReference.java

@Override
public ListHeaderItem getDependencies() {
  ListHeaderItem dependencies = 

[CONF] Apache Wicket Ideas for Wicket 7.0

2013-05-29 Thread confluence







Ideas for Wicket 7.0
Page edited by Bertrand Guay-Paquet


 Changes (1)
 




...
 - add more stateless components (stateless versions of existing components) 
- adopt Ajax stateless behaviors (allow stateless ajax callbacks) 
- ...  
...


Full Content



This page lists ideas what can be improved for Wicket 7.0.

Ajax back button support
Better stateless support
Implement JAX-RS on top of Wicket IResource
PageParameters improvements
Removal of auto-components
Java 7 as a minimum
Servlet 3 as a minimum
Improved tag manipulation
 Make transitions possible/easy when replacing components using Ajax/Push
Integrate bindgen-wicket
Minor API cleanups
Use webjars instead of embedded libraries



This page lists ideas what can be improved for Wicket 7.0.

These are only ideas. Some of them may not be implemented though. There will be a separate Roadmap page that will have only the ideas on which we agreed.
To be approved an idea has to be discussed first in dev@ mailing list. A patch and/or Pull Request increases the chance to get your idea in.

Ajax back button support

Igor has already started something about this at his GitHub

Perhaps this is a better library than simple history: https://github.com/rails/turbolinks

Better stateless support


	add more stateless components (stateless versions of existing components)
	adopt Ajax stateless behaviors (allow stateless ajax callbacks)
	...



Implement JAX-RS on top of Wicket IResource

Crazy, but why not ...

PageParameters improvements


	read-only
	make it possible to differentiate between named indexed parameters and query string ones.
  See WICKET-4594, http://markmail.org/thread/cc7yjwshqugj4wic, WICKET-4441



Removal of auto-components

Auto components caused some problems due to their special lifecycle - they appear only during the rendering process. This will simplify component queueing, resolvers+auto components, problems with enclosures, ...
The idea is to rework the auto-components to be first class citizens, i.e. once the markup is parsed they should be in the runtime component tree as manually added components are. And should be reachable in the action phase.

Java 7 as a minimum

Java 7 has nice support for generics, better annotations, and Java 6 is reaching its end of life pretty soon.

Servlet 3 as a minimum

While we opted to not require servlet 3 for wicket 6, it has bitten us a couple of times solving issues in wicket 6. Servlet 3 has been out for ages, so we should move with the times.

Improved tag manipulation

Using attribute modifiers it is difficult to modify tags in proper ways such that existing classes on a 'class' attribute remain, while adding/removing other tags. A DSL for manipulating the class value of a component would be really great.

Make transitions possible/easy when replacing components using Ajax/Push

Currently we replace the markup of components, which works for updating the components, but it doesn't provide an easy way to animate the outgoing and incoming markup using CSS transitions. For example if you add a 'hidden' class to the class attribute of a component, and update it using Ajax, the markup gets replaced instead of updated.
See http://wicketinaction.com/2013/02/replace-components-with-animation/

Integrate bindgen-wicket

The issue of fragile property expressions has not been given much love ever since. Bindgen-wicket solves this in a clean and elegant way. Moreover, annotation processing is no longer cumbersome (as it has become part of javac compilation process since java 6).
Discussion in dev@ mailing list: http://markmail.org/thread/z2ngjxxtpqqwsea6

Minor API cleanups


	Rename renderHead(HtmlHeaderContainer) https://issues.apache.org/jira/browse/WICKET-4964



Use webjars instead of embedded libraries

... and integrate wicket-webjars



Change Notification Preferences

View Online
|
View Changes
|
Add Comment









[CONF] Apache Wicket Ideas for Wicket 7.0

2013-05-29 Thread confluence







Ideas for Wicket 7.0
Page edited by Bertrand Guay-Paquet


 Changes (2)
 




...
 - add more stateless components (stateless versions of existing components) 
- adopt Ajax stateless behaviors (allow stateless ajax callbacks) behavior listeners) 
- ...  
In Wicket 6, any behavior implementing IBehaviorListener becomes stateful. This includes all subclasses of AbstractAjaxBehavior. Overriding this behavior by making getStatelessHint() return true for an ajax behavior with a listener interface is tricky. The listeners url cannot be assumed to be stable unless the number and order of behaviors added to components does not change between the page creation and the ajax request.  
h3. Implement JAX-RS on top of Wicket IResource  
...


Full Content



This page lists ideas what can be improved for Wicket 7.0.

Ajax back button support
Better stateless support
Implement JAX-RS on top of Wicket IResource
PageParameters improvements
Removal of auto-components
Java 7 as a minimum
Servlet 3 as a minimum
Improved tag manipulation
 Make transitions possible/easy when replacing components using Ajax/Push
Integrate bindgen-wicket
Minor API cleanups
Use webjars instead of embedded libraries



This page lists ideas what can be improved for Wicket 7.0.

These are only ideas. Some of them may not be implemented though. There will be a separate Roadmap page that will have only the ideas on which we agreed.
To be approved an idea has to be discussed first in dev@ mailing list. A patch and/or Pull Request increases the chance to get your idea in.

Ajax back button support

Igor has already started something about this at his GitHub

Perhaps this is a better library than simple history: https://github.com/rails/turbolinks

Better stateless support


	add more stateless components (stateless versions of existing components)
	adopt Ajax stateless behaviors (allow stateless ajax behavior listeners)
	...



In Wicket 6, any behavior implementing IBehaviorListener becomes stateful. This includes all subclasses of AbstractAjaxBehavior. Overriding this behavior by making getStatelessHint() return true for an ajax behavior with a listener interface is tricky. The listener's url cannot be assumed to be stable unless the number and order of behaviors added to components does not change between the page creation and the ajax request.

Implement JAX-RS on top of Wicket IResource

Crazy, but why not ...

PageParameters improvements


	read-only
	make it possible to differentiate between named indexed parameters and query string ones.
  See WICKET-4594, http://markmail.org/thread/cc7yjwshqugj4wic, WICKET-4441



Removal of auto-components

Auto components caused some problems due to their special lifecycle - they appear only during the rendering process. This will simplify component queueing, resolvers+auto components, problems with enclosures, ...
The idea is to rework the auto-components to be first class citizens, i.e. once the markup is parsed they should be in the runtime component tree as manually added components are. And should be reachable in the action phase.

Java 7 as a minimum

Java 7 has nice support for generics, better annotations, and Java 6 is reaching its end of life pretty soon.

Servlet 3 as a minimum

While we opted to not require servlet 3 for wicket 6, it has bitten us a couple of times solving issues in wicket 6. Servlet 3 has been out for ages, so we should move with the times.

Improved tag manipulation

Using attribute modifiers it is difficult to modify tags in proper ways such that existing classes on a 'class' attribute remain, while adding/removing other tags. A DSL for manipulating the class value of a component would be really great.

Make transitions possible/easy when replacing components using Ajax/Push

Currently we replace the markup of components, which works for updating the components, but it doesn't provide an easy way to animate the outgoing and incoming markup using CSS transitions. For example if you add a 'hidden' class to the class attribute of a component, and update it using Ajax, the markup gets replaced instead of updated.
See http://wicketinaction.com/2013/02/replace-components-with-animation/

Integrate bindgen-wicket

The issue of fragile property expressions has not been given much love ever since. Bindgen-wicket solves this in a clean and elegant way. Moreover, annotation processing is no longer cumbersome (as it has become part of javac compilation process since java 6).
Discussion in dev@ mailing list: http://markmail.org/thread/z2ngjxxtpqqwsea6

Minor API cleanups


	Rename renderHead(HtmlHeaderContainer) 

[CONF] Apache Wicket Migration to Wicket 7.0

2013-05-24 Thread confluence







Migration to Wicket 7.0
Page edited by Martin Grigorov


 Changes (2)
 




...
{code}  
h3. Deprecated classes/methods/fields are removed 
 
h5. AbstractDefaultAjaxBehaviors #getSuccessHandler(), #getFailureHandler(), #getChannel() and #getPrecondition() are removed. They were deprecated since 6.0.0 and were there only for backward compatibility. Use #updateAjaxAttributes() to configure the same functionalities.  h5. The old Tree component in wicket-extensions is removed. It was based on Swing APIs and many people complained about this. Use the new Tree component introduced in Wicket 6.0.0 instead.   
h3. Dependency updates  
...


Full Content

Migrating to Wicket 7.0



Environment

Wicket 7.0 requires at least Java 7
Wicket 7.0 requires Servlet 3.0

The HTTP response is not flushed automatically when the request is started in asynchronous mode. WICKET-5152


API changes


org/apache/wicket/core/util/io/SerializableChecker is replaced with org.apache.wicket.core.util.objects.checker.CheckingObjectOutputStream WICKET-4817
org/apache/wicket/markup/html/border/BoxBorder is removed with no replacement WICKET-4966.
org.apache.wicket.Component#renderHead(HtmlHeaderContainer) is renamed to Component#internalRenderHead(HtmlHeaderContainer) WICKET-4964
org.apache.wicket.request.resource.ResourceReference#getDependencies() now returns a mutable ListHeaderItem WICKET-5124
org.apache.wicket.model.StringResourceModel constructor accepts IModelString for its default value WICKET-4972
org.apache.wicket.extensions.validation.validator.+Xyz+Validator#decorate() now works with IValidationError WICKET-5174
org.apache.wicket.ajax.attributes.AjaxRequestAttributes#setAllowDefault is renamed to #setPreventDefault WICKET-5197
org.apache.wicket.ajax.attributes.AjaxRequestAttributes#eventPropagation is now BUBBLE by default WICKET-5198
org.apache.wicket.ajax.form.AjaxFormValidatingBehavior doesn't use static methods anymore WICKET-5196


Behavior changes


org.apache.wicket.request.Url#getQueryString WICKET-4664
org.apache.wicket.request.http.WebResponse encodes the value of the "filename" in Content-Disposition header WICKET-4934
org.apache.wicket.markup.html.form.FormComponentLabel outputs "required", "disabled" and "error" classes when its form component is either required, disabled or invalid. WICKET-5177
org.apache.wicket.markup.html.panel.FeedbackPanel Do not set CSS class on the li  span element for a feedback message WICKET-4831
AjaxEventBehavior doesn't prevent the default behavior of the _javascript_ event WICKET-5197
Ajax behaviors let _javascript_ events bubble by default WICKET-5198


Deprecated classes/methods/fields are removed


AbstractDefaultAjaxBehavior's #getSuccessHandler(), #getFailureHandler(), #getChannel() and #getPrecondition() are removed.
The old Tree component in wicket-extensions is removed.


Dependency updates


Environment

Wicket 7.0 requires at least Java 7

Wicket 7.0 requires Servlet 3.0

The HTTP response is not flushed automatically when the request is started in asynchronous mode. WICKET-5152
This is an improvement in Wicket 7.0 which should not affect any application migrating from Wicket 6.x. But if you use Servlet 3.0's AsyncContext in IResource in Wicket 7 then make sure that your code flushes the http response after completing the request.

API changes

org/apache/wicket/core/util/io/SerializableChecker is replaced with org.apache.wicket.core.util.objects.checker.CheckingObjectOutputStream WICKET-4817
CheckingObjectOutputStream accepts a list of org.apache.wicket.core.util.objects.checker.IObjectChecker objects which are used to check for different kind of problems during object serialization. Commit diff: d0441059e0

org/apache/wicket/markup/html/border/BoxBorder is removed with no replacement WICKET-4966.
BoxBorder class has been deprecated in Wicket 6.x series

org.apache.wicket.Component#renderHead(HtmlHeaderContainer) is renamed to Component#internalRenderHead(HtmlHeaderContainer) WICKET-4964
Component#renderHead(HtmlHeaderContainer) was very similar to the usually used Component#renderHead(IHeaderResponse). So it has been renamed to avoid any confusions.

org.apache.wicket.request.resource.ResourceReference#getDependencies() now returns a mutable ListHeaderItem WICKET-5124
The old API returned Iterable? extends HeaderItem and was inconvenient to override and add additional dependencies.
With the new API it is as easy as:

MyResourceReference.java

@Override
public ListHeaderItem getDependencies() {
  ListHeaderItem dependencies = super.getDependencies();
  dependencies.add(dep1);
  

[CONF] Apache Wicket Migration to Wicket 7.0

2013-05-23 Thread confluence







Migration to Wicket 7.0
Page edited by Martin Grigorov


Comment:
WICKET-5196


 Changes (1)
 




...
This is done to make it more consistent with _javascript_ API.  
h5. org.apache.wicket.ajax.form.AjaxFormValidatingBehavior doesnt use static methods anymore [WICKET-5196|https://issues.apache.org/jira/browse/WICKET-5196] To use AjaxFormValidatingBehavior in Wicket 6.x the application code should do something like: {code:title=MyComponent.java|borderStyle=solid} AjaxFormValidatingBehavior.addToAllFormComponents(form, keydown, Duration.ONE_SECOND); {code} Due to the usage of static method it wasnt possible to extend this behavior and override for example #updateAjaxAttributes(AjaxRequestAttributes).  The behavior has been reworked a bit to allow this. The new usage is: {code:title=MyComponent.java|borderStyle=solid} form.add(new AjaxFormValidatingBehavior(keydown, Duration.ONE_SECOND); {code} or {code:title=MyComponent.java|borderStyle=solid} formComponent.add(new AjaxFormValidatingBehavior(keydown, Duration.ONE_SECOND); {code} in this case the formComponents owning Form will be used. 
h3. Behavior changes  
...


Full Content

Migrating to Wicket 7.0



Environment

Wicket 7.0 requires at least Java 7
Wicket 7.0 requires Servlet 3.0

The HTTP response is not flushed automatically when the request is started in asynchronous mode. WICKET-5152


API changes


org/apache/wicket/core/util/io/SerializableChecker is replaced with org.apache.wicket.core.util.objects.checker.CheckingObjectOutputStream WICKET-4817
org/apache/wicket/markup/html/border/BoxBorder is removed with no replacement WICKET-4966.
org.apache.wicket.Component#renderHead(HtmlHeaderContainer) is renamed to Component#internalRenderHead(HtmlHeaderContainer) WICKET-4964
org.apache.wicket.request.resource.ResourceReference#getDependencies() now returns a mutable ListHeaderItem WICKET-5124
org.apache.wicket.model.StringResourceModel constructor accepts IModelString for its default value WICKET-4972
org.apache.wicket.extensions.validation.validator.+Xyz+Validator#decorate() now works with IValidationError WICKET-5174
org.apache.wicket.ajax.attributes.AjaxRequestAttributes#setAllowDefault is renamed to #setPreventDefault WICKET-5197
org.apache.wicket.ajax.attributes.AjaxRequestAttributes#eventPropagation is now BUBBLE by default WICKET-5198
org.apache.wicket.ajax.form.AjaxFormValidatingBehavior doesn't use static methods anymore WICKET-5196


Behavior changes


org.apache.wicket.request.Url#getQueryString WICKET-4664
org.apache.wicket.request.http.WebResponse encodes the value of the "filename" in Content-Disposition header WICKET-4934
org.apache.wicket.markup.html.form.FormComponentLabel outputs "required", "disabled" and "error" classes when its form component is either required, disabled or invalid. WICKET-5177
org.apache.wicket.markup.html.panel.FeedbackPanel Do not set CSS class on the li  span element for a feedback message WICKET-4831
AjaxEventBehavior doesn't prevent the default behavior of the _javascript_ event WICKET-5197
Ajax behaviors let _javascript_ events bubble by default WICKET-5198


Dependency updates


Environment

Wicket 7.0 requires at least Java 7

Wicket 7.0 requires Servlet 3.0

The HTTP response is not flushed automatically when the request is started in asynchronous mode. WICKET-5152
This is an improvement in Wicket 7.0 which should not affect any application migrating from Wicket 6.x. But if you use Servlet 3.0's AsyncContext in IResource in Wicket 7 then make sure that your code flushes the http response after completing the request.

API changes

org/apache/wicket/core/util/io/SerializableChecker is replaced with org.apache.wicket.core.util.objects.checker.CheckingObjectOutputStream WICKET-4817
CheckingObjectOutputStream accepts a list of org.apache.wicket.core.util.objects.checker.IObjectChecker objects which are used to check for different kind of problems during object serialization. Commit diff: d0441059e0

org/apache/wicket/markup/html/border/BoxBorder is removed with no replacement WICKET-4966.
BoxBorder class has been deprecated in Wicket 6.x series

org.apache.wicket.Component#renderHead(HtmlHeaderContainer) is renamed to Component#internalRenderHead(HtmlHeaderContainer) WICKET-4964
Component#renderHead(HtmlHeaderContainer) was very similar to the usually used Component#renderHead(IHeaderResponse). So it has been renamed to avoid any confusions.

org.apache.wicket.request.resource.ResourceReference#getDependencies() now returns a mutable ListHeaderItem WICKET-5124
The old API returned Iterable? extends HeaderItem and was inconvenient to 

[CONF] Apache Wicket Wicket Ajax

2013-05-22 Thread confluence







Wicket Ajax
Page edited by Martin Grigorov


Comment:
Add an entry for the new Ajax attribute - EventPropagation


 Changes (1)
 




...
| request timeout | a timeout to abort the request if there is no response. | 0 (no timeout) | rt | | allow default | a boolean flag which indicates whether to allow the default behavior of the HTML element which listens for the event. For example: clicking on Ajax checkbox should allow the default behavior to actually check the box. | false | ad | 
| stop propagation | an enum which controls whether to stop the propagation of the _javascript_ event to its targets parent nodes. Possible values: STOP, STOP_IMMEDIATELY, BUBBLE. | STOP | sp | 
| async | a boolean flag that indicates whether the Ajax call should be asynchronous or not. | true | async | | throttling settings | settings which define whether the Ajax call should be throttled and for how long. See the javadoc of org.apache.wicket.ajax.attributes.ThrottlingSettings for more information. | no throttling | tr | 
...


Full Content



What ?
Why ?
Design and implementation
Table with renamed methods from the previous version
Configuration

Setup
Resource dependencies

AjaxRequestAttributes
Migration steps

o.a.w.ajax.IAjaxCallDecorator is replaced with o.a.w.ajax.attributes.IAjaxCallListener.
Global Ajax call listeners
Automatically migrated attributes.

Tests for the client side Wicket Ajax functionality
Blog articles
FAQ

How to check whether my custom version of the backing _javascript_ library (jQuery) doesn't break Wicket internals somehow ?
What parameters are passed to the handlers ?
How to use the preconditions with non-native/_javascript_-based confirm dialogs ?



What ?

Since version 6.0 Wicket uses jQuery as a backing library for its Ajax functionality.

Why ?

The previous implementations of wicket-ajax.js and wicket-event.js were home baked solutions that worked well but also suffered from the differences in the browsers. Often users complained that some functionality doesn't work on particular version of particular browser. That's why the Wicket team chose to use jQuery to deal with browser inconsistencies and leave us to do our business logic.

Design and implementation

The new implementations (wicket-ajax-jquery.js and wicket-event-jquery.js) use jQuery internally but expose Wicket.* API similar to the previous version.

All Java components and behaviors should still use the Wicket.* API. This way if someday we decide to not use jQuery anymore we will have less work to do. Also if a user uses Dojo/YUI/ExtJS/... and prefer to not have jQuery in her application then she will be able to provide wicket-ajax-xyz.js implementation and replace the default one.

Table with renamed methods from the previous version




 1.5 
 6.0 


 Wicket.fixEvent 
 Wicket.Event.fix 


 Wicket.stopEvent 
 Wicket.Event.stop 


 Wicket.show 
 Wicket.DOM.show 


 Wicket.showIncrementally 
 Wicket.DOM.showIncrementally 


 Wicket.hide 
 Wicket.DOM.hide 


 Wicket.hideIncrementally 
 Wicket.DOM.hideIncrementally 


 Wicket.decode 
 Wicket.Head.Contributor.decode 


 Wicket.ajaxGet, wicketAjaxGet 
 Wicket.Ajax.get 


 Wicket.ajaxPost, wicketAjaxPost 
 Wicket.Ajax.post 


 Wicket.submitForm 
 Wicket.Ajax.submitForm 


 Wicket.submitFormById 
 Wicket.Ajax.submitForm 


 Wicket.replaceOuterHtml 
 Wicket.DOM.replace 


 Wicket.Form.doSerialize 
 Wicket.Form.serializeForm 






Configuration

Setup

To replace any of the _javascript_ files the user application may use:

MyApplication#init():


public void init() {
  super.init();

  IJavaScriptLibrarySettings jsSettings = getJavaScriptLibrarySettings();

  jsSettings.setJQueryReference(new MyJQueryReference());

  jsSettings.setWicketEventReference(new DojoWicketEventReference());

  jsSettings.setWicketAjaxReference(new DojoWicketAjaxReference());

}



Resource dependencies

Since Wicket 6.0 ResourceReference can have dependencies and it is recommended to properly define the dependency chain between this classes.
See the code of org.apache.wicket.ajax.WicketAjaxJQueryResourceReference to see how the default jQuery based implementation does that.

If the user application needs to upgrade/downgrade to new/old version of jQuery then just the first line above is needed:


  getJavaScriptLibrarySettings().setJQueryReference(new AnotherVersionOfJQueryReference());



If the user application needs to use Dojo instead of jQuery then it has provide _javascript_ResourceReferences for wicket-event-dojo.js and wicket-ajax-dojo.js (e.g. DojoWicketEventReference and DojoWicketAjaxReference). Those references should define dependency to 

[CONF] Apache Wicket Migration to Wicket 7.0

2013-05-22 Thread confluence







Migration to Wicket 7.0
Page edited by Martin Grigorov


Comment:
Add notes to the change of allowDefault Ajax attribute


 Changes (2)
 




...
This method now accepts IValidationError as an argument and returns IValidationError. This way it can be used with other IValidationError implementations like RawValidationError for example.  
h5. org.apache.wicket.ajax.attributes.AjaxRequestAttributes#setAllowDefault is renamed to #setPreventDefault [WICKET-5197|https://issues.apache.org/jira/browse/WICKET-5197] This is done to make it more consistent with _javascript_ API.  
h3. Behavior changes  
...
The css class is now only applied to the li element and not to the span inside. Additionally a FeedbackPanel#newMessageItem() method has been added to allow customization of each feedback message item (similar to DataTable#newRowItem()).  
h5. AjaxEventBehavior doesnt prevent the default behavior of the _javascript_ event [WICKET-5197|https://issues.apache.org/jira/browse/WICKET-5197] From now on only AjaxFallback** components prevent the default _javascript_ event behavior so only the Ajax call is made when _javascript_ is enabled in the browser. If the default behavior should be prevented in any use case then use:  {code:borderStyle=solid} attributes.setPreventDefault(true); {code}
h3. Dependency updates  
...


Full Content

Migrating to Wicket 7.0



Environment

Wicket 7.0 requires at least Java 7
Wicket 7.0 requires Servlet 3.0

The HTTP response is not flushed automatically when the request is started in asynchronous mode. WICKET-5152


API changes


org/apache/wicket/core/util/io/SerializableChecker is replaced with org.apache.wicket.core.util.objects.checker.CheckingObjectOutputStream WICKET-4817
org/apache/wicket/markup/html/border/BoxBorder is removed with no replacement WICKET-4966.
org.apache.wicket.Component#renderHead(HtmlHeaderContainer) is renamed to Component#internalRenderHead(HtmlHeaderContainer) WICKET-4964
org.apache.wicket.request.resource.ResourceReference#getDependencies() now returns a mutable ListHeaderItem WICKET-5124
org.apache.wicket.model.StringResourceModel constructor accepts IModelString for its default value WICKET-4972
org.apache.wicket.extensions.validation.validator.+Xyz+Validator#decorate() now works with IValidationError WICKET-5174
org.apache.wicket.ajax.attributes.AjaxRequestAttributes#setAllowDefault is renamed to #setPreventDefault WICKET-5197


Behavior changes


org.apache.wicket.request.Url#getQueryString WICKET-4664
org.apache.wicket.request.http.WebResponse encodes the value of the "filename" in Content-Disposition header WICKET-4934
org.apache.wicket.markup.html.form.FormComponentLabel outputs "required", "disabled" and "error" classes when its form component is either required, disabled or invalid. WICKET-5177
org.apache.wicket.markup.html.panel.FeedbackPanel Do not set CSS class on the li  span element for a feedback message WICKET-4831
AjaxEventBehavior doesn't prevent the default behavior of the _javascript_ event WICKET-5197


Dependency updates


Environment

Wicket 7.0 requires at least Java 7

Wicket 7.0 requires Servlet 3.0

The HTTP response is not flushed automatically when the request is started in asynchronous mode. WICKET-5152
This is an improvement in Wicket 7.0 which should not affect any application migrating from Wicket 6.x. But if you use Servlet 3.0's AsyncContext in IResource in Wicket 7 then make sure that your code flushes the http response after completing the request.

API changes

org/apache/wicket/core/util/io/SerializableChecker is replaced with org.apache.wicket.core.util.objects.checker.CheckingObjectOutputStream WICKET-4817
CheckingObjectOutputStream accepts a list of org.apache.wicket.core.util.objects.checker.IObjectChecker objects which are used to check for different kind of problems during object serialization. Commit diff: d0441059e0

org/apache/wicket/markup/html/border/BoxBorder is removed with no replacement WICKET-4966.
BoxBorder class has been deprecated in Wicket 6.x series

org.apache.wicket.Component#renderHead(HtmlHeaderContainer) is renamed to Component#internalRenderHead(HtmlHeaderContainer) WICKET-4964
Component#renderHead(HtmlHeaderContainer) was very similar to the usually used Component#renderHead(IHeaderResponse). So it has been renamed to avoid any confusions.

org.apache.wicket.request.resource.ResourceReference#getDependencies() now returns a mutable ListHeaderItem WICKET-5124
The old API returned Iterable? extends HeaderItem and was inconvenient to override and add additional dependencies.
With the 

[CONF] Apache Wicket Migration to Wicket 7.0

2013-05-22 Thread confluence







Migration to Wicket 7.0
Page edited by Sven Meier


Comment:
WICKET-5198 eventPropagation


 Changes (2)
 




...
This is done to make it more consistent with _javascript_ API.  
h5. org.apache.wicket.ajax.attributes.AjaxRequestAttributes#eventPropagation is now BUBBLE by default [WICKET-5198|https://issues.apache.org/jira/browse/WICKET-5198] This is done to make it more consistent with _javascript_ API.  
h3. Behavior changes  
...
{code}  
h5. Ajax behaviors let _javascript_ events bubble by default [WICKET-5198|https://issues.apache.org/jira/browse/WICKET-5198] If _javascript_ events should not bubble then use:  {code:borderStyle=solid} attributes.setEventPropagation(EventPropagation.STOP); {code} or: {code:borderStyle=solid} attributes.setEventPropagation(EventPropagation.STOP_IMMEDIATE); {code} 
  
...


Full Content

Migrating to Wicket 7.0



Environment

Wicket 7.0 requires at least Java 7
Wicket 7.0 requires Servlet 3.0

The HTTP response is not flushed automatically when the request is started in asynchronous mode. WICKET-5152


API changes


org/apache/wicket/core/util/io/SerializableChecker is replaced with org.apache.wicket.core.util.objects.checker.CheckingObjectOutputStream WICKET-4817
org/apache/wicket/markup/html/border/BoxBorder is removed with no replacement WICKET-4966.
org.apache.wicket.Component#renderHead(HtmlHeaderContainer) is renamed to Component#internalRenderHead(HtmlHeaderContainer) WICKET-4964
org.apache.wicket.request.resource.ResourceReference#getDependencies() now returns a mutable ListHeaderItem WICKET-5124
org.apache.wicket.model.StringResourceModel constructor accepts IModelString for its default value WICKET-4972
org.apache.wicket.extensions.validation.validator.+Xyz+Validator#decorate() now works with IValidationError WICKET-5174
org.apache.wicket.ajax.attributes.AjaxRequestAttributes#setAllowDefault is renamed to #setPreventDefault WICKET-5197
org.apache.wicket.ajax.attributes.AjaxRequestAttributes#eventPropagation is now BUBBLE by default WICKET-5198


Behavior changes


org.apache.wicket.request.Url#getQueryString WICKET-4664
org.apache.wicket.request.http.WebResponse encodes the value of the "filename" in Content-Disposition header WICKET-4934
org.apache.wicket.markup.html.form.FormComponentLabel outputs "required", "disabled" and "error" classes when its form component is either required, disabled or invalid. WICKET-5177
org.apache.wicket.markup.html.panel.FeedbackPanel Do not set CSS class on the li  span element for a feedback message WICKET-4831
AjaxEventBehavior doesn't prevent the default behavior of the _javascript_ event WICKET-5197
Ajax behaviors let _javascript_ events bubble by default WICKET-5198


Dependency updates


Environment

Wicket 7.0 requires at least Java 7

Wicket 7.0 requires Servlet 3.0

The HTTP response is not flushed automatically when the request is started in asynchronous mode. WICKET-5152
This is an improvement in Wicket 7.0 which should not affect any application migrating from Wicket 6.x. But if you use Servlet 3.0's AsyncContext in IResource in Wicket 7 then make sure that your code flushes the http response after completing the request.

API changes

org/apache/wicket/core/util/io/SerializableChecker is replaced with org.apache.wicket.core.util.objects.checker.CheckingObjectOutputStream WICKET-4817
CheckingObjectOutputStream accepts a list of org.apache.wicket.core.util.objects.checker.IObjectChecker objects which are used to check for different kind of problems during object serialization. Commit diff: d0441059e0

org/apache/wicket/markup/html/border/BoxBorder is removed with no replacement WICKET-4966.
BoxBorder class has been deprecated in Wicket 6.x series

org.apache.wicket.Component#renderHead(HtmlHeaderContainer) is renamed to Component#internalRenderHead(HtmlHeaderContainer) WICKET-4964
Component#renderHead(HtmlHeaderContainer) was very similar to the usually used Component#renderHead(IHeaderResponse). So it has been renamed to avoid any confusions.

org.apache.wicket.request.resource.ResourceReference#getDependencies() now returns a mutable ListHeaderItem WICKET-5124
The old API returned Iterable? extends HeaderItem and was inconvenient to override and add additional dependencies.
With the new API it is as easy as:

MyResourceReference.java

@Override
public ListHeaderItem getDependencies() {
  ListHeaderItem dependencies = super.getDependencies();
  dependencies.add(dep1);
  dependencies.add(dep2);
  return dependencies;
}



The same is done for org.apache.wicket.markup.head.HeaderItem#getDependencies() 

[CONF] Apache Wicket Wicket 7.0 Roadmap

2013-05-09 Thread confluence







Wicket 7.0 Roadmap
Page edited by Martin Grigorov


 Changes (1)
 




...
 * getApplication().getCssSettings().setSortOrderDownClass(sort-order-down); 
  h4. Remove deprecated in Wicket 6.x classes and methods  For example:  * the old Swing based implementation of Tree * the backward compatibility helper methods in AbstractDefaultAjaxBehavior * WicketTester#startComponent() * ... 


Full Content



This page lists the tasks the Wicket team agreed to implement for Wicket 7.0.

Java 7 as a minimum

Generics for org.apache.wicket.Component

Servlet 3 as a minimum
Tickets in Jira with "Fix Version" = 7.0


PageParameters improvements
Minor API cleanups


API Tweaks

SimpleFormComponentLabel should output the "required" class just like wicket:for
 ajaxbehavior#updateAjaxAttributes() should get component passed in
throttling settings should be mutable to make it easier to override just the duration without having to figure out an id
_javascript_ResourceReference#getDependencies() should return an appendable List
XyzValidator#decorate() should work with IValidationError instead of ValidationError
Refactor checkgroup/radiogroup to make them non-components.
cdi 1.1 upgrade
Upgrade dependencies to their latest stable version
Vote which experimental modules should become stable
Make css class strings used in the framework configurable
Remove deprecated in Wicket 6.x classes and methods




This page lists the tasks the Wicket team agreed to implement for Wicket 7.0.

Ideas for Wicket 7.0 list some more ideas but to add a task in the Roadmap it has to be discussed first in the dev mailing list. Ideas with attached patch in Jira ticket or Pull Request have a bigger chance to be included in the Roadmap.

How to help us
	Pick a task from this wiki page or from Jira with "Fix Version" = 7.0.
	Implement it (+ tests when possible) and make a Pull Request at GitHub. We do not own the GitHub repo but it is easy to pull from your repos and apply the code. It is also easy to make code reviews and comment.
If there is no ticket in Jira for an entry in the Roadmap please create one. Always add a comment to the ticket in Jira when you start on it. Just to prevent two or  more people working on the same task.
	Add an entry to the Migration page with description of the change and short code sample of the old way and the new way of doing something.



Java 7 as a minimum

Java 7 has nice support for generics, better annotations, and Java 6 is reaching its end of life pretty soon.

Assignee: mgrigorov
Status: Done

Generics for org.apache.wicket.Component

Using Java 7 will allow to use the "diamonds operator", i.e. 
MyPage.java

  ComponentEntity c = new SomeComponent("id", model);



Assignee: 
Status: Not started
Jira: WICKET-4930

Servlet 3 as a minimum

While we opted to not require servlet 3 for wicket 6, it has bitten us a couple of times solving issues in wicket 6. Servlet 3 has been out for ages, so we should move with the times.

Assignee: mgrigorov
Status: Started
Jira: WICKET-5167

Tickets in Jira with "Fix Version" = 7.0

PageParameters improvements


	read-only
	make it possible to differentiate between named indexed parameters and query string ones.
See WICKET-4594, http://markmail.org/thread/cc7yjwshqugj4wic, WICKET-4441



Assignee: 
Status: Not started

Minor API cleanups


	Rename renderHead(HtmlHeaderContainer) https://issues.apache.org/jira/browse/WICKET-4964
Assignee: mgrigorov
Status: Done
Jira: WICKET-4964



API Tweaks

SimpleFormComponentLabel should output the "required" class just like wicket:for
Assignee: mgrigorov
Status: Done
Jira: WICKET-5177

ajaxbehavior#updateAjaxAttributes() should get component passed in

otherwise referencing the component as needed in throttle settings is annoying



queryField.add(new AjaxFormComponentUpdatingBehavior("onkeydown") {
	protected void updateAjaxAttributes(AjaxRequestAttributes attributes) {
		attributes.setThrottlingSettings(new ThrottlingSettings(queryField.getMarkupId(), Duration.seconds(1)));
^


The component is easily reachable via AbstractAjaxBehavior#getComponent()

throttling settings should be mutable to make it easier to override just the duration without having to figure out an id
Status: Done
Assignee: mgrigorov
JIRA: WICKET-5173

_javascript_ResourceReference#getDependencies() should return an appendable List

so we can do


class MyReference extends _javascript_Reference {
  getDependencies() { List? list=super.getDependencies(); list.add(...); return list; }
}


Status: Done
Assignee: mgrigorov
Jira: WICKET-5124

XyzValidator#decorate() should work with 

[CONF] Apache Wicket Wicket 7.0 Roadmap

2013-05-06 Thread confluence







Wicket 7.0 Roadmap
Page edited by Dominik Drzewiecki


 Changes (1)
 




...
h4. cdi 1.1 upgrade  
wicket-cdi should use cdi 1.1 which should remove dependency onto seam-conversation module. 
Jira: [WICKET-4951|https://issues.apache.org/jira/browse/WICKET-4951] 
 h4. Upgrade dependencies to their latest stable version 
...


Full Content



This page lists the tasks the Wicket team agreed to implement for Wicket 7.0.

Java 7 as a minimum

Generics for org.apache.wicket.Component

Servlet 3 as a minimum
Tickets in Jira with "Fix Version" = 7.0


PageParameters improvements
Minor API cleanups


API Tweaks

SimpleFormComponentLabel should output the "required" class just like wicket:for
 ajaxbehavior#updateAjaxAttributes() should get component passed in
throttling settings should be mutable to make it easier to override just the duration without having to figure out an id
_javascript_ResourceReference#getDependencies() should return an appendable List
XyzValidator#decorate() should work with IValidationError instead of ValidationError
Refactor checkgroup/radiogroup to make them non-components.
cdi 1.1 upgrade
Upgrade dependencies to their latest stable version
Vote which experimental modules should become stable
Make css class strings used in the framework configurable




This page lists the tasks the Wicket team agreed to implement for Wicket 7.0.

Ideas for Wicket 7.0 list some more ideas but to add a task in the Roadmap it has to be discussed first in the dev mailing list. Ideas with attached patch in Jira ticket or Pull Request have a bigger chance to be included in the Roadmap.

How to help us
	Pick a task from this wiki page or from Jira with "Fix Version" = 7.0.
	Implement it (+ tests when possible) and make a Pull Request at GitHub. We do not own the GitHub repo but it is easy to pull from your repos and apply the code. It is also easy to make code reviews and comment.
If there is no ticket in Jira for an entry in the Roadmap please create one. Always add a comment to the ticket in Jira when you start on it. Just to prevent two or  more people working on the same task.
	Add an entry to the Migration page with description of the change and short code sample of the old way and the new way of doing something.



Java 7 as a minimum

Java 7 has nice support for generics, better annotations, and Java 6 is reaching its end of life pretty soon.

Assignee: mgrigorov
Status: Done

Generics for org.apache.wicket.Component

Using Java 7 will allow to use the "diamonds operator", i.e. 
MyPage.java

  ComponentEntity c = new SomeComponent("id", model);



Assignee: 
Status: Not started
Jira: WICKET-4930

Servlet 3 as a minimum

While we opted to not require servlet 3 for wicket 6, it has bitten us a couple of times solving issues in wicket 6. Servlet 3 has been out for ages, so we should move with the times.

Assignee: mgrigorov
Status: Started
Jira: WICKET-5167

Tickets in Jira with "Fix Version" = 7.0

PageParameters improvements


	read-only
	make it possible to differentiate between named indexed parameters and query string ones.
See WICKET-4594, http://markmail.org/thread/cc7yjwshqugj4wic, WICKET-4441



Assignee: 
Status: Not started

Minor API cleanups


	Rename renderHead(HtmlHeaderContainer) https://issues.apache.org/jira/browse/WICKET-4964
Assignee: mgrigorov
Status: Done
Jira: WICKET-4964



API Tweaks

SimpleFormComponentLabel should output the "required" class just like wicket:for
Assignee: mgrigorov
Status: Done
Jira: WICKET-5177

ajaxbehavior#updateAjaxAttributes() should get component passed in

otherwise referencing the component as needed in throttle settings is annoying



queryField.add(new AjaxFormComponentUpdatingBehavior("onkeydown") {
	protected void updateAjaxAttributes(AjaxRequestAttributes attributes) {
		attributes.setThrottlingSettings(new ThrottlingSettings(queryField.getMarkupId(), Duration.seconds(1)));
^


The component is easily reachable via AbstractAjaxBehavior#getComponent()

throttling settings should be mutable to make it easier to override just the duration without having to figure out an id
Status: Done
Assignee: mgrigorov
JIRA: WICKET-5173

_javascript_ResourceReference#getDependencies() should return an appendable List

so we can do


class MyReference extends _javascript_Reference {
  getDependencies() { List? list=super.getDependencies(); list.add(...); return list; }
}


Status: Done
Assignee: mgrigorov
Jira: WICKET-5124

XyzValidator#decorate() should work with IValidationError instead of ValidationError
Status: Done
Assignee: mgrigorov
Jira: WICKET-5174

[CONF] Apache Wicket Ideas for Wicket 7.0

2013-05-06 Thread confluence







Ideas for Wicket 7.0
Page edited by Dominik Drzewiecki


 Changes (1)
 




...
 * Rename renderHead(HtmlHeaderContainer) [https://issues.apache.org/jira/browse/WICKET-4964] 
 h3. Use webjars instead of embedded libraries  ... and integrate [wicket-webjars|https://github.com/l0rdn1kk0n/wicket-webjars] 


Full Content



This page lists ideas what can be improved for Wicket 7.0.

Ajax back button support
Better stateless support
Implement JAX-RS on top of Wicket IResource
PageParameters improvements
Removal of auto-components
Java 7 as a minimum
Servlet 3 as a minimum
Improved tag manipulation
 Make transitions possible/easy when replacing components using Ajax/Push
Integrate bindgen-wicket
Minor API cleanups
Use webjars instead of embedded libraries



This page lists ideas what can be improved for Wicket 7.0.

These are only ideas. Some of them may not be implemented though. There will be a separate Roadmap page that will have only the ideas on which we agreed.
To be approved an idea has to be discussed first in dev@ mailing list. A patch and/or Pull Request increases the chance to get your idea in.

Ajax back button support

Igor has already started something about this at his GitHub

Perhaps this is a better library than simple history: https://github.com/rails/turbolinks

Better stateless support


	add more stateless components (stateless versions of existing components)
	adopt Ajax stateless behaviors
	...



Implement JAX-RS on top of Wicket IResource

Crazy, but why not ...

PageParameters improvements


	read-only
	make it possible to differentiate between named indexed parameters and query string ones.
  See WICKET-4594, http://markmail.org/thread/cc7yjwshqugj4wic, WICKET-4441



Removal of auto-components

Auto components caused some problems due to their special lifecycle - they appear only during the rendering process. This will simplify component queueing, resolvers+auto components, problems with enclosures, ...
The idea is to rework the auto-components to be first class citizens, i.e. once the markup is parsed they should be in the runtime component tree as manually added components are. And should be reachable in the action phase.

Java 7 as a minimum

Java 7 has nice support for generics, better annotations, and Java 6 is reaching its end of life pretty soon.

Servlet 3 as a minimum

While we opted to not require servlet 3 for wicket 6, it has bitten us a couple of times solving issues in wicket 6. Servlet 3 has been out for ages, so we should move with the times.

Improved tag manipulation

Using attribute modifiers it is difficult to modify tags in proper ways such that existing classes on a 'class' attribute remain, while adding/removing other tags. A DSL for manipulating the class value of a component would be really great.

Make transitions possible/easy when replacing components using Ajax/Push

Currently we replace the markup of components, which works for updating the components, but it doesn't provide an easy way to animate the outgoing and incoming markup using CSS transitions. For example if you add a 'hidden' class to the class attribute of a component, and update it using Ajax, the markup gets replaced instead of updated.
See http://wicketinaction.com/2013/02/replace-components-with-animation/

Integrate bindgen-wicket

The issue of fragile property expressions has not been given much love ever since. Bindgen-wicket solves this in a clean and elegant way. Moreover, annotation processing is no longer cumbersome (as it has become part of javac compilation process since java 6).
Discussion in dev@ mailing list: http://markmail.org/thread/z2ngjxxtpqqwsea6

Minor API cleanups


	Rename renderHead(HtmlHeaderContainer) https://issues.apache.org/jira/browse/WICKET-4964



Use webjars instead of embedded libraries

... and integrate wicket-webjars



Change Notification Preferences

View Online
|
View Changes
|
Add Comment









[CONF] Apache Wicket Migration to Wicket 7.0

2013-05-06 Thread confluence







Migration to Wicket 7.0
Page edited by Cedric Gatay


Comment:
Update for WICKET-4837


 Changes (1)
 




...
This way it is in sync with AutoLabel (the auto component that is used for wicket:for attribute).  
h5. org.apache.wicket.markup.html.panel.FeedbackPanel Do not set CSS class on the li  span element for a feedback message [WICKET-4831|https://issues.apache.org/jira/browse/WICKET-4831] The css class is now only applied to the li element and not to the span inside. Additionally a FeedbackPanel#newMessageItem() method has been added to allow customization of each feedback message item (similar to DataTable#newRowItem()).  
h3. Dependency updates  
...


Full Content

Migrating to Wicket 7.0



Environment

Wicket 7.0 requires at least Java 7
Wicket 7.0 requires Servlet 3.0

The HTTP response is not flushed automatically when the request is started in asynchronous mode. WICKET-5152


API changes


org/apache/wicket/core/util/io/SerializableChecker is replaced with org.apache.wicket.core.util.objects.checker.CheckingObjectOutputStream WICKET-4817
org/apache/wicket/markup/html/border/BoxBorder is removed with no replacement WICKET-4966.
org.apache.wicket.Component#renderHead(HtmlHeaderContainer) is renamed to Component#internalRenderHead(HtmlHeaderContainer) WICKET-4964
org.apache.wicket.request.resource.ResourceReference#getDependencies() now returns a mutable ListHeaderItem WICKET-5124
org.apache.wicket.model.StringResourceModel constructor accepts IModelString for its default value WICKET-4972
org.apache.wicket.extensions.validation.validator.+Xyz+Validator#decorate() now works with IValidationError WICKET-5174


Behavior changes


org.apache.wicket.request.Url#getQueryString WICKET-4664
org.apache.wicket.request.http.WebResponse encodes the value of the "filename" in Content-Disposition header WICKET-4934
org.apache.wicket.markup.html.form.FormComponentLabel outputs "required", "disabled" and "error" classes when its form component is either required, disabled or invalid. WICKET-5177
org.apache.wicket.markup.html.panel.FeedbackPanel Do not set CSS class on the li  span element for a feedback message WICKET-4831


Dependency updates


Environment

Wicket 7.0 requires at least Java 7

Wicket 7.0 requires Servlet 3.0

The HTTP response is not flushed automatically when the request is started in asynchronous mode. WICKET-5152
This is an improvement in Wicket 7.0 which should not affect any application migrating from Wicket 6.x. But if you use Servlet 3.0's AsyncContext in IResource in Wicket 7 then make sure that your code flushes the http response after completing the request.

API changes

org/apache/wicket/core/util/io/SerializableChecker is replaced with org.apache.wicket.core.util.objects.checker.CheckingObjectOutputStream WICKET-4817
CheckingObjectOutputStream accepts a list of org.apache.wicket.core.util.objects.checker.IObjectChecker objects which are used to check for different kind of problems during object serialization. Commit diff: d0441059e0

org/apache/wicket/markup/html/border/BoxBorder is removed with no replacement WICKET-4966.
BoxBorder class has been deprecated in Wicket 6.x series

org.apache.wicket.Component#renderHead(HtmlHeaderContainer) is renamed to Component#internalRenderHead(HtmlHeaderContainer) WICKET-4964
Component#renderHead(HtmlHeaderContainer) was very similar to the usually used Component#renderHead(IHeaderResponse). So it has been renamed to avoid any confusions.

org.apache.wicket.request.resource.ResourceReference#getDependencies() now returns a mutable ListHeaderItem WICKET-5124
The old API returned Iterable? extends HeaderItem and was inconvenient to override and add additional dependencies.
With the new API it is as easy as:

MyResourceReference.java

@Override
public ListHeaderItem getDependencies() {
  ListHeaderItem dependencies = super.getDependencies();
  dependencies.add(dep1);
  dependencies.add(dep2);
  return dependencies;
}



The same is done for org.apache.wicket.markup.head.HeaderItem#getDependencies() too.

org.apache.wicket.model.StringResourceModel constructor accepts IModelString for its default value WICKET-4972
There were two problems with the old way:

	since the parameters argument type is Object..., i.e. varargs, it was hard for the compiler and runtime to differentiate the "defaultValue" from the "parameters"
	it wasn't possible to use lazy evaluation of the default value



If in your application you have code like:
MyComponent.java

StringResourceModel model = new StringResourceModel(resourceKey, model, "Some default value", new Object[] [param1, param2]);



then the simplest solution is 

[CONF] Apache Wicket Wicket 7.0 Roadmap

2013-05-03 Thread confluence







Wicket 7.0 Roadmap
Page edited by Martin Grigorov


 Changes (2)
 




...
* Rename renderHead(HtmlHeaderContainer) [https://issues.apache.org/jira/browse/WICKET-4964] Assignee: mgrigorov 
Status: *Done* 
Jira: [WICKET-4964|https://issues.apache.org/jira/browse/WICKET-4964]  
...
 h4.SimpleFormComponentLabel should output the required class just like wicket:for 
Assignee: mgrigorov Status: *Done* Jira: [WICKET-5177|https://issues.apache.org/jira/browse/WICKET-5177] 
 h4. -ajaxbehavior#updateAjaxAttributes() should get component passed in- 
...


Full Content



This page lists the tasks the Wicket team agreed to implement for Wicket 7.0.

Java 7 as a minimum

Generics for org.apache.wicket.Component

Servlet 3 as a minimum
Tickets in Jira with "Fix Version" = 7.0


PageParameters improvements
Minor API cleanups


API Tweaks

SimpleFormComponentLabel should output the "required" class just like wicket:for
 ajaxbehavior#updateAjaxAttributes() should get component passed in
throttling settings should be mutable to make it easier to override just the duration without having to figure out an id
_javascript_ResourceReference#getDependencies() should return an appendable List
XyzValidator#decorate() should work with IValidationError instead of ValidationError
Refactor checkgroup/radiogroup to make them non-components.
cdi 1.1 upgrade
Upgrade dependencies to their latest stable version
Vote which experimental modules should become stable
Make css class strings used in the framework configurable




This page lists the tasks the Wicket team agreed to implement for Wicket 7.0.

Ideas for Wicket 7.0 list some more ideas but to add a task in the Roadmap it has to be discussed first in the dev mailing list. Ideas with attached patch in Jira ticket or Pull Request have a bigger chance to be included in the Roadmap.

How to help us
	Pick a task from this wiki page or from Jira with "Fix Version" = 7.0.
	Implement it (+ tests when possible) and make a Pull Request at GitHub. We do not own the GitHub repo but it is easy to pull from your repos and apply the code. It is also easy to make code reviews and comment.
If there is no ticket in Jira for an entry in the Roadmap please create one. Always add a comment to the ticket in Jira when you start on it. Just to prevent two or  more people working on the same task.
	Add an entry to the Migration page with description of the change and short code sample of the old way and the new way of doing something.



Java 7 as a minimum

Java 7 has nice support for generics, better annotations, and Java 6 is reaching its end of life pretty soon.

Assignee: mgrigorov
Status: Done

Generics for org.apache.wicket.Component

Using Java 7 will allow to use the "diamonds operator", i.e. 
MyPage.java

  ComponentEntity c = new SomeComponent("id", model);



Assignee: 
Status: Not started
Jira: WICKET-4930

Servlet 3 as a minimum

While we opted to not require servlet 3 for wicket 6, it has bitten us a couple of times solving issues in wicket 6. Servlet 3 has been out for ages, so we should move with the times.

Assignee: mgrigorov
Status: Started
Jira: WICKET-5167

Tickets in Jira with "Fix Version" = 7.0

PageParameters improvements


	read-only
	make it possible to differentiate between named indexed parameters and query string ones.
See WICKET-4594, http://markmail.org/thread/cc7yjwshqugj4wic, WICKET-4441



Assignee: 
Status: Not started

Minor API cleanups


	Rename renderHead(HtmlHeaderContainer) https://issues.apache.org/jira/browse/WICKET-4964
Assignee: mgrigorov
Status: Done
Jira: WICKET-4964



API Tweaks

SimpleFormComponentLabel should output the "required" class just like wicket:for
Assignee: mgrigorov
Status: Done
Jira: WICKET-5177

ajaxbehavior#updateAjaxAttributes() should get component passed in

otherwise referencing the component as needed in throttle settings is annoying



queryField.add(new AjaxFormComponentUpdatingBehavior("onkeydown") {
	protected void updateAjaxAttributes(AjaxRequestAttributes attributes) {
		attributes.setThrottlingSettings(new ThrottlingSettings(queryField.getMarkupId(), Duration.seconds(1)));
^


The component is easily reachable via AbstractAjaxBehavior#getComponent()

throttling settings should be mutable to make it easier to override just the duration without having to figure out an id
Status: Done
Assignee: mgrigorov
JIRA: WICKET-5173

_javascript_ResourceReference#getDependencies() should return an appendable List

so we can do


class MyReference extends _javascript_Reference {
  getDependencies() 

[CONF] Apache Wicket Migration to Wicket 7.0

2013-05-03 Thread confluence







Migration to Wicket 7.0
Page edited by Martin Grigorov


 Changes (1)
 




...
The value of the file name used in Content-Disposition response header can contain characters which should be [encoded|http://greenbytes.de/tech/tc2231/]  
h5. org.apache.wicket.markup.html.form.FormComponentLabel outputs required, disabled and error classes when its form component is either required, disabled or invalid.  [WICKET-5177|https://issues.apache.org/jira/browse/WICKET-5177] This way it is in sync with AutoLabel (the auto component that is used for wicket:for attribute).  
h3. Dependency updates  
...


Full Content

Migrating to Wicket 7.0



Environment

Wicket 7.0 requires at least Java 7
Wicket 7.0 requires Servlet 3.0

The HTTP response is not flushed automatically when the request is started in asynchronous mode. WICKET-5152


API changes


org/apache/wicket/core/util/io/SerializableChecker is replaced with org.apache.wicket.core.util.objects.checker.CheckingObjectOutputStream WICKET-4817
org/apache/wicket/markup/html/border/BoxBorder is removed with no replacement WICKET-4966.
org.apache.wicket.Component#renderHead(HtmlHeaderContainer) is renamed to Component#internalRenderHead(HtmlHeaderContainer) WICKET-4964
org.apache.wicket.request.resource.ResourceReference#getDependencies() now returns a mutable ListHeaderItem WICKET-5124
org.apache.wicket.model.StringResourceModel constructor accepts IModelString for its default value WICKET-4972
org.apache.wicket.extensions.validation.validator.+Xyz+Validator#decorate() now works with IValidationError WICKET-5174


Behavior changes


org.apache.wicket.request.Url#getQueryString WICKET-4664
org.apache.wicket.request.http.WebResponse encodes the value of the "filename" in Content-Disposition header WICKET-4934
org.apache.wicket.markup.html.form.FormComponentLabel outputs "required", "disabled" and "error" classes when its form component is either required, disabled or invalid. WICKET-5177


Dependency updates


Environment

Wicket 7.0 requires at least Java 7

Wicket 7.0 requires Servlet 3.0

The HTTP response is not flushed automatically when the request is started in asynchronous mode. WICKET-5152
This is an improvement in Wicket 7.0 which should not affect any application migrating from Wicket 6.x. But if you use Servlet 3.0's AsyncContext in IResource in Wicket 7 then make sure that your code flushes the http response after completing the request.

API changes

org/apache/wicket/core/util/io/SerializableChecker is replaced with org.apache.wicket.core.util.objects.checker.CheckingObjectOutputStream WICKET-4817
CheckingObjectOutputStream accepts a list of org.apache.wicket.core.util.objects.checker.IObjectChecker objects which are used to check for different kind of problems during object serialization. Commit diff: d0441059e0

org/apache/wicket/markup/html/border/BoxBorder is removed with no replacement WICKET-4966.
BoxBorder class has been deprecated in Wicket 6.x series

org.apache.wicket.Component#renderHead(HtmlHeaderContainer) is renamed to Component#internalRenderHead(HtmlHeaderContainer) WICKET-4964
Component#renderHead(HtmlHeaderContainer) was very similar to the usually used Component#renderHead(IHeaderResponse). So it has been renamed to avoid any confusions.

org.apache.wicket.request.resource.ResourceReference#getDependencies() now returns a mutable ListHeaderItem WICKET-5124
The old API returned Iterable? extends HeaderItem and was inconvenient to override and add additional dependencies.
With the new API it is as easy as:

MyResourceReference.java

@Override
public ListHeaderItem getDependencies() {
  ListHeaderItem dependencies = super.getDependencies();
  dependencies.add(dep1);
  dependencies.add(dep2);
  return dependencies;
}



org.apache.wicket.model.StringResourceModel constructor accepts IModelString for its default value WICKET-4972
There were two problems with the old way:

	since the parameters argument type is Object..., i.e. varargs, it was hard for the compiler and runtime to differentiate the "defaultValue" from the "parameters"
	it wasn't possible to use lazy evaluation of the default value



If in your application you have code like:
MyComponent.java

StringResourceModel model = new StringResourceModel(resourceKey, model, "Some default value", new Object[] [param1, param2]);



then the simplest solution is to use Model.of("Some default value"):
MyComponent.java

StringResourceModel model = new StringResourceModel(resourceKey, model, Model.of("Some default value"), new Object[] [param1, param2]);



org.apache.wicket.extensions.validation.validator.+Xyz+Validator#decorate() now works with IValidationError WICKET-5174

[CONF] Apache Wicket Migration to Wicket 7.0

2013-05-02 Thread confluence







Migration to Wicket 7.0
Page edited by Martin Grigorov


 Changes (1)
 




...
h5. org.apache.wicket.Component#renderHead(HtmlHeaderContainer) is renamed to Component#internalRenderHead(HtmlHeaderContainer) [WICKET-4964|https://issues.apache.org/jira/browse/WICKET-4964] Component#renderHead(HtmlHeaderContainer) was very similar to the usually used Component#renderHead(IHeaderResponse). So it has been renamed to avoid any confusions. 
 h5. org.apache.wicket.request.resource.ResourceReference#getDependencies() now returns a mutable ListHeaderItem [WICKET-5124|https://issues.apache.org/jira/browse/WICKET-5124] The old API returned Iterable? extends HeaderItem and was inconvenient to override and add additional dependencies. With the new API it is as easy as:  {code:title=MyResourceReference.java|borderStyle=solid} @Override public ListHeaderItem getDependencies() {   ListHeaderItem dependencies = super.getDependencies();   dependencies.add(dep1);   dependencies.add(dep2);   return dependencies; } {code}  


Full Content

Migrating to Wicket 7.0



Environment

Wicket 7.0 requires at least Java 7
Wicket 7.0 requires Servlet 3.0

The HTTP response is not flushed automatically when the request is started in asynchronous mode. WICKET-5152


API changes


org/apache/wicket/core/util/io/SerializableChecker is replaced with org.apache.wicket.core.util.objects.checker.CheckingObjectOutputStream WICKET-4817
org/apache/wicket/markup/html/border/BoxBorder is removed with no replacement WICKET-4966.
org.apache.wicket.Component#renderHead(HtmlHeaderContainer) is renamed to Component#internalRenderHead(HtmlHeaderContainer) WICKET-4964
org.apache.wicket.request.resource.ResourceReference#getDependencies() now returns a mutable ListHeaderItem WICKET-5124




Environment

Wicket 7.0 requires at least Java 7

Wicket 7.0 requires Servlet 3.0

The HTTP response is not flushed automatically when the request is started in asynchronous mode. WICKET-5152
This is an improvement in Wicket 7.0 which should not affect any application migrating from Wicket 6.x. But if you use Servlet 3.0's AsyncContext in IResource in Wicket 7 then make sure that your code flushes the http response after completing the request.

API changes

org/apache/wicket/core/util/io/SerializableChecker is replaced with org.apache.wicket.core.util.objects.checker.CheckingObjectOutputStream WICKET-4817
CheckingObjectOutputStream accepts a list of org.apache.wicket.core.util.objects.checker.IObjectChecker objects which are used to check for different kind of problems during object serialization. Commit diff: d0441059e0

org/apache/wicket/markup/html/border/BoxBorder is removed with no replacement WICKET-4966.
BoxBorder class has been deprecated in Wicket 6.x series

org.apache.wicket.Component#renderHead(HtmlHeaderContainer) is renamed to Component#internalRenderHead(HtmlHeaderContainer) WICKET-4964
Component#renderHead(HtmlHeaderContainer) was very similar to the usually used Component#renderHead(IHeaderResponse). So it has been renamed to avoid any confusions.

org.apache.wicket.request.resource.ResourceReference#getDependencies() now returns a mutable ListHeaderItem WICKET-5124
The old API returned Iterable? extends HeaderItem and was inconvenient to override and add additional dependencies.
With the new API it is as easy as:

MyResourceReference.java

@Override
public ListHeaderItem getDependencies() {
  ListHeaderItem dependencies = super.getDependencies();
  dependencies.add(dep1);
  dependencies.add(dep2);
  return dependencies;
}

 



Change Notification Preferences

View Online
|
View Changes
|
Add Comment









[CONF] Apache Wicket Migration to Wicket 7.0

2013-05-02 Thread confluence







Migration to Wicket 7.0
Page edited by Martin Grigorov


 Changes (1)
 




...
  return dependencies; } 
{code} 
 h5. org.apache.wicket.model.StringResourceModel constructor accepts IModelString for its default value [WICKET-4972|https://issues.apache.org/jira/browse/WICKET-4972] There were two problems with the old way: * since the _parameters_ argument type is Object..., i.e. varargs, it was hard for the compiler and runtime to differentiate the defaultValue from the parameters * it wasnt possible to use lazy evaluation of the default value  If in your application you have code like: {code:title=MyComponent.java|borderStyle=solid} StringResourceModel model = new StringResourceModel(resourceKey, model, Some default value, new Object[] [param1, param2]); {code}  then the simplest solution is to use _Model.of(Some default value)_: {code:title=MyComponent.java|borderStyle=solid} StringResourceModel model = new StringResourceModel(resourceKey, model, Model.of(Some default value), new Object[] [param1, param2]); {code} 


Full Content

Migrating to Wicket 7.0



Environment

Wicket 7.0 requires at least Java 7
Wicket 7.0 requires Servlet 3.0

The HTTP response is not flushed automatically when the request is started in asynchronous mode. WICKET-5152


API changes


org/apache/wicket/core/util/io/SerializableChecker is replaced with org.apache.wicket.core.util.objects.checker.CheckingObjectOutputStream WICKET-4817
org/apache/wicket/markup/html/border/BoxBorder is removed with no replacement WICKET-4966.
org.apache.wicket.Component#renderHead(HtmlHeaderContainer) is renamed to Component#internalRenderHead(HtmlHeaderContainer) WICKET-4964
org.apache.wicket.request.resource.ResourceReference#getDependencies() now returns a mutable ListHeaderItem WICKET-5124
org.apache.wicket.model.StringResourceModel constructor accepts IModelString for its default value WICKET-4972




Environment

Wicket 7.0 requires at least Java 7

Wicket 7.0 requires Servlet 3.0

The HTTP response is not flushed automatically when the request is started in asynchronous mode. WICKET-5152
This is an improvement in Wicket 7.0 which should not affect any application migrating from Wicket 6.x. But if you use Servlet 3.0's AsyncContext in IResource in Wicket 7 then make sure that your code flushes the http response after completing the request.

API changes

org/apache/wicket/core/util/io/SerializableChecker is replaced with org.apache.wicket.core.util.objects.checker.CheckingObjectOutputStream WICKET-4817
CheckingObjectOutputStream accepts a list of org.apache.wicket.core.util.objects.checker.IObjectChecker objects which are used to check for different kind of problems during object serialization. Commit diff: d0441059e0

org/apache/wicket/markup/html/border/BoxBorder is removed with no replacement WICKET-4966.
BoxBorder class has been deprecated in Wicket 6.x series

org.apache.wicket.Component#renderHead(HtmlHeaderContainer) is renamed to Component#internalRenderHead(HtmlHeaderContainer) WICKET-4964
Component#renderHead(HtmlHeaderContainer) was very similar to the usually used Component#renderHead(IHeaderResponse). So it has been renamed to avoid any confusions.

org.apache.wicket.request.resource.ResourceReference#getDependencies() now returns a mutable ListHeaderItem WICKET-5124
The old API returned Iterable? extends HeaderItem and was inconvenient to override and add additional dependencies.
With the new API it is as easy as:

MyResourceReference.java

@Override
public ListHeaderItem getDependencies() {
  ListHeaderItem dependencies = super.getDependencies();
  dependencies.add(dep1);
  dependencies.add(dep2);
  return dependencies;
}



org.apache.wicket.model.StringResourceModel constructor accepts IModelString for its default value WICKET-4972
There were two problems with the old way:

	since the parameters argument type is Object..., i.e. varargs, it was hard for the compiler and runtime to differentiate the "defaultValue" from the "parameters"
	it wasn't possible to use lazy evaluation of the default value



If in your application you have code like:
MyComponent.java

StringResourceModel model = new StringResourceModel(resourceKey, model, "Some default value", new Object[] [param1, param2]);



then the simplest solution is to use Model.of("Some default value"):
MyComponent.java

StringResourceModel model = new StringResourceModel(resourceKey, model, Model.of("Some default value"), new Object[] [param1, param2]);









Change Notification Preferences

View Online
|
View Changes
|
Add Comment









[CONF] Apache Wicket Migration to Wicket 7.0

2013-05-02 Thread confluence







Migration to Wicket 7.0
Page edited by Martin Grigorov


 Changes (1)
 




...
StringResourceModel model = new StringResourceModel(resourceKey, model, Model.of(Some default value), new Object[] [param1, param2]); {code} 
  h3. Behavior changes  h5. org.apache.wicket.request.Url#getQueryString [WICKET-4774|https://issues.apache.org/jira/browse/WICKET-4774] TODO  h5. org.apache.wicket.request.http.WebResponse encodes the value of the filename in Content-Disposition header [WICKET-4934|https://issues.apache.org/jira/browse/WICKET-4934] The value of the file name used in Content-Disposition response header can contain characters which should be [encoded|http://greenbytes.de/tech/tc2231/] 


Full Content

Migrating to Wicket 7.0



Environment

Wicket 7.0 requires at least Java 7
Wicket 7.0 requires Servlet 3.0

The HTTP response is not flushed automatically when the request is started in asynchronous mode. WICKET-5152


API changes


org/apache/wicket/core/util/io/SerializableChecker is replaced with org.apache.wicket.core.util.objects.checker.CheckingObjectOutputStream WICKET-4817
org/apache/wicket/markup/html/border/BoxBorder is removed with no replacement WICKET-4966.
org.apache.wicket.Component#renderHead(HtmlHeaderContainer) is renamed to Component#internalRenderHead(HtmlHeaderContainer) WICKET-4964
org.apache.wicket.request.resource.ResourceReference#getDependencies() now returns a mutable ListHeaderItem WICKET-5124
org.apache.wicket.model.StringResourceModel constructor accepts IModelString for its default value WICKET-4972


Behavior changes


org.apache.wicket.request.Url#getQueryString WICKET-4774
org.apache.wicket.request.http.WebResponse encodes the value of the "filename" in Content-Disposition header WICKET-4934




Environment

Wicket 7.0 requires at least Java 7

Wicket 7.0 requires Servlet 3.0

The HTTP response is not flushed automatically when the request is started in asynchronous mode. WICKET-5152
This is an improvement in Wicket 7.0 which should not affect any application migrating from Wicket 6.x. But if you use Servlet 3.0's AsyncContext in IResource in Wicket 7 then make sure that your code flushes the http response after completing the request.

API changes

org/apache/wicket/core/util/io/SerializableChecker is replaced with org.apache.wicket.core.util.objects.checker.CheckingObjectOutputStream WICKET-4817
CheckingObjectOutputStream accepts a list of org.apache.wicket.core.util.objects.checker.IObjectChecker objects which are used to check for different kind of problems during object serialization. Commit diff: d0441059e0

org/apache/wicket/markup/html/border/BoxBorder is removed with no replacement WICKET-4966.
BoxBorder class has been deprecated in Wicket 6.x series

org.apache.wicket.Component#renderHead(HtmlHeaderContainer) is renamed to Component#internalRenderHead(HtmlHeaderContainer) WICKET-4964
Component#renderHead(HtmlHeaderContainer) was very similar to the usually used Component#renderHead(IHeaderResponse). So it has been renamed to avoid any confusions.

org.apache.wicket.request.resource.ResourceReference#getDependencies() now returns a mutable ListHeaderItem WICKET-5124
The old API returned Iterable? extends HeaderItem and was inconvenient to override and add additional dependencies.
With the new API it is as easy as:

MyResourceReference.java

@Override
public ListHeaderItem getDependencies() {
  ListHeaderItem dependencies = super.getDependencies();
  dependencies.add(dep1);
  dependencies.add(dep2);
  return dependencies;
}



org.apache.wicket.model.StringResourceModel constructor accepts IModelString for its default value WICKET-4972
There were two problems with the old way:

	since the parameters argument type is Object..., i.e. varargs, it was hard for the compiler and runtime to differentiate the "defaultValue" from the "parameters"
	it wasn't possible to use lazy evaluation of the default value



If in your application you have code like:
MyComponent.java

StringResourceModel model = new StringResourceModel(resourceKey, model, "Some default value", new Object[] [param1, param2]);



then the simplest solution is to use Model.of("Some default value"):
MyComponent.java

StringResourceModel model = new StringResourceModel(resourceKey, model, Model.of("Some default value"), new Object[] [param1, param2]);




Behavior changes

org.apache.wicket.request.Url#getQueryString WICKET-4774
TODO

org.apache.wicket.request.http.WebResponse encodes the value of the "filename" in Content-Disposition header WICKET-4934
The value of the file name used in "Content-Disposition" response header can contain characters which should be encoded



Change Notification 

[CONF] Apache Wicket Migration to Wicket 7.0

2013-05-02 Thread confluence







Migration to Wicket 7.0
Page edited by Cedric Gatay


Comment:
Added behavior changes involved by WICKET-4664


 Changes (3)
 




...
 h5. org.apache.wicket.request.Url#getQueryString [WICKET-4664|https://issues.apache.org/jira/browse/WICKET-4664] 
TODO 
Url#getQueryString() now behaves as HttpServletRequest behaves :  
 
 * returns the query string without the leading ?  * returns null when there is no query string  RequestUtils#decodeParameters() now strips the ? from the output value.  
h5. org.apache.wicket.request.http.WebResponse encodes the value of the filename in Content-Disposition header [WICKET-4934|https://issues.apache.org/jira/browse/WICKET-4934] The value of the file name used in Content-Disposition response header can contain characters which should be [encoded|http://greenbytes.de/tech/tc2231/] 


Full Content

Migrating to Wicket 7.0



Environment

Wicket 7.0 requires at least Java 7
Wicket 7.0 requires Servlet 3.0

The HTTP response is not flushed automatically when the request is started in asynchronous mode. WICKET-5152


API changes


org/apache/wicket/core/util/io/SerializableChecker is replaced with org.apache.wicket.core.util.objects.checker.CheckingObjectOutputStream WICKET-4817
org/apache/wicket/markup/html/border/BoxBorder is removed with no replacement WICKET-4966.
org.apache.wicket.Component#renderHead(HtmlHeaderContainer) is renamed to Component#internalRenderHead(HtmlHeaderContainer) WICKET-4964
org.apache.wicket.request.resource.ResourceReference#getDependencies() now returns a mutable ListHeaderItem WICKET-5124
org.apache.wicket.model.StringResourceModel constructor accepts IModelString for its default value WICKET-4972


Behavior changes


org.apache.wicket.request.Url#getQueryString WICKET-4664
org.apache.wicket.request.http.WebResponse encodes the value of the "filename" in Content-Disposition header WICKET-4934




Environment

Wicket 7.0 requires at least Java 7

Wicket 7.0 requires Servlet 3.0

The HTTP response is not flushed automatically when the request is started in asynchronous mode. WICKET-5152
This is an improvement in Wicket 7.0 which should not affect any application migrating from Wicket 6.x. But if you use Servlet 3.0's AsyncContext in IResource in Wicket 7 then make sure that your code flushes the http response after completing the request.

API changes

org/apache/wicket/core/util/io/SerializableChecker is replaced with org.apache.wicket.core.util.objects.checker.CheckingObjectOutputStream WICKET-4817
CheckingObjectOutputStream accepts a list of org.apache.wicket.core.util.objects.checker.IObjectChecker objects which are used to check for different kind of problems during object serialization. Commit diff: d0441059e0

org/apache/wicket/markup/html/border/BoxBorder is removed with no replacement WICKET-4966.
BoxBorder class has been deprecated in Wicket 6.x series

org.apache.wicket.Component#renderHead(HtmlHeaderContainer) is renamed to Component#internalRenderHead(HtmlHeaderContainer) WICKET-4964
Component#renderHead(HtmlHeaderContainer) was very similar to the usually used Component#renderHead(IHeaderResponse). So it has been renamed to avoid any confusions.

org.apache.wicket.request.resource.ResourceReference#getDependencies() now returns a mutable ListHeaderItem WICKET-5124
The old API returned Iterable? extends HeaderItem and was inconvenient to override and add additional dependencies.
With the new API it is as easy as:

MyResourceReference.java

@Override
public ListHeaderItem getDependencies() {
  ListHeaderItem dependencies = super.getDependencies();
  dependencies.add(dep1);
  dependencies.add(dep2);
  return dependencies;
}



org.apache.wicket.model.StringResourceModel constructor accepts IModelString for its default value WICKET-4972
There were two problems with the old way:

	since the parameters argument type is Object..., i.e. varargs, it was hard for the compiler and runtime to differentiate the "defaultValue" from the "parameters"
	it wasn't possible to use lazy evaluation of the default value



If in your application you have code like:
MyComponent.java

StringResourceModel model = new StringResourceModel(resourceKey, model, "Some default value", new Object[] [param1, param2]);



then the simplest solution is to use Model.of("Some default value"):
MyComponent.java

StringResourceModel model = new StringResourceModel(resourceKey, model, Model.of("Some default value"), new Object[] [param1, param2]);




Behavior changes

org.apache.wicket.request.Url#getQueryString WICKET-4664
Url#getQueryString() now behaves as HttpServletRequest behaves : 


	returns the query string 

[CONF] Apache Wicket Wicket 7.0 Roadmap

2013-05-02 Thread confluence







Wicket 7.0 Roadmap
Page edited by Martin Grigorov


 Changes (1)
 




...
 Guice, Spring, JUnit, Mockito, Velocity, ... 
 h4. Vote which experimental modules should become stable  The experimental modules can be promoted as stable and use the same version as wicket-core module. This will make them first class citizens and may be more users will start using them, and at least will simplify their release process. 


Full Content



This page lists the tasks the Wicket team agreed to implement for Wicket 7.0.

Java 7 as a minimum

Generics for org.apache.wicket.Component

Servlet 3 as a minimum
Tickets in Jira with "Fix Version" = 7.0


PageParameters improvements
Minor API cleanups


API Tweaks

SimpleFormComponentLabel should output the "required" class just like wicket:for
 ajaxbehavior#updateAjaxAttributes() should get component passed in
throttling settings should be mutable to make it easier to override just the duration without having to figure out an id
_javascript_ResourceReference#getDependencies() should return an appendable List
XyzValidator#decorate() should work with IValidationError instead of ValidationError
Refactor checkgroup/radiogroup to make them non-components.
cdi 1.1 upgrade
Upgrade dependencies to their latest stable version
Vote which experimental modules should become stable




This page lists the tasks the Wicket team agreed to implement for Wicket 7.0.

Ideas for Wicket 7.0 list some more ideas but to add a task in the Roadmap it has to be discussed first in the dev mailing list. Ideas with attached patch in Jira ticket or Pull Request have a bigger chance to be included in the Roadmap.

How to help us
	Pick a task from this wiki page or from Jira with "Fix Version" = 7.0.
	Implement it (+ tests when possible) and make a Pull Request at GitHub. We do not own the GitHub repo but it is easy to pull from your repos and apply the code. It is also easy to make code reviews and comment.
If there is no ticket in Jira for an entry in the Roadmap please create one. Always add a comment to the ticket in Jira when you start on it. Just to prevent two or  more people working on the same task.
	Add an entry to the Migration page with description of the change and short code sample of the old way and the new way of doing something.



Java 7 as a minimum

Java 7 has nice support for generics, better annotations, and Java 6 is reaching its end of life pretty soon.

Assignee: 
Status: Not started
Jira: 

Generics for org.apache.wicket.Component

Using Java 7 will allow to use the "diamonds operator", i.e. 
MyPage.java

  ComponentEntity c = new SomeComponent("id", model);



Assignee: 
Status: Not started
Jira: 

Servlet 3 as a minimum

While we opted to not require servlet 3 for wicket 6, it has bitten us a couple of times solving issues in wicket 6. Servlet 3 has been out for ages, so we should move with the times.

Assignee: mgrigorov
Status: Started
Jira: WICKET-5167

Tickets in Jira with "Fix Version" = 7.0

PageParameters improvements


	read-only
	make it possible to differentiate between named indexed parameters and query string ones.
See WICKET-4594, http://markmail.org/thread/cc7yjwshqugj4wic, WICKET-4441



Assignee: 
Status: Not started

Minor API cleanups


	Rename renderHead(HtmlHeaderContainer) https://issues.apache.org/jira/browse/WICKET-4964
Assignee: mgrigorov
Status: Done
Jira: WICKET-4964



API Tweaks

SimpleFormComponentLabel should output the "required" class just like wicket:for

ajaxbehavior#updateAjaxAttributes() should get component passed in

otherwise referencing the component as needed in throttle settings is annoying



queryField.add(new AjaxFormComponentUpdatingBehavior("onkeydown") {
	protected void updateAjaxAttributes(AjaxRequestAttributes attributes) {
		attributes.setThrottlingSettings(new ThrottlingSettings(queryField.getMarkupId(), Duration.seconds(1)));
^


The component is easily reachable via AbstractAjaxBehavior#getComponent()

throttling settings should be mutable to make it easier to override just the duration without having to figure out an id

_javascript_ResourceReference#getDependencies() should return an appendable List

so we can do


class MyReference extends _javascript_Reference {
  getDependencies() { List? list=super.getDependencies(); list.add(...); return list; }
}


Status: Done

XyzValidator#decorate() should work with IValidationError instead of ValidationError

Refactor checkgroup/radiogroup to make them non-components.


	it is awkward to require a parent container as a wicket component. most of the time it needs to be attached to wicket:container tag because 

[CONF] Apache Wicket Wicket 7.0 Roadmap

2013-05-02 Thread confluence







Wicket 7.0 Roadmap
Page edited by Martin Grigorov


 Changes (1)
 




...
 h4. throttling settings should be mutable to make it easier to override just the duration without having to figure out an id 
Status: *Done* Assignee: mgrigorov JIRA: [WICKET-5173|https://issues.apache.org/jira/browse/WICKET-5173] 
 h4. _javascript_ResourceReference#getDependencies() should return an appendable List 
...


Full Content



This page lists the tasks the Wicket team agreed to implement for Wicket 7.0.

Java 7 as a minimum

Generics for org.apache.wicket.Component

Servlet 3 as a minimum
Tickets in Jira with "Fix Version" = 7.0


PageParameters improvements
Minor API cleanups


API Tweaks

SimpleFormComponentLabel should output the "required" class just like wicket:for
 ajaxbehavior#updateAjaxAttributes() should get component passed in
throttling settings should be mutable to make it easier to override just the duration without having to figure out an id
_javascript_ResourceReference#getDependencies() should return an appendable List
XyzValidator#decorate() should work with IValidationError instead of ValidationError
Refactor checkgroup/radiogroup to make them non-components.
cdi 1.1 upgrade
Upgrade dependencies to their latest stable version
Vote which experimental modules should become stable




This page lists the tasks the Wicket team agreed to implement for Wicket 7.0.

Ideas for Wicket 7.0 list some more ideas but to add a task in the Roadmap it has to be discussed first in the dev mailing list. Ideas with attached patch in Jira ticket or Pull Request have a bigger chance to be included in the Roadmap.

How to help us
	Pick a task from this wiki page or from Jira with "Fix Version" = 7.0.
	Implement it (+ tests when possible) and make a Pull Request at GitHub. We do not own the GitHub repo but it is easy to pull from your repos and apply the code. It is also easy to make code reviews and comment.
If there is no ticket in Jira for an entry in the Roadmap please create one. Always add a comment to the ticket in Jira when you start on it. Just to prevent two or  more people working on the same task.
	Add an entry to the Migration page with description of the change and short code sample of the old way and the new way of doing something.



Java 7 as a minimum

Java 7 has nice support for generics, better annotations, and Java 6 is reaching its end of life pretty soon.

Assignee: 
Status: Not started
Jira: 

Generics for org.apache.wicket.Component

Using Java 7 will allow to use the "diamonds operator", i.e. 
MyPage.java

  ComponentEntity c = new SomeComponent("id", model);



Assignee: 
Status: Not started
Jira: 

Servlet 3 as a minimum

While we opted to not require servlet 3 for wicket 6, it has bitten us a couple of times solving issues in wicket 6. Servlet 3 has been out for ages, so we should move with the times.

Assignee: mgrigorov
Status: Started
Jira: WICKET-5167

Tickets in Jira with "Fix Version" = 7.0

PageParameters improvements


	read-only
	make it possible to differentiate between named indexed parameters and query string ones.
See WICKET-4594, http://markmail.org/thread/cc7yjwshqugj4wic, WICKET-4441



Assignee: 
Status: Not started

Minor API cleanups


	Rename renderHead(HtmlHeaderContainer) https://issues.apache.org/jira/browse/WICKET-4964
Assignee: mgrigorov
Status: Done
Jira: WICKET-4964



API Tweaks

SimpleFormComponentLabel should output the "required" class just like wicket:for

ajaxbehavior#updateAjaxAttributes() should get component passed in

otherwise referencing the component as needed in throttle settings is annoying



queryField.add(new AjaxFormComponentUpdatingBehavior("onkeydown") {
	protected void updateAjaxAttributes(AjaxRequestAttributes attributes) {
		attributes.setThrottlingSettings(new ThrottlingSettings(queryField.getMarkupId(), Duration.seconds(1)));
^


The component is easily reachable via AbstractAjaxBehavior#getComponent()

throttling settings should be mutable to make it easier to override just the duration without having to figure out an id
Status: Done
Assignee: mgrigorov
JIRA: WICKET-5173

_javascript_ResourceReference#getDependencies() should return an appendable List

so we can do


class MyReference extends _javascript_Reference {
  getDependencies() { List? list=super.getDependencies(); list.add(...); return list; }
}


Status: Done

XyzValidator#decorate() should work with IValidationError instead of ValidationError

Refactor checkgroup/radiogroup to make them non-components.


	it is awkward to require a parent container as a wicket component. most of the 

[CONF] Apache Wicket Migration to Wicket 7.0

2013-05-02 Thread confluence







Migration to Wicket 7.0
Page edited by Martin Grigorov


 Changes (1)
 




...
{code}  
h5. org.apache.wicket.extensions.validation.validator.+Xyz+Validator#decorate() now works with _IValidationError_ [WICKET-5174|https://issues.apache.org/jira/browse/WICKET-5174] This method now accepts IValidationError as an argument and returns IValidationError. This way it can be used with other IValidationError implementations like RawValidationError for example. 
 h3. Behavior changes 
...


Full Content

Migrating to Wicket 7.0



Environment

Wicket 7.0 requires at least Java 7
Wicket 7.0 requires Servlet 3.0

The HTTP response is not flushed automatically when the request is started in asynchronous mode. WICKET-5152


API changes


org/apache/wicket/core/util/io/SerializableChecker is replaced with org.apache.wicket.core.util.objects.checker.CheckingObjectOutputStream WICKET-4817
org/apache/wicket/markup/html/border/BoxBorder is removed with no replacement WICKET-4966.
org.apache.wicket.Component#renderHead(HtmlHeaderContainer) is renamed to Component#internalRenderHead(HtmlHeaderContainer) WICKET-4964
org.apache.wicket.request.resource.ResourceReference#getDependencies() now returns a mutable ListHeaderItem WICKET-5124
org.apache.wicket.model.StringResourceModel constructor accepts IModelString for its default value WICKET-4972
org.apache.wicket.extensions.validation.validator.+Xyz+Validator#decorate() now works with IValidationError WICKET-5174


Behavior changes


org.apache.wicket.request.Url#getQueryString WICKET-4664
org.apache.wicket.request.http.WebResponse encodes the value of the "filename" in Content-Disposition header WICKET-4934




Environment

Wicket 7.0 requires at least Java 7

Wicket 7.0 requires Servlet 3.0

The HTTP response is not flushed automatically when the request is started in asynchronous mode. WICKET-5152
This is an improvement in Wicket 7.0 which should not affect any application migrating from Wicket 6.x. But if you use Servlet 3.0's AsyncContext in IResource in Wicket 7 then make sure that your code flushes the http response after completing the request.

API changes

org/apache/wicket/core/util/io/SerializableChecker is replaced with org.apache.wicket.core.util.objects.checker.CheckingObjectOutputStream WICKET-4817
CheckingObjectOutputStream accepts a list of org.apache.wicket.core.util.objects.checker.IObjectChecker objects which are used to check for different kind of problems during object serialization. Commit diff: d0441059e0

org/apache/wicket/markup/html/border/BoxBorder is removed with no replacement WICKET-4966.
BoxBorder class has been deprecated in Wicket 6.x series

org.apache.wicket.Component#renderHead(HtmlHeaderContainer) is renamed to Component#internalRenderHead(HtmlHeaderContainer) WICKET-4964
Component#renderHead(HtmlHeaderContainer) was very similar to the usually used Component#renderHead(IHeaderResponse). So it has been renamed to avoid any confusions.

org.apache.wicket.request.resource.ResourceReference#getDependencies() now returns a mutable ListHeaderItem WICKET-5124
The old API returned Iterable? extends HeaderItem and was inconvenient to override and add additional dependencies.
With the new API it is as easy as:

MyResourceReference.java

@Override
public ListHeaderItem getDependencies() {
  ListHeaderItem dependencies = super.getDependencies();
  dependencies.add(dep1);
  dependencies.add(dep2);
  return dependencies;
}



org.apache.wicket.model.StringResourceModel constructor accepts IModelString for its default value WICKET-4972
There were two problems with the old way:

	since the parameters argument type is Object..., i.e. varargs, it was hard for the compiler and runtime to differentiate the "defaultValue" from the "parameters"
	it wasn't possible to use lazy evaluation of the default value



If in your application you have code like:
MyComponent.java

StringResourceModel model = new StringResourceModel(resourceKey, model, "Some default value", new Object[] [param1, param2]);



then the simplest solution is to use Model.of("Some default value"):
MyComponent.java

StringResourceModel model = new StringResourceModel(resourceKey, model, Model.of("Some default value"), new Object[] [param1, param2]);



org.apache.wicket.extensions.validation.validator.+Xyz+Validator#decorate() now works with IValidationError WICKET-5174
This method now accepts IValidationError as an argument and returns IValidationError. This way it can be used with other IValidationError implementations like RawValidationError for example.

Behavior changes

org.apache.wicket.request.Url#getQueryString WICKET-4664
Url#getQueryString() now behaves as HttpServletRequest 

[CONF] Apache Wicket Wicket 7.0 Roadmap

2013-05-02 Thread confluence







Wicket 7.0 Roadmap
Page edited by Martin Grigorov


 Changes (2)
 




...
{code} Status: *Done* 
Assignee: mgrigorov Jira: [WICKET-5124|https://issues.apache.org/jira/browse/WICKET-5124] 
 h4. XyzValidator#decorate() should work with IValidationError instead of ValidationError 
Status: *Done* Assignee: mgrigorov Jira: [WICKET-5174|https://issues.apache.org/jira/browse/WICKET-5174] 
 h4. Refactor checkgroup/radiogroup to make them non-components. 
...


Full Content



This page lists the tasks the Wicket team agreed to implement for Wicket 7.0.

Java 7 as a minimum

Generics for org.apache.wicket.Component

Servlet 3 as a minimum
Tickets in Jira with "Fix Version" = 7.0


PageParameters improvements
Minor API cleanups


API Tweaks

SimpleFormComponentLabel should output the "required" class just like wicket:for
 ajaxbehavior#updateAjaxAttributes() should get component passed in
throttling settings should be mutable to make it easier to override just the duration without having to figure out an id
_javascript_ResourceReference#getDependencies() should return an appendable List
XyzValidator#decorate() should work with IValidationError instead of ValidationError
Refactor checkgroup/radiogroup to make them non-components.
cdi 1.1 upgrade
Upgrade dependencies to their latest stable version
Vote which experimental modules should become stable




This page lists the tasks the Wicket team agreed to implement for Wicket 7.0.

Ideas for Wicket 7.0 list some more ideas but to add a task in the Roadmap it has to be discussed first in the dev mailing list. Ideas with attached patch in Jira ticket or Pull Request have a bigger chance to be included in the Roadmap.

How to help us
	Pick a task from this wiki page or from Jira with "Fix Version" = 7.0.
	Implement it (+ tests when possible) and make a Pull Request at GitHub. We do not own the GitHub repo but it is easy to pull from your repos and apply the code. It is also easy to make code reviews and comment.
If there is no ticket in Jira for an entry in the Roadmap please create one. Always add a comment to the ticket in Jira when you start on it. Just to prevent two or  more people working on the same task.
	Add an entry to the Migration page with description of the change and short code sample of the old way and the new way of doing something.



Java 7 as a minimum

Java 7 has nice support for generics, better annotations, and Java 6 is reaching its end of life pretty soon.

Assignee: 
Status: Not started
Jira: 

Generics for org.apache.wicket.Component

Using Java 7 will allow to use the "diamonds operator", i.e. 
MyPage.java

  ComponentEntity c = new SomeComponent("id", model);



Assignee: 
Status: Not started
Jira: 

Servlet 3 as a minimum

While we opted to not require servlet 3 for wicket 6, it has bitten us a couple of times solving issues in wicket 6. Servlet 3 has been out for ages, so we should move with the times.

Assignee: mgrigorov
Status: Started
Jira: WICKET-5167

Tickets in Jira with "Fix Version" = 7.0

PageParameters improvements


	read-only
	make it possible to differentiate between named indexed parameters and query string ones.
See WICKET-4594, http://markmail.org/thread/cc7yjwshqugj4wic, WICKET-4441



Assignee: 
Status: Not started

Minor API cleanups


	Rename renderHead(HtmlHeaderContainer) https://issues.apache.org/jira/browse/WICKET-4964
Assignee: mgrigorov
Status: Done
Jira: WICKET-4964



API Tweaks

SimpleFormComponentLabel should output the "required" class just like wicket:for

ajaxbehavior#updateAjaxAttributes() should get component passed in

otherwise referencing the component as needed in throttle settings is annoying



queryField.add(new AjaxFormComponentUpdatingBehavior("onkeydown") {
	protected void updateAjaxAttributes(AjaxRequestAttributes attributes) {
		attributes.setThrottlingSettings(new ThrottlingSettings(queryField.getMarkupId(), Duration.seconds(1)));
^


The component is easily reachable via AbstractAjaxBehavior#getComponent()

throttling settings should be mutable to make it easier to override just the duration without having to figure out an id
Status: Done
Assignee: mgrigorov
JIRA: WICKET-5173

_javascript_ResourceReference#getDependencies() should return an appendable List

so we can do


class MyReference extends _javascript_Reference {
  getDependencies() { List? list=super.getDependencies(); list.add(...); return list; }
}


Status: Done
Assignee: mgrigorov
Jira: WICKET-5124

XyzValidator#decorate() should work with IValidationError instead of ValidationError
Status: Done
Assignee: 

[CONF] Apache Wicket Migration to Wicket 7.0

2013-05-02 Thread confluence







Migration to Wicket 7.0
Page edited by Martin Grigorov


 Changes (1)
 




...
h5. org.apache.wicket.request.http.WebResponse encodes the value of the filename in Content-Disposition header [WICKET-4934|https://issues.apache.org/jira/browse/WICKET-4934] The value of the file name used in Content-Disposition response header can contain characters which should be [encoded|http://greenbytes.de/tech/tc2231/] 
 h3. Dependency updates  All libraries on which Wicket modules depend are updated to their latest stable versions. The most notable ones are: * Spring Framework 3.2.2 * ASM 4.1 * CGLIB 3.0 * SLF4J 1.7.5 * Jetty (in the quickstart) 8.1.10  


Full Content

Migrating to Wicket 7.0



Environment

Wicket 7.0 requires at least Java 7
Wicket 7.0 requires Servlet 3.0

The HTTP response is not flushed automatically when the request is started in asynchronous mode. WICKET-5152


API changes


org/apache/wicket/core/util/io/SerializableChecker is replaced with org.apache.wicket.core.util.objects.checker.CheckingObjectOutputStream WICKET-4817
org/apache/wicket/markup/html/border/BoxBorder is removed with no replacement WICKET-4966.
org.apache.wicket.Component#renderHead(HtmlHeaderContainer) is renamed to Component#internalRenderHead(HtmlHeaderContainer) WICKET-4964
org.apache.wicket.request.resource.ResourceReference#getDependencies() now returns a mutable ListHeaderItem WICKET-5124
org.apache.wicket.model.StringResourceModel constructor accepts IModelString for its default value WICKET-4972
org.apache.wicket.extensions.validation.validator.+Xyz+Validator#decorate() now works with IValidationError WICKET-5174


Behavior changes


org.apache.wicket.request.Url#getQueryString WICKET-4664
org.apache.wicket.request.http.WebResponse encodes the value of the "filename" in Content-Disposition header WICKET-4934


Dependency updates


Environment

Wicket 7.0 requires at least Java 7

Wicket 7.0 requires Servlet 3.0

The HTTP response is not flushed automatically when the request is started in asynchronous mode. WICKET-5152
This is an improvement in Wicket 7.0 which should not affect any application migrating from Wicket 6.x. But if you use Servlet 3.0's AsyncContext in IResource in Wicket 7 then make sure that your code flushes the http response after completing the request.

API changes

org/apache/wicket/core/util/io/SerializableChecker is replaced with org.apache.wicket.core.util.objects.checker.CheckingObjectOutputStream WICKET-4817
CheckingObjectOutputStream accepts a list of org.apache.wicket.core.util.objects.checker.IObjectChecker objects which are used to check for different kind of problems during object serialization. Commit diff: d0441059e0

org/apache/wicket/markup/html/border/BoxBorder is removed with no replacement WICKET-4966.
BoxBorder class has been deprecated in Wicket 6.x series

org.apache.wicket.Component#renderHead(HtmlHeaderContainer) is renamed to Component#internalRenderHead(HtmlHeaderContainer) WICKET-4964
Component#renderHead(HtmlHeaderContainer) was very similar to the usually used Component#renderHead(IHeaderResponse). So it has been renamed to avoid any confusions.

org.apache.wicket.request.resource.ResourceReference#getDependencies() now returns a mutable ListHeaderItem WICKET-5124
The old API returned Iterable? extends HeaderItem and was inconvenient to override and add additional dependencies.
With the new API it is as easy as:

MyResourceReference.java

@Override
public ListHeaderItem getDependencies() {
  ListHeaderItem dependencies = super.getDependencies();
  dependencies.add(dep1);
  dependencies.add(dep2);
  return dependencies;
}



org.apache.wicket.model.StringResourceModel constructor accepts IModelString for its default value WICKET-4972
There were two problems with the old way:

	since the parameters argument type is Object..., i.e. varargs, it was hard for the compiler and runtime to differentiate the "defaultValue" from the "parameters"
	it wasn't possible to use lazy evaluation of the default value



If in your application you have code like:
MyComponent.java

StringResourceModel model = new StringResourceModel(resourceKey, model, "Some default value", new Object[] [param1, param2]);



then the simplest solution is to use Model.of("Some default value"):
MyComponent.java

StringResourceModel model = new StringResourceModel(resourceKey, model, Model.of("Some default value"), new Object[] [param1, param2]);



org.apache.wicket.extensions.validation.validator.+Xyz+Validator#decorate() now works with IValidationError WICKET-5174
This method now accepts IValidationError as an argument and returns IValidationError. This way it can be used with other IValidationError implementations like 

[CONF] Apache Wicket Wicket 7.0 Roadmap

2013-05-02 Thread confluence







Wicket 7.0 Roadmap
Page edited by Martin Grigorov


 Changes (1)
 




...
Guice, Spring, JUnit, Mockito, Velocity, ...  
Assignee: mgrigorov Status: *Done* Jira: [WICKET-5175|https://issues.apache.org/jira/browse/WICKET-5175]  
h4. Vote which experimental modules should become stable  
...


Full Content



This page lists the tasks the Wicket team agreed to implement for Wicket 7.0.

Java 7 as a minimum

Generics for org.apache.wicket.Component

Servlet 3 as a minimum
Tickets in Jira with "Fix Version" = 7.0


PageParameters improvements
Minor API cleanups


API Tweaks

SimpleFormComponentLabel should output the "required" class just like wicket:for
 ajaxbehavior#updateAjaxAttributes() should get component passed in
throttling settings should be mutable to make it easier to override just the duration without having to figure out an id
_javascript_ResourceReference#getDependencies() should return an appendable List
XyzValidator#decorate() should work with IValidationError instead of ValidationError
Refactor checkgroup/radiogroup to make them non-components.
cdi 1.1 upgrade
Upgrade dependencies to their latest stable version
Vote which experimental modules should become stable




This page lists the tasks the Wicket team agreed to implement for Wicket 7.0.

Ideas for Wicket 7.0 list some more ideas but to add a task in the Roadmap it has to be discussed first in the dev mailing list. Ideas with attached patch in Jira ticket or Pull Request have a bigger chance to be included in the Roadmap.

How to help us
	Pick a task from this wiki page or from Jira with "Fix Version" = 7.0.
	Implement it (+ tests when possible) and make a Pull Request at GitHub. We do not own the GitHub repo but it is easy to pull from your repos and apply the code. It is also easy to make code reviews and comment.
If there is no ticket in Jira for an entry in the Roadmap please create one. Always add a comment to the ticket in Jira when you start on it. Just to prevent two or  more people working on the same task.
	Add an entry to the Migration page with description of the change and short code sample of the old way and the new way of doing something.



Java 7 as a minimum

Java 7 has nice support for generics, better annotations, and Java 6 is reaching its end of life pretty soon.

Assignee: 
Status: Not started
Jira: 

Generics for org.apache.wicket.Component

Using Java 7 will allow to use the "diamonds operator", i.e. 
MyPage.java

  ComponentEntity c = new SomeComponent("id", model);



Assignee: 
Status: Not started
Jira: 

Servlet 3 as a minimum

While we opted to not require servlet 3 for wicket 6, it has bitten us a couple of times solving issues in wicket 6. Servlet 3 has been out for ages, so we should move with the times.

Assignee: mgrigorov
Status: Started
Jira: WICKET-5167

Tickets in Jira with "Fix Version" = 7.0

PageParameters improvements


	read-only
	make it possible to differentiate between named indexed parameters and query string ones.
See WICKET-4594, http://markmail.org/thread/cc7yjwshqugj4wic, WICKET-4441



Assignee: 
Status: Not started

Minor API cleanups


	Rename renderHead(HtmlHeaderContainer) https://issues.apache.org/jira/browse/WICKET-4964
Assignee: mgrigorov
Status: Done
Jira: WICKET-4964



API Tweaks

SimpleFormComponentLabel should output the "required" class just like wicket:for

ajaxbehavior#updateAjaxAttributes() should get component passed in

otherwise referencing the component as needed in throttle settings is annoying



queryField.add(new AjaxFormComponentUpdatingBehavior("onkeydown") {
	protected void updateAjaxAttributes(AjaxRequestAttributes attributes) {
		attributes.setThrottlingSettings(new ThrottlingSettings(queryField.getMarkupId(), Duration.seconds(1)));
^


The component is easily reachable via AbstractAjaxBehavior#getComponent()

throttling settings should be mutable to make it easier to override just the duration without having to figure out an id
Status: Done
Assignee: mgrigorov
JIRA: WICKET-5173

_javascript_ResourceReference#getDependencies() should return an appendable List

so we can do


class MyReference extends _javascript_Reference {
  getDependencies() { List? list=super.getDependencies(); list.add(...); return list; }
}


Status: Done
Assignee: mgrigorov
Jira: WICKET-5124

XyzValidator#decorate() should work with IValidationError instead of ValidationError
Status: Done
Assignee: mgrigorov
Jira: WICKET-5174

Refactor checkgroup/radiogroup to make them non-components.


	it is awkward to require a parent container as a wicket component. most of the time it needs to be 

[CONF] Apache Wicket Wicket 7.0 Roadmap

2013-05-02 Thread confluence







Wicket 7.0 Roadmap
Page edited by Igor Vaynberg


 Changes (1)
 




...
The experimental modules can be promoted as stable and use the same version as wicket-core module. This will make them first class citizens and may be more users will start using them, and at least will simplify their release process. 
 h4. Make css class strings used in the framework configurable  * in a few places in core we have hardcoded css strings like wicket_orderUp and classes used inside the feedback panel - these should be made into application settings so they can be configured to conform to the applications css infrastructure.  * once we extract wicket_orderUp we should get rid of cssprovider and defaultcssprovider classes.  * getApplication().getCssSettings().setSortOrderDownClass(sort-order-down); 


Full Content



This page lists the tasks the Wicket team agreed to implement for Wicket 7.0.

Java 7 as a minimum

Generics for org.apache.wicket.Component

Servlet 3 as a minimum
Tickets in Jira with "Fix Version" = 7.0


PageParameters improvements
Minor API cleanups


API Tweaks

SimpleFormComponentLabel should output the "required" class just like wicket:for
 ajaxbehavior#updateAjaxAttributes() should get component passed in
throttling settings should be mutable to make it easier to override just the duration without having to figure out an id
_javascript_ResourceReference#getDependencies() should return an appendable List
XyzValidator#decorate() should work with IValidationError instead of ValidationError
Refactor checkgroup/radiogroup to make them non-components.
cdi 1.1 upgrade
Upgrade dependencies to their latest stable version
Vote which experimental modules should become stable
Make css class strings used in the framework configurable




This page lists the tasks the Wicket team agreed to implement for Wicket 7.0.

Ideas for Wicket 7.0 list some more ideas but to add a task in the Roadmap it has to be discussed first in the dev mailing list. Ideas with attached patch in Jira ticket or Pull Request have a bigger chance to be included in the Roadmap.

How to help us
	Pick a task from this wiki page or from Jira with "Fix Version" = 7.0.
	Implement it (+ tests when possible) and make a Pull Request at GitHub. We do not own the GitHub repo but it is easy to pull from your repos and apply the code. It is also easy to make code reviews and comment.
If there is no ticket in Jira for an entry in the Roadmap please create one. Always add a comment to the ticket in Jira when you start on it. Just to prevent two or  more people working on the same task.
	Add an entry to the Migration page with description of the change and short code sample of the old way and the new way of doing something.



Java 7 as a minimum

Java 7 has nice support for generics, better annotations, and Java 6 is reaching its end of life pretty soon.

Assignee: mgrigorov
Status: Done

Generics for org.apache.wicket.Component

Using Java 7 will allow to use the "diamonds operator", i.e. 
MyPage.java

  ComponentEntity c = new SomeComponent("id", model);



Assignee: 
Status: Not started
Jira: WICKET-4930

Servlet 3 as a minimum

While we opted to not require servlet 3 for wicket 6, it has bitten us a couple of times solving issues in wicket 6. Servlet 3 has been out for ages, so we should move with the times.

Assignee: mgrigorov
Status: Started
Jira: WICKET-5167

Tickets in Jira with "Fix Version" = 7.0

PageParameters improvements


	read-only
	make it possible to differentiate between named indexed parameters and query string ones.
See WICKET-4594, http://markmail.org/thread/cc7yjwshqugj4wic, WICKET-4441



Assignee: 
Status: Not started

Minor API cleanups


	Rename renderHead(HtmlHeaderContainer) https://issues.apache.org/jira/browse/WICKET-4964
Assignee: mgrigorov
Status: Done
Jira: WICKET-4964



API Tweaks

SimpleFormComponentLabel should output the "required" class just like wicket:for

ajaxbehavior#updateAjaxAttributes() should get component passed in

otherwise referencing the component as needed in throttle settings is annoying



queryField.add(new AjaxFormComponentUpdatingBehavior("onkeydown") {
	protected void updateAjaxAttributes(AjaxRequestAttributes attributes) {
		attributes.setThrottlingSettings(new ThrottlingSettings(queryField.getMarkupId(), Duration.seconds(1)));
^


The component is easily reachable via AbstractAjaxBehavior#getComponent()

throttling settings should be mutable to make it easier to override just the duration without having to figure out an id
Status: Done
Assignee: mgrigorov
JIRA: WICKET-5173


[CONF] Apache Wicket Migration to Wicket 7.0

2013-05-01 Thread confluence







Migration to Wicket 7.0
Page edited by Martin Grigorov


 Changes (6)
 




...
h3. Environment  
* h4. Wicket 7.0 requires at least Java 7 
* Wicket 7.0 requires Servlet 3.0 
 
h3. Item 1 
h4. Wicket 7.0 requires Servlet 3.0 
 
h4. Sub item  Some explanation 
h5. The HTTP response is not flushed automatically when the request is started in asynchronous mode. [WICKET-5152|https://issues.apache.org/jira/browse/WICKET-5152] This is an improvement in Wicket 7.0 which should not affect any application migrating from Wicket 6.x. But if you use Servlet 3.0s AsyncContext in IResource in Wicket 7 then make sure that your code flushes the http response after completing the request. 


Full Content

Migrating to Wicket 7.0



Environment

Wicket 7.0 requires at least Java 7
Wicket 7.0 requires Servlet 3.0

The HTTP response is not flushed automatically when the request is started in asynchronous mode. WICKET-5152




Environment

Wicket 7.0 requires at least Java 7

Wicket 7.0 requires Servlet 3.0

The HTTP response is not flushed automatically when the request is started in asynchronous mode. WICKET-5152
This is an improvement in Wicket 7.0 which should not affect any application migrating from Wicket 6.x. But if you use Servlet 3.0's AsyncContext in IResource in Wicket 7 then make sure that your code flushes the http response after completing the request.



Change Notification Preferences

View Online
|
View Changes
|
Add Comment









[CONF] Apache Wicket Migration to Wicket 7.0

2013-04-29 Thread confluence







Migration to Wicket 7.0
Page  added by Martin Grigorov

 

 Migrating to Wicket 7.0



Environment
Item 1

Sub item



Environment


	Wicket 7.0 requires at least Java 7
	Wicket 7.0 requires Servlet 3.0



Item 1

Sub item

Some explanation


   
Change Notification Preferences
   
   View Online
  |
   Add Comment
   








[CONF] Apache Wicket Wicket 7.0 Roadmap

2013-04-29 Thread confluence







Wicket 7.0 Roadmap
Page edited by Martin Grigorov


 Changes (1)
 




...
[Ideas for Wicket 7.0] list some more ideas but to add a task in the Roadmap it has to be discussed first in the [dev mailing list|mailto:d...@wicket.apache.org]. Ideas with attached patch in Jira ticket or Pull Request have a bigger chance to be included in the Roadmap.  
{info:title=How to help us}Pick a task from the Roadmap wiki page or from Jira with Fix Version = 7.0. Implement it (+ tests when possible) and make a Pull Request at GitHub (apache/wicket). We do not own the GitHub repo but it is easy to pull from your repos and apply the code. It is also easy to make code reviews and comment. Add a comment to the ticket in Jira when you start on it. Just to prevent two or more people working on the same thing. {info}   
h3. Java 7 as a minimum  
...


Full Content



This page lists the tasks the Wicket team agreed to implement for Wicket 7.0.

Java 7 as a minimum

Generics for org.apache.wicket.Component

Servlet 3 as a minimum
Tickets in Jira with "Fix Version" = 7.0


PageParameters improvements
Minor API cleanups


API Tweaks

SimpleFormComponentLabel should output the "required" class just like wicket:for
ajaxbehavior#updateAjaxAttributes() should get component passed in
throttling settings should be mutable to make it easier to override just the duration without having to figure out an id
_javascript_ResourceReference#getDependencies() should return an appendable List
XyzValidator#decorate() should work with IValidationError instead of ValidationError
Refactor checkgroup/radiogroup to make them non-components.
cdi 1.1 upgrade




This page lists the tasks the Wicket team agreed to implement for Wicket 7.0.

Ideas for Wicket 7.0 list some more ideas but to add a task in the Roadmap it has to be discussed first in the dev mailing list. Ideas with attached patch in Jira ticket or Pull Request have a bigger chance to be included in the Roadmap.

How to help usPick a task from the Roadmap wiki page or from Jira with "Fix Version" = 7.0.
Implement it (+ tests when possible) and make a Pull Request at GitHub (apache/wicket). We do not own the GitHub repo but it is easy to pull from your repos and apply the code. It is also easy to make code reviews and comment.
Add a comment to the ticket in Jira when you start on it. Just to prevent two or more people working on the same thing.


Java 7 as a minimum

Java 7 has nice support for generics, better annotations, and Java 6 is reaching its end of life pretty soon.

Assignee: mgrigorov
Status: Not started
Jira: 

Generics for org.apache.wicket.Component

Using Java 7 will allow to use the "diamonds operator", i.e. 
MyPage.java

  ComponentEntity c = new SomeComponent("id", model);



Assignee: mgrigorov
Status: Not started
Jira: 

Servlet 3 as a minimum

While we opted to not require servlet 3 for wicket 6, it has bitten us a couple of times solving issues in wicket 6. Servlet 3 has been out for ages, so we should move with the times.

Assignee: mgrigorov
Status: Not started
Jira: 

Tickets in Jira with "Fix Version" = 7.0

PageParameters improvements


	read-only
	make it possible to differentiate between named indexed parameters and query string ones.
See WICKET-4594, http://markmail.org/thread/cc7yjwshqugj4wic, WICKET-4441



Assignee: mgrigorov
Status: Not started

Minor API cleanups


	Rename renderHead(HtmlHeaderContainer) https://issues.apache.org/jira/browse/WICKET-4964
Assignee: mgrigorov
Status: Not started
Jira: WICKET-4964



API Tweaks

SimpleFormComponentLabel should output the "required" class just like wicket:for

ajaxbehavior#updateAjaxAttributes() should get component passed in

otherwise referencing the component as needed in throttle settings is annoying



queryField.add(new AjaxFormComponentUpdatingBehavior("onkeydown") {
	protected void updateAjaxAttributes(AjaxRequestAttributes attributes) {
		attributes.setThrottlingSettings(new ThrottlingSettings(queryField.getMarkupId(), Duration.seconds(1)));
^



throttling settings should be mutable to make it easier to override just the duration without having to figure out an id

_javascript_ResourceReference#getDependencies() should return an appendable List

so we can do


class MyReference extends _javascript_Reference {
  getDependencies() { List? list=super.getDependencies(); list.add(...); return list; }
}



XyzValidator#decorate() should work with IValidationError instead of ValidationError

Refactor checkgroup/radiogroup to make them non-components.


	it is awkward to require a parent container as a wicket component. 

[CONF] Apache Wicket Wicket 7.0 Roadmap

2013-04-29 Thread confluence







Wicket 7.0 Roadmap
Page edited by Martin Grigorov


 Changes (1)
 




...
 wicket-cdi should use cdi 1.1 which should remove dependency onto seam-conversation module.  
 h4. Upgrade dependencies to their latest stable version  Guice, Spring, JUnit, Mockito, Velocity, ... 


Full Content



This page lists the tasks the Wicket team agreed to implement for Wicket 7.0.

Java 7 as a minimum

Generics for org.apache.wicket.Component

Servlet 3 as a minimum
Tickets in Jira with "Fix Version" = 7.0


PageParameters improvements
Minor API cleanups


API Tweaks

SimpleFormComponentLabel should output the "required" class just like wicket:for
ajaxbehavior#updateAjaxAttributes() should get component passed in
throttling settings should be mutable to make it easier to override just the duration without having to figure out an id
_javascript_ResourceReference#getDependencies() should return an appendable List
XyzValidator#decorate() should work with IValidationError instead of ValidationError
Refactor checkgroup/radiogroup to make them non-components.
cdi 1.1 upgrade
Upgrade dependencies to their latest stable version




This page lists the tasks the Wicket team agreed to implement for Wicket 7.0.

Ideas for Wicket 7.0 list some more ideas but to add a task in the Roadmap it has to be discussed first in the dev mailing list. Ideas with attached patch in Jira ticket or Pull Request have a bigger chance to be included in the Roadmap.

How to help us
	Pick a task from this wiki page or from Jira with "Fix Version" = 7.0.
	Implement it (+ tests when possible) and make a Pull Request at GitHub (apache/wicket). We do not own the GitHub repo but it is easy to pull from your repos and apply the code. It is also easy to make code reviews and comment.
If there is no ticket in Jira for an entry in the Roadmap please create one. Always add a comment to the ticket in Jira when you start on it. Just to prevent two or  more people working on the same thing.
	Add an entry to the Migration page with description of the change and short code sample of the old way and the new way of doing something.



Java 7 as a minimum

Java 7 has nice support for generics, better annotations, and Java 6 is reaching its end of life pretty soon.

Assignee: mgrigorov
Status: Not started
Jira: 

Generics for org.apache.wicket.Component

Using Java 7 will allow to use the "diamonds operator", i.e. 
MyPage.java

  ComponentEntity c = new SomeComponent("id", model);



Assignee: mgrigorov
Status: Not started
Jira: 

Servlet 3 as a minimum

While we opted to not require servlet 3 for wicket 6, it has bitten us a couple of times solving issues in wicket 6. Servlet 3 has been out for ages, so we should move with the times.

Assignee: mgrigorov
Status: Not started
Jira: 

Tickets in Jira with "Fix Version" = 7.0

PageParameters improvements


	read-only
	make it possible to differentiate between named indexed parameters and query string ones.
See WICKET-4594, http://markmail.org/thread/cc7yjwshqugj4wic, WICKET-4441



Assignee: mgrigorov
Status: Not started

Minor API cleanups


	Rename renderHead(HtmlHeaderContainer) https://issues.apache.org/jira/browse/WICKET-4964
Assignee: mgrigorov
Status: Not started
Jira: WICKET-4964



API Tweaks

SimpleFormComponentLabel should output the "required" class just like wicket:for

ajaxbehavior#updateAjaxAttributes() should get component passed in

otherwise referencing the component as needed in throttle settings is annoying



queryField.add(new AjaxFormComponentUpdatingBehavior("onkeydown") {
	protected void updateAjaxAttributes(AjaxRequestAttributes attributes) {
		attributes.setThrottlingSettings(new ThrottlingSettings(queryField.getMarkupId(), Duration.seconds(1)));
^



throttling settings should be mutable to make it easier to override just the duration without having to figure out an id

_javascript_ResourceReference#getDependencies() should return an appendable List

so we can do


class MyReference extends _javascript_Reference {
  getDependencies() { List? list=super.getDependencies(); list.add(...); return list; }
}



XyzValidator#decorate() should work with IValidationError instead of ValidationError

Refactor checkgroup/radiogroup to make them non-components.


	it is awkward to require a parent container as a wicket component. most of the time it needs to be attached to wicket:container tag because there is no reason to have an actual parent tag or a parent tag is impossible (in case of trs, lis, etc)
	having groups as non-components will allow for nested sets of checks and radios
	having groups as non-components will allow for 

[CONF] Apache Wicket Wicket 7.0 Roadmap

2013-04-28 Thread confluence







Wicket 7.0 Roadmap
Page edited by Igor Vaynberg


 Changes (1)
 




...
* having groups as non-components will allow for nested sets of checks and radios * having groups as non-components will allow for disjointed sets of checks and radios in a cleaner fashion 
 h4. cdi 1.1 upgrade  wicket-cdi should use cdi 1.1 which should remove dependency onto seam-conversation module.  


Full Content



This page lists the tasks the Wicket team agreed to implement for Wicket 7.0.

Java 7 as a minimum

Generics for org.apache.wicket.Component

Servlet 3 as a minimum
Tickets in Jira with "Fix Version" = 7.0


PageParameters improvements
Minor API cleanups


API Tweaks

SimpleFormComponentLabel should output the "required" class just like wicket:for
ajaxbehavior#updateAjaxAttributes() should get component passed in
throttling settings should be mutable to make it easier to override just the duration without having to figure out an id
_javascript_ResourceReference#getDependencies() should return an appendable List
XyzValidator#decorate() should work with IValidationError instead of ValidationError
Refactor checkgroup/radiogroup to make them non-components.
cdi 1.1 upgrade




This page lists the tasks the Wicket team agreed to implement for Wicket 7.0.

Ideas for Wicket 7.0 list some more ideas but to add a task in the Roadmap it has to be discussed first in the dev mailing list. Ideas with attached patch in Jira ticket or Pull Request have a bigger chance to be included in the Roadmap.

Java 7 as a minimum

Java 7 has nice support for generics, better annotations, and Java 6 is reaching its end of life pretty soon.

Assignee: mgrigorov
Status: Not started
Jira: 

Generics for org.apache.wicket.Component

Using Java 7 will allow to use the "diamonds operator", i.e. 
MyPage.java

  ComponentEntity c = new SomeComponent("id", model);



Assignee: mgrigorov
Status: Not started
Jira: 

Servlet 3 as a minimum

While we opted to not require servlet 3 for wicket 6, it has bitten us a couple of times solving issues in wicket 6. Servlet 3 has been out for ages, so we should move with the times.

Assignee: mgrigorov
Status: Not started
Jira: 

Tickets in Jira with "Fix Version" = 7.0

PageParameters improvements


	read-only
	make it possible to differentiate between named indexed parameters and query string ones.
See WICKET-4594, http://markmail.org/thread/cc7yjwshqugj4wic, WICKET-4441



Assignee: mgrigorov
Status: Not started

Minor API cleanups


	Rename renderHead(HtmlHeaderContainer) https://issues.apache.org/jira/browse/WICKET-4964
Assignee: mgrigorov
Status: Not started
Jira: WICKET-4964



API Tweaks

SimpleFormComponentLabel should output the "required" class just like wicket:for

ajaxbehavior#updateAjaxAttributes() should get component passed in

otherwise referencing the component as needed in throttle settings is annoying



queryField.add(new AjaxFormComponentUpdatingBehavior("onkeydown") {
	protected void updateAjaxAttributes(AjaxRequestAttributes attributes) {
		attributes.setThrottlingSettings(new ThrottlingSettings(queryField.getMarkupId(), Duration.seconds(1)));
^



throttling settings should be mutable to make it easier to override just the duration without having to figure out an id

_javascript_ResourceReference#getDependencies() should return an appendable List

so we can do


class MyReference extends _javascript_Reference {
  getDependencies() { List? list=super.getDependencies(); list.add(...); return list; }
}



XyzValidator#decorate() should work with IValidationError instead of ValidationError

Refactor checkgroup/radiogroup to make them non-components.


	it is awkward to require a parent container as a wicket component. most of the time it needs to be attached to wicket:container tag because there is no reason to have an actual parent tag or a parent tag is impossible (in case of trs, lis, etc)
	having groups as non-components will allow for nested sets of checks and radios
	having groups as non-components will allow for disjointed sets of checks and radios in a cleaner fashion



cdi 1.1 upgrade

wicket-cdi should use cdi 1.1 which should remove dependency onto seam-conversation module. 



Change Notification Preferences

View Online
|
View Changes
|
Add Comment









[CONF] Apache Wicket Wicket 7.0 Roadmap

2013-04-27 Thread confluence







Wicket 7.0 Roadmap
Page edited by Igor Vaynberg


 Changes (1)
 




...
 h4. XyzValidator#decorate() should work with IValidationError instead of ValidationError 
 h4. Refactor checkgroup/radiogroup to make them non-components.  * it is awkward to require a parent container as a wicket component. most of the time it needs to be attached to wicket:container tag because there is no reason to have an actual parent tag or a parent tag is impossible (in case of trs, lis, etc) * having groups as non-components will allow for nested sets of checks and radios * having groups as non-components will allow for disjointed sets of checks and radios in a cleaner fashion 


Full Content



This page lists the tasks the Wicket team agreed to implement for Wicket 7.0.

Java 7 as a minimum

Generics for org.apache.wicket.Component

Servlet 3 as a minimum
Tickets in Jira with "Fix Version" = 7.0


PageParameters improvements
Minor API cleanups


API Tweaks

SimpleFormComponentLabel should output the "required" class just like wicket:for
ajaxbehavior#updateAjaxAttributes() should get component passed in
throttling settings should be mutable to make it easier to override just the duration without having to figure out an id
_javascript_ResourceReference#getDependencies() should return an appendable List
XyzValidator#decorate() should work with IValidationError instead of ValidationError
Refactor checkgroup/radiogroup to make them non-components.




This page lists the tasks the Wicket team agreed to implement for Wicket 7.0.

Ideas for Wicket 7.0 list some more ideas but to add a task in the Roadmap it has to be discussed first in the dev mailing list. Ideas with attached patch in Jira ticket or Pull Request have a bigger chance to be included in the Roadmap.

Java 7 as a minimum

Java 7 has nice support for generics, better annotations, and Java 6 is reaching its end of life pretty soon.

Assignee: mgrigorov
Status: Not started
Jira: 

Generics for org.apache.wicket.Component

Using Java 7 will allow to use the "diamonds operator", i.e. 
MyPage.java

  ComponentEntity c = new SomeComponent("id", model);



Assignee: mgrigorov
Status: Not started
Jira: 

Servlet 3 as a minimum

While we opted to not require servlet 3 for wicket 6, it has bitten us a couple of times solving issues in wicket 6. Servlet 3 has been out for ages, so we should move with the times.

Assignee: mgrigorov
Status: Not started
Jira: 

Tickets in Jira with "Fix Version" = 7.0

PageParameters improvements


	read-only
	make it possible to differentiate between named indexed parameters and query string ones.
See WICKET-4594, http://markmail.org/thread/cc7yjwshqugj4wic, WICKET-4441



Assignee: mgrigorov
Status: Not started

Minor API cleanups


	Rename renderHead(HtmlHeaderContainer) https://issues.apache.org/jira/browse/WICKET-4964
Assignee: mgrigorov
Status: Not started
Jira: WICKET-4964



API Tweaks

SimpleFormComponentLabel should output the "required" class just like wicket:for

ajaxbehavior#updateAjaxAttributes() should get component passed in

otherwise referencing the component as needed in throttle settings is annoying



queryField.add(new AjaxFormComponentUpdatingBehavior("onkeydown") {
	protected void updateAjaxAttributes(AjaxRequestAttributes attributes) {
		attributes.setThrottlingSettings(new ThrottlingSettings(queryField.getMarkupId(), Duration.seconds(1)));
^



throttling settings should be mutable to make it easier to override just the duration without having to figure out an id

_javascript_ResourceReference#getDependencies() should return an appendable List

so we can do


class MyReference extends _javascript_Reference {
  getDependencies() { List? list=super.getDependencies(); list.add(...); return list; }
}



XyzValidator#decorate() should work with IValidationError instead of ValidationError

Refactor checkgroup/radiogroup to make them non-components.


	it is awkward to require a parent container as a wicket component. most of the time it needs to be attached to wicket:container tag because there is no reason to have an actual parent tag or a parent tag is impossible (in case of trs, lis, etc)
	having groups as non-components will allow for nested sets of checks and radios
	having groups as non-components will allow for disjointed sets of checks and radios in a cleaner fashion






Change Notification Preferences

View Online
|
View Changes
|
Add Comment









[CONF] Apache Wicket Wicket 7.0 Roadmap

2013-04-26 Thread confluence







Wicket 7.0 Roadmap
Page edited by Igor Vaynberg


 Changes (1)
 




...
Status: Not started Jira: [WICKET-4964|https://issues.apache.org/jira/browse/WICKET-4964] 
 h3. API Tweaks  h4.SimpleFormComponentLabel should output the required class just like wicket:for  h4. ajaxbehavior#updateAjaxAttributes() should get component passed in  otherwise referencing the component as needed in throttle settings is annoying  {code} queryField.add(new AjaxFormComponentUpdatingBehavior(onkeydown) { 	protected void updateAjaxAttributes(AjaxRequestAttributes attributes) { 		attributes.setThrottlingSettings(new ThrottlingSettings(queryField.getMarkupId(), Duration.seconds(1))); ^ {code}  h4. throttling settings should be mutable to make it easier to override just the duration without having to figure out an id  h4. _javascript_ResourceReference#getDependencies() should return an appendable List  so we can do {code} class MyReference extends _javascript_Reference {   getDependencies() { List? list=super.getDependencies(); list.add(...); return list; } } {code} 


Full Content



This page lists the tasks the Wicket team agreed to implement for Wicket 7.0.

Java 7 as a minimum

Generics for org.apache.wicket.Component

Servlet 3 as a minimum
Tickets in Jira with "Fix Version" = 7.0


PageParameters improvements
Minor API cleanups


API Tweaks

SimpleFormComponentLabel should output the "required" class just like wicket:for
ajaxbehavior#updateAjaxAttributes() should get component passed in
throttling settings should be mutable to make it easier to override just the duration without having to figure out an id
_javascript_ResourceReference#getDependencies() should return an appendable List




This page lists the tasks the Wicket team agreed to implement for Wicket 7.0.

Ideas for Wicket 7.0 list some more ideas but to add a task in the Roadmap it has to be discussed first in the dev mailing list. Ideas with attached patch in Jira ticket or Pull Request have a bigger chance to be included in the Roadmap.
the chance to get your idea in.

Java 7 as a minimum

Java 7 has nice support for generics, better annotations, and Java 6 is reaching its end of life pretty soon.

Assignee: mgrigorov
Status: Not started
Jira: 

Generics for org.apache.wicket.Component

Using Java 7 will allow to use the "diamonds operator", i.e. 
MyPage.java

  ComponentEntity c = new SomeComponent("id", model);



Assignee: mgrigorov
Status: Not started
Jira: 

Servlet 3 as a minimum

While we opted to not require servlet 3 for wicket 6, it has bitten us a couple of times solving issues in wicket 6. Servlet 3 has been out for ages, so we should move with the times.

Assignee: mgrigorov
Status: Not started
Jira: 

Tickets in Jira with "Fix Version" = 7.0

PageParameters improvements


	read-only
	make it possible to differentiate between named indexed parameters and query string ones.
See WICKET-4594, http://markmail.org/thread/cc7yjwshqugj4wic, WICKET-4441



Assignee: mgrigorov
Status: Not started

Minor API cleanups


	Rename renderHead(HtmlHeaderContainer) https://issues.apache.org/jira/browse/WICKET-4964
Assignee: mgrigorov
Status: Not started
Jira: WICKET-4964



API Tweaks

SimpleFormComponentLabel should output the "required" class just like wicket:for

ajaxbehavior#updateAjaxAttributes() should get component passed in

otherwise referencing the component as needed in throttle settings is annoying



queryField.add(new AjaxFormComponentUpdatingBehavior("onkeydown") {
	protected void updateAjaxAttributes(AjaxRequestAttributes attributes) {
		attributes.setThrottlingSettings(new ThrottlingSettings(queryField.getMarkupId(), Duration.seconds(1)));
^



throttling settings should be mutable to make it easier to override just the duration without having to figure out an id

_javascript_ResourceReference#getDependencies() should return an appendable List

so we can do


class MyReference extends _javascript_Reference {
  getDependencies() { List? list=super.getDependencies(); list.add(...); return list; }
}





Change Notification Preferences

View Online
|
View Changes
|
Add Comment









[CONF] Apache Wicket Wicket 7.0 Roadmap

2013-04-26 Thread confluence







Wicket 7.0 Roadmap
Page edited by Martin Grigorov


 Changes (1)
 




...
} {code} 
 h4. XyzValidator#decorate() should work with IValidationError instead of ValidationError 


Full Content



This page lists the tasks the Wicket team agreed to implement for Wicket 7.0.

Java 7 as a minimum

Generics for org.apache.wicket.Component

Servlet 3 as a minimum
Tickets in Jira with "Fix Version" = 7.0


PageParameters improvements
Minor API cleanups


API Tweaks

SimpleFormComponentLabel should output the "required" class just like wicket:for
ajaxbehavior#updateAjaxAttributes() should get component passed in
throttling settings should be mutable to make it easier to override just the duration without having to figure out an id
_javascript_ResourceReference#getDependencies() should return an appendable List
XyzValidator#decorate() should work with IValidationError instead of ValidationError




This page lists the tasks the Wicket team agreed to implement for Wicket 7.0.

Ideas for Wicket 7.0 list some more ideas but to add a task in the Roadmap it has to be discussed first in the dev mailing list. Ideas with attached patch in Jira ticket or Pull Request have a bigger chance to be included in the Roadmap.
the chance to get your idea in.

Java 7 as a minimum

Java 7 has nice support for generics, better annotations, and Java 6 is reaching its end of life pretty soon.

Assignee: mgrigorov
Status: Not started
Jira: 

Generics for org.apache.wicket.Component

Using Java 7 will allow to use the "diamonds operator", i.e. 
MyPage.java

  ComponentEntity c = new SomeComponent("id", model);



Assignee: mgrigorov
Status: Not started
Jira: 

Servlet 3 as a minimum

While we opted to not require servlet 3 for wicket 6, it has bitten us a couple of times solving issues in wicket 6. Servlet 3 has been out for ages, so we should move with the times.

Assignee: mgrigorov
Status: Not started
Jira: 

Tickets in Jira with "Fix Version" = 7.0

PageParameters improvements


	read-only
	make it possible to differentiate between named indexed parameters and query string ones.
See WICKET-4594, http://markmail.org/thread/cc7yjwshqugj4wic, WICKET-4441



Assignee: mgrigorov
Status: Not started

Minor API cleanups


	Rename renderHead(HtmlHeaderContainer) https://issues.apache.org/jira/browse/WICKET-4964
Assignee: mgrigorov
Status: Not started
Jira: WICKET-4964



API Tweaks

SimpleFormComponentLabel should output the "required" class just like wicket:for

ajaxbehavior#updateAjaxAttributes() should get component passed in

otherwise referencing the component as needed in throttle settings is annoying



queryField.add(new AjaxFormComponentUpdatingBehavior("onkeydown") {
	protected void updateAjaxAttributes(AjaxRequestAttributes attributes) {
		attributes.setThrottlingSettings(new ThrottlingSettings(queryField.getMarkupId(), Duration.seconds(1)));
^



throttling settings should be mutable to make it easier to override just the duration without having to figure out an id

_javascript_ResourceReference#getDependencies() should return an appendable List

so we can do


class MyReference extends _javascript_Reference {
  getDependencies() { List? list=super.getDependencies(); list.add(...); return list; }
}



XyzValidator#decorate() should work with IValidationError instead of ValidationError



Change Notification Preferences

View Online
|
View Changes
|
Add Comment









[CONF] Apache Wicket Ideas for Wicket 7.0

2013-04-25 Thread confluence







Ideas for Wicket 7.0
Page edited by Martin Grigorov


Comment:
Link to a blog article explaining how to use animations while replacing a component.


 Changes (3)
 




...
Using attribute modifiers it is difficult to modify tags in proper ways such that existing classes on a class attribute remain, while adding/removing other tags. A DSL for manipulating the class value of a component would be really great.  
h3. -Make transitions possible/easy when replacing components using Ajax/Push- 
 
-Currently we replace the markup of components, which works for updating the components, but it doesnt provide an easy way to animate the outgoing and incoming markup using CSS transitions. For example if you add a hidden class to the class attribute of a component, and update it using Ajax, the markup gets replaced instead of updated.- 
See http://wicketinaction.com/2013/02/replace-components-with-animation/ 
 h3. Integrate [bindgen-wicket|http://code.google.com/p/bindgen-wicket/] 
...


Full Content



This page lists ideas what can be improved for Wicket 7.0.

Ajax back button support
Better stateless support
Implement JAX-RS on top of Wicket IResource
PageParameters improvements
Removal of auto-components
Java 7 as a minimum
Servlet 3 as a minimum
Improved tag manipulation
 Make transitions possible/easy when replacing components using Ajax/Push
Integrate bindgen-wicket
Minor API cleanups



This page lists ideas what can be improved for Wicket 7.0.

These are only ideas. Some of them may not be implemented though. There will be a separate Roadmap page that will have only the ideas on which we agreed.
To be approved an idea has to be discussed first in dev@ mailing list. A patch and/or Pull Request increases the chance to get your idea in.

Ajax back button support

Igor has already started something about this at his GitHub

Perhaps this is a better library than simple history: https://github.com/rails/turbolinks

Better stateless support


	add more stateless components (stateless versions of existing components)
	adopt Ajax stateless behaviors
	...



Implement JAX-RS on top of Wicket IResource

Crazy, but why not ...

PageParameters improvements


	read-only
	make it possible to differentiate between named indexed parameters and query string ones.
  See WICKET-4594, http://markmail.org/thread/cc7yjwshqugj4wic, WICKET-4441



Removal of auto-components

Auto components caused some problems due to their special lifecycle - they appear only during the rendering process. This will simplify component queueing, resolvers+auto components, problems with enclosures, ...
The idea is to rework the auto-components to be first class citizens, i.e. once the markup is parsed they should be in the runtime component tree as manually added components are. And should be reachable in the action phase.

Java 7 as a minimum

Java 7 has nice support for generics, better annotations, and Java 6 is reaching its end of life pretty soon.

Servlet 3 as a minimum

While we opted to not require servlet 3 for wicket 6, it has bitten us a couple of times solving issues in wicket 6. Servlet 3 has been out for ages, so we should move with the times.

Improved tag manipulation

Using attribute modifiers it is difficult to modify tags in proper ways such that existing classes on a 'class' attribute remain, while adding/removing other tags. A DSL for manipulating the class value of a component would be really great.

Make transitions possible/easy when replacing components using Ajax/Push

Currently we replace the markup of components, which works for updating the components, but it doesn't provide an easy way to animate the outgoing and incoming markup using CSS transitions. For example if you add a 'hidden' class to the class attribute of a component, and update it using Ajax, the markup gets replaced instead of updated.
See http://wicketinaction.com/2013/02/replace-components-with-animation/

Integrate bindgen-wicket

The issue of fragile property expressions has not been given much love ever since. Bindgen-wicket solves this in a clean and elegant way. Moreover, annotation processing is no longer cumbersome (as it has become part of javac compilation process since java 6).
Discussion in dev@ mailing list: http://markmail.org/thread/z2ngjxxtpqqwsea6

Minor API cleanups


	Rename renderHead(HtmlHeaderContainer) https://issues.apache.org/jira/browse/WICKET-4964





Change Notification Preferences

View Online
|
View Changes
|
Add Comment









[CONF] Apache Wicket Wicket 7.0 Roadmap

2013-04-25 Thread confluence







Wicket 7.0 Roadmap
Page  added by Martin Grigorov

 

 

This page lists the tasks the Wicket team agreed to implement for Wicket 7.0.

Java 7 as a minimum
Servlet 3 as a minimum
Tickets in Jira with "Fix Version" = 7.0

PageParameters improvements
Minor API cleanups




This page lists the tasks the Wicket team agreed to implement for Wicket 7.0.

Ideas+for+Wicket+7.0 list some more ideas but to add a task in the Roadmap it has to be discussed first in the dev mailing list. Ideas with attached patch in Jira ticket or Pull Request have a bigger chance to be included in the Roadmap.
the chance to get your idea in.

Java 7 as a minimum

Java 7 has nice support for generics, better annotations, and Java 6 is reaching its end of life pretty soon.

Servlet 3 as a minimum

While we opted to not require servlet 3 for wicket 6, it has bitten us a couple of times solving issues in wicket 6. Servlet 3 has been out for ages, so we should move with the times.

Tickets in Jira with "Fix Version" = 7.0

PageParameters improvements


	read-only
	make it possible to differentiate between named indexed parameters and query string ones.
See WICKET-4594, http://markmail.org/thread/cc7yjwshqugj4wic, WICKET-4441



Minor API cleanups


	Rename renderHead(HtmlHeaderContainer) https://issues.apache.org/jira/browse/WICKET-4964




   
Change Notification Preferences
   
   View Online
  |
   Add Comment
   








  1   2   3   4   5   6   7   8   9   10   >