How to display some components conditional!

Hi All:
Now in one of my page have two buttons, one cancel button and one confirm button,also hava some components, one of the components is af:panelForm which contains some inputTexts.The af:panelForm is displayed only when the sessionScope value 'display' is 'displayAll', when i first time entered this page, the sessionScope value 'display' is 'displayAll', and the af:panelForm is displayed.The problem is :
when i click the cancel button, i hava use session.removeAttribute("display'");But the af:panelForm is still display in the page, it seems the page doesn't refresh.
How to sovle this problem and thanks in advance.
Alex

Alex,
You can tell if the page is getting refresed by putting an output component onto it that show the current time. This gives you a visual aid.
If the cancel button uses partialSubmit=true then the page doesn't refresh. If you remove the attribute displayAll and don't replace it with anything that sets the rendered value to false using EL then I assume the component renderer will use its default rendering setting, which is true.
Frank

Similar Messages

  • How to reuse some components of the scripts layout to other programes

    how to reuse some components of the scripts layout to other programes

    You can't reuse components; the only solution would be to copy a script and to remove all components not needed.
    Regards,
    John.

  • How to display Some message in the BEX Explorer

    Hi Experts,
    We have a scenario where we will check for a condition in the User Exit Variable.
    Depending on the condition we need to stop the execution of the query and display some message.
    Can any one please help me in explaining me how to display message in the BEX and stop the Query Execution.
    Thanks in Advance,
    Premkumar

    Somenath,
    I think from what I gathered in the other posts on SDN about exceptions that it can be used only within a function module and not directly ..
    http://help.sap.com//saphelp_470/helpdata/EN/9f/dbaa0635c111d1829f0000e829fbfe/content.htm
    Try creating a Z Function module to display the exception but then the exception would stop only your Z Function module and not the user exit from going further..
    Arun
    P.S some more dope on the same with regard to raising exceptions in programs ( in your case ZXSRU01)
    http://help.sap.com/saphelp_nw04/helpdata/en/55/bff20efe8c11d4b54a006094b9456f/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/83/636d2012fc11d5991e00508b5d5211/content.htm
    Message was edited by:
            Arun Varadarajan

  • How to display mutpliple components of one report in SharePoint webparts?

    Our customer requires flexible report layouts in SharePoint. For example, if we create a PivotTable, a PivotChart and a filter in Excel, then these three elements should be made available as separate webparts so they can be placed anywhere on the SharePoint
    page, e.g. the filter should be placed into an area which only opens on demand. The different webparts that make up the one report should still interact of course.
    Another demand is to export certain parameters, e.g. the name of a dimension, and again make that option available in the form of a webpart, so the end user is able to select from a preset list of dimensions.
    I am unsure if any of this is at all possible, since I have worked with rather "plain" Report Services reports and some Excel Services (w/o PowerView) reports in the past. I am thankful for any hints concerning such customizations, whatever the
    technology may be (must stay in the MS BI world of course). Even implementing custom webparts that somehow communicate with SSAS (using Reports Services web service maybe?) would be an option if everything else fails.

    Hi timvdh,
    As per my understanding, you are creating a PivotTable, a PivotChart and a filter using the same AS cube in three Excel files. You want to select some parameters in the filter, then PivotTable and PivotChart can be updated based on the filter.
    If in this scenario, I suggest you can open the PivotTable Excel file, then add the same filter in the PivotTable, and then create the same PivotChart based on the PivotTable. In this way, the data in PivotTable and PivotChart can be updated based on the
    filter, all components in the same excel file. Then add an Excel Web Access Web Part in a SharePoint page, upload this excel file to the web part.
    Reference:
    Display a workbook in an Excel Web Access Web Part
    If there are any misunderstanding, please elaborate the issue for further investigation.
    Regards,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • How to move some components in JFileChoose interface?

    Hi, there,
    I am implementing a GUI including onw area that will display file contents in some directory, I need to display column names(file name, size, modified), in file name column, I would like to display different icon to show it is a directory or a real file. I use JTable to do it, but i couldn't get icon to display, furthermore, each column width is always the same.
    If I use JFileChooser, i cannot remove the input file name, file filter areas, and other components I don't want.
    Anyboby can give me some idea? Thanks in advance.

    Hi, there,
    I am implementing a GUI including onw area that will display file contents in some directory, I need to display column names(file name, size, modified), in file name column, I would like to display different icon to show it is a directory or a real file. I use JTable to do it, but i couldn't get icon to display, furthermore, each column width is always the same.
    If I use JFileChooser, i cannot remove the input file name, file filter areas, and other components I don't want.
    Anyboby can give me some idea? Thanks in advance.

  • How to display some data fetched from a Custom assembly?

    Here's my simplified scenario.
    I have a small .net library that connects to a database, fetches some data and does a bit processing.
    In an SSRS report, I am able to reference the assembly and can call a methods that returns a string list (for instance). It works just fine with appropriate permissions set (both in VS and Report Server).
    Now that I have the string list, how do I display it in some kind of a list? Is it possible?
    Thanks in advance for any help.

    Hi there,
    You could convert the list to a dataset and use the data table or list control to display.
    http://technet.microsoft.com/en-us/library/ms152917.aspx
    cheers,
    Andrew
    Andrew Sears, T4G Limited, http://www.performancepointing.com

  • How to display multiple components in a single tabstrip with different tabs

    Hi Experts,
    I am working on PM UI development. We have created 5 webdynpro components and all have seperate application and link to run. Now we have requirement in which we should have a single window and all components should exist in different tabs.
    Till now I have used Tabstrip in a single copmponent and have no idea how to fix this issue. Could you please help me out to get this done ASAP.
    Thanks in advance.
    Madhu Omer

    Hi Madhu,
    One option that you can try now is to create a new webdnpro component with a tabstrip.
    1. To each of the tab area you attach view container.
    2. In the used components of webdynpro component tab you can add each of the components that you created
    3. Create inboud plugs for each of these application that you created.
    4. When the tab is pressed trigger a call to the inbound plug of the applications
    5. You can refer the following also https://cw.sdn.sap.com/cw/docs/DOC-24752
    All the Best !

  • How to display some html code in the front panel

    Hello.
    I am trying to properly display a few lines of html code in some kind of indicator on my front panel.
    I was trying to use an ActiveX container with MS IE in it, but all the methods I find are to make it navigate to a given URL. I did not find any method or property by which I could give it some html code and it would display it.
    Anybody know of a way to do this? It does not have to be using ActiveX or MS IE.
    Thanks in advance,
    Alejandro

    Here is a simple way using the activeX that I have embedded in some programs in the past. You will have to call the file path to show the file.
    Hope this helps some.
    -Dave
    Attachments:
    HTML Window.vi ‏36 KB

  • How to display " %some string% " in JSP

    In the following code the value of Parameter "greeting" is "<%some string%>"
    How do I escape it so that I can print it as it is.
    out.println("Greeting: " + request.getParameter("greeting"));
    thanks in advance.
    -a.

    If your variable is named some_string<%
    String some_string = "dear user";
    %>
    Greating <%= some_string %>,                                                                                                                                                                                                                               

  • 11G ADF BC: First time loading the page, how to disable some components?

    Hi,
    I have a fusion web application created using Jdev 11G ADF BC. I am working on a search/results page that has a panel split. In the left panel, there is a list of nevigation links. The data shows in the right panel.
    What I want to achieve here is to enable only one link on the left when the page is first loaded and it is a search/result page. Disable all the rest of it because other links are related to more info about the search results. When the page is first loaded, there is no data on the right, so that there is no more other data to look at. Ideally, all the rest of the links should be disabled and only the "Query" link should be active and selected.
    Is there a way to do this with 11G? Thank you very much for your help.
    Regards,
    Annie

    initially, what ever the components you want to disable set the disabled="true" in the jspx. Once you fetch the query results and in that action enable the componens like commandButton1.setDisabled(Boolean.FALSE);. that's how I am doing. You can dynamically enable/disable by having a boolean variable in the backing bean and set the disable property of component lke disabled="#{backingBeanScope.yourbean.blnAddBtn}".

  • How to display some alerts

    Hi,
    I want to know if Portals has some types of alerts like in Forms 6i/Developer2000 has alerts.
    Thanks
    Muhammad Ejaz

    Hi ejaz
    Portal does not support alerts by it self ,But u can create alerts by using javaScript for field level validations in the form ..
    vishnu

  • In jsp how to display code?

    in jsp how to display some code like this:
    String body=body1;
    String body_new="";
    int Position = 0;
    while(true){
    int index = body.indexOf(0x0D, Position);
    if(index == -1){break;}
    if(index > Position){
    body_new += body.substring(Position, index);
    body_new += "<br>";
    Position = index +1;
    if(Position >= 0){
    body_new += body.substring(Position);
    body=body_new;
    ==================
    i find IE will not display the "<br>" and some char like "'"
    i use text textarea post
    thanks

    let us say this page as code.jsp
    code.jsp
    this is the u need to follow.........
    String body=body1;
    String body_new="";
    int Position = 0;
    while(true){
    int index = body.indexOf(0x0D, Position);
    if(index == -1){break;}
    if(index > Position){
    body_new += body.substring(Position, index);
    body_new += "<br>";
    Position = index +1;
    if(Position >= 0){
    body_new += body.substring(Position);
    body=body_new
    this is the sample usage ok

  • How to display text in custom control?

    Im doing a module pool program. There I have a Input field ,if user input there, some text I have to show in custom control. I have created custom control . But how to display some text there? what method I have to use?
    I have use this code for creating custom control.
    CREATE OBJECT EDITOR_CONTAINER
          EXPORTING
            CONTAINER_NAME              = 'TEXTEDITOR'
          EXCEPTIONS
            CNTL_ERROR                  = 1
            CNTL_SYSTEM_ERROR           = 2
            CREATE_ERROR                = 3
            LIFETIME_ERROR              = 4
            LIFETIME_DYNPRO_DYNPRO_LINK = 5.
        CREATE OBJECT TEXT_EDITOR
          EXPORTING
            PARENT           = EDITOR_CONTAINER
            WORDWRAP_MODE    = CL_GUI_TEXTEDIT=>WORDWRAP_AT_FIXED_POSITION
            WORDWRAP_POSITION          = LINE_LENGTH
            WORDWRAP_TO_LINEBREAK_MODE = CL_GUI_TEXTEDIT=>TRUE.

    Hi,
    You will have to use the method 'set_text_as_r3table' to display your text in the object.
    The text will have to be passed as an internal table to the method.
    Regards,
    Ankur Parab

  • How can I display some OrdImages using a Applet in html or Jsp?

    hi
    I want to use a applet to display some images retrieved from intermedia OrdImage Object.
    Now ,I know that a applet can display some image objects or some images with their own filepaths. But we can get ordimag objects from Oracle database.And we can image data or image properties by ordimage java mathod. It is in html/Jsp environment. So how can I transform from ordimage to applet?? I appreciate someone who can help me!
    Bill

    Do you mean applet or Servlet?
    An Applet is java code that is downloaded over the web and runs in a web browser environment. Is this what you are doing?
    I suspect you are really talking about servlet/JSP environments, and the ability to include images from the database in a web page.
    In either case (applet or servlet), you want to be able to access images via a URL. For a Servlet/JSP/web page, this URL will be specified in a HTML <IMG> tag with a key as a parameter to the image you wish to view. Images are not in-line downloaded in a web page. They are access after the HTML is loaded, and are accessed with URLs, sometimes relative URLs rather than fully specified URLs.
    To deliver images to the web from the database using the PL/SQL gateway and iAS, where the procedures are generated by a wizard, see:
    http://otn.oracle.com/software/products/intermedia/htdocs/descriptions/imedia_code_wizard.html
    You can create a simple servlet (JSPs can not deliver binary data) that delivers database images using java classes. See:
    http://otn.oracle.com/software/products/intermedia/htdocs/descriptions/servlets_jsp.html
    http://otn.oracle.com/sample_code/products/intermedia/htdocs/intermedia_servlet_jsp_samples/imedia_servlet_jsp_readme.htm
    for a sample.

  • [svn:osmf:] 15505: Fix image smoothing, which had been broken as a result of some changes to how the display object of an ImageElement is exposed .

    Revision: 15505
    Revision: 15505
    Author:   [email protected]
    Date:     2010-04-16 09:29:26 -0700 (Fri, 16 Apr 2010)
    Log Message:
    Fix image smoothing, which had been broken as a result of some changes to how the display object of an ImageElement is exposed.  Add integration test.
    Modified Paths:
        osmf/trunk/framework/OSMF/org/osmf/elements/ImageElement.as
        osmf/trunk/framework/OSMFIntegrationTest/org/osmf/elements/TestImageElementIntegration.as

    That's a comment in the file. It has no effect at all.

Maybe you are looking for

  • A tool for marking tracks to cut off pieces at once?

    Hey, It is hard to describe for me with text, so I made a video when I'm showing in PrP what I mean. But, basically I need to shorten my time spent in Premiere Pro with editing. I need something to mark few tracks, for example 1 second on each track,

  • Length of the field in debugging

    Hi, I have declared the "rate" field like this in a program. the field "konp-kbetr" is of "CURRENCY" field type and the length is: 11,2. data: begin of itab occurs 0,               rate like konp-kbetr,       end of itab. select kbetr from konp into

  • Problem with thumbnail icon in Organizer

    Running Windows 7 Home Premium, 64-bit OS, installed Adobe Photoshop Elements 13 running organizer.  Brand new installation, no previous versions installed. I installed Elements last week and I'm trying to access my digital photos and some video clip

  • Poor raw conversion from Fujifilm X100 .raf format in Lightroom 3 and 4

    I'm seeing very poor results when doing raw conversion from Fujifilm X100 .raf format. Who can I contact about this? Is there anything I can do? See below for what is supposed to be a white curtain, lit by stage lighting. It results in a blown out bl

  • PS Shadow and Aperture Shadows

    I hope and describe this correctly. I shoot in Raw with a Canon 30D. I was using iPhoto until recently when I purchased the new 24" iMac. Before I would import all my pics into iPhoto then open one I wanted to adjust in photoshop. It would open the r