In my jsp page, I am using the following code to display fckeditor:
<FCK:editor height="580" instanceName="content" value="${addTravelArticleCommand.content}">
<FCK:config AutoDetectLanguage="false" DefaultLanguage="${vo.editorLanguage}"/>
</FCK:editor>
addTravelArticleCommand.content is null, so fckeditor will show a string: 'null'.
Is it possiable to show empty instead of 'null', when the value is null?
Thanks.
<FCK:editor height="580" instanceName="content" value="${addTravelArticleCommand.content}">
<FCK:config AutoDetectLanguage="false" DefaultLanguage="${vo.editorLanguage}"/>
</FCK:editor>
addTravelArticleCommand.content is null, so fckeditor will show a string: 'null'.
Is it possiable to show empty instead of 'null', when the value is null?
Thanks.
Re: null value
Your usecase does not seem possible, null values are bypassed, see here.
I will try to reproduce it later though.
Re: null value
If I set content to " ", it will not show 'null'.
public class AddTravelArticleCommand {
...
private String content = " ";
...
Attachments:
Re: null value
You Just found a bug
Thanks for testing!
Re: null value
Re: null value