Rendering the component based on valueChangeListener

Hi
i have to rendered the af:table based on valueChangedListener..
i have a tableLayout and inside tableLayout i have af table.i have dropdown list in that drop down list i put valuechangeListener event when i select the value from drop down list i have to do rendered the table.
so what i did here is
tableLayout3.setRendered(true);
AdfFacesContext.getCurrentInstance().addPartialTarget(tableLayout3);
but it is not diaplaying the table but when tried with button action it is properly displaying the table.
can any body help plz ..
Thanks and Regards,
Harish

Your EL is indeed wrong. Place the operators inside the EL, otherwise they would evaluate to plain (non-EL) values.
<f:subview rendered ="#{bean.value1 || bean.value2}">

Similar Messages

  • PI 7.31 - Component based alerting v/s Alert framework like 7.0

    PI Experts,
    We are in the process of upgrading PI from 7.0 to 7.31. In current PI-7.0, We are using Alert framework for notifying us for the failed messages in PI.
    PI-7.3 has the the new feature of Component based alerting, while implementation, we have a choice between "Component Based Alerting" and "Alert FrameWork".
    1.     Can someone guiide me on what are the advantages of using  "Component Based Alerting" v/s "Alert Framework" in PI-7.3?
    2.     If we choose "Component Based Alerting" now, then can we switch it back to "Alert Framework"? If yes, how difficult it is? What are the configuration steps for the "Component Based Alerting"?
    3.     If we choose "Alert Framework" now, then can we switch it back to  "Component Based Alerting"? If yes, how difficult it is? We would be able to use our current alert configuration and alert rules?
    Thanks.
    MP

    Hi,
    >>>>1.     In current AF, we get the alert for the new error if we have confirmed the alert for the same rule in the system otherwise we do not get a alert for the new error.How the alert confirmation works in CBA
    depends how you consume alerts - if you do it with SOLMAN for example it's there (for "number of hours" and/or "until" AFAIK)
    >>>>2.     Is there any way we can move the current alert rules of AF to CBA in 7.3?
    not sure if with 7.3 but there is some upgrade function in 7.31 as per:
    http://help.sap.com/saphelp_nw73ehp1/helpdata/en/b2/58b14b70744d0db55599230d2c5bce/frameset.htm
    quote:
    "In case you upgrade your system to enhancement package 1 for SAP NetWeaver 7.3, and in case the “classical”alerting function (already available prior to enhancement package 1 for SAP NetWeaver 7.3) is switched on, the CTC wizard asks you if you like to switch on the new component-based message alerting."
    but I've never tried it so don't know if/how it works,
    Regards,
    Michal Krawczyk

  • Dynamic Rendering of Child Component based on SQL Query

    I want to preface this with I am very new to ADF.
    I have a page with a parent-multi child (tabbed) layout, and what I want to do is render one of the children based on the values of a sql query. I tried creating a manged bean but I had no idea how to get the database connection, so I added a method to my application module implementation instead. The method is of type boolean that runs my sql query and based on the results, returns true or false. I then set the tab's Rendered property to this method, #{bindings.method.execute}. Unfortunately, when I run the application the tab is not rendered, no matter what the value of the results. I therefore set a breakpoint on the code and ran it through the debugger, but the code is never being executed.
    If anyone could help, it would be greatly appreciated.
    I am running JDeveloper 11.1.1.3, hitting an Oracle 11g database, using ADF BC.
    Thanks,
    Michelle

    I don't really know what you mean, here is my code:
      public boolean checkLevel2Needed(String revwId)
        PreparedStatement stmnt = null;
        StringBuffer sql = new StringBuffer();
        Object[] procArgs = new Object[]{ revwId };
        ResultSet rs = null;
        boolean level2Required = false;
        System.out.println(revwId);
        sql.setLength(0);
        sql.append("Select count(*) as yesCount from usq.vu_review_response ");
        sql.append(" where revw_id = ? ");
        sql.append(" and gp_name = 'Level 1 Screen' ");
        sql.append(" and resp_text = 'Yes' ");
        try
          stmnt = getDBTransaction().createPreparedStatement(sql.toString(), 0);
          if (procArgs != null)
            for (int z = 0; z < procArgs.length; z++)
              stmnt.setObject(z + 1, procArgs[z]);
          rs = stmnt.executeQuery();
          if (rs.next())
            if (rs.getInt("yesCount")>0)
              System.out.println(rs.getInt("yesCount"));
              level2Required = true;
          rs.close();
        catch (SQLException e)
          throw new JboException(e);
        finally
          try
            if (stmnt != null)
              stmnt.close();
          catch (SQLException e) {}
        return level2Required;
      }But I don't think it is ever executing this code, the system.out.println's don't show up in the console and if I run it through the debugger with a breakpoint it never stops.
    What I really need is for this code to execute when I enter this page, and also any time the page is updated. Should I be using a backing bean?
    Thanks,
    Michelle
    Edited by: MSchaffer on Jan 6, 2011 5:27 PM

  • Integrating the PHP Based Forum Component in CQ5 Pages.

    We have the requirement to integrate the Php based forum product (VBulletin) in our CQ5 pages. Have anyone already integrated the Php based prodcuts with CQ5? Especially i would like to know the feasibilty on the following point.
    A. Do we need to implement the Wrapper Service to interact with Php based products / APIs?
    Thanks,
    Thyshiva.

    There of course multiple ways to attempt to integrate with a service like this, the approriate approach will vary based on your requirements.
    The first question I would ask is what functionality are you trying to integrate into you CQ5 pages. Are you just trying list summaries of posts - say the 3 most recent posts on topic X, or are you attempting to display the complete forum functionality in a CQ 5 page.
    If you doing a light weight integration - for example displaying the most recent posts then I would explore the possiblity of a client side integration using AJAX to pull the data from your PHP system in JSON or XML format. This avoids any caching related issues and keeps the integration loosely coupled. There are of course variations on these methods that use CQ as a proxy to the PHP application, but then you end up having to write a OSGI wrapper service that talks to your PHP app over web services.
    If your integration is more complicated and you are looking to enable all the forum functionality. If your PHP app is visually the same as you CQ5 site you can make use of a iframe to include it in a CQ page. This obviously have potential issue (security, layout issues if sizes or CSS aren't consistent). CQ5 includes a foundation component to help with this - the External component which leverages an iframe.
    If an iframe or client side approach won't work then you would need to look at creating a set of OSGI wrapper services that communicate with your PHP application via web services. This obvious would be a singificant development effort, and depending on the capabilities of you PHP application may be difficult to implement. In particular user management and security integrations be complex (you can avoid these sorts of issues with a client side or iframe approach, especially if you can sub-domain the PHP app, or use the same apache server to host both dispatcher and you PHP app).

  • Registering the Web based application as a Partner Application

    Good day
    I went through the suggested documentation of registering a
    web based application as a partner application of the SSO Login Server.
    I installed the SSOSDK.JAR and went through the demo application (JSP Demo)
    which consists of the following programs :
    papp.jsp
    ssoinclude.jsp
    ssoEnablerJspBean
    SSOEnablerBean
    SSOSignon
    As per the technical documentation,I register this demo application as a
    partner application.
    1 - The source code of the papp.jsp checks for the existence of the user
    through method of ssoEnablerJspBean [getSSOUserInfo(request, response)] which
    calls method of SSOEnablerBean [getSSOUserInfo (request, response) and this
    method calls getUserInfo(p_request) of SSOEnablerBean (the same program) to
    check the existence of the application cookie.
    2 - If it doesn't exit , it redirect it to the SSO Login page for user
    authentication.Once the user is authenticated, a SSO login cookie is created on
    the client's browser and redirects back to the SSOSignOn.
    3 - The SSOSignOn program creates the application cookie and redirects back to
    the entry point of the demo application which is papp.jsp.
    My Questions are as follows :
    1 - Instead of creating a session object within my web based application to hold some
    information used between the different pages, can I define them in the
    application cookie? kindly advise? Is there any limitation for the length of
    the application cookie? If yes, what will be the risk?
    2 - The SSOSignOn program is calling a method in the SSOEnablerBean
    [setPartnerAppCookie(response, request). Within this method , it is retrieving
    the parameters values of the request object as :
    request.getParameterValues("urlc")[0];
    What is the role of this [urlc]? Is it hard coded? Can I change it?
    3 - In order to ensure that I am still dealing with the same user, shall I put
    the above security check procedure on each page of my weeb based application? Kindly advise?
    Thanks in advance for your prompt feedback
    regards

    Dear Paul
    I think there is a misunderstanding regarding the last correspondence.
    I am talking about the customized home page of the PORTAL and not the home page of my web based application (JSP) .So in this case, Am I able to use the customized home page which contains a login portlet instead of the default Login page of the SSO Login Server.Kindly advise!!!
    On the other hand, I am facing a problem during the surfing of the web based application.
    The web based application consists mainly of two packages :
    Package I : Bank.counter which contains a set of jsp pages.
    JSP_HOME_COUNTER (MAIN PAGE WHICH CONTAINS 2 FRAMES)
    JSP_LEFT_FRAME_COUNTER
    JSP_MAIN_FRAME_COUNTER
    JSP_MAIN_FRAME_COUNTER_DETAIL
    Package II : Bank.portfolio which contains a set of jsp pages.
    JSP_HOME_PORTFOLIO (MAIN PAGE WHICH CONTAINS 2 FRAMES)
    JSP_LEFT_FRAME_PORTFOLIO
    JSP_MAIN_FRAME_PORTFOLIO
    Please note that the SSO classes are residing under the first package.
    As agreed on in the third question, I am including in each page of my web based application, a security check procedure as follows :
    <%@ include file="ssoinclude.jsp" %>
    <%
    if(usrInfo == null)
    response.getWriter().println("<center>User information not found</center>");
    else
    my jsp code.......
    %>
    Please note that all the jsp page of the portfolio package are pointing to the SSO classes as follows :
    <%@ include file="../counter/ssoinclude.jsp" %>
    <%
    if(usrInfo == null)
    response.getWriter().println("<center>User information not found</center>");
    else
    my jsp code.......
    %>
    Once I invoke the JSP_HOME_COUNTER , it will render the JSP_LEFT_FRAME_COUNTER page and
    JSP_MAIN_FRAME_COUNTER page which invokes the SSO Login page. Once the user has been authenticate, the result of the JSP_MAIN_FRAME_COUNTER is rendered successfully. The result contains an hyperlink to the
    JSP_MAIN_FRAME_COUNTER_DETAIL page. As the user has been authenticated , this page is rendering automatically the result without displaying the SSO Login page. (Perfect as of now!!).
    Once I invoke the JSP_HOME_PORTFOLIO from the JSP_HOME_COUNTER, it runs the security procedure without any rendering of the SSO Login page (fine!!) but redirects me back to JSP_HOME_COUNTER instead of rendering the result of the JSP_HOME_PORTFOLIO.
    please note that the m_requestUrl variable in the SSOEnablerJSPBean class has been assigned the folowing value : JSP_HOME_COUNTER
    Kindly advise .

  • How to construct the component tree in my custom component?Help!

    Hi, i am writing a custom component like this:
    public class HtmlCategory extends HtmlPanelGrid
         public void processRestoreState(javax.faces.context.FacesContext context,
                java.lang.Object state)
              setColumns(1);
              HtmlCommandLink link=new HtmlCommandLink();
              link.setValue("Let's Bingo");
              MyUtil.setActionListener(context,link,"#{temp.mytest}");
              UIParameter param=new UIParameter();
              param.setName("name");
              param.setValue("Robin!");
              link.getChildren().add(param);
              param.setParent(link);
              getChildren().add(link);
              link.setParent(this);
              super.processRestoreState(context,state);
    }         you see, i want to construct the compont tree at Restore View phase this way,because the structure of the component tree will always be the same, so i don't the user to write extra code.
    But the children of the component are not rendered,the renderer of the HtmlCategory component just extends the HtmlGridRenderer(myfaces) directly,and always calls the "super" methods in the encode methods of the renderer.
    I got a message from the console:
    Wrong columns attribute for PanelGrid id0:id4: -2147483648
    but i have set the columns attribute in the code above, so what's happening? or please give some advice about how to render the component tree by myself in Restore View with the tree constructing code in the custom component class code,just lke the code above.
    Best Regards:)
    Robin

    Well, i don't know if i have got my question clear.
    usually, according to the tags you use in the jsf page, a component tree will be created at the Restore View phase,for example:
    <f:form>
      <h:panelGrid ...........>                         
              <h:dataTable ................>
              </h:dataTable>
       </h:panelGrid>
    </f:form>but because i am writing a component for my web app, all the child components and their attributes are not likely to change. so i want to reduce the tags into one custom tag, and construct the component tree internally by myself.But it is not the case of backing bean.So i wrote the the code in the method:
    public void processRestoreState(javax.faces.context.FacesContext context,java.lang.Object state)as it is shown in my orginal message.But it seems that it is not right way to construct my component tree.So where should i put the code that construct the component tree?Overriding the method :
    public void processRestoreState(javax.faces.context.FacesContext context,java.lang.Object state)is not the right way?
    Best Regards:)
    Robin

  • The images imported to my stage turn up as blank and render every image previous to the rogue imported image as red squares that fill the perimeters of the image which then renders the publishing and scene testing features in flash useless, what can i do

    I have been working on animating a scene in flash for a few weeks and recently I have encountered a problem with importing my images on to the stage where the images I import do not turn up, however the key frame that I attempted to import the image onto shows that it is occupied by an image and every frame previous to the key frame that just imported an image that does not show turns up as a red square that fills the original perimeters of the image, there is no solution to this problem any where on the forum and the adobe technical support staff will not help me find a solution to this problem what can I do to get Flash running normally again and fix this problem?????
    Also after the first time i publish a preview after i begin using flash, flash renders the publishing and scene testing features as useless and claims that there is no HTML template found, or if the images if i import any images onto the stage that come up blank and render every image previous to that image as a red square and then try and publish a preview  flash renders the publishing and scene testing features as useless and claims that there is no HTML template found. What can I do to fix this problem??? there is no solution on the web anywhere to this problem either.

    I don't know if Flash has a memory limit of its own. The memory for your Flash file is based on the available memory on your computer.
    There is a limit on the number of frames that you can have in any given timeline. I think that it's about 15000 frames, but that's a guess. Flash does all of its work at runtime, this means that no part of your animation is pre-compiled like it is in a video file. So the more objects that you have on the stage, the more work Flash has to do. It follows that the more objects that there are to animate, the more work your processor and the video card have to do.
    Here's a list of articles on memory management that might be useful:
    Garbage collection internals for Flash Player and Adobe AIR | AdobeDeveloper Connection
    actionscript 3 - What are good memory management techniques in Flash/as3 - Stack Overflow
    AS3 Memory Management Tips

  • Fatal error while rendering UI component  since we are in BI 4.1 SP2 patch 4

    Hello,
    Since we are in BI 4.1 SP2 patch 4, we have one Analysis for Olap report  which have this message : Fatal error while rendering UI component.
    This report gets 7  folders  : 5 of them gets this error message and 2 of them works well
    It's the same problem with patch 6.
    Could you please help us to find a solution ?
    I don't know how to investigate.
    Regards,
    Nicolas

    Hey Nicolas
    We are experiencing a similar error. It appears when we try to create a conditional formatting rule on one of the reports.
    Were you able to find a solution to this?
    Regards
    Antonette

  • Issue while creating Component Based Message Alerting in PI 7.31 Dual Stack

    Hi,
    We tried to implement Component Based Message Alerting following the steps mentioned in the below blog.
    http://scn.sap.com/community/pi-and-soa-middleware/blog/2012/03/25/michals-pi-tips-component-based-message-alerting
    Ours is PI 7.31 dual stack. However, after setting up the job with my own user id, I am getting the below error inside the log of Jobs tab:
    javax.jms.JMSSecurityException: You do not have permissions: action alertingVP.queue and instance:name alertingVP.queue
    action consumer
    instance jms/queue/xi/monitoring/alert/ALERT-TO-MAIL
    Please let us know what permission is required to set up the job.
    Thanks,
    Rahul

    Hi, 
    Now I am able to receive alert in my mailbox. But it's coming with improper content.
    I have set up the job at an interval of every 2 minutes in NWA, and in case if only 1 message fails in IE, in ideal case, I should receive only 1 message details in alert.
    However, in every 2 minutes, I am receiving junk data and the number is increasing for the particular scenario for which the alert has been created. Also the Error Category mentioned is showing improper.
    But in table SXMSALERTCONTENT I am able to view only the newly added failed entry.
    An erroneous alert email content is pasted below:
    63 messages failed for "Test_XXX" on "af.s0i.saps0i"
    Root cause: -1
    To navigate to the failed messages in the local message monitor use this link
    The first 1 messages of that data collection:
    "AdapterNamespace": "http://sap.com/xi/XI/System",
    "AdapterType": "File",
    "Channel": "FileSender_XXX",
    "ChannelParty": "",
    "ChannelService": "XXXXX",
    "Component": "af.s0i.saps0i",
    "ErrCat": "",
    "ErrCode": "",
    "ErrLabel": "-1",
    "ErrText": "Configured source directory '\\Outbound\\XXX\\CREMAS' does not exist",
    "FromParty": "",
    "FromService": "XXX",
    "Interface": "Z_CREMAS_SUSMM.CREMAS03",
    "Namespace": "urn:sap-com:document:sap:idoc:messages",
    "RuleId": "3a64dd6e1b1d3e58aff62ea70c97cb80",
    "Timestamp": "2013-02-01T09:43:23Z",
    "ToParty": "",
    "ToService": ""
    The failed message however do not relate to the 'source directory does not exist' issue. Please help.
    Thanks,
    Rahul

  • How to enable a component based on a command button

    Hi, i'm looking for the options to enable and disable "af:showDetailItem" component based on selection of "af:SelectBooleanCheckBox " component . Thanks for your help.
    ganesh

    Write a changeListener for the checkbox and in it set the property you want for your showDetail item.
    More on working with backing beans and code here:
    http://blogs.oracle.com/shay/2010/03/working_with_backing_beans_in.html

  • How can I get the component LTC1060 in the multisim 10 library ?

    How can I get the component LTC1060 in the multisim 10 library ?

    ahnsei ,
    This is a switched capacitor filter - with a variety of configurations for each mode of operation based on the switching frequency.   To create a transistor level SPICE model would be unrealistic (which is probably why you haven't found one), so I would suggest looking at the datasheet and specifically, looking at each mode of operation and seeing if you can approximate the filter topology with an expression for the transfer function given in the datasheet (by calcuting based on the switching frequency).
    Based on the expression you get, you can use the Multisim component "TRANSFER_FUNCTION_BLOCK" to plug in the correct transfer function and thus approximate the behavior of the filter in the circuit.
    This transfer function can be found in the Master database -> Sources -> CONTROL_FUNCTION_BLOCKS.   There was a previous discussion giving some additional details on how to setup the transfer function block:
    http://forums.ni.com/ni/board/message?board.id=370&thread.id=3987
    Regards,
    Patrick Noonan
    Business Development Manager
    National Instruments - Electronics Workbench Group
    50 Market St. 1-A
    S. Portland, ME 04106
    Email: [email protected]
    Tel. (207) 892-9130
    Fax. (207) 892-9508 

  • How to exclude synchronous interfaces from component based message alerting

    Hi Pi experts,
    We are configuiring Alerts in PI 7.3 single stack.If we have 'n'number of interfaces, and if we configured general alerts for all.How to exclude synchronous interfaces in that.Alerting is for asynchronous interfaces only.How to do that.
    Please advice on this.
    Regards
    Suneel

    Hello,
    >>What are your approaches regarding this requirement in the context of java-only?
    I would suggest you to schedule jobs like this:
    Customize Alerts Using Job in PI 7.31/PO
    >> alerts are consumed according to the given interval and not in "real time" when error occurs, today solution using BADI is "real time" - if possible I would prefer "real time" solution
    Check this:
    Michal's PI tips: How to trigger an alert for Component Based Message Alerts (CBMA) via "API" ?
    >>an separate service determine the actual alert count would be helpful to provide the correct value for maxAlerts, this have to be called beforehand
    I haven't tried it but i think u can do that, since these consumers are nothing but JMS queues only so i think there will be a method to read number of alert counts.
    >>In history I saw emails generated by the standard alert consumer which only contain details for the first alert, in my case I need details especially the message id for all errorneous messages
    If ur max alert parameter is greater than 1 then u should see multiple alert text  (along with message id and other details) in ur email message.
    Thanks
    Amit Srivastava

  • Java-only, Component based message alerting - loopback to sender system

    Dear guys,
    we are using the alert framework availbale on PI 7.11 to notify the sender system if there is an alert for specific interfaces. In that case a customer function module is called giving the message id of the request message (message is sent via ABAP proxy). As a result the according entry in customer table is updated.
    The implemntation is based on the BADI ALERT_MODIFY_TEXT and uses the standard function module ALE_BAPI_GET_UNIQUE_RECEIVER to determine the system /rfc destination to send the alert notification.
    This solution works fine so far.
    As PI 7.11 dual stack is not the latest release, we are thinking of upgrading to current PI/PO release. In this context also shift to java-only installation is contemplated which will need an alternative solution for the described alert/error notification loopback.
    Are there any possibilities analog to BADI to implement such a solution?
    What are your approaches regarding this requirement in the context of java-only?
    Any help/thoughts appreciated.
    Best regards,
    Jochen

    Hello,
    >>What are your approaches regarding this requirement in the context of java-only?
    I would suggest you to schedule jobs like this:
    Customize Alerts Using Job in PI 7.31/PO
    >> alerts are consumed according to the given interval and not in "real time" when error occurs, today solution using BADI is "real time" - if possible I would prefer "real time" solution
    Check this:
    Michal's PI tips: How to trigger an alert for Component Based Message Alerts (CBMA) via "API" ?
    >>an separate service determine the actual alert count would be helpful to provide the correct value for maxAlerts, this have to be called beforehand
    I haven't tried it but i think u can do that, since these consumers are nothing but JMS queues only so i think there will be a method to read number of alert counts.
    >>In history I saw emails generated by the standard alert consumer which only contain details for the first alert, in my case I need details especially the message id for all errorneous messages
    If ur max alert parameter is greater than 1 then u should see multiple alert text  (along with message id and other details) in ur email message.
    Thanks
    Amit Srivastava

  • Component based message alerting

    Hi,
    I am working on component bvased message alertig in SAP PI 7.4 (dual stack). As per the Michal's blog i have define everything in PI.-
    http://scn.sap.com/community/pi-and-soa-middleware/blog/2012/03/25/michals-pi-tips-component-based-message-alerting
    Also i have configured Configuration -> Infrastructure -> JAVA System Properties -> XPI Services: AF Core  -> and choose tab Services .
    Set the value of the alerting.target service property to 1.
    and alerting.isActive (value true).
    But still i am not getting mail in mail box.
    When i check the log viwer i found two logs saying:
    Job AlertConsumerJob (ID: 5fe771e0ec86100082e50000002ab43a, JMS ID: ID:1344010011108-000000008399) started on Thu, 5 Jun 2014 03:52:43:011 EDT by scheduler: c0000173a37f11e2b6ab00237d240438
    Job AlertConsumerJob (ID: 5fe771e0ec86100082e50000002ab43a, JMS ID: ID:11344010011108-000000008399) ended on Thu, 5 Jun 2014 03:52:43:044 EDT
    Could some body help me in this .
    Thanks,
    Anurag

    Hi Anarug,
    I am not sure whether it is solved.
    From the log entry from the AlertConsumerJob, it seems that this job is running fine,
    but it is not finding any alerts.
    That means probably, no alert events are thrown by any rule.
    So you should focus on that part first and see if you have any aggregated alerts in a job run.
    I had some strange experience with Alert Rules that did not have all Message Statuses checked.
    As soon as you uncheck any of the Message Statuses in the rule (for example any unusual adapter technology), the rule will not work.
    This is a bug in my 7.31 system and I am just trying to fix it using SAP Note 1968989.
    Please check if this Note might fit your situation.
    Anyway, try to use a DEFAULT-RULE, which you can create in the ID by checking the box "create default rule" when defining a new alert rule.
    Other things to check:
    - are you using Integrated Configuration or generate at least errors in the Adapter Engine?
    For errors in the (ABAP) Integration Engine, the whole story is similar but completely different.
    Cheers, Jochen

  • HTML viewer component based on Java AWT ?

    Who knows about projects/sourcecode/etc. for a browser component based on only AWT and NO SWING ? I only need a simple HTMLViewer which does not use Swing (restriction because I want to run it on PDA with PersonalJava). I do not necessarily need a full blown browser, but just the most common and basic HTML tags.
    Any help would be highly appreciated.
    Kar;

    no - I searched some time ago but theres nothing useful for free.
    for money you get all you want!

Maybe you are looking for