I use js change the sequence of options, JSF go through lifecycle, why?

Hi,All
When I use javascript change the sequence of options,
JSF go through Restore View, Apply Request Value,
Process Validations, Render Response four lifecycle. why?
<f:view>
<head>
<script>
function moveDown()
     var selObj = document.getElementById("org_rank:childOrgs");
     var index = selObj.selectedIndex;
     if (index == -1 || index >= selObj.options.length - 1)
     return;
     var selectedText = selObj.options[index].text;
     var selectedValue = selObj.options[index].value;
     selObj.options[index].text = selObj.options[index + 1].text;
     selObj.options[index].value = selObj.options[index + 1].value;
     selObj.options[index + 1].text = selectedText;
     selObj.options[index + 1].value = selectedValue;
     //selObj.options[index + 1].selected = true;
</script>
</head>
<body>
<h:form id="org_rank">
<table align="center" border="1" cellpadding="0" cellspacing="0">
<tr>
<td align="middle" heigth="100" width="160">
<h:selectOneListbox id="childOrgs" value="#{orgDelegate.curId}" style="height:100px;width:150px" >
<f:selectItems id="orgNames" value="#{orgDelegate.orgNames}" />
</h:selectOneListbox>
</td>
<td align="middle" width="80">
<h:commandButton value="down" onclick="moveDown()" /><br><br>
</td>
</tr>
</table>
<h:messages styleClass="errorMessage" layout="table" showDetail="true" showSummary="false" />
</h:form>
</body>
</f:view>

When you say the text shrinks when you change the size of the window, do you mean in terms of making the window smaller / zooming out from the page so that for instance you can see more of the "page" that you're working on?
If so then that's by design and is how it's always been. The view you see in Word is designed to represent what would appear on the page if you printed it, so relative to the page the text remains the same size. If you change the page so that you can see
more of it, eg effectively zooming out, then the size of the text must shrink. It's no different to holding a physical document in front of you, if you move the paper further away from you so the page looks smaller, the text will as well.
On the other hand if you mean when you make the window smaller, eg displaying less of the grey space on either side, that the page and text shrink then I don't know what you mean. Which version of Word are you using? I've tried with Word documents in Word
2010 and Word 2013, and in both cases simply changing the size of the document window does nothing to the view of the document (other than make it impossible to read all the test on a line without scrolling if I go too far.

Similar Messages

  • How to change the sequence number in the test packages?

    Hello,
    I need to change the sequence number in the test packages. Currently I use "move test case." However you can only move one item at a time.
    There is another option to make this change?
    Best regards,
    Elisabete

    Hi Elisabete,
    Sorry, I've to acknowledge the reply from Fabricius.
    That's poor in release 7.0. A former version provided a solution where it was possible to move a testcase even over pages at once.  May be SAP changed this functionality because of other problems caused by the former solution.
    Therefore I am looking for a business blueprint structure meeting the logical and operational process for little need of changes in sequences.  And I create E2E-scenarios / E2E-processes as an additional structure in a project to have an easier approach in the Test Workbench.  An other option is to divide test packages into smaller ones.
    I hope we can look foreward to a better and more comfortable solution in release 7.1.
    Best regards,
    Adelbert

  • IPhoto is changing the sequence of the photos I have in my file for the book I want to create. Help?

    iPhoto is changing the sequence of the photos I have in my file for the book I want to create. Help?

    The problem has been solved. As it turns out, I was highlighting the photos in the album I wished to create. And then generating the request for a book. This caused the photo images when loaded into the book format to revert to the sequence used when I originally loaded them into the album. Not the edited sequence. Turns out that I did not need to highlight the photos. By eliminating this step, they remained in the edited sequence.
    Thank you for responding. Warmly, Janice huseby

  • Change the sequence of the tabs

    Experts,
    I would like to know if there is a way to change the sequence of the tabs.
    For example, under the Projects' area I can see the tabs in the following sequence:
        -    Header, Schedule, Suppliers, Forms, Costs, Accounting.
    Is it possible to change their sequence to:
        -    Header, Schedule, Costs, Forms, Suppliers, Accounting.
    Thanks and Regards,
    Igor Nakamura

    Hi
    I don't think there is any way you can change the sequence of the tabs. However, you can modify the Label on the tabs using page customization.
    If it is absolutely essential for you to change the sequence you can try interchanging the label on the tabs "suppliers" and "costs" and then create all custom fields within each hiding the standard one's. I would suggest though to use the standard tab sequence only.
    Regards
    Mudit Saini

  • MIRO: Change the sequence of columns permanent

    Hi!
    It's easy to change the column sequence in miro with the mouse but ...
    Is it possible to modify the sequence of columns in a screen variant (MIRO) permanently?
    We're working with 4.6c.
    Thanks in advance!
    Best regards,
    Ingo

    Hi Dominic!
    Thanks ... I know OLMRLIST already.
    I don't find there something to change the sequence permantly.
    There's the option "Take over column sequence" and it's marked.
    ...I want to unmark the option but i can't change it (i can't enter it... it's grey).
    Any ideas?
    Best regards,
    Ingo

  • I need help changing the sequence settings to my video

    I shot on a JVC Everio in 720x480 29.97fps. I normally shoot in 1080x420 so I know the picture quality isn't going to be AS good. Normally, when I drag my clips into the timeline Premiere changes the sequence settings for me and everything looks fine. However when I drag  this footage (the 720p) in, it becomes elongated and fuzzy.
    I've messed around with the sequence settings by using DV-NTSC widescreen 48kHz and DVCPRO50 480i NTCS widescreen. When I drag my clips in they're cropped really close and they still look a bit off when I change the image to fit the screen (DVCPRO 50 looks a little bit better).
    When I shot the video it looked crisp and clear on the monitor. I'm wondering if it looks strange because of the sequence settings and if so, what would be the best settings for this video.
    The final video is going on youtube and I would like to make it look as good as possible!
    Please let me know if you can help me out!

    However when I drag  this footage (the 720p) in, it becomes elongated and fuzzy.    
    What 720p? You gave us two frame sizes. Neither of them are 720p.
    1080X420 is a very strange frame size. And you say it is normal? A 720p video is 1280X720 non-interlaced.
    Chances are very good that it is 480i video you shot with a frame size of 720X480 and it is interlaced.
    That video should be interpreted with a Pixel Aspect Ratio (PAR) of 0.9091 (rectangular pixels that are taller than they are wide) - and what that means is that it isn't 16:9 it is 4:3 and should be edited in a 4:3 sequence. If, however, Premiere Pro is seeing the footage as having a PAR of 1.0 (square pixels) then you may have to right click on the clip in the Project Panel and select Modify|Interpret Footage and set it to D1/DV NTSC (0.9091)

  • Photo sharing - I used to love the Photo Gallery option in IPhoto.

    Photo sharing - I used to love the Photo Gallery option in IPhoto. That feature was dropped. I find PhotoStream on the iPhone but what to do from my desktop/laptop? I don't like to organize photos on my phone.

    If you have the proper software PhotoStream is available on all of your devices
    http://www.apple.com/support/icloud/
    LN

  • When i was trying to update my iphone 4s from 6.1.4 to ios 7,its asking to change the media sync  options,how can i change that option,can any one help me.........?

    when i was trying to update my iphone 4s from 6.1.4 to ios 7,its asking to change the media sync  options,how can i change that option,can any one help me.........?

    I tried powering down and re-starting the iPhone (as suggested at http://support.apple.com/kb/TS1275). This seems to have cleared the "...not connected to the Internet" problem, and iOS 6.1 is now in the process of downloading.
    Thanks very much for your feedback.

  • How do I change the sequence of fields in DT?

    Hello,
    How do I change the sequence of the  fileds DT in such a way that the MM (already done) will not be disturbed?
    Thanks
    Nikhil.

    I could figure it out
    you can actually do it by right clicking on the field , cut and insert
    thanks anyways,

  • How can i change the sequence of text element in standard driver program ?

    Hi,
    can u tell me how can i change the sequence of text element in standard  sapscript driver program.. without making a zcopy of standard driver program.
    My problem is when MEDRUCK form is getting printed for PO print , header text is coming before item. But the requirement is to come it after item.So how cani do that without making the zcopy of  SAPLMEDRUCK program..Is there any enhancement point in SAPLMEDRUCK driver program..where i can put my customise code for changing the sequence of text element ?

    Hi,
        Just copy the MEDRUCK to ZMEDRUCK. No need to copy the driver program.
    1) SE71Menu > Utilities > COpy from Client
    MEDRUCK ->>Client 000
    New formname ZMEDRUCK
    2) Now open the ZMEDRUCK in DE language in SE71
    3) Menu > Utilities > Convert original Language
    Change DE  to EN, save and activate
    4) Now open the ZMEDRUCK in EN language
    5) Goto Pagewindows > Main window,
    Look for the HEADER text Text element, copy the whole code under this Text element just after the ITEM text Text element, and comment the HEADER text above.
    Now the Header text Text element will be below ITEM text only. This will full fill your requirment.
    Now goto NACE transaction and add the copied ZMEDRUCK to the EF application.
    Regards
    Bala Krishna

  • In iphoto, change the sequence in slideshow

    I want to change the sequence of photos, how do I doi that in Iphoto in a slideshow?

    In the tray at the top of the screen, drag the photos around.

  • Function module is used to change the bp role

    WHICH function module is used to change the bp role????

    I have another doubt also,when i add a role (example prospect) for a bp using the function module it works fine.but if i see the classification tab in bp transaction for that particular partner,the prospect check box is not checked.
    how to check that checkbox in classification tab automatically while we create a role????

  • CATS- change the sequence of columns

    Hi,
    Can we change the sequence of the columns in the time sheet the way it appears?
    Lets say.. currently, PERNR - Name - sender cost center - activity type - rec order - activity - designation.. is the sequence.
    Can we make it to
    PERNR - name - designation - sender cost center - rec order - activity type - activity
    By dragging from one column to another column in  Tcode:CAT2, it was change, but its not saved.
    Please let me know.
    Regards
    Vijay

    Hi,
    I got the solution
    Regards
    Vijay

  • [OKP1]Change the sequence of CO objects on the screen

    Dear everyone,
    Could anyone tell me how to change the sequence of CO objects on the screen in OKP1?
    Or it is just another mission impossible?
    Pls offer me some tips, I appreciate your help in advance.
    Regards,
    SCW

    Hi...
    how about a custom screen (have your abap developer involved) that will have the OKP1 transactions in the order you like and a custom SAVE button that when pressed will make a batch input to associated OKP1 transactions?
    cheers
    pan

  • Can I change the Column Name without losing data and change the sequence

    Dear Experts,
    I want to change the column name without changing the sequence and dont want lose the data.

    Oracle Version : ?
    Example Based on 10g.
    SQL> conn scott/tiger
    Connected.
    SQL> create table col1 as select * from all_objects where rownum <= 100;
    Table created.
    SQL> alter table col1  add constraints col1_pk_objid primary key(object_id);
    Table altered.
    SQL> desc col1
    Name                                      Null?    Type
    OWNER                                              VARCHAR2(30)
    OBJECT_NAME                                        VARCHAR2(30)
    SUBOBJECT_NAME                                     VARCHAR2(30)
    OBJECT_ID                                 NOT NULL NUMBER
    DATA_OBJECT_ID                                     NUMBER
    OBJECT_TYPE                                        VARCHAR2(19)
    CREATED                                            DATE
    LAST_DDL_TIME                                      DATE
    TIMESTAMP                                          VARCHAR2(19)
    STATUS                                             VARCHAR2(7)
    TEMPORARY                                          VARCHAR2(1)
    GENERATED                                          VARCHAR2(1)
    SECONDARY                                          VARCHAR2(1)
    SQL> alter table col1 rename column object_id to object_no;
    Table altered.
    SQL> desc col1;
    Name                                      Null?    Type
    OWNER                                              VARCHAR2(30)
    OBJECT_NAME                                        VARCHAR2(30)
    SUBOBJECT_NAME                                     VARCHAR2(30)
    OBJECT_NO                                 NOT NULL NUMBER
    DATA_OBJECT_ID                                     NUMBER
    OBJECT_TYPE                                        VARCHAR2(19)
    CREATED                                            DATE
    LAST_DDL_TIME                                      DATE
    TIMESTAMP                                          VARCHAR2(19)
    STATUS                                             VARCHAR2(7)
    TEMPORARY                                          VARCHAR2(1)
    GENERATED                                          VARCHAR2(1)
    SECONDARY                                          VARCHAR2(1)
    SQL> column column_name format a30
      1  select column_name,constraint_name
      2  from user_cons_columns
      3  where table_name = 'COL1'
      4* and owner = 'SCOTT'
    COLUMN_NAME                    CONSTRAINT_NAME
    OBJECT_NO                      COL1_PK_OBJID
    SQL>
    also go through
    http://www.dizwell.com/prod/node/65
    Message was edited by:
    user52

Maybe you are looking for