© 2006 EMC Corporation. All rights reserved. Grokking the Paradigm Quickie Configurations Dennis Dawson Principal Technical Writer EMC/Documentum

Embed Size (px)

Citation preview

  • Slide 1

Slide 2 2006 EMC Corporation. All rights reserved. Grokking the Paradigm Quickie Configurations Dennis Dawson Principal Technical Writer EMC/Documentum Slide 3 2006 EMC Corporation. All rights reserved. Grokking the Paradigm2 Fifteen Minutes Worth of Stuff Heres what Im gonna talk about: Webtop Configuration Adding an Action Link Removing an Action Link Slide 4 2006 EMC Corporation. All rights reserved. Grokking the Paradigm3 Which Files Should I Fiddle Around With? All of the files you need to fiddle with are in the /webtop directory Copy files to /webtop/custom to modify them Do not modify any of the files in place only modify copies you have created in your custom directory Slide 5 2006 EMC Corporation. All rights reserved. Grokking the Paradigm4 Webtop/WDK Layers Ogres are like onions they have layers. - Shrek wdk app.xml Slide 6 2006 EMC Corporation. All rights reserved. Grokking the Paradigm5 Webtop/WDK Layers Ogres are like onions they have layers. - Shrek wdk app.xml webcomponent app.xml Slide 7 2006 EMC Corporation. All rights reserved. Grokking the Paradigm6 Webtop/WDK Layers Ogres are like onions they have layers. - Shrek wdk app.xml webcomponent app.xml webtop app.xml Slide 8 2006 EMC Corporation. All rights reserved. Grokking the Paradigm7 Webtop/WDK Layers You know what else everybody likes? Parfaits. - Donkey wdk app.xml webcomponent app.xml webtop app.xml custom app.xml Slide 9 2006 EMC Corporation. All rights reserved. Grokking the Paradigm8 Tweaking Webtop Selecting a document Clicking a checkbox to select one document in a list sets off an interesting chain of events in and of itself. Consider if you had to code by hand not only the decision tree to determine which commands should be available but also the ones that should be disabled Slide 10 2006 EMC Corporation. All rights reserved. Grokking the Paradigm9 The Magic Behind the Scenes When the multiselect object is rendered, the table multiselectActionIdTbl stores Boolean values used to manage which dynamic commands are available Doc1.htm Doc2.htm Doc3.htm Doc4.xml Doc5.htm Doc6.htm... checkoutcheckincancelco... 001111001111 110000110000 110000110000 Slide 11 2006 EMC Corporation. All rights reserved. Grokking the Paradigm10 Simple Configurations Have High Value The most elaborate, complex behavior is pretty much handled for you As a result, the only thing you really need to do is reference a control and action on the JSP, and leave the work to the server at runtime Slide 12 2006 EMC Corporation. All rights reserved. Grokking the Paradigm11 Adding an Action Link Copying toolbar.jsp In unstripped.jar, locate toolbar.jsp and copy it to the /custom/toolbar directory Slide 13 2006 EMC Corporation. All rights reserved. Grokking the Paradigm12 Adding an Action Link Copying toolbar_component.xml Locate the /webtop/config/toolbar_component.xml configuration file and copy it to the custom/config directory Slide 14 2006 EMC Corporation. All rights reserved. Grokking the Paradigm13 Adding an Action Link Configuration Reconfigure the toolbar component to look for our custom page... /custom/toolbar/toolbar.jsp... Slide 15 ' />"> 2006 EMC Corporation. All rights reserved. Grokking the Paradigm14 Adding an Action Link Modifying toolbar.jsp Note the script calls at the top of toolbar.jsp. These provide access to the utility scripts that support common form behaviors and dynamic actionsSlide 16 2006 EMC Corporation. All rights reserved. Grokking the Paradigm15 Adding an Action Link for the Rename command To add the Rename command to the toolbar, I can add another cell to the HTML table and insert this minimal code:Slide 17 2006 EMC Corporation. All rights reserved. Grokking the Paradigm16 Adding an Action Link for the Rename command Heres the Rename action link we just added: Slide 18 2006 EMC Corporation. All rights reserved. Grokking the Paradigm17 Adding an Action Link for the Rename command We can add more attributes to improve the look and feelSlide 19 2006 EMC Corporation. All rights reserved. Grokking the Paradigm18 Adding an Action Link for the Rename command Heres the Rename action link with formatting: Slide 20