Popup reopen problem

Hi,
I am using PopupManager class for opening and closing a
popup.
The problem I am facing is that, once I close the popup and
reopen it, whatever action I did when I opened the popup for the
first time is lost.
I have a tree control inside the popup, when I navigate
through the tree nodes, close the popup and then reopen popup, the
tree opens in its initial state instead of showing the nodes
through which I navigated.
Is there some other way for opening/closing of popup or is
there some trick in PopupManager class to maintain previous state
of popup.
Please help.
Thanks in advance.

I suppose you could create a state manager but the way
typically do it is to save the openItems of the tree before closing
the popup, saving that array in a variable, and reopening the nodes
to the previous state on the next popup. Here are a couple posts
that would help.
http://blog.flexexamples.com/2007/12/01/determining-which-tree-branches-are-open-using-the -openitems-property/
http://blog.flexexamples.com/2008/01/15/expanding-nodes-in-a-flex-tree-control-using-the-o penitems-property/

Similar Messages

  • When i open iPhoto and want to share my photo on face book its popup with problem occur and ask me to repair when i repair it appears back again?

    when i open iPhoto and want to share my photo on face book its popup with problem occur and ask me to repair when i repair it appears back again?

    The Firefox Page Zoom feature does a domain by domain level of saving the users preferred zoom level settings, there is no default Page Zoom level setting in Firefox.
    Try the Default FullZoom Level extension: <br />
    https://addons.mozilla.org/en-US/firefox/addon/6965
    Or the NoSquint extension: <br />
    https://addons.mozilla.org/en-US/firefox/addon/2592/

  • Autocomplete text popup location problem

    Hi,
    I encounter a autocomplete text popup location problem
    whereas the popup location is always located few cm below the textBox itself.
    Any idea how to solve this?
    Is there any property i need to set in order to prevent this?
    I am using BluePrints Ajax Component by the way.
    Thanks

    yea.
    i think that is the problem.
    i have a autocomplete textfield under groupPanel and this groupPanel is located under gridPanel
    and the resultiing popup list is located outside the panel itself.
    Thanks.
    Can u refer me to the bug URL?
    is there any workaround for this?
    Thanks

  • Dynamic Region in Popup - clientListener problem?

    Hello,
    I'm working in Jdeveloper 11.1.1.2, following the popup/region pattern found at: http://www.oracle.com/technology/products/adf/patterns/11/popupregionpattern.pdf to have a dynamic region in a popup. I already have a working implementation on one of my pages, but the exact same implementation on another page is giving me issues. Whenever I add an af:clientListener component to my popup, the table in the same panelCollection stops rendering its rows. The column headers display, but there's no text of any type in the rows. If I delete the af:clientListener, my page works perfectly.
    Here's my popup code thus far:
    <af:popup id="awdPU" contentDelivery="lazyUncached"
    launcherVar="source" eventContext="launcher">
    <af:setPropertyListener from="#{source.attributes.saId}"
    to="#{pageFlowScope.currentSaId}"
    type="popupFetch"/>
    <af:setPropertyListener from="#{source.attributes.saId}"
    to="#{pageFlowScope.currentSchlrId}"
    type="popupFetch"/>
    <af:setPropertyListener from="#{source.attributes.appId}"
    to="#{pageFlowScope.currentAppId}"
    type="popupFetch"/>
    <af:setPropertyListener from="#{source.attributes.aidYear}"
    to="#{pageFlowScope.currentAidYearId}"
    type="popupFetch"/>
    <af:setPropertyListener from="#{source.attributes.theAction}"
    to="#{pageFlowScope.currentAction}"
    type="popupFetch"/>
    <af:setPropertyListener from="#{viewScope.popupDynamicRegionBean.popupTaskFlowId}"
    to="#{viewScope.popupDynamicRegionBean.dynamicTaskFlowId}"
    type="popupFetch"/>
    <af:setPropertyListener from="#{source.attributes.orgId}"
    to="#{pageFlowScope.currentOrgId}"
    type="popupFetch"/>
    <af:panelWindow id="pw1" title="Awarding">
    <af:region value="#{bindings.dynamicRegion1.regionModel}"
    id="dynam1"
    regionNavigationListener="#{viewScope.popupDynamicRegionBean.regionNavigated}"/>
    </af:panelWindow>
    <af:serverListener type="serverPopupClosed"
    method="#{viewScope.popupDynamicRegionBean.swapEmptyTaskFlow}"/>
    <af:clientListener method="popupClosedListener"
    type="popupClosed"/>
    </af:popup>
    and here is my working, completed dynamic region + popup code:
    <af:popup id="awdPU" contentDelivery="lazyUncached" launcherVar="source"
    eventContext="launcher">
    <af:panelWindow id="window" title="Awarding" modal="true" closeIconVisible="false">
    <af:region value="#{bindings.dynamicRegion1.regionModel}" id="dynam1"
    regionNavigationListener="#{viewScope.popupDynamicRegionBean.regionNavigated}"
    inlineStyle="background-color:transparent;"/>
    </af:panelWindow>
    <af:setPropertyListener from="#{viewScope.popupDynamicRegionBean.popupTaskFlowId}"
    to="#{viewScope.popupDynamicRegionBean.dynamicTaskFlowId}"
    type="popupFetch"/>
    <af:setPropertyListener from="#{source.attributes.saId}" to="#{pageFlowScope.currentSaId}"
    type="popupFetch"/>
    <af:setPropertyListener from="#{source.attributes.appId}" to="#{pageFlowScope.currentAppId}"
    type="popupFetch"/>
    <af:setPropertyListener from="#{source.attributes.aidYear}"
    to="#{pageFlowScope.currentAidYear}" type="popupFetch"/>
    <af:setPropertyListener from="#{source.attributes.theAction}"
    to="#{pageFlowScope.currentAction}" type="popupFetch"/>
    <af:clientListener method="popupClosedListener" type="popupClosed"/>
    <af:serverListener type="serverPopupClosed"
    method="#{viewScope.popupDynamicRegionBean.swapEmptyTaskFlow}"/>
    <af:clientAttribute name="action" value="makeAward"/>
    <af:clientListener method="adjustPopupSize" type="popupOpening"/>
    </af:popup>
    Does anyone know of any reason a client listener would have this kind of impact on my page? I've tried other types/methods and it just seems like if an af:clientListener is there, it won't work.
    Thanks!

    Hi,
    I came across this type of problem. what the javascript method u r calling it may contain some errors or if the clientListner not able to find the method which u r calling in the jspx file that will behave like that only.
    keep one alert begining of the script method(popupClosedListener) and check it whether it is calling or not. Better related serverListner should be after the ClientListner.
    Reg,
    Brahma...

  • Dynamic Popup iFrame Problem

    Hi,
    I'm adding a dynamically created iFrame tag to my main page using javascript to function as a popup page instead of faces-config navigation rules. It dramatically furthers data/page load rendering performance. However, I've got a problem with values I want to pass to my main page since there's no dialog:popup or ReturnListener facility.
    I'm using Jdev 10g.
    Here is the javascript code to fire the iframe in my page:
    <script language="JavaScript">
    function newwindow(address) {
    var w= screen.width;
    var h = screen.height;
    var load = window.open(address,'','scrollbars=yes,menubar=no,height='+h+',width='+w+',left=0,top=0,screenX=0,screenY=0,resizable=yes,toolbar=no,location=no,status=yes');
    function openPopup (popUpUrl,popUpTitle,popUpWith,popUpHeight){
    document.getElementById("mainModalPopBg").style.display = "block";
    document.getElementById("mainModalPopBox").style.display = "block";
    var neww= screen.width;
    var newh = screen.height;
    var boxw= popUpWith;
    var boxh = popUpHeight;
    var boxleft = (neww-boxw)/2;
    var boxtop = (newh-boxh)/2;
    document.getElementById("mainModalPopBox").style.left = boxleft+"px";
    document.getElementById("mainModalPopBox").style.top = 60+"px";
    document.getElementById("modalPopBoxFrameContainer").innerHTML = "<iframe allowTransparency='true' id='popUpFrame' frameborder='0' src='" + popUpUrl + " '> </iframe>";
    document.getElementById("popupTitle").innerHTML = popUpTitle;
    document.getElementById("popUpFrame").style.width = boxw+"px";
    document.getElementById("popUpFrame").style.width = popUpWith+"px";
    document.getElementById("popUpFrame").style.height = popUpHeight+"px";
    document.body.style.overflow = "hidden";
    function closePopUp (){
    document.getElementById("mainModalPopBg").style.display = "none";
    document.getElementById("mainModalPopBox").style.display = "none";
    document.body.style.overflow = "auto";
    </script>
    Finally, the function openPopup is added to 'Onmousedown' javascript event of a commandlink in my main page.
    I would be thankful if you guys could help me out with some handy solutions in my case.

    Hi,
    Thanks for the reply. I suppose I'll encounter a problem accessing data in the popup page which is a row of a table. Could you clarify how I should reference Attribute Values/SelectedRowsData in the destination page with opener reference?
    I'm embedding a html Iframe tag in the main page when clicking on a commandLink. It adds a <div> tag containing an iFrame which fires a .jspx page that renders a viewObject's data as a readOnly table. I merely need to return some attribute values of the corresponding viewObject or SelectedRows of the table. I cannot use traditional returnListener method of my commandLink since the page is opened with javascript using an iframe tag.
    Great thankfully

  • Modal popup resize problem

    First time poster here and new to Flex --
    I have an application that pops up a TitleWindow which
    contains a form. The TitleWindow is modal .. When the browser is
    resized though, I dont get any scrollbars on the popup window.
    scrollbars appear on the parent application window, but since the
    popup is modal , I cant use them.
    In addition, if I do start off with a smaller browser size (
    say 800 X 600 ) , I can scroll in the app., get to the button to
    make the popup appear , but the popup is cut off at the top and
    bottom and the scrollbar that appears on the popup is not enough
    for me to scroll to the top and bottom.
    Has anyone had this problem ? Am I missing something very
    elementary ? I can post code sample if needed. Any help would be
    greatly appreciated.

    Hi,
    Even I'm facing the same problem. You have posted this in the year 2007. Did you find a solution after that ?... If yes, then please share the solution.

  • Help...popup menu problem

    problem with popup menu
    i've designed the poopmenu in firworks...imported the file
    into dreamweaver...but when mouse is over the menu the drop down
    menu goes behind the flash animation placed below it.....how to
    fix?????:

    All Active content on a page will always rise to the top, so
    to speak,
    including Flash, certain form elements, Java applets, and
    Active X controls.
    This means that each of these will poke through layers. There
    is not a good
    cross-browser/platform reliable way to solve this issue, but
    if you can be
    confident in your visitors using IE 5+ or NN6+, then you can
    use the Flash
    wmode parameter (however, Safari does not support this
    properly!).
    Adobe articles:
    http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_15523
    http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_14201
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Mister Mustard" <[email protected]> wrote in message
    news:[email protected]..
    > On Fri, 7 Sep 2007 10:32:03 +0000 (UTC),
    "Krutika.deshpande"
    > <[email protected]> wrote:
    >
    >>problem with popup menu
    >> i've designed the poopmenu in firworks...imported
    the file into
    >>dreamweaver...but when mouse is over the menu the
    drop down menu goes
    >>behind
    >>the flash animation placed below it.....how to
    fix?????:
    >
    > There is at least one method that allows content to rise
    above Flash,
    > but I've never used it. You might check the Flash group
    or Google.

  • Popup minimize problem in Firefox

    Hi everyone,
    I'm using JDeveloper 10.1.3.3.0.4157. I'm having problems when I try to minimize a popup window in Firefox. When I do, window minimizes and restores automatically, and it starts "bouncing" to and from the taskbar. To stop it, I must switch to another application by using alt + tab and returning, or open the Task Manager. I've read that window control events cannot be handled, nor can buttons be disabled or hidden.
    Thanks in advance.

    Hi Frank,
    I just created an empty project in JDeveloper, with the [JSF, ADF BC] template, with only the caller window and the dialog window. Plain windows, with just a link in the caller window and an outputText in the dialog window. When I run the program, I open the dialog window through the link (with has only the navigation rule as an action (dialog:helper), and the attribute UseWindow set to true). Then I minimize it, and it does, but then springs back up, then minimizes again, and so on. I tried it in Google Chrome, and it behaves just fine, when you minimize the dialog, it stays minimized.
    If I can't fix it, at least I need to provide a technical explanation for my client. The "bouncing" does not happen if I switch to another application, then back to the dialog, and minimize it. Focus goes to the other application and everything works fine. But when focus goes to the caller Firefox window, the dialog window is restored, and starts to minimize and restore indefinitely. By switching to another application it can be stopped, but I still need to explain this behaviour to my client.
    Thank you for answering, I hope I could make myself clear, as English is not my native language.
    Alejandro

  • Popup menue problem

    when adding popup menues on text pane component then try to appeare it ,the textpane component appeare in front of the popup menue
    i want fix this problem!!!!!

    Read the Swing tutorial on [url http://java.sun.com/docs/books/tutorial/uiswing/components/menu.html#popup]How to Use Menus for a working example of using popup menus.
    If you need further help then you need to create a [url http://homepage1.nifty.com/algafield/sscce.html]Short, Self Contained, Compilable and Executable, Example Program (SSCCE) that demonstrates the incorrect behaviour, because I can't guess exactly what you are doing based on the information provided.
    And don't forget to use the [url http://forum.java.sun.com/help.jspa?sec=formatting]Code Formatting Tags so the code retains its original formatting.

  • Tomahawk popup component problem

    How can i rewrite popup component or write my custom component for renders a popup which displays on not a mouse event - i need by button click event. Anybody can help me ?
    Thnx

    I was use <jp:popupBox> and put into <t:dataTable> which has <h:inputText> and <h:selectBooleanCheckbox> in rows - they are not save value, they set null in my Bean. I am reading about it in forums look at that
    http://www.mail-archive.com/[email protected]/msg18007.html in this post talking about jenia problem (" I just got a response on the Jenia forum. It currently isn't possible
    to put an input box in a popup box, but it is being worked on.")

  • Af:popup alignment problems

    Hi Gurus,
    I spent about 2 days trying to solve the problem with ADF popups. Could you please give me some pointers if possible? The problems are below:
    Problem 1. I need to align the popup to the bottom-middle of the parent component. (please see the screenshot - http://i.imgur.com/hlOVbvK.png)
    RichPopup has a list of properties for alignment (see http://docs.oracle.com/cd/E15051_01/apirefs.1111/e12046/AdfRichPopup.html#show) but they only allow to align some corner of the popup with some corner of the parent component. Is there any way to align the middle of the popup to the middle of the component?
    Pointers which I have right now:
         1) There is a class AdfDhtmlPositionManager
         I'm not sure this class is designed to solve my problem. Moreover, it's internal class which can be removed without notification. However, I hope to find some public "position manager", can you give some advice about it?
         2) The other workaround is creating some "fake" parent component (af:spacer), align the popup with this spacer, and choose the width of the spacer that is enough to display popup in the center. But it's not a good solution if I need to display popup in different dialogues which might have different width. Popup width can also vary (because of Problem 2) so the popup will not be always centered.
    Problem 2. I show only a plain text in the popup and need to adjust the popup width with the width of the text. Namely, if the text is short then the popup should be short, but if the text's width is longer then some fixed value, say, 300px, I want to cut the text and show ellipsis in the end. In other words, my popup's width can be less then some fixed value but shouldn't exceed this value.

    You can play with styling your popup component.  Try setting a custom style class say "myStyle"
    and in your css...you can try defining properties like to align the popup to a place where you want it to...
    .myStyle{
        top:20%;
        left:28%;
        position:Fixed;

  • Toolbar Popup Menu Problem

    I've got a problem where if I click on any of the options in the toolbar in Photoshop CS5 that if the tool has options they popup instantly instead of clicking and holding.
    Please say there's a solution for this as it's driving me crazy
    Thanks

    I don't know if to mark this question as answered or not as I would love to have a definitive to the solution.
    But...
    It actually fixed it's self... which I can't explain... I'm guessing it's the good old ask for help on a forum after struggling for days to find a solution and it magically fixes it's self the moment you post asking for help.
    It was a fresh install on the new MacBook Pro, all the updates so I'm not sure what caused it.
    Thanks again for your help.

  • MacKeeper Ads, Popup Windows problem - Any Solution?

    Hi,
    I have a problem with 'MacKeeper'.
    It opens popup windows, shows link ads on any webpage I visit, distorts google search results etc.
    This happens not only on Safari, but also on Chrome & Firefox.
    I have tried to clear any spam-looking files from the /Library folder (there's nothing with the name mackeeper, zeobit etc.), also have cleared the cache of Safari, Chrome & Firefox.
    I do not know how to find and remove this unwanted app, program or extension or whatever you may call it from my mac.
    Can anyone suggest a solution?
    Note: I have never installed MacKeeper, so I can not uninstall it.
    Thank you,
    Leo

    You installed the "VSearch" trojan, perhaps under a different name. Remove it as follows.
    Malware is constantly changing to get around the defenses against it. The instructions in this comment are valid as of now, as far as I know. They won't necessarily be valid in the future. Anyone finding this comment a few days or more after it was posted should look for more recent discussions or start a new one.
    Back up all data before proceeding.
    Triple-click anywhere in the line below on this page to select it:
    /Library/LaunchAgents/com.vsearch.agent.plist
    Right-click or control-click the line and select
              Services ▹ Reveal in Finder (or just Reveal)
    from the contextual menu.* A folder should open with an item named "com.vsearch.agent.plist" selected. Drag the selected item to the Trash. You may be prompted for your administrator login password.
    Repeat with each of these lines:
    /Library/LaunchDaemons/com.vsearch.daemon.plist
    /Library/LaunchDaemons/com.vsearch.helper.plist
    /Library/LaunchDaemons/Jack.plist
    Restart the computer and empty the Trash. Then delete the following items in the same way:
    /Library/Application Support/VSearch
    /Library/PrivilegedHelperTools/Jack
    /System/Library/Frameworks/VSearch.framework
    ~/Library/Internet Plug-Ins/ConduitNPAPIPlugin.plugin
    Some of these items may be absent, in which case you'll get a message that the file can't be found. Skip that item and go on to the next one.
    From the Safari menu bar, select
              Safari ▹ Preferences... ▹ Extensions
    Uninstall any extensions you don't know you need, including any that have the word "Spigot," "Trovi," or "Conduit" in the description. If in doubt, uninstall all extensions. Do the equivalent for the Firefox and Chrome browsers, if you use either of those.
    Reset the home page and default search engine in all the browsers, if it was changed.
    This trojan is distributed on illegal websites that traffic in pirated content. If you, or anyone else who uses the computer, visit such sites and follow prompts to install software, you can expect much worse to happen in the future.
    You may be wondering why you didn't get a warning from Gatekeeper about installing software from an unknown developer, as you should have. The reason is that this Internet criminal has a codesigning certificate issued by Apple, which causes Gatekeeper to give the installer a pass. Apple could revoke the certificate, but as of this writing, has not done so, even though it's aware of the problem. This failure of oversight has compromised both Gatekeeper and the Developer ID program. You can't rely on Gatekeeper alone to protect you from harmful software.
    *If you don't see the contextual menu item, copy the selected text to the Clipboard by pressing the key combination  command-C. In the Finder, select
              Go ▹ Go to Folder...
    from the menu bar and paste into the box that opens by pressing command-V. You won't see what you pasted because a line break is included. Press return.

  • Popup window problem after search

    There is a page for search.
    In the page,There are some input field for inputting some search condition.
    if the search result was 0, no popup window opens.
    But,when the search result > 0, it is needed to display search result in a popup window.
    I controll this by setting flag to the Backing bean in the search method and open popup with javascript using onload like this.
    <script type="text/javascript">
    <!--
    function openNewWindow() {
    var popupFlag = document.getElementById("popupFlag");
    if (popupFlag.innerHTML=="true") {
    window.open(�`�`�`�`�`);
    -->
    </script>
    <body onload="openNewWIndow()">
    <h:inputText id="popupFlag" value="#{bean.popupFlag}"/>
    But thre is a problem in this way.
    I search once and poupup window appears.
    this has no proble.
    But, When I searched again with error input,
    the validator messages are displayed and popup window appears
    because of remaining the popupFlag value.
    In this case, there is no need to open popup window.
    Someone knows solution or better way to controll popup window?
    if you know,advice me, please!

    Hi siva,
    This is the standard pop-up to search any string on the list output. If you want to make it 5 characters long, then you have to implement the user exit (screen exit). since it is the standard screen, I dont think it is so easy to extend the screen field upto 5 characters long.
    BTW you can enter max 999 hits. if you have a list output more than 1000 lines then you can use the checkbox starting at current line for doing a search starting again from 1000th line till the end line. This way you can search 'N' numbers of lines.
    To summarize you have to do a search after each 999 hits e.g. your 999 hits has been completed on 500th line then you need to put the cursor on 501th line and then again do a search using the checkbox starting at current line.
    If you have any more doubts then please let me know.
    Regards
    Sumit Bhutani

  • Need help with a popup window problem

    I have this code within my certAppB.js page :
    function AppSubmit() {
         str1 = "Submitting this form will begin the approval process.";
         str2 = "You will not be able to come back to this form to edit it again.";
         str3 = "Do you want to continue submitting this form?";
         if((confirm(str1 + "\n" + str2 + "\n" + str3))){
              document.forms[0].status.value="Submitted";
              document.forms[0].submit();
    Which produces a popup windows that says:
    Submitting this form will begin the approval process
    You will not be able to come back to this form to edit it again
    Do you want to continue submitting this form?
    OK Cancel (these are 2 buttons)
    I want to change this to say:
    Submitting this form will begin the approval process. You will not be able to change this form once submitted. You also agree that the following statement is true and correct to the best of your knowledge and belief:
    "I, [User Name], hereby certify and state on behalf of [Company Name] that the energy use data contained on this form are accurately determined and stated in accordance with federal test procedures set forth in 10 CFR Part 430 or 431, or 42U.S.C.�6314, as applicable, including authorized waivers, as they currently exist on [Date]."
    Do you want to continue submitting this form?
    OK           Cancel
    So I have to pull the users [User Name], [Company Name], and the [Date].
    On the approverView.jsp login page ( which is the first login page users see after loggin) it shows
    the users full name, so I nabbed the code from that page:
    <body>
    <jsp:include page="logo.jsp" />
    <jsp:include page="unav-navigate.jsp" />
    <table width="100%" border="0" cellspacing="0" cellpadding="5" class="info">
    <tr>
    <td width="25%" valign="top">
    <logic:present name="UserContainer" property="userView" scope="session">
    <span class="welcome">Welcome
    <bean:write name="UserContainer" property="userView.firstName" scope="session"/>
    <bean:write name="UserContainer" property="userView.lastName" scope="session"/>
    !</span><br>
    </logic:present>
    <span class="sm">If you are not this person, please click <html:link styleClass="norm" href="/fake_name/logoff.do">here</html:link>.</span></td>
    <td width="2%"> </td>
    <td width="73%" valign="top"><jsp:include page="instruction.jsp" /></td>
    </tr>
    </table>
    and made this code out of it to pull the username,companyname:
    <logic:present name="UserContainer" property="userView" scope="session">
    <span class="User"> User
    <bean:write name="UserContainer" property="userView.firstName" scope="session"/>
    <bean:write name="UserContainer" property="userView.lastName" scope="session"/>
    !</span><br>
    </logic:present>
    <logic:present name="UserContainer" property="userView" scope="session">
    <span class="Company">Company
         <bean:write name="UserContainer" property="userView.companyName" scope="session"/>
    !</span><br>
    </logic:present>
    This is the userView.java page that is referanced :
    * Created on Mar 28, 2003
    * To change this generated comment go to
    * Window>Preferences>Java>Code Generation>Code Template
    package org.fake.name.view;
    import java.io.Serializable;
    import java.util.List;
    import org.gama.cafs.businessobjects.TorqueDb;
    * @author chris
    public class UserView implements Serializable {
         private int userId;
         private int memberId;
         private int companyId;
         private String role;
         private String firstName;
         private String lastName;
         private String companyTitle;
         private String emailAddress;
         private String phoneNumber;
         private String companyName;
         private String address1;
         private String address2;
         private String address3;
         private String city;
         private String state;
         private String province;
         private String postalCode;
         private String countryName;
         private List productTypes = null;
         private List productTypeAcronyms = null;
         private List productTypeIds = null;
         private List tradeNameIds = null;
         private List tradeNames = null;
         private TorqueDb torqueDb = null;
         public UserView() { }
         * @return String
         public String getAddress1() {
              return address1;
         * @return String
         public String getAddress2() {
              return address2;
         * @return String
         public String getAddress3() {
              return address3;
         * @return String
         public String getCity() {
              return city;
         * @return String
         public String getCompanyName() {
              return companyName;
         * @return String
         public String getCompanyTitle() {
              return companyTitle;
         * @return String
         public String getCountryName() {
              return countryName;
         * @return String
         public String getEmailAddress() {
              return emailAddress;
         * @return String
         public String getFirstName() {
              return firstName;
         * @return String
         public String getLastName() {
              return lastName;
         * @return int
         public int getMemberId() {
              return memberId;
         * @return String
         public String getPhoneNumber() {
              return phoneNumber;
         * @return String
         public String getPostalCode() {
              return postalCode;
         * @return Set
         public List getProductTypes() {
              return productTypes;
         * @return String
         public String getProvince() {
              return province;
         * @return String
         public String getRole() {
              return role;
         * @return String
         public String getState() {
              return state;
         * @return int
         public int getUserId() {
              return userId;
         * Sets the address1.
         * @param address1 The address1 to set
         public void setAddress1(String address1) {
              this.address1 = trimString(address1);
         * Sets the address2.
         * @param address2 The address2 to set
         public void setAddress2(String address2) {
              this.address2 = trimString(address2);
         * Sets the address3.
         * @param address3 The address3 to set
         public void setAddress3(String address3) {
              this.address3 = trimString(address3);
         * Sets the city.
         * @param city The city to set
         public void setCity(String city) {
              this.city = trimString(city);
         * Sets the companyName.
         * @param companyName The companyName to set
         public void setCompanyName(String companyName) {
              this.companyName = trimString(companyName);
         * Sets the companyTitle.
         * @param companyTitle The companyTitle to set
         public void setCompanyTitle(String companyTitle) {
              this.companyTitle = trimString(companyTitle);
         * Sets the countryName.
         * @param countryName The countryName to set
         public void setCountryName(String countryName) {
              this.countryName = trimString(countryName);
         * Sets the emailAddress.
         * @param emailAddress The emailAddress to set
         public void setEmailAddress(String emailAddress) {
              this.emailAddress = trimString(emailAddress);
         * Sets the firstName.
         * @param firstName The firstName to set
         public void setFirstName(String firstName) {
              this.firstName = trimString(firstName);
         * Sets the lastName.
         * @param lastName The lastName to set
         public void setLastName(String lastName) {
              this.lastName = trimString(lastName);
         * Sets the memberId.
         * @param memberId The memberId to set
         public void setMemberId(int memberId) {
              this.memberId = memberId;
         * Sets the phoneNumber.
         * @param phoneNumber The phoneNumber to set
         public void setPhoneNumber(String phoneNumber) {
              this.phoneNumber = trimString(phoneNumber);
         * Sets the postalCode.
         * @param postalCode The postalCode to set
         public void setPostalCode(String postalCode) {
              this.postalCode = trimString(postalCode);
         * Sets the productTypes.
         * @param productTypes The productTypes to set
         public void setProductTypes(List productTypes) {
              this.productTypes = productTypes;
         * Sets the province.
         * @param province The province to set
         public void setProvince(String province) {
              this.province = trimString(province);
         * Sets the role.
         * @param role The role to set
         public void setRole(String role) {
              this.role = trimString(role);
         * Sets the state.
         * @param state The state to set
         public void setState(String state) {
              this.state = trimString(state);
         * Sets the userId.
         * @param userId The userId to set
         public void setUserId(int userId) {
              this.userId = userId;
         * @return List
         public List getProductTypeAcronyms() {
              return productTypeAcronyms;
         * Sets the productTypeIds.
         * @param productTypeIds The productTypeIds to set
         public void setProductTypeAcronyms(List productTypeAcronyms) {
              this.productTypeAcronyms = productTypeAcronyms;
         public List getProductTypeIds() {
              return productTypeIds;
         public void setProductTypeIds(List productTypeIds) {
              this.productTypeIds = productTypeIds;
         private String trimString(String str) {
              String tmp = null;
              if (str != null)
                   tmp = str.trim();
              else
                   tmp = str;
              return tmp;
         public List getTradeNameIds() {
              return tradeNameIds;
         public List getTradeNames() {
              return tradeNames;
         public void setTradeNameIds(List list) {
              tradeNameIds = list;
         public void setTradeNames(List list) {
              tradeNames = list;
         public TorqueDb getTorqueDb() {
              return torqueDb;
         public void setTorqueDb(TorqueDb db) {
              torqueDb = db;
         public int getCompanyId() {
              return companyId;
         public void setCompanyId(int i) {
              companyId = i;
    Question:
    How do I insert the code I assembled:
    <logic:present name="UserContainer" property="userView" scope="session">
    <span class="User"> User
    <bean:write name="UserContainer" property="userView.firstName" scope="session"/>
    <bean:write name="UserContainer" property="userView.lastName" scope="session"/>
    !</span><br>
    </logic:present>
    <logic:present name="UserContainer" property="userView" scope="session">
    <span class="Company">Company
         <bean:write name="UserContainer" property="userView.companyName" scope="session"/>
    !</span><br>
    </logic:present>
    INTO the function:
    function AppSubmit() {
         str1 = "Submitting this form will begin the approval process.";
         str2 = "You will not be able to come back to this form to edit it again.";
         str3 = "Do you want to continue submitting this form?";
         if((confirm(str1 + "\n" + str2 + "\n" + str3))){
              document.forms[0].status.value="Submitted";
              document.forms[0].submit();
    So that the popup window will show the [username], [CompanyName], [Date]. I can�t find any doc�s on how to insert logic into a function with str�s.
    Any help would be very much appreciated. Thanks in advance.
    Applications used by me: Sun solaris 8 server, Tomcat 4.1.24, pulling from postgresql 7.3, and I edit in Eclipse 2.11.

    These two tags:
    <logic:present name="UserContainer" property="userView" scope="session">
    </logic:present>
    surround things you only want to happen if there is a userView object present.
    This tag:
    <bean:write name="UserContainer" property="userView.firstName" scope="session"/>
    is replaced with the value of userView.getFirstName().
    So:
    <logic:present name="UserContainer" property="userView" scope="session">
    <span class="User"> User
    <bean:write name="UserContainer" property="userView.firstName" scope="session"/>
    <bean:write name="UserContainer" property="userView.lastName" scope="session"/>
    !</span><br>
    </logic:present>
    becomes:
    User Jim Steinberger !
    if the userView object is present and firstName == Jim and lastName == Steinberger.
    To insert those values into your JavaScript function:
    <logic:present name="UserContainer" property="userView" scope="session">
    function AppSubmit() {
    str1 = "Submitting this form will begin the approval process.";
    str2 = "You will not be able to come back to this form to edit it again.";
    str3 = "You also agree that the following statement is true and correct to the best of your knowledge and belief:";
    str4 = "";
    str5 = "I, <bean:write name="UserContainer" property="userView.firstName" scope="session"/>
    <bean:write name="UserContainer" property="userView.lastName" scope="session"/>, hereby certify and state on behalf of <bean:write name="UserContainer" property="userView.companyName" scope="session"/> that the energy use data contained on this form are accurately determined and stated in accordance with federal test procedures set forth in 10 CFR Part 430 or 431, or 42U.S.C.?6314, as applicable, including authorized waivers, as they currently exist on " + new Date().getDate() + "/" + new Date().getMonth() + "/" + new Date().getFullYear() + ".";
    str6 = "Do you want to continue submitting this form?";
    if((confirm( str1 + "\n" + str2 + "\n" + str3 + "\n\n\n" + str4 + "\n" + str5 + "\n" + str6 ))){
    document.forms[0].status.value="Submitted";
    document.forms[0].submit();
    </logic:present>
    Should become:
    function AppSubmit() {
    str1 = "Submitting this form will begin the approval process.";
    str2 = "You will not be able to come back to this form to edit it again.";
    str3 = "You also agree that the following statement is true and correct to the best of your knowledge and belief:";
    str4 = "I, Jim Steinberger, hereby certify and state on behalf of Dynamic Edge, Inc. that the energy use data contained on this form are accurately determined and stated in accordance with federal test procedures set forth in 10 CFR Part 430 or 431, or 42U.S.C.?6314, as applicable, including authorized waivers, as they currently exist on " + new Date().getDate() + "/" + new Date().getMonth() + "/" + new Date().getFullYear() + ".";
    str6 = "Do you want to continue submitting this form?";
    if((confirm( str1 + "\n" + str2 + "\n" + str3 + "\n\n" + str4 + "\n" + str5 + "\n\n" + str6 ))){
    document.forms[0].status.value="Submitted";
    document.forms[0].submit();
    after being processed by Tomcat and Struts. (Note: the function will not appear if userView is missing)
    By the way, you might be missing the closing bracket to function AppSubmit() { which might throw a JavaScript error. Just FYI :)
    Good luck!
    Jim Steinberger
    [email protected]

Maybe you are looking for

  • How to change number of new messages

    Is there a way to change how iCloud shows the number of new messages from including the whole thread of messages? ie - it shows the number of all old messages in a thread when there's just one new message.

  • How do I use an image in my application?

    can anyone show me a simple code? how to use image in blackberry?

  • How do i get a list of all objects in a combo box

    I want to get the list of all Objects in a JComboBox. I appreciate your help! Thanks!

  • I Can't View a Specific Website

    I installed Leopard yesterday and even though there were a few glitches, all it has needed so far is a good night's "rest" after all of the updates that I had to download. I even ran into the classic Leopard DNS problem. When I put in the OpenDNS nam

  • My IPAD thinks it is an American!

    I bought a brand new IPAD2. Silly me to have declined an offer from the store to configure this unit. I thought it would be a breaze. After much searching, I have finally convinced my IPAD that it is a Canadian IPAD (despite having clicked on Canada