|
|
|
One more note, compiling xwork using the source distro was a PITA. I read on the mailing list that passing in -Dskip.ivy=true works, and it was what worked for me.
Whoops! I just noticed my index var was off in the code I submitted. In my loop I used "i" instead of "j". Attached is an updated file (note, this was done on the 1.2.1 codebase). Here's the code I'm talking about:
for (int j=0; j<resultElement.getChildNodes().getLength(); j++) { if (resultElement.getChildNodes().item(j).getNodeType() == Node.TEXT_NODE) { String val = resultElement.getChildNodes().item(j).getNodeValue(); if (val != null) { paramValue.append(val.trim()); } } } That's from com.opensymphony.xwork.config.providers.XmlConfigurationProvider.java ~line 446. Note, the latest & greatest is XmlConfigurationProvider.java.2.
I think XmlHelper needs to be patched as well. See http://forums.opensymphony.com/thread.jspa?threadID=60774&tstart=0 for the patch and more info
Cheers fixed in xwork-1.2 branch.
Sending src/java/com/opensymphony/xwork/config/providers/XmlHelper.java Transmitting file data . Committed revision 1318. still need to fix it in xwork2 head, but I don't have the code for it. If someone have the code, please feel free to work on it. Tia added more test case for this issue
Sending src/test/com/opensymphony/xwork/config/providers/XmlConfigurationProviderActionsTest.java Sending src/test/com/opensymphony/xwork/config/providers/xwork-test-actions.xml Transmitting file data .. Committed revision 1319. need to put this into xwork2 as well. Toby, did you already port these fixes over to the 2.0 branch and trunk?
Fixed for all branches.
Applied the additional patches for XmlHelper to branch 2.0 and trunk | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Specific fix is in buildResults(..) method, ~lines 436-462.