WICKET-4387: StringIndexOutOfBoundsException when forwarding requests

2012-07-04 Thread W Mazur
Hi,
Wicket-4387 is marked as resolved (on May 18), but there are notes
from July 20th, that the issue is still reproducible on 1.5.7.
We've got very similar issue ( exactly the same exception stack when
ERROR and REQUEST dispatchers are in web.xml
and an  tag is used in web.xml ), so I'd like to know
whether this issue is solved or not.

Regards
Wlodek

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Suppress Ajax ComponentNotFoundException

2012-06-25 Thread W Mazur
I would  try to add WindowClosedCallback to Modal Window and remove
behavior(s) in that callback (unless you are going to reuse that
ModalWindow).

Another option: try to override Behavior's canCallListenerInterface()

Regards
Wlodek

2012/6/25 Alex Grant :
> I have a problem that shows up intermittently (and never when I try to 
> reproduce it).
>
> We have ModalWindows that contain fields with associated 
> AjaxFormComponentUpdatingBehaviors on the onblur event. These work great 
> while the ModalWindow is open but sometimes events are received out of 
> sequence and we get an update event firing after ModalWindow is closed. 
> Wicket the throws a ComponentNotFoundException and the users sees the error 
> page.
>
> Is there some way I can prevent these happening, or at least suppress them? 
> All the field values will have been submitted when the ModalWindow was closed 
> so the extra update event can be safely ignored.
>
> Thanks
>
> Alex Grant.
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Single page wicket app

2012-05-15 Thread W Mazur
I would add Wicket Session size.
See: http://www.small-improvements.com/blog/technical/tuning-wicket-session-size

Regards

2012/5/15 Jürgen Lind :
> What do you mean by "large"? Many users or many dialogs/components? I have
> developed
> three more or less (which means that a new page was only needed when
> basically the entire
> structure changed - which occured seldomly) single page apps with wicket and
> I have not
> run into real problems. But as Martin mentiones in the next post, the
> Back-Bitton support
> is mostly gone...
>
> J.
>
>
> On 15.05.2012 18:06, bobj wrote:
>>
>> We are creating a large single page wicket based application using tabs
>> and
>> ajax to replace portions of the page when needed.
>>
>> Does anyone know of any large single page wicket apps out there, or any
>> issues we need to address?
>>
>> thanks!
>>
>> --
>> View this message in context:
>> http://apache-wicket.1842946.n4.nabble.com/Single-page-wicket-app-tp4634756.html
>> Sent from the Users forum mailing list archive at Nabble.com.
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Need help in implementing Ajax form

2012-05-14 Thread W Mazur
Hi,
-  Use Firefox with Firebug to track down client-server comunication
(or lack of it) - Do you have javascript enebled? If terget == null
then nothing happens in onSubmit() method.
- Add some logging (log4j etc.), to your app

Regards
Wlodek

2012/5/14 Sebastien :
> And the WICKET AJAX DEBUG mark appears as soon as you are dealing with
> wicket ajax component. It is not displayed anymore when your configuration
> changes from "development" to "deployment" (web.xml)
>
> On Mon, May 14, 2012 at 9:47 PM, Sebastien  wrote:
>
>> Hi kshitiz,
>>
>> Well, looking at the code as-is does not make me understand what is going
>> wrong. I mean, it should go until onSubmit(). For you implementation, I can
>> just notice that you did not reattach any feedback panel to the target.
>> Maybe you do not see the error (but if it happens, you can see it in the
>> console as "Component feedback message was left unrendered..."); and you
>> changed the reference to the userDomain object. the model is then not
>> sync. You need to do something like loginForm.setModelObject(userDomain).
>> Mark the form as final to be able to access it from the anonymous method
>> onSubmit.
>>
>> But apart from that, I just would like to tell you that if you need an
>> authentication mechanism, you'll probably better have to use the
>> wicket-auth-roles.
>> All you need to know is here:
>> http://wicket.apache.org/learn/projects/authroles.html
>>
>> Regards,
>> Sebastien
>>
>> On Mon, May 14, 2012 at 8:10 PM, kshitiz  wrote:
>>
>>> Hi,
>>>
>>> I am trying to learn Ajax in Wicket and implement it in my project. I am
>>> trying to use AjaxFallbackButton but there is something I am missing. Here
>>> is my code:
>>>
>>> StatelessForm loginForm = new StatelessForm(
>>>                                "loginForm", new
>>> CompoundPropertyModel(userDomain));
>>>
>>>
>>> AjaxFallbackButton ajaxSubmitButton = new AjaxFallbackButton(
>>>                                "ajaxSubmitButton", loginForm) {
>>>
>>>                        /**
>>>                         *
>>>                         */
>>>                        private static final long serialVersionUID = 1L;
>>>
>>>                        @Override
>>>                        protected void onSubmit(AjaxRequestTarget target,
>>> Form form) {
>>>
>>>                                if(target!=null){
>>>                                UserService userService = new
>>> UserService();
>>>                                try {
>>>                                        userDomain =
>>> userService.login(emailIdTextField.getValue(),
>>>
>>>  passwordTextField.getValue());
>>>                                } catch (Exception exception) {
>>>                                        error(exception.getMessage());
>>>                                        error = true;
>>>                                }
>>>
>>>                                if (!error) {
>>>                                        setResponsePage(Home.class,
>>> pageParameters);
>>>                                }
>>>                                }
>>>                        }
>>>
>>>                        @Override
>>>                        protected void onError(AjaxRequestTarget target,
>>> Form form) {
>>>                                // TODO Auto-generated method stub
>>>
>>>                        }
>>>                };
>>>                loginForm.add(ajaxSubmitButton);
>>> }
>>>
>>> Html is
>>> >> wicket:id="ajaxSubmitButton"/>
>>>
>>> But when I press Login button, nothing happens...Please help me out here
>>> as
>>> I am new to this. Is there any good doc available for this? Also, why
>>> WICKET
>>> AJAX DEBUG mark is coming in bottom right corner of my web page?
>>>
>>> --
>>> View this message in context:
>>> http://apache-wicket.1842946.n4.nabble.com/Need-help-in-implementing-Ajax-form-tp4632760.html
>>> Sent from the Users forum mailing list archive at Nabble.com.
>>>
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>>> For additional commands, e-mail: users-h...@wicket.apache.org
>>>
>>>
>>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org