Problem with checkbox and Event.stop(event)

Hello,
I cannot change the checkbox in a row, if the Event.stop(event) is fired on checkbox. My aim is, that the event OnRowClick is stoped, if I change the checkbox in the row.
<rich:extendedDataTable id="requestTable" value="#{requestListHandler.normalisedRawRequestList}" var="req"
                         rows="#{requestListHandler.limitRows}" selectionMode="single">
                         <a4j:support event="onRowClick" action="#{requestListHandler.viewRequest}">
                              <f:setPropertyActionListener value="#{req}"
                                   target="#{requestHandler.selectedRequest}" />
                              </a4j:support>
                        <rich:column>
                                   <h:outputText value="#{req.offerListSize}">
                                        <f:convertNumber type="number" />
                                   </h:outputText>
                     </rich:column>
                         <rich:column id="checkBoxColumns">
                                   <h:selectBooleanCheckbox onclick="Event.stop(event);"
                                        value="#{req.firstInterpreterTimeChecked}"/>
                     </rich:column>
</rich:extendedDataTable>I know I am using richfaces, but I have problem with sun-ri component <h:selectBooleanCheckbox..../>.
Have you any idea?
Manu
Edited by: Argonist on Jun 16, 2009 8:27 AM
Edited by: Argonist on Jun 16, 2009 12:25 PM

I had the same problem. I read you post and was so disappointed that no one had answered you. But I have a good news for you :) My team leader managed to solve this awkward problem.Add to h:selectBooleanCheckbox style="z-index: 20;" so that it is "above" the table row that fires its own onclick event.

Similar Messages

  • Problems with page and event paramters in java portlets

    Hi there!
    Following the documentation in "A primer on Portlet Parameters and events" and "Adding Parameters an Events to Portlets" I tried to develop two portlets (who will be at the same page), one showing some content of a repository (with possibilities to browse throw it) and another showing a sitemap of the repositories whole content, presenting links to the content's pages to be shown in the content portlet.
    So I added:
    1. a page parameter called pageMenuID to identify the current content page to be shown in the content portlet
    2. an input parameter for content portlet called portletMenuID. This input parameter is mapped to the page parameter pageMenuID
    3. an event for content portlet called changeContent with output parameter contentMenuID. When this event rises, "go to page" is set to the current page and the output parameter contentMenuID is mapped to the page parameter pageMenuID.
    4. an event for sitemap portlet called changeContentFromSitemap with output parameter sitemapMenuID. When this event rises, "go to page" is set to the current page and the output parameter sitemapMenuID is mapped to the page parameter pageMenuID.
    This is the code for some constants and a function to build the links in the content portlet, that I want to use:
    // page parameter (shouldn't be used here)
    private final static String pageParamMenuID = "pageMenuID";
    // parameter names as given in providers.xml:
    // portlet input parameter
    private final static String inputParamMenuID = "portletMenuID";
    // event name
    private final static String eventName = EventUtils.eventName("changeContent");
    // parameter name for event parameters
    private final static String eventParamMenuID = EventUtils.eventParameter("contentMenuID");
    String getEventUrl( PortletRenderRequest portletRequest, long menuID) {
    NameValuePair[] eventParams = new NameValuePair[2];
    eventParams[0] = new NameValuePair(eventName,"");
    eventParams[1] = new NameValuePair(eventParamMenuID, "" + menuID);
    try {
    return PortletRendererUtil.constructLink(portletRequest, portletRequest.getRenderContext().getEventURL(),
    eventParams,
    true,
    true);
    } catch (Exception e) {
    return "null";
    This is the analog code from the sitemap portlet:
    // page parameter defined on "edit page mode" (shouldn't be used here)
    private final static String pageParamMenuID = "pageMenuID";
    // parameter names as given in providers.xml:
    // event name
    private final static String eventName = EventUtils.eventName("changeContentFromSitemap");
    // parameter name for event parameters
    private final static String eventParamMenuID = EventUtils.eventParameter("sitemapMenuID");
    String getEventUrl( PortletRenderRequest portletRequest, long menuID) {
    NameValuePair[] eventParams = new NameValuePair[2];
    eventParams[0] = new NameValuePair(eventName,"");
    eventParams[1] = new NameValuePair(eventParamMenuID, "" + menuID);
    try {
    return PortletRendererUtil.constructLink(portletRequest, portletRequest.getRenderContext().getEventURL(),
    eventParams,
    true,
    true);
    } catch (Exception e) {
    return "null";
    But what actually happens is nothing. I also tried to construct the links with EventUtil.constructEventLink() with the same result. Checking the produced html-code in the browser shows that the same URLs are produced. So I'm of the opinion, that proper event links are created.
    After checking the sent and received request parameters I came to the conclusion, that the event output parameters are never mapped to the page input paramters, as they should. So I changed the code to the following:
    // page parameter (shouldn't be used here)
    private final static String pageParamMenuID = "pageMenuID";
    // parameter names as given in providers.xml:
    // event name
    private final static String eventName = EventUtils.eventName("changeContentFromSitemap");
    // parameter name for event parameters
    private final static String eventParamMenuID = EventUtils.eventParameter("sitemapMenuID");
    String getEventUrl( PortletRenderRequest portletRequest, long menuID) {
    NameValuePair[] eventParams = new NameValuePair[1];
    eventParams[1] = new NameValuePair(pageParamMenuID, "" + menuID); <-- Note that the page parameter and not the event output parameter is used here -->
    try {
    return PortletRendererUtil.constructLink(portletRequest, portletRequest.getRenderContext().getEventURL(),
    eventParams,
    true,
    true);
    } catch (Exception e) {
    return "null";
    Now everything works fine, including addition of persistent private portlet parameters and further input/page/event parameters as well as working with a third portlet with performs a search (and presents the search results as links which change the content in content portlet).
    But this is actually NOT the way it should work: The names of the page parameters are hard-coded in the portlets, so the roles of page designer and portlet developer are not separated in the way it is presented in the documentation. I coulnd't find a way to map the event output parameters to the page parameters to work this out.
    Now I wonder whether there's some known bug in PDK or perhaps a mistake in the documentation or wether I'm just missing doing the right things. I've already read some postings in this forum concerning this problem (for example how to change the query??? but I think I've done all the things that are suggested there (checked the entries in provider.xml and the proper mapping of page parameters, public (input) portlet parameters and event output parameters, also the way I read the received request parameters and build the links)
    Has anybody an idea what's wrong here?
    Best regards
    Torsten

    Hi Amjad,
    thank you very much for time and effort you spent on helping me solving this problem.
    Unfortunately, I think I already tried what you suggest in your answer, but without success. From my experience, the following two calls:
    1.
    <%!
    private static String eventName = "changeContent"
    private static String eventParamID = "menuID"
    String getEventUrl(PortalRenderRequest prr, long menuID) {
    NameValuePair[] eventParams = new NameValuePair[1];
    // no addition of eventName in the array
    eventParams[0] = new NameValuePair(eventParamID, "" + menuID);
    return EventUtils.constructEventLink(prr, eventName, eventParams, true, true);
    %>
    <a href="<%= getEventUrl(portletRequest, 1234) %>">some link for ID 1234</a>
    2.
    <%!
    private static String eventName = EventUtils.eventName("changeContent");
    private static String eventParamID = EventUtils.eventParameter("menuID");
    String getEventUrl(PortalRenderRequest prr, long menuID) {
    NameValuePair[] eventParams = new NameValuePair[2];
    eventParams[0] = new NameValuePair(eventParamID, "" + menuID);
    eventParams[0] = new NameValuePair(eventName,"");
    return PortletRendererUtil.constructLink(prr, prr.getRenderContext().getEventURL(), eventParams, true, true);
    %>
    <a href="<%= getEventUrl(portletRequest, 1234) %>">some link for ID 1234</a>
    produce identical links. I took the second way because it is easer to add private portlet parameters to the link: just as additional NameValuePairs in the eventParam- Array (name constructed with HttpPortletRendererUtil.portletParameter()), instead of constructing the link "by hand" as mentioned in the javadoc for constructEventLink(). I have to add these private portlet parameters here because when an event from a private parameters owning portlet is fired, the private parameters are lost (in difference to when an event from ANOTHER portlet is sent).
    So I think, when you also look closely to the code snippet I added in the first posting, I made shure that I added the name of the event and not just the event parameters to the link.
    I hope that I understood your answer right. Perhaps you have another idea what might be wrong. Thank you again,
    best regards
    Torsten

  • Problem with checkbox and drop down menu

    I am using DW8 with PHP/MySQL.
    I made a insertion form and a couple of the fields are
    checkboxes and another is a drop down menu. Everything works fine,
    however, when I create an update form and the recordset calls the
    data it doesn't retain its values on those items.
    For example, if I checked a box when inserting the record and
    then call the data up for the update form, the box is not checked,
    making the user believe it was never checked in the first place.
    The same thing goes for the drop down menu. If I have 3
    options in the menu and someone selects the third one, when the
    update form is used it defaults to the first option automatically
    instead of actually calling up the original value selected.

    The fact that two scripts do not work together does not mean
    there is a bug in the RH script. It is simply that they were not
    designed by their respective developers to work together. This
    happens with multiple scripts in any html file.
    Try creating a new project and then importing just this topic
    into it. Does it still have the problem?

  • Problem with checkbox and datatable

    Hi,
    I have a checkbox in one column of the data table. The checkbox is to be disabled if the status (which is another column in the table) is set to Completed. For all other rows, the checkbox is to be enabled. What happens is that, the checkbox is either enabled for all the rows or disabled for all the rows...
    This is how i have implemented it.
    public void setCheck(){
    int rows = dataTable1.getRowCount();
    OrderRunStatusBean osb = new OrderRunStatusBean();
    for (int i =0;i<rows;i++){
    dataTable1.setRowIndex(i);
    osb = (OrderRunStatusBean)dataTable1.getRowData();
    if (osb.getStatusName().equalsIgnoreCase("Completed")){
    dataTable1.setRowIndex(i);
    chkSelect.setDisabled(true);
    else
    chkSelect.setDisabled(false);
    Thanks!!!!
    -Tabitha
    PS
    I'm facing the same trouble with selecting and deselecting a checkbox as well.

    Hallo Tabitha,
    create a method called isDisabled() in your <Page>.java class containing the logic by which you want to disable the checkbox, for example:
         * Getter for property disabled.
         * @return Value of property disabled.
        public boolean isDisabled() {
            TableRowDataProvider trdp = (TableRowDataProvider)getBean("currentRow");
            String category = (String) trdp.getValue("MUSICCATEGORIES.MUSICCATEGORY");
            return category.equals("Rock");
        }This example is connected to a TableRow and returns true when the value of the database field is "Rock".
    Then bind the disabled property of the checkbox to the 'disabled' property:
    Click on the right of the disabled property in the Properties window, select the option 'Use Binding', select the 'Bind to an object' tab, select the Page1.disabled property and click on OK.
    Deploy and run the project.
    Hope this helps.
    Ciao,
    Fabio

  • Problem with checkbox and process

    Hallo,
    I have a checkbox on my page and now I want to create a process that runs when the checkbox is checked.
    What I want to do is: to ckeck wheather the checkbox is check and if this is then to set values.
    I don't know if it is right how I check the status of the checkbox. What I also don't really know how I can decide
    that all field I go through in the loop get the same value from the XYZ-collection. The value should be the last from
    the XYZ-collection.
    Thanks, Jade
    declare
    check integer:=0;
    change integer:=0;
    begin
    check:=:Px_Check;
    if (check <> 0) then change:=1; end if;
    if change = 1 then
    for i in 1..htmldb_application.g_f04.count
    loop
    htmldb_collection.update_member_attribute(p_collection_name=>'XYZ',
    p_seq=>i,
    p_attr_number=>5,
    p_attr_value=>???);
    end loop;
    end if;
    end;

    Hi,
    Taking the two issues separately....
    1 - When dealing with checkboxes, you have to bear in mind that the submit process will only return the values of those checkboxes that have been ticked into the f04 collection (assuming f04 is the column containing your checkboxes). In order to determine which ones they are, you need to get the value (which should be a row number if you've created the checkboxes by using the Row Selector option) and then use that to get to the values on the actual rows. Something like:
    DECLARE
    vITEM NUMBER;
    BEGIN
    FOR i IN 1..HTMLDB_APPLICATION.G_F04.COUNT
    LOOP
      vITEM := HTMLDB_APPLICATION.G_F04(i);
    END LOOP;
    END;Then, within the loop, you can use vITEM as the row number. So, if the user ticked items 1, 4 and 6. G_F04(1) would contain 1, G_F04(2) would contain 4 and G_F04(3) would contain 6. Therefore, for you update statement, you can use vITEM for the sequence number of the item to update.
    2 - When dealing with collections, if you want to get to the last item in the collection, you can get the member count and use that to get to the member:
    DECLARE
    vCOUNT NUMBER;
    vDATA NUMBER;
    BEGIN
    vCOUNT := HTMLDB_COLLECTION.COLLECTION_MEMBER_COUNT ('XYZ');
    SELECT c005 INTO vDATA FROM HTMLDB_COLLECTIONS WHERE COLLECTION_NAME = 'XYZ';
    END;That should get the c005 value for the last item and store it in vDATA. You can then update the ticked items with this value.
    Andy

  • Problem with checkbox and run the get button event continuously

    Hi all,
    I have a checkbox list of 3 sensors. I have used the X-Control (for checkbox) found in the following link for my application https://decibel.ni.com/content/docs/DOC-30558. I have problems to achieve the following.
    Suppose i check Vibration and Strain, I should be able to display both Vibration and Strain data. (I should compare each element of 1d array with the string constant and run the case structure).
    I have to run the GET event continuously to display the data. 
    I have attached the code to the post.
    Please can anyone suggest how to go about this.
    thanks in advance
    Regards,
    KM
    Attachments:
    Main page Enhancements for Create and Load.vi ‏69 KB

    Hi Bob_Schor,
    I tried using the approach you mentioned. I cant run continuously. I am not able to figure out where i am going wrong. I have attached the updated vi. 
    Hi Hooovahh,
    The link you have posted seem to work with LV2013. I am currently using LV 2011. Can you please update it to 2011. Is OpenG necessary for this?
    Regards,
    KM
    Attachments:
    Main page Enhancements for Create and Load.vi ‏77 KB

  • Problem with Booleans and events

    I have an event structure inside a while loop. I have several buttons each of which triggers one event. Now no matter what latch action I try with these at any point of time only one of the events run. So if I want to run another event I have to stop the main vi run it again and then go to the next event. I guess what this means is that the events are not being terminated by value change. But I have tried to reset the value of the boolean as well in order to terminate but event this doesnt seem to work.There is some fundamental problem somewhere but I am unable to figure it out. Can somebody please help me.
    I am attaching a sample vi and sub vis that demonstrate this problem. In this case I need to have the booleans h
    ave the switch when released action. i.e as long as the button is pressed the camera i control moves left and as soon as I release it it shud stop.
    Attachments:
    CamInte.vi ‏108 KB
    Left.vi ‏190 KB
    Right.vi ‏190 KB

    You need to decide whether you want things controlled by events, or by loop polling.
    Some things to consider:
    Inside each event you have a loop where you read the booleans the events react to. That means the events will be fired over and over again inside the loop, and you'll have a stack of old events to be fired when the while loop has exited...events you don't really want to do anything about (use events for all the button clicks, or loops - not a mix).
    Events are still flow controlled so when the left event fires and it enters the while loop it won't handle any other events until that while loop has finished.
    When an event fires the button value if read at the same time is not the value the event fired on. So when you have an event that fires when
    you press the button, if you wire the button value to something inside that even it won't be true, it will be false. Use the new value output of the event case to read the value you really want.
    MTO

  • Problem with releater and event handling

    Hi Flex genius,
    I have been struggling for the whole day with a problem connected to repeater.
    I have a text field:
    <mx:Text id="shortText" width="300"  text="{newTeaser.currentItem.shortDescription}" styleName="Scandinavian" fontSize="12"  />
    and a label:
    <mx:Label   id="readMoreLabel" x="13" text="{newTeaser.currentItem.readMore}" color="#3C4593" />
    both inside a  Repeater which fetches from an XML:
    <mx:Repeater id="newTeaser" dataProvider="{eventsData}">
    The Repeater works fine, but I need to add a click on the label id="readMoreLabel" that replace the shortText.text with  {newTeaser.currentItem.longDescription} instead of {newTeaser.currentItem.shortDescription}.
    i am quite new in Flex, so I guess I miss some fundamentals.
    Thanks for your help.
    Max

    This code works, and notice the trace(), you CAN have IDs for the controls in the repeater, and you can access them as an array, though I do not make use of this capability in my solution.
    If this post answers your question or helps, please mark it as such.
    Greg Lafrance - Flex 2 and 3 ACE certified
    www.ChikaraDev.com
    Flex / AIR Development, Training, and Support Services
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
      creationComplete="dataService.send();">
      <mx:Script>
        <![CDATA[
          import mx.rpc.events.ResultEvent;
          import mx.collections.XMLListCollection;
          import mx.controls.Text;
          [Bindable] private var eventsData:XMLListCollection;
          private function dataHandler(evt:ResultEvent):void{
            eventsData = new XMLListCollection(evt.result..item as XMLList);       
          private function clickHandler(evt:MouseEvent):void{
            var txt:Text = VBox(evt.currentTarget.parent).getChildAt(0) as Text;
            for each(var xml:XML in eventsData){
              if(xml.shortDescription == txt.text){
                txt.text = xml.longDescription;
            for each(var obj1:Text in shortText){
              trace("shortText: " + obj1.text);
        ]]>
      </mx:Script>
      <mx:HTTPService id="dataService" url="data.xml" resultFormat="e4x" result="dataHandler(event);"/>
      <mx:Repeater id="newTeaser" dataProvider="{eventsData}">
        <mx:VBox width="100%">
          <mx:Text id="shortText" width="100%"  text="{newTeaser.currentItem.shortDescription}"/>
          <mx:Label id="readMoreLabel" text="{newTeaser.currentItem.readMore}" color="#3C4593"
            click="clickHandler(event);"/>   
        </mx:VBox>
      </mx:Repeater>
    </mx:Application>
    <?xml version="1.0" encoding="utf-8"?>
    <teasers>
      <item>
        <shortDescription>This is short desc one.</shortDescription>
        <readMore>Read More One</readMore>
        <longDescription>This is long desc one.</longDescription>
      </item>
      <item>
        <shortDescription>This is short desc two.</shortDescription>
        <readMore>Read More two</readMore>
        <longDescription>This is long desc two.</longDescription>
      </item>
      <item>
        <shortDescription>This is short desc three.</shortDescription>
        <readMore>Read More three</readMore>
        <longDescription>This is long desc three.</longDescription>
      </item>
    </teasers>

  • Problem with checkbox and "if" & "else if" statement

    Hi, i have got something like this:
    if (this.rawValue=="0" ){
      app.alert("0");
      this.resolveNode("Circle1").presence = "hidden";
      this.resolveNode("cross").presence = "visible";
    else if (this.rawValue=="1"){
      app.alert("1");
      this.resolveNode("Circle1").presence = "visible";
      this.resolveNode("cross").presence = "hidden";
    else{
      app.alert("2");
       this.resolveNode("Circle1").presence = "hidden";
      this.resolveNode("cross").presence = "hidden";
    I set default position on neutral state. Values are default: on=1, off=0, neutral=2.
    When i am clicking on my check box button there works only "on" (1) and "neutral" (2) state. "off" state is not working and i don`t know why.
    Please help me with that.

    Hi,
    Here is the form back to you: https://acrobat.com/#d=qiBnkcpRnPWxA5hokFXvQw.
    I have tightened the script, but that was not the main problem. The issue was that the checkbox was on the Master Page and had a default value of neutral. Some objects on the Master Page, like checkboxes with default values and buttons, can misbehave when the form is relaid out (layout:ready event).
    If you have a look at the form you will see that the objects on the Design Page behave as expected. However similar objects on the Master Page will revert to default everytime the layout:ready event fires. This has already been logged with Adobe.
    I would recommend moving the objects to a Design Page or maybe use a dropdown instead of the checkbox.
    Niall

  • Problem with Checkbox and Button components....(Simple one)

    Hi all,
              As I am new to flash and ActionScript 3.0,I have the following issue regarding Flash.
              I have 2 swf files whose contents are as follows: First.swf file contains a check-box (instance name:my_checkbox).    Second.swf file contains a button component(say,label name of Submit and with instance name: submit_btn).      
             Now, my requirement is: Whenever I click the submit_btn button, then the check_box must be get selected/visible. If I click it once again, then it must get deselected/invisible. The process must be continued till I stop the click-event on button component.
       Reply me as soon as possible..  Thanks in advance...
    Srihari.Ch

    Hi Ross Ritchey,
                    I am attaching the two .fla files(with ActionScript 3.0 code in respective layers) that are resultant to your reply. (viz., CheckDemo.fla &&ButonDemo.fla respectively). Please check them once..
                       The functionality (i.e., When ButtonDemo.swf file is executed and the Submit button("myBtn") is clicked, the Checkbox component(s) present in "CheckDemo.swf" file is getting appeared in "ButtonDemo.swf" and is ready to access. Also, the selection/enability/visibility also works properly).
                       Also, check the added code.I had added all the required code to fulfil the requirement.
                       When I click the "Submit_btn", the checkbox components placed in "CheckboxDemo.swf" file are appearing in "ButtonDemo.swf". Instead, I don't need to get them.
                    So, here my requirement is: " When i click "submitButton" in ButtonDemo.swf file, then the action must be performed to the checkbox component(s) present in CheckDemo.swf file.
    Thanks a lot for your help. I am so happy with your reply, because(As you know, I am new to Flash/AS3), after a long time my is getting forward. And I hope the same form of reply to this mail or issue.
    AS3 code in ButtonDemo.fla:
              var url:String="CheckDemo.swf";
    var urlRequest:URLRequest=new URLRequest(url);
    var myLoader:Loader = new Loader();
    myLoader.load(urlRequest);
    addChild(myLoader);
    myBtn.addEventListener(MouseEvent.CLICK,doChangeCheckbox);
    function doChangeCheckbox(e:MouseEvent):void {
    (myLoader.content as MovieClip).myCheckbox.selected = !(myLoader.content as MovieClip).myCheckbox.selected;
    (myLoader.content as MovieClip).myCheckbox2.enabled = !(myLoader.content as MovieClip).myCheckbox2.enabled;
    (myLoader.content as MovieClip).myCheckbox3.visible = !(myLoader.content as MovieClip).myCheckbox3.visible;
    Srihari.Ch

  • Problem with CheckBox and MovieClipLoader

    I am using the MovieClipLoader and it was working great,
    until I load one of my sections which has a CheckBox in it. Once I
    load that section, the MovieClipLoader is not working correctly
    anymore. Anyone have experience with this? What can I do?

    wow, that fixed my issue! I can't believe that is all I
    needed.
    Thank you so much KGlad! I don't know what I would do without
    your help!

  • Problem with Checkbox and Listbox

    Hi,
    I have a jsp page named auth_Roles.jsp which has an empty Listbox and a hyperlink,on clicking the hyperlink a popup window opens up,which is a jsp page named roleSelect.jsp.In that jsp page there is a textBox and two buttons named "Search" and "Cancel".By typing something in the checkbox when you press Search button Some checkboxes get generated dynamically matching with the Search criteria in the Textbox.These textboxes are generated in a nother JSP named findRoles.jsp.this findRoles.jsp also contains two buttons of type="submit"
    Which are Save and Cancel buttons.
    Now what i need to do is when i check some of the checkboxes that are generated in findRoles.jsp and click on Save.After that the values that are checked should be there in the listbox of the first JSP page that is auth_Roles.jsp.
    Thing is that the whole thing is working but after selecting and saving some checkBox values in the first attempt(i.e when the checked values are reflecting in the ListBox of auth_Roles.jsp) if you try to select something again using the hyperlink in auth_Roles.jsp(Using the sequence of actions i have allready mentioned) the newly checked values are occupying the ListBox in auth_Roles.jsp excluding the values i have allready selected in the first attempt(i.e values selected in the latest attempts are only getting reflected and the previous values are lost from the ListBox).
    I want to retain the previously selected values,can anyone provide any code or any suggestion,am very new in java.

    Sorry,in the roleselect.jsp page i have to type a string as a search criteria in the textBox not a CheckBox.
    Apologise for the error in information.

  • I have problems with syncing my events folders från MacBookAir to Ipad2. Some pictures show and not others?

    I have problems with syncing my events folders från MacBookAir to Ipad2. Some pictures show and not others?
    Anyone else having this problem?

    Try deleting the photo cache from your computer and then re-try the photo sync and see if they then copy over - the location of the cache, and how to delete it, is on this page http://support.apple.com/kb/TS1314

  • I have a problem with my iPhone 5 stopped working the sleep / power and simultaneously refused to obey the HOME button. I can not use either one or the other. I can not enable or disable the device, display lights up when you plug the charger. same displa

    I have a problem with my iPhone 5 stopped working the sleep / power and simultaneously refused to obey the HOME button. I can not use either one or the other. I can not enable or disable the device, display lights up when you plug the charger. same display works fine as it is surprising. or maybe someone knows what is the reason for this? is there any way to solve this problem?

    More than likely its a hardware issue, I have never encountered such a problem and best bet is to just go get it replaced. If you have insurance on your device apple will replace it as long as there was no water damage, if you dont have insurance they will charge $200 more or less. Hope you get it fixed

  • Problem with JFrame and busy/wait Cursor

    Hi -- I'm trying to set a JFrame's cursor to be the busy cursor,
    for the duration of some operation (usually just a few seconds).
    I can get it to work in some situations, but not others.
    Timing does seem to be an issue.
    There are thousands of posts on the BugParade, but
    in general Sun indicates this is not a bug. I just need
    a work-around.
    I've written a test program below to demonstrate the problem.
    I have the problem on Solaris, running with both J2SE 1.3 and 1.4.
    I have not tested on Windows yet.
    When you run the following code, three JFrames will be opened,
    each with the same 5 buttons. The first "F1" listens to its own
    buttons, and works fine. The other two (F2 and F3) listen
    to each other's buttons.
    The "BUSY" button simply sets the cursor on its listener
    to the busy cursor. The "DONE" button sets it to the
    default cursor. These work fine.
    The "SLEEP" button sets the cursor, sleeps for 3 seconds,
    and sets it back. This does not work.
    The "INVOKE LATER" button does the same thing,
    except is uses invokeLater to sleep and set the
    cursor back. This also does not work.
    The "DELAY" button sleeps for 3 seconds (giving you
    time to move the mouse into the other (listerner's)
    window, and then it behaves just like the "SLEEP"
    button. This works.
    Any ideas would be appreciated, thanks.
    -J
    import java.awt.BorderLayout;
    import java.awt.Cursor;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import javax.swing.JButton;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    import javax.swing.SwingUtilities;
    public class BusyFrameTest implements ActionListener
    private static Cursor busy = Cursor.getPredefinedCursor (Cursor.WAIT_CURSOR);
    private static Cursor done = Cursor.getDefaultCursor();
    JFrame frame;
    JButton[] buttons;
    public BusyFrameTest (String title)
    frame = new JFrame (title);
    buttons = new JButton[5];
    buttons[0] = new JButton ("BUSY");
    buttons[1] = new JButton ("DONE");
    buttons[2] = new JButton ("SLEEP");
    buttons[3] = new JButton ("INVOKE LATER");
    buttons[4] = new JButton ("DELAY");
    JPanel buttonPanel = new JPanel();
    for (int i = 0; i < buttons.length; i++)
    buttonPanel.add (buttons);
    frame.getContentPane().add (buttonPanel);
    frame.pack();
    frame.setVisible (true);
    public void addListeners (ActionListener listener)
    for (int i = 0; i < buttons.length; i++)
    buttons[i].addActionListener (listener);
    public void actionPerformed (ActionEvent e)
    System.out.print (frame.getTitle() + ": " + e.getActionCommand());
    if (e.getActionCommand().equals ("BUSY"))
    frame.setCursor (busy);
    else if (e.getActionCommand().equals ("DONE"))
    frame.setCursor (done);
    else if (e.getActionCommand().equals ("SLEEP"))
    frame.setCursor (busy);
    try { Thread.sleep (3000); } catch (Exception ex) { }
    frame.setCursor (done);
    System.out.print (" finished");
    else if (e.getActionCommand().equals ("INVOKE LATER"))
    frame.setCursor (busy);
    SwingUtilities.invokeLater (thread);
    else if (e.getActionCommand().equals ("DELAY"))
    try { Thread.sleep (3000); } catch (Exception ex) { }
    frame.setCursor (busy);
    try { Thread.sleep (3000); } catch (Exception ex) { }
    frame.setCursor (done);
    System.out.print (" finished");
    System.out.println();
    Runnable thread = new Runnable()
    public void run()
    try { Thread.sleep (3000); } catch (Exception ex) { }
    frame.setCursor (done);
    System.out.println (" finished");
    public static void main (String[] args)
    BusyFrameTest f1 = new BusyFrameTest ("F1");
    f1.addListeners (f1);
    BusyFrameTest f2 = new BusyFrameTest ("F2");
    BusyFrameTest f3 = new BusyFrameTest ("F3");
    f2.addListeners (f3); // 2 listens to 3
    f3.addListeners (f2); // 3 listens to 2

    I've had the same problems with cursors and repaints in a swing application, and I was thinking of if I could use invokeLater, but I never got that far with it.
    I still believe you would need a thread for the time consuming task, and that invokeLater is something you only need to use in a thread different from the event thread.

Maybe you are looking for

  • ITunes library lost - how to restore using songs from ipod?

    We had a virus that deleted my entire music library!! Can any one tell me how I populate my library again using my iPod nano? Please help!! I haven't been able to update my ipod since Christmas as I haven't a clue what I'm doing. Thanks!

  • Interactive button in Photoshop

    Hi. Using Photoshop CS6 on a MacBook Pro. I know you can design a button in Photoshop, but can you create one that is also interactive? Say if you wanted to do an animation in Photoshop and you wanted a button to go to the next part of the animation?

  • Chart Legend width

    I have a problem with a chart legend. Is it possible to enlarge the width of a chart legend ? If yes where I can do it. Thank you very much

  • Open Web page errors

    Hello, My simple open a web page logic used to always work up until recently, but now I am getting the following LabVIEW errors when I run it and my application never opens Internet Explorer: "Error -2147467259 occurred at Unspecified Error ..." "Err

  • Query string won't work

    I am loading a local swf using MovieClipLoader. Here's the relevant bits of code: mcloader = new MovieClipLoader(); createEmptyMovieClip(clipName, getNextHighestDepth()); mcloader.loadClip("test.swf", clipName ); This works fine. However, if I try to