Presentation value on pressing enter < af:inputText / > and the display on the other inputText

Hello world

I have the following scenario

I have two < af:inputText / > elements side by side.

I want to enter a value in an inputText , then hit I want to display this value on the other inputText.

Here's what I've tried (didn't work)

" < f: view = xmlns:f ' http://Java.Sun.com/JSF/core "xmlns:af =" " http://xmlns.Oracle.com/ADF/faces/rich "> "

< af:document title = "home.jsf" id = "d1" > "

< af:resource type = "javascript" >

function handleEnterEvent (evt) {}

var _keyCode = evt.getKeyCode ();

check to enter the key of

If (_keyCode == AdfKeyStroke.ENTER_KEY) {}

model var = evt.getSource ();

AdfCustomEvent.queue (model, "EnterEvent", {fvalue:comp.getSubmittedValue ()}, false);

evt. Cancel();

}

}

< / af:resource >

< af:form id = "f1" >

< af:decorativeBox id = "db1" >

< f: facet name = "center" >

< af:panelGroupLayout id = "pgl2" layout = "vertical" >

< af:panelGridLayout id = "pgl3" >

< af:gridRow marginTop = marginBottom "5px" = "5px" height = "auto" id = "gr1" >

< af:gridCell marginStart = "5px" width = "auto" id = "gc1" >

< af:inputText label = "Comment" id = "it1' autoSubmit ="true">

< af:clientListener method = "handleEnterEvent" type = "keyPress" / >

< af:serverListener type = "EnterEvent" method = "#{Bunny.onEnterComment}" / >

< / af:inputText >

< / af:gridCell >

< af:gridCell marginStart = '5px' marginEnd = '5px' width = 'auto' id = "gc2" >

< af:inputText id = "it2" lines = '8' columns = "40" binding = "#{Bunny.commentBox}" / >

< / af:gridCell >

< / af:gridRow >

< / af:panelGridLayout >

< / af:panelGroupLayout >

< / f: facet >

< f: facet = 'top' name >

< af:panelGroupLayout id = "pgl1" >

< af:outputText value = "let you comment below" id = "ot1.

inlineStyle = "color:rgb (0,82,255); font-size: xx-large. do-family: "Times New Roman", "Arial Black", times, Serif; "/ >

< / af:panelGroupLayout >

< / f: facet >

< / af:decorativeBox >

< / af:form >

< / af:document >

<!--oracle-jdev-comment:preferred-managed-bean-name:Bunny-->

< / f: view >




And enter my Bean in which I invoke the method of pressing.

Import javax.faces.event.ValueChangeEvent;

Import oracle.adf.view.rich.component.rich.input.RichInputText;

Import oracle.adf.view.rich.component.rich.output.RichOutputText;

Import oracle.adf.view.rich.context.AdfFacesContext;

Import oracle.adf.view.rich.render.ClientEvent;

public class {Bunny

Private RichInputText commentBox.

public Bunny() {}

commentBox = new RichInputText();

}

public String onEnterComment (ClientEvent clientEvent) {}

commentBox.setValue ("sdfsdf");

String comment = (String) clientEvent.getParameters () .get ("fvalue");

System.out.println (how);

commentBox.setValue (how);

Returns a null value.

}

{} public void setCommentBox (RichInputText commentBox)

this.commentBox = commentBox;

}

public RichInputText getCommentBox() {}

Return commentBox;

}

}



Help me please

Usman-

public String onEnterComment (ClientEvent clientEvent) {}

commentBox.setValue ("sdfsdf");

String comment = (String) clientEvent.getParameters () .get ("fvalue");

System.out.println (how);

commentBox.setValue (how);


AdfFacesContext.getCurrentInstance () .addPartialTarget (commentBox);

Returns a null value.

}

Tags: Java

Similar Questions

Maybe you are looking for

  • cmw 500 problems

    I am connected with R & S CMW 500 with the ethernet cable and I want to test a GSM signal but I have problems in a range of R & S Vi as shown in the photo below the problems on data transmission between screws (screws in the red rectangle that have p

  • Install Service Pack 4 on Windows XP Home Edition, need Adobe program to print various Government and the USPS form

    I tried many times to print a simple USPS shipping label today, I could download a USPS 88 page manual, but not the program to print the label or the label.  They say that if I use Windows XP Home Edition, I have Service Pack 4 or later.  I can't fin

  • Connection continues deleting Windows 10 Dell XPS 8300

    Hi all I have problems with my Dell XPS 8300, I installed the new 10 windows a few weeks back and since the installation of connection to internet keeps falling. My internet is with Virgin Media and I connect directly via an Ethernet cable to the rou

  • Discount to zero computer passwod

    I received a call from someone who said that they were by Microsoft Windows and I had errors that were reported to them. I asked them if they tried to sell me something and they said no. after accessing my computer, he tried to make me pay him $245 a

  • Alert Message of blackBerry Smartphones won't go away!

    I have the Curve 8330 from Verizon, and I can't get the alert message unopened to disappear from the Welcome screen.  I have no no open message and the flashing LED is not, but the yellow envelope unopened with the number '1' will be not clear.  If a