Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

how to get the value of the outputtext in javascript and send it to backing bean

user8696578Nov 28 2013 — edited Dec 2 2013

Hi ADF Experts,

JDev Version 11.1.1.7.0

I have the below: The value of the outputtext is to be processed in javascript and the serverlistener method has that same value. Based on that value I return a String which wshould show inj mouseover.

Please help. Thanks in advance.

   <af:column sortProperty="#{bindings.OrderProposalReadClient.hints.exceptions.name}"

                                filterable="true" sortable="true"

                                headerText="#{suiviewBundle.EXCEPTIONS}"

                                id="c16">

                        <af:outputText value="#{row.exceptions}" id="ot32" clientComponent="true">

                           <af:clientListener type="mouseOver"

                                              method="customJsFunction"/>

                            <af:serverListener type="mycustomserverEvent"

                               method="#{pageFlowScope.ChangeOrderProposalBean.handleServerEvent}"/>                 

                        </af:outputText>  

                </af:column> 

javascript

  <af:resource type="javascript">

   var customJsFunction = function(event)

              {

            var exceptiondata = AdfPage.PAGE.findComponentByAbsoluteId('ot32');

            AdfCustomEvent.queue();

            return true;

              }

   </af:resource>

BackingBean

       public String handleServerEvent(ClientEvent ce)

           {

            //please let me know how to get the value which the javascript sends here.

           Lets say javascript sends the value of outputtext as "001".

          So I have to check "001" in my list and return a value which will be shown in mouseover.

           }

Regards,
Roy

This post has been answered by rfh on Nov 29 2013
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 30 2013
Added on Nov 28 2013
7 comments
886 views