Getting Started With Project jMaki for the GlassFish v3 Application Server

ProcedurePublishing to a Topic

After completing this task, thisState will subscribe to the /cb/getState topic.

  1. Open index.jsp in a source editor pane.

  2. Add a subscribe attribute to the thisState combobox and set it to the topic, /cb/getState:

    <a:widget  id="thisState"
    	name="dojo.combobox"
    	publish="/cb/getState"
    	value="${StateBean.states}" />
  3. Save index.jsp.