Skip to Content
1
Jun 04, 2018 at 04:40 PM

Backoffice - Can't validate Localized String

254 Views

Creating a new custom Wizard for an object, I tried to validade the "name" field in visible clause of my wz:next button. But, the property "name" is localized and it cannot be validate like de another properties.

 <wz:property qualifier="name" type="Localized(java.lang.String)"/>

I've tried to do:

 <wz:next visible="!newItem.name.isEmpty()"/>

 <wz:next visible="!#Empty(newItem.name)"/>

 <wz:next visible="newItem.name !=null"/>

 <wz:initialize property="commonI18NService" type="CommonI18NService"/>
 <wz:next visible="newItem.name(commonI18NService.getLocaleForIsoCode(&quot;en&quot;)) != null"/>

Someone can help-me?