How to add checkboxes with AJAX?

2014-09-10 Thread brushmate
Hi, I am trying to write a FormComponentPanel that displays a list of checkboxes, a textfield and a button. It shall return the selected values. I want to use the textfield and the button to add new checkboxes dynamically using AJAX. I used a CheckGroup together with a ListView to render the

Re: How to add checkboxes with AJAX?

2014-09-10 Thread brushmate
This is what it should look like: http://apache-wicket.1842946.n4.nabble.com/file/n4667453/formcomponentpanel1.png http://apache-wicket.1842946.n4.nabble.com/file/n4667453/formcomponentpanel2.png http://apache-wicket.1842946.n4.nabble.com/file/n4667453/formcomponentpanel3.png -- View this

How to register a global resource with dependencies?

2014-09-09 Thread brushmate
Hi,I want to register a JS file globally, but it depends on jQuery. The user guide says that rsources can be registered with getSharedResources().add(String name, IResource resource). But since it takes an IResource, I can not declare the dependencies with overriding getDependencies() like I would

Re: How to register a global resource with dependencies?

2014-09-09 Thread brushmate
Thanks for your answer. So everytime I want to reference a resource, I have to declare its dependencies? I want to register it globally, because I can use it on different pages then and if the path to the resource changes in the future, I only need to update it at one place. -- View this message

Re: How to register a global resource with dependencies?

2014-09-09 Thread brushmate
Okay, then I have another question: Where do I have to define the references. Until now, I always defined them in the component that needs them. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-register-a-global-resource-with-dependencies-tp4667403p4667411.html

Re: AjaxFormComponentUpdatingBehavior is not working

2014-08-06 Thread brushmate
This is the produced HTML for selSupplier: lt;select name=parameterPanel:selSupplier id=selSupplier9gt; lt;option value=0gt;Supplier 0lt;/optiongt; lt;option value=1gt;Supplier 1lt;/optiongt; lt;option value=2gt;Supplier 2lt;/optiongt;lt;option value=3gt;Supplier 3lt;/optiongt;

Re: AjaxFormComponentUpdatingBehavior is not working

2014-08-06 Thread brushmate
No I do not use any Decorator. I have another page where I am using an AjaxSelfUpdatingTimerBehavior which updates the contents of the page periodically. All components of this page are in the same project. The page is working and updates its contents every 2 seconds. Also the lt;scriptgt; tags

Re: AjaxFormComponentUpdatingBehavior is not working

2014-08-06 Thread brushmate
I have done a terrible mistake... I have been working on an old file that actually was not invoked in the current version of the webapp. Everything is working as expected. I am so sorry for wasting your time :-( Thank you very much for trying to help me anyways. Once again sorry! -- View this

AjaxFormComponentUpdatingBehavior is not working

2014-08-05 Thread brushmate
I am building a webapp based on Wicket. I have a WebPage that contains a StatelessForm which contains a FormComponentPanel. The FormComponentPanel is provided by a different library. This works fine without any AJAX-stuff. But now I want to react to onchange-events of a DropDownChoice and thus I

Re: AjaxFormComponentUpdatingBehavior is not working

2014-08-05 Thread brushmate
at 1:58 PM, brushmate [hidden email] http://user/SendEmail.jtp?type=nodenode=4666878i=0 wrote: I am building a webapp based on Wicket. I have a WebPage that contains a StatelessForm which contains a FormComponentPanel. The FormComponentPanel is provided by a different library. This works