bonjour ,
je veut valider ce formulaire avec java script ,je veut que quant je clic sur le bouton un message d'alert va etre afficher que le champ est vide ,il faut ecrire qq chose ,mercie de m'aider ;
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51 <?xml version='1.0' encoding='windows-1252'?> <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core" xmlns:c="http://java.sun.com/jsp/jstl/core" xmlns:afh="http://xmlns.oracle.com/adf/faces/html" xmlns:af="http://xmlns.oracle.com/adf/faces"> <jsp:output omit-xml-declaration="true" doctype-root-element="HTML" doctype-system="http://www.w3.org/TR/html4/loose.dtd" doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"/> <jsp:directive.page contentType="text/html;charset=windows-1252"/> <f:view> <afh:html binding="#{backing_app_aaaaaauntitled3.html1}" id="html1"> <afh:head title="aaaaaauntitled3" binding="#{backing_app_aaaaaauntitled3.head1}" id="head1"> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"/> <style type="text/css"> body { background-image: url("img0256e.jpg"); } </style> </afh:head> <afh:body binding="#{backing_app_aaaaaauntitled3.body1}" id="body1"> <af:messages binding="#{backing_app_aaaaaauntitled3.messages1}" id="messages1"/> <h:form binding="#{backing_app_aaaaaauntitled3.form1}" id="form1"> <af:panelForm binding="#{backing_app_aaaaaauntitled3.panelForm1}" id="panelForm1"> <af:inputText value="#{bindings.libeleCategorie.inputValue}" label="#{bindings.libeleCategorie.label}" required="#{bindings.libeleCategorie.mandatory}" columns="#{bindings.libeleCategorie.displayWidth}" binding="#{backing_app_aaaaaauntitled3.inputText1}" id="inputText1"> <af:validator binding="#{bindings.libeleCategorie.validator}"/> </af:inputText> <f:facet name="footer"> <af:commandButton text="persistEntity" binding="#{backing_app_aaaaaauntitled3.commandButton1}" id="commandButton1" disabled="#{!bindings.persistEntity.enabled}" action="#{backing_app_aaaaaauntitled3.commandButton1_action}"/> </f:facet> </af:panelForm> </h:form> </afh:body> </afh:html> </f:view> <!--oracle-jdev-comment:auto-binding-backing-bean-name:backing_app_aaaaaauntitled3--> </jsp:root>
Partager