RE: submit of type image
Sorry I omitted this : My struts version is 2.2.1 Olivier Sagit -Message d'origine- De : Maurizio Cucchiara [mailto:maurizio.cucchi...@gmail.com] Envoyé : jeudi 25 novembre 2010 19:01 À : Struts Developers List Objet : Re: submit of type image Which struts version? I tried the following code and it works like a charm. s:submit type=image src=../images/image.gif/ 2010/11/25 osagit@orange-ftgroup.com: 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 osagit@orange-ftgroup.com * 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: dev-unsubscr...@struts.apache.org For additional commands, e-mail: dev-h...@struts.apache.org -- Maurizio Cucchiara - To unsubscribe, e-mail: dev-unsubscr...@struts.apache.org For additional commands, e-mail: dev-h...@struts.apache.org * 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
RE: submit of type image
I downloaded the struts2 samples 2.2.1 Ok in struts2-blank-2.2.1\example\Login.jsp I added s:submit type=image src=.../ to the form and as you said it works like a charm. But I did the same thing for the struts2-showcase-2.2.1/conversion/enterPersonsInfo.jsp form and it generates the error previously describe. Could you tell me if it's reproducable on your side with the struts2-showcase sample? JONAS_4_10_3 JDK 1.5.0.22 Struts 2.2.1 Thanks, Olivier Sagit -Message d'origine- De : Maurizio Cucchiara [mailto:maurizio.cucchi...@gmail.com] Envoyé : jeudi 25 novembre 2010 19:01 À : Struts Developers List Objet : Re: submit of type image Which struts version? I tried the following code and it works like a charm. s:submit type=image src=../images/image.gif/ 2010/11/25 osagit@orange-ftgroup.com: 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 osagit@orange-ftgroup.com * 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: dev-unsubscr...@struts.apache.org For additional commands, e-mail: dev-h...@struts.apache.org -- Maurizio Cucchiara - To unsubscribe, e-mail: dev-unsubscr...@struts.apache.org For additional commands, e-mail: dev-h...@struts.apache.org * This message and any attachments (the message) are confidential and intended solely for the addressees. Any
Re: submit of type image
Please take this discussion to the user list. This list is for discussion of the development of the framework itself. Thanks. -- Martin Cooper On Fri, Nov 26, 2010 at 8:07 AM, osagit@orange-ftgroup.com wrote: I downloaded the struts2 samples 2.2.1 Ok in struts2-blank-2.2.1\example\Login.jsp I added s:submit type=image src=.../ to the form and as you said it works like a charm. But I did the same thing for the struts2-showcase-2.2.1/conversion/enterPersonsInfo.jsp form and it generates the error previously describe. Could you tell me if it's reproducable on your side with the struts2-showcase sample? JONAS_4_10_3 JDK 1.5.0.22 Struts 2.2.1 Thanks, Olivier Sagit -Message d'origine- De : Maurizio Cucchiara [mailto:maurizio.cucchi...@gmail.com] Envoyé : jeudi 25 novembre 2010 19:01 À : Struts Developers List Objet : Re: submit of type image Which struts version? I tried the following code and it works like a charm. s:submit type=image src=../images/image.gif/ 2010/11/25 osagit@orange-ftgroup.com: 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 osagit@orange-ftgroup.com * 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: dev-unsubscr...@struts.apache.org For additional commands, e-mail: dev-h...@struts.apache.org -- Maurizio Cucchiara - To unsubscribe, e-mail: dev
submit of type image
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 osagit@orange-ftgroup.com * 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: dev-unsubscr...@struts.apache.org For additional commands, e-mail: dev-h...@struts.apache.org
Re: submit of type image
Which struts version? I tried the following code and it works like a charm. s:submit type=image src=../images/image.gif/ 2010/11/25 osagit@orange-ftgroup.com: 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 osagit@orange-ftgroup.com * 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: dev-unsubscr...@struts.apache.org For additional commands, e-mail: dev-h...@struts.apache.org -- Maurizio Cucchiara - To unsubscribe, e-mail: dev-unsubscr...@struts.apache.org For additional commands, e-mail: dev-h...@struts.apache.org