Paypal Integration in wicket
Hello, I am trying to add paypal as a payment option in wicket, I am using a straight forward method using a BuyNow button with the form and hidden fields in html. But I am not quite sure how to implement the IPN, without which it would be very unsafe as the html can be changed during just before clicking the buyNow button. Could any one share with me an example code for the IPN implementation or a different example where OAuth and the restAPI have been used for paypal integration. I would be very grateful -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Paypal-Integration-in-wicket-tp4670325.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
ReLoad HTML only
Hi, for production mode its not sensible to use setResourcePollFrequency(Duration.ONE_SECOND); Is there a way that one can only allow the HTML's to be reloaded that too on an Event rather than a polling mechanism? - Software documentation is like sex: when it is good, it is very, very good; and when it is bad, it is still better than nothing! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/ReLoad-HTML-only-tp4670330.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
drop down box hierarchy
Hi all, is there somewhere an example of an ajax drop down hierarchy? For example the first drop down lists the value A, B, C, D. If you select A, another drop down box appears below where you can choose A1, B1, B2 and so on (a hierarchy of drop down boxes). e.g. A - A1 - A12 - A13 - A14 - B1 - B12 - B13 - B2 C D Thanks, Chris - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: ReLoad HTML only
getApplication().getMarkupSettings().getMarkupFactory().getMarkupCache().clearCache() will clear the cache and next request will load it from the file system Martin Grigorov Freelancer, available for hire! Wicket Training and Consulting https://twitter.com/mtgrigorov On Thu, Apr 16, 2015 at 8:05 PM, Francois Meillet francois.meil...@gmail.com wrote: look at getApplication().getMarkupSettings().getMarkupFactory().getMarkupCache().getMarkup(final MarkupContainer container, final Class? clazz, final boolean enforceReload) François Meillet Le 16 avr. 2015 à 18:19, Arjun Dhar dhar...@yahoo.com a écrit : Hi, for production mode its not sensible to use setResourcePollFrequency(Duration.ONE_SECOND); Is there a way that one can only allow the HTML's to be reloaded that too on an Event rather than a polling mechanism? - Software documentation is like sex: when it is good, it is very, very good; and when it is bad, it is still better than nothing! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/ReLoad-HTML-only-tp4670330.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: A few questions - upgrading from 1.5 to 6.19
#1 rendering a full page URL See https://cwiki.apache.org/confluence/display/WICKET/Getting+a+url+for+display Sven On 16.04.2015 21:59, Sven Meier wrote: Hi, #2 is with an IndicatingAjaxLink. But the generated HTML has a bad href and no onClick(): Wicket uses event registration now: http://wicketinaction.com/2012/07/wicket-6-javascript-improvements/ Have fun Sven On 16.04.2015 19:31, Christopher Merrill wrote: Our app hasn't been under active development for a while, so we have fallen a bit behind. We're about to start a new project with our wicket app, so I thought our first step should be getting current. I read the migration guide - it helped get me through a lot of issues. So I've been able to get past all the obvious stuff (compile errors) and have our app up and running under 6.19, with a few glaring problems. There is nothing in the console or logs when I exercise these pages/functions. #1 is with rendering a full page URL (for inclusion in an email). After constructing the parameters, our code does this: Url url = RequestCycle.get().mapUrlFor(page_class, parameters); return _req_cycle.getUrlRenderer().renderFullUrl(url); In 1.5, this generated a URL like this (which works) http://localhost/portal/pages/registration/CompleteRegistration?user=ch...@webperformance.comm=-1663176292159862270 but now we get: http://localhost/portal/pages/registration/pages/registration/CompleteRegistration?user=ch...@webperformance.comm=-1663176292159862270 Note the extra pages/registration/. Any ideas where I should look into this? The pages are mounted with a friendlier URL - could this be related? #2 is with an IndicatingAjaxLink. The HTML looks like this: a href=# wicket:id=create_customer_linkimg src=images/add_button.gifwicket:message key=Create_customercreate.../wicket:message/a And we create it with: _create_customer_link = new IndicatingAjaxLinkLicense(create_customer_link) { @Override public void onClick(AjaxRequestTarget target) { followed by our onClick logic. But the generated HTML has a bad href and no onClick(): a href=javascript:; wicket:id=create_customer_link id=create__customer__linkfimg src=../../images/add_button.gifwicket:message key=Create_customerCreate customer/wicket:message/aspan style=display:none; class=wicket-ajax-indicator id=create__customer__linkf--ajax-indicatorimg src=../wicket/resource/org.apache.wicket.ajax.AbstractDefaultAjaxBehavior/indicator-ver-1429197921240.gif alt=//span Before the upgrade, it would render as: a href=# id=id29 onclick=if (function(){return Wicket.$(#039;id29#039;) != null;}.bind(this)()) { Wicket.showIncrementally(#039;id29--ajax-indicator#039;);}var wcall=wicketAjaxGet(#039;OrganizationAdministration?15-1.IBehaviorListener.1-form-create_customer_link#039;,function() { ;Wicket.hideIncrementally(#039;id29--ajax-indicator#039;);}.bind(this),function() { ;Wicket.hideIncrementally(#039;id29--ajax-indicator#039;);}.bind(this), function() {return Wicket.$(#039;id29#039;) != null;}.bind(this));return !wcall;img src=../../images/add_button.gifCreate customer/aspan style=display:none; class=wicket-ajax-indicator id=id29--ajax-indicatorimg src=../wicket/resource/org.apache.wicket.ajax.AbstractDefaultAjaxBehavior/indicator-ver-03CE3DCC84AF110E9DA8699A841E5200.gif alt=//span I feel like I should know where to start investigating this, but it's been a few years since I've been active with Wicket and I'm flailing around a bit at the moment. Any help would be greatly appreciated! TIA! Chris - 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: A few questions - upgrading from 1.5 to 6.19
On Thu, Apr 16, 2015 at 11:05 PM, Sven Meier s...@meiers.net wrote: #1 rendering a full page URL See https://cwiki.apache.org/confluence/display/WICKET/ Getting+a+url+for+display TL;DR use urlFor() instead of mapUrlFor() Sven On 16.04.2015 21:59, Sven Meier wrote: Hi, #2 is with an IndicatingAjaxLink. But the generated HTML has a bad href and no onClick(): Wicket uses event registration now: http://wicketinaction.com/2012/07/wicket-6-javascript-improvements/ Have fun Sven On 16.04.2015 19:31, Christopher Merrill wrote: Our app hasn't been under active development for a while, so we have fallen a bit behind. We're about to start a new project with our wicket app, so I thought our first step should be getting current. I read the migration guide - it helped get me through a lot of issues. So I've been able to get past all the obvious stuff (compile errors) and have our app up and running under 6.19, with a few glaring problems. There is nothing in the console or logs when I exercise these pages/functions. #1 is with rendering a full page URL (for inclusion in an email). After constructing the parameters, our code does this: Url url = RequestCycle.get().mapUrlFor(page_class, parameters); return _req_cycle.getUrlRenderer().renderFullUrl(url); In 1.5, this generated a URL like this (which works) http://localhost/portal/pages/registration/CompleteRegistration?user= ch...@webperformance.comm=-1663176292159862270 but now we get: http://localhost/portal/pages/registration/pages/registration/ CompleteRegistration?user=ch...@webperformance.comm=- 1663176292159862270 Note the extra pages/registration/. Any ideas where I should look into this? The pages are mounted with a friendlier URL - could this be related? #2 is with an IndicatingAjaxLink. The HTML looks like this: a href=# wicket:id=create_customer_linkimg src=images/add_button.gifwicket:message key=Create_customercreate.../wicket:message/a And we create it with: _create_customer_link = new IndicatingAjaxLinkLicense(create_customer_link) { @Override public void onClick(AjaxRequestTarget target) { followed by our onClick logic. But the generated HTML has a bad href and no onClick(): a href=javascript:; wicket:id=create_customer_link id=create__customer__linkfimg src=../../images/add_button.gifwicket:message key=Create_customerCreate customer/wicket:message/aspan style=display:none; class=wicket-ajax-indicator id=create__customer__linkf--ajax-indicatorimg src=../wicket/resource/org.apache.wicket.ajax. AbstractDefaultAjaxBehavior/indicator-ver-1429197921240.gif alt=//span Before the upgrade, it would render as: a href=# id=id29 onclick=if (function(){return Wicket.$(#039;id29#039;) != null;}.bind(this)()) { Wicket.showIncrementally(#039;id29--ajax-indicator#039;);}var wcall=wicketAjaxGet(#039;OrganizationAdministration?15- 1.IBehaviorListener.1-form-create_customer_link#039;,function() { ;Wicket.hideIncrementally(#039;id29--ajax-indicator#039;);}.bind(this),function() { ;Wicket.hideIncrementally(#039;id29--ajax-indicator#039; );}.bind(this), function() {return Wicket.$(#039;id29#039;) != null;}.bind(this));return !wcall;img src=../../images/add_button.gifCreate customer/aspan style=display:none; class=wicket-ajax-indicator id=id29--ajax-indicatorimg src=../wicket/resource/org.apache.wicket.ajax. AbstractDefaultAjaxBehavior/indicator-ver-03CE3DCC84AF110E9DA8699A841E5200.gif alt=//span I feel like I should know where to start investigating this, but it's been a few years since I've been active with Wicket and I'm flailing around a bit at the moment. Any help would be greatly appreciated! TIA! Chris - 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
Package resource location does not consider current session style and locale
We are using Wicket 6.15 (but the code seems unchanged in the latest Wicket 6 releases). We set style to Wicket session and expect Wicket to consider the style when loading CSS package resources. But this does not work. Seems to be some kind of inconsistency in PackageResource class. It uses PackageResource#getCacheableResourceStream() method to calculate the cache key of the resource (and the timestamp when generating the resource url). This method considers Session.get().getStyle() and in this case the correct resource file is located (sample_style.css). But PackageResource#newResourceResponse uses PackageResource#getResourceStream(), which does not take Session.get().getStyle() into account and as a result locates the wrong resource file (sample.css instead of sample_style.css), which is returned to the browser. This seems to be a bug, isn't it? The same applies to the locale. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Package-resource-location-does-not-consider-current-session-style-and-locale-tp4670338.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: ReLoad HTML only
Websockets On Apr 16, 2015 9:35 AM, Arjun Dhar dhar...@yahoo.com wrote: Hi, for production mode its not sensible to use setResourcePollFrequency(Duration.ONE_SECOND); Is there a way that one can only allow the HTML's to be reloaded that too on an Event rather than a polling mechanism? - Software documentation is like sex: when it is good, it is very, very good; and when it is bad, it is still better than nothing! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/ReLoad-HTML-only-tp4670330.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: drop down box hierarchy
http://www.wicket-library.com/wicket-examples-6.0.x/ajax/choice Martin Grigorov Freelancer, available for hire! Wicket Training and Consulting https://twitter.com/mtgrigorov On Thu, Apr 16, 2015 at 8:20 PM, Chris chris...@gmx.at wrote: Hi all, is there somewhere an example of an ajax drop down hierarchy? For example the first drop down lists the value A, B, C, D. If you select A, another drop down box appears below where you can choose A1, B1, B2 and so on (a hierarchy of drop down boxes). e.g. A - A1 - A12 - A13 - A14 - B1 - B12 - B13 - B2 C D Thanks, Chris - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Wicket Listmodel (attach objects to model but not to list)
Hi all, I have a listmodel: IModelListA listModel = new ListModelListA(method.retrieveAlist()); Is it possible to feed the model from the original list but add additional elements of type A to the model only, without being mapped back to the list? thanks a lot, Chris - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org