Minor changes
- using http_client library instead of libcurl directly - using implicit conversion to JSON_STRING to improve code readability - use ARRAYED_LIST instead of LINKED_LIST .. for performance. - cosmetic .. but still a lot of feature clauses are missing, comments, assertions ...
This commit is contained in:
@@ -8,11 +8,10 @@ class
|
||||
REPEATER_PAGE
|
||||
|
||||
inherit
|
||||
|
||||
BASE_PAGE
|
||||
redefine
|
||||
initialize_controls
|
||||
end
|
||||
redefine
|
||||
initialize_controls
|
||||
end
|
||||
|
||||
create
|
||||
make
|
||||
@@ -22,13 +21,13 @@ feature
|
||||
initialize_controls
|
||||
do
|
||||
Precursor
|
||||
container.add_control (create {WSF_BASIC_CONTROL}.make_with_body("h1","","Repeater Demo"))
|
||||
container.add_control (create {WSF_BASIC_CONTROL}.make_with_body ("h1", ""," Repeater Demo"))
|
||||
create datasource.make_news
|
||||
create search_query.make_autocomplete ("query", create {GOOGLE_AUTOCOMPLETION}.make)
|
||||
search_query.add_class ("form-control")
|
||||
search_query.set_change_event (agent change_query)
|
||||
container.add_control (search_query)
|
||||
container.add_control (create {WSF_BASIC_CONTROL}.make_with_body("h2","","Results"))
|
||||
container.add_control (create {WSF_BASIC_CONTROL}.make_with_body("h2", "", "Results"))
|
||||
create repeater.make_repeater ("myrepeater", datasource)
|
||||
container.add_control (repeater)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user