Re: Wicket Content Parameters

2013-08-14 Thread Cedric Gatay
Hi there, I finally open sourced the tool and added a few options as my team requested internally : failing build if key count mismatch (overridable via a property) and outputting empty property values to the console while building. You can find it here :

[OT] thanks

2013-08-14 Thread Pierre Goupil
Good morning, All apologies for this totally off-topic message, but I would like to say a big THANK YOU to Emond for his work on wicket-atmosphere. His code is far from trivial, yet it is a real pleasure to use it. According to me, the killer-feature is the fact that we have an AjaxRequestTarget

Rendering conditional html tags for IE CSS targetting

2013-08-14 Thread Robert Gründler
Hi, i'm trying to use the markup provided by html5 boilerplate: http://html5boilerplate.com/ They use !--[if lt IE 7] ![endif]-- comments to render different opening html tags for different versions of Internet Explorer, easing CSS selectors for IE. Here's how it looks like:

Re: Rendering conditional html tags for IE CSS targetting

2013-08-14 Thread Martin Grigorov
https://issues.apache.org/jira/browse/WICKET-3433 On Wed, Aug 14, 2013 at 2:17 PM, Robert Gründler r.gruend...@gmail.comwrote: Hi, i'm trying to use the markup provided by html5 boilerplate: http://html5boilerplate.com/ They use !--[if lt IE 7] ![endif]-- comments to render different

Re: wicket-atmosphere EventBus.post throwing Null pointer exception sometime

2013-08-14 Thread souvikbhattacharyas
Thanks, Let me try to generate the error. But it's quite shocking that before mentioning the error number, it was open and after mention suddenly you can not re produce. May be in small application it can not be reproduce but in large production it can. Over net you will find few others also get

Re: wicket-atmosphere EventBus.post throwing Null pointer exception sometime

2013-08-14 Thread Martin Grigorov
Hi, I closed the ticket because the reporter didn't provide us (the Wicket developers) with an application that reproduces the problem for a long period. As soon such application is attached to the ticket the ticket will be reopened and addressed. Please feel free to attach a quickstart

Updating form fields on dropdown selection change

2013-08-14 Thread Lucio Crusca
I have a DropDownChoice that should update some form fields when the user selects an item. My selection-changed-listener code is along the lines of: form.modelChanging(); T obj = model.getObject(); obj.setFoo(newSelection.getFoo()); obj.setBar(newSelection.getBar()); form.modelChanged();

Re: [OT] thanks

2013-08-14 Thread Emond Papegaaij
Hi Pierre, Good to hear you like it! Unfortunately, we are still waiting for the rest of the server stack to support websockets before we can actually use it in production applications. Hopefully, with the release of jee7 (with jsr356) maintainers of httpd and ajp will finally realize they

Re: [OT] thanks

2013-08-14 Thread Pierre Goupil
I use only Tomcat (7.0.40) and I must admit that with NIO connector and useNative=true, the performance looks nice. I have no use for an httpd for the moment, but I'm not in production. I plan to load test my app, if you're interested, I can communicate the results to you. As a side-note, on the

Re: [OT] thanks

2013-08-14 Thread Dan Retzlaff
Have you considered nginx? We use httpd but our reverse-proxying needs are pretty simple. I've been meaning to try nginx. http://nginx.org/en/docs/http/websocket.html On Wed, Aug 14, 2013 at 7:42 AM, Pierre Goupil goupilpie...@gmail.comwrote: I use only Tomcat (7.0.40) and I must admit that

Re: Rendering conditional html tags for IE CSS targetting

2013-08-14 Thread Nick Pratt
The workaround we use is to have multiple html close tags: !--[if lt IE 7]/html![endif]-- !--[if IE 7]/html![endif]-- !--[if IE 8]/html![endif]-- !--[if gt IE 8]!--/html!--![endif]-- On Wed, Aug 14, 2013 at 7:17 AM, Robert Gründler r.gruend...@gmail.comwrote: Hi, i'm trying to use the

Re: [OT] thanks

2013-08-14 Thread Emond Papegaaij
We depend heavily on ajp. Our application server needs to know the exact url the request was made to. This is very hard to get right with plain http proxying (if not impossible). The main reason we use httpd in front of our application server(s) is for load balancing and status information

Checkboxes automatically disabled in ListView repeater

2013-08-14 Thread eugenebalt
We have a Panel which contains a WebMarkupContainer which contains a ListView repeater. The ListView repeats rows of 3 checkboxes; its populateItem is: protected void populateItem(ListItemEDocsPermissionModel item) { EDocsPermissionModel perm = item.getModelObject(); CheckBox cb1 = new

Re: Checkboxes automatically disabled in ListView repeater

2013-08-14 Thread Sven Meier
Do you have the disabled attribute in your markup source? Sven On 08/14/2013 04:08 PM, eugenebalt wrote: We have a Panel which contains a WebMarkupContainer which contains a ListView repeater. The ListView repeats rows of 3 checkboxes; its populateItem is: protected void

Re: Checkboxes automatically disabled in ListView repeater

2013-08-14 Thread eugenebalt
YES. That was the exact issue. Thanks Sven. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Checkboxes-automatically-disabled-in-ListView-repeater-tp4660888p4660890.html Sent from the Users forum mailing list archive at Nabble.com.

Dead link on Wicket's home page

2013-08-14 Thread Paul Bors
On the home page the Apache Wicket 6.9.1 released http://wicket.apache.org/2013/07/10/wicket-6.9.1-released+copy.html link points to http://wicket.apache.org/2013/07/10/wicket-6.9.1-released+copy.html which is a 404. ~ Thank you, Paul Bors

RE: Updating form fields on dropdown selection change

2013-08-14 Thread Paul Bors
Take a look at how one drop-down updates the other via Ajax in the Wicket Examples at: http://www.wicket-library.com/wicket-examples/ajax/choice I suggest you do something similar instead of trying to re-implement part of the form processing in your code. Besides, what is going to happen when

RE: Breadcrumbs in TabbedPanel

2013-08-14 Thread Paul Bors
I suppose you're using the breadcrumbs from the wicket-extensions as per this Wicket Library example: http://www.wicket-library.com/wicket-examples/breadcrumb Then see the API for the getActive() method of the IBreadCrumbModel:

Use Wicket as a REST API

2013-08-14 Thread robianmcd
I need Wicket to respond to a post request from AngularJS. I set up a page in wicket like this but the request parameters are always empty @MountPath(value = /api/my/rest/url) public class MyPostHandler extends SecureWebPage { public MyPostHandler () { final

Forcing Form Validation from another Form's onValidate()

2013-08-14 Thread eugenebalt
I have a Panel (P1) which contains its own form (P1_F1). The P1 panel also contains another panel inside itself, P1_A, which has its own inner form (let's call it P1_A_F1). Whenever the P_F1's validation is called, I also have to call the P1_A_F1 form validation. It doesn't get called

RE: Forcing Form Validation from another Form's onValidate()

2013-08-14 Thread Paul Bors
Have you checked the Wiki pages? https://cwiki.apache.org/confluence/display/WICKET/Nested+Forms Which use-case are your referring to again? ~ Thank you, Paul Bors -Original Message- From: eugenebalt [mailto:eugeneb...@yahoo.com] Sent: Wednesday, August 14, 2013 2:20 PM To:

Re: Use Wicket as a REST API

2013-08-14 Thread robianmcd
I found that this works but I'm not sure if there is a better way of doing this: @MountPath(value = /api/my/rest/url) public class MyPostHandler extends SecureWebPage { public MyPostHandler () { final WebRequest webRequest = (WebRequest) getRequest(); final HttpServletRequest rawRequest

RE: Updating form fields on dropdown selection change

2013-08-14 Thread Lucio Crusca
Take a look at how one drop-down updates the other via Ajax in the Wicket Examples at: http://www.wicket-library.com/wicket-examples/ajax/choice Thanks for the suggestion, that code looks good. However I don't understand a number of things: 1. where wicket is made aware of the fact that the

RE: Updating form fields on dropdown selection change

2013-08-14 Thread Paul Bors
1. where wicket is made aware of the fact that the target is actually the models dropdown and not something else in the form? I'm not sure I understand this question but I think the answer you're looking for is: because it has a behavior attached to a component to which you can gain access to

RE: Updating form fields on dropdown selection change

2013-08-14 Thread Lucio Crusca
I wrote: 2. the constructor 'new AjaxFormComponentUpdatingBehavior(onchange)' does not seem to exist in Wicket 6. Can I just use the no args constructor? Please ignore this one, I was using AjaxFormChoiceComponentUpdatingBehavior instead by mistake.

RE: Updating form fields on dropdown selection change

2013-08-14 Thread Lucio Crusca
1. where wicket is made aware of the fact that the target is actually the models dropdown and not something else in the form? I'm not sure I understand this question but I think the answer you're looking for is: because it has a behavior attached to a component to which you can gain access

RE: Forcing Form Validation from another Form's onValidate()

2013-08-14 Thread eugenebalt
In the final HTML, my form is flattened out, there is only Form. In my Wicket markup, the structure is: PANEL - FORM - SecondPanel - SecondForm The main PANEL's FORM is being submitted, and validated. But the SecondForm validation never gets called. -- View this message in context:

RE: Forcing Form Validation from another Form's onValidate()

2013-08-14 Thread Paul Bors
In the final HTML, my form is flattened out, there is only Form. That's because Wicket supports nested forms but HTML does not. Wicket will hide any inner form tags but keep the Form object references. See section 10.5 Nested Forms of the Wicket Free Guide for more details.

Re: Use Wicket as a REST API

2013-08-14 Thread Bas Gooren
Hi, Yes, what you are doing is a perfectly ok way to handle this. Optionally you could use a shared resource for this, but I say that's just a matter of preference. We use something inspired by https://code.google.com/p/wicket-rest/ This gives you some abstraction over the json (or xml/...)

Re: wicketstuff-lazymodel and wicket-bean-validation

2013-08-14 Thread Sven Meier
Hi Gabriel, LazyModel implements IPropertyReflectionAwareModel now, so integration with beanvalidation should work out-of-the-box with the next release. Best regards Sven On 08/13/2013 09:40 PM, Gabriel Landon wrote: The previous code was flawed. Here's the right one! It's far from perfect