Coming Up for Air

Debugging jsf-extensions

Friday, July 28, 2006 |

One of the things that has been frustrating with trying to come up to speed with jsf-extensions is that I just didn’t know where to look in all the Javascript involved to see what was going on. Today, I "watched" as Ed Burns walked a fellow extensions learner through debugging his app. Here’s what I learned.

Assuming you’re using it (and if you’re not, you should be), open up Firebug and click on the "Debugger" tab. In the "Scripts" drop down at the bottom, select the script ending in com_sun_faces_ajax.js. Here are some useful lines in this script1:

  • Line 440: By inspecting the variable xml, you can see the response from the server.

  • Line 453: You can see the id of each component that is to be rendered.

  • Line 454: You can see, in the "content" variable on the right, the actual content that will be rendered.

There are obviously countless more interesting lines, but these are the only ones Ed discussed specifically, and should be enough to show those interested in such things where to start looking. Hope that helps.

While I’m on the subject, my boss was able to get jsf-extensions working in his project, so we’ll now be able to get a better feel for both jsf-extensions and Ajax4jsf.

1 In the interests of full disclosure and fairness to Ed, the descriptions of the lines you see are mostly direct quotes of him, with minor changes to make it more readable in this context. :)



    Sample quote

    Quote source


    My name is Jason Lee. I am a software developer living in the middle of Oklahoma. I’ve been a professional developer since 1997, using a variety of languages, including Java, Javascript, PHP, Python, Delphi, and even a bit of C#. I currently work for Red Hat on the WildFly/EAP team, where, among other things, I maintain integrations for some MicroProfile specs, OpenTelemetry, Micrometer, Jakarta Faces, and Bean Validation. (Full resume here. LinkedIn profile)

    I am the president of the Oklahoma City JUG, and an occasional speaker at the JUG and a variety of technical conferences.

    On the personal side, I’m active in my church, and enjoy bass guitar, running, fishing, and a variety of martial arts. I’m also married to a beautiful woman, and have two boys, who, thankfully, look like their mother.

    My Links