[root]/trunk/wact/plugins/template/form

| Author | Changes | Lines of Code | Lines per Change |
|---|---|---|---|
| Totals | 29 (100.0%) | 704 (100.0%) | 24.2 |
| norbertmocsnik | 9 (31.0%) | 490 (69.6%) | 54.4 |
| JeffMoore | 20 (69.0%) | 214 (30.4%) | 10.7 |
convert filename case
0 lines of code changed in 6 files:
Added checkbox, radio, select, select multiple and password inputs.
456 lines of code changed in 4 files:
Fixed broken forms. When a custom run-time view is provided for a compile-time form input component, we assume that the tag name is hardcoded into it. Otherwise, the component renders the tag name into the compiled template and the default form element view is used.
3 lines of code changed in 1 file:
renamed:
viewFile to parentViewFile
viewClass to parentViewClass
getRuntimeClassName to getViewClass
7 lines of code changed in 3 files:
Renamed runtimeComponentName to viewClass and runtimeIncludeFile to viewFile.
18 lines of code changed in 3 files:
Major restructuring of the code generation for paint methods.
Split functionality between View template nodes and Inline template nodes.
Nodes that are signaled to have a view analog, no longer have their paint
methods generated. This fixes a variety of subtle bugs.
This change revealed a preexisting bug in the datasource tag.
The wrap tag and the wact:link tags have not been adjusted to the new
heirarchy yet.
4 lines of code changed in 1 file:
Prevent an exception if an endtag isn't specified for a tag that would not
normally have children. The tags that are defined as never having children
are enumerated from the html specification.
1 lines of code changed in 1 file:
Introduced polymorhpic solution for generating constructor signatures.
9 lines of code changed in 3 files:
Moved the initialization of WactTagView and its children from inside the generated child constructors to the actual instantiation in the parent. This is mainly the setting of the $tag and $attributes properties. Examine a compiled template to see it in action.
Funny that we didn't notice that these constructors have never been called because they were overshadowed by the generated ones since wiring in the OOP compiler. This revealed in r558 in trunk/wact/template/compiler/node/view.inc.php by generating parent::construct() with no parameters into the output classes.
Now the WactTagView constructors are called properly which paves the way for well-structured form element view code.
30 lines of code changed in 3 files:
Added WactTextInputView.
1 lines of code changed in 1 file:
Added begining of input tag support.
82 lines of code changed in 1 file:
Added form and textarea template tags along with example.
93 lines of code changed in 2 files: