I have an app that displays a list of filenames to the user. I'm looping over a list of File objects and displaying the names using an insert component. Here's a barebones example:
<files jwcid="@For" source="ognl:files" value="ognl:loopFile"> <filename jwcid="@Insert" value="ognl:loopFile.name" /><br /> </files> It is possible to have filenames like "A B", "A B", and "A B". Sent to the insert component, they get rendered as "A B", "A B", and "A B" in the HTML source but end up displayed as "A B", "A B", and "A B" on the screen. Setting the raw attribute to true doesn't change this behavior. Would it be reasonable to encode consecutive spaces as ? Does anyone have a better idea? For now I'll have to switch to the below code: <files jwcid="@For" source="ognl:files" value="ognl:loopFile"> <filename jwcid="@Insert" raw="ognl:true" value="ognl:safeName" /><br /> </files> public String getSafeName() { return getLoopFile().getName().replace(" ", " "); } Thanks, -Wes --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]