By Kate Soglaeva. » FormHandlers do’s » Droplets do’s » Repositories do’s 2 ATG Hints by Kate Soglaeva.

Slides:



Advertisements
Présentations similaires
Échanger connaissances et techniques sur les routes et le transport routier 1 The PIARC Website.
Advertisements

OTB Analog module: Input configuration with TSX PREMIUM (TSXCPP110)
les fournitures scolaires masculin! féminin! un crayon un stylo
Les pluriels Sometimes you cant just take one!. Les articles… There are « DEUX » articles that can show that something is plural. Les = the Les ciseaux,
Français 3 Chapitre 1 Grammaire 1. To conjugate –er, -ir and –re verbs in the present tense (to say that something is happening or happens), drop the.
Le conditionnel. -ais-ions -ais-iez -ait-aient Les fins.
Christiaan Hastings et Thierry Jesko. Imparfait Passé composé régulier Passé composé irrégulier Passé composé avec être.
TortoiseSVN N°. Subversion : pour quoi faire ? Avoir un espace de stockage commun – Tous les étudiants du SIGLIS ont un espace svn commun Partager vos.
Laboratoire de Bioinformatique des Génomes et des Réseaux Université Libre de Bruxelles, Belgique Introduction Statistics.
Qu’est-ce qu’il y a dans la salle de classe?
CSI2520, Hiver 2007 Programmation concurrente. CSI2520, Hiver 2007 Programmation concurrente La programmation est distribuée lorsque les processus ne.
CSI1502 Principes fondamentaux en conception des logiciels Chapter 8: Gestion des exceptions.
Branche Développement Le présent document contient des informations qui sont la propriété de France Télécom. L'acceptation de ce document par son destinataire.
Schéma de conception Factory Method Exemple Sylvain Giroux.
THE ADJECTIVES: BEAU, NOUVEAU AND VIEUX 1.
Dans la classe de français
Les articles indéfinis et définis au singulier Talking about one person or thing.
Nicolas Ribot Introduction aux triggers Nicolas Ribot - Licence GNU FDL - Version 1.1.
© and ® 2011 Vista Higher Learning, Inc.3A.2-1 Point de départ In both English and French, possessive adjectives express ownership or possession.
LES ARTICLES le français 1. Discussion Read the statements below and then discuss the questions. J’ai une amie française. Elle s’appelle Anne. J’ai un.
French 1 Chapter 2 Grammar 2
WINS Windows Internet Name Service. What is WINS?  It does name resolution (?!) DNS resolves IP numbers and FQDN ARP resolves IP numbers and MAC addresses.
Making PowerPoint Slides Avoiding the Pitfalls of Bad Slides.
1 Case Study 1: UNIX and LINUX Chapter History of unix 10.2 Overview of unix 10.3 Processes in unix 10.4 Memory management in unix 10.5 Input/output.
IP Multicast Text available on
Update on Edge BI pricing January ©2011 SAP AG. All rights reserved.2 Confidential What you told us about the new Edge BI pricing Full Web Intelligence.
Chapitre 5 Mots 2 Personne et Rien Ne…
CONJUGAISON.
Indefinite articles & plural of nouns
Formules en 2 étapes 1MPES4
Point de départ The verbs prendre (to take, to have) and boire (to drink), like être, avoir, and aller, are irregular. © and ® 2011 Vista Higher Learning,
There exists more negatives than just Ne…pas
Work: ISA8895 Implementation Section: Interoperability Chapter: B2O
Un Une des Indefinite Articles Un introduces masculine/singular nouns
Les Mots Négatifs Grammaire: page 315.
Point de départ In Leçon 2A, you learned the pattern of -er verbs. Verbs that end in –ir follow a different pattern. © and ® 2011 Vista Higher Learning,
MVC et applications Web
Être au pluriel Verbes: page 46.
ABAQUS I Summary Program Capability Components of an ABAQUS Model Elements, Materials and Procedures Modules (analysis, pre and post processing) Input.
Quantum Computer A New Era of Future Computing Ahmed WAFDI ??????
Point de départ You’ve already seen infinitives that end in -er and -ir. The infinitive forms of some French verbs end in -re. © and ® 2011 Vista Higher.
Développement d’applications interactives
Essai
La famille ER conjugaison
Les articles indéfinis et définis au singulier
Les Adjectifs.
Connaissez-vous la France ?
Connaissez-vous la France ?
Standards Certification Education & Training Publishing Conferences & Exhibits Automation Connections ISA EXPO 2006 Wed, 1:00 Oct 18.
1-1 Introduction to ArcGIS Introductions Who are you? Any GIS background? What do you want to get out of the class?
By:- Israr K. Raja Islamabad, Pakistan. Supply Chain Activities those Affect the Financial Performance Supply chain managers make decisions and use organizational.
The last grammatical concept
Schéma de conception Factory Method Exemple
Les Verbes Réfléchis What you do to yourself.
USE OF PASSIVE PASSIVE VOICE IS USED WHEN THE FOCUS IS ON THE ACTION. IT IS NOT IMPORTANT OR NOT KNOWN, HOWEVER, WHO OR WHAT IS PERFORMING THE ACTION.
Rapid Deployment Solution Real Estate Q1 and Q Best Practice Flow Diagrams.
Making PowerPoint Slides Avoiding the Pitfalls of Bad Slides.
POWERPOINT PRESENTATION FOR INTRODUCTION TO THE USE OF SPSS SOFTWARE FOR STATISTICAL ANALISYS BY AMINOU Faozyath UIL/PG2018/1866 JANUARY 2019.
Les adjectifs au pluriel
Variables et accès en Java
Chapitre 11 Exceptions.
Avoiding the Pitfalls of Bad Slides Tips to be Covered Outlines Slide Structure Fonts Colour Background Graphs Spelling and Grammar Conclusions Questions.
Les Mots Intérrogatifs
Lequel The Last Part.
Vouloir, Pouvoir, Être.
Les couleurs.
D’Accord 1 Leçon 3A.1 Descriptive adjectives (irregular adjectives, adjective placement-BAGS, and physical description.)
D’accord 2 Leçon 2B.2 Pronouns Y and EN.
Ouvrir, Offrir, Couvrir, Souffrir, Découvrir
Record a Presentation Use the Camtasia Add-in to reguivovcugkh ghjghkghkghkhcord your presentations. Start by going to the Add-ins tab.
Transcription de la présentation:

By Kate Soglaeva

» FormHandlers do’s » Droplets do’s » Repositories do’s 2 ATG Hints by Kate Soglaeva

3

4

5 HTML JSP Droplets ServicesManagers view presenter model Form Handlers Tags Xml, json Repositories Web Services

6 ATG Hints by Kate Soglaeva Manager Form Handler Form Form Value Object Business Object Repositories Field Validator 1 : 1 Request Business logic v alidation logic

7 ATG Hints by Kate Soglaeva Form Manager Form Handler Form Field Validator Business Object Repositories Droplet

8 ATG Hints by Kate Soglaeva JSP Form Handler MyFormHandler.properties successURL=/… errorURL=/… MyFormHandler.java checkFormRedirect (suc cessURL, errorURL); sendLocalRedirect();

9 ATG Hints by Kate Soglaeva

10 ATG Hints by Kate Soglaeva HTML JSP Droplets ServicesManagers view presenter model Html code

» ParameterName instead of the strings. public class GiftlistDroplet extends DynamoServlet { static final ParameterName PROFILE = ParameterName.getParameterName("profile");... public void service(DynamoHttpServletRequest pReq, DynamoHttpServletResponse pResp) throws ServletException, IOException {... Object profileObject = pReq.getObjectParameter(PROFILE);... } } 11 ATG Hints by Kate Soglaeva

<dsp:param name="key" param="childCategory.repositoryId"/> No description. 12 ATG Hints by Kate Soglaeva

13 ATG Hints by Kate Soglaeva

1.Go to jsp 2.Go to Cache dropletCache droplet 3.Go to productproduct 4.Refresh cache droplet page 14 ATG Hints by Kate Soglaeva

15 ATG Hints by Kate Soglaeva

RQLQueryRange 16 ATG Hints by Kate Soglaeva

17 ATG Hints by Kate Soglaeva

1.Go to stores pagestores page 2.Check codecode 3.Add sort properties 4.Add Range droplet 18 ATG Hints by Kate Soglaeva

19 ATG Hints by Kate Soglaeva

<item-descriptor name=“myHoliday" display-property="name" > 20 ATG Hints by Kate Soglaeva Noun Camel case lowercase, ‘_’

<property name="favouriteColours" data-type="array“ column-name="favourite_colours” component-data-type="string" /> 21 ATG Hints by Kate Soglaeva Noun Camel case lowercase, ‘_’

public class King extends GenericService { private RqlStatement weaponQuery; } 22 ATG Hints by Kate Soglaeva

# /com/kings/Arthur $class=com.kingdom.King $scope=global weaponQuery=name = ?0 23 ATG Hints by Kate Soglaeva

public class King extends GenericService { protected static RqlStatement weaponQuery; static { try { weaponQuery = RqlStatement.parseRqlStatement("name = ?0"); } catch (RepositoryException re) { re.printStackTrace(); } 24 ATG Hints by Kate Soglaeva

public String getLogin(String repositoryId, String profileType) { RepositoryItem profileItem = getProfileRepository(). getItem(getRepositoryId(), getProfileType()); String loginPropertyName = getPropertyManager().getLoginPropertyName(); String login = (String) profileItem. getPropertyValue(loginPropertyName); return login; } 25 ATG Hints by Kate Soglaeva

<property name=“address" item-type=“address“ cascade="update,delete" /> 26 ATG Hints by Kate Soglaeva

» Property in the same group is retrieve in the same select statement » Be default: property in the same group are in the same table 27 ATG Hints by Kate Soglaeva

Never user one primary table in more than one item descriptor Avoid derived properties Don’t use derived and transient in RQL 28 ATG Hints by Kate Soglaeva

29

30 ATG Hints by Kate Soglaeva

» ATG Order object must follow a specific transactional pattern to avoid ˃exceptions and deadlocks, ˃ConcurrentUpdateExceptions, ˃InvalidVersionExceptions 31 ATG Hints by Kate Soglaeva

TransactionLockService service = configuration.getTransactionLockFactory().getServiceInstance( profileId, ); service.acquireTransactionLock( profileId ); try { TransactionDemarcation td = new TransactionDemarcation(); td.begin( transactionManager ); boolean shouldRollback = false; try { synchronized( order ) { // do order updates orderManager.updateOrder( order ); } } catch (... e ) { shouldRollback = true; throw e; } finally { td.end( shouldRollback ); } } finally { service.releaseTransactionLock( profileId ); } 32 ATG Hints by Kate Soglaeva 1) Obtain local-lock on profile ID 2) Begin Transaction 3) Synchronize on Order 4) Modify Order 5) Call OrderManager.updateOrder 6) End Synchronization 7) End Transaction 8) Release local-lock on profile ID

Verify that the PageFilter in web.xml Pre-Compiling JSPs Recheck components scope Disable Performance Monitor Check loggingDebug

34 ATG Hints by Kate Soglaeva