Justifiy TextField Data

Hi,
Oracle 10g,
How i can justify my data in text field?
I mean the data must be in the middle between the upper Edge And the Down Edge.
Regards,

Open the item property and set the Lowest allowed value and Highest allowed value in Data Node.

Similar Messages

  • Spry Textfield date validation

    I have a Spry textfield for a user to enter a date. I want to
    limit the date entered to 31 days away from the current date. Can
    anyone help me out with this or provide directions to an article to
    help solve this issue?
    Pat

    This does work
    <!DOCTYPE HTML>
    <html>
    <head>
    <meta charset="utf-8">
    <title>Untitled Document</title>
    <link href="SpryAssets/SpryValidationTextField.css" rel="stylesheet">
    <link href="jquery-ui-1.7.2/css/base/ui.core.css" rel="stylesheet">
    <link href="jquery-ui-1.7.2/css/base/ui.datepicker.css" rel="stylesheet">
    <link href="jquery-ui-1.7.2/css/base/ui.theme.css" rel="stylesheet">
    <link href="jquery-ui-1.7.2/css/base/ui.datepicker.images.css" rel="stylesheet">
    </head>
    <body>
    <form action="" method="post">
    <span id="sprytextfield1">
    <label for="mydate">Date:</label>
    <input id="datepicker" name="mydate" type="text">
    <span class="textfieldRequiredMsg">A value is required.</span><span class="textfieldInvalidFormatMsg">Invalid format.</span></span>
    <div id="datepicker" class="ui-glass-gradient ui-80TopTo0Bottom-gradient-header"></div>
    <input name="mysubmit" type="submit">
    </form>
    <script src="SpryAssets/SpryValidationTextField.js"></script>
    <script src="jquery-ui-1.7.2/js/jquery-1.3.2.min.js"></script>
    <script src="jquery-ui-1.7.2/js/jquery-ui-1.7.2.min.js"></script>
    <script>
    var sprytextfield1 = new Spry.Widget.ValidationTextField("sprytextfield1", "date", {format:"mm/dd/yyyy", validateOn:["change"], useCharacterMasking:true});
    $(function() {
        $('#datepicker').datepicker({ showOtherMonths: false });
    </script>
    </body>
    </html>
    Gramps

  • Dynamic Select List based on TextField data

    Hi,
    I like to dynamically display the select list based on the value in the textfield, the data in the textfield is of character type.
    Thanks

    Hello,
    Well as you now know HTML based select lists don't work like that, that widget is called a combo box and there will be built in combo boxes in APEX 3.0, it's a fairly complex dhtml widget.
    What you might want to do is provide a text item next to your select box and an Add New Value Option in your select list.
    Carl

  • Textfield data lookup

    I have a booking form. Of which have ID No. (unique to every user), name & other contact information.
    If ID No. is keyed in and the database found the ID No. is existed, it will loaded the other contact information in the other respective textfields. If no record exists, the othercontact information fields will remain blank. I cannot do a refresh page, since my other data (venue & time) will reflects a null.
    Is there any suggestion or sample code that I go do to achieve?

    do the lookup via a login page and have the user info stored in the session

  • JavaScript  Method by which we can find out same name textfield data

    Hi,
    I m using three text box in jsp with same name,
    i want to use javascript to show message box in that it will display all value of text field, important ting is that all textfield having same name.
    waiting for u r reply,
    Vikas

    This isn't a Java question. Wrong forum. JavaScript != Java.
    Use document.getElementsByName.
    <html>
    <head>
    <script>
    function showContents(fieldName)
         var allTheBoxes = document.getElementsByName(fieldName);
         if ( allTheBoxes == null )
              return;
         for ( var boxCount = 0; boxCount < allTheBoxes.length; boxCount++ )
              alert("Value of textfield " + boxCount + ". : " + allTheBoxes[boxCount].value );
    </script>
    </head>
    <body>
         <table>
              <tr>
                   <td>
                        <input type="text" name="namedBox" value="" />
                   </td>
              </tr>
              <tr>
                   <td>
                        <input type="text" name="namedBox" value="" />
                   </td>
              </tr>
              <tr>
                   <td>
                        <input type="text" name="namedBox" value="" />
                   </td>
              </tr>
              <tr>
                   <td>
                        <input type="text" name="namedBox" value="" />
                   </td>
              </tr>
              <tr>
                   <td>
                        <input type="text" name="namedBox" value="" />
                   </td>
              </tr>
              <tr>
                   <td>
                        <input type="text" name="namedBox" value="" />
                   </td>
              </tr>
              <tr>
                   <td>
                        <input type="button" name="checkFunction" value="Click Me" onclick="showContents('namedBox');" />
                   </td>
              </tr>
         </table>
    </body>
    </html>

  • Using TextField

    Hi,
    I use TextField to get an 8-digit value from the user. I have the following questions:
    1. How do you tell TextField to stop editing and make the keypad dissapear?
    2. Where is the TextField data stored and how do you retrieve it?
    3. How do you limit the max. number of value entry to 8-digit using TextField or other interfaces?
    Some code snippets would be helpful.
    Thanks.

    if u mean entered text by the "textfield's data", it is in 'text' member of the textfield class.
    e-g u can get it as;
    myString = myTextField.text;
    Set an event handler for the textfield as;
    [myTextField addTarget:(id)self action:@selector(symbolTextChanged) forControlEvents:UIControlEventEditingChanged];
    In 'symbolTextChanged' method, u can check the length of the text entered as the user types a character, as it exceeds 8, make the keyboard disappear as;
    [myTextField resignFirstResponder];
    Message was edited by: Aatif

  • Insert several dates for the same event

    Hey guys,
    I have two tables joined. 1 with dates and venue, the other
    with speakers.
    How can I add more dates to the same speaker during his
    programme of appearance. i.e. Speaker A will be appearing for the
    following dates: 20/02/2007 - 27/02/2007 & 5/03/2007.....
    I was thinking of a Date fiels and a dropdown dynamic field.
    But I'm having problems figuring it out...
    Any help would be very much appreciated..
    Thanks

    Thanks Sabaidee,
    Please find below the whole code:
    <cfset CurrentPage=GetFileFromPath(GetTemplatePath())>
    <cfif IsDefined("FORM.MM_InsertRecord") AND
    FORM.MM_InsertRecord EQ
    "insert">
    <cfquery datasource="utcg302">
    INSERT INTO speaker (speakerName, venue, eventDate)
    VALUES (
    <cfif IsDefined("FORM.speaker") AND #FORM.speaker# NEQ
    "">
    <cfqueryparam value="#FORM.speaker#"
    cfsqltype="cf_sql_clob"
    maxlength="150">
    <cfelse>
    </cfif>
    <cfif IsDefined("FORM.Venue") AND #FORM.Venue# NEQ "">
    <cfqueryparam value="#FORM.Venue#"
    cfsqltype="cf_sql_clob"
    maxlength="50">
    <cfelse>
    </cfif>
    <cfif IsDefined("FORM.date") AND #FORM.date# NEQ "">
    <cfqueryparam value="#FORM.date#"
    cfsqltype="cf_sql_timestamp">
    <cfelse>
    NULL
    </cfif>
    </cfquery>
    </cfif>
    <cfquery name="rsInsert" datasource="utcg300">
    SELECT speaker.speakerID, speaker.speakerName, speaker.venue,
    speaker.eventDate, review.reviewID, review.review
    FROM speaker INNER JOIN review ON speaker.actID =
    review.actID
    ORDER BY speaker.eventDate
    </cfquery>
    <form
    action="<cfoutput>#CurrentPage#</cfoutput>" id="insert"
    name="insert"
    method="POST">
    <label for="textfield">Date</label>
    <p>
    <input name="date" type="text" id="date" />
    </p>
    <table width="200">
    <tr>
    <td><label>
    <input type="radio" name="Venue" value="Stoney" />
    Stoney</label></td>
    </tr>
    <tr>
    <td><label>
    <input type="radio" name="Venue" value="William Edwards"
    />
    William Edwards</label></td>
    </tr>
    </table>
    <p> </p>
    <p>
    <label for="select">speaker</label>
    <select name="speaker" id="Speaker">
    <option value="">Choose One</option>
    <option value=""></option><cfoutput
    query="rsInsert">
    <option
    value="#rsInsert.speakerID#">#rsInsert.speakerName#</option>
    </cfoutput>
    </select>
    <p>
    <label for="Submit"></label>
    <input type="submit" name="Submit" value="Submit"
    id="Submit" />
    </p>
    <input type="hidden" name="MM_InsertRecord"
    value="insert">
    </form>

  • How can I pass a value from the datagrid to my textinput

    Hi i am new in adobe flex!
    I have only one row in my datagrid and it has 5 dataField. Those dataFields are id, ln, fn, kurs, yr. I want to pass those value into a textinput respectively.
    Heres my code:
    <mx:DataGrid x="396" y="10" width="110" height="124" id="dginfo" enabled="true" dataProvider="{studinfo.lastResult.datas.data}" creationComplete="studinfo.send()" editable="false" visible="true">
                            <mx:columns>
                                <mx:DataGridColumn headerText="C0" dataField="username" visible="false"/>
                                <mx:DataGridColumn headerText="C1" dataField="id"/>
                                <mx:DataGridColumn headerText="C2" dataField="ln"/>
                                <mx:DataGridColumn headerText="C3" dataField="fn"/>
                                <mx:DataGridColumn headerText="C4" dataField="kurs"/>
                                <mx:DataGridColumn headerText="C5" dataField="yr"/>
                            </mx:columns>
                        </mx:DataGrid>
    I want to pass it here (code)
    <mx:TextInput backgroundColor="#ABA5A5" editable="false" enabled="true" color="#000000" horizontalCenter="-50" verticalCenter="-71" id="idview" text="{data.id}"/>
                        <mx:TextInput  id = "idview" editable="false" enabled="true" text="{data.ln}"/>
                        <mx:TextInput  id="lnview"editable="false" enabled="true"text="{data.fn}"/>
                        <mx:TextInput id="fnview" editable="false" enabled="true" text="{data.kurs}"/>
                        <mx:TextInput backgroundColor="#ABA5A5" editable="false" enabled="true"  id="yrview" text="{data.yr}"/>
    My problem is that this code won't work, it won't diplay anything...:D

    it must not display anything as data.ln doesnot have any value. in your code, in the text property of textfield, data is considered as a property of your application, a dynamic object; so even it doesnot have ln property, it is not showing error, neither displaying anything.
    do you mean to populate your textfields if the datagrid row is selected? if so:
    <mx:TextInput  id = "idview" editable="false" enabled="true" text="{dginfo.selectedItem.ln}"/>
    if you want to populate the same data without caring if it is selected in datagrid, you should not think like you are getting data from datagrid, instead, you are getting your values directly from the studinfo.lastResult
    in such:
    <mx:TextInput  id = "idview" editable="false" enabled="true" text="{studinfo.lastResult.datas.data.ln}"/>
    note: if your result contains more than one data, you should treat it as array:
    studinfo.lastResult.datas.data[0].ln

  • Dynamic Forms in a PDF Portfolio

    Hi,
    I want to group 15 XFA forms in a single PDF portfolio. All of the forms have four common fields; section (dropdown), staff (dropdown), project (textfield), date (date/time).
    When the user opens the portfolio I want them to select options for these four fields. Note that the staff dropdown list is populated from the choice in the section dropdown.
    Then which ever form the user opens the four fields reflect the original choice of the user in step one. Effectively having a global binding for the four fields across all forms in the portfolio.
    Is this possible?
    I was thinking of a 1-page form with the four fields, which the user would select and then save. Which ever form is then opened, the four fields would have the same selections.
    Or would I need to have some XML schema in the portfolio???
    Preferably the solution would be self contained within the portfolio, so that the user does not need to undertake a further step or that JS script has to be installed in the users PC.
    I am using LC Designer ES and Acrobat 9 Pro Extended.
    Thanks in advance,
    Niall

    Can't do that at this point in time.

  • Try to show special characters in a JLabel

    Hi everybody,
    I have a big problem with special characters and to display them.
    At the moment I'm writing an Applet where you can type in
    in a JTextField stuff like \u0398 \u03B6 \u03A6 \u03C9 \u03BE.
    Then you press a JButton and the method TextField.getText();
    gives the input to a String. After that with the method
    Label.setText(String);
    i want to display the special characters, but they weren't shown.
    Instead of its the typed in characters (\u0398 \u03B6 \u03A6 \u03C9 \u03BE) appear.
    If I hardcode it, it works and every special character i want is displayed.
    Label.setText("\u0398 \u03B6 \u03A6 \u03C9 \u03BE");
    So what is wrong?
    If some things are not so clear don't hesitate to ask me
    Thanks in advance
    swachtar

    hi,
    I think I have an idea of what is going wrong with your code:
    The text in the JTextField is stored as a String in the Document. However, each character typed into the field will be stored separately, that means that the six characters typed have to be merged into one. So try creating a new String object from the textfield data and pass this one to the label:
    JLabel label;
    JTextField textField;
    label.setText(new String(textField.getText()));
    I don't know whether this works, but this is the only idea comming to my mind right now.
    best regards, Michael

  • HTTP connection using wtk 2.5.2 and usb modem

    Hi, i´m developing an application that loads some data from a web page doing a POST. I´m using the emulator to connect to the server, and send de request. I check the response code from de connection and it is ok(value 200), but when a read de content, I always get 22 bytes, with nothing of useful data.
    I searched all the internet but i found nothing about this problem.
    Could anybody help me??
    Thanks.

    Use this piece of code:
    HttpConnection c = null;
            DataInputStream dis = null;
            try
                String url = "http://www.google.com";
                c = (HttpConnection) Connector.open(url);
                int len = (int) c.getLength();
                dis = c.openDataInputStream();
                byte[] data = new byte[len];
                dis.readFully(data);
                //tf = new TextField("Data",data.toString(), len, TextField.ANY);
                //f.append(tf);
                //d.setCurrent(f);
                f.append(data.toString());
            catch(Exception e)
                e.printStackTrace();
            finally
                if (dis != null)
                    try {
                        dis.close();
                    } catch (IOException ex) {
                        ex.printStackTrace();
                if (c != null)
                    try {
                        c.close();
                    } catch (IOException ex) {
                        ex.printStackTrace();
        }

  • Facing Some Irratic Behavoir using panelLayout.

    Hi Friends
    I am Trying to create a JSF Page having a Tree Component.
    And on Clicking tree Node, provide Facility for Editing the Data According to that Node.
    My Tree is displayed Properly As per my requirement ,
    but on edit portion Data is not Diaplayed properly on text fields.+
    When i use StaticText instead on TextFields Data is Displayed Properly Without any problem.
    I am unable to understand why this sort of behaviour is generated by jsf.
    I am using javaCreator as my IDE for creating application.
    Please help me Solving this Problem
    Looking for some positive Solution for this problem. Any kind of help will be appreciable.
    Thanks
    I am Using JSF Code As :---
    <?xml version="1.0" encoding="UTF-8"?>
    <jsp:root version="1.2" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:ui="http://www.sun.com/web/ui">
    <jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
    <f:view>
    <ui:page binding="#{NetworkTree.page1}" id="page1">
    <ui:html binding="#{NetworkTree.html1}" id="html1">
    <ui:head binding="#{NetworkTree.head1}" id="head1">
    <ui:link binding="#{NetworkTree.link1}" id="link1" url="/resources/stylesheet.css"/>
    </ui:head>
    <ui:body binding="#{NetworkTree.body1}" id="body1">
    <ui:form binding="#{NetworkTree.form1}" id="form1">
    <h:messages/>
    <h:panelGrid columns="2">
    <ui:panelLayout binding="#{NetworkTree.layoutPanel1}" id="layoutPanel1" style="position: relative; width: 100%; -rave-layout: grid">
    <ui:tree binding="#{NetworkTree.networkTree}" id="networkTree" style="width: 100%"/>
    </ui:panelLayout>
    <ui:panelLayout binding="#{NetworkTree.layoutPanel2}" id="layoutPanel2" style="position: relative; width: 100%; -rave-layout: grid">
    <h:panelGrid columns="2">
    <ui:staticText binding="#{NetworkTree.staticText1}" id="staticText1" text="ID :"/>
    <ui:staticText binding="#{NetworkTree.textField1}" id="textField1"/>
    <ui:staticText binding="#{NetworkTree.staticText2}" id="staticText2" style="" text="Parent ID :"/>
    <ui:textField binding="#{NetworkTree.textField2}" id="textField2"/>
    <ui:staticText binding="#{NetworkTree.staticText3}" id="staticText3" style="" text="Node Name :"/>
    <ui:textField binding="#{NetworkTree.textField3}" id="textField3"/>
    <ui:staticText binding="#{NetworkTree.staticText4}" id="staticText4" style="" text="Node Type :"/>
    <ui:textField binding="#{NetworkTree.textField4}" id="textField4"/>
    <ui:staticText binding="#{NetworkTree.staticText5}" id="staticText5" style="" text="Node Status:"/>
    <ui:textField binding="#{NetworkTree.textField5}" id="textField5"/>
    </h:panelGrid>
    <h:panelGrid columns="4">
    <!-- <ui:button action="#{NetworkTree.edit_action}" binding="#{NetworkTree.edit}" id="edit" text="Edit"/> -->
    <ui:button action="#{NetworkTree.save_action}" binding="#{NetworkTree.save}" id="save" text="Save"/>
    <ui:button action="#{NetworkTree.exitWithoutSaving_action}" binding="#{NetworkTree.exitWithoutSaving}"
    id="exitWithoutSaving" text="Exit Without Saving"/>
    </h:panelGrid>
    </ui:panelLayout>
    </h:panelGrid>
    </ui:form>
    </ui:body>
    </ui:html>
    </ui:page>
    </f:view>
    </jsp:root>
    And My Java Code Is :--
    import com.sun.data.provider.DataProviderException;
    import com.sun.data.provider.impl.CachedRowSetDataProvider;
    import com.sun.faces.el.MethodBindingImpl;
    import com.sun.rave.web.ui.appbase.AbstractPageBean;
    import com.sun.rave.web.ui.component.Body;
    import com.sun.rave.web.ui.component.Form;
    import com.sun.rave.web.ui.component.Head;
    import com.sun.rave.web.ui.component.Html;
    import com.sun.rave.web.ui.component.Link;
    import com.sun.rave.web.ui.component.Page;
    import java.sql.ResultSetMetaData;
    import javax.faces.FacesException;
    import com.sun.rave.web.ui.component.Tree;
    import com.sun.rave.web.ui.component.TreeNode;
    import com.sun.sql.rowset.CachedRowSetXImpl;
    import java.io.File;
    import java.io.FileOutputStream;
    import java.io.OutputStream;
    import java.io.PrintStream;
    import java.sql.SQLException;
    import com.sun.rave.web.ui.component.TabSet;
    import com.sun.rave.web.ui.component.Tab;
    import com.sun.rave.web.ui.component.PanelLayout;
    import com.sun.rave.web.ui.component.TextField;
    import javax.faces.context.FacesContext;
    import javax.faces.el.MethodBinding;
    import javax.faces.event.ValueChangeEvent;
    import com.sun.rave.web.ui.component.StaticText;
    import com.sun.rave.web.ui.component.Button;
    import com.sun.rave.web.ui.component.PageSeparator;
    import com.sun.rave.web.ui.component.PanelGroup;
    import com.sun.rave.web.ui.component.Anchor;
    Page bean that corresponds to a similarly named JSP page. This
    * class contains component definitions (and initialization code) for
    * all components that you have defined on this page, as well as
    * lifecycle methods and event handlers where you may add behavior
    * to respond to incoming events.
    public class NetworkTree extends AbstractPageBean {
    // <editor-fold defaultstate="collapsed" desc="Creator-managed Component Definition">
    private int __placeholder;
    private Tree networkTree = new Tree();
    private CachedRowSetDataProvider networkDataProvider = new CachedRowSetDataProvider();
    private CachedRowSetXImpl networkRowSet = new CachedRowSetXImpl();
    Automatically managed component initialization. WARNING:
    * This method is automatically generated, so any user-specified code inserted
    * here is subject to being replaced.
    private void _init() throws Exception {
    File file1= new File("C:
    NetworkTree.txt");
    if(file1.exists()==true){
    file1.delete();
    file1.createNewFile();
    }else{
    file1.createNewFile();
    OutputStream stream=new FileOutputStream(file1);
    System.setOut(new PrintStream(stream));
    System.setErr(new PrintStream(stream));
    Integer roleId=(Integer)getSessionMap().get("CURRENTROLEID");
    String columnCommand="SELECT * FROM NETWORKNODES where parentId is null order by id";
    try{
    System.out.println("columnCommand="+columnCommand);
    getNetworkRowSet().setDataSourceName(getSessionBean1().getDataProviderName());
    getNetworkRowSet().setCommand(columnCommand);
    getNetworkRowSet().setTableName("NETWORKNODES");
    getNetworkDataProvider().setCachedRowSet((javax.sql.rowset.CachedRowSet)getValue("#{NetworkTree.networkRowSet}"));
    }catch(SQLException ex1){
    ex1.printStackTrace();
    try{
    for(int i=0 ;i < getNetworkDataProvider().getRowCount();i++){
    int nodeId =getNetworkRowSet().getInt("ID");
    String text=getNetworkRowSet().getString("NODENAME")+" ( "+getNetworkRowSet().getString("NODETYPE")+" )";
    getNetworkDataProvider().cursorNext();
    TreeNode tNode=new TreeNode();
    tNode.setText(text);
    tNode.setId("_"+nodeId);
    tNode.setAction(FacesContext.getCurrentInstance().getApplication().createMethodBinding("#{NetworkTree.networkTree_action}",null));
    AddNodeToThatNode(tNode,nodeId);
    networkTree.getChildren().add(tNode);
    }catch(SQLException ex1){
    ex1.printStackTrace();
    }catch(DataProviderException dataProviderException){
    dataProviderException.printStackTrace();
    getNetworkDataProvider().close();
    layoutPanel2.setVisible(false);
    private TreeNode AddNodeToThatNode(TreeNode tnode,int parentId) throws Exception{
    String str="Select * from NetworkNodeS where parentId="+parentId;
    CachedRowSetDataProvider subNetworkDataProvider = new CachedRowSetDataProvider();
    CachedRowSetXImpl subNetworkRowSet = new CachedRowSetXImpl();
    subNetworkRowSet.setDataSourceName(getSessionBean1().getDataProviderName());
    subNetworkRowSet.setCommand(str);
    subNetworkRowSet.setTableName("NETWORKNODES");
    subNetworkDataProvider.setCachedRowSet(subNetworkRowSet);
    for(int i=0;i<subNetworkDataProvider.getRowCount();i++){
    TreeNode treenode=new TreeNode();
    treenode.setId("_"+subNetworkRowSet.getInt("id"));
    String text=subNetworkRowSet.getString("NODENAME")+" ( "+subNetworkRowSet.getString("NODETYPE")+" )";
    treenode.setText(text);
    treenode.setAction(FacesContext.getCurrentInstance().getApplication().createMethodBinding("#{NetworkTree.networkTree_action}",null));
    treenode.getChildren().add(AddNodeToThatNode(treenode,subNetworkRowSet.getInt("id")) );
    tnode.getChildren().add(treenode);
    subNetworkDataProvider.cursorNext();
    subNetworkDataProvider.close();
    return tnode;
    private Page page1 = new Page();
    public Page getPage1() {
    return page1;
    public void setPage1(Page p) {
    this.page1 = p;
    private Html html1 = new Html();
    public Html getHtml1() {
    return html1;
    public void setHtml1(Html h) {
    this.html1 = h;
    private Head head1 = new Head();
    public Head getHead1() {
    return head1;
    public void setHead1(Head h) {
    this.head1 = h;
    private Link link1 = new Link();
    public Link getLink1() {
    return link1;
    public void setLink1(Link l) {
    this.link1 = l;
    private Body body1 = new Body();
    public Body getBody1() {
    return body1;
    public void setBody1(Body b) {
    this.body1 = b;
    private Form form1 = new Form();
    public Form getForm1() {
    return form1;
    public void setForm1(Form f) {
    this.form1 = f;
    private PanelLayout layoutPanel1 = new PanelLayout();
    public PanelLayout getLayoutPanel1() {
    return layoutPanel1;
    public void setLayoutPanel1(PanelLayout pl) {
    this.layoutPanel1 = pl;
    private PanelLayout layoutPanel2 = new PanelLayout();
    public PanelLayout getLayoutPanel2() {
    return layoutPanel2;
    public void setLayoutPanel2(PanelLayout pl) {
    this.layoutPanel2 = pl;
    private StaticText staticText1 = new StaticText();
    public StaticText getStaticText1() {
    return staticText1;
    public void setStaticText1(StaticText st) {
    this.staticText1 = st;
    private StaticText textField1 = new StaticText();
    public StaticText getTextField1() {
    return textField1;
    public void setTextField1(StaticText tf) {
    this.textField1 = tf;
    private StaticText staticText2 = new StaticText();
    public StaticText getStaticText2() {
    return staticText2;
    public void setStaticText2(StaticText st) {
    this.staticText2 = st;
    private TextField textField2 = new TextField();
    public TextField getTextField2() {
    return textField2;
    public void setTextField2(TextField tf) {
    this.textField2 = tf;
    private StaticText staticText3 = new StaticText();
    public StaticText getStaticText3() {
    return staticText3;
    public void setStaticText3(StaticText st) {
    this.staticText3 = st;
    private TextField textField3 = new TextField();
    public TextField getTextField3() {
    return textField3;
    public void setTextField3(TextField tf) {
    this.textField3 = tf;
    private StaticText staticText4 = new StaticText();
    public StaticText getStaticText4() {
    return staticText4;
    public void setStaticText4(StaticText st) {
    this.staticText4 = st;
    private TextField textField4 = new TextField();
    public TextField getTextField4() {
    return textField4;
    public void setTextField4(TextField tf) {
    this.textField4 = tf;
    private StaticText staticText5 = new StaticText();
    public StaticText getStaticText5() {
    return staticText5;
    public void setStaticText5(StaticText st) {
    this.staticText5 = st;
    private TextField textField5 = new TextField();
    public TextField getTextField5() {
    return textField5;
    public void setTextField5(TextField tf) {
    this.textField5 = tf;
    private Button save = new Button();
    public Button getSave() {
    return save;
    public void setSave(Button b) {
    this.save = b;
    private Button exitWithoutSaving = new Button();
    public Button getExitWithoutSaving() {
    return exitWithoutSaving;
    public void setExitWithoutSaving(Button b) {
    this.exitWithoutSaving = b;
    // </editor-fold>
    Construct a new Page bean instance.
    public NetworkTree() {
    Return a reference to the scoped data bean.
    protected RequestBean1 getRequestBean1() {
    return (RequestBean1)getBean("RequestBean1");
    Return a reference to the scoped data bean.
    protected ApplicationBean1 getApplicationBean1() {
    return (ApplicationBean1)getBean("ApplicationBean1");
    Return a reference to the scoped data bean.
    protected SessionBean1 getSessionBean1() {
    return (SessionBean1)getBean("SessionBean1");
    Callback method that is called whenever a page is navigated to,
    * either directly via a URL, or indirectly via page navigation.
    * Customize this method to acquire resources that will be needed
    * for event handlers and lifecycle methods, whether or not this
    * page is performing post back processing.
    Note that, if the current request is a postback, the property
    * values of the components do not represent any
    * values submitted with this request. Instead, they represent the
    * property values that were saved for this view when it was rendered.
    public void init() {
    // Perform initializations inherited from our superclass
    super.init();
    // Perform application initialization that must complete
    // before managed components are initialized
    // TODO - add your own initialiation code here
    // <editor-fold defaultstate="collapsed" desc="Creator-managed Component Initialization">
    // Initialize automatically managed components
    // Note - this logic should NOT be modified
    try {
    _init();
    } catch (Exception e) {
    log("NetworkTree Initialization Failure", e);
    throw e instanceof FacesException ? (FacesException) e: new FacesException(e);
    // </editor-fold>
    // Perform application initialization that must complete
    // after managed components are initialized
    // TODO - add your own initialization code here
    Callback method that is called after the component tree has been
    * restored, but before any event processing takes place. This method
    * will only be called on a postback request that
    * is processing a form submit. Customize this method to allocate
    * resources that will be required in your event handlers.
    public void preprocess() {
    Callback method that is called just before rendering takes place.
    * This method will only be called for the page that
    * will actually be rendered (and not, for example, on a page that
    * handled a postback and then navigated to a different page). Customize
    * this method to allocate resources that will be required for rendering
    * this page.
    public void prerender() {
    Callback method that is called after rendering is completed for
    * this request, if <code>init()</code> was called (regardless of whether
    * or not this was the page that was actually rendered). Customize this
    * method to release resources acquired in the <code>init()</code>,
    * <code>preprocess()</code>, or <code>prerender()</code> methods (or
    * acquired during execution of an event handler).
    public void destroy() {
    public Tree getNetworkTree() {
    return networkTree;
    public void setNetworkTree(Tree networkTree) {
    this.networkTree = networkTree;
    public CachedRowSetDataProvider getNetworkDataProvider() {
    return networkDataProvider;
    public void setNetworkDataProvider(CachedRowSetDataProvider networkDataProvider) {
    this.networkDataProvider = networkDataProvider;
    public CachedRowSetXImpl getNetworkRowSet() {
    return networkRowSet;
    public void setNetworkRowSet(CachedRowSetXImpl networkRowSet) {
    this.networkRowSet = networkRowSet;
    public void networkTree_action() throws Exception{
    String selectedNode= String.valueOf(getNetworkTree().getSubmittedValue());
    System.out.println("=====================under Action Start=========================");
    System.out.println("selectedNode="+selectedNode);
    String id = selectedNode.substring(selectedNode.lastIndexOf("_")+1,selectedNode.length());
    System.out.println("id="+id);
    String str = "Select * from NetworkNodes where id="+id;
    System.out.println("str="+str);
    System.out.println("=====================under Action Stop=========================");
    CachedRowSetDataProvider subNetworkDataProvider = new CachedRowSetDataProvider();
    CachedRowSetXImpl subNetworkRowSet = new CachedRowSetXImpl();
    subNetworkRowSet.setDataSourceName(getSessionBean1().getDataProviderName());
    subNetworkRowSet.setCommand(str);
    subNetworkRowSet.setTableName("NETWORKNODES");
    subNetworkDataProvider.setCachedRowSet(subNetworkRowSet);
    subNetworkDataProvider.cursorFirst();
    textField1.setText(new Integer(subNetworkRowSet.getInt("id")));
    textField2.setText(new Integer(subNetworkRowSet.getInt("parentId")));
    textField3.setText(subNetworkRowSet.getString("NODENAME"));
    textField4.setText(subNetworkRowSet.getString("NODETYPE"));
    textField5.setText(new Boolean(subNetworkRowSet.getBoolean("NodeStatus")));
    subNetworkDataProvider.close();
    layoutPanel2.setVisible(true);
    public String insert_action() {
    layoutPanel2.setVisible(false);
    return "";
    public String exitWithoutSaving_action() {
    return insert_action();
    public void save_action() throws Exception{
    String str="Select * from NetworkNodeS where Id="+textField1.getText();
    CachedRowSetDataProvider subNetworkDataProvider = new CachedRowSetDataProvider();
    CachedRowSetXImpl subNetworkRowSet = new CachedRowSetXImpl();
    subNetworkRowSet.setDataSourceName(getSessionBean1().getDataProviderName());
    subNetworkRowSet.setCommand(str);
    subNetworkRowSet.setTableName("NETWORKNODES");
    subNetworkDataProvider.setCachedRowSet(subNetworkRowSet);
    subNetworkDataProvider.cursorFirst();
    subNetworkDataProvider.getCachedRowSet().setObject(2,textField2.getText());
    subNetworkDataProvider.getCachedRowSet().setObject(5,String.valueOf(textField3.getText()));
    subNetworkDataProvider.getCachedRowSet().setObject(3,String.valueOf(textField4.getText()));
    subNetworkDataProvider.getCachedRowSet().setObject(4,textField5.getText());
    subNetworkDataProvider.commitChanges();
    subNetworkDataProvider.refresh();
    subNetworkDataProvider.close();
    layoutPanel2.setVisible(false);

    My Page is Displayed Properly now .
    Same Code is working properly by Running Code in Different IDE.

  • Asfunction, cursor states, and moviclips...oh my

    Hello all. I've ran into a bit of a snag and I'm thinking the
    obvious is sitting right in front of me...
    I have a dynamic movieclip that is created to serve as a
    container for a dynamically created textfield. The textfield has
    html text. Within that html text is an asfunction to call a method.
    Code is posted below:
    MovieClip(this.createEmptyMovieClip("textOneContainer_mc",
    this.getNextHighestDepth());
    TextField(textOneContainer_mc.createTextField("textOneField",
    textOneContainer_mc.getNextHighestDepth(), 10, 10, 300, 30));
    // Method triggered from asfunction call from html text
    textOneContainer_mc.launchGlossary = function(arg){
    trace("Launch Glossary Method Hit, Glossary Word: "+arg);
    textOneContainer_mc. textOneField.html = true;
    textOneContainer_mc. textOneField.htmlText = htmlString_str;
    Now the issues are:
    1. if applied, textOneContainer_mc onRollOver, onRollOut,
    onRelease, and etc seem to not allow the asfunction to be called
    2. i'm using custom cursors, which work fine...however, the
    system hand cursor appears over the word I have linked via
    asfunction. I've tried using the useHandCursor = false MovieClip
    property, but it still appears.
    I hope this makes sense, i'm a little dumbfounded on this
    one. The last thing I want to do is to do a split on the html text
    and put each word in it's own MovieClip just to achieve what the
    asfunction already does.

    // Store Text and Audio Data From XML
    var pagetext_xmlnodeOne:XMLNode =
    matchSiblingNode(_parent.currentPage_xmlnode.firstChild,"instructionalTextOne");
    var pagetext_xmlnodeTwo:XMLNode =
    matchSiblingNode(_parent.currentPage_xmlnode.firstChild,"instructionalTextTwo");
    var swf_xmlnode:XMLNode =
    matchSiblingNode(_parent.currentPage_xmlnode.firstChild,"externalSwfFile");
    var swfLocation:String = swf_xmlnode.attributes.swfFilePath;
    var textOneAudio:String =
    pagetext_xmlnodeOne.attributes.audioPath;
    var textTwoAudio:String =
    pagetext_xmlnodeTwo.attributes.audioPath;
    var titleText:String =
    _parent.currentPage_xmlnode.attributes.title;
    var textOne_str:String =
    pagetext_xmlnodeOne.firstChild.nodeValue;
    var textTwo_str:String =
    pagetext_xmlnodeTwo.firstChild.nodeValue;
    trace("///// Title Text: "+titleText+"
    //Loads SWF File
    function loadSWF(externalSwfLocation:String){
    var swfFile:Boolean = false;
    //Object to Load SWF File
    var mcLoader:MovieClipLoader = new MovieClipLoader();
    var mclListener:Object = new Object();
    if (externalSwfLocation != undefined){
    if (externalSwfLocation.indexOf(".swf") > 0){
    swfFile = true;
    trace(".SWF Path: "+externalSwfLocation+" Target Clip:
    "+mediaSWF_mc);
    mcLoader.loadClip(externalSwfLocation,mediaSWF_mc);
    image_mc = mediaSWF_mc;
    } else {
    //In the Event There is No SWF File, loadText Method Called
    trace("No SWF File to Load, loadText Method Being Called");
    loadText(textOne_str,textTwo_str,textOneAudio,textTwoAudio);
    mcLoader.addListener(mclListener);
    mclListener.onLoadComplete = function(){
    trace(".swf Loaded Successfully");
    trace("loadText Method Being Called");
    loadText(textOne_str,textTwo_str,textOneAudio,textTwoAudio);
    mclListener.onLoadInit = function(target_mc:MovieClip){
    //Adjust SWF
    var pictH:Number = target_mc._height;
    var pictW:Number = target_mc._width;
    var pictX:Number = target_mc._x;
    var pictY:Number = target_mc._y;
    if (swfFile){
    pictH = Number(swf_xmlnode.attributes.swfHeight);
    pictW = Number(swf_xmlnode.attributes.swfWidth);
    if(swf_xmlnode.attributes.swfX!=undefined){
    pictX = Number(swf_xmlnode.attributes.swfX);
    } else { pictX = 0 };
    if(swf_xmlnode.attributes.swfY!=undefined){
    pictY = Number(swf_xmlnode.attributes.swfY);
    } else { pictY = 0 };
    //Adjust to New SWF Size and _x/_y Cooordinates
    mediaSWF_mc._width = pictW;
    mediaSWF_mc._height = pictH
    mediaSWF_mc._x = pictX;
    mediaSWF_mc._y = pictY;
    mediaSWF_mc._alpha = 0;
    // loadText Method
    // Creates Movieclips to Store Textfield Data
    function loadText(textOne_str:String, textTwo_str:String,
    textOneAudio:String,textTwoAudio:String){
    if(pagetext_xmlnodeOne.attributes._y!=undefined){
    var txtOneY_num:Number = pagetext_xmlnodeOne.attributes._y;
    } else {
    var txtOneY_num:Number = 0;
    var txtOneBlock:String =
    pagetext_xmlnodeOne.attributes.textBlock;
    if(textOne_str!=undefined){
    var vlaInstrOneTxt_mc =
    MovieClip(this.createEmptyMovieClip("vlaInstrOneTxt_mc",
    this.getNextHighestDepth()));
    var vlaInstrOne_txt =
    TextField(vlaInstrOneTxt_mc.createTextField("vlaInstrOne_txt",
    vlaInstrOneTxt_mc.getNextHighestDepth(), 8, txtOneY_num, 0, 0));
    var vlaInstrOneFld = vlaInstrOneTxt_mc.vlaInstrOne_txt;
    vlaInstrOneFld.autoSize = "left";
    vlaInstrOneFld.embedFonts = true;
    vlaInstrOneFld.selectable = false;
    vlaInstrOneFld.multiline = true;
    vlaInstrOneFld.border = false;
    vlaInstrOneFld.html = true;
    vlaInstrOneFld.htmlText = textOne_str;
    vlaInstrOneTxt_mc.enabled = false;
    vlaInstrOneTxt_mc._alpha = 0;
    vlaInstrOneTxt_mc.launchGlossary = function(arg){
    trace ("You clicked me!Argument was "+arg);
    if(pagetext_xmlnodeTwo.attributes._y!=undefined){
    var txtTwoY_num:Number = pagetext_xmlnodeTwo.attributes._y;
    } else {
    var txtTwoY_num:Number = 0;
    var txtOneBlock:String =
    pagetext_xmlnodeOne.attributes.textBlock;
    if(textTwo_str!=undefined){
    var vlaInstrTwoTxt_mc =
    MovieClip(this.createEmptyMovieClip("vlaInstrTwoTxt_mc",
    this.getNextHighestDepth()));
    var vlaInstrTwo_txt =
    TextField(vlaInstrTwoTxt_mc.createTextField("vlaInstrTwo_txt",
    vlaInstrTwoTxt_mc.getNextHighestDepth(), 8, txtTwoY_num, 0, 0));
    var vlaInstrTwoFld = vlaInstrTwoTxt_mc.vlaInstrTwo_txt;
    vlaInstrTwoFld.autoSize = "left";
    vlaInstrTwoFld.embedFonts = true;
    vlaInstrTwoFld.selectable = false;
    vlaInstrTwoFld.multiline = true;
    vlaInstrTwoFld.border = false;
    vlaInstrTwoFld.html = true;
    vlaInstrTwoFld.htmlText = textTwo_str;
    vlaInstrTwoTxt_mc.enabled = false;
    vlaInstrTwoTxt_mc._alpha = 0;
    var vlaInstrText_fmt:TextFormat = new TextFormat();
    vlaInstrText_fmt.font = "VAGRoundedRegular";
    vlaInstrOneFld.setTextFormat(vlaInstrText_fmt);
    vlaInstrTwoFld.setTextFormat(vlaInstrText_fmt);
    // Make Sure Text Stays Within Bounds
    if(pagetext_xmlnodeOne.attributes.textBlock == "Left"){
    if(vlaInstrOneFld._width > 375){
    vlaInstrOneFld.wordWrap = true;
    vlaInstrOneFld._width = 375;
    } else {
    if(vlaInstrOneFld._width > 670){
    vlaInstrOneFld.wordWrap = true;
    vlaInstrOneFld._width = 670;
    if(pagetext_xmlnodeTwo.attributes.textBlock == "Left"){
    if(vlaInstrTwoFld._width > 375){
    vlaInstrTwoFld.wordWrap = true;
    vlaInstrTwoFld._width = 375;
    } else {
    if(vlaInstrTwoFld._width > 670){
    vlaInstrTwoFld.wordWrap = true;
    vlaInstrTwoFld._width = 670;
    // Call Transitions Clip for TextFields
    trace("All Textfield Clips Loaded, Transitions and Audio
    Will Now Take Place");
    transitionInFirstTxtClip();
    // Apply Transitions Clip to First TextField
    function transitionInFirstTxtClip(){
    if(textOne_str!=undefined){
    fadeIn(vlaInstrOneTxt_mc, 7, this, "readFirstAudioClip");
    } else {
    trace("No Instructional Text 1 Found, calling
    readFirstAudioClip");
    readFirstAudioClip();
    // Play Audio Related to First TextField
    function readFirstAudioClip(){
    if(textOneAudio!=undefined){
    playSFX(textOneAudio, this, "nextClipTransition");
    vlaInstrOneTxt_mc.enabled = true;
    } else {
    trace("No Instructional Text 1 Audio File Found, calling
    nextClipTransition");
    nextClipTransition();
    // Apply Transtions Clip to Second TextField
    function nextClipTransition(){
    if(textTwo_str!=undefined){
    fadeIn(vlaInstrTwoTxt_mc, 7, this, "readSecondAudioClip");
    } else {
    trace("No Instructional Text 2 Found, calling
    readSecondAudioClip");
    readSecondAudioClip();
    /// Play Audio Related to Second TextField
    function readSecondAudioClip(){
    if(textTwoAudio!=undefined){
    playSFX(textTwoAudio, this, "displaySwfFile");
    vlaInstrTwoTxt_mc.enabled = true;
    } else {
    trace("No Instructional Text 2 Audio File Found, calling
    displaySwfFile");
    displaySwfFile();
    // Display SWF File
    function displaySwfFile(){
    if(swfLocation!=undefined){
    fadeIn(mediaSWF_mc, 1, this, "applyCursorStates");
    } else {
    trace("No SWF File Found, calling applyCursorStates");
    //applyCursorStates();
    function applyCursorStates(){
    // Apply MovieClip Methods to TextField
    vlaInstrOneTxt_mc.onRollOver = vlaInstrTwoTxt_mc.onRollOver
    =function(){
    cursorRollOverAudio();
    vlaInstrOneTxt_mc.onRollOut = vlaInstrTwoTxt_mc.onRollOut
    =function(){
    cursorRollOutAudio();
    vlaInstrOneTxt_mc.onRelease = function(){
    cursorRollOverAudio();
    playSFX(textOneAudio);
    vlaInstrTwoTxt_mc.onRelease = function(){
    cursorRollOverAudio();
    playSFX(textTwoAudio);
    var __soundFX:Sound = new Sound();
    var audioFlag:Boolean = false;
    function playSFX(audioClip:String, targ:MovieClip,
    onComplete:String):Void {
    __soundFX.onLoad = function(success:Boolean){
    if(success){
    if(!audioFlag){
    audioFlag = true;
    __soundFX.start();
    trace("Audio Clip: "+audioClip+" is Now Playing");
    } else {
    __soundFX.stop();
    audioFlag = false;
    trace("Audio Clip Stopped");
    var args = arguments.slice(3, arguments.length);
    __soundFX.onSoundComplete = function() {
    audioFlag = false;
    trace("Audio Clip Completed");
    if(onComplete!=undefined){
    trace("Audio "+audioClip+" Completed, Calling onComplete
    Method: "+onComplete);
    targ[onComplete](args);
    } else {
    trace("Audio Completed, no onComplete Method to Call");
    __soundFX.loadSound(audioClip,false);
    // Stop Audio Method
    function stopSFX():Void {
    trace("__PLAYER: AUDIO CLIP STOPPED");
    __soundFX.stop();
    loadSWF(swfLocation);

  • Trying to understand "var"

    Hi,
    This is kind of a silly question but the "var" actionscript
    is ment for storing a specific value ment to be used in a
    movieclip, but how do I use the values when I want to execute a
    specific task? Kind of a silly question, I know. :-)
    Johan

    a variable is used to store something. that may be a string,
    a number or an object (which encompasses all instances of the flash
    classes including, but not limited to, movieclips, textfields,
    dates, bitmaps etc etc etc) reference.
    when you prefix that variable's name with var, you're making
    that variable local to the object in which it is defined. when
    that's a timeline, it's no big deal. variables are local to
    timelines even when they are not prefixed by var.
    but when that variable is prefixed by var and defined within
    a function, that variable is not defined outside the function.
    so, "var" has a very specific meaning in flash and is a
    reserved word. a variable is a general term that has the same
    meaning in flash as it does in every other programming language of
    which i am aware and has the same meaning in mathematics: it's
    something that contains a reference to something else.

  • Quick reponse required please.............

    Hi friend,
                 i just want to create a horizontal box containing(textInput--3 fields and button) dynamically depending upon data in database.
    i created horizontal box with its child elements sucessfully but here i have to call a function to store data entered by the enduser in textInput field into database.
    I am unable to retrieve data of a particular set of textinput field by clicking the button
    to be clear consider a small example
    textinputfield1        textinputfield2        textinputfield3          button
    textinputfield1       textinputfield2         textinputfield3         button
    no of rows depend upon data in database. Now by clicking on button,i want the entire textfield data to be displayed .
    thanx in advanceeee

    Hi Ravi,
    You can use the following code below....
    Note:
    Observe the code in the blue and also the code in green...
    The code in blue is more of a dynamic one where in which you are dynamically looping through the children of your HBox container irrespective of the order of occurence of TextInputs and it will work for any number of TextInputs horizontally..
    Where as the code in green is a sort of static one and you code based on the indexes by hardcoding the positions of occurences in order to get the values.
    Observe both you will know the difference..:)
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" >
      <mx:VBox id="horizontal_box">
      <mx:Repeater id="myRep" dataProvider="{column1}" >
       <mx:HBox borderThickness="2">
        <mx:Label text="{myRep.currentItem}" id="processName" width="220"/>
        <mx:TextInput id="startTime" width="100" />
        <mx:TextInput id="endTime" width="100" />
        <mx:TextInput id="remarks" width="100" />
        <mx:TextInput id="recordCount" width="100" />
        <mx:Button id="submit"  label="ADD>>" click="addTrans(event.currentTarget as Button);"/>
      </mx:HBox>
        </mx:Repeater>
    </mx:VBox>
       <mx:Script>
    <![CDATA[
    import mx.containers.HBox;
        import mx.collections.ArrayCollection;
        import mx.controls.Alert;
        import mx.controls.Button;
        import mx.controls.TextInput;
               [Bindable] private var column1:Array=[1,2,3,4,5,6,7,8,9,10];       
             [Bindable] private var max:int;
            [Bindable] private var i:int;
            [Bindable]private var array_date:Array = new Array();
             private var u:URLRequest; 
             public function addTrans(clickedBtn:Button):void{                   
                var parentHBox:HBox = clickedBtn.parent as HBox;
                var enteredValues:String="";
                for each(var control:* in parentHBox.getChildren())
                 if(control is TextInput)
                  enteredValues += (control as TextInput).text + " ";
                Alert.show("values entered in text input field by user are "+ enteredValues);  
                /* var text1:String = (parentHBox.getChildAt(1) as TextInput).text;
                var text2:String = (parentHBox.getChildAt(2) as TextInput).text;
                var text3:String = (parentHBox.getChildAt(3) as TextInput).text;
                var text4:String = (parentHBox.getChildAt(4) as TextInput).text;
       Alert.show("values entered in text input field by user are "+ text1 + " " + text2 + " " + text3 + " " + text4); */  
    ]]>
    </mx:Script>
    </mx:Application>
    Thanks,
    Bhasker

Maybe you are looking for

  • Windows does not recognize ipod nano

    i cannot get windows (or itunes) to recongize my ipod nano. once in connect the ipod, i get the 'do not disconnect' message indefinately. it used to work. it reinstalled itunes, reset my ipod, etc. any suggestions?

  • Buying at a retailer

    Hy, I am from Europe and I'm planning to buy a MacBook Pro from the states maybe next month. The question is, that if I buy it from a retailer, I mean from an Apple store, can I personalize it, just like when I'm ordering online? I mean...can I choos

  • Error 400 - Photoshop services are not available

    I keep getting this error messge every time I try to log in. Help?

  • A song wont play my ipod

    i put the song low on it and it plays the beginning but that all then goes to the next song the video wont work either and i really need help to fix it so please help me.

  • How to compare date?

    Hi, all, I tried to compare two dates and get the difference of the days less than 30 but it didn't work . Here's my code: select c.inst_seq_num, avg(c.dlt_egt) as a from EHM_CMPRDLT c where c.inst_seq_num='#inst_seq_num[CurrentRow]#' and datediff(dd