Dropdown and lifecycle

I've been testing a very simple page with a dropdown list which is bounded to an ArrayList, a button to display "hello" and an outputtext where the "hello" string will be displayed. The dropdown selectitems value is bounded to the arraylist. The arraylist is populated in the constructor of the page bean. There are no errors, everything runs smoothly. The dropdown list box is populated. However, my button that will just display a hello world on a outputtext control is never reached. I 've used the LifeCycleStudy (http://developers.sun.com/prodtech/javatools/jscreator/reference/sampleapps/2004q2/lifecycleStudy.zip) sample application to see if the event handler for the button is reached.. unfortunately it is not. why is it so? if removed the last three lines of the code below(listJournals.add...) it will work just fine... Where should i place the initialization of the dropdown?
by the way, this is are the code added at the LifeCycleStudy in page1's constructor to populate the arraylist.
listJournals = new ArrayList();
listJournals.add(new SelectItem(new Integer(1),"TEST 1"));
listJournals.add(new SelectItem(new Integer(2),"TEST 2"));
listJournals.add(new SelectItem(new Integer(3),"TEST 3"));
thanks!

By the way....these are the events that are missing when i added the dropdown list... this proves that the button1_action eventhandler is never called...
(from the server.log)
|WebModule[lifecyclestudy]Page1.java - inside beforeUpdateModelValues HELLOWORLD|#]
|WebModule[lifecyclestudy]Page1.java - inside beforePhase|#]
|WebModule[lifecyclestudy]Page1.java - inside afterUpdateModelValues HELLOWORLD|#]
|WebModule[lifecyclestudy]Page1.java - inside afterPhase HELLOWORLD|#]
|WebModule[lifecyclestudy]Page1.java - inside beforeInvokeApplication HELLOWORLD|#]
|WebModule[lifecyclestudy]Page1.java - inside beforePhase|#]
|WebModule[lifecyclestudy]Page1.java - inside button1_action, posting back to Page1 HELLOWORLD|#]
|WebModule[lifecyclestudy]Page1.java - inside afterInvokeApplication HELLOWORLD|#]
it's really weird... if i removed the codes that will add SelectItem in the list the event handler will be called... :(

Similar Messages

  • How do I create a save button to hide a dropdown and pass on the dropdown data to a label?

    Hi InDesign Scripting Experts!
    I'm desparetly looking for some help to get this issue resolved.
    Essentially I've a lot of PDF forms that've been designed by using InDesign CS4 and then converted to an interactive PDF via Adobe Lifecycle. The final 2 page PDF form has multiple textfields, a drop down and a save button. The users partially fill-in the form, select their name from the dropdown and then hit the save button prior to sending the PDF form to the client.
    The Save button does the following:
    - Passes on the data from the drop down to a label
    - Hides the drop down and
    - finally, hides itself ('Save' button)
    I understand InDesign CC has a lot of the Livecycle capability built-it. Hence I'm trying to design the inteactive PDF within InDesign CC. The textfields, dropdown etc. are easily done. The part that I'm stuck on is to get the 'Save' button to perform the above listed tasks.
    Any help will be greatly appreciated.
    Cheers

    Elizabeth,
    Presuming that editing the exisiting BOSTON is not an option, you may:
    1) Create a nostroke/nofill rectangle that covers all all word, then give it a white fill;
    2) In the Transparency palette flyout tick Make Opacity Mask with Clip unticked and Invert Mask ticked.
    That should remove the BOSTON from sight so you can retype it.
    You could use a black fill and leave Invert Mask unticked (if the black is black enough).

  • Dropdown and Value Help in Adobe Form (WebDynpro Java)

    Hi Experts,
    I need to develop a Adobe form where i have to implement Dropdown and Value Help, which will coming from custom BAPI. I am using WebDynpro Java, EP 7.0 and ALD 8.0. Please let me know how can i implement those 2 UI Elemnts..
    Regards
    Subhrajyoti

    Hi Jyothi,
    Herewith I had Explained detailed Procedure,
    For Dropdown,
    1.     Create a node and attribute to the dropdown ,
    2.     call the bapi,
    3.     Assign the Bapi attribute to the Dropdown node attribute
    4.     Place the Interactive form UI to the Java Application
    5.     Create an another  attribute for read the interactive form
                  a.Name: pdf_src
                  b.Type :byte, Assign this attribute to PDF Source property of the Interactive form UI Element.
    6.     Give the Name to the Template source property of the Interactive form UI and double click the        template source.
    7.     It asking Name for the Interactive form, Give the name for that
    8.     Once give the Name, It ask context for Adobe form, assign the already created node for dropdown in Webdynpro application to the interactive form.
    9.     Now Context Bounded with Webdynpro and Interactive form
    10.     Interactive form screen will be open into the studio
    11.     Place the Dropdown UI element  to the Interactive form and bind the attribute to the dropdown
    12.     Select the Dropdown UI Element, go to the object property, Click the Specify Item values. The pop window displayed, here give the $ value to the Item Text, Item value. The Data Connection dropdown and Default Binding , it has value when the attribute bounded to the dropdown UI .
    13.     Save and Test the Application
    For Value Help,
    1.     Do the Same Procedure for up to 10 steps,
    2.     Place the Text field UI and Value Help UI Element
    3.     Select the Value Help, go the Script Editor give the name of the text field attribute name in var fieldName = "*INSERT_NAME_HERE*";
    4.     Save and Test the Application
    By
    Parthi

  • [svn:fx-trunk] 12462: DropDownList could catch a mouseDown on the bubble and think it was a click outside the dropdown and end up dismissing the dropdown .

    Revision: 12462
    Revision: 12462
    Author:   [email protected]
    Date:     2009-12-03 12:08:55 -0800 (Thu, 03 Dec 2009)
    Log Message:
    DropDownList could catch a mouseDown on the bubble and think it was a click outside the dropdown and end up dismissing the dropdown.
    QE Notes: None
    Doc Notes: None
    Bugs: SDK-24462
    Reviewer: Jason
    API Change: No
    Is noteworthy for integration: No
    tests: checkintests mustella/gumbo/components/DropDownList
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-24462
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/DropDownCont roller.as

    My daughter has had her Razr for about 9 months now.  About two weeks ago she picked up her phone in the morning on her way to school when she noticed two cracks, both starting at the camera lens. One goes completely to the bottom and the other goes sharply to the side. She has never dropped it and me and my husband went over it with a fine tooth comb. We looked under a magnifying glass and could no find any reason for the glass to crack. Not one ding, scratch or bang. Our daughter really takes good care of her stuff, but we still wanted to make sure before we sent it in for repairs. Well we did and we got a reply from Motorola with a picture of the cracks saying this was customer abuse and that it is not covered under warranty. Even though they did not find any physical damage to back it up. Well I e-mailed them back and told them I did a little research and found pages of people having the same problems. Well I did not hear from them until I received a notice from Fed Ex that they were sending the phone back. NOT FIXED!!! I went to look up why and guess what there is no case open any more for the phone. It has been wiped clean. I put in the RMA # it comes back not found, I put in the ID #, the SN# and all comes back not found. Yet a day earlier all the info was there. I know there is a lot more people like me and all of you, but they just don't want to be bothered so they pay to have it fix, just to have it do it again. Unless they have found the problem and only fixing it on a customer pay only set up. I am furious and will not be recommending this phone to anyone. And to think I was considering this phone for my next up grade! NOT!!!!

  • When i open a new tab i get a tab with 2 blue bars, instead of one - the one on top of the site - and a little firefox dropdown - and when i start the next session firefox crashes???

    When clicking a link - a new tab opens. But the new tab which opens looks wired: There are 2 blue bars - the one you get on each session(where the red x is which closes everything) - I don`t know how you call this. This 2nd blue bar is located directly under the "normal" one and has got - on the left hand side- a firefox dropdown menue(when you click it you get: New Tab, Start private browsing, edit, save page as and so on.
    I can close the session as always but when i start the next session a view hours or a day later then firefox opens all the tabs from the session before as individual windows - and then it crashes. This happens 2 or 3 times - then i see a window where i am asked to either restore the old session(which doesn`t work - it always crashes again) or start a new session - which works.
    This is very annoying. Please tell me what to do.
    Thank you
    richard

    It is possible that there is a problem with the files sessionstore.js and sessionstore.bak in the Firefox Profile Folder.
    Delete the files sessionstore.js [2] and sessionstore.bak in the Firefox Profile Folder.
    * Help > Troubleshooting Information > Profile Directory: Open Containing Folder
    * http://kb.mozillazine.org/Profile_folder_-_Firefox
    If you see files sessionstore-##.js with a number in the left part of the name like sessionstore-1.js then delete those as well.<br />
    Deleting sessionstore.js will cause App Tabs and Tab Groups and open and closed (undo) tabs to get lost, so you will have to create them again (make a note or bookmark them).
    See also:
    * [1] http://kb.mozillazine.org/Session_Restore
    * [2] http://kb.mozillazine.org/sessionstore.js

  • Help understand MSDN solution from SSRS dropdown and SSAS cube?

    Basically, my problem is that the dropdown in my SSRS report is displaying every single day in my Date Dimension, so it's showing everything from 20000101 to 20201231. I would only like to display the dates that are included in my fact table; right now,
    my fact table only has two days.
    I looked at the following post, and it has the correct solution by Vinuthan: 
    https://social.msdn.microsoft.com/Forums/sqlserver/en-US/161e54c6-f258-4963-8d18-58addf7f2280/correct-time-dimension-settings-to-hide-extra-years-in-drop-list?forum=sqlanalysisservices
    Basically, the solution is the following:
    This should be moved to the reporting layer/done at the place where drop down is populated. For example,
    If i have a report that shows analysis based on certain measure values, then in that report...the mdx used to generate that parameter value should be tweaked by adding NONEMPTY([].[].members, measurevalue)
    The problem is that I don't know how to create this MDX query. Both [DimDate] and [Fact] have [DateKey]:
    [Fact].[DateKey] is a foreign key to [DimDate].[DateKey].
    Any help is appreciated.
    VM

    Hi VM,
    it depends what you use as source database. If it is SQL relational database.
    get values for your parameter using select statement from dim date using inner join to your fact table
    it could look like this
    SELECT ParameterValue = DateInt
    FROM DimDate d
    INNER JOIN FactTable f ON d.DateKey = f.DateKey
    ORDER BY DateINT
    If you use as source MDX query from olap cube you would use function NONEMPTY and your select could look similar to this one
    SELECT
       {} ON COLUMNS,
    NONEMPTY(
    {[DimDate].[DateInt].[DateInt]},[Measures].MeasureName)
    ON ROWS
    FROM CUBE
    Jiri Neoral

  • Creating a dropdown and choosing multiple selections

    Can I create a dropdown in a form that I can choose multiple selections from so the items I choose will show up like a list?

    The only way to do that would be to use a pop-up menu, created using a script, and to tick/untick the items the user selects.

  • TFS 2010 Team Web Access Work Items not loading dropdowns and not saving

    Some of our users have lost their ability to add new work items. When they select New -> Bug the WorkItemEdit page opens, but none of the dropdowns load and required fields are no longer highlighted. When they click save it acts like
    it refreshes, but actually nothing is saved and work item numbers are not assigned. No error message is displayed. This also occurs when they try to edit existing work items. We have checked permissions and these have not changed. We have cleared cache
    and rebooted the server and local laptops. Is there anywhere else we can check to see what is going on? Anyone else have this issue before? It seems like we are loosing another person's capabilities every day.

    Thank you for your help. We have SP1 scheduled for install Monday morning. However, we have been running a lot of tests. We are testing mainly in Chrome and IE 9 browsers.
    I was able to get 2 users back up and working. Not sure what fixed them, but I had them log into the server and test there. Accessing the web portal on the server worked for them and when they went back to their laptops their full capabilities
    were working there again. I have since removed their rdp access to the server and the capabilities are still working correctly on their laptops.
    However, I have a 3rd user that I had log into the server and updating and creating new work items did not work for him. This is the error he receives when opening a work item. This user did try testing in Mozilla one day this week.
    Webpage error details
    User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET4.0C; .NET4.0E; .NET CLR 3.5.30729; .NET CLR 3.0.30729)
    Timestamp: Fri, 6 Feb 2015 14:23:43 UTC
    Message: 'undefined' is null or not an object
    Line: 459
    Char: 9
    Code: 0
    URI: http: //synqtfs2:8080/tfs/web/ScriptResource.axd?d=FYYkafvHmJyg7KmGDtGowHNi60MyDp_sPy-aHe4FCjNjVsni06fZnOIXJiFxZpzcMt92dwoABVR433z1HUUKi-9aLOEO651UC75HFjmS7hvUIPs_HbO_gMhEIFzDLJCRn3-zV0_qstaTszOYGGcLVSqLpmbOMg9VwaYgOa0o__3xszzq_OYpQwOuLyDFEZY_2zbcjg2&t=ffffffffe8aa60f2
    Message: 'this.m_scrollCell.style' is null or not an object
    Line: 513
    Char: 9
    Code: 0
    URI: http://synqtfs2:8080/tfs/web/ScriptResource.axd?d=FYYkafvHmJyg7KmGDtGowHNi60MyDp_sPy-aHe4FCjNjVsni06fZnOIXJiFxZpzcMt92dwoABVR433z1HUUKi-9aLOEO651UC75HFjmS7hvUIPs_HbO_gMhEIFzDLJCRn3-zV0_qstaTszOYGGcLVSqLpmbOMg9VwaYgOa0o__3xszzq_OYpQwOuLyDFEZY_2zbcjg2&t=ffffffffe8aa60f2

  • How to automatically populate text boxes from dropdown and tick box options and then sum the results

    Firstly I need to say that I have no knowledge of how to use Javascript.
    I am using the 30 day trial of Adobe Acrobat XP Pro to see if it can be used for a Membership Application Form for the 1st year of membership. This 1st year  has a pro-rata membership fee per month left in the year of application along with a pro-rata postage fee for non-UK members. All of the input will be via basic text boxes with the exception of the application date and overseas postage for which I have created 3 dropdown boxes, one for Day, one for Month and one forYear and for the 2 tick boxes which are there for the applicant to say if they want 2 other options which have a cost attached to them.  I want to populate 2 text boxes from the Month lookup. One of these is for the pro-rata membership fee and the other for the pro-rata overseas postage. The other 2 optional items will be text boxes populated from the tick boxes. Having populated these 4 text boxes I then want to have them automatically summed to give the total to be sent by the applicant.
    I have searched many forums and tried many of the suggested ways of doing it and none of the 4 text boxes are populated.
    Are you able to help me with this?
    Many thanks

    The script solution provided is a "custom calculation JavaScript" not a "simplified field notation".
    The comment at the top of the code:
    // Custom calculate script for text field
    should help clarify the placement location for the code.
    Simplified field notation has a number of specific restrictions. One is that the provided data must be numeric data only.

  • Badi for searchterm and lifecycle

    Hi,
    When an account is created then the value in searchterm is checked against a table .If the value in searchterm is present in the ztable and our lifecycle value is customer then that account is created otherwise an error message is to be returned on the UI.
    For implementing the above condition we have to implement BADI's for both the fields?
    I am able to find the BADI for searchterm check but i am unable 2 find a BADI for lifecycle field.
    Please help.
    Regards
    Shilpi

    I think you can use the badi 'BUPA_FURTHER_CHECK'. This badi is called in the function module 'BUPA_CENTRAL_CHANGE'.
    In general, the BP search term ('BU_SORT1' or 'BU_SORT2' in the table 'BUT000' is contained in the root object 'BuilHeader' of BOL model.This object is controlled by the class 'CL_BUPA_IL_HEADER' (#1). If an user changes the BP data, the method 'Modify' will be called. And also, if the user saves the BP data, the method 'SAVE' will be called.
    The above badi is called during the processing the 'modify' method.
    If this badi does not meet your requirment, I think you should also consider to use the following transaction (#2). In this transaction, you can replace the standard processing (ex. cl_bupa_il_header) with your own logic.
    Hope this helps.
    (#1) You can find the standard definition in the table 'CRMC_OBJIMP_BUIL'
    (#2) t-cd: spro
    -> Customer relationship management
    -> CRM cross-application components
    -> Generic Interaction Layer / Object Layer
    -> Component-Specific Settings
    -> Extend Object Model for Business Partner

  • Specifications of deployment and lifecycle of JMX beans in a JEE server

    Hello,
    one colleague of mine is developping a service that uses an MBean to mimick a singleton (the MBean is not used for instrumentation or administration, it just holds a pool of shared non-standard resources) within a Glassfish server.
    I fought this idea (as I found a static utility would be both straightforward and easy to implement), but I took it, from this forum in particular, that it is a recommended way to use an MBean to serve as a shared resource holder. Point taken (I'm not concerned with clustering yet, I mean it's OK if the singleton is not cluster-wide)
    The problem is, my colleague warns that he witnesses "strange deployment behavior" with regard to the MBEan: in particular, it seems that the MBean is not unregistered upon EAR undeployment, and not redeployed upon EAR re-deployment. In particular updates to the MBean code (currently packaged within the EAR) require a server restart to take effect.
    From what I understand, the MBean is registered in a JVM-wide registry (the MBean server), and its classs and instances have a different lifecycle from the EAR, which has (some sort of, obviously more complex in the details) class-loader scope.
    I admit I'm making that up, from various observation -> my main problem is that I can't find an appserver-agnostic specification of the MBean lifecycle in a JEE environement. The EJB3 specification do not mention JMX (but as I understand it EJB3 alters none of the way JMX works).
    There seems however to be a J2EE-specific way of handling MBean - presumably because the hot-deployment-without-JVM-restart expands the MBean lifecycle beyond the EAR lifecycle.
    Could you point me to authoritative references on JMX used in JEE servers. In particular specification of the lifecycle and deployment is extremely welcome.
    I'm sorry for asking pointers: my own web searches turn up non-specifying docs.
    And if I search on JMX and Glassfish together, I find articles on either:
    - how Glassfish uses JMX to implement a lot of stuff, but not how Glassfish implements "JMX lifecycle" (if that expression even means something).
    - how to extend Glassfish's adminsitration capabilites writing custom MBeans
    Thanks in advance,
    J.

    The location of the registration code is thus the key to all this. e.g If you register manually in some startup class, you can unload/load the required versions of the MBean code.That's what we do (using a RegistryServlet and init()/destroy() callbacks).
    Sketchy description from what I understand of the developer's code: the init() indeed looks up the MBean and unregisters it if it exists, then registers it anew. Sometimes, the unregistering will fail (I haven't witnessed that), which triggered this topic.
    We have to investigate it further (with more rigorous archiving and analysis of the error logs). I'll post updates if any.
    If the MBeans are configured to be registered by the server itself (common) then the server would need to be restarted for the changes to be picked.OK. I have no idea how to configure where the MBeans are registered, time now to confess I have used JMX only in trivial cases so far.
    It is my sincere hope that you won't need to use the techniques of chapter 8 of [this specification|http://java.sun.com/javase/6/docs/technotes/guides/jmx/JMX_1_4_specification.pdf] .
    Indeed!
    Probably my lack of JMX knowledge, but I have no idea what the "Mlet service" is in my scenario, and I suspect I won't want to know :o)
    Overall this suggests that using JMX introduces unforeseen complexities, that may be overkill in our scenario (but I'm biased as I defended a couple of other alternatives).
    Thanks for your help so far; I'm still looking for some document that would clarify how the JEE server, or how Glassfish specifically, handles MBean lifecycle.

  • Dropdowns and many buttons disabled in PWA 2007 after Microsoft Project Professional 2010 has been installed

    Hi Team,
    I have Microsoft Project professional 2007 installed and also using PWA for 2007.
    I recently installed Microsoft Project Professional 2010, and since the time i installed 2010 all the button in PWA 2007 have been disabled.
    1. I could not select a project from "Project Center"
    2. I could not select resources from "Manage Resources"
    3. I could not select dropdowns in the project properties even if the project is selected.
    ALl the other team members are able to use both without any issues.
    I also uninstalled IE8 browser and re-installed, that didn't help.
    I could use PWA normally after 2010 is uninstalled.
    Please suggest a solution for this.

    Try running a repair on Project Professional 2007. You always have to do this after installing a newer version of project. Always run a repair on the previous version. What's happening is that PWA is not seeing 2007 on your machine because 2010 overwrote
    some of the shared objects.
    Gary Chefetz, MCITP, MCP, MVP msProjectExperts
    Project and Project ServerFAQs
    Project Server Help BLOG

  • PHP create array/variable for two dropdowns and insert into one column

    Hello,
    I have been trying for days to get this to work. Any help would be very appreciated.
    The dropdown code:
    <?php //Dropdowns for hours and minutes
    $hour = array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16);
    $min = array (.00, .25, .50 ,.75);
    echo '<span class="red">Hours :</span><select name="hour">';
    foreach ($hour as $value1) {
    echo "<option value=\"$value1\">$value1</option>\n";
    echo '</select>';
    echo '<span class="red">Quarter Hours :</span><select name="min"';
    foreach ($min as $value2) {
    echo "<option value=\"$value2\">$value2</option>\n";
    echo '</select>';
    //Dropdowns for hours and minutes
    //Create variable to send to the time field using a hidden field
    function input_time($value1, $value2) {
    $time = count($value1 + $value2);
    return $input_time;
    ?>
    <input name="time" type="hidden" value="<?php echo "$input_time";?>" />
    The Schema:
    CREATE TABLE `ND_time_sheet` (
      `time_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
      `day` varchar(10) NOT NULL DEFAULT '',
      `date` varchar(8) NOT NULL DEFAULT '',
      `project_id` varchar(8) DEFAULT NULL,
      `non_bill` tinytext,
      `staff_id` varchar(5) NOT NULL DEFAULT '',
      `time` decimal(3,2) unsigned zerofill DEFAULT NULL,
      `type` varchar(30) NOT NULL DEFAULT '',
      PRIMARY KEY (`time_id`)
    ) ENGINE=MyISAM DEFAULT CHARSET=latin1
    Thanks!

    9677670421 wrote:
    hi... i am trying to do the same but i am having the 2D array of data when first time if i clicked in table it should show the the first row values and if i again clicked same value should show in the second row and so on... but insted in my code if clicked (using insert into array ) at a time it is showing two rows of the data pl help me ..........
    This seems to be a different problem, so you should have started a new thread instead.
    Can you show us your code, tell us what you are clicking, tell us what you get and what you expect to get instead. Thanks.
    LabVIEW Champion . Do more with less code and in less time .

  • Adobe Reader 11 and Lifecycle Extension

    does Adobe Reader 11 still work with Adobe Lifecycle Reader Extension Server 7.0 for the commenting functionality ?

    Turns out there was a conflict between an older PDF plug-in installed by Adobe InDesign CS3 and the newer one installed by Adobe Reader.  Removing the older one from the Library fixed the problem.

  • Dropdown and Date Fields does not show up properly using https

    I am running my portal on NW04 SP20 and i am using NWDS SP20. When run my WD application using http://<portal host>:<port>/irj -> My WebDynpro iview. I see my all UI elements working properly. Branding changes effected in all UI elements. When i run using https://<prdportal>/irj -> my Webdynpro iview, dropdown values shows in plain text. It looks like my branding is not effected for UI elements data. I see branding changes in UI element, not UI element data. Same for date ( calendar ) box also.
    Thanks in advance
    Ramana.

    Try note 1035587, hope it works.
    Lucas Garcí

Maybe you are looking for