Someone at the client site comes over to me this morning and says the website is not working. When I asked for a slightly better explanation, I was told that you click on this icon and it does nothing.
I quickly verify the problem,
then attempt to figure out what’s wrong.
The source HTML in the browser looks kinda funny. Probably because it was not written by a human, but rather, the MCP known as SilverStream.
So I open up the SilverStream IDE and
start my investigation, first with the wsywig editor. I look at the properties for that icon (which is an AgpImage object)
Everything looks normal. It has the same property values as the other images.
So I right click and select “programming editor”
which takes me to the Java code for this HTML page. All HTML pages in SilverStream are back-boned by Java.
The AgpImage object for this icon has not been added to the page listener. Therefore, nothing will happen when you click on it.
I can’t manually add it because SilverStream controls that particular code and when I try to modify and save it, it just deletes what I wrote.
So I go back to the wsywig editor. I know that for sure the Image property “programmable” needs to be checked for any of this to work.
I open the properties again for the Image. The “programmable” option is already checked, as it should be.
So intuitively, I uncheck the “programmable” option, and re-check it,
essentially doing nothing, and save the page.
I go back to the programming editor and
all of the sudden there is an event handler for my Image object!
I am allowed to edit the event handler and save it. Once I save the event handler, the AgpImage object is magically added to the page listener!
I then publish the code from my development database to the production database. (In SilverStream, all of your code is contained within a database; there are no files)
I re-login to the website, because the act of publishing breaks all sessions.
And the problem is now solved.
Brilliant.
Post a Comment