Produced by Araxis Merge on 3/24/2017 5:17:20 PM Eastern Daylight Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.
| # | Location | File | Last Modified |
|---|---|---|---|
| 1 | MHV_2017.2.0.0 Code In Flight.zip\National Portal\mhv_vital_signs\mhv-vital-signs-portal-portlet\src\main\java\gov\va\med\mhv\vitals\web\controller | TableController.java | Wed Jan 4 16:54:14 2017 UTC |
| 2 | MHV_2017.2.0.0 Code In Flight.zip\National Portal\mhv_vital_signs\mhv-vital-signs-portal-portlet\src\main\java\gov\va\med\mhv\vitals\web\controller | TableController.java | Fri Mar 24 20:49:07 2017 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 2 | 64 |
| Changed | 1 | 2 |
| Inserted | 0 | 0 |
| Removed | 0 | 0 |
| Whitespace | |
|---|---|
| Character case | Differences in character case are significant |
| Line endings | Differences in line endings (CR and LF characters) are ignored |
| CR/LF characters | Not shown in the comparison detail |
No regular expressions were active.
| 1 | package go v.va.med.m hv.vitals. web.contro ller; | |
| 2 | ||
| 3 | import jav ax.faces.b ean.Manage dBean; | |
| 4 | import jav ax.faces.b ean.Reques tScoped; | |
| 5 | import jav ax.faces.c ontext.Fac esContext; | |
| 6 | ||
| 7 | import org .primeface s.componen t.datatabl e.DataTabl e; | |
| 8 | ||
| 9 | /** | |
| 10 | * This Co ntroller a cts as a u tility to lookup tab les on the server vi a EL expre ssion. Th e last ref erence is cached | |
| 11 | * as an o ptimizatio n. If a n ew referen ce is requ ested, it clears the previous reference and replac es it. Fo r | |
| 12 | * request s that use just 1 ta ble, this is much mo re perform ant. Most important ly, this c ontroller is Request Scoped. | |
| 13 | * This wi ll elimina te the ses sion-table binding t hat is tri ggering th e defect i n producti on where C PU spins o ut of | |
| 14 | * control . | |
| 15 | * | |
| 16 | * @author PI I
|
|
| 17 | * | |
| 18 | */ | |
| 19 | @ManagedBe an(name="t ableContro ller") | |
| 20 | @RequestSc oped | |
| 21 | public cla ss TableCo ntroller { | |
| 22 | ||
| 23 | Da taTable ta ble = null ; | |
| 24 | St ring refer ence = nul l; | |
| 25 | ||
| 26 | pu blic DataT able table (String ta bleReferen ce) { | |
| 27 | if ( table == n ull || !ta bleReferen ce.equals( reference) ) { | |
| 28 | refere nce = tabl eReference ; | |
| 29 | table = (DataTab le) FacesC ontext.get CurrentIns tance().ge tViewRoot( ).findComp onent(tabl eReference ); | |
| 30 | } | |
| 31 | retu rn table; | |
| 32 | } | |
| 33 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.