[
https://issues.jboss.org/browse/GTNPORTAL-2373?page=com.atlassian.jira.pl...
]
RH Bugzilla Integration commented on GTNPORTAL-2373:
----------------------------------------------------
Jared MORGAN <jmorgan(a)redhat.com> made a comment on [bug
824863|https://bugzilla.redhat.com/show_bug.cgi?id=824863]
Technical note updated. If any revisions are required, please edit the "Technical
Notes" field
accordingly. All revisions will be proofread by the Engineering Content Services
team.
Diffed Contents:
@@ -1 +1 @@
-If a GateIn Template file (*.gtmpl) contained an <input> directive that declared a
variable as a value, and that variable resolved to null, the word "null" would
be substituted for the value instead of the value parameter being present, but undefined.
For example, <input class="key" type="text"
name="key" value="${key}"/> resolved to <input
class="key" type="text" name="key"
value="null"/>, instead of <input class="key"
type="text" name="key" value/>. The fix corrects the way null
values are handled, and now prints undefined parameters, instead of printing null as the
parameter value.+If a GateIn Template file (*.gtmpl) contained an <input>
directive that declared a variable as a value, and that variable resolved to null, the
word "null" would be substituted for the value instead of the value parameter
being present, but undefined. For example, <input class="key"
type="text" name="key" value="${key}"/> resolved to
<input class="key" type="text" name="key"
value="null"/>, instead of <input class="key"
type="text" name="key" value/>. The fix corrects the way null
values are handled, and now prints undefined parameters, instead of printing null as the
parameter value.
groovy template should not print "null" string when
variable is null
--------------------------------------------------------------------
Key: GTNPORTAL-2373
URL:
https://issues.jboss.org/browse/GTNPORTAL-2373
Project: GateIn Portal
Issue Type: Enhancement
Security Level: Public(Everyone can see)
Reporter: kien nguyen
Priority: Minor
Fix For: 3.4.0.Final
Attachments: GTNPORTAL-2373.patch
In .gtmpl file, I use: <input class="key" type="text"
name="key" value="${key}"/>
And if "key" variable is null, I will get "null" string in input
like: <input type="text" name="key" value="null">
I think it should not be, we should print nothing when variable is null, for example:
<input type="text" name="key" value>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira