You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Mark Sloan <ma...@sri.com> on 2009/05/19 01:41:47 UTC
Can't find Wicket ajax resources
I am trying to do some basic Ajax in Wicket (1.4rc4)
I have the following code fragment:
TextField<String> loginField = new TextField<String>("login",
new PropertyModel<String>(this, "login"));
loginField.add(new AjaxFormComponentUpdatingBehavior("onblur") {
private static final long serialVersionUID = 1L;
@Override
protected void onUpdate(AjaxRequestTarget target) {
// doUpdate
}
});
}
It produces the follwing:
[WARN] 404 - GET /resources/org.apache.wicket.ajax.WicketAjaxReference/
wicket-ajax.js;jsessionid=l0s7hr4i8tev
WARN] 404 - GET /resources/
org.apache.wicket.markup.html.WicketEventReference/wicket-
event.js;jsessionid=l0s7hr4i8tev
[WARN] 404 - GET /resources/
org.apache.wicket.ajax.AbstractDefaultAjaxBehavior/wicket-ajax-
debug.js;jsessionid=l0s7hr4i8tev
What am I doing wrong here?
Mark Sloan
SRI International, San Luis Obispo Office
805-542-9330 x107
mark.sloan@sri.com
Re: Can't find Wicket ajax resources
Posted by Mark Sloan <ma...@sri.com>.
Thank you.
That was the cause of my problem. I think the //* got into our url
mapping because we had a resources dir in our project, and the
resources in it were not being found. So to fix the problem I have
renamed our resources dir to uLandingResources and changed the url
mapping from //* to /*.
It seems like it would be a good idea if Wicket could use some other
less common name for its own resources use.
Thanks again.
Mark Sloan
SRI International, San Luis Obispo Office
805-542-9330 x107
mark.sloan@sri.com
On May 19, 2009, at 9:49 AM, Jeremy Thomerson wrote:
> At a glance it looks right, with the exception that your "/" is
> doubled up in the mapping. I don't think this would create your
> issue, but you should fix it and try again.
>
> --
> Jeremy Thomerson
> http://www.wickettraining.com
>
>
>
>
> On Tue, May 19, 2009 at 11:47 AM, Mark Sloan <ma...@sri.com>
> wrote:
>> Here is the Wicket portion of the my web.xml
>> <filter>
>> <filter-name>
>> ULandingWicketApp
>> </filter-name>
>> <filter-class>
>> org.apache.wicket.protocol.http.WicketFilter
>> </filter-class>
>>
>>
>>
>> <init-param>
>> <param-name>
>> applicationClassName
>> </param-name>
>> <param-value>
>> com.sri.uLanding.ULandingWicketApp
>> </param-value>
>> </init-param>
>> </filter>
>>
>>
>>
>> <filter-mapping>
>> <filter-name>
>> ULandingWicketApp
>> </filter-name>
>> <url-pattern>
>> //*
>> </url-pattern>
>> </filter-mapping>
>>
>> Mark Sloan
>> SRI International, San Luis Obispo Office
>> 805-542-9330 x107
>> mark.sloan@sri.com
>>
>>
>> On May 18, 2009, at 6:33 PM, Jeremy Thomerson wrote:
>>
>> What's your web.xml mapping?
>>
>> --
>> Jeremy Thomerson
>> http://www.wickettraining.com
>>
>>
>>
>>
>> On Mon, May 18, 2009 at 6:41 PM, Mark Sloan <ma...@sri.com>
>> wrote:
>>
>> I am trying to do some basic Ajax in Wicket (1.4rc4)
>>
>> I have the following code fragment:
>>
>> TextField<String> loginField = new TextField<String>("login",
>>
>> new PropertyModel<String>(this, "login"));
>>
>> loginField.add(new AjaxFormComponentUpdatingBehavior("onblur") {
>>
>> private static final long serialVersionUID = 1L;
>>
>> @Override
>>
>> protected void onUpdate(AjaxRequestTarget target) {
>>
>> // doUpdate
>>
>> }
>>
>> });
>>
>> }
>>
>> It produces the follwing:
>>
>> [WARN] 404 - GET
>>
>> /resources/org.apache.wicket.ajax.WicketAjaxReference/wicket-
>> ajax.js;jsessionid=l0s7hr4i8tev
>>
>> WARN] 404 - GET
>>
>> /resources/org.apache.wicket.markup.html.WicketEventReference/
>> wicket-event.js;jsessionid=l0s7hr4i8tev
>>
>> [WARN] 404 - GET
>>
>> /resources/org.apache.wicket.ajax.AbstractDefaultAjaxBehavior/
>> wicket-ajax-debug.js;jsessionid=l0s7hr4i8tev
>>
>> What am I doing wrong here?
>>
>> Mark Sloan
>>
>> SRI International, San Luis Obispo Office
>>
>> 805-542-9330 x107
>>
>> mark.sloan@sri.com
>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
Re: Can't find Wicket ajax resources
Posted by Jeremy Thomerson <je...@wickettraining.com>.
At a glance it looks right, with the exception that your "/" is
doubled up in the mapping. I don't think this would create your
issue, but you should fix it and try again.
--
Jeremy Thomerson
http://www.wickettraining.com
On Tue, May 19, 2009 at 11:47 AM, Mark Sloan <ma...@sri.com> wrote:
> Here is the Wicket portion of the my web.xml
> <filter>
> <filter-name>
> ULandingWicketApp
> </filter-name>
> <filter-class>
> org.apache.wicket.protocol.http.WicketFilter
> </filter-class>
>
>
>
> <init-param>
> <param-name>
> applicationClassName
> </param-name>
> <param-value>
> com.sri.uLanding.ULandingWicketApp
> </param-value>
> </init-param>
> </filter>
>
>
>
> <filter-mapping>
> <filter-name>
> ULandingWicketApp
> </filter-name>
> <url-pattern>
> //*
> </url-pattern>
> </filter-mapping>
>
> Mark Sloan
> SRI International, San Luis Obispo Office
> 805-542-9330 x107
> mark.sloan@sri.com
>
>
> On May 18, 2009, at 6:33 PM, Jeremy Thomerson wrote:
>
> What's your web.xml mapping?
>
> --
> Jeremy Thomerson
> http://www.wickettraining.com
>
>
>
>
> On Mon, May 18, 2009 at 6:41 PM, Mark Sloan <ma...@sri.com> wrote:
>
> I am trying to do some basic Ajax in Wicket (1.4rc4)
>
> I have the following code fragment:
>
> TextField<String> loginField = new TextField<String>("login",
>
> new PropertyModel<String>(this, "login"));
>
> loginField.add(new AjaxFormComponentUpdatingBehavior("onblur") {
>
> private static final long serialVersionUID = 1L;
>
> @Override
>
> protected void onUpdate(AjaxRequestTarget target) {
>
> // doUpdate
>
> }
>
> });
>
> }
>
> It produces the follwing:
>
> [WARN] 404 - GET
>
> /resources/org.apache.wicket.ajax.WicketAjaxReference/wicket-ajax.js;jsessionid=l0s7hr4i8tev
>
> WARN] 404 - GET
>
> /resources/org.apache.wicket.markup.html.WicketEventReference/wicket-event.js;jsessionid=l0s7hr4i8tev
>
> [WARN] 404 - GET
>
> /resources/org.apache.wicket.ajax.AbstractDefaultAjaxBehavior/wicket-ajax-debug.js;jsessionid=l0s7hr4i8tev
>
> What am I doing wrong here?
>
> Mark Sloan
>
> SRI International, San Luis Obispo Office
>
> 805-542-9330 x107
>
> mark.sloan@sri.com
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Can't find Wicket ajax resources
Posted by Mark Sloan <ma...@sri.com>.
Here is the Wicket portion of the my web.xml
<filter>
<filter-name>
ULandingWicketApp
</filter-name>
<filter-class>
org.apache.wicket.protocol.http.WicketFilter
</filter-class>
<init-param>
<param-name>
applicationClassName
</param-name>
<param-value>
com.sri.uLanding.ULandingWicketApp
</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>
ULandingWicketApp
</filter-name>
<url-pattern>
//*
</url-pattern>
</filter-mapping>
Mark Sloan
SRI International, San Luis Obispo Office
805-542-9330 x107
mark.sloan@sri.com
On May 18, 2009, at 6:33 PM, Jeremy Thomerson wrote:
> What's your web.xml mapping?
>
> --
> Jeremy Thomerson
> http://www.wickettraining.com
>
>
>
>
> On Mon, May 18, 2009 at 6:41 PM, Mark Sloan <ma...@sri.com>
> wrote:
>> I am trying to do some basic Ajax in Wicket (1.4rc4)
>> I have the following code fragment:
>>
>> TextField<String> loginField = new TextField<String>("login",
>> new PropertyModel<String>(this, "login"));
>> loginField.add(new AjaxFormComponentUpdatingBehavior("onblur") {
>> private static final long serialVersionUID = 1L;
>> @Override
>> protected void onUpdate(AjaxRequestTarget target) {
>> // doUpdate
>> }
>> });
>> }
>> It produces the follwing:
>> [WARN] 404 - GET
>> /resources/org.apache.wicket.ajax.WicketAjaxReference/wicket-
>> ajax.js;jsessionid=l0s7hr4i8tev
>> WARN] 404 - GET
>> /resources/org.apache.wicket.markup.html.WicketEventReference/
>> wicket-event.js;jsessionid=l0s7hr4i8tev
>> [WARN] 404 - GET
>> /resources/org.apache.wicket.ajax.AbstractDefaultAjaxBehavior/
>> wicket-ajax-debug.js;jsessionid=l0s7hr4i8tev
>> What am I doing wrong here?
>>
>> Mark Sloan
>> SRI International, San Luis Obispo Office
>> 805-542-9330 x107
>> mark.sloan@sri.com
>>
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
Re: Can't find Wicket ajax resources
Posted by Jeremy Thomerson <je...@wickettraining.com>.
What's your web.xml mapping?
--
Jeremy Thomerson
http://www.wickettraining.com
On Mon, May 18, 2009 at 6:41 PM, Mark Sloan <ma...@sri.com> wrote:
> I am trying to do some basic Ajax in Wicket (1.4rc4)
> I have the following code fragment:
>
> TextField<String> loginField = new TextField<String>("login",
> new PropertyModel<String>(this, "login"));
> loginField.add(new AjaxFormComponentUpdatingBehavior("onblur") {
> private static final long serialVersionUID = 1L;
> @Override
> protected void onUpdate(AjaxRequestTarget target) {
> // doUpdate
> }
> });
> }
> It produces the follwing:
> [WARN] 404 - GET
> /resources/org.apache.wicket.ajax.WicketAjaxReference/wicket-ajax.js;jsessionid=l0s7hr4i8tev
> WARN] 404 - GET
> /resources/org.apache.wicket.markup.html.WicketEventReference/wicket-event.js;jsessionid=l0s7hr4i8tev
> [WARN] 404 - GET
> /resources/org.apache.wicket.ajax.AbstractDefaultAjaxBehavior/wicket-ajax-debug.js;jsessionid=l0s7hr4i8tev
> What am I doing wrong here?
>
> Mark Sloan
> SRI International, San Luis Obispo Office
> 805-542-9330 x107
> mark.sloan@sri.com
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org