Re: AjaxLazyLoadingPanel finished event?

2012-12-07 Thread Martin Grigorov
Hi, Indeed there is no explicit method for this. The only way I see is to override org.apache.wicket.extensions.ajax.markup.html.AjaxLazyLoadPanel#getLoadingComponent and use getRequestCycle().find(AjaxRequestTarget.class) to get the target and use it. Please file a ticket for improvement. On

Re: WebSockets questions

2012-12-07 Thread Martin Grigorov
Hi Maxim, Please create a quickstart and attach it to a ticket in Jira. Try to expose as many problems as you can with it. On Thu, Dec 6, 2012 at 6:14 PM, Maxim Solodovnik solomax...@gmail.comwrote: Hello, I'm trying to add WebSocketBehavior to our project (Apache Openmeetings Incubating)

Re: AjaxLazyLoadingPanel finished event?

2012-12-07 Thread Ernesto Reinaldo Barreiro
Martin. Wouldn't AjaxRequestTarget.get() work as well? On Fri, Dec 7, 2012 at 9:22 AM, Martin Grigorov mgrigo...@apache.orgwrote: Hi, Indeed there is no explicit method for this. The only way I see is to override

Re: Conditional JS includes

2012-12-07 Thread Martin Grigorov
You can also use TextTemplate(s) to construct/concat the JS dynamically. On Fri, Dec 7, 2012 at 12:51 AM, Nick Pratt nbpr...@gmail.com wrote: I currently have a single javascript file in a custom Behavior that Id like to conditionally include sections of depending on provided user options.

Re: AjaxLazyLoadingPanel finished event?

2012-12-07 Thread Martin Grigorov
AjaxRequestTarget.get() is the API for Wicket 1.5 In Wicket 6 ART is an interface and there is no way to have static method, so getRequestCycle().find(IRequestHandler.class) is introduced. It can be used for any impl of IRequestHandler, not just AjaxRequestTarget. On Fri, Dec 7, 2012 at 9:27 AM,

Re: AjaxLazyLoadingPanel finished event?

2012-12-07 Thread Ernesto Reinaldo Barreiro
Thanks for explanation! On Fri, Dec 7, 2012 at 9:32 AM, Martin Grigorov mgrigo...@apache.orgwrote: AjaxRequestTarget.get() is the API for Wicket 1.5 In Wicket 6 ART is an interface and there is no way to have static method, so getRequestCycle().find(IRequestHandler.class) is introduced. It

RE: Model is null after submit, using FormComponentPanel

2012-12-07 Thread Raul
Here is the example to prove it's package it and deploy it in an application server. http://ul.to/ymfabds0 -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Model-is-null-after-submit-using-FormComponentPanel-tp4654441p4654586.html Sent from the Users forum mailing

Re: AjaxLazyLoadingPanel finished event?

2012-12-07 Thread Ernesto Reinaldo Barreiro
Martin. Would it make sense to add class /** * Instance finder. * */ public static final class Instance { /** * * @return The instance of AjaxRequestTarget. */ public static AjaxRequestTarget get() { return RequestCycle.get().find(AjaxRequestTarget.class); } } to

Re: AjaxLazyLoadingPanel finished event?

2012-12-07 Thread Martin Grigorov
No one asked for such API so far. When we did it with RequestCycle.get().find(AjaxRequestTarget.class) several Wicket devs agreed on this API. On Fri, Dec 7, 2012 at 10:56 AM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Martin. Would it make sense to add class /** *

Re: AjaxLazyLoadingPanel finished event?

2012-12-07 Thread Ernesto Reinaldo Barreiro
Yes I understand that... but IMHO it would certainly help migrating as you would only need to insert .Instance to get your old code working. On Fri, Dec 7, 2012 at 11:16 AM, Martin Grigorov mgrigo...@apache.orgwrote: No one asked for such API so far. When we did it with

Re: AjaxLazyLoadingPanel finished event?

2012-12-07 Thread Martin Grigorov
This change is properly documented in the migration guide and as I said so far no one complained :-) Your suggestion sounds like a helper for the migration which we wont be able to remove in the future. On Fri, Dec 7, 2012 at 11:33 AM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Yes

Re: AjaxLazyLoadingPanel finished event?

2012-12-07 Thread Ernesto Reinaldo Barreiro
Martin, On Fri, Dec 7, 2012 at 11:39 AM, Martin Grigorov mgrigo...@apache.orgwrote: This change is properly documented in the migration guide and as I said so far no one complained :-) Your suggestion sounds like a helper for the migration which we wont be able to remove in the future.

Re: Mounting of ConcatResourceBundleReference in a WebPage

2012-12-07 Thread aws0934
Hi Martin, I do not know how to use IRequestMapper to achieve my goal and could not find a suitable example. Do you know where I can find one? Basically, I just want to remove the package name from my CSS-/JS-URLs (ConcatResourceBundleReferences) so that for instance

Re: Model is null after submit, using FormComponentPanel

2012-12-07 Thread Sven Meier
Hi Raul, there are a few things to improve here: - in your case you don't need to extend FormComponentPanel - if you really want to control the textField's inputName, you have to let the component know about it - usage of models could be improved. See here for some ideas:

Re: Model is null after submit, using FormComponentPanel

2012-12-07 Thread Raul
Thanks, your suggestion solved my problem. Greetings from Spain. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Model-is-null-after-submit-using-FormComponentPanel-tp4654441p4654594.html Sent from the Users forum mailing list archive at Nabble.com.

Re: Conditional JS includes

2012-12-07 Thread Nick Pratt
Do TextTemplate's aggregate, and can that aggregate be provided as a single Resource? N On Fri, Dec 7, 2012 at 3:28 AM, Martin Grigorov mgrigo...@apache.orgwrote: You can also use TextTemplate(s) to construct/concat the JS dynamically. On Fri, Dec 7, 2012 at 12:51 AM, Nick Pratt

table header not rendered correctly

2012-12-07 Thread appwicket
Hi all, I have a List of String for my table: final ListString title2 = Arrays.asList(1,2,3,4,5,6,7,8,9,10,11,12,13,14); WebMarkupContainer datacontainer = new WebMarkupContainer(data); datacontainer.add(new ListView(title2, title2 ) { private static final long

Re: Conditional JS includes

2012-12-07 Thread Jeremy Thomerson
You could use if/else blocks in your text templates. On Friday, December 7, 2012, Nick Pratt wrote: Do TextTemplate's aggregate, and can that aggregate be provided as a single Resource? N On Fri, Dec 7, 2012 at 3:28 AM, Martin Grigorov mgrigo...@apache.orgjavascript:; wrote: You can

RE: table header not rendered correctly

2012-12-07 Thread Paul Bors
Your HTML didn't come through. Maybe your e-mail client is blocking it? If you want to use an HTML table, why not use a DataTable along with its HeaderToolbar instead of a simple ListView repeater? See the repeaters at: http://www.wicket-library.com/wicket-examples/index.html ~ Thank you,

Create/Edit domain object data

2012-12-07 Thread Nick Pratt
Im looking for recommendations on how to work with Form data and a JPA/Hibernate model, specifically around creating and editing domain data. I have a JPA backed domain model, and I want to create a page/panel/form that allows entry of a new Foo, as well as being able to pass an existing LDMFoo

Re: Create/Edit domain object data

2012-12-07 Thread Nick Pratt
As a followup, Ive used both approaches - although we tended to wrap the non-persisted entity inside a DomainLDM N On Fri, Dec 7, 2012 at 1:14 PM, Nick Pratt nbpr...@gmail.com wrote: Im looking for recommendations on how to work with Form data and a JPA/Hibernate model, specifically around

what is Wicket 2.x?

2012-12-07 Thread Lucio Crusca
Hello *, while reading this page https://cwiki.apache.org/WICKET/working-with-wicket-models.html I stumbled upon the following sentence: «NOTE: this page is about models like they exist for Wicket 1.x. The IModel interface is slightly changed in Wicket 2.x» What version of Wicket is 2.x? I'm

Re: what is Wicket 2.x?

2012-12-07 Thread Pierre Goupil
Good evening, It's an old experiment which was due to go to ready for prime-time but never succeeded. If I remember correctly, it was before what became Wicket 1.3. Regards, Pierre On Fri, Dec 7, 2012 at 7:47 PM, Lucio Crusca lu...@sulweb.org wrote: Hello *, while reading this page

Re: what is Wicket 2.x?

2012-12-07 Thread Jeremy Thomerson
Yep. There was a big change to constructors IIRC, although I can't remember exactly what the change was. Next came 1.3.0 with generics. -- Jeremy Thomerson http://wickettraining.com *Need a CMS for Wicket? Use Brix! http://brixcms.org* On Fri, Dec 7, 2012 at 12:55 PM, Pierre Goupil

Listview Checkbox checked by default and disapearing after submit

2012-12-07 Thread Pat
Hi, I have searched for this problem and read many entries but I can't seem to figure it out. I have two problems: 1. When instantiate my ListView with Check checkboxes they are always checked by default. I can't manage to uncheck them by default. 2. Once I have chosen items from my list via

Re: Listview Checkbox checked by default and disapearing after submit

2012-12-07 Thread Sven Meier
this.checkGroup = new CheckGroup(checkgroup, new CompoundPropertyModel(this.someList)); ... this.listView = new ListViewString[](someList, new CompoundPropertyModel(this.someList)) Do you really want the list to iterate over the checked items only? I'd expect these components to use different