Announcement Announcement Module
Collapse
No announcement yet.
Convert Boolean True/False to Yes/No Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • #16
    Alright, lets move this to a JIRA issue and see if we can get it resolved.

    Keith

    Comment


    • #17
      Keith,

      Is there anything else you need from me? I can try to recreate the error if necessary or post in JIRA.

      As of now, we're sticking with using spring:message and the message.properties file. We are forced to test each field with

      Code:
      <c:if test="${myObject.theBoolean != null}">
      Which, clearly, is very tedious and will become a hassle to maintain. We're most likely going back to the converter soon but this works for now.

      Thanks

      Comment


      • #18
        Hi,

        Sorry for reopening old thread.
        I'm having problems with boolean to String conversion.

        In a Spring ROO Project, I've created new converter

        Code:
            static class BoolConverter implements Converter<Boolean, String>  {
                public String convert(Boolean bool) {
                	if(bool==true) return "Yes";
                	else return "No";
                }        
            }
        and registered it

        Code:
        registry.addConverter(new BoolConverter());
        But It's not working. Other converters are working just fine.

        Any ideas?

        Is there difference between boolean primitive and Boolean for the Converter?

        Comment

        Working...
        X