1 23 24 29 30 package com.sun.enterprise.tools.admingui.handlers; 31 32 import java.util.EventObject ; 33 import javax.servlet.http.HttpSession ; 34 35 import com.iplanet.jato.RequestContext; 36 import com.iplanet.jato.RequestManager; 37 import com.iplanet.jato.model.DefaultModel; 38 import com.iplanet.jato.view.View; 39 import com.iplanet.jato.view.ViewBean; 40 import com.iplanet.jato.model.ModelControlException; 41 import com.iplanet.jato.view.ContainerViewBase; 42 import com.iplanet.jato.view.ViewBase; 43 44 import com.sun.enterprise.tools.guiframework.view.DescriptorContainerView; 45 import com.sun.enterprise.tools.guiframework.view.HandlerContext; 46 import com.sun.enterprise.tools.guiframework.exception.FrameworkException; 47 import com.sun.enterprise.tools.guiframework.view.descriptors.ViewDescriptor; 48 49 50 public class adminObjectHandlers { 51 52 53 public void getValuesFromStep1(RequestContext ctx, HandlerContext handlerCtx) throws ModelControlException { 54 View view = handlerCtx.getView(); 55 DescriptorContainerView descView = (DescriptorContainerView)(((ViewBase)view)); 56 ViewDescriptor vd = descView.getViewDescriptor(); 57 HttpSession session = RequestManager.getSession(); 58 DefaultModel step1Model = (DefaultModel)(session.getValue("adminObjectStep1.model")); 59 descView.setDisplayFieldValue("JndiName", step1Model.getValue("JndiName")); 60 descView.setDisplayFieldValue("ResourceType", step1Model.getValue("ResourceType")); 61 descView.setDisplayFieldValue("ResourceAdapter", step1Model.getValue("ResourceAdapter")); 62 } 63 64 } 65 | Popular Tags |