On Fri, 29 Sep 2000, Nissim Karpenstein wrote:
> Is there a way to make multiple screens that require the same WM context
> without making multiple jave files?  Like for example, I have a company view
> screen and a company edit screen, and they both need to put a company object
> in the context.  Is there a way that I can tell CompanyView.wm and
> EditCompany.wm to both use Company.java?  

I still have a problem in automatically displaying WM templates without
defining the Screen in the URL; what I always do:
DynamicURI uri = new DynamicURI(data, "MyWMScreen")
  .addPathInfo("template", "MyWMScreen.wm");
//uri.toString() would become
//http://localhost/servlet/Turbine/screen/MyWMScreen/template/MyWMScreen.wm  

On your case, you can do:
DynamicURI companyView = new DynamicURI(data, "Company")
  .addPathInfo("template", "CompanyView.wm");
DynamicURI editCompany = new DynamicURI(data, "Company")
  .addPathInfo("template", "EditCompany.wm");

Later, you can use the URIs on ECS's A(), for example.

Oki

--
An entire generation of programmers has adopted Linux. It doesn't
matter whether they are doing this because they hate Microsoft, or
think Linux-based systems are technically superior, or just like to
hack on free software. The fact is, it's happening.
http://salon.com/tech/fsp/2000/09/12/chapter_7_part_one/index3.html




------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to