Advanced mode config : display mode : How to test empty field in EL #{}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-10-2013 01:43 PM
Hello,
I want to write about a newbie discover I did about test on "empty" value for advanced mode config tests as:
http://doc.nuxeo.com/display/Studio/Control+the+display+mode+of+a+widget
So the question was :
How to not show a document field in a custom layout if it's empty ?
Because I got I boring test such as :
#{layoutValue.dc.nature==null || layoutValue.dc.nature==''?'hidden':'view'}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-10-2013 01:45 PM
The solution is in advanced mode configuration write, as example :
#{empty layoutValue.dc.nature?'hidden':'view'}
with key word "empty"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-10-2013 03:31 PM
Hi, note that this is not MVEL, this is EL
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-11-2013 06:29 AM
Ok thank you very much Anahide !
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-13-2013 11:04 AM
I will change the subject from "MVEL" ou "EL" to correct it in few minutes !
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-13-2013 11:05 AM
I had this very good documentation that explain other function possible to use in this context as jstl tag lib
