1 23 24 package com.sun.enterprise.tools.guiframework.view.descriptors; 25 26 import com.iplanet.jato.RequestContext; 27 import com.iplanet.jato.view.ContainerView; 28 import com.iplanet.jato.view.View; 29 30 import com.sun.enterprise.tools.guiframework.exception.FrameworkException; 31 import com.sun.enterprise.tools.guiframework.view.DescriptorWizardWindowViewBean; 32 33 34 37 public class WizardWindowViewBeanDescriptor extends ViewDescriptor { 38 39 42 public WizardWindowViewBeanDescriptor(String name) { 43 super(name); 44 } 45 46 47 54 public View getInstance(RequestContext ctx, ContainerView container, String name) { 55 if (name.equals("com.sun.web.ui.servlet.wizard.WizardWindowViewBean")) { 59 try { 60 return ctx.getViewBeanManager().getViewBean("WizardWindow"); 61 } catch (ClassNotFoundException ex) { 62 throw new FrameworkException( 63 "WizardWindowViewBean is called by 2 names: " + 64 "'WizardWindow' and 'com.sun.web.ui.servlet.wizard." + 65 "WizardWindowViewBean'. For this reason, you must " + 66 "register both of these in the ViewXML! The "+ 67 "WizardWindowViewBeanDescriptor knows how to deal with " + 68 "this.", ex, this, container); 69 } 70 } 71 return new DescriptorWizardWindowViewBean(ctx, name, this); 72 } 73 } 74 | Popular Tags |