Re: Package resource location does not consider current session style and locale

2015-04-17 Thread Sven Meier
Please provide a quickstart and attach it to a new Jira issue. Regards Sven On 16.04.2015 23:28, Sergiy Barlabanov wrote: 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

Re: Wicket Listmodel (attach objects to model but not to list)

2015-04-17 Thread Sven Meier
I'd solve it with a custom model: IModelListA listModel = new LoadableDetachableModel() { protected ListA load() { ListA as = new ArrayList(); as.addAll(method.retrieveAlist()); as.add(...); return as; } }); Positive side effect: The list of object is

Re: Package resource location does not consider current session style and locale

2015-04-17 Thread Martin Grigorov
Hi, Please create a quickstart and attach it to a ticket in JIRA. Thanks! Martin Grigorov Freelancer, available for hire! Wicket Training and Consulting https://twitter.com/mtgrigorov On Fri, Apr 17, 2015 at 12:28 AM, Sergiy Barlabanov cont...@sergiy-barlabanov.de wrote: We are using Wicket

Re: Wicket Listmodel (attach objects to model but not to list)

2015-04-17 Thread Francois Meillet
It's not possible. Look at the ListModel's consructor. public ListModel(ListT list) { setObject(list); } And the setObject() method implementation, which is in the superclass, is @Override public void setObject(T object) { if (!(object instanceof Serializable))

Paypal Integration in Wicket

2015-04-17 Thread jayeshps
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

Re: AutoComplete suggestion list disappear when I click on scrollbar in IE

2015-04-17 Thread ravala
I have done bit investigation and came to known the below code is called in IE when we click on scroll bar. Line no 96 in wicket-autocomplete.js Wicket.Event.add(obj, 'blur', function (jqEvent) { window.setTimeout(hideAutoComplete, 500);

Re: Paypal Integration in wicket

2015-04-17 Thread Martin Grigorov
Hi, Please describe what is IPN and what is the technical issue. Martin Grigorov Freelancer, available for hire! Wicket Training and Consulting https://twitter.com/mtgrigorov On Thu, Apr 16, 2015 at 12:11 PM, jayeshps jayeshpsars...@gmail.com wrote: Hello, I am trying to add paypal as a

Re: Wicket Listmodel (attach objects to model but not to list)

2015-04-17 Thread Chris
Hi Sven, thanks a lot - works fine for me. Christoph Am 17.04.2015 um 08:47 schrieb Sven Meier s...@meiers.net: I'd solve it with a custom model: IModelListA listModel = new LoadableDetachableModel() { protected ListA load() { ListA as = new ArrayList();

Re: list view ajax update takes too much time

2015-04-17 Thread Chris
Hi, I have now added directly the PoiListPanel as sink and used the strategy EXACT. However, the rendering is still too slow. How to improve this? Thanks, Chris Am 17.04.2015 um 18:27 schrieb Chris chris...@gmx.at: Hi, the problem seems with the Breadth strategy that iterates over all

Re: Paypal Integration in wicket

2015-04-17 Thread jayeshps
Hello, IPN is short for Instant Paypal Notification, it is a notification service, which runs while a user is trying to make a payment after clicking on the facebook button on my web application. unless a confirmation is sent from my application to paypal the payment will not be confirmed, this

Re: list view ajax update takes too much time

2015-04-17 Thread Chris
Hi, the problem seems with the Breadth strategy that iterates over all object panels. How can I add a specific Panel as sink so that I can use the Exact strategy? Currently, the page is added as sink. Thanks, Chris Am 17.04.2015 um 17:55 schrieb Chris chris...@gmx.at: Hi all, I have a

Re: A few questions - upgrading from 1.5 to 6.19

2015-04-17 Thread Christopher Merrill
The javadocs indicate that should return a bookmarkable (absolute) URL, but it is returning a relative URL, instead :( Should I report this as a bug? I'm debugging this on a local AppEngine SDK instance, if that matters. TIA! Chris On Thu, Apr 16, 2015 at 4:44 PM, Martin Grigorov

Re: AttributeAppender

2015-04-17 Thread Martin Grigorov
Hi, Yes. Override #newTitle() [1] 1. https://github.com/apache/wicket/blob/master/wicket-extensions/src/main/java/org/apache/wicket/extensions/markup/html/tabs/TabbedPanel.java#L324 Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Fri, Apr 17, 2015 at 11:07 PM,

Re: A few questions - upgrading from 1.5 to 6.19

2015-04-17 Thread Christopher Merrill
Thanks, Sven. I read that and I _think_ I understand it. I looked back at the source and found: Wicket.Ajax.ajax({u:./OrganizationAdministration?7-1.IBehaviorListener.0-form-create_customer_link,e:click,c:create__customer__link5,i:create__customer__link5--ajax-indicator});; which seems to be

Re: A few questions - upgrading from 1.5 to 6.19

2015-04-17 Thread Martin Grigorov
On Fri, Apr 17, 2015 at 10:42 PM, Christopher Merrill ch...@webperformance.com wrote: The javadocs indicate that should return a bookmarkable (absolute) URL, but it is returning a relative URL, instead :( Please be more concrete what you have tried. This should work fine: Url relativeUrl =

Re: A few questions - upgrading from 1.5 to 6.19

2015-04-17 Thread Christopher Merrill
urlFor(...) returns a CharSequence, not a Url and there is no constructor for Url that accepted a String or CharSequence. So what I had tried was simply the string returned...and that was relative. But since you were confident, I took another look and found Url.parse(CharSequence). So this DOES

AttributeAppender

2015-04-17 Thread Lois GreeneHernandez
Is it possible to add an attributeappender for a label within a tabbedpanel? If so, how can I do this. Thanks Lois

Re: A few questions - upgrading from 1.5 to 6.19

2015-04-17 Thread Martin Grigorov
Hi, Check whether the browser makes an Ajax request to the server when you click the link. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Fri, Apr 17, 2015 at 11:20 PM, Christopher Merrill ch...@webperformance.com wrote: Thanks, Sven. I read that and I

Re: A few questions - upgrading from 1.5 to 6.19

2015-04-17 Thread Martin Grigorov
Use the browser's Dev Tools Network tab. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Fri, Apr 17, 2015 at 11:42 PM, Christopher Merrill ch...@webperformance.com wrote: The wicket ajax debug window reports nothing when I click Ajax links in either Chrome

Re: A few questions - upgrading from 1.5 to 6.19

2015-04-17 Thread Martin Grigorov
Then most probably some precondition stops the Ajax call from firing. Put a breakpoint at https://github.com/apache/wicket/blob/e07475cf989565bad53fd8dfcd5d109912ae6bef/wicket-core/src/main/java/org/apache/wicket/ajax/res/js/wicket-ajax-jquery.js#L603 and see what happens. Martin Grigorov Wicket

Re: A few questions - upgrading from 1.5 to 6.19

2015-04-17 Thread Christopher Merrill
The wicket ajax debug window reports nothing when I click Ajax links in either Chrome or Firefox. Is there somewhere else I should look for an indication of Ajax activity - somewhere in Wicket to set a breakpoint or logging to enable? BTW, That window is acting a little flakey for me - the move

RE: AttributeAppender

2015-04-17 Thread Lois GreeneHernandez
Hi Martin, Thanks for responding. I should have been more precise. I'm not using the wicket tabbedpanel. I'm using the jquery ui extension. The package is: com.googlecode.wicket.jquery.ui.widget.tabs.TabbedPanel. Thanks Lois -Original Message- From: Martin Grigorov

Re: A few questions - upgrading from 1.5 to 6.19

2015-04-17 Thread Christopher Merrill
Oh...uhhh...yeah. Gee, if I wasn't working on 3 things at once, I might have thought of that! I wish there was a user group that could help with _that_ problem :) So no, there is no traffic reported from either Chrome or Firefox network tabs after the initial page load. I tried with multiple

Re: AttributeAppender

2015-04-17 Thread Martin Grigorov
Then override https://github.com/sebfz1/wicket-jquery-ui/blob/ba2bdeaf8068c160a6e865341fc871dd43fd66b8/wicket-jquery-ui/src/main/java/com/googlecode/wicket/jquery/ui/widget/tabs/TabbedPanel.java#L274 :-) Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Sat, Apr

Radio group add ajax behavior

2015-04-17 Thread Chris
Hi all, I have a radio group with different radio choices and I would like to add ajax behavior to the group. With the method #AjaxFormChoiceComponentUpdatingBehavior, the #onUpdate is never called currently. How to fix this? Form form = new Form(form); RadioGroupRadioChoice radioGroup =

list view ajax update takes too much time

2015-04-17 Thread Chris
Hi all, I have a list view with about 100 objects. For updating the individual panels based on some user action, I am using the Broadcast.Breadth strategy. This works fine when the list contains a few objects, but with 100 objects it takes about 2 seconds to render the corresponding panel. I

Re: ClientProperties.getBrowserWidth() always returns -1

2015-04-17 Thread smallufo
2015-04-18 9:53 GMT+08:00 smallufo small...@gmail.com: getApplicationSettings().setUploadProgressUpdatesEnabled(true); typo It is *getRequestCycleSettings().setGatherExtendedBrowserInfo(true);* width is still -1

ClientProperties.getBrowserWidth() always returns -1

2015-04-17 Thread smallufo
I want to get width of the browser. in Application.init() , I add : getApplicationSettings().setUploadProgressUpdatesEnabled(true); And in a WebPage , I add : logger.info(init . width = {}, new WebClientInfo(getRequestCycle()).getProperties().getBrowserWidth()); but it always return -1 I