Hi,

I am working on WebObjects application, using AjaxUpdateContainers (ProjectWonder). I am trying to set a value from webobjects to a javascript variable and based on that condition I am trying to update the framesets. But always the WebObjects value is returning false eventhough it is true when I print it in the Java. It seems webobjects element is not refreshing when an Ajax submit is performed, and eventhough the function is in AjaxUpdate area.

Following is the code snippet that gives the picture of the scenario explained. Any help would be appreciated.

-----------------------------HTML code-----------------------------
function showPassageFrame()
{
        var a="<WEBOBJECT NAME=ShowPassage></WEBOBJECT>";
        if(a=='true'){
                parent.PassageFrameset.rows="40%,*";
        }else {
                parent.PassageFrameset.rows="0,*";
        }
}
-----------------------------WOD code------------------------------
ShowPassage: WOString {
        value = showPassage;
}
-----------------------------Java code-----------------------------
public String showPassage(){

        if(currentItem.passageExists())
                return "true";
        else
                return "false";
}
--------------------------------------------------------------------

Regards,
Raghavender.
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to