<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: Nested JSF EL</title><link>https://answers.axonivy.com/questions/139/nested-jsf-el</link><description>&lt;p&gt;Hi there!
Another fun JSF related question.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;I want a nested el:&lt;/strong&gt; &lt;/p&gt;
&lt;pre&gt;&lt;code&gt;&amp;lt;ui:param name="sma" value="#{data.sma}/dialog/lblInputtext')}" /&amp;gt;
&amp;lt;ui:param name="smalbl" value="#{sma}" /&amp;gt;
&amp;lt;h:outputText value="#{smalbl}" style="height: 300px; width:450px"/&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The &lt;strong&gt;output&lt;/strong&gt; is the following:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;#{ivy.cms.co('/sma25/dialog/lblInputtext')}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;I want exactly this output evaluated by jsf. It doesn't work when I put the result in #{} one more time. JSF prints out a warning due to wrong syntax.&lt;/p&gt;
&lt;p&gt;Has anyone else tried to nest el's?&lt;/p&gt;
&lt;p&gt;thx for help!&lt;/p&gt;</description><atom:link href="https://answers.axonivy.com/questions/139/nested-jsf-el" rel="self"></atom:link><language>en</language><lastBuildDate>Thu, 28 Nov 2013 13:20:34 -0500</lastBuildDate><item><title>Comment by Raphael Bürgin on Daniel Oechslin's answer</title><link>https://answers.axonivy.com/questions/139/nested-jsf-el#157</link><description>&lt;p&gt;Glad I could help&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Raphael Bürgin</dc:creator><pubDate>Thu, 28 Nov 2013 13:20:34 -0500</pubDate><guid>https://answers.axonivy.com/questions/139/nested-jsf-el#157</guid></item><item><title>Answer by Daniel Oechslin</title><link>https://answers.axonivy.com/questions/139/nested-jsf-el/148</link><description>&lt;p&gt;I solved the problem using a ManagedBean. Concatenating the strings in the bean itself and reading it via EL-function call. 
I took this solution because I needed a value from the dialog-data-class and a value from the cms. This could not be solved in the JSF-Dialog due to the nested EL impossibility.&lt;/p&gt;
&lt;p&gt;ManagedBean:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;public String getCmsValue(){
        return Ivy.cms().co(getConcatenatedValues());
    }
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;JSF:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;&amp;lt;h:outputText value="#{dialogBean.getCmsValue()}"
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;THX to Raphael Bürgin&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Daniel Oechslin</dc:creator><pubDate>Thu, 28 Nov 2013 09:06:10 -0500</pubDate><guid>https://answers.axonivy.com/questions/139/nested-jsf-el/148</guid></item><item><title>Comment by Reto Weiss on Reto Weiss's answer</title><link>https://answers.axonivy.com/questions/139/nested-jsf-el#146</link><description>&lt;p&gt;Not sure if I understand you right. You want to concat as string from the data class and one from the cms? Then you can use two el expressions the result of both expressions are concated. &lt;/p&gt;
&lt;p&gt;Example:&lt;/p&gt;
&lt;p&gt;&amp;lt;p:outputlabel value="#{ivy.cms.co('/dialog/lbInputtest')} #{data.sma}"/&amp;gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Reto Weiss</dc:creator><pubDate>Wed, 27 Nov 2013 13:54:33 -0500</pubDate><guid>https://answers.axonivy.com/questions/139/nested-jsf-el#146</guid></item><item><title>Comment by Raphael Bürgin on Reto Weiss's answer</title><link>https://answers.axonivy.com/questions/139/nested-jsf-el#145</link><description>&lt;p&gt;In your way I've never tried. I always (outsource) nested EL. For a workaround you can try something like this: 
In the Javasource you can join cms Strings easily.
public String getRoleName(){
        return Ivy.cms().co("/ch/lepa/common/roles/" + role.getName() );
    }&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Raphael Bürgin</dc:creator><pubDate>Wed, 27 Nov 2013 13:36:00 -0500</pubDate><guid>https://answers.axonivy.com/questions/139/nested-jsf-el#145</guid></item><item><title>Comment by Daniel Oechslin on Reto Weiss's answer</title><link>https://answers.axonivy.com/questions/139/nested-jsf-el#143</link><description>&lt;p&gt;Hi
this works if the two values are both stored in the CMS.&lt;/p&gt;
&lt;p&gt;What if one value is stored in the data class and this value should get concatenated with something from the CMS?&lt;/p&gt;
&lt;p&gt;How to do that?
like data.sma is a value from the data class.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Daniel Oechslin</dc:creator><pubDate>Wed, 27 Nov 2013 12:02:04 -0500</pubDate><guid>https://answers.axonivy.com/questions/139/nested-jsf-el#143</guid></item><item><title>Comment by Daniel Oechslin on Daniel Oechslin's question</title><link>https://answers.axonivy.com/questions/139/nested-jsf-el#142</link><description>&lt;p&gt;THX for the hint!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Daniel Oechslin</dc:creator><pubDate>Wed, 27 Nov 2013 11:37:17 -0500</pubDate><guid>https://answers.axonivy.com/questions/139/nested-jsf-el#142</guid></item><item><title>Comment by Nikel Weis on Daniel Oechslin's question</title><link>https://answers.axonivy.com/questions/139/nested-jsf-el#141</link><description>&lt;p&gt;Nesting EL expressions is illegal syntax. You should see the #{} as one big space where variables/strings can interact with each other.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Nikel Weis</dc:creator><pubDate>Wed, 27 Nov 2013 08:41:03 -0500</pubDate><guid>https://answers.axonivy.com/questions/139/nested-jsf-el#141</guid></item><item><title>Answer by Reto Weiss</title><link>https://answers.axonivy.com/questions/139/nested-jsf-el/140</link><description>&lt;p&gt;Use 
    #{ivy.cms.co(data.sma.concat('/dialog/lblInputtext'))}&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Reto Weiss</dc:creator><pubDate>Tue, 26 Nov 2013 22:07:02 -0500</pubDate><guid>https://answers.axonivy.com/questions/139/nested-jsf-el/140</guid></item></channel></rss>