You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Cristi Manole <cr...@gmail.com> on 2008/03/20 12:18:33 UTC
Unable to display modal windows
Hello,
I just upgraded to 1.3.2 from 1.3.1.
Also, i don't know if it makes a difference, spring from 2.0.6 to 2.5.2.
Now, when i try to display a modal window just like I used to, it fails.
All the code I modified is for the constructor of the authwebsess which got
depricated
public TheWorldWebSession(final AuthenticatedWebApplication application,
Request request) {
* super(request); //instead of super(application, request)*
InjectorHolder.getInjector().inject(this); //don't get spring by
default in sessions...
}
These are some strange warnings I get (didn't get them before) :
WARN - AbstractTextComponent - Couldn't resolve model type of
Model:classname=[org.apache.wicket.model.PropertyModel]:nestedModel=[]:expression=[owner]
for [MarkupContainer [Component id = owner, page =
com.smd.mymedia.MyMediaMainPage, path = 1:mymediaPanel:searchForm:
owner.MyMediaPanel$MyMediaPanelSearchForm$1, isVisible = true, isVersioned =
false]], please set the type yourself.
WARN - AbstractTextComponent - Couldn't resolve model type of
Model:classname=[org.apache.wicket.model.PropertyModel]:nestedModel=[]:expression=[name]
for [MarkupContainer [Component id = name, page =
com.smd.mymedia.MyMediaMainPage, path = 1:mymediaPanel:searchForm:
name.MyMediaPanel$MyMediaPanelSearchForm$2, isVisible = true, isVersioned =
false]], please set the type yourself.
(etc)
This is what I get in the ajax window :
*INFO: *focus set on addnew115
*INFO: *
*INFO: *
Initiating Ajax GET request on
../?wicket:interface=:1:mymediaPanel:addnew1::IBehaviorListener:0:1&random=
0.5540758623808608
*INFO: *Invoking pre-call handler(s)...
*INFO: *Received ajax response (5403 characters)
*INFO: *
<?xml version="1.0
" encoding="UTF-8"?><ajax-response><header-contribution
encoding="wicket1" ><![CDATA[<head xmlns:wicket="
http://wicket.apache.org">
*INFO: *Response parsed. Now invoking steps...
*INFO: *
*INFO: *Initiating Ajax GET request on
http://localhost:9080/theworld/javascript/modal.js
*INFO: *Invoking pre-call handler(s)...
*ERROR: *Received Ajax response with code: 404
*INFO: *Invoking post-call handler(s)...
*INFO: *Invoking failure handler(s)...
*INFO: *focus removed from addnew115
Re: Unable to display modal windows
Posted by Cristi Manole <cr...@gmail.com>.
it was here.
got it fixed though. i had a relative path that somehow stopped working in
this version of wicket... anyway, fixed, so who cares? :)
thanks.
On Sat, Mar 22, 2008 at 11:46 AM, Johan Compagner <jc...@gmail.com>
wrote:
> where does this come from:
>
> http://localhost:9080/theworld/javascript/modal.js
>
> modal.js shouldn't be in there i think? Or did you extract it somehow?
>
> On Thu, Mar 20, 2008 at 12:18 PM, Cristi Manole <cr...@gmail.com>
> wrote:
>
> > Hello,
> >
> > I just upgraded to 1.3.2 from 1.3.1.
> >
> > Also, i don't know if it makes a difference, spring from 2.0.6 to 2.5.2.
> >
> > Now, when i try to display a modal window just like I used to, it fails.
> >
> > All the code I modified is for the constructor of the authwebsess which
> > got
> > depricated
> > public TheWorldWebSession(final AuthenticatedWebApplication
> > application,
> > Request request) {
> > * super(request); //instead of super(application, request)*
> > InjectorHolder.getInjector().inject(this); //don't get spring by
> > default in sessions...
> > }
> >
> > These are some strange warnings I get (didn't get them before) :
> >
> > WARN - AbstractTextComponent - Couldn't resolve model type of
> > Model:classname=[org.apache.wicket.model.PropertyModel
> > ]:nestedModel=[]:expression=[owner]
> > for [MarkupContainer [Component id = owner, page =
> > com.smd.mymedia.MyMediaMainPage, path = 1:mymediaPanel:searchForm:
> > owner.MyMediaPanel$MyMediaPanelSearchForm$1, isVisible = true,
> isVersioned
> > =
> > false]], please set the type yourself.
> > WARN - AbstractTextComponent - Couldn't resolve model type of
> > Model:classname=[org.apache.wicket.model.PropertyModel
> > ]:nestedModel=[]:expression=[name]
> > for [MarkupContainer [Component id = name, page =
> > com.smd.mymedia.MyMediaMainPage, path = 1:mymediaPanel:searchForm:
> > name.MyMediaPanel$MyMediaPanelSearchForm$2, isVisible = true,
> isVersioned
> > =
> > false]], please set the type yourself.
> > (etc)
> >
> > This is what I get in the ajax window :
> >
> >
> > *INFO: *focus set on addnew115
> > *INFO: *
> > *INFO: *
> > Initiating Ajax GET request on
> >
> >
> ../?wicket:interface=:1:mymediaPanel:addnew1::IBehaviorListener:0:1&random=
> > 0.5540758623808608
> > *INFO: *Invoking pre-call handler(s)...
> > *INFO: *Received ajax response (5403 characters)
> > *INFO: *
> > <?xml version="1.0
> > " encoding="UTF-8"?><ajax-response><header-contribution
> > encoding="wicket1" ><![CDATA[<head xmlns:wicket="
> > http://wicket.apache.org">
> > *INFO: *Response parsed. Now invoking steps...
> > *INFO: *
> > *INFO: *Initiating Ajax GET request on
> > http://localhost:9080/theworld/javascript/modal.js
> > *INFO: *Invoking pre-call handler(s)...
> > *ERROR: *Received Ajax response with code: 404
> > *INFO: *Invoking post-call handler(s)...
> > *INFO: *Invoking failure handler(s)...
> > *INFO: *focus removed from addnew115
> >
>
Re: Unable to display modal windows
Posted by Johan Compagner <jc...@gmail.com>.
where does this come from:
http://localhost:9080/theworld/javascript/modal.js
modal.js shouldn't be in there i think? Or did you extract it somehow?
On Thu, Mar 20, 2008 at 12:18 PM, Cristi Manole <cr...@gmail.com>
wrote:
> Hello,
>
> I just upgraded to 1.3.2 from 1.3.1.
>
> Also, i don't know if it makes a difference, spring from 2.0.6 to 2.5.2.
>
> Now, when i try to display a modal window just like I used to, it fails.
>
> All the code I modified is for the constructor of the authwebsess which
> got
> depricated
> public TheWorldWebSession(final AuthenticatedWebApplication
> application,
> Request request) {
> * super(request); //instead of super(application, request)*
> InjectorHolder.getInjector().inject(this); //don't get spring by
> default in sessions...
> }
>
> These are some strange warnings I get (didn't get them before) :
>
> WARN - AbstractTextComponent - Couldn't resolve model type of
> Model:classname=[org.apache.wicket.model.PropertyModel
> ]:nestedModel=[]:expression=[owner]
> for [MarkupContainer [Component id = owner, page =
> com.smd.mymedia.MyMediaMainPage, path = 1:mymediaPanel:searchForm:
> owner.MyMediaPanel$MyMediaPanelSearchForm$1, isVisible = true, isVersioned
> =
> false]], please set the type yourself.
> WARN - AbstractTextComponent - Couldn't resolve model type of
> Model:classname=[org.apache.wicket.model.PropertyModel
> ]:nestedModel=[]:expression=[name]
> for [MarkupContainer [Component id = name, page =
> com.smd.mymedia.MyMediaMainPage, path = 1:mymediaPanel:searchForm:
> name.MyMediaPanel$MyMediaPanelSearchForm$2, isVisible = true, isVersioned
> =
> false]], please set the type yourself.
> (etc)
>
> This is what I get in the ajax window :
>
>
> *INFO: *focus set on addnew115
> *INFO: *
> *INFO: *
> Initiating Ajax GET request on
>
> ../?wicket:interface=:1:mymediaPanel:addnew1::IBehaviorListener:0:1&random=
> 0.5540758623808608
> *INFO: *Invoking pre-call handler(s)...
> *INFO: *Received ajax response (5403 characters)
> *INFO: *
> <?xml version="1.0
> " encoding="UTF-8"?><ajax-response><header-contribution
> encoding="wicket1" ><![CDATA[<head xmlns:wicket="
> http://wicket.apache.org">
> *INFO: *Response parsed. Now invoking steps...
> *INFO: *
> *INFO: *Initiating Ajax GET request on
> http://localhost:9080/theworld/javascript/modal.js
> *INFO: *Invoking pre-call handler(s)...
> *ERROR: *Received Ajax response with code: 404
> *INFO: *Invoking post-call handler(s)...
> *INFO: *Invoking failure handler(s)...
> *INFO: *focus removed from addnew115
>