You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Entropy <bl...@gmail.com> on 2015/10/08 01:29:53 UTC

Wicket Ajax Debug error

We have a feature that has been working for months.  We're not sure when it
stopped working, but it has.  It's an ajax button, and the event never gets
to the server event.  The wicket debug window flashes red and says:

In firefox:
INFO: focus set on declineSharingButton
ERROR: An error occurred while executing Ajax request:TypeError: hidden is
null
INFO: focus removed from declineSharingButton

In IE:
INFO: focus set on declineSharingButton
ERROR: An error occurred while executing Ajax request:TypeError: Unable to
get value of the property 'dom': object is null or undefined
INFO: focus removed from declineSharingButton

Are these wicket items, hidden and dom that are null because of something I
did?

--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-Ajax-Debug-error-tp4672163.html
Sent from the Users forum mailing list archive at Nabble.com.

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


Re: Wicket Ajax Debug error

Posted by Martin Grigorov <mg...@apache.org>.
Wicket Ajax Debug try/catches the exception and just logs it.
If the error is not caught then this stops the processing of everything.
E.g. when Wicket processes Ajax response usually there are several
components which have to be re-rendered, some JavaScript to be executed,
etc. If any of them fail then the rest should/could still be processed.
There is no reason to not repaint PanelB if there is an error with PanelA.

Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov

On Thu, Oct 8, 2015 at 1:38 PM, Entropy <bl...@gmail.com> wrote:

> You are correct.  I eventually tracked it down to a changed method in our
> app layer.  But it threw me that the Wicket Ajax Debug reported it instead
> of it manifesting as a plain old javascript error in firebug.
>
> Brian
>
> On Thu, Oct 8, 2015 at 6:01 AM, Martin Grigorov-4 [via Apache Wicket] <
> ml-node+s1842946n4672170h34@n4.nabble.com> wrote:
>
> > Hi,
> >
> > They are not Wicket items.
> > Whenever you press an Ajax submit button Wicket will try to collect the
> > data (key=value) for the form elements and send them with Ajax. It breaks
> > for some reason in your app.
> >
> > Martin Grigorov
> > Wicket Training and Consulting
> > https://twitter.com/mtgrigorov
> >
> > On Thu, Oct 8, 2015 at 1:29 AM, Entropy <[hidden email]
> > <http:///user/SendEmail.jtp?type=node&node=4672170&i=0>> wrote:
> >
> > > We have a feature that has been working for months.  We're not sure
> when
> > it
> > > stopped working, but it has.  It's an ajax button, and the event never
> > gets
> > > to the server event.  The wicket debug window flashes red and says:
> > >
> > > In firefox:
> > > INFO: focus set on declineSharingButton
> > > ERROR: An error occurred while executing Ajax request:TypeError: hidden
> > is
> > > null
> > > INFO: focus removed from declineSharingButton
> > >
> > > In IE:
> > > INFO: focus set on declineSharingButton
> > > ERROR: An error occurred while executing Ajax request:TypeError: Unable
> > to
> > > get value of the property 'dom': object is null or undefined
> > > INFO: focus removed from declineSharingButton
> > >
> > > Are these wicket items, hidden and dom that are null because of
> > something I
> > > did?
> > >
> > > --
> > > View this message in context:
> > >
> >
> http://apache-wicket.1842946.n4.nabble.com/Wicket-Ajax-Debug-error-tp4672163.html
> > > Sent from the Users forum mailing list archive at Nabble.com.
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [hidden email]
> > <http:///user/SendEmail.jtp?type=node&node=4672170&i=1>
> > > For additional commands, e-mail: [hidden email]
> > <http:///user/SendEmail.jtp?type=node&node=4672170&i=2>
> > >
> > >
> >
> >
> > ------------------------------
> > If you reply to this email, your message will be added to the discussion
> > below:
> >
> >
> http://apache-wicket.1842946.n4.nabble.com/Wicket-Ajax-Debug-error-tp4672163p4672170.html
> > To unsubscribe from Wicket Ajax Debug error, click here
> > <
> http://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4672163&code=YmxtdWxob2xsYW5kQGdtYWlsLmNvbXw0NjcyMTYzfC05NzMyODEwMzU=
> >
> > .
> > NAML
> > <
> http://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml
> >
> >
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Wicket-Ajax-Debug-error-tp4672163p4672172.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

Re: Wicket Ajax Debug error

Posted by Entropy <bl...@gmail.com>.
You are correct.  I eventually tracked it down to a changed method in our
app layer.  But it threw me that the Wicket Ajax Debug reported it instead
of it manifesting as a plain old javascript error in firebug.

Brian

On Thu, Oct 8, 2015 at 6:01 AM, Martin Grigorov-4 [via Apache Wicket] <
ml-node+s1842946n4672170h34@n4.nabble.com> wrote:

> Hi,
>
> They are not Wicket items.
> Whenever you press an Ajax submit button Wicket will try to collect the
> data (key=value) for the form elements and send them with Ajax. It breaks
> for some reason in your app.
>
> Martin Grigorov
> Wicket Training and Consulting
> https://twitter.com/mtgrigorov
>
> On Thu, Oct 8, 2015 at 1:29 AM, Entropy <[hidden email]
> <http:///user/SendEmail.jtp?type=node&node=4672170&i=0>> wrote:
>
> > We have a feature that has been working for months.  We're not sure when
> it
> > stopped working, but it has.  It's an ajax button, and the event never
> gets
> > to the server event.  The wicket debug window flashes red and says:
> >
> > In firefox:
> > INFO: focus set on declineSharingButton
> > ERROR: An error occurred while executing Ajax request:TypeError: hidden
> is
> > null
> > INFO: focus removed from declineSharingButton
> >
> > In IE:
> > INFO: focus set on declineSharingButton
> > ERROR: An error occurred while executing Ajax request:TypeError: Unable
> to
> > get value of the property 'dom': object is null or undefined
> > INFO: focus removed from declineSharingButton
> >
> > Are these wicket items, hidden and dom that are null because of
> something I
> > did?
> >
> > --
> > View this message in context:
> >
> http://apache-wicket.1842946.n4.nabble.com/Wicket-Ajax-Debug-error-tp4672163.html
> > Sent from the Users forum mailing list archive at Nabble.com.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [hidden email]
> <http:///user/SendEmail.jtp?type=node&node=4672170&i=1>
> > For additional commands, e-mail: [hidden email]
> <http:///user/SendEmail.jtp?type=node&node=4672170&i=2>
> >
> >
>
>
> ------------------------------
> If you reply to this email, your message will be added to the discussion
> below:
>
> http://apache-wicket.1842946.n4.nabble.com/Wicket-Ajax-Debug-error-tp4672163p4672170.html
> To unsubscribe from Wicket Ajax Debug error, click here
> <http://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4672163&code=YmxtdWxob2xsYW5kQGdtYWlsLmNvbXw0NjcyMTYzfC05NzMyODEwMzU=>
> .
> NAML
> <http://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>


--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-Ajax-Debug-error-tp4672163p4672172.html
Sent from the Users forum mailing list archive at Nabble.com.

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


Re: Wicket Ajax Debug error

Posted by Martin Grigorov <mg...@apache.org>.
Hi,

They are not Wicket items.
Whenever you press an Ajax submit button Wicket will try to collect the
data (key=value) for the form elements and send them with Ajax. It breaks
for some reason in your app.

Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov

On Thu, Oct 8, 2015 at 1:29 AM, Entropy <bl...@gmail.com> wrote:

> We have a feature that has been working for months.  We're not sure when it
> stopped working, but it has.  It's an ajax button, and the event never gets
> to the server event.  The wicket debug window flashes red and says:
>
> In firefox:
> INFO: focus set on declineSharingButton
> ERROR: An error occurred while executing Ajax request:TypeError: hidden is
> null
> INFO: focus removed from declineSharingButton
>
> In IE:
> INFO: focus set on declineSharingButton
> ERROR: An error occurred while executing Ajax request:TypeError: Unable to
> get value of the property 'dom': object is null or undefined
> INFO: focus removed from declineSharingButton
>
> Are these wicket items, hidden and dom that are null because of something I
> did?
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Wicket-Ajax-Debug-error-tp4672163.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>