Hi everybody,
Is the freemarker property <@s.property value="parameters.body"/> in
template/simple/submit.ftl usefull ?
It is just set for the input of type image and not for the other (submit and
button types)
<#if parameters.type?? && parameters.type=="image">
<@s.property value="parameters.body"/>
<input type="image"<#rt/>
<#if parameters.label??>
...
</#if>
Consequently, when using the struts tag <s:submit type="image" src=""> I obtain
the following stack trace in debug mode :
Rendering template /template/simple/submit
16:56:40,862 BUG kerTemplateEngine [-9000-Processor20] Rendering template
/template/simple/submit.ftl
16:56:40,862 BUG pPropertyAccessor [-9000-Processor20] Entering getProperty
(ognl.ognlcont...@1c8ed8be,{templateDir=template, theme=simple,
dynamicAttributes={}, label=Continuer, onclick=$('textChatFormModalBox').action
='desactivateTextChat.do';, title=Continuer, nameValue=Submit, id=proceed,
type=image, align=right, src=ihm/images/fr/btn_proceed_fr.gif},body)
16:56:40,862 BUG ectTypeDeterminer [-9000-Processor20] Error while retrieving
generic property class for property=parameters
java.lang.NullPointerException
at
com.opensymphony.xwork2.conversion.impl.DefaultObjectTypeDeterminer.getClass(DefaultObjectTypeDeterminer.java:314)
at
com.opensymphony.xwork2.conversion.impl.DefaultObjectTypeDeterminer.getKeyClass(DefaultObjectTypeDeterminer.java:93)
at
com.opensymphony.xwork2.ognl.accessor.XWorkMapPropertyAccessor.getProperty(XWorkMapPropertyAccessor.java:93)
at ognl.OgnlRuntime.getProperty(OgnlRuntime.java:2230)
at ognl.ASTProperty.getValueBody(ASTProperty.java:114)
at ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:212)
at ognl.SimpleNode.getValue(SimpleNode.java:258)
at ognl.ASTChain.getValueBody(ASTChain.java:141)
at ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:212)
at ognl.SimpleNode.getValue(SimpleNode.java:258)
at ognl.Ognl.getValue(Ognl.java:494)
at com.opensymphony.xwork2.ognl.OgnlUtil.getValue(OgnlUtil.java:217)
at
com.opensymphony.xwork2.ognl.OgnlValueStack.getValue(OgnlValueStack.java:342)
at
com.opensymphony.xwork2.ognl.OgnlValueStack.tryFindValue(OgnlValueStack.java:331)
at
com.opensymphony.xwork2.ognl.OgnlValueStack.tryFindValueWhenExpressionIsNotNull(OgnlValueStack.java:307)
at
com.opensymphony.xwork2.ognl.OgnlValueStack.findValue(OgnlValueStack.java:293)
at org.apache.struts2.components.Property.start(Property.java:162)
at
org.apache.struts2.views.freemarker.tags.CallbackWriter.onStart(CallbackWriter.java:73)
at freemarker.core.Environment.visit(Environment.java:296)
at freemarker.core.UnifiedCall.accept(UnifiedCall.java:130)
at freemarker.core.Environment.visit(Environment.java:210)
at freemarker.core.MixedContent.accept(MixedContent.java:92)
at freemarker.core.Environment.visit(Environment.java:210)
...
I could provide the complete stack trace if needed.
Thanks,
Olivier Sagit
[email protected]
*********************************
This message and any attachments (the "message") are confidential and intended
solely for the addressees.
Any unauthorised use or dissemination is prohibited.
Messages are susceptible to alteration.
France Telecom Group shall not be liable for the message if altered, changed or
falsified.
If you are not the intended addressee of this message, please cancel it
immediately and inform the sender.
********************************
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]