updating table on main page after modal window is closed..
here userPageFindUserModal.setWindowClosedCallback(new ModalWindow.WindowClosedCallback() { public void onClose(AjaxRequestTarget target) { System.out.println(ssaIDLISTCON); userInformation = new WebMarkupContainer(userAttributeTable); userInformation.setOutputMarkupId(true); addUserInformation(test, Massey, J, 1234512, Enabled); target.add(userInformation); } }); When I close my modal window I want to update the contents of the calling page... but it doesn't work.When I refresh the page however it works, but the ajax isn't giving me access to the current page components.. How does this work with a modal window? Is the target for the modal window? or for the parent pages instance?Any ideas? Thanks! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/updating-table-on-main-page-after-modal-window-is-closed-tp4660996.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket serialization concerns
Am 21.08.13 01:01, schrieb Michael Chandler: .. will expose me to a serialization error unless I put it in a Wicket model. Am I correct about this? There is nothing special about the serialization in Wicket. Wicket uses the default Java serialization. So every field not marked as transient will be serialized. As Martin said: watch out for non static inner classes or anon classes because you can not see the field which is created for any reference to something from the outer scope. To put your stuff behind a model has a benefit: if wicket is done with your page (response is written to the client) it will throw away anything changeable from your models. In your case the list of the entries from your database is flushed from memory. I would not recommend to put long living data into your components (which then must be serialize-able). You should put something like this into a cache. You can put everything needed to load you date from somewhere into an model. public class Customers extends LoadableDetachableModelListCustomer { @SpringBean CustomersDao dao; public Customers() { Injector.get().inject(this); } public ListCustomer load() { return dao.allCustomers(); } } This way your component must not deal with anything else .. it will use model which provides the data:) Michael:) - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: updating table on main page after modal window is closed..
Hi, On Thu, Aug 22, 2013 at 7:39 AM, eaglei22 jchojnack...@gmail.com wrote: here userPageFindUserModal.setWindowClosedCallback(new ModalWindow.WindowClosedCallback() { public void onClose(AjaxRequestTarget target) { System.out.println(ssaIDLISTCON); userInformation = new WebMarkupContainer(userAttributeTable); userInformation.setOutputMarkupId(true); addUserInformation(test, Massey, J, 1234512, Enabled); target.add(userInformation); } }); When I close my modal window I want to update the contents of the calling page... but it doesn't work.When I refresh the page however it works, but the ajax isn't giving me access to the current page components.. How does this work with a modal window? Is the target for the modal window? or for the parent pages instance?Any ideas? Thanks! If you use ModalWindow with a Panel content then it will work. If you use it with Page (iframe) content then the AjaxRequestTarget is for the page in the iframe. In this case you should pass PageReference got get access to the parent page and you should use JavaScript like top.location.reload() -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/updating-table-on-main-page-after-modal-window-is-closed-tp4660996.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
org.apache.wicket.core.util.objects.checker.CheckingObjectOutputStream$ObjectCheckException
This is my code snippet : private String selected ; private Country country=new Country(); private ListString selectedCountries= new ArrayListString(); private ListString allCountries=new ArrayListString(); public TestApp(final PageParameters parameters) { add(new FeedbackPanel(feedback)); selected = country.getCountries().get(0); TextField? username=new TextFieldString(userName, Model.of()); username.setRequired(true); for(String counter : country.getCountries()) { allCountries.add(counter); } PasswordTextField passwordTextField= new PasswordTextField(password1,Model.of(Password)); PasswordTextField passwordTextField1= new PasswordTextField(re-enter-password,Model.of(Password)); Form? form=new FormVoid(form){ @Override protected void onSubmit() { info(form submitted successfully); info(Country selected+selected); } }; DropDownChoiceString listOfCountries = new DropDownChoiceString(Countries, new PropertyModelString(this, selected), allCountries); final Form? innerForm = new FormVoid(innerform); AjaxSubmitLink addBtn = new AjaxSubmitLink(Add, innerForm) { private static final long serialVersionUID = 1L; @Override public void onSubmit(AjaxRequestTarget target, Form? form) { selectedCountries.add(selected); allCountries.remove(selected); } }; ListChoiceString countries_sel = new ListChoiceString(countries_sel, new PropertyModelString(this, selected),selectedCountries); AjaxSubmitLink addContactBtn = new AjaxSubmitLink(removeStore, innerForm) { private static final long serialVersionUID = 1L; @Override public void onSubmit(AjaxRequestTarget target, Form? form) { System.out.println(Button Clicked); } }; add(form); form.add(innerForm); innerForm.add(listOfCountries); innerForm.add(countries_sel); innerForm.add(addContactBtn); innerForm.add(addBtn); form.add(username); form.add(passwordTextField); form.add(passwordTextField1); passwordTextField.add(new MyPasswordValidator()); form.add(new EqualPasswordInputValidator(passwordTextField, passwordTextField1));} And my Html: !DOCTYPE html html xmlns:wicket=http://wicket.apache.org; head meta charset=utf-8 / titleApache Wicket Quickstart/title link href='http://fonts.googleapis.com/css?family=Yanone+Kaffeesatz:regular,bold' rel='stylesheet' type='text/css' / link rel=stylesheet href=style.css type=text/css media=screen title=Stylesheet / /head body form wicket:id=form p labelUserName:/labelinput wicket:id=userName type=text/ /p p labelPassword:/labelinput wicket:id=password1 type=password/ /p p labelRe-Enter:/labelinput wicket:id=re-enter-password type=password//p form wicket:id=innerform plabelCountry:/labelselect wicket:id=Countries/select/p input type=submit wicket:id=Add value=Add/ div class=controls select wicket:id=countries_sel/select button type=submit wicket:id=removeStoreDelete/button /div /form input type=submit value=Register/ /form div wicket:id=feedback/div /body /html And its giving me the error: org.apache.wicket.core.util.objects.checker.CheckingObjectOutputStream$ObjectCheckException: The object type is not Serializable! A problem occurred while checking object with type: com.arch.example.Country Field hierarchy is: 0 [class=com.arch.example.HomePage, path=0] private com.arch.example.Country com.arch.example.HomePage.country [class=com.arch.example.Country] - field that is causing the problem at org.apache.wicket.core.util.objects.checker.CheckingObjectOutputStream.internalCheck(CheckingObjectOutputStream.java:387) at org.apache.wicket.core.util.objects.checker.CheckingObjectOutputStream.check(CheckingObjectOutputStream.java:361) at org.apache.wicket.core.util.objects.checker.CheckingObjectOutputStream.checkFields(CheckingObjectOutputStream.java:645) at org.apache.wicket.core.util.objects.checker.CheckingObjectOutputStream.internalCheck(CheckingObjectOutputStream.java:569) at org.apache.wicket.core.util.objects.checker.CheckingObjectOutputStream.check(CheckingObjectOutputStream.java:361) at org.apache.wicket.core.util.objects.checker.CheckingObjectOutputStream.writeObjectOverride(CheckingObjectOutputStream.java:713) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:342) at
Re: org.apache.wicket.core.util.objects.checker.CheckingObjectOutputStream$ObjectCheckException
Hi, On Thu, Aug 22, 2013 at 9:14 AM, arch1990 nicegirla...@gmail.com wrote: This is my code snippet : private String selected ; private Country country=new Country(); private ListString selectedCountries= new ArrayListString(); private ListString allCountries=new ArrayListString(); public TestApp(final PageParameters parameters) { TestApp != HomePage add(new FeedbackPanel(feedback)); selected = country.getCountries().get(0); TextField? username=new TextFieldString(userName, Model.of()); username.setRequired(true); for(String counter : country.getCountries()) { allCountries.add(counter); } PasswordTextField passwordTextField= new PasswordTextField(password1,Model.of(Password)); PasswordTextField passwordTextField1= new PasswordTextField(re-enter-password,Model.of(Password)); Form? form=new FormVoid(form){ @Override protected void onSubmit() { info(form submitted successfully); info(Country selected+selected); } }; DropDownChoiceString listOfCountries = new DropDownChoiceString(Countries, new PropertyModelString(this, selected), allCountries); final Form? innerForm = new FormVoid(innerform); AjaxSubmitLink addBtn = new AjaxSubmitLink(Add, innerForm) { private static final long serialVersionUID = 1L; @Override public void onSubmit(AjaxRequestTarget target, Form? form) { selectedCountries.add(selected); allCountries.remove(selected); } }; ListChoiceString countries_sel = new ListChoiceString(countries_sel, new PropertyModelString(this, selected),selectedCountries); AjaxSubmitLink addContactBtn = new AjaxSubmitLink(removeStore, innerForm) { private static final long serialVersionUID = 1L; @Override public void onSubmit(AjaxRequestTarget target, Form? form) { System.out.println(Button Clicked); } }; add(form); form.add(innerForm); innerForm.add(listOfCountries); innerForm.add(countries_sel); innerForm.add(addContactBtn); innerForm.add(addBtn); form.add(username); form.add(passwordTextField); form.add(passwordTextField1); passwordTextField.add(new MyPasswordValidator()); form.add(new EqualPasswordInputValidator(passwordTextField, passwordTextField1));} And my Html: !DOCTYPE html html xmlns:wicket=http://wicket.apache.org; head meta charset=utf-8 / titleApache Wicket Quickstart/title link href=' http://fonts.googleapis.com/css?family=Yanone+Kaffeesatz:regular,bold' rel='stylesheet' type='text/css' / link rel=stylesheet href=style.css type=text/css media=screen title=Stylesheet / /head body form wicket:id=form p labelUserName:/labelinput wicket:id=userName type=text/ /p p labelPassword:/labelinput wicket:id=password1 type=password/ /p p labelRe-Enter:/labelinput wicket:id=re-enter-password type=password//p form wicket:id=innerform plabelCountry:/labelselect wicket:id=Countries/select/p input type=submit wicket:id=Add value=Add/ div class=controls select wicket:id=countries_sel/select button type=submit wicket:id=removeStoreDelete/button /div /form input type=submit value=Register/ /form div wicket:id=feedback/div /body /html And its giving me the error: org.apache.wicket.core.util.objects.checker.CheckingObjectOutputStream$ObjectCheckException: The object type is not Serializable! A problem occurred while checking object with type: com.arch.example.Country Field hierarchy is: 0 [class=com.arch.example.HomePage, path=0] private com.arch.example.Country com.arch.example.HomePage.country The exception message explains it all. HomePage keeps a reference to Country and Country doesn't implement Serializable. [class=com.arch.example.Country] - field that is causing the problem at org.apache.wicket.core.util.objects.checker.CheckingObjectOutputStream.internalCheck(CheckingObjectOutputStream.java:387) at org.apache.wicket.core.util.objects.checker.CheckingObjectOutputStream.check(CheckingObjectOutputStream.java:361) at org.apache.wicket.core.util.objects.checker.CheckingObjectOutputStream.checkFields(CheckingObjectOutputStream.java:645) at org.apache.wicket.core.util.objects.checker.CheckingObjectOutputStream.internalCheck(CheckingObjectOutputStream.java:569) at
[ANNOUNCE] WicketStuff 6.10.0 is released
Hi, WicketStuff core 6.10.0 based on Apache Wicket 6.10.0 is released and shortly will be available in Maven Central. The changelog for this release is: bitstorm (10): Integration with WicketStuff refactor of segments Code clean up for Wicketstuff integration Suggestion from pull request review pom dependencies refactoring Introduced interface IWebSerialDeserial Smal refactoring readme modified Formatting stuff... some code improvement/cleanup Martin Tzvetanov Grigorov (6): Build against Wicket 6.10.0-SNAPSHOT Various version updates (semver compatible) Use Wicket 6.11.0-SNAPSHOT [async-tasks] Import AjaxRequestTarget to be able to use it [async-tasks] Remove unused import of the AbstractTaskModel Release 6.10.0 svenmeier (6): additional test, no functional change #238 script is in shortcut.js (not shortcuts.js) allow access to non-public methods added license header let LazyModel implement IPropertyReflectionAwareModel added consructors with model to column Ernesto Reinaldo Barreiro (5): add handler that allows to export a several tables to excel. add a flag to GMAP3 that makes map's JavaScript not fail in case of no Internet connection make general purpose cell exporter more robust and flexible fix logic to create table headers. Merge pull request #245 from reiern70/master Andrea Del Bene (4): Wicketstuff integration Revert Wicketstuff integration /media/New Volume/stagew/wicketstuff-restannotations-parent /media/New Volume/stagew/pom.xml Merge pull request #247 from bitstorm/master Martin Grigorov (4): Merge pull request #239 from RoadRunner120485/master Merge pull request #242 from raphw/master Merge pull request #243 from raphw/master Merge pull request #248 from raphw/master Michael Mosmann (4): kryo2: bugfix missing locale in date format kryo2: test fixed kryo2 doc fix kryo2 doc fix rafwin (4): Added asynchronous tasks. Changed Wicket version to 6.9.1 release (Snapshot not available in referenced repository.) Added further test cases. Fixed progress button where event might have been swallowed. Added additional model abstraction to allow a progress button's task to be exchanged during runtime. Added additional model abstraction to allow a progress button's task to be exchanged during runtime. Martin Sturm (3): Build against wicket 6.9.1-SNAPSHOT [Issue #236] Fixed issue in class AnnotationsShiroAuthorizationStrategy. [Issue #236] Added unit test.. Martin Knopf (1): added readme based on wiki page The WicketStuff team
PackageResourceBlockedException
Hi, I'm trying to implement a base page to be used by multiple web applications. My idea was to make the base page reference some common css and javascripts files through PackageResourceReferences: BasePage.java @Override public void renderHead(IHeaderResponse response) { super.renderHead(response); ResourceReference lessFile = new JavaScriptResourceReference(EuraKantaPage.class, less-1.3.3.min.js); JavaScriptHeaderItem lessItem = JavaScriptHeaderItem.forReference(lessFile); response.render(lessItem); ResourceReference tyylitFile = new CssResourceReference(EuraKantaPage.class, style.less); CssHeaderItem tyylitItem = CssHeaderItem.forReference(tyylitFile); response.render(tyylitItem); } But when I visit this base with my browser I get a stack trace beginning with: Last cause: Access denied to (static) package resource packagename/style.less. See IPackageResourceGuard What am I doing wrong? Best regards, Ilkka Seppälä
Re: updating table on main page after modal window is closed..
Thank you. Can you show me a simple example of how to pass pagereference, and then update the webmarkupcontainer? Im not very good with javascript. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/updating-table-on-main-page-after-modal-window-is-closed-tp4660996p4661012.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: PackageResourceBlockedException
Hi, You need to add it to the allowed extensions. See http://seclists.org/fulldisclosure/2012/Mar/251 On Thu, Aug 22, 2013 at 2:31 PM, Ilkka Seppälä iluwa...@gmail.com wrote: Hi, I'm trying to implement a base page to be used by multiple web applications. My idea was to make the base page reference some common css and javascripts files through PackageResourceReferences: BasePage.java @Override public void renderHead(IHeaderResponse response) { super.renderHead(response); ResourceReference lessFile = new JavaScriptResourceReference(EuraKantaPage.class, less-1.3.3.min.js); JavaScriptHeaderItem lessItem = JavaScriptHeaderItem.forReference(lessFile); response.render(lessItem); ResourceReference tyylitFile = new CssResourceReference(EuraKantaPage.class, style.less); CssHeaderItem tyylitItem = CssHeaderItem.forReference(tyylitFile); response.render(tyylitItem); } But when I visit this base with my browser I get a stack trace beginning with: Last cause: Access denied to (static) package resource packagename/style.less. See IPackageResourceGuard What am I doing wrong? Best regards, Ilkka Seppälä
Re: updating table on main page after modal window is closed..
https://github.com/apache/wicket/blob/master/wicket-examples/src/main/java/org/apache/wicket/examples/ajax/builtin/modal/ModalWindowPage.java?source=cc#L56 target.appendJavaScript(top.location.reload()); On Thu, Aug 22, 2013 at 2:43 PM, eaglei22 jchojnack...@gmail.com wrote: Thank you. Can you show me a simple example of how to pass pagereference, and then update the webmarkupcontainer? Im not very good with javascript. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/updating-table-on-main-page-after-modal-window-is-closed-tp4660996p4661012.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: updating table on main page after modal window is closed..
That's the example I was originally using, and I did everything like that but my ajax doesn't work upon return calling the webmarkupcontainer, but theirs does. So I don't understand what im doing wrong. Am I supposef to use a model when initializing the webmarkupcontainer? On Aug 22, 2013 6:53 AM, Martin Grigorov-4 [via Apache Wicket] ml-node+s1842946n4661014...@n4.nabble.com wrote: https://github.com/apache/wicket/blob/master/wicket-examples/src/main/java/org/apache/wicket/examples/ajax/builtin/modal/ModalWindowPage.java?source=cc#L56 target.appendJavaScript(top.location.reload()); On Thu, Aug 22, 2013 at 2:43 PM, eaglei22 [hidden email]http://user/SendEmail.jtp?type=nodenode=4661014i=0 wrote: Thank you. Can you show me a simple example of how to pass pagereference, and then update the webmarkupcontainer? Im not very good with javascript. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/updating-table-on-main-page-after-modal-window-is-closed-tp4660996p4661012.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=4661014i=1 For additional commands, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=4661014i=2 -- If you reply to this email, your message will be added to the discussion below: http://apache-wicket.1842946.n4.nabble.com/updating-table-on-main-page-after-modal-window-is-closed-tp4660996p4661014.html To unsubscribe from updating table on main page after modal window is closed.., click herehttp://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=4660996code=amNob2puYWNraTI2QGdtYWlsLmNvbXw0NjYwOTk2fC0xNDg1Mzk1ODY5 . NAMLhttp://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/updating-table-on-main-page-after-modal-window-is-closed-tp4660996p4661015.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: [ANNOUNCE] WicketStuff 6.10.0 is released
Anybody has a list of the new modules available with this last version? I'd like to write an announcement of the new version at JavaLobby. Hi, WicketStuff core 6.10.0 based on Apache Wicket 6.10.0 is released and shortly will be available in Maven Central. The changelog for this release is: bitstorm (10): Integration with WicketStuff refactor of segments Code clean up for Wicketstuff integration Suggestion from pull request review pom dependencies refactoring Introduced interface IWebSerialDeserial Smal refactoring readme modified Formatting stuff... some code improvement/cleanup Martin Tzvetanov Grigorov (6): Build against Wicket 6.10.0-SNAPSHOT Various version updates (semver compatible) Use Wicket 6.11.0-SNAPSHOT [async-tasks] Import AjaxRequestTarget to be able to use it [async-tasks] Remove unused import of the AbstractTaskModel Release 6.10.0 svenmeier (6): additional test, no functional change #238 script is in shortcut.js (not shortcuts.js) allow access to non-public methods added license header let LazyModel implement IPropertyReflectionAwareModel added consructors with model to column Ernesto Reinaldo Barreiro (5): add handler that allows to export a several tables to excel. add a flag to GMAP3 that makes map's JavaScript not fail in case of no Internet connection make general purpose cell exporter more robust and flexible fix logic to create table headers. Merge pull request #245 from reiern70/master Andrea Del Bene (4): Wicketstuff integration Revert Wicketstuff integration /media/New Volume/stagew/wicketstuff-restannotations-parent /media/New Volume/stagew/pom.xml Merge pull request #247 from bitstorm/master Martin Grigorov (4): Merge pull request #239 from RoadRunner120485/master Merge pull request #242 from raphw/master Merge pull request #243 from raphw/master Merge pull request #248 from raphw/master Michael Mosmann (4): kryo2: bugfix missing locale in date format kryo2: test fixed kryo2 doc fix kryo2 doc fix rafwin (4): Added asynchronous tasks. Changed Wicket version to 6.9.1 release (Snapshot not available in referenced repository.) Added further test cases. Fixed progress button where event might have been swallowed. Added additional model abstraction to allow a progress button's task to be exchanged during runtime. Added additional model abstraction to allow a progress button's task to be exchanged during runtime. Martin Sturm (3): Build against wicket 6.9.1-SNAPSHOT [Issue #236] Fixed issue in class AnnotationsShiroAuthorizationStrategy. [Issue #236] Added unit test.. Martin Knopf (1): added readme based on wiki page The WicketStuff team - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: [ANNOUNCE] WicketStuff 6.10.0 is released
https://github.com/wicketstuff/core/wiki/Wicket-Stuff-Core-Release-Process#getting-the-list-of-new-modules On Thu, Aug 22, 2013 at 4:24 PM, Andrea Del Bene an.delb...@gmail.comwrote: Anybody has a list of the new modules available with this last version? I'd like to write an announcement of the new version at JavaLobby. Hi, WicketStuff core 6.10.0 based on Apache Wicket 6.10.0 is released and shortly will be available in Maven Central. The changelog for this release is: bitstorm (10): Integration with WicketStuff refactor of segments Code clean up for Wicketstuff integration Suggestion from pull request review pom dependencies refactoring Introduced interface IWebSerialDeserial Smal refactoring readme modified Formatting stuff... some code improvement/cleanup Martin Tzvetanov Grigorov (6): Build against Wicket 6.10.0-SNAPSHOT Various version updates (semver compatible) Use Wicket 6.11.0-SNAPSHOT [async-tasks] Import AjaxRequestTarget to be able to use it [async-tasks] Remove unused import of the AbstractTaskModel Release 6.10.0 svenmeier (6): additional test, no functional change #238 script is in shortcut.js (not shortcuts.js) allow access to non-public methods added license header let LazyModel implement IPropertyReflectionAwareModel added consructors with model to column Ernesto Reinaldo Barreiro (5): add handler that allows to export a several tables to excel. add a flag to GMAP3 that makes map's JavaScript not fail in case of no Internet connection make general purpose cell exporter more robust and flexible fix logic to create table headers. Merge pull request #245 from reiern70/master Andrea Del Bene (4): Wicketstuff integration Revert Wicketstuff integration /media/New Volume/stagew/wicketstuff-restannotations-parent /media/New Volume/stagew/pom.xml Merge pull request #247 from bitstorm/master Martin Grigorov (4): Merge pull request #239 from RoadRunner120485/master Merge pull request #242 from raphw/master Merge pull request #243 from raphw/master Merge pull request #248 from raphw/master Michael Mosmann (4): kryo2: bugfix missing locale in date format kryo2: test fixed kryo2 doc fix kryo2 doc fix rafwin (4): Added asynchronous tasks. Changed Wicket version to 6.9.1 release (Snapshot not available in referenced repository.) Added further test cases. Fixed progress button where event might have been swallowed. Added additional model abstraction to allow a progress button's task to be exchanged during runtime. Added additional model abstraction to allow a progress button's task to be exchanged during runtime. Martin Sturm (3): Build against wicket 6.9.1-SNAPSHOT [Issue #236] Fixed issue in class AnnotationsShiroAuthorizationStrategy. [Issue #236] Added unit test.. Martin Knopf (1): added readme based on wiki page The WicketStuff team - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: [ANNOUNCE] WicketStuff 6.10.0 is released
Andrea, I'd be curious to have a look at your JavaLobby article. Will you be kind enough to post the link here when it's available, please? Regards, Pierre On Thu, Aug 22, 2013 at 3:24 PM, Andrea Del Bene an.delb...@gmail.comwrote: Anybody has a list of the new modules available with this last version? I'd like to write an announcement of the new version at JavaLobby. Hi, WicketStuff core 6.10.0 based on Apache Wicket 6.10.0 is released and shortly will be available in Maven Central. The changelog for this release is: bitstorm (10): Integration with WicketStuff refactor of segments Code clean up for Wicketstuff integration Suggestion from pull request review pom dependencies refactoring Introduced interface IWebSerialDeserial Smal refactoring readme modified Formatting stuff... some code improvement/cleanup Martin Tzvetanov Grigorov (6): Build against Wicket 6.10.0-SNAPSHOT Various version updates (semver compatible) Use Wicket 6.11.0-SNAPSHOT [async-tasks] Import AjaxRequestTarget to be able to use it [async-tasks] Remove unused import of the AbstractTaskModel Release 6.10.0 svenmeier (6): additional test, no functional change #238 script is in shortcut.js (not shortcuts.js) allow access to non-public methods added license header let LazyModel implement IPropertyReflectionAwareModel added consructors with model to column Ernesto Reinaldo Barreiro (5): add handler that allows to export a several tables to excel. add a flag to GMAP3 that makes map's JavaScript not fail in case of no Internet connection make general purpose cell exporter more robust and flexible fix logic to create table headers. Merge pull request #245 from reiern70/master Andrea Del Bene (4): Wicketstuff integration Revert Wicketstuff integration /media/New Volume/stagew/wicketstuff-restannotations-parent /media/New Volume/stagew/pom.xml Merge pull request #247 from bitstorm/master Martin Grigorov (4): Merge pull request #239 from RoadRunner120485/master Merge pull request #242 from raphw/master Merge pull request #243 from raphw/master Merge pull request #248 from raphw/master Michael Mosmann (4): kryo2: bugfix missing locale in date format kryo2: test fixed kryo2 doc fix kryo2 doc fix rafwin (4): Added asynchronous tasks. Changed Wicket version to 6.9.1 release (Snapshot not available in referenced repository.) Added further test cases. Fixed progress button where event might have been swallowed. Added additional model abstraction to allow a progress button's task to be exchanged during runtime. Added additional model abstraction to allow a progress button's task to be exchanged during runtime. Martin Sturm (3): Build against wicket 6.9.1-SNAPSHOT [Issue #236] Fixed issue in class AnnotationsShiroAuthorizationStrategy. [Issue #236] Added unit test.. Martin Knopf (1): added readme based on wiki page The WicketStuff team - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Un truc bien avec la musique, c'est que quand elle te frappe, tu n'as pas mal. Alors frappez-moi de musique ! Frappez-moi de musique, maintenant ! (Bob Marley : Trenchtown Rock)
Re: [ANNOUNCE] WicketStuff 6.10.0 is released
Sure! I've just started to write a draft. If you want you can have a look at http://java.dzone.com/announcements/wicketstuff-6100-out Andrea, I'd be curious to have a look at your JavaLobby article. Will you be kind enough to post the link here when it's available, please? Regards, Pierre On Thu, Aug 22, 2013 at 3:24 PM, Andrea Del Bene an.delb...@gmail.comwrote: Anybody has a list of the new modules available with this last version? I'd like to write an announcement of the new version at JavaLobby. Hi, WicketStuff core 6.10.0 based on Apache Wicket 6.10.0 is released and shortly will be available in Maven Central. The changelog for this release is: bitstorm (10): Integration with WicketStuff refactor of segments Code clean up for Wicketstuff integration Suggestion from pull request review pom dependencies refactoring Introduced interface IWebSerialDeserial Smal refactoring readme modified Formatting stuff... some code improvement/cleanup Martin Tzvetanov Grigorov (6): Build against Wicket 6.10.0-SNAPSHOT Various version updates (semver compatible) Use Wicket 6.11.0-SNAPSHOT [async-tasks] Import AjaxRequestTarget to be able to use it [async-tasks] Remove unused import of the AbstractTaskModel Release 6.10.0 svenmeier (6): additional test, no functional change #238 script is in shortcut.js (not shortcuts.js) allow access to non-public methods added license header let LazyModel implement IPropertyReflectionAwareModel added consructors with model to column Ernesto Reinaldo Barreiro (5): add handler that allows to export a several tables to excel. add a flag to GMAP3 that makes map's JavaScript not fail in case of no Internet connection make general purpose cell exporter more robust and flexible fix logic to create table headers. Merge pull request #245 from reiern70/master Andrea Del Bene (4): Wicketstuff integration Revert Wicketstuff integration /media/New Volume/stagew/wicketstuff-restannotations-parent /media/New Volume/stagew/pom.xml Merge pull request #247 from bitstorm/master Martin Grigorov (4): Merge pull request #239 from RoadRunner120485/master Merge pull request #242 from raphw/master Merge pull request #243 from raphw/master Merge pull request #248 from raphw/master Michael Mosmann (4): kryo2: bugfix missing locale in date format kryo2: test fixed kryo2 doc fix kryo2 doc fix rafwin (4): Added asynchronous tasks. Changed Wicket version to 6.9.1 release (Snapshot not available in referenced repository.) Added further test cases. Fixed progress button where event might have been swallowed. Added additional model abstraction to allow a progress button's task to be exchanged during runtime. Added additional model abstraction to allow a progress button's task to be exchanged during runtime. Martin Sturm (3): Build against wicket 6.9.1-SNAPSHOT [Issue #236] Fixed issue in class AnnotationsShiroAuthorizationStrategy. [Issue #236] Added unit test.. Martin Knopf (1): added readme based on wiki page The WicketStuff team - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: Multi select transfer widget
Beautiful! That's exactly it. Thanks so much! Mike -Original Message- From: Colin Rogers [mailto:colin.rog...@objectconsulting.com.au] Sent: Wednesday, August 21, 2013 10:46 PM To: users@wicket.apache.org Subject: RE: Multi select transfer widget Michael, The component I think you mean is the Palette; http://www.mkyong.com/wicket/wicket-palette-example/ http://www.wicket-library.com/wicket-examples/compref/wicket/bookmarkable/org.apache.wicket.examples.compref.PalettePage?1 Cheers, Col. From: Michael Chandler [michael.chand...@onassignment.com] Sent: 22 August 2013 07:08 To: users@wicket.apache.org Subject: Multi select transfer widget Hi there, Is anyone aware of a good example of a multi-select transfer widget in Wicket? To be more precise, I'm talking about two multiselect drop down choice select boxes where the left box serves as a collection of available choices and the right box serves as the actual selection(s) from the possible choices. A button would allow you to move highlighted choices from the left box to the right box. There are a number of simple ways to pull it off, but I wanted to see if anyone knew of a nifty Wicket example before I began to head down that road on my own. Thanks! Mike EMAIL DISCLAIMER This email message and its attachments are confidential and may also contain copyright or privileged material. If you are not the intended recipient, you may not forward the email or disclose or use the information contained in it. If you have received this email message in error, please advise the sender immediately by replying to this email and delete the message and any associated attachments. Any views, opinions, conclusions, advice or statements expressed in this email message are those of the individual sender and should not be relied upon as the considered view, opinion, conclusions, advice or statement of this company except where the sender expressly, and with authority, states them to be the considered view, opinion, conclusions, advice or statement of this company. Every care is taken but we recommend that you scan any attachments for viruses. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: Wicket serialization concerns
Michael, This is extremely helpful. Thanks for the detailed explanation! Mike -Original Message- From: Michael Mosmann [mailto:mich...@mosmann.de] Sent: Wednesday, August 21, 2013 11:53 PM To: users@wicket.apache.org Subject: Re: Wicket serialization concerns Am 21.08.13 01:01, schrieb Michael Chandler: .. will expose me to a serialization error unless I put it in a Wicket model. Am I correct about this? There is nothing special about the serialization in Wicket. Wicket uses the default Java serialization. So every field not marked as transient will be serialized. As Martin said: watch out for non static inner classes or anon classes because you can not see the field which is created for any reference to something from the outer scope. To put your stuff behind a model has a benefit: if wicket is done with your page (response is written to the client) it will throw away anything changeable from your models. In your case the list of the entries from your database is flushed from memory. I would not recommend to put long living data into your components (which then must be serialize-able). You should put something like this into a cache. You can put everything needed to load you date from somewhere into an model. public class Customers extends LoadableDetachableModelListCustomer { @SpringBean CustomersDao dao; public Customers() { Injector.get().inject(this); } public ListCustomer load() { return dao.allCustomers(); } } This way your component must not deal with anything else .. it will use model which provides the data:) Michael:) - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: receive non-wicket json payload via wicket website
Thanks, Nick. How would it be possible to host/run a servlet within a Wicket application? Did you notice my limitations regarding IP and port? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/receive-non-wicket-json-payload-via-wicket-website-tp4660680p4661025.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: receive non-wicket json payload via wicket website
Thanks, Andrea. I agree: unless I am missing something, IResource seems like the appropriate (and only) way to handle non-Wicket requests via a Wicket application. Do you know if there would be much additional overhead incurred if I run my non-Wicket request-handling code in an IResource (as opposed to a plain servlet under Tomcat or the like)? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/receive-non-wicket-json-payload-via-wicket-website-tp4660680p4661030.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Internal frame in Wicket Page to external website
Hi, I am building a website in Wicket. I would like to make an iframe that points to an external website. Does someone know what code I have to use for that in Java? Thank you in advance! Martino -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Internal-frame-in-Wicket-Page-to-external-website-tp4661032.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Internal frame in Wicket Page to external website
Hi Martino, Maybe you can do something like that : -in your html file : iframe wicket:id=myFrame/iframe -in you java file : WebMarkupContainer container = new WebMarkupContainer(myFrame); container.add(new AttributeAppender(src, Model.of(http://www.yourwebsite.com;))); add(container); You may also have a look at org.apache.wicket.markup.html.link.InlineFrame to do you own Frame class : /** * Handles this frame's tag. * * @param tag *the component tag * @see org.apache.wicket.Component#onComponentTag(ComponentTag) */ @Override protected final void onComponentTag(final ComponentTag tag) { checkComponentTag(tag, iframe); // Set href to link to this frame's frameRequested method CharSequence url = getURL(); // generate the src attribute tag.put(src, url); super.onComponentTag(tag); } Regards, Gabriel. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Internal-frame-in-Wicket-Page-to-external-website-tp4661032p4661034.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: Going from one web app to another simulating login action
Thanks! but it's not a single sign on what i'm trying to do... If a user is logged in webA (an administrators web), may impersonate any user in webB (users web). So webA must have a link to redirect to webB using any credentials that a user had chosen. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Going-from-one-web-app-to-another-simulating-login-action-tp4660932p4661026.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Internal frame in Wicket Page to external website
you can use InternalFrame class in wicket. MartinoSuperman martinosuper...@live.nlschreef: Hi, I am building a website in Wicket. I would like to make an iframe that points to an external website. Does someone know what code I have to use for that in Java? Thank you in advance! Martino -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Internal-frame-in-Wicket-Page-to-external-website-tp4661032.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: Going from one web app to another simulating login action
Precisely, if WebA and WebB are two different web applications, then SSO would solve your problem. Your admin would have the correct permissions as configured for the Administrators group in your windows domain. You could even grab the current user's account log into a desktop and bypass the login page of your webapp all together. Isn't this the kind of problems that SSO is designed to solve? ~ Thank you, Paul Bors -Original Message- From: LauraZ [mailto:zabaleta.la...@gmail.com] Sent: Thursday, August 22, 2013 2:19 PM To: users@wicket.apache.org Subject: RE: Going from one web app to another simulating login action Thanks! but it's not a single sign on what i'm trying to do... If a user is logged in webA (an administrators web), may impersonate any user in webB (users web). So webA must have a link to redirect to webB using any credentials that a user had chosen. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Going-from-one-web-app-to-another -simulating-login-action-tp4660932p4661026.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: Going from one web app to another simulating login action
Or are you simply trying to implement the Linux su command here between two web apps (have an admin choose what user to login under the second webapp)? Maybe this can help you? http://docs.oracle.com/cd/E27559_01/dev.1112/e27134/impersonation.htm Still based on SSO. ~ Thank you, Paul Bors -Original Message- From: Paul Bors [mailto:p...@bors.ws] Sent: Thursday, August 22, 2013 7:04 PM To: users@wicket.apache.org Subject: RE: Going from one web app to another simulating login action Precisely, if WebA and WebB are two different web applications, then SSO would solve your problem. Your admin would have the correct permissions as configured for the Administrators group in your windows domain. You could even grab the current user's account log into a desktop and bypass the login page of your webapp all together. Isn't this the kind of problems that SSO is designed to solve? ~ Thank you, Paul Bors -Original Message- From: LauraZ [mailto:zabaleta.la...@gmail.com] Sent: Thursday, August 22, 2013 2:19 PM To: users@wicket.apache.org Subject: RE: Going from one web app to another simulating login action Thanks! but it's not a single sign on what i'm trying to do... If a user is logged in webA (an administrators web), may impersonate any user in webB (users web). So webA must have a link to redirect to webB using any credentials that a user had chosen. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Going-from-one-web-app-to-another -simulating-login-action-tp4660932p4661026.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Internal frame in Wicket Page to external website
Haiko, I'm not aware of an InternalFrame class in wicket. In which package did you find it? Reagrds, Gabriel. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Internal-frame-in-Wicket-Page-to-external-website-tp4661032p4661041.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org