that that patch works for you is pretty strange.

For example this error:

ERROR: Error while parsing response: 'lastFocusId' is undefined

that has to be because of:

requestFocus: function()

because that is called in the ajax post handlers.

I updated the js file again can you test it somemore?

I can ofcourse add your extra check around it but i find it very strange
that that fixes your problem
(are there really focus events where the target wasn't set on for that
event.....)

johan

On 2/26/07, ChuckDeal <[EMAIL PROTECTED]> wrote:



ChuckDeal wrote:
>
> INFO: Response parsed. Now invoking steps...
> INFO: Response processed successfully.
> INFO: Invoking post-call handler(s)...
> ERROR: Error while parsing response: 'lastFocusId' is undefined
>
> I did my best to trace the problem and it appears to be line 1366 or
> wicket-ajax.js.  But, I have no idea what to do to fix it.  So, I'm
going
> to have to rollback and use a previous working revision.
>

After I posted this, tried to follow up some more and found that
wicket-ajax.js had in fact been updated since I pulled the source down
this
morning, but even this code (revision 511945) did not fix my problem.

Here is a patch the fixes the problem that I am having.  It makes sure
that
the property exists before trying to get the value of it.

Chuck

Index: Q:/wicket/SNAPSHOT/wicket/src/main/java/wicket/ajax/wicket-ajax.js
===================================================================
--- Q:/wicket/SNAPSHOT/wicket/src/main/java/wicket/ajax/wicket-ajax.js
(revision 511945)
+++ Q:/wicket/SNAPSHOT/wicket/src/main/java/wicket/ajax/wicket-ajax.js
(working copy)
@@ -1363,8 +1363,11 @@

        setFocus: function(event)
        {
-               lastFocusId=event.target.id;
-               Wicket.Log.info("focus set on " + lastFocusId);
+               if (event.target && event.target.id)
+               {
+                       lastFocusId=event.target.id;
+                       Wicket.Log.info("focus set on " + lastFocusId);
+               }
        },

        setFocusOnId: function(id)

--
View this message in context:
http://www.nabble.com/lastFocusId-tf3295071.html#a9167518
Sent from the Wicket - User mailing list archive at Nabble.com.


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to