<?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 09:06:10 -0500</lastBuildDate><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>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>