Re: WicketWebjars dependency upgrading from 6.16 to 6.19

2015-05-09 Thread roddo
That helped, thanks. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/WicketWebjars-dependency-upgrading-from-6-16-to-6-19-tp4670668p4670684.html Sent from the Users forum mailing list archive at Nabble.com. -

Re: JS problem cannot find variable

2015-05-09 Thread Tobias Soloschenko
I suggest to use ResourceBundles and add all required libraries there. Less http calls and you are save that if you use a ResourceReference all required are also shipped: http://ci.apache.org/projects/wicket/guide/6.x/guide/resources.html#resources_7 You can also add some javascriptcompressors

Re: update visibility of resourcelink

2015-05-09 Thread Tobias Soloschenko
In your snippet you put the isVisible in the ByteArrayResource. That's why you get the error message - move it to your ResourceLink One easy way to update from parent would be: make a method in your panel which returns your link then make your panel a field in the parent and call the getter in

Re: update visibility of resourcelink

2015-05-09 Thread Chris
Hi, thanks, I am getting the message "method does not override method from its superclass." The problem is that I do not have the callback method in this panel but in its parent; I would need to have a getter method so that I can directly access the resource link from the panel instance and ch

Re: update visibility of resourcelink

2015-05-09 Thread Tobias Soloschenko
Yes - should work because isVisible is inherited from component: http://ci.apache.org/projects/wicket/apidocs/6.0.x/org/apache/wicket/markup/html/link/ResourceLink.html But watch out not to put in expensive calls in it! The user guide is also mentioning a lot about that topic: https://wicket.ap

Re: update visibility of resourcelink

2015-05-09 Thread Chris
Hi Tobias, thanks! Can the isVisible method be directly overridden also by a ResourceLink? ResourceLink pl = new ResourceLink(..) { protected boolean isVisible() {…} } Chris > Am 09.05.2015 um 19:46 schrieb Tobias Soloschenko > : > > Hi, > > the constructor of your panel is only called a

Re: update visibility of resourcelink

2015-05-09 Thread Tobias Soloschenko
Hi, the constructor of your panel is only called at a normal request - you have to set the visibility of your link in the ajax callback via AjaxRequestTarget. 1. setOutputMarkupId and setOutputMarkupPlaceholder of the link to true (in your constructor) 2. set the visibility to your component i

update visibility of resourcelink

2015-05-09 Thread Chris
Hi all, currently, the visibility of the resource link is not updated when the parent component of the panel is rendered again based on an ajax call. How can the visibility set dynamically based on the model’s data? Thanks, Chris public SomePanel(String id, final IModel> model) { super(id, m

Re: JS problem cannot find variable

2015-05-09 Thread Chris
Ok, I forgot to include another base JS library. BR Chris > Am 09.05.2015 um 16:56 schrieb Chris : > > Hi all, > > I have embedded a JS and getting the error message in Wicket Ajax Debug: > ERROR: FunctionsExecuter.processNext: ReferenceError: Can't find variable: _ > > The JS Script works st

MediaUploadField API

2015-05-09 Thread Tobias Soloschenko
Hi all, I just had some time and wanted to show a little MediaFileUpload API written for Image / Video / Audio capture. It uses normal input fields with accept and capture attributes. Here is the documentation: https://github.com/klopfdreh/wicket-components-playground/wiki See HTML5 MediaUpl

JS problem cannot find variable

2015-05-09 Thread Chris
Hi all, I have embedded a JS and getting the error message in Wicket Ajax Debug: ERROR: FunctionsExecuter.processNext: ReferenceError: Can't find variable: _ The JS Script works standalone, and I tried to integrate it both directly in the Wicket head section as well as via the #respondeHead. Do

Re: WicketWebjars dependency upgrading from 6.16 to 6.19

2015-05-09 Thread Timo Schmidt
On Sat 09.05.2015 06:03, roddo wrote: > > I was attempting a basic upgrade from 6.16 to 6.19, which I thought was a > simple drop in release. First I had a class not found exception for > WicketWebjars, so I added wicket-webjars-0.5.0.jar, but now I get > java.lang.NoSuchMethodError: > org.apache

Re: Possible to add a new component to a page using IComponentResolver ?

2015-05-09 Thread Andrea Del Bene
You are right. I'm afraid you can not do what you want in Wicket 6 because up to this version autocomponents (i.e those who are added during markup parsing) are removed after rendering phase. That's why your link doesn't find its component. With Wicket 7 autocomponents are no more removed and y

WicketWebjars dependency upgrading from 6.16 to 6.19

2015-05-09 Thread roddo
Hi, I was attempting a basic upgrade from 6.16 to 6.19, which I thought was a simple drop in release. First I had a class not found exception for WicketWebjars, so I added wicket-webjars-0.5.0.jar, but now I get java.lang.NoSuchMethodError: org.apache.wicket.protocol.http.WebApplication.setMetaDa