ADF form login vs. press enter
I use the default ADF form login, however, it requires a mouse click, and not responding to the "press enter/return". Any idea?
Thanks,
Thanks, Frank. I actually used a custom LoginPage.jspx, NOT the default HTML form login:
<?xml version='1.0' encoding='UTF-8'?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
<jsp:directive.page contentType="text/html;charset=UTF-8"/>
<f:view>
<af:document title="Form Login" id="d1">
<af:form id="f1">
<af:message id="m1"/>
<af:panelBox text="Login" id="pb1"
inlineStyle="width:300px; height:200.0px;">
<af:panelFormLayout id="pfl1">
<f:facet name="footer">
<af:panelBorderLayout id="pbl1"
inlineStyle="height:20.0px; "
styleClass="AFStretchWidth">
<f:facet name="start">
<af:commandButton text="Login" id="cb1"
action="#{loginBean.doLogin}"/>
</f:facet>
</af:panelBorderLayout>
</f:facet>
<af:inputText label="User Name" id="it1" required="true"
value="#{loginBean.username}"/>
<af:inputText label="Password" id="it2" required="true"
secret="true"
value="#{loginBean.password}"/>
</af:panelFormLayout>
</af:panelBox>
<f:facet name="toolbar"/>
</af:form>
</af:document>
</f:view>
</jsp:root>
Similar Messages
-
The problem is very simple,
I have several forms on my site such as the 'quick enquiry'
form on the home page about half way down.
http://www.party-invitation.co.uk/index.htm
The user enters name- Works Fine
user enters email address- Works Fine
User enters a question- This is were the problem occurs when
the users presses the Enter key. This seems to bring up a message
that says Invalid Input.
Does anyone know how i can allow people to use the Enter key
in my forms to skip lines without causing this error message?
Any help would be appreciated.
Feel free to use the form to test it out.
Thanks.
Here is my php code for the form.
<?
function checkOK($field)
if (eregi("\r",$field) || eregi("\n",$field)){
die("Invalid Input!");
$Name=$_POST['Name'];
checkOK($Name);
$Email=$_POST['Email'];
checkOK($Email);
$Question=$_POST['Question'];
checkOK($Question);
$to="[email protected]";
$message="
A Quick Enquiry has been submitted from
www.Party-Invitation.co.uk
Here are the details:
Name: $Name
Email: $Email
Question: $Question
if(mail($to,"Quick Enquiry: $Email $Name" ,$message,"From:
$email\n")) {
echo "";
} else {
echo; "There was a problem sending the mail. Please check
that you filled in the form correctly.";
?>.oO(stuckinthesystem)
> Here is my php code for the form.
> <?
This should be <?php for portability reasons. Short open
tags are an
optional feature and can be disabled.
> function checkOK($field)
> {
> if (eregi("\r",$field) || eregi("\n",$field)){
The old ereg_* functions should not be used anymore. Better
would be
something like
if (preg_match("/[\n\r]/", $field)) {...}
> $Name=$_POST['Name'];
> checkOK($Name);
> $Email=$_POST['Email'];
> checkOK($Email);
> $Question=$_POST['Question'];
> checkOK($Question);
The last check causes the error if the user enters multiple
lines in the
text area. You can remove that check, because line breaks in
the email
body are safe.
> if(mail($to,"Quick Enquiry: $Email $Name"
,$message,"From: $email\n")) {
> echo "";
There's a typo in the last parameter. Variable names in PHP
are
case-sensitive, so $Email != $email. You should set
error_reporting to
E_ALL in your php.ini, so PHP will let you know about such
errors.
Micha -
When i type in my correct password on the login screen and press enter it just goes to a blue screen for a few seconds then goes back to the same login screen again, please i need help?
You can take some of the steps here, #4, #5 or even trying a #18
Step by Step to fix your Mac
but I suspect your going to first have to create a data recovery drive
Create a data recovery, undelete boot drive
to get your data off the machine,
then do a #20 to eliminate the bad sectors as that's why your getting the "pinwheel" it's getting a delay reading from the drive, right when your trying to log in too, what a bad spot for it to happen.
Step by Step to fix your Mac -
Strange behavior when pressing ENTER in a form page
Hi there
Please go to the address:
http://apex.oracle.com/pls/otn/f?p=20104:4
If you click the Create button, enter anything in the Name field and press ENTER while in the field, you will be taken back to the main page, the message Action Processed will be displayed, but no data will be inserted. If you click on the Create button though, it works fine.
Have anyone seen this? Any explanation for it? How to fix it? I could not find any reason for this behavior (the Name field is NOT an always submit page when enter pressed field type).
(btw the two pages are very simple, based on wizards without any customisation)
Thanks
Luisi guess, trying the input form, the input text field for Name is an item 'textfield submit on enter'. But what happens is that when enter is pressed no additionally submit information is send, which is the case with buttons. Buttons call the doSubmit('<BUTTONNAME>') javascript function on click, allowing the process to run when thee are set conditionally.
Carl's answer by setting the process unconditional will also result this action will take place when another buton (without direct redirect) will fire this.).
So additionally when multple buttons and processes some new javascript kan be used to do the right submit on Enter. Example:
In Page header, or shared javascript import file create a JS function submitOnEnter
function submitOnEnter(submit,e){
var keycode;
if (window.event) keycode = window.event.keyCode;
else if (e) keycode = e.which;
else return true;
if (keycode == 13){
doSubmit(submit);
return false;
}else{
return true;
Then with you're item you define the js-event onKeyPress to call the function submitOnEnter
onkeypress="javascript:return submitOnEnter('CREATE',event);" -
How to submit a form by pressing enter key
Hi,
I'm having a problem..............i have a form having text field and a button created using struts html tags..........when user enters the value and presses the button then the value is being taken...........
but if the user enters the data and just presses enter key the form refreshaes but value is not submitted.............
the button is created using <html:submit >tag.............can any one pls help me out with this???????????<script language="JavaScript">
<!--
var isNav, isIE
if (parseInt(navigator.appVersion) >= 4) {
if (navigator.appName == "Netscape")
isNav = true
else
isIE = true
function showKeyValue(evt) {
var keyValue
if (isNav)
keyValue = evt.which
else
keyValue = window.event.keyCode
/*status = keyValue*/
if (keyValue == 13) {
javascript:validateForm();
return false
</script>
in the field call this method
onKeyPress="showKeyValue(event)" -
After I type in my login details and press "enter" on a website, Firefox freezes for around half minute. This has gone on for around 5 months. I've tried disabling add-ons to my Firefox but they don't seem to affect this problem. My version is 17.0.1.
How do I combat this problem? Many thanks in advance.Provide the website name.
'''Try the Firefox Safe Mode''' to see how it works there. The Safe Mode is a troubleshooting mode, which disables most add-ons.''
''(If you're not using it, switch to the Default theme.)''
* You can open the Firefox 4.0+ Safe Mode by holding the '''Shift''' key when you use the Firefox desktop or Start menu shortcut.
* Or use the Help menu item and click on the '''Restart with Add-ons Disabled...''' menu item while Firefox is running.
''Don't select anything right now, just use "'Start in Safe Mode"''
''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before using the Firefox shortcut (without the Shift key) to open it again.''
'''''If it is good in the Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one.
Please follow the [[Troubleshooting extensions and themes]] article for that.
''When you figure out what's causing your issues, please let us know. It might help other users who have the same problem.'' -
BUG:Pressing Enter in Form gives no data found
Hello,
The accept procedure which is the generic
handler for the forms needs to know the form
id, and other parameter that are set by the
doevent javascript function, invoked when a button is clicked. Instead of clicking the button(s), if user presses enter, the accept procedure will not know which form to instantiate as a result it throws a no data found error.
Possible solution:
1. Adding javascript to cancel keypress by using the keypress event. Does not work.
2. Form level javascript to detect keypresses. For this you need to allow us to access the <HEAD></HEAD> in the form. We need to add javascvript which detects the type of browser and modifies the keypress detection accordingly.
there are a couple of more waysHi SYR,
Pick Slip report gives you out put as NO DATA FOUND, is basically, bcos there has not been any picking of the item, reason may be,
1. Qty avaialble wont be reservable and transactable
Check in Inventory> On handqty > click availibility tab
And see whether the item is available to transact & reserve.
If you have enought qty thn you shld be able to pick release tht item.
2. Check which sub inventory are you using while pick release, is it the same as where the item is kept.
Try this out.
This may help.
Thanks
Manoj -
Pressing Enter key twice should submit the form
I am trying to enter the chinese characters in the text box, chinese chracters will become a whole word only when we press the Enter key. But after entering a chinese character , if I press the enter key then the form got submitted. Instead the form should get submitted only when we press Enter key for the second time.
Is it possible with Javascript?karthi23 wrote:
I am trying to enter the chinese characters in the text box ...Where? An Java application? Your browser?
Is it possible with Javascript?This is a Java forum. JavaScript and Java are two completely different things. You better find a JavaScript forum to ask this question. -
PROBLEM to give condition in ADF table column and on pressing enter
Hi,
1st problem:
========
I have 1 ADF input text ,
<af:inputText id="testinp"
contentStyle="width:200px"
value="#{adfobj.input1}"
/>
say user is trying to enter any value , immediately if user presses "ENTER KEY" inside input text only i should invoke managed bean method
say,
Test.java
======
public void getData(){
2) im trying to display an ADF table,
ADFStandardsLeftMenu=in faces config this name points to "ADFStandardsLeftMenu.java" bean
mostCommonAgencySelectedList=of type arraylist which is present inside this bean
this list obj holds 1 "StandardURLData.java" bean object
accreditedagencyStdSelectedList.add(new StandardURLData("test col"));
public class StandardURLData{
private String stdName;
public StandardURLData(String stdName){
this.stdName=stdName;
<af:table value="#{ADFStandardsLeftMenu.mostCommonAgencySelectedList}"
id="t1" width="100%" var="stdURL"
emptyText="<html><b><font color='red'><center>No Records Found</center></font></center></b></html>"
inlineStyle="height:500px;">
<af:column sortable="false" headerText="STANDARD NAME" align="start" id="c1" width="220px"
inlineStyle="font-weight:bold;">
<af:goLink text="#{stdURL.stdName}"
id="sub_pt_gl1"
destination="#{stdURL.viewerLink}"/>
</af:column>
<af:column sortable="false" headerText="FILE NAME" align="start" id="c3" width="220px">
<af:goLink text="#{stdURL.fileName}"
id="sub_pt_gl3"
destination="#{stdURL.viewerLink}"/>
<af:outputText value="#{stdURL.fileName}"/>
</af:column>
</af:table>
im able to print all the values......
but i want to include 1 condition in go link,
like ,
if "fileName" value (2nd column data) is null or "" (string in StandardURLData bean)
i should not give hyperlink in 1st column "stdName" column
i.e.
(text: stdname should not come in hyperlink)
<af:goLink text="#{stdURL.stdName}"
id="sub_pt_gl1"
destination="#{stdURL.viewerLink}"/>
could anyone tell me how to give these conditions in adf table.
in managed bean even if we check it will be prob while generating cols in table
thanks in adv
regards,
sandeepHi,
If u know the employees who can change the values in other boxes, then follow the below procedure,
In PBO,
if employees can change, (EMP = '....')
loop at screen.
if screen-name = 'Name for the input field'.
screen-input = 1 .
modify screen.
endloop.
else.
loop at screen.
if screen-name = 'Name for the input field'.
screen-input = 0 .
modify screen.
endloop.
endif .
If u r not still clear, Mention ur problem with example
Regards,
Prem Karthick -
Disable sending HTML-Form when pressing Enter from Web Transaction
Hi,
I have a web transaction and the corresponding HTML Template.
In the template I have a form with input fields and a submit button.
<FORM METHOD="post" ACTION="`wgateurl()`">
<TD><INPUT TYPE="text" NAME="GWA_HEAD-PROFIT_CENTER" VALUE="`GWA_HEAD-PROFIT_CENTER`></TD>
<TD><INPUT TYPE="submit" NAME="~okcode=APPR" VALUE="`#approve`"></TD>
</FORM>
My problem:
When entering a value in the input fields and pressing enter the form is submitted.
Is it possible to disable this way of submitting? I wan't only submit when clicking on the submit button.
Could Javascript be a solution? But I don't want to check if all input fields are filled with onSubmit. Is there another way?
Thanks for your help!Hi Chris,
your link is not available now.
Could you please explain how to fix this issue?
Thanks in advance.
GB -
ADF Form no longer functioning after being wrapped in layouts.
JDeveloper 11.1.1.0.1 + ADF BC + ADF RC
I had an ADF panelFormLayout that was functioning perfectly until I wrapped it in a panelSplitter and wrapped the panelSplitter in a panelStretchLayout.
Now, when I query the correct results are initially displayed, but when I press the Next button, certain inputTexts don't change to display the correct values.
Some of them change to reflect the current values in the iterator (those with partialTriggers), but most simply continue to display the values of the first record returned. The Previous button doesn't seem to work at all anymore.
What am I missing here? Why would wrapping the panelFormLayout in other layouts cause this behavior?
Thanks All!Heres the steps to create:
- New > Application
- New > 'Business Components From Tables' and make BCs for Employees and Departments
- Edit EmployeesView to include where clause "WHERE Employees.LAST_NAME LIKE :last, and create String bind variable for 'last'
- New > JSF JSPX
- Insert PanelSplitterLayout into Form component
- Drag ExecuteWithParams operation from EmployeesView into PanelSplitterLayout 'Second' facet as ADF Parameter Form
- Drag EmployeesView from Data Controls as ADF Form with navigation buttons under ExecuteWithParams parameter form.
- Set disabled=true for EmployeeId, FirstName, and LastName inputTexts in ADF Form
- Drag DepartmentsView from DataControls into PanelSplitterLayout 'First' facet as ADF Tree, creating a two level tree: Department Name > Employees First and Last Name
To produce the problem once running:
- Enter '%' into the text box for the bind variable 'last', and click ExecuteWithParams button
- You will see the next button does nothing
- If you click ExecuteWithParams button again, everything starts to work again.
Much thanks.
Edited by: Alexander Pepper on Feb 4, 2009 7:51 AM -
JButton actionPerformed by pressing enter
hi all
i have my little form when my users have to insert userName and password
i'd like that they can start the login method only by pressing enter, not by pressing my jbutton
any advice?
thanx
sandroThe solution involves setDefaultButton(..), but its not quite that simple. Check out this thread:
http://forum.java.sun.com/thread.jsp?forum=57&thread=288909 -
Issue while reflecting the data to ADF form from ADF Table
Hi All,
I have one scenario as follows:
I have to open a form in entry mode. So I have used a Method Call activity in task flow to call "Create" in method call activity.
Then form opens in a entry mode. I have a adf table in the page showing the entered data.
When form opens in entry mode, instead of entering the values in the field User selects a record in ADF table, but due to the create mode of the form it will through me a error to fill mandatory fields.
Please tell me the way so that if user selects the record(in adf table) instead of entering new record, the value would reflect in the Adf form.
If I use a roll back on selecting the row of ADF table, then it is showing me this error "Row currency has changed since the user interface was rendered. The expected row key was oracle.jbo.Key[null ]" because there will be no row key in the cache when form opens.
Please suggest me the way to complete the task.
I am using jdeveloper 11.1.2.1.0
Thanks,
Gobi
Edited by: gobinkl on Oct 3, 2012 2:06 AMno no your are complicating yourself. :) better your should provide your usecase.
first thing: go through the books & also adf blogs learn and understand the framework. as above person said.
i hope that you had method call create as activity as default while page rendering it make your af: form empty(that is ready fir insertion format).
so if your are doing like that.am sure it will throw some mandatory errors.
error will not resolve unless without entering any data's.
coming af:table why are using af:table - immediate = true / false(switching).
immediate = true - skip over validation or by pass some validation in some phase - based on the component which you are using. (say as if you are using editable value holder,af:coomand button).
grab the information here in an more legible manner.
http://adfpractice-fedor.blogspot.in/2012/02/understanding-immediate-attribute.html
let me know your usecase.
this will assist you
https://blogs.oracle.com/shay/entry/executing_an_action_on_jsf_pag
http://tanveeroracle.blogspot.in/2009/09/adf-11g-createinsert-to-display-blank.html
Edited by: user707 on Oct 5, 2012 9:02 AM -
How can i display the values in a table when i press enter
hi,
I have three text boxes and a table with three columns in a jsp page.When i keyin some values in the text boxes and press Enter these values should be dispalyed in the three columns of the table.When once again if i key in the text boxes with some other values these values should also be displayed in the table columns in another row.Can it be done.Pls help me.Hoping for a reply.
Thanks
Naveenhi
just go through the Code below:
this helps you but this works in IE only.
<html>
<head>
<script language="javascript">
<!--
function show(frm) {
Show.innerText = frm.desc.value;
} // closing the function show()
//-->
</script>
</head>
<form name="testform">
<textarea name="desc" rows="3" cols="20"></textarea>
<input type="button" name="buttsub" value="Submit" onClick="javascript:show(this.form)">
<br>
<table width="500">
<tr><td bgcolor="#e6e6e6">
<div id="Show"> </div>
</td>
</tr>
</table>
</form>
</html>
Cheers
rambee -
"Check Box" in ADF Form is not Working in JDev11.1.1.2
11gR1 :
I created an ADF Form in a JSF Page and I deleted one column and draged the same column again as an "ADF selectBooleanCheckbox "
and in Edit Boolean Binding Dialog : I entered the value selected as 'True' and unselected value as 'False'
and when I run the Page the data did not Synchronize with the chech box item.
Note :- although the check box Item is working with Adf Table in example #145 at link http://blogs.oracle.com/smuenchadf
can anybody help me?
regards
ForakoraHi,
just tried and found out that you have to set partial triggers for the af:selectBooleanCheckbox like:
<af:selectBooleanCheckbox value="#{bindings.Deptno.inputValue}"
label="#{bindings.Deptno.label}"
shortDesc="#{bindings.Deptno.hints.tooltip}"
id="sbc1" partialTriggers="cb1 cb2"/>
<af:commandButton actionListener="#{bindings.Next.execute}"
text="Next" partialSubmit="true" id="cb1"/>
<af:commandButton actionListener="#{bindings.Previous.execute}"
text="Previous" partialSubmit="true" id="cb2"/>regards,
Branislav
Maybe you are looking for
-
I am just about giving up! I have upgraded Pages to 0.9 (4.3). Now when I copy text from an incoming email and paste it into Pages it pastes in as an Object and I can't work on it. It has a border round it and corner markers. I have never had thi
-
Essbase optimalization issue, slow
Hi everyone, I have made a Planning application which has some larger forms which take over 4 min to open, which could be okay, but what puzzles me is that the Essbase server is not using any system resources when the forms are retrieved. CPU load go
-
Poor JPEG Quality in 6303i Classic
Is there any way to change the JPEG quality ratio in 6303i Classic. The 3.2 MP camera's excellent details are totally lost due to lossy JPEG compression (the phone, by default, saves with 60% quality ratio) Or is there any other way to retain the qua
-
Is anyone else experiencing the problem of searching for emails and each email is duplicated in the search bar?
-
Hi, I'm currently testing OWB to see if it's a worth it ETL tool. So far, my biggest concern is about target modeling. I know I can transfert data into tables (to keep a 3NF model ??) or into dimension/fact (star schema). My question is, Is it possib