[jboss-user] [JBoss Seam] - Re: Seam remoting on IE 6 giving javascript error

Jayaranga do-not-reply at jboss.com
Mon Mar 12 07:59:26 EDT 2007


I posted the contents in my very first post.
the page is pretty large. i ll post the javascript function / headers , calling method and the session bean's interface.

javascript function/ headers
-------------------------------------
 script src="seam/remoting/resource/remote.js" type="text/javascript">
                        <!--
                    // This space intentionally left blank
                    //-->
                                        

 script type="text/javascript" src="seam/remoting/interface.js?roomsnet_r5_admin_businesslogic_DRAMP_UsersPicksLogicAction&roomsnet.r5.pojo.portal.TblHotels&roomsnet_r5_admin_businesslogic_DRAMP_CustomerLogicAction">
                        <!--
                    // This space intentionally left blank
                    //-->
                    
--------------------------------------------------------
Seam.Remoting.setDebug(true);
--------------------------------------------------

function addToMyPicks(desc){
hotelPickDescription = desc;
				
var hotel = Seam.Component.newInstance("roomsnet.r5.pojo.portal.TblHotels");
					
hotel.setHotCode(hotelcode );
var component = Seam.Component.getInstance("roomsnet_r5_admin_businesslogic_DRAMP_UsersPicksLogicAction");//.addHotelToMyShortlist(hotel , hotelPickDescription ,addedResourceCallback );
alert("object >>>>>> "+component );
component.addHotelToMyShortlist(hotel , hotelPickDescription ,addedResourceCallback );
alert("added .......");

}
------------------------------------------------------------------
                  calling javascript 
----------------------------------------------
window.opener.addToMyPicks(description);
--------------------------------------------------------------
-----------------------------------------------------------------

           bean interface
---------------------------------------------
public interface DRAMP_UsersPicksLogic {

	@WebRemote
	public String addHotelToMyShortlist(TblHotels hotel,String pickDescription) throws Exception;
}
-----------------------------------------------------


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4027131#4027131

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4027131



More information about the jboss-user mailing list