Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

jamki dcontainer loading  RSS feed

 
vijay makam
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a jmaki dcontainer defined on a JSP page which is subscribing to topic /foo/setcontent. On the same page I have a button which is publishing to foo/xyz topic. In glue.js I have defined a listener for foo/xyz topic and there I want to include a new JSP page in the dcontainer. so I am saying jmaki.publish("foo/setcontent", {value: data});

where data = {id: 'dynamic', include:"abc.jsp", lazyload:false};

when I click the button in the JSP, the listener method is called, but the publish is not happening to dcontainer (xyz.jsp is not loaded in the dcontainer).

Initially the dcontainer is set with one include <a:widget id="cont1"
name="jmaki.dcontainer" subscribe="foo/setcontent" value="{
items: [{id: 'dynamic', include:"xyz.jsp", lazyload:true, iframe: true}; ]
}


Is my approach correct, if not, where am I going wrong. Kindly guide me.>
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!