History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: XW-220
Type: Bug Bug
Status: Closed Closed
Resolution: Won't Fix
Priority: Blocker Blocker
Assignee: Unassigned
Reporter: Francisco Hernandez
Votes: 2
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
XWork

OgnlValueStack.findValue doesnt use custom converter when converting to String.class

Created: 09/Sep/04 08:51 PM   Updated: 19/Oct/04 11:31 PM
Component/s: None
Affects Version/s: 1.0.3
Fix Version/s: 1.0.4

File Attachments: 1. Zip Archive xw-220.zip (7 kb)



 Description  « Hide
im trying to use a custom ognl converter but it doesnt get called when trying to convert the object to String.class

heres the mailing list thread i started last month: https://webwork.dev.java.net/servlets/BrowseList?listName=dev&from=95493&to=95493&count=12&by=thread&paged=false
never found a solution, i thought that maybe i was writing the converter incorrectly but that doesnt seem to be the case

calling OgnlValueStack.findValue("tempModel", String.class) always returns null, so the property tag never displays anything for a property that uses a converter, for now I have to always use value="foo.toString()" , foo being a property that uses a custom converter

heres the output of the example im attaching that displays the problem


OgnlValueStack.findValue("tempModel", String.class):null
OgnlValueStack.findValue("tempModel"):pkg.TempModel.hashCode: 31416097, pkg.TempModel.data: TempModelData
OgnlValueStack.findValue("tempModel").toString():pkg.TempModel.hashCode: 31416097, pkg.TempModel.data: TempModelData
OgnlValueStack.findValue("tempModel", TempModel.class):null
ww:property value="tempModel == null":false
ww:property value="tempModel":
ww:property value="tempModel.getClass()":class pkg.TempModel
ww:property value="tempModel.toString()":pkg.TempModel.hashCode: 31416097, pkg.TempModel.data: TempModelData

 All   Comments   Change History      Sort Order:
Patrick Lightbody - [19/Oct/04 11:31 PM ]
Francisco says it can be closed.... sooo.....