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
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




-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 not kept in the session and 
always up-to-date.


Have fun
Sven


On 17.04.2015 01:50, Chris wrote:

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




-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 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: 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))
{
object = createSerializableVersionOf(object);
}
this.object = object;
}



François Meillet





Le 17 avr. 2015 à 01:50, Chris chris...@gmx.at a écrit :

 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
 



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
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.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Paypal-Integration-in-Wicket-tp4670347.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: 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);
});
In all other browsers this is called only when we click on text not on
scroll bar.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/AutoComplete-suggestion-list-disappear-when-I-click-on-scrollbar-in-IE-tp4670222p4670349.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: 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 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




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();
 
as.addAll(method.retrieveAlist());
 
as.add(...);
 
return as;
}
 });
 
 Positive side effect: The list of object is not kept in the session and 
 always up-to-date.
 
 Have fun
 Sven
 
 
 On 17.04.2015 01:50, Chris wrote:
 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
 
 
 
 -
 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: 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 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 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 am wondering why this takes so much time as only 1 panel/object should be 
 updated and not different objects simultaneously.
 
 Does someone know a hint to speed up the rendering?
 
 Thanks, 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
 


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 is done to
hinder any man in the middle attack.


I also tried using the implementation like shown in
https://github.com/paypal/PayPal-Java-SDK, but it does not seem to redirect
to the paypal's website.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Paypal-Integration-in-wicket-tp4670325p4670351.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: 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 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 am wondering why this takes so much time as only 1 panel/object should be 
 updated and not different objects simultaneously.
 
 Does someone know a hint to speed up the rendering?
 
 Thanks, 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

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 mgrigo...@apache.org
wrote:

 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()




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, Lois GreeneHernandez 
lgreenehernan...@knoa.com wrote:

 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 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 registering a listener. But that doesn't tell me why my
onClick() code is not called.

This part of the article you linked:
  The good news is the client APIs are mostly the same and the application
developers will not need to change their applications.
seems to be indicating that I should not have to change my code - as the
IndicatingAjaxLink component (a wicket extension) or the AjaxLink should be
handling that. Am I wrong?

This page seems to indicate overriding onClick() for an AjaxLink is still
the way to go:
  https://wicket.apache.org/guide/guide/ajax.html

I feel like I'm missing something...

Chris





On Thu, Apr 16, 2015 at 3:59 PM, Sven Meier s...@meiers.net 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




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 = urlFor(...);
Url fullUrl = urlRenderer.renderFullUrl(relativeUrl);



 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 mgrigo...@apache.org
 wrote:

  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()
 
 



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 work for me:

Url relativeUrl = Url.parse(urlFor(...));
Url fullUrl = urlRenderer.renderFullUrl(relativeUrl);

Thanks a bunch!
Chris


On Fri, Apr 17, 2015 at 3:45 PM, Martin Grigorov mgrigo...@apache.org
wrote:

 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 = urlFor(...);
 Url fullUrl = urlRenderer.renderFullUrl(relativeUrl);




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 _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 registering a listener. But that doesn't tell me why my
 onClick() code is not called.

 This part of the article you linked:
   The good news is the client APIs are mostly the same and the application
 developers will not need to change their applications.
 seems to be indicating that I should not have to change my code - as the
 IndicatingAjaxLink component (a wicket extension) or the AjaxLink should be
 handling that. Am I wrong?

 This page seems to indicate overriding onClick() for an AjaxLink is still
 the way to go:
   https://wicket.apache.org/guide/guide/ajax.html

 I feel like I'm missing something...

 Chris





 On Thu, Apr 16, 2015 at 3:59 PM, Sven Meier s...@meiers.net 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, 

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 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 and resize
 don't work. Is that normal? If not, possibly related?

 TIA!
 Chris


 On Fri, Apr 17, 2015 at 4:27 PM, Martin Grigorov mgrigo...@apache.org
 wrote:

  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 _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 registering a listener. But that doesn't tell me why
 my
   onClick() code is not called.
  
   This part of the article you linked:
 The good news is the client APIs are mostly the same and the
  application
   developers will not need to change their applications.
   seems to be indicating that I should not have to change my code - as
 the
   IndicatingAjaxLink component (a wicket extension) or the AjaxLink
 should
  be
   handling that. Am I wrong?
  
   This page seems to indicate overriding onClick() for an AjaxLink is
 still
   the way to go:
 https://wicket.apache.org/guide/guide/ajax.html
  
   I feel like I'm missing something...
  
   Chris
  
  
  
  
  
   On Thu, Apr 16, 2015 at 3:59 PM, Sven Meier s...@meiers.net 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
   
   
  
 
 

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 Training and Consulting
https://twitter.com/mtgrigorov

On Sat, Apr 18, 2015 at 12:08 AM, Christopher Merrill 
ch...@webperformance.com wrote:

 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 different Ajax
 controls - they all exhibit the same behavior.


 So when we upgraded from 1.5 to 6.19, I just grabbed the latest versions of
 the JARs we already had in our build. We have a very manual build system
 (working on moving toward something with dependency management...maybe
 Gradle), so if there are new module dependencies beyond those obvious in
 the dependencies listed at mavenrepository, for example, I might be missing
 those. Could that be the cause?

 Here's what we have:
 joda-time-2.0.jar
 wicket-auth-roles-6.19.0.jar
 wicket-core-6.19.0.jar
 wicket-datetime-6.19.0.jar
 wicket-extensions-6.19.0.jar
 wicket-ioc-6.19.0.jar
 wicket-request-6.19.0.jar
 wicket-spring-6.19.0.jar
 wicket-util-6.19.0.jar
 wicketstuff-gae-initializer-6.19.0.jar
 wicketstuff-progressbar-6.19.0.jar

 TIA!
 Chris



 On Fri, Apr 17, 2015 at 4:48 PM, Martin Grigorov mgrigo...@apache.org
 wrote:

  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 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 and resize
   don't work. Is that normal? If not, possibly related?
  
   TIA!
   Chris
  
  
   On Fri, Apr 17, 2015 at 4:27 PM, Martin Grigorov mgrigo...@apache.org
 
   wrote:
  
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 _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 registering a listener. But that doesn't tell me
  why
   my
 onClick() code is not called.

 This part of the article you linked:
   The good news is the client APIs are mostly the same and the
application
 developers will not need to change their applications.
 seems to be indicating that I should not have to change my code -
 as
   the
 IndicatingAjaxLink component (a wicket extension) or the AjaxLink
   should
be
 handling that. Am I wrong?

 This page seems to indicate overriding onClick() for an AjaxLink is
   still
 the way to go:
   https://wicket.apache.org/guide/guide/ajax.html

 I feel like I'm missing something...

 Chris





 On Thu, Apr 16, 2015 at 3:59 PM, Sven Meier s...@meiers.net
 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,
  

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 and resize
don't work. Is that normal? If not, possibly related?

TIA!
Chris


On Fri, Apr 17, 2015 at 4:27 PM, Martin Grigorov mgrigo...@apache.org
wrote:

 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 _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 registering a listener. But that doesn't tell me why my
  onClick() code is not called.
 
  This part of the article you linked:
The good news is the client APIs are mostly the same and the
 application
  developers will not need to change their applications.
  seems to be indicating that I should not have to change my code - as the
  IndicatingAjaxLink component (a wicket extension) or the AjaxLink should
 be
  handling that. Am I wrong?
 
  This page seems to indicate overriding onClick() for an AjaxLink is still
  the way to go:
https://wicket.apache.org/guide/guide/ajax.html
 
  I feel like I'm missing something...
 
  Chris
 
 
 
 
 
  On Thu, Apr 16, 2015 at 3:59 PM, Sven Meier s...@meiers.net 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; 

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 [mailto:mgrigo...@apache.org] 
Sent: Friday, April 17, 2015 4:15 PM
To: users@wicket.apache.org
Subject: Re: AttributeAppender

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, Lois GreeneHernandez  
lgreenehernan...@knoa.com wrote:

 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 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 different Ajax
controls - they all exhibit the same behavior.


So when we upgraded from 1.5 to 6.19, I just grabbed the latest versions of
the JARs we already had in our build. We have a very manual build system
(working on moving toward something with dependency management...maybe
Gradle), so if there are new module dependencies beyond those obvious in
the dependencies listed at mavenrepository, for example, I might be missing
those. Could that be the cause?

Here's what we have:
joda-time-2.0.jar
wicket-auth-roles-6.19.0.jar
wicket-core-6.19.0.jar
wicket-datetime-6.19.0.jar
wicket-extensions-6.19.0.jar
wicket-ioc-6.19.0.jar
wicket-request-6.19.0.jar
wicket-spring-6.19.0.jar
wicket-util-6.19.0.jar
wicketstuff-gae-initializer-6.19.0.jar
wicketstuff-progressbar-6.19.0.jar

TIA!
Chris



On Fri, Apr 17, 2015 at 4:48 PM, Martin Grigorov mgrigo...@apache.org
wrote:

 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 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 and resize
  don't work. Is that normal? If not, possibly related?
 
  TIA!
  Chris
 
 
  On Fri, Apr 17, 2015 at 4:27 PM, Martin Grigorov mgrigo...@apache.org
  wrote:
 
   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 _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 registering a listener. But that doesn't tell me
 why
  my
onClick() code is not called.
   
This part of the article you linked:
  The good news is the client APIs are mostly the same and the
   application
developers will not need to change their applications.
seems to be indicating that I should not have to change my code - as
  the
IndicatingAjaxLink component (a wicket extension) or the AjaxLink
  should
   be
handling that. Am I wrong?
   
This page seems to indicate overriding onClick() for an AjaxLink is
  still
the way to go:
  https://wicket.apache.org/guide/guide/ajax.html
   
I feel like I'm missing something...
   
Chris
   
   
   
   
   
On Thu, Apr 16, 2015 at 3:59 PM, Sven Meier s...@meiers.net 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 - 

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 18, 2015 at 12:04 AM, Lois GreeneHernandez 
lgreenehernan...@knoa.com wrote:

 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 [mailto:mgrigo...@apache.org]
 Sent: Friday, April 17, 2015 4:15 PM
 To: users@wicket.apache.org
 Subject: Re: AttributeAppender

 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, Lois GreeneHernandez 
 lgreenehernan...@knoa.com wrote:

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



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 = new RadioGroupRadioChoice(group, new 
ModelRadioChoice() {...}

RadioRadioChoice radio1 = new RadioRadioChoice(radio1, new 
ModelRadioChoice(1));
RadioRadioChoice radio2 = new RadioRadioChoice(radio2, new 
ModelRadioChoice(2));
radioGroup.add(radio1);
radioGroupd.add(Radio2);

form.add(radioGroup);

radioGroup.add(new AjaxFormChoiceComponentUpdatingBehavior() {
protected void onUpdate(AjaxRequestTarget target) {
// Ajax actions here
}
});

Thanks, Chris
-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 am wondering why this takes so much time as only 1 panel/object should be 
updated and not different objects simultaneously.

Does someone know a hint to speed up the rendering?

Thanks, Chris


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 found no usage for *WebClientInfo.setBrowserWidth()* in the whole wicket
6.19.0

Is it a bug ?