cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Backoffice - Can't validate Localized String

lucasgehlen
Explorer
0 Kudos
610

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?

Accepted Solutions (1)

Accepted Solutions (1)

former_member682593
Participant
0 Kudos

You can use following configuration:

 <wz:next visible="!#empty(newItem.name[T(java.util.Locale).ENGLISH])"/>

former_member682593
Participant
0 Kudos

Please accept my answer as solution if it works for you :)

lucasgehlen
Explorer
0 Kudos

It works! Thanks a lot!

Answers (0)