Using a menu to change page content

I have an immediate auto-submit menu with a value-change event listener. When you change selections the value-change handler loads the appropriate data model. All of the detail fields on the page are bound to the data model. So when you have apple selected you get details about apples; when you pick orange the details are supposed to change.
Immediate bypasses the validation which is desirable. The event hander grabs the right model just as expected. It then calls renderResponse to make sure the incoming details are not written over top of the newly selected model. That works fine but the new data is NOT displayed. If you leave the page and then come back all is well: you see "orange" selected and "orange" details.
When I swap data models why aren't the new data values displayed? Somehow the framework is holding on to the old values. I know the old data model is no longer available and the selected data model is there and sitting in the managed session bean that all of the detail fields are bound to.

I might be facing a similar problem. I have a menu that I would like use to control an
input field. As the use changes the menu, I would like the rendering of th input
field to be changed. Below is the code I am trying which does not work.
It sounds like you did what I was trying to do.. Could you post some code.
Thx.
<h:selectOneMenu value="#{upload.investigator}" onclick="submit()" action="#{upload.change}" >
<f:selectItems value="#{upload.investigators}"/>
</h:selectOneMenu>
<h:panelGroup >
<h:inputText value ="#{upload.investigator}"
rendered="#{upload.investigator =='New'}" />
<h:commandButton value="Add"
action="#{upload.addinvestigator}"
rendered="#{upload.investigator =='New'}/>
</h:panelGroup>

Similar Messages

  • Is it possible to change page content based on 'case' or 'workflow' state (or similar method)

    Is it possible to change the page content if the customer revisits the page?
    I have an approval page which the customer completes - when they submit the form with their answers a case is generated and they are taken to a submission successful page.
    As they can revisit this page through their account details I want the page to change to say they have already submitted their approval.
    Is there a method within business catalyst to achieve this?
    Can I extend the CRM database to use a flag for the case and then set / check the state of that flag when the page is visited again?
    Thanks in advance.
    Gavin

    Ok I have figured out I can use {module_url,variable} to achieve this and pass in the case status to the page.
    Is there a way of changing a case status when the approval form is submitted?
    Gavin

  • While using ibooks how to change page swipe from left to right vs top to bottom

    Somehow I changed a setting in my Ibooks to change page by scrolling from top to bottom of the screen. I want to have page turn by moving from left to right. I am using iPhone with operating 7. whatever is out at this day and time. Can anyone help? Thanks
    Celestesyorkies.

    tap the AA symbol at the top, the one for resizing text.
    It will show a slider for brightness, font size, page colour, and on the bottom "scrolling view" off and on.
    When the scrolling view is "on" (green) the book is read with a vertical slider and scrolling up and down.
    When the scrolling view is "off" (no colour) the pages are changed by swiping left to right or right to left.

  • Change page content

    Hi,
    If I've updated the page content, do I have to publish the site again for it to be updated?

    Yes.

  • PDF with pop-up menu to change page

    Can I create a PDF in Pro that has a pop-up menu (or other simple selection method) that allows user to select an item in list which will change the displayed page?

    You'll probably want to use something like this.pageNum = 5; etc., and have all that embedded in an if conditional (or a switch conditional, which is probably what I'd use).
    A good place to get started with JavaScript is here, although you'll have to look here for the PDF specific stuff (navigate to the JavaScript API).
    The basic idea is that you create a variable for your button (that's the var cRtn stuff), and the value of the variable is updated depending on the user's action. So, if user chooses a popup menu item named Section 1, the value of cRtn becomes Section 1, and you can then add something like
    if (cRtn = "Section 1") this.pageNum = 5;
    Which would send the user to page 5 if they select Section 1 from the popup menu.
    Hope that doesn't sound too cryptic!

  • Using Java for dynamic web page content

    I've currently got a Perl program that I'd like to convert to Java. It merges two files that are stored on a web server and generates a "dynamic" HTML response.
    For example, if I have the following files on the server:
    File1:
    <Comment1>This stuff</Comment1>
    <Comment2>That stuff</Comment2>
    File2:
    <HTML>
    <Comment1><br><Comment2>
    </HTML>
    When I go to the URL
    www.mysite.com\cgibin\merge.pl?file1&file2
    the Perl program will produce a web page saying:
    This stuff
    That stuff
    The major obstical for the rewrite: NO JSP ALLOWED. It's not allowed by the ISP.
    Now for the questions:
    - Could this be done using Java?
    - How could I initiate the Java app and pass it the parameters? (applet tag, access Java inside Perl, use Java Script somehow)
    - Will an applet tag even work for this since the final page is generated completely from other files?
    Thank you very much for your help.

    If your ISP don't support JSP / Servlets,
    1.use any server side technolgy, something like ASP.
    2.Read the files and transform them as Strings (or StringBuffers).
    3.Pass these Strings as parameters to the applet (if you are forced to use java technology, otherwise you can do it using ASP itself).
    4.Construct the required format (content) in your applet.
    Don't forget that the stuff will be in applet but not a complete web page. The ideal solution is asking your ISP to provide JSP engine.

  • Using a Variable to change the content of Caption Text?

    Can someone give me some direction on how I can do something like this.
    I have one caption, I want to change it's text upon a button click.
    So I have 3 buttons and 3 sets of  text, and one caption.
    Thanks in advance!

    Hi there
    You might achieve it in a few different ways.
    Multiple captions and use Hide / Show actions to hide one and show another
    Create a variable and use that in the caption. Then configure the action to change the variable value
    Cheers... Rick
    Helpful and Handy Links
    Captivate Wish Form/Bug Reporting Form
    Adobe Certified Captivate Training
    SorcerStone Blog
    Captivate eBooks

  • Using 'Fb like' buttons for page content

    I want to add a 'Fb like' button to individual photos in my site. I have a like button that links to my Fb page and 'likes' that, but what I would really like is for photos to appear in their activity instead of just the page address.
    I tried adding an anchor and entering the page address with the anchor, but the button won't generate. Any ideas?

    Hi,
    Yes Weblogic controls the users/groups, but it can delegate this to, for example, an LDAP, active directory etc.
    Take a loot at JHeadStart if you want to store user / group access in the database.
    Depending on how much you can to restrict with security, you can make fields read only or not rendered at all based on the user roles.
    When using JHeadStart it provides a map with user roles to access in EL.
    If you write the code yourself, which is rather trivial, you can use:
    acesContext.getCurrentInstance().getExternalContext().isUserInRole("role name");And just expose this as a bean on the session.
    Or just create a map implementation which does the same, but thats a bit more code.
    -Anton

  • Muse page content "jumps" when using menu button

    I Created a simple portfolio website in Adobe Muse. Two pages (projects and contact) and for both using the same underlaying stramien page (don't know the English word for that). I added a menu widget to navigate between the two pages. Works fine, but whenever I use the menu button the page content (text and/or pictures) make a little vertical jump before they are in their right position. Obviously this little "jump" is not like it is supposed to be. The website is not yet published or online, cause it's not finished yet, but the problem occurs when I preview what I've made so far.
    What could be the cause of this problem and how can I repair it ??
    Alexander

    are you using Chrome?
    try loading my page, www.stacystechpubs.com using Chrome.
    Then you see a bar of menu items across the page (home, who am I, terms,...) try clicking on one, then the next one, then the next one. You'll see the box 'Stacy's Tech Publications' jumps when you click on a link.
    If you still aren't sure what I mean I need to take a screen capture video and upload it.

  • How can I insert multiple page contents in the page layout properly?

    I wanted to create 4 columns on the page layout. These 4 columns are of page contents.
    After creating new web page based on that page layout, I attempted to enter 4 different inputs on all 4 columns.
    Then, the result (from all columns) becomes the same.
    Image - edit the web page based on 4 columns page layout:
    Image - after edit & save:
    How can I insert multiple page contents in the page layout properly?

    First, I copied the HTML snippet for the Page Content on Sharepoint's Design Manger. The code of Page Content HTML snippet is shown below:
    <div data-name="Page Field: Page Content">
    <!--CS: Start Page Field: Page Content Snippet-->
    <!--SPM:<%@Register Tagprefix="PageFieldRichHtmlField"
    Namespace="Microsoft.SharePoint.Publishing.WebControls"
    Assembly="Microsoft.SharePoint.Publishing, Version=15.0.0.0,
    Culture=neutral, PublicKeyToken=71e9bce111e9429c"%>-->
    <!--MS:<PageFieldRichHtmlField:RichHtmlField
    FieldName="f55c4d88-1f2e-4ad9-aaa8-819af4ee7ee8" runat="server">-->
    <!--PS: Start of READ-ONLY PREVIEW (do not modify)-->
    <div id="ctl02_label" style="display:none">Page Content</div>
    <div id="ctl02__ControlWrapper_RichHtmlField" class="ms-rtestate-field"
    style="display:inline" aria-labelledby="ctl02_label"><div align="left"
    class="ms-formfieldcontainer"><div class="ms-formfieldlabelcontainer"
    nowrap="nowrap"><span class="ms-formfieldlabel"
    nowrap="nowrap">Page Content</span></div>
    <div class="ms-formfieldvaluecontainer"><div class="ms-rtestate-field">
    Page Content field value. Lorem ipsum dolor sit incididuntet dolore.</div>
    </div></div></div><!--PE: End of READ-ONLY PREVIEW-->
    <!--ME:</PageFieldRichHtmlField:RichHtmlField>-->
    <!--CE: End Page Field: Page Content Snippet-->
    </div>
    After I published the page layout, I found the code for Page Content from its ASPX page. The code is shown below:
    <div data-name="Page Field: Page Content">
    <PageFieldRichHtmlField:RichHtmlField FieldName="f55c4d88-1f2e-4ad9-aaa8-819af4ee7ee8" runat="server"/></div>
    So, I attempted to create 4 columns by using 4 HTML snippets of Page Content on the same page layout. The page layout is generated from HTML file to ASPX file.
    Then I edited some parts in ASPX page layout:
    <asp:Content runat="server" ContentPlaceHolderID="PlaceHolderMain">
    <table>
    <tr>
    <td style="width:70px;">&nbsp;</td>
    <td style="width:250px; text-align:right;">
    <div data-name="Page Field: Page Content">
    <PageFieldRichHtmlField:RichHtmlField FieldName="f55c4d88-1f2e-4ad9-aaa8-819af4ee7ee8" runat="server"/>
    </div>
    </td>
    <td style="width:40px;">&nbsp;</td>
    <td style="width:200px;">
    <div data-name="Page Field: Page Content">
    <PageFieldRichHtmlField:RichHtmlField FieldName="f55c4d88-1f2e-4ad9-aaa8-819af4ee7ee8" runat="server"/>
    </div>
    </td>
    <td style="width:25px;">&nbsp;</td>
    <td style="width:200px;">
    <div data-name="Page Field: Page Content">
    <PageFieldRichHtmlField:RichHtmlField FieldName="f55c4d88-1f2e-4ad9-aaa8-819af4ee7ee8" runat="server"/>
    </div>
    </td>
    <td style="width:25px;">&nbsp;</td>
    <td style="width:200px;">
    <div data-name="Page Field: Page Content">
    <PageFieldRichHtmlField:RichHtmlField FieldName="f55c4d88-1f2e-4ad9-aaa8-819af4ee7ee8" runat="server"/>
    </div>
    </td>
    <td style="width:175px;">&nbsp;</td>
    </tr>
    </table>
    </asp:Content>
    The 4 columns for Page Contents appeared on the web page when I created new page using that page layout. But the problem is that all 4 columns displayed the same result from 4th column.

  • Change Mail content for standard mail 'Simultaneous logon approval required' in 2 Envelop RFx

    Hi Experts,
    Please suggest, we have a requirement where we need to Change Mail content for standard mail 'Simultaneous logon approval required' and Simultaneous Logon Successful in 2 Envelop RFx in SRM.
    Thanks.
    Regards,
    Gaurav

    Hi Gaurav,
    please implement BADI /SAPPSSRM/BD_SIM_LOGIN
    Enhance Simultaneous Logon
    Use
    You can use this Business Add-In (BAdI) to incorporate customer-specific functions into the initiation and completion processes for simultaneous logon and to adapt simultaneous logon e-mail notifications.
    Method PROCESS_FINISH
    You use this method to add customer-specific functions to the simultaneous logon process. This method is called on completion of the simultaneous logon process.
    The following parameters are provided
    IV_EXT_GUID
    Process ID of the external process
    IV_MODE
    Indicates the mode of the e-mail function (completion)
    CV_SUCCESS
    Indicates whether the process was successful
    IV_SET_GUID
    Process ID of the customer-specific process
      Method PROCESS_INIT 
    You use this method to add customer-specific functions to the simultaneous logon process. This method is called on initiation of the simultaneous logon process.
    The following parameters are provided:
    IV_EXT_GUID
    Process ID of the external process
    IV_MODE
    Indicates the mode of the e-mail function (initiation)
    IV_SET_GUID
    Process ID of the customer-specific process
      Method SIM_EXT_MAIL 
    You use this method to change the content of the e-mail sent to participants on successful initiation, completion or failure of the simultaneous logon session and to define the external process that is calling the simultaneous logon application.
    The following parameters are provided:
    IV_OBJECT_ID
    Business object identifier
    IV_MODE
    Indicates the mode of the e-mail function (initiation, completion or failure)
    IV_EXT_MODE
    Indicates the external process, for example, technical RFx response opening, of the calling application. This could be any process for which you want to use simultaneous logon.
    CT_MAIL_BODY
    Content of the e-mail
    CV_MAIL_SUB
    Subject line of the e-mail
    Standard settings
    If the customer does not define a BAdI implementation, SAP delivers a default BAdI implementation. The default implementation incorporates the simultaneous logon process with the two-envelope RFx response process. You cannot use the simultaneous logon process with standard RFxs in the default implementation.
    Activities
    Information about the implementation of BAdIs in the context of the enhancement concept is available in the SAP Library for SAP NetWeaver under BAdIs - Embedding in the Enhancement Framework.
    Regards,
    raghuveer

  • I created mega menu in adobe muse ( master page ) but the thing is when i preview the menu in other pages the stuff i alreahy had created will overlap the menu. Is there anything i can do fix that problem up. I'd like to have the menu overlap the stuff i

    I created mega menu in adobe muse ( master page ) but the thing is when I preview that menu in other pages contents I already had created will overlap the menu. Is there any options that would fix that problem up. I'd like to have the menu overlap the contents. That does not happen on master page ( master page looks good ) Thank you very much.

    Place the menu on its own layer above the rest of the page content.

  • I have 5 html pages that share a common header, footer, and sidebar. how do i use my nav bar to change the content of the body without duplicating a lot of code?

    i have 5 html pages that share a common header, footer, and sidebar. how do i use my nav bar to change the content of the body without duplicating a lot of code? thank you!

    i inherited the website. It’s for a non-profit and is not very
    sophisticated, and neither am I in webdesign. It currently has multiple
    pages that are identical except for that body section, so whenever i change
    the navigation (in the sidebar) I have to update every html page.  I want
    to have one basic page, and just call in the different body content based
    on the link the user selects from the nav bar. How can i do that using a
    script? i am using Dreamweaver.
    ~ in love and light ~
    Jeannie
    On Sat, Feb 7, 2015 at 4:07 AM, Ben Pleysier <[email protected]>

  • I'm trying to change the content of a tab. Can't find info anywhere! My new tab used to come up as Google search page. Now it is Bing, and I don't want Bing

    I'm trying to change the content of a tab. Can't find info anywhere! My new tab used to come up as Google search page. Now it is Bing, and I don't want Bing. I have uninstalled the program that inadvertently put it there but Bing remains. Where is the tab control that hooks me up with Tab content?

    Removal of dupe comment

  • Menu change fails to refresh page content

    Consider a fruit menu and a set of nutritional input boxes . When a different fruit is selected the details should change.
    The menu is a dropdown list and the details are text inputs. The menu is auto-submit and it has an event handler for value-change.
    The menu value and all of the inputs are bound to properties in a single data model. The data model lives in a managed session bean. When the menu value changes the data model is replaced by calling the session bean and passing it the new name.
    All of that works but the none of the details change on the page except the name of the fruit. The name input box is bound to the same field the menu value is bound to. The other input boxes are bound to the other data model fields.
    Is there some step I am missing to implement this sort of dynamic update functionality?
    TIA

    I found the problem but not the solution.
    The form contains Apple details and you select Orange from the menu. That triggers a submit. Once my value-change event is fired it loads the Orange data model. Therein lies the problem: the data model will subsequently be updated with the incoming Apple details.
    The solution would be to have my value-change event hander called AFTER the model update but before the render response because the response has to be populated with the new details. I will give that a try but not sure how that's done.

Maybe you are looking for

  • IPad and Itunes Issue..please help

    Hi- i suddenly found yesterday that none of my apps in IPAD are working. And Itunes from my laptop disappeared. i tried to reinstall but it gives an error message of invalid E:\ drive. What could be the issue.Secondly is it possible that without sync

  • VGA to HDMI cable adapter

    Can I use this type of cable to connect my PC ( p6112p with Intel GMA 3100 ) to the HDMI input of my TV?

  • Need a fan for smart touch hp IQ525

    need a fan for HP Smart touch IQ 525, one without heat sink

  • Problem in automatic workflow customizing. SWU3

    Hi All, I run the transaction SWU3 and Executed the automatic workflow customization for maintain runtime environment i am getting the below error like RFC USER HAS WRONG PASSWORDS, SYNCHORONIZE PASSWORDS WITH YES OR NO pop up. When i click yes i am

  • Taxcode missing in PO

    Hi, After creating the shopping cart as limit order the default tax code value is not appearing in the PO in backend system. Please help me on this regard. Cheers, Satish