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

Reply via email to