Result handler not getting invoked on button click - URGENT

Hi Folks,
We are working on a form submit application where we populate the form and finally click on button to submit the completed form. We are using BlazeDs On button click I call java service and expect a response object back to flex UI. We are getting the java call invoked successfully and the log clearly shows that the appropriate objects are returned from java service, however, the result handler is not getting inviked to capture the result in flex mxml. I am in urgent need of your help on this
Code snippet:
<mx:Script>
<![CDATA[
protected  
function Service_resultHandler(event:ResultEvent):void
Alert.show(
"event.result.troubleTicketId ::"+event.result.status); 
var u:URLRequest = new URLRequest("http://www.adobe.com/flex");navigateToURL(u,
"_blank"); 
private function faultHandler_exitService(event:FaultEvent):void {Alert.show(event.fault.faultString +
'\n' + event.fault.faultDetail); 
var u:URLRequest = new URLRequest("http://www.google.com");navigateToURL(u,
"_blank"); 
protected  
function submit_clickHandler():void
//Alert.show("1");
createTicketForm.setCallDetails_callRegion(FlexUI_callDetails_callRegion);
//Alert.show("2"+FlexUI_callDetails_callRegion);
createTicketForm.setCallDetails_callRegion2(FlexUI_callDetails_callRegion2);
exitService.createTroubleTicket(createTicketForm);
]]>
 </mx:Script>  
<mx:RemoteObject id="exitService" destination="ExitService" fault="faultHandler_exitService(event)">
<mx:method name="createTroubleTicket" result="Service_resultHandler(event)"/>
</mx:RemoteObject>
<mx:Button 
label="submit Ticket" width="65" height="22" textAlign="right" x="904" y="-10" click="submit_clickHandler()" />
My Java service:
public  
class ExitService {  
public CreateTmsTicketResponse createTroubleTicket(CreateTicketForm createTicketForm){
return  
createTmsTicketResponse;}
remoting-config.xml:
 <destination id="ExitService">  
<properties>  
<source>com.qwest.qportal.flex.createTicket.ExitService</source>  
</properties>
 </destination>

Please refer to below link, hope it helps:
http://forums.asp.net/t/1927214.aspx?The+IListSource+does+not+contain+any+data+sources+
Please ensure that you mark a question as Answered once you receive a satisfactory response.

Similar Messages

  • Javascript method for clientListener not getting invoked

    Hi, I am trying to use a clientListener to call a javascript method when an image that's linked gets clicked on, but the javascript method is not getting invoked. I'm using Jdev 11g. E.g.
    <af:resource type="javascript">
    function sayhello(event) {
      event.cancel();
      alert("hello");
    </af:resource>
    <af:goLink id="gl1"> 
      <af:clientListener type="click" method="sayhello"/>
      <af:image id="i1" source="/image/test.gif"/>
    </af:goLink>The sayhello javascript method does not get invoked when clicking the linked image. What I found though is that if I change the <af:goLink> to the following, then the javascript method gets invoked:
    <af:goLink id="gl1" text="click me"> 
      <af:clientListener type="click" method="sayhello"/>
    </af:goLink>I want to have a linked image though instead of linked text. Any suggestions to make this work? In Jdev 10g, the following worked fine for me:
    <af:goLink onclick="sayhello">
      <af:objectImage source="/image/test.gif">
    </af:goLink>I did try using <af:goImageLink> (with <af:clientListener>) and specify the image using the icon attribute. This worked fine in terms of being able to call the javascript method. However, the problem with using this is that it somehow shifts the image down and this doesn't look good in my UI because I basically have a row of <af:goLink> components that use images and using this <af:goImageLink> shows the image mis-aligned compared to the rest of the linked images.

    HI All,
    Iin my case, clientLinstene is not working if i use more than one goLink , any body can you help me.
    <af:goLink text="Forgot Password?" id="gl1">
                                                        <af:clientListener type="click" method="showPopupFromAction"/>
                                                    </af:goLink>
                                                </af:panelFormLayout>
                                            </af:panelGroupLayout>
                                            <af:panelGroupLayout id="pgl4">
                                                <af:spacer width="150" id="s3"/>
                                                <af:outputText value="Choose Language:     " id="ot2"/>
                                                <af:goLink text="Arabic" id="cl1">
                                          <af:clientListener type="click" method="testMethod"/>
                                                </af:goLink>
    one popup will call popup and anther will in call bean method that's my requirement. script is
    <af:resource type="javascript">
                                                       * Shows a popup from an "action" type event.
                                                       * @param {AdfActionEvent} actionEvent the event being handled
                                                      function showPopupFromAction(actionEvent) {
                                                          actionEvent.cancel();
                                                          var eventSource = actionEvent.getSource();
                                                          var popup = eventSource.findComponent("popupForgetPassword");
                                                          popup.show( {
                                                              align : AdfRichPopup.ALIGN_OVERLAP, alignId : eventSource.getClientId()
                                                    </af:resource>
    <af:resource type="javascript">
       function testMethod(actionEvent) {
    // my stuff here.... I will call server listener method.
    </af:resource>
    thanks
    Palanivel

  • RBA GATP check is not getting invoked for Sales Order

    Hi Everyone,
    RBA GATP check is not getting invoked for Sales order.
    I maintained the configuration settings for 'Rules-Based Availability Check', APO general settings (check mode, check instruction), carried out integrated rule maintenance, Rule determination for the combination of order type & product, associated the check mode to product master. Also maintained all the settings in ECC towards Req class, Req type, checking control etc.
    However, sales order is not invoking RBA Check though it is showing up the 'Rule' icon in the screen. Also, in the APO Availability check in Sales order when I click onto 'check instruction', I get the checking mode that pertains to RBA for business event 'A' (Sales order). Though I have not maintained any stock for the main material for which I have the sales order, yet system is confirming any quantity that I put in.
    I would expect that system would propose the same material in an alternate location where we have stock through RBA.
    Request you to share ideas on this.
    Regards,
    Avijit Dutta

    Hi Avijit,
    You should used No Checking Horizon in Checking instructions and also Check your rule control settings.
    What you have defined in 1st and 2nd steps. Check whether product substitution is carried out or Location Substitution.
    Thanks,
    Bala.

  • Shell Script not getting invoked in File adapter

    Hi all,
    Requirement:
    PI need to pick the file from source directory and send it to target directory using SFTP.
    I'm using SCP command for this purpose.
    When I run the shell script (with simple SCP command) from command prompt, script is working fine.
    Same script is called from PI File adapter but script is not getting invoked.
    In the communication channel logs, "Executed OS command" is available. There are no Error/Warning messages in the log.
    NFS transport protocol is used in the File communication channel.
    Complete directory path of the shell script is mentioned in File channel -> Run Operating System command after message processing.
    Even the following simple command is not working from PI receiver file channel:
    echo "Test file" >> /data/test.txt
    Please let me know if I'm missing out something.
    Thanks,
    Geetha

    Hi Geetha,
    I think the syntax u are using is not correct. Please follow the below syntax:
    /path/<script_name> %F
    for ex: /staging/Interface/XI/Script/FTPData %F
    use the above in the communication channel.
    %F should be after a space.
    FTPData is the script name
    /staging/Interface/XI/Script/ is the location where the script is present
    Cheers,
    Souvik
    Edited by: Souvik Chatterjee on Apr 14, 2011 3:38 PM

  • Hostname verifier does not get invoked

    Hi All,
    I am new to weblogic and currently facing an issue with SSL. I checked this forum but none of the solutions really worked for me, so seeking advice starting a new thread. Kindly help.
    Problem 1
    I have a REST webservice running in one weblogic server and another weblogic server contains a client which is based on the code from the following link -
    http://wiki.open-esb.java.net/attach/RestBCEchoSSL/SslClient.java
    One way handshaking is enabled in both the weblogic and the KeyStore and Truststore are read from configurable directory in the client java code. I specify a directory which resides outside weblogic home.
    Even though there is an HostnameVerifier implemented in the code to return true always, it does not get invoked and I get a certificate exception as below -
    <Warning> <Security> <BEA-090542> <Certificate chain received from xx.yy.zz.rrr - xx.yy.zz.rrr was not trusted causing SSL handshake failure. Check the certificate chain to determine if it should be trusted or not. If it should be trusted, then update the client trusted CA configuration to trust the CA certificate that signed the peer certificate chain. If you are connecting to a WLS server that is using demo certificates (the default WLS server behavior), and you want this client to trust demo certificates, then specify -Dweblogic.security.TrustKeyStore=DemoTrust on the command line for this client.>
    But when I run the java client from Eclipse I am able to invoke the webservice methods using HTTPs.
    So is not it possible to add a default hostname verifier as in the java code when the application is deployed in weblogic?
    Problem 2
    I another attempt to solve the above issue I turned off the hostname verification from weblogic admin console in the client weblogic side. In the console for the server Configuration > SSL->Hostname Verification field is set to "None". But that did not help.
    Then I added the '-Dweblogic.security.SSL.ignoreHostnameVerification=true' flag into the <domain>/bin/startWebLogic.sh file and restarted the weblogic. No luck again.
    ${JAVA_HOME}/bin/java ${JAVA_VM} ${MEM_ARGS} ${JAVA_OPTIONS} -Dweblogic.Name=${SERVER_NAME} -Djava.security.policy=${WL_HOME}/server/lib/weblogic.policy -Dweblogic.security.SSL.ignoreHostnameVerification=true ${PROXY_SETTINGS} ${SERVER_CLASS}
    I tried recreating the certificate using the' hostname' instead of the ip address ( also added an entry into the /etc/hosts file putting the ip and hostname so that I can do ping <hostname> from the client and get response returned from the server side). Again no luck :(. I keep getting the same handshake failure as mentioned above.
    The weblogic version is 10.x.
    Thanks,
    Amrit

    I did some more research for the issue mentioned which I yet to get rid of.
    1) I wrote a REST web service which makes a call to another REST service deployed on another weblogic using HTTPs (same code as mentioned above is used). I delpoyed the war and made a http call to the first webservice, the other REST service was invoked successfully using HTTPs. So this confirmed that there is no problem with the certificates or keystore or hostname verifictaion.
    2) My actual application still throws the handshake exception as below -
    <Warning> <Security> <BEA-090542> <Certificate chain received from xx.yy.zz.rrr - xx.yy.zz.rrr was not trusted causing SSL handshake failure. Check the certificate chain to determine if it should be trusted or not. If it should be trusted, then update the client trusted CA configuration to trust the CA certificate that signed the peer certificate chain. If you are connecting to a WLS server that is using demo certificates (the default WLS server behavior), and you want this client to trust demo certificates, then specify -Dweblogic.security.TrustKeyStore=DemoTrust on the command line for this client.>
    So I think the problem is something else but weblogic is priniting the exception message wrong.
    The process hierarchy ( in UNIX ) is as shown below -
    bea 31914 31913 0 14:29 ? 00:00:00 /bin/sh <DOMAIN HOME>//bin/startWebLogic.sh
    bea 31989 31914 0 14:29 ? 00:01:25 /opt/bea/jdk160_24/bin/java <The weblogic start server process> started by startWebLogic.sh
    bea 32107 31989 0 14:29 ? 00:00:09 /opt/bea/jdk160_24/bin/java <One of custom process>
    bea 2038 32107 0 18:38 ? 00:00:15 /opt/bea/jdk160_24/bin/java <Another custom process which contains my java classes containing the REST client>
    The problem is there in both Weblogic 11 and 10.3 version.
    I will be grateful if someone gives any clue about the problem.

  • J2EE adapter module not getting invoked by module processor

    Hi All,
    i have deployed my .ear file in SDM Repository successfully.
    but my J2EE adapter module is not getting invoked by module processor......this i can say because i have written code to audit log my message in the java class...but when i gave input an empty file, the audit log of that file in Message Audit Log showed only 3 Steps of file converted to XML format, no data found so not generating message, deletion of my empty file.
    Can anybody suggest how to enable my J2EE adapter module as i have created this module so that if i give empty file, then in the adapter i am creating a dummy XML for my message.
    Thanks and Regards,
    Rajeev Gupta

    Hi Stefan,
    1. JNDI name in visual admin is CustomerMeter
    2. the files in .ear file are:
    libraries,
    ejb project file,
    META-INF folder
    in ejb project file the following files are there:
    ejb-j2ee-engine.xml
    ejb-jar.xml
    CustomerMeter.class
    Please tell what to do now.
    Hi Amol,
    in audit log only 3 messages are coming: File converted to XML format, no data in document  so not sending message, deleting of empty file.
    i have given audit log statements in java class but my audit-log statements are not coming in the audit log
    this means my adapter module is not getting invoked.
    Please tell what to do to correct this error.
    Thanks and Regards,
    Rajeev Gupta

  • Trying to sync my iPod Nano (8Gb) When I toggle the "iPod sync" tab I do not get the "apply" button. Why?

    Trying to sync my iPod nano (6Gb) for the first time to my laptop (Windows 7). When I toggle the "iPod sync" button I do not get the "apply" button to start the sync. Why?

    I have a 27" iMac with the latest version of iTunes.  I tried restoring my iPod and even removing and re-installing iTunes.  What eventually worked for me was plugging into my PC and restoring/reformatting it to work with my PC.  I don't know why it wouldn't work with my iMac, but now it seems to be working.

  • ValueChangeListner not getting invoked.

    Hi
    I've implemented autoSuggestBehaviour on inputListOfValues but valueChangeListner is not getting invoked in case I select the first value from the auto suggested items.
    And valueChangeListner gets invoked if I select any other value apart from the first suggested value.
    Given below is code snippet
    <af:inputListOfValues id="useridId"
    required="true"
    binding="#{backingBeanScope.backing_quoteInfo.useridId}"
    popupTitle="Search and Select: #{bindings.Userid.hints.label}"
    value="#{bindings.Userid.inputValue}"
    label="#{bindings.Userid.hints.label}"
    model="#{bindings.Userid.listOfValuesModel}"
    columns="20"
    shortDesc="#{bindings.Userid.hints.tooltip}"
    valueChangeListener="#{backingBeanScope.backing_quoteInfo.customerLovChanged}"
    autoSubmit="true"
    partialTriggers="::it6"
    rendered="#{securityContext.userInRole['insuranceapprovers']}">
    <f:validator binding="#{bindings.Userid.validator}"/>
    <af:autoSuggestBehavior suggestedItems="#{backingBeanScope.backing_quoteInfo.getSuggestedCustomers}"/>
    </af:inputListOfValues>
    I'm using JDev 11.1.1.4.0 & IE8/Mozilla11 as the browser.
    Thanks,
    -Gaurav

    valuechangelistener is trigger only when the old value and new value is different .You can validate this scenario inside the value chage listener.
    like this
    customerLovChanged(ValueChangeListener  valu){
    System.out.println(""+valu.getOldValue());
    System.out.println(""+valu.getNewValue());
    }

  • Concurrent timers are not getting invoked for same timer inf

    Do weblogic has some parameter in weblogic deployment descriptor like numAlarmThreads="5" minThreads="1" maxThreads="10" etc
    becoz I am facing one problem relating to timer service in EJB
    Problem Scope: Concurrent timers are not getting invoked for same timer info (Serializable object containing the details of timer).
    Details : I am implementing EJB timer 2.1 and when ejbTimeOut execution of one timer exceeds the interval time, next timeout doesn’t happens till the execution of first ejbTimeOut completes . Ideally the timers should behave in the manner that on every interval the ejbTimeOut should occur no matter the previous timeout is completed or not
    for example : consider there is timer T whose timeout occurs every minute, and on every timeout it calls process P, so on every minute ideally container should give call to process P irrespective of the previous status of P (call is complete or not). In our case next call to process P is not happening after timeout also since it is waiting for previous call to P to get completed

    You should also cross-post this in the WebLogic EJB forum:
    WebLogic Server - EJB

  • Concurrent timers are not getting invoked for same timer info (Serializable

    Problem Scope: Concurrent timers are not getting invoked for same timer info (Serializable object containing the details of timer).
    Details : I am implementing EJB timer 2.1 and when ejbTimeOut execution of one timer exceeds the interval time, next timeout doesn’t happens till the execution of first ejbTimeOut completes . Ideally the timers should behave in the manner that on every interval the ejbTimeOut should occur no matter the previous timeout is completed or not
    for example : consider there is timer T whose timeout occurs every minute, and on every timeout it calls process P, so on every minute ideally container should give call to process P irrespective of the previous status of P (call is complete or not). In our case next call to process P is not happening after timeout also since it is waiting for previous call to P to get completed

    You should also cross-post this in the WebLogic EJB forum:
    WebLogic Server - EJB

  • Concurrent timers are not getting invoked for same timer info

    Problem Scope: Concurrent timers are not getting invoked for same timer info (Serializable object containing the details of timer).
    Details : I am implementing EJB timer 2.1 and when ejbTimeOut execution of one timer exceeds the interval time, next timeout doesn’t happens till the execution of first ejbTimeOut completes . Ideally the timers should behave in the manner that on every interval the ejbTimeOut should occur no matter the previous timeout is completed or not
    for example : consider there is timer T whose timeout occurs every minute, and on every timeout it calls process P, so on every minute ideally container should give call to process P irrespective of the previous status of P (call is complete or not). In our case next call to process P is not happening after timeout also since it is waiting for previous call to P to get completed

    You should also cross-post this in the WebLogic EJB forum:
    WebLogic Server - EJB

  • TS3274 I can not get my video button to work

    I can not get my video button to work, it will not response when I try to use it

    Try sliding the words up or down to select the various modes.

  • After entering "Country or Region" United States, I do not get a next button to advance through the process.  What might be the cause?

    After entering "Country or Region" United States, I do not get a next button to advance through the process.  What might be the cause?

    Try This...
    Close All Open Apps... Sign Out of your Account... Perform a Reset... Try again...
    Reset  ( No Data will be Lost )
    Press and hold the Sleep/Wake button and the Home button at the same time for at least ten seconds, until the Apple logo appears. Release the Buttons.
    http://support.apple.com/kb/ht1430

  • WebLogic Handler Problem - Handler handleMessage is not getting invoked!

    Hi, I am using weblogic 11g and trying to register a handler to log my requests/responses to and from the service. I use Maven to build the project and register the handler as described in the Oracle documents. Here is the handler declaration in the server class that implements the port interface
    @HandlerChain(file="handlers.xml")Here is the declaration of the handler class in the handlers.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <handler-chains xmlns="http://java.sun.com/xml/ns/javaee">
      <handler-chain>
        <handler>
          <handler-class>com.mycompany.service.handlers.LogHandler</handler-class>
        </handler>
      </handler-chain>
    </handler-chains>handlers.xml has been put in a folder structure under resources so that when the war file is generated, it is placed in the same folder as the server class. LogHandler implements SOAPHandler<SOAPMessageContext>
    When I deploy the application, the handler gets invoked and the getHeaders method gets called multiple times. But when I call the service with any operation, the handleMessage method is not invoked and the service acts like it doesn't have any handler. Please note that there are other projects that exist in my workspace and use handlers with the same configuration without any issues. As the handler is required for this project and I am running out of options to fix this matter, I appreciate your feedback. Thanks in advance!

    Your web.xml file need a servlet-mapping section:<web-app>
    <servlet>
    <!-- Servlet alias -->
    <servlet-name>Registration</servlet-name>
    <!-- Fully qualified Servlet class -->
    <servlet-class>GreetingServlet</servlet-class>
    </servlet>
        <servlet-mapping>
            <servlet-name>GreetingServlet</servlet-name>
            <url-pattern>/servlet/GreetingServlet</url-pattern>
        </servlet-mapping>
    </web-app>Also, you probably need to put your servlet in a package.

  • Value  set in constructor is not getting saved in button  Action method

    Hi All,
    I am not understanding why the value set ( On Condition )in constructor is not hold in the button actoin method.
    Could any body explain me on that
    for this I will try to explain with sample example
    I have taken a button and add a integer property in session bean.
    now if session bean's property is even then I am trying to set the button value to bidNow other wise Accept Invitation.
    Till this opstion everything is OK
    but once I click on Button,
    Constructor is doing the right job only. But I do not understand why in button action I am getting the First Value only.
    public Page1() {
            // <editor-fold defaultstate="collapsed" desc="Creator-managed Component Initialization">
            try {
                if (getSessionBean1().getIntValue()%2==0)
                    button1.setValue("BidNow");
                else
                    button1.setValue("Accept Invitation");
                getSessionBean1().setIntValue(getSessionBean1().getIntValue()+1);
                log("In Constructor Button Value : "+button1.getValue());
            } catch (Exception e) {
                log("Page1 Initialization Failure", e);
                throw e instanceof javax.faces.FacesException ? (FacesException) e: new FacesException(e);
            // </editor-fold>
            // Additional user provided initialization code
        public String button1_action() {
            // TODO Replace with your code
            log("In Action Button Value : "+button1.getValue());
            return null;
        }and here is the log
    [#|2005-07-19T11:55:17.859+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Constructor Button Value : BidNow|#]
    [#|2005-07-19T11:55:17.859+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Action Button Value : BidNow|#]
    [#|2005-07-19T11:55:18.359+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Constructor Button Value : Accept Invitation|#]
    [#|2005-07-19T11:55:18.359+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Action Button Value : BidNow|#]
    [#|2005-07-19T11:55:18.843+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Constructor Button Value : BidNow|#]
    [#|2005-07-19T11:55:18.843+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Action Button Value : BidNow|#]
    [#|2005-07-19T11:55:19.312+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Constructor Button Value : Accept Invitation|#]
    [#|2005-07-19T11:55:19.312+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Action Button Value : BidNow|#]
    [#|2005-07-19T11:55:19.828+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Constructor Button Value : BidNow|#]
    [#|2005-07-19T11:55:19.828+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Action Button Value : BidNow|#]
    [#|2005-07-19T11:55:20.234+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Constructor Button Value : Accept Invitation|#]
    [#|2005-07-19T11:55:20.250+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Action Button Value : BidNow|#]
    [#|2005-07-19T11:55:20.828+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Constructor Button Value : BidNow|#]
    [#|2005-07-19T11:55:20.828+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Action Button Value : BidNow|#]
    [#|2005-07-19T11:55:21.328+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Constructor Button Value : Accept Invitation|#]
    [#|2005-07-19T11:55:21.328+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Action Button Value : BidNow|#]
    [#|2005-07-19T11:55:35.437+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Constructor Button Value : BidNow|#]
    [#|2005-07-19T11:55:35.437+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Action Button Value : BidNow|#]
    [#|2005-07-19T11:55:35.906+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Constructor Button Value : Accept Invitation|#]
    [#|2005-07-19T11:55:35.921+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Action Button Value : BidNow|#]
    [#|2005-07-19T11:55:36.265+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Constructor Button Value : BidNow|#]
    [#|2005-07-19T11:55:36.265+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Action Button Value : BidNow|#]
    [#|2005-07-19T11:55:36.890+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Constructor Button Value : Accept Invitation|#]
    [#|2005-07-19T11:55:36.890+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Action Button Value : BidNow|#]
    [#|2005-07-19T11:55:37.171+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Constructor Button Value : BidNow|#]
    [#|2005-07-19T11:55:37.171+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Action Button Value : BidNow|#]
    [#|2005-07-19T11:55:37.468+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Constructor Button Value : Accept Invitation|#]
    [#|2005-07-19T11:55:37.468+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Action Button Value : BidNow|#]As per this log every time I am getting Bid Now only in action, though the value is changed in Construtcor
    Can u explain the reason for this

    Hi Sudhakar,
    Please try the following and you will get an idea as to what is happening:
    1. Drag and drop a button, 2 outputText components
    2. Add a property to the session bean called intValue of type int. Customize it to set it's initial value to 0
    3. Add the following lines of code to the constructor
    outputText1.setValue("" + getSessionBean1().getIntValue());
    getSessionBean1().setIntValue(getSessionBean1().getIntValue()+1);
    4. Double click on the button component to go to the button action method.
    5. Add the following line of code
    outputText2.setValue("" + etSessionBean1().getIntValue());
    6. Save and run the application
    7. Watch the values of outputText1 and outputText2 with each click of the button
    Also, try the application with the following code block in the button action method:
    if(getSessionBean1().getIntValue()%2==0){
    button1.setValue("Bid Now");
    } else{
    button1.setValue("Accept Invitation");
    getSessionBean1().setIntValue(getSessionBean1().getIntValue()+1);
    outputText1.setValue(button1.getValue());
    outputText2.setValue("" + getSessionBean1().getIntValue());
    When the above code block is in the button action method the values set to button are as expected.
    Hope that helps
    Cheers
    Giri :-)

Maybe you are looking for