Hi,

I finally know why I was redirected to tomcat's home page.
It's because wrong setting of WicketFilter's filter mapping in web.xml.
Thanks, guys~


liny wrote:
> 
> Hi, Timo:
> 
> I want to do as the same as "Form Example" in wicket-examples-1.3.3
> After copying from "Form Example" source and modify it, 
> "AjaxFormValidatingBehavior.addToAllFormComponents(form, "onkeyup",
> Duration.ONE_SECOND);"-->this works, but after inputing correct value in
> login page, wicket redirects me to http://localhost:8080/index.jsp (this
> is tomcat's home page), not my X page.
> Why wicket redirect me to wrong page??
> 
> Thanks.
> 
> 
> Timo Rantalaiho wrote:
>> 
>> On Mon, 02 Jun 2008, liny wrote:
>>> 1. When I enter data into input field and key up,
>>> AjaxFormValidatingBehavior
>>> doesn't work. It won't validate  input field.
>> 
>> What do you want to happen here?
>> 
>>> 2. After input correct info in login page and manual because question 1,
>>> I
>>> have to manual press submit button. Then I was redirected to tomcat's
>>> index.jsp! What's wrong with it? I access X page without login, this is
>>> right. But after correct login, I should return to X page, not tomcat's
>>> index.jsp.
>>> 
>>> Please tell me what's going on and how to solve it, thanks!
>>> 
>>> http://www.nabble.com/file/p17601972/Login.java Login.java 
>> 
>> It's a bit unclear to me what you're trying to accomplish,
>> but I don't see any way of displaying the Ajax validation
>> error messages. The parent of the FeedbackPanel must be 
>> repainted to make it visible (or the FeedbackPanel itself 
>> if you set outputMarkupPlaceholderTag true to it). 
>> 
>> Also note that onkeyup doesn't get triggered by mouse
>> events, OnChangeAjaxBehavior is better in that respect.
>> 
>> Best wishes,
>> Timo
>> 
>> -- 
>> Timo Rantalaiho           
>> Reaktor Innovations Oy    <URL: http://www.ri.fi/ >
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>> 
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/continueToOriginalDestination-goes-to-tomcat%27s-index.jsp-tp17601972p17627076.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to