5 Replies Latest reply: Jun 12, 2013 11:49 PM by ArunBabu RSS

    Parameter passing through EL expression

    ArunBabu
      I just came across an article http://adfspecialists.blogspot.com/2013/02/adf-passing-parameter-from-el.html

      I am trying to pass 2 parameters to a bean function. Both of these El expressions which are to be evaluated. Is there anyway to achieve this?

      <amx:iterator value=".... " var="row" .... >
      <amx:outputText value="#{row.id}"
      <amx:iterator value="#{row.collectionName}" var="insiderow" .. >
      <amx:outputText value="#{pageFlowScope.beanName.functionName(row.id,insiderow.name)}" ... >

      ......


      I tried passing hardcoded parameters to functionName() but when it has to be el expressions which have to be evaluated it doesnt work.

      In a previous post Frank told that this should be possible but he somehow missed that post later Re: ADF Mobile : Binding output text to return value of a function in bean.

      Thanks.
        • 1. Re: Parameter passing through EL expression
          codigoadf
          Hi,
          you can use a af:setPropertyListener
          http://jdevadf.oracle.com/adf-richclient-demo/docs/tagdoc/af_setPropertyListener.html
          • 2. Re: Parameter passing through EL expression
            Jhon Carrillo
            try 3 options via Frank:

            https://blogs.oracle.com/jdevotnharvest/entry/passing_parameters_to_managed_bean_method_using_el

            JHon
            • 3. Re: Parameter passing through EL expression
              ArunBabu
              Presently I am using setPropertyListener.

              I was curious if there is any new built in support for this in EL 2.1
              • 4. Re: Parameter passing through EL expression
                MobileADFDev

                Hi 958923,

                 

                Can you please explain how did you achieve to iterate a row of an iterator? I am trying to get some help but was not getting any response. Here is my thread

                 

                https://forums.oracle.com/thread/2546484

                 

                I just want to know how is your LWOs associated and how did you define your pagedef for the following

                 

                <amx:iterator value=".... " var="row" .... >

                <amx:outputText value="#{row.id}"

                <amx:iterator value="#{row.collectionName}" var="insiderow" .. >



                It will be of great help if you can answer....

                • 5. Re: Parameter passing through EL expression
                  ArunBabu

                  This is not the exact way but more of a workaround.

                   

                  Try modifying your treebinding in pagedefinition to

                   

                  <tree IterBinding="tableRowsIterator" id="tableRows">

                           <nodeDefinition DefName="com.sni.ilm.lwo.TableColumnList" Name="tableRows0">

                              <AttrNames>

                                 <Item Value="tableColumnsCount"/>

                                 <Item Value="NameValueLwo"/>

                              </AttrNames>

                              <Accessors>

                                 <Item Value="NameValueLwo"/>

                              </Accessors>

                           </nodeDefinition>

                           <nodeDefinition DefName="com.sni.ilm.lwo.NameValueLwo" Name="nameValueLwo0">

                              <AttrNames>

                                 <Item Value="name"/>

                                 <Item Value="value"/>

                              </AttrNames>

                           </nodeDefinition>

                  </tree>

                   

                  The collection needs to be added as an attribute. If still not working, if you upload a sample application I could give a try.

                   

                  Thanks

                  Arun