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=4027129#4027129
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4027129
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user