Produced by Araxis Merge on 3/8/2018 10:15:10 AM Eastern Standard 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 | PRE_PPS-N_v3.0.1.zip\PS_PPS_ui\src\main\webapp\WEB-INF\tags | submit.tag | Fri Jan 12 15:42:52 2018 UTC |
2 | PRE_PPS-N_v3.0.1.zip\PS_PPS_ui\src\main\webapp\WEB-INF\tags | submit.tag | Mon Mar 5 20:21:58 2018 UTC |
Description | Between Files 1 and 2 |
|
---|---|---|
Text Blocks | Lines | |
Unchanged | 3 | 222 |
Changed | 2 | 4 |
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 | <%@ tag | |
2 | langua ge="java" | |
3 | body-c ontent="em pty"%> | |
4 | <%@ attrib ute | |
5 | name=" id" | |
6 | requir ed="false" | |
7 | type=" java.lang. String" | |
8 | descri ption="Opt ional HTML ID to giv e the butt on. If no ID is give n, the ID will be th e value of the key a ttribute p lus '.butt on'"%> | |
9 | <%@ attrib ute | |
10 | name=" key" | |
11 | requir ed="true" | |
12 | type=" java.lang. String" | |
13 | descri ption="Res ource bund le key for displayin g text in button."%> | |
14 | <%@ attrib ute | |
15 | name=" action" | |
16 | requir ed="false" | |
17 | type=" java.lang. String" | |
18 | descri ption="The optional action to set the fo rm to. If not set, w ill defaul t to the a ction on t he form."% > | |
19 | <%@ attrib ute | |
20 | name=" method" | |
21 | requir ed="false" | |
22 | type=" java.lang. String" | |
23 | descri ption="The optional method to set the fo rm to. If not set, w ill defaul t to the m ethod on t he form."% > | |
24 | <%@ attrib ute | |
25 | name=" onclick" | |
26 | requir ed="false" | |
27 | type=" java.lang. String" | |
28 | rtexpr value="tru e" | |
29 | descriptio n="Ja DN S ipt onclic k event."% > | |
30 | <%@ attrib ute | |
31 | name=" tabindex" | |
32 | requir ed="false" | |
33 | type=" java.lang. Integer" | |
34 | descri ption="Use d to set t he tab ord er of page elements. "%> | |
35 | <%@ attrib ute | |
36 | name=" disabled" | |
37 | requir ed="false" | |
38 | type=" java.lang. Boolean" | |
39 | descri ption="Opt ional bool ean value to disable the butto n. Default s to false ."%> | |
40 | <%@ attrib ute | |
41 | name=" cssStyle" | |
42 | requir ed="false" | |
43 | type=" java.lang. String" | |
44 | descri ption="CSS style HTM L attribut e passed o n to Strut s tags."%> | |
45 | <%@ attrib ute | |
46 | name=" cssClass" | |
47 | requir ed="false" | |
48 | type=" java.lang. String" | |
49 | descri ption="CSS class HTM L attribut e added to default P EPS classe s passed o n to Strut s tags."%> | |
50 | <% | |
51 | if (id = = null || id.trim(). length() < = 0) { | |
52 | jspC ontext.set Attribute( "id", key + ".button "); | |
53 | } | |
54 | ||
55 | if (disa bled == nu ll || !dis abled) { | |
56 | jspC ontext.set Attribute( "disabledV alue", "") ; | |
57 | } | |
58 | else { | |
59 | jspC ontext.set Attribute( "disabledV alue", "di sabled"); | |
60 | } | |
61 | ||
62 | String b uttonText = gov.va.m ed.pharmac y.peps.pre sentation. common.uti lity.JspTa gUtility.g etText(req uest, key) ; | |
63 | ||
64 | ||
65 | String b uttonCssCl ass; | |
66 | ||
67 | if (butt onText.len gth() > 26 ) { | |
68 | butt onCssClass = "wideBu tton4"; | |
69 | } | |
70 | else if (buttonTex t.length() > 21) { | |
71 | butt onCssClass = "wideBu tton3"; | |
72 | } | |
73 | else if (buttonTex t.length() > 16) { | |
74 | butt onCssClass = "wideBu tton2"; | |
75 | } | |
76 | else if (buttonTex t.length() > 11) { | |
77 | butt onCssClass = "wideBu tton"; | |
78 | } | |
79 | else { | |
80 | butt onCssClass = "button "; | |
81 | } | |
82 | ||
83 | // Set the submitBut ton Ja DN S ipt attrib ute on cli ck. It is used by th e peps:for m's onsubm it event w hile | |
84 | // disab ling all s ubmit butt ons. | |
85 | if (oncl ick != nul l) { | |
86 | oncl ick = "sub mitButton = this.nam e; " + onc lick; | |
87 | ||
88 | if ( !onclick.e ndsWith("; ")) { | |
89 | onclick += ";"; | |
90 | } | |
91 | } | |
92 | else { | |
93 | oncl ick = "sub mitButton = this.nam e;"; | |
94 | } | |
95 | ||
96 | jspConte xt.setAttr ibute("onc lick", onc lick); | |
97 | ||
98 | String n ame =""; | |
99 | if (meth od != null || action != null) { | |
100 | name = (method != null ? method : "") + ":" + (action != null ? action : " "); | |
101 | } | |
102 | %> | |
103 | <input | |
104 | ti tle="<%=bu ttonText%> " | |
105 | type=" submit" | |
106 | id="${ id}" | |
107 | name=" <%=name%>" | |
108 | value= "<%=button Text%>" | |
109 | class= "<%=button CssClass%> ${cssClas s}" | |
110 | style= "${cssStyl e}" | |
111 | onclic k="${oncli ck}" | |
112 | tabind ex="${tabi ndex}" | |
113 | <%= disabl ed != null && disabl ed ? "disa bled='disa bled'" : " "%> /> |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.