You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Bob Tiernay (JIRA)" <ji...@apache.org> on 2007/12/11 02:31:33 UTC
[jira] Created: (WW-2367) Custom StrutsTypeConverter's
convertToString not called
Custom StrutsTypeConverter's convertToString not called
-------------------------------------------------------
Key: WW-2367
URL: https://issues.apache.org/struts/browse/WW-2367
Project: Struts 2
Issue Type: Bug
Affects Versions: 2.0.11
Reporter: Bob Tiernay
Assignee: Don Brown
It appears as though a class that is registered in xwork-conversion.properties that extends StrutsTypeConverter will never have it's convertToString method invoked as part of the normal ognl processing. This is most evident in the case of a converter that is required in a <s:select> tag.
An interesting thing to note is that XWorkConverter is being invoked rather than StrutsTypeConverter. Also TextParseUtil.translateVariables appears to not be able to find the correct converter in this context.
A few other users have also noticed this issue and have commented on it here:
http://www.nabble.com/Re:-TypeConverter-problems-p13545755s2369.html
http://www.nabble.com/Struts-2-Multi-Level-Type-Conversion-t4802911.html
http://www.nabble.com/-S2--Issue-with-Type-Conversion-and-Select-Boxes-t4864875.html
http://www.opensubscriber.com/message/user@struts.apache.org/7986658.html
http://permalink.gmane.org/gmane.comp.jakarta.struts.user/148485
http://permalink.gmane.org/gmane.comp.jakarta.struts.user/148294
http://permalink.gmane.org/gmane.comp.java.appfuse.user/28961
http://www.roseindia.net/tutorialhelp/comment/25324
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (WW-2367) Custom StrutsTypeConverter's
convertToString not called
Posted by "Musachy Barroso (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/struts/browse/WW-2367?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=45806#action_45806 ]
Musachy Barroso commented on WW-2367:
-------------------------------------
Can someone provide an example of their actual jsp, converter and object being converter? Does this problem only happens on nested object in the select tag? here is what I did to replicate it:
xwork-conversion.properties:
org.apache.struts2.showcase.ConverterObject=org.apache.struts2.showcase.MyConverter
TestConverterObject .java:
public class TestConverterObject {
private String name;
private String value;
public TestConverterObject(String name, String value) {
this.name = name;
this.value = value;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getValue() {
return value;
}
public void setValue(String value) {
this.value = value;
}
}
MyConverter .java:
public class MyConverter extends StrutsTypeConverter {
@Override
public Object convertFromString(Map context, String[] values, Class toClass) {
return null; //To change body of implemented methods use File | Settings | File Templates.
}
@Override
public String convertToString(Map context, Object o) {
ConverterObject obj = (ConverterObject) o;
return obj.getName() + obj.getValue(); //To change body of implemented methods use File | Settings | File Templates.
}
}
jsp:
<s:select list="objects" name="objects" />
The list was initialized with a new TestConverterObject("A", "B"); and the generated html was:
<select name="objects" id="objects">
<option value="org.apache.struts2.showcase.ConverterObject@1a64562" selected="selected">AB</option>
</select>
so the converter was indeed called
> Custom StrutsTypeConverter's convertToString not called
> -------------------------------------------------------
>
> Key: WW-2367
> URL: https://issues.apache.org/struts/browse/WW-2367
> Project: Struts 2
> Issue Type: Bug
> Affects Versions: 2.0.11.2, 2.1.3
> Reporter: Bob Tiernay
> Priority: Critical
> Fix For: 2.1.7
>
>
> It appears as though a class that is registered in xwork-conversion.properties that extends StrutsTypeConverter will never have it's convertToString method invoked as part of the normal ognl processing. This is most evident in the case of a converter that is required in a <s:select> tag.
> An interesting thing to note is that XWorkConverter is being invoked rather than StrutsTypeConverter. Also TextParseUtil.translateVariables appears to not be able to find the correct converter in this context.
> A few other users have also noticed this issue and have commented on it here:
> http://www.nabble.com/Re:-TypeConverter-problems-p13545755s2369.html
> http://www.nabble.com/Struts-2-Multi-Level-Type-Conversion-t4802911.html
> http://www.nabble.com/-S2--Issue-with-Type-Conversion-and-Select-Boxes-t4864875.html
> http://www.opensubscriber.com/message/user@struts.apache.org/7986658.html
> http://permalink.gmane.org/gmane.comp.jakarta.struts.user/148485
> http://permalink.gmane.org/gmane.comp.jakarta.struts.user/148294
> http://permalink.gmane.org/gmane.comp.java.appfuse.user/28961
> http://www.roseindia.net/tutorialhelp/comment/25324
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (WW-2367) Custom StrutsTypeConverter's
convertToString not called
Posted by "David Connard (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/struts/browse/WW-2367?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=44008#action_44008 ]
David Connard commented on WW-2367:
-----------------------------------
Re: "Don Brown and has indicated this was fixed in some later version" - sorry, but I don't think this is the case.
I have run into this issue on Struts 2.0.11, and have just spend half a day upgrading to Struts 2.1.2 in the hope that it might be fixed there.... with no luck.
Yes, I ran into the issue in particular with a <s:select> tag. It appears that the toString() method of my DAO objects is being called instead of the convertToString() method of my StrutsTypeConvertor. If however I put the "current" DAO object into an <s:textfield>, I do go via the appropriate convertToString() method.
Any idea when we can expect a fix...? This is an annoying issue - meaning we have to manually specify how to convert each set of <s:select> list data.
> Custom StrutsTypeConverter's convertToString not called
> -------------------------------------------------------
>
> Key: WW-2367
> URL: https://issues.apache.org/struts/browse/WW-2367
> Project: Struts 2
> Issue Type: Bug
> Affects Versions: 2.0.11
> Reporter: Bob Tiernay
> Assignee: Don Brown
> Priority: Critical
> Fix For: Future
>
>
> It appears as though a class that is registered in xwork-conversion.properties that extends StrutsTypeConverter will never have it's convertToString method invoked as part of the normal ognl processing. This is most evident in the case of a converter that is required in a <s:select> tag.
> An interesting thing to note is that XWorkConverter is being invoked rather than StrutsTypeConverter. Also TextParseUtil.translateVariables appears to not be able to find the correct converter in this context.
> A few other users have also noticed this issue and have commented on it here:
> http://www.nabble.com/Re:-TypeConverter-problems-p13545755s2369.html
> http://www.nabble.com/Struts-2-Multi-Level-Type-Conversion-t4802911.html
> http://www.nabble.com/-S2--Issue-with-Type-Conversion-and-Select-Boxes-t4864875.html
> http://www.opensubscriber.com/message/user@struts.apache.org/7986658.html
> http://permalink.gmane.org/gmane.comp.jakarta.struts.user/148485
> http://permalink.gmane.org/gmane.comp.jakarta.struts.user/148294
> http://permalink.gmane.org/gmane.comp.java.appfuse.user/28961
> http://www.roseindia.net/tutorialhelp/comment/25324
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (WW-2367) Custom StrutsTypeConverter's
convertToString not called
Posted by "Musachy Barroso (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/struts/browse/WW-2367?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Musachy Barroso updated WW-2367:
--------------------------------
Fix Version/s: (was: Future)
2.1.7
Assignee: (was: Don Brown)
> Custom StrutsTypeConverter's convertToString not called
> -------------------------------------------------------
>
> Key: WW-2367
> URL: https://issues.apache.org/struts/browse/WW-2367
> Project: Struts 2
> Issue Type: Bug
> Affects Versions: 2.0.11.2, 2.1.3
> Reporter: Bob Tiernay
> Priority: Critical
> Fix For: 2.1.7
>
>
> It appears as though a class that is registered in xwork-conversion.properties that extends StrutsTypeConverter will never have it's convertToString method invoked as part of the normal ognl processing. This is most evident in the case of a converter that is required in a <s:select> tag.
> An interesting thing to note is that XWorkConverter is being invoked rather than StrutsTypeConverter. Also TextParseUtil.translateVariables appears to not be able to find the correct converter in this context.
> A few other users have also noticed this issue and have commented on it here:
> http://www.nabble.com/Re:-TypeConverter-problems-p13545755s2369.html
> http://www.nabble.com/Struts-2-Multi-Level-Type-Conversion-t4802911.html
> http://www.nabble.com/-S2--Issue-with-Type-Conversion-and-Select-Boxes-t4864875.html
> http://www.opensubscriber.com/message/user@struts.apache.org/7986658.html
> http://permalink.gmane.org/gmane.comp.jakarta.struts.user/148485
> http://permalink.gmane.org/gmane.comp.jakarta.struts.user/148294
> http://permalink.gmane.org/gmane.comp.java.appfuse.user/28961
> http://www.roseindia.net/tutorialhelp/comment/25324
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (WW-2367) Custom StrutsTypeConverter's
convertToString not called
Posted by "Meikel Bode (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/struts/browse/WW-2367?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=46209#action_46209 ]
Meikel Bode commented on WW-2367:
---------------------------------
convertToString is also not called for Text-Tag <s:text>. convertFromString is working as expected.
> Custom StrutsTypeConverter's convertToString not called
> -------------------------------------------------------
>
> Key: WW-2367
> URL: https://issues.apache.org/struts/browse/WW-2367
> Project: Struts 2
> Issue Type: Bug
> Affects Versions: 2.0.11.2, 2.1.3
> Reporter: Bob Tiernay
> Priority: Critical
> Fix For: 2.1.7
>
>
> It appears as though a class that is registered in xwork-conversion.properties that extends StrutsTypeConverter will never have it's convertToString method invoked as part of the normal ognl processing. This is most evident in the case of a converter that is required in a <s:select> tag.
> An interesting thing to note is that XWorkConverter is being invoked rather than StrutsTypeConverter. Also TextParseUtil.translateVariables appears to not be able to find the correct converter in this context.
> A few other users have also noticed this issue and have commented on it here:
> http://www.nabble.com/Re:-TypeConverter-problems-p13545755s2369.html
> http://www.nabble.com/Struts-2-Multi-Level-Type-Conversion-t4802911.html
> http://www.nabble.com/-S2--Issue-with-Type-Conversion-and-Select-Boxes-t4864875.html
> http://www.opensubscriber.com/message/user@struts.apache.org/7986658.html
> http://permalink.gmane.org/gmane.comp.jakarta.struts.user/148485
> http://permalink.gmane.org/gmane.comp.jakarta.struts.user/148294
> http://permalink.gmane.org/gmane.comp.java.appfuse.user/28961
> http://www.roseindia.net/tutorialhelp/comment/25324
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (WW-2367) Custom StrutsTypeConverter's
convertToString not called
Posted by "Bob Tiernay (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/struts/browse/WW-2367?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Bob Tiernay updated WW-2367:
----------------------------
Don Brown and has indicated this was fixed in some later version. Perhaps he can shed some light as to the version.
> Custom StrutsTypeConverter's convertToString not called
> -------------------------------------------------------
>
> Key: WW-2367
> URL: https://issues.apache.org/struts/browse/WW-2367
> Project: Struts 2
> Issue Type: Bug
> Affects Versions: 2.0.11
> Reporter: Bob Tiernay
> Assignee: Don Brown
> Fix For: Future
>
>
> It appears as though a class that is registered in xwork-conversion.properties that extends StrutsTypeConverter will never have it's convertToString method invoked as part of the normal ognl processing. This is most evident in the case of a converter that is required in a <s:select> tag.
> An interesting thing to note is that XWorkConverter is being invoked rather than StrutsTypeConverter. Also TextParseUtil.translateVariables appears to not be able to find the correct converter in this context.
> A few other users have also noticed this issue and have commented on it here:
> http://www.nabble.com/Re:-TypeConverter-problems-p13545755s2369.html
> http://www.nabble.com/Struts-2-Multi-Level-Type-Conversion-t4802911.html
> http://www.nabble.com/-S2--Issue-with-Type-Conversion-and-Select-Boxes-t4864875.html
> http://www.opensubscriber.com/message/user@struts.apache.org/7986658.html
> http://permalink.gmane.org/gmane.comp.jakarta.struts.user/148485
> http://permalink.gmane.org/gmane.comp.jakarta.struts.user/148294
> http://permalink.gmane.org/gmane.comp.java.appfuse.user/28961
> http://www.roseindia.net/tutorialhelp/comment/25324
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (WW-2367) Custom StrutsTypeConverter's
convertToString not called
Posted by "Antony Lees (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/struts/browse/WW-2367?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=45805#action_45805 ]
Antony Lees commented on WW-2367:
---------------------------------
Well, this isn't fixed in the latest version (2.1.6) - the convertToString() is still not called
> Custom StrutsTypeConverter's convertToString not called
> -------------------------------------------------------
>
> Key: WW-2367
> URL: https://issues.apache.org/struts/browse/WW-2367
> Project: Struts 2
> Issue Type: Bug
> Affects Versions: 2.0.11.2, 2.1.3
> Reporter: Bob Tiernay
> Assignee: Don Brown
> Priority: Critical
> Fix For: Future
>
>
> It appears as though a class that is registered in xwork-conversion.properties that extends StrutsTypeConverter will never have it's convertToString method invoked as part of the normal ognl processing. This is most evident in the case of a converter that is required in a <s:select> tag.
> An interesting thing to note is that XWorkConverter is being invoked rather than StrutsTypeConverter. Also TextParseUtil.translateVariables appears to not be able to find the correct converter in this context.
> A few other users have also noticed this issue and have commented on it here:
> http://www.nabble.com/Re:-TypeConverter-problems-p13545755s2369.html
> http://www.nabble.com/Struts-2-Multi-Level-Type-Conversion-t4802911.html
> http://www.nabble.com/-S2--Issue-with-Type-Conversion-and-Select-Boxes-t4864875.html
> http://www.opensubscriber.com/message/user@struts.apache.org/7986658.html
> http://permalink.gmane.org/gmane.comp.jakarta.struts.user/148485
> http://permalink.gmane.org/gmane.comp.jakarta.struts.user/148294
> http://permalink.gmane.org/gmane.comp.java.appfuse.user/28961
> http://www.roseindia.net/tutorialhelp/comment/25324
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (WW-2367) Custom StrutsTypeConverter's
convertToString not called
Posted by "Musachy Barroso (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/struts/browse/WW-2367?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Musachy Barroso resolved WW-2367.
---------------------------------
Resolution: Fixed
Fixed in struts trunk. If you can't use head, you can overwrite the simple.ftl template with this patch:
Index: select.ftl
===================================================================
--- select.ftl (revision 758256)
+++ select.ftl (working copy)
@@ -60,14 +60,14 @@
<#if parameters.listKey??>
<#if stack.findValue(parameters.listKey)??>
<#assign itemKey = stack.findValue(parameters.listKey)/>
- <#assign itemKeyStr = itemKey.toString()/>
+ <#assign itemKeyStr = stack.findString(parameters.listKey)/>
<#else>
<#assign itemKey = ''/>
<#assign itemKeyStr = ''/>
</#if>
<#else>
<#assign itemKey = stack.findValue('top')/>
- <#assign itemKeyStr = itemKey.toString()/>
+ <#assign itemKeyStr = stack.findString('top')>
</#if>
<#if parameters.listValue??>
<#if stack.findString(parameters.listValue)??>
> Custom StrutsTypeConverter's convertToString not called
> -------------------------------------------------------
>
> Key: WW-2367
> URL: https://issues.apache.org/struts/browse/WW-2367
> Project: Struts 2
> Issue Type: Bug
> Affects Versions: 2.0.11.2, 2.1.3
> Reporter: Bob Tiernay
> Priority: Critical
> Fix For: 2.1.7
>
>
> It appears as though a class that is registered in xwork-conversion.properties that extends StrutsTypeConverter will never have it's convertToString method invoked as part of the normal ognl processing. This is most evident in the case of a converter that is required in a <s:select> tag.
> An interesting thing to note is that XWorkConverter is being invoked rather than StrutsTypeConverter. Also TextParseUtil.translateVariables appears to not be able to find the correct converter in this context.
> A few other users have also noticed this issue and have commented on it here:
> http://www.nabble.com/Re:-TypeConverter-problems-p13545755s2369.html
> http://www.nabble.com/Struts-2-Multi-Level-Type-Conversion-t4802911.html
> http://www.nabble.com/-S2--Issue-with-Type-Conversion-and-Select-Boxes-t4864875.html
> http://www.opensubscriber.com/message/user@struts.apache.org/7986658.html
> http://permalink.gmane.org/gmane.comp.jakarta.struts.user/148485
> http://permalink.gmane.org/gmane.comp.jakarta.struts.user/148294
> http://permalink.gmane.org/gmane.comp.java.appfuse.user/28961
> http://www.roseindia.net/tutorialhelp/comment/25324
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (WW-2367) Custom StrutsTypeConverter's
convertToString not called
Posted by "Musachy Barroso (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/struts/browse/WW-2367?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Musachy Barroso updated WW-2367:
--------------------------------
Comment: was deleted
(was: Can someone provide an example of their actual jsp, converter and object being converter? Does this problem only happens on nested object in the select tag? here is what I did to replicate it:
xwork-conversion.properties:
org.apache.struts2.showcase.ConverterObject=org.apache.struts2.showcase.MyConverter
TestConverterObject .java:
public class TestConverterObject {
private String name;
private String value;
public TestConverterObject(String name, String value) {
this.name = name;
this.value = value;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getValue() {
return value;
}
public void setValue(String value) {
this.value = value;
}
}
MyConverter .java:
public class MyConverter extends StrutsTypeConverter {
@Override
public Object convertFromString(Map context, String[] values, Class toClass) {
return null; //To change body of implemented methods use File | Settings | File Templates.
}
@Override
public String convertToString(Map context, Object o) {
ConverterObject obj = (ConverterObject) o;
return obj.getName() + obj.getValue(); //To change body of implemented methods use File | Settings | File Templates.
}
}
jsp:
<s:select list="objects" name="objects" />
The list was initialized with a new TestConverterObject("A", "B"); and the generated html was:
<select name="objects" id="objects">
<option value="org.apache.struts2.showcase.ConverterObject@1a64562" selected="selected">AB</option>
</select>
so the converter was indeed called
)
> Custom StrutsTypeConverter's convertToString not called
> -------------------------------------------------------
>
> Key: WW-2367
> URL: https://issues.apache.org/struts/browse/WW-2367
> Project: Struts 2
> Issue Type: Bug
> Affects Versions: 2.0.11.2, 2.1.3
> Reporter: Bob Tiernay
> Priority: Critical
> Fix For: 2.1.7
>
>
> It appears as though a class that is registered in xwork-conversion.properties that extends StrutsTypeConverter will never have it's convertToString method invoked as part of the normal ognl processing. This is most evident in the case of a converter that is required in a <s:select> tag.
> An interesting thing to note is that XWorkConverter is being invoked rather than StrutsTypeConverter. Also TextParseUtil.translateVariables appears to not be able to find the correct converter in this context.
> A few other users have also noticed this issue and have commented on it here:
> http://www.nabble.com/Re:-TypeConverter-problems-p13545755s2369.html
> http://www.nabble.com/Struts-2-Multi-Level-Type-Conversion-t4802911.html
> http://www.nabble.com/-S2--Issue-with-Type-Conversion-and-Select-Boxes-t4864875.html
> http://www.opensubscriber.com/message/user@struts.apache.org/7986658.html
> http://permalink.gmane.org/gmane.comp.jakarta.struts.user/148485
> http://permalink.gmane.org/gmane.comp.jakarta.struts.user/148294
> http://permalink.gmane.org/gmane.comp.java.appfuse.user/28961
> http://www.roseindia.net/tutorialhelp/comment/25324
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (WW-2367) Custom StrutsTypeConverter's
convertToString not called
Posted by "Krzysztof Dębski (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/struts/browse/WW-2367?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Krzysztof Dębski updated WW-2367:
---------------------------------
Affects Version/s: (was: 2.0.11)
2.1.3
2.0.11.2
> Custom StrutsTypeConverter's convertToString not called
> -------------------------------------------------------
>
> Key: WW-2367
> URL: https://issues.apache.org/struts/browse/WW-2367
> Project: Struts 2
> Issue Type: Bug
> Affects Versions: 2.0.11.2, 2.1.3
> Reporter: Bob Tiernay
> Assignee: Don Brown
> Priority: Critical
> Fix For: Future
>
>
> It appears as though a class that is registered in xwork-conversion.properties that extends StrutsTypeConverter will never have it's convertToString method invoked as part of the normal ognl processing. This is most evident in the case of a converter that is required in a <s:select> tag.
> An interesting thing to note is that XWorkConverter is being invoked rather than StrutsTypeConverter. Also TextParseUtil.translateVariables appears to not be able to find the correct converter in this context.
> A few other users have also noticed this issue and have commented on it here:
> http://www.nabble.com/Re:-TypeConverter-problems-p13545755s2369.html
> http://www.nabble.com/Struts-2-Multi-Level-Type-Conversion-t4802911.html
> http://www.nabble.com/-S2--Issue-with-Type-Conversion-and-Select-Boxes-t4864875.html
> http://www.opensubscriber.com/message/user@struts.apache.org/7986658.html
> http://permalink.gmane.org/gmane.comp.jakarta.struts.user/148485
> http://permalink.gmane.org/gmane.comp.jakarta.struts.user/148294
> http://permalink.gmane.org/gmane.comp.java.appfuse.user/28961
> http://www.roseindia.net/tutorialhelp/comment/25324
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (WW-2367) Custom StrutsTypeConverter's
convertToString not called
Posted by "frediani adrien (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/struts/browse/WW-2367?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
frediani adrien updated WW-2367:
--------------------------------
Flags: [Important]
Priority: Critical (was: Major)
> Custom StrutsTypeConverter's convertToString not called
> -------------------------------------------------------
>
> Key: WW-2367
> URL: https://issues.apache.org/struts/browse/WW-2367
> Project: Struts 2
> Issue Type: Bug
> Affects Versions: 2.0.11
> Reporter: Bob Tiernay
> Assignee: Don Brown
> Priority: Critical
> Fix For: Future
>
>
> It appears as though a class that is registered in xwork-conversion.properties that extends StrutsTypeConverter will never have it's convertToString method invoked as part of the normal ognl processing. This is most evident in the case of a converter that is required in a <s:select> tag.
> An interesting thing to note is that XWorkConverter is being invoked rather than StrutsTypeConverter. Also TextParseUtil.translateVariables appears to not be able to find the correct converter in this context.
> A few other users have also noticed this issue and have commented on it here:
> http://www.nabble.com/Re:-TypeConverter-problems-p13545755s2369.html
> http://www.nabble.com/Struts-2-Multi-Level-Type-Conversion-t4802911.html
> http://www.nabble.com/-S2--Issue-with-Type-Conversion-and-Select-Boxes-t4864875.html
> http://www.opensubscriber.com/message/user@struts.apache.org/7986658.html
> http://permalink.gmane.org/gmane.comp.jakarta.struts.user/148485
> http://permalink.gmane.org/gmane.comp.jakarta.struts.user/148294
> http://permalink.gmane.org/gmane.comp.java.appfuse.user/28961
> http://www.roseindia.net/tutorialhelp/comment/25324
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.