Re: Form not displaying messages correctly

2013-04-28 Thread Martin Grigorov
Hi, On Sat, Apr 27, 2013 at 11:29 PM, Taro Fukunaga wrote: > I have a FencedFeedbackPanel inside a form but when I try to display a > message, the form closes and the message is displayed on the main page > instead of in my form. The form is in turn inside a modal window (see > hierarchy below).

Re: Disabling Individual Checkboxes in CheckGroup

2013-04-28 Thread Igor Vaynberg
On Fri, Apr 26, 2013 at 8:39 AM, eugenebalt wrote: > Igor, > > The problem is, you do check.setEnabled(false) in *ListView.populateItem()* > for a CheckGroup control. so? > This method executes AFTER the Ajax update. It's too late to do > check.setEnable(false) on the render of the CheckGroup's

Session timeout

2013-04-28 Thread souvikbhattacharyas
Hi, Recently Wicket put me in another problem of Session out. In normal web application what we do is simply declare session-timeout in web. xml and it works fine for us. But in wicket specifying session timeout in web.xml is not working anymore. But I need session time out for my application ba

Re: Session timeout

2013-04-28 Thread Martin Grigorov
Hi, Wicket doesn't manage the timeout. What whatever is specified in web.xml it is used. Make sure there are no requests and the session will expire. On Sun, Apr 28, 2013 at 9:10 PM, souvikbhattacharyas < souvikbhattachar...@gmail.com> wrote: > Hi, >Recently Wicket put me in another problem

Re: Session timeout

2013-04-28 Thread souvikbhattacharyas
Hi, In my web.xml I specified session timeout the way we usuallly do with other web application but still its not working. Is ther any other settings. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Session-timeout-tp4658356p4658358.html Sent from the Users forum

Re: Session timeout

2013-04-28 Thread Martin Grigorov
no On Sun, Apr 28, 2013 at 9:30 PM, souvikbhattacharyas < souvikbhattachar...@gmail.com> wrote: > Hi, > In my web.xml I specified session timeout the way we usuallly do with > other web application but still its not working. Is ther any other > settings. > > > > -- > View this message in con

Re: Session timeout

2013-04-28 Thread souvikbhattacharyas
Then its really shocking that it's not working for me. I am attaching my web.xml below. protected /* TRACE PUT OPTIONS DELETE 30 wicket.ssp org.atm

Re: Disabling Individual Checkboxes in CheckGroup

2013-04-28 Thread eugenebalt
Paul: The Check is constructed *inside populateItem()*. This is already too late, my output shows this happens after the Ajax ecent. There is no way to construct a Check outside the populateItem, as far as I know. This is how Checks are used: CheckGroup cg = new CheckGroup("apps"); add(cg); ListV

Re: Session timeout

2013-04-28 Thread Martin Grigorov
There is no WicketFilter here. You use Atmosphere, and I guess you have atmosphere.xml that specifies the delegation to WicketFilter. I suggest you to create a quickstart with Wicket only and test it. If it works then ask in Atmosphere forums. If it doesn't then create a ticket and attach your ap

Re: Form not displaying messages correctly

2013-04-28 Thread Taro Fukunaga
Thanks Martin. I changed my code from Button to AjaxButton. But now when I try to validate some input I'm not getting any value. public class MyFormValidator extends AbstractFormValidator implements Serializable { @Override public void validate( Form form ) { Integer

Re: Form not displaying messages correctly

2013-04-28 Thread Martin Grigorov
Hi, Give more information what you want to do. Show us some more code too. On Sun, Apr 28, 2013 at 9:55 PM, Taro Fukunaga wrote: > Thanks Martin. > > I changed my code from Button to AjaxButton. But now when I try to validate > some input I'm not getting any value. > > public class MyFormValid

Re: Form not displaying messages correctly

2013-04-28 Thread Taro Fukunaga
When validation fails I need to display a validation error message in the ModalWindow. This code is from my validator. public class MyValidator extends AbstractFormValidator implements Serializable { private final TextField textField; public MyValidator( TextField textField ) {

Re: Disabling Individual Checkboxes in CheckGroup

2013-04-28 Thread eugenebalt
Here is the full code. This is an urgent problem so any advice much appreciated. ISSUE: Cannot enable/disable Checks in an Ajax update, their state remains the same. The Checks in the CheckGroup are supposed to change depending on a DropDown change. 1) On Page Construction, all Checks in the Che

Re: Form not displaying messages correctly

2013-04-28 Thread Martin Grigorov
You don't need FormValidator for this. A plain IValidator will do the job. FormValidator should be used when you need to make some more complex validation which involves several form components. So just do: TextField textField = new TextField<>("someId", someModel, Integer.class); textField.add(n

Re: Disabling Individual Checkboxes in CheckGroup

2013-04-28 Thread Sven Meier
Hi, >1) None of the checkboxes changes state after the Ajax update (but the Ajax request is processed) You're calling #setRenderBodyOnly(false) too late. By default CheckGroup does not render its tag, so you have to enable it for Ajax updates *before* it is rendered: final CheckGroup app

Re: Overriding markup loading results in errors with inheritance

2013-04-28 Thread mazabel
Thank you for your reply. The Wicket help describes how to change the file location the markup is loaded from. Since some of the markup files will eventually be loaded from a data base, simply adding another resource folder is not sufficient. I need to override ResourceStreamLocator and return a

Re: Form not displaying messages correctly

2013-04-28 Thread Taro Fukunaga
If I just try to get the value from the field, I see that the value is null. textInput = new TextField( "textInput", new IModel() { @Override public void detach() { // TODO Auto-generated method stub } @Override

"Authorization" header in http

2013-04-28 Thread Gonzalo Aguilar Delgado
Hello, I'm using AuthenticatedWebApplication class to manage my login and roles. While it works well I want wicket to set the "Authorization" http header each time it does a request. I don't really know if this makes sense. The application is currently working in this context http://localhos

Re: Form not displaying messages correctly

2013-04-28 Thread Martin Grigorov
Here is an example of Ajax form submit: http://www.wicket-library.com/wicket-examples-6.0.x/ajax/form On Mon, Apr 29, 2013 at 1:56 AM, Taro Fukunaga wrote: > If I just try to get the value from the field, I see that the value is >

Re: "Authorization" header in http

2013-04-28 Thread Martin Grigorov
Hi, See http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html, p. 14.8. The "Authorization" header is a _request_ header. I.e. the user agent should set it. Wicket can set _response_ headers. An exception is Ajax request where Wicketcan set request headers. Your use case sounds like normal sessi

Re: Overriding markup loading results in errors with inheritance

2013-04-28 Thread Martin Grigorov
Hi, Please create a quickstart and attach it to a ticket in Jira. I'm interested to see what breaks. Thanks! On Mon, Apr 29, 2013 at 1:02 AM, mazabel wrote: > Thank you for your reply. > > The Wicket help describes how to change the file location the markup is > loaded from. > > Since some of