My favorites | Sign in
Project Home Downloads Wiki Issues Source
Checkout   Browse   Changes    
 
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
52
53
54
55
56
57
58
59
60
61
62
63
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<h:html xmlns:h="http://www.w3.org/1999/xhtml"
xmlns="http://www.w3.org/2002/xforms"
xmlns:ev="http://www.w3.org/2001/xml-events" >

<h:head>
<h:title>Borrar Campos</h:title>

<model id="mipersona">
<instance>
<persona xmlns="">
<nombre></nombre>
<apellido></apellido>
<edad></edad>
<domicilio></domicilio>
</persona>
</instance>
</model>

</h:head>
<h:body>

<h:h1>Borrado de campos</h:h1>

<input ref="/persona/nombre">
<label>Persona: </label>
</input>

<h:br/>

<input ref="/persona/apellido">
<label>Apellido: </label>
</input>

<h:br/>

<input ref="/persona/edad">
<label>Edad: </label>
</input>

<h:br/>


<textarea ref="/persona/domicilio">
<label>Domicilio: </label>
</textarea>

<h:br/>

<trigger>
<label>Borrar</label>
<reset ev:event="DOMActivate" model="mipersona"/>
</trigger>

<h:br/><h:br/>
<h:hr/>
Articulo disponible en: <h:a href="http://lineadecodigo.com/2007/11/25/borrado-de-campos-en-xforms/">http://lineadecodigo.com/2007/11/25/borrado-de-campos-en-xforms/</h:a><h:br/>
<h:a href="http://lineadecodigo.com" title="Linea de Codigo">lineadecodigo.com</h:a>


</h:body>
</h:html>

Change log

r23 by vcuervo on Feb 8, 2008   Diff
Subida inicial
Go to: 
Project members, sign in to write a code review

Older revisions

All revisions of this file

File info

Size: 1387 bytes, 63 lines
Powered by Google Project Hosting