Commits

Anonymous committed ec94da4

WW-616: fixed null problem

git-svn-id: http://svn.opensymphony.com/svn/webwork/trunk@522573baa09-0c28-0410-bef9-dab3c582ae83

Comments (0)

Files changed (2)

src/java/template/simple/label.vm

 #if ($parameters.id)               id="$!webwork.htmlEncode($parameters.id)"                #end
 #if ($parameters.cssClass)         class="$!webwork.htmlEncode($parameters.cssClass)"       #end
 #if ($parameters.cssStyle)         style="$!webwork.htmlEncode($parameters.cssStyle)"       #end
->$!webwork.htmlEncode($parameters.nameValue)</label>
+>#if ($parameters.nameValue)$!webwork.htmlEncode($parameters.nameValue)#end</label>

src/java/template/simple/textarea.vm

 #if ($parameters.id)               id="$!webwork.htmlEncode($parameters.id)"                #end
 #if ($parameters.cssClass)         class="$!webwork.htmlEncode($parameters.cssClass)"       #end
 #if ($parameters.cssStyle)         style="$!webwork.htmlEncode($parameters.cssStyle)"       #end
->$!webwork.htmlEncode($parameters.nameValue)</textarea>
+>#if ($parameters.nameValue)$!webwork.htmlEncode($parameters.nameValue)#end</textarea>