Inline Scripts with Mojarra
A few weeks ago, I blogged about ways to execute scripts on the client which you were writing out from the server via Ajax. By popular demand, the latest build of Mojarra now allows execution of inline scripts.
So, instead of having to either bundle code into an <eval> tag, or using an event to execute it later, you can now simply say something like:
right inside the rendered html.
You can also say something like:
And the script will be loaded as well.
This feature will (probably) be the next revision of the specification, but you should be able to use this feature without fear of compatability issues going forward - the specifcation's Expert Group has already expressed their approval of including this.