YNH Webdev
9f40c6355c
First working checkbox list
2013-09-06 14:22:23 +02:00
YNH Webdev
0fcb80aa29
Merge branch 'widget' of github.com:souvarin/EWF into widget
2013-09-06 12:29:14 +02:00
Severin Münger
59a12dcac1
Added checkbox list, modified form validation
2013-09-06 01:20:41 +02:00
YNH Webdev
0c265f4f78
Fix form and textarea bug
2013-09-05 17:43:46 +02:00
YNH Webdev
225f821206
Test the new controls
2013-09-05 17:18:46 +02:00
YNH Webdev
ad15ab13c5
Fix render function
2013-09-05 16:53:05 +02:00
Severin Münger
3b2ad80dc3
Added TextArea
2013-09-03 03:53:01 +02:00
Severin Münger
16c89180d2
Added generalized input control similiar to text
2013-09-02 03:44:30 +02:00
YNH Webdev
bc6b4f90c3
Only send changes back to client
2013-08-29 18:31:57 +02:00
YNH Webdev
e186475a81
Clean up code
...
Simplify event
2013-08-28 19:43:44 +02:00
YNH Webdev
595d0c501a
Only callback if there is an event attached
2013-08-28 15:57:16 +02:00
YNH Webdev
b7ab840d71
Communication in both directions (Text control)
...
Code regrouping
2013-08-28 12:52:09 +02:00
YNH Webdev
b72e6871e8
Fix multi control
...
Use multi control in example
2013-08-28 11:04:54 +02:00
YNH Webdev
f14ea29636
Comment and reformat coffee script file
2013-08-28 00:34:25 +02:00
YNH Webdev
cb7f1f0ee3
First working callback
2013-08-28 00:04:42 +02:00
Severin Münger
ab7ee8e4c3
Created first working sample page application.
2013-08-27 16:48:20 +02:00
YNH Webdev
c224bf1bb1
Test
2013-08-27 13:53:34 +02:00
Severin Münger
b5b71a3db0
Created widget-project testapp project.
2013-08-27 13:48:44 +02:00
2651171294
Extracted the policy driven classes into their own library for now "wsf_policy_driven.ecf"
...
Updated the restbucksCRUD example to demonstrate both approaches.
2013-08-20 17:27:57 +02:00
Colin Adams
3ae898476f
Changed age to max_age
2013-08-16 04:50:48 +01:00
Colin Adams
275c26b55b
Further use of constants for execution variables
2013-08-14 09:22:35 +01:00
Colin Adams
2ed362f5d3
refactored to allow etags to work properly when multiple representations are available
2013-08-12 09:27:00 +01:00
Colin Adams
3249c377f1
made deleted into an effective routine
2013-08-08 07:31:43 +01:00
Colin Adams
69da6c6d06
Fixes as picked up by code review
2013-08-07 11:03:22 +01:00
Colin Adams
277eb0b4b6
restbucksCRUD example changed to use policy-driven framework
2013-08-06 15:01:24 +01:00
8040dd5826
Ensured that EWF compiles with 7.2
...
(note about ecf version
1-10-0 void_safety="all" <--> 1-11-0 void_safety="transitional"
1-10-0 void_safety="all" <--- 1-11-1 void_safety="all"
)
2013-06-28 11:06:35 +02:00
218e73945d
Updated ecf file as workaround to make autotest works fine.
2013-06-17 12:03:46 +02:00
cc4ef1a575
Better support for unicode path and values.
...
Added WSF_REQUEST.percent_encoded_path_info: READABLE_STRING_8
to keep url encoded path info, as it is useful for specific component
The router is now using WSF_REQUEST.percent_encoded_path_info
since URI_TEMPLATE are handling URI (and not IRI)
this fixes an issue with unicode path parameters.
This should not break existing code, and this fixes various unicode related issues related
to PATH parameter and path info
but also any component using file names.
(required EiffelStudio >= 7.2)
2013-06-12 18:03:11 +02:00
fbbd1f1eee
Fixed various void-safety issue with recent compilers.
...
Note that EWF does now require EiffelStudio 7.2, and is compiling with 7.3
2013-06-07 15:40:50 +02:00
Olivier Ligot
35729b4ab6
Use port number 9090 instead of 80
...
Port 80 is often already used by standard webservers (Apache, nginx, ...).
Moreover, on Linux, ports below 1024 can only be opened by root.
2013-05-27 09:15:12 +02:00
Jocelyn Fiat
01cab452d8
Removed WSF_URI_*_ROUTER_HELPER and use instead the WSF_URI_*_HELPER_FOR_ROUTED_SERVICE
...
(the removed class were not in latest release, so this is safe to use the new name)
Cosmetic
2013-03-27 17:00:58 +01:00
Colin Adams
4875ca9ff1
now all-safe.ecf compiles again
2013-03-27 14:44:14 +00:00
Colin Adams
a74fcd0575
delete ecf
2013-03-27 14:37:56 +00:00
Jocelyn Fiat
178a48cd7e
Updated all-safe.ecf
...
(add all-stable-safe.ecf that includes only the library, examples and specific draft lib)
2013-03-27 15:22:32 +01:00
Colin Adams
f11dbd9080
fix merge conflict from master
2013-03-21 15:55:14 +00:00
Jocelyn Fiat
3f237c737d
mimic design of WSF_ROUTED_SERVICE for WSF_FILTERED_SERVICE
...
and update the filter example to make it simpler and reuse code.
2013-03-19 22:00:25 +01:00
Jocelyn Fiat
b629bba5cc
WSF_CORS_OPTIONS_FILTER should not inherit from WSF_URI_TEMPLATE_HANDLER
2013-03-19 17:09:18 +01:00
Jocelyn Fiat
3faa2ab815
Moved all *_CONTEXT_* router related classes into wsf_router_context.ecf library
...
This makes wsf simpler to discover.
And advanced context enabled handler, mapping, ... are still available for now in wsf_router_context.ecf library
2013-03-19 11:54:01 +01:00
Colin Adams
7435b4f454
refactored for WSF_ROUTED_SKELETON_SERVICE
2013-03-18 14:45:04 +00:00
Colin Adams
d56f4e6c7d
prior to refactoring for WSF_ROUTED_SKELETON_SERVICE
2013-03-18 14:21:53 +00:00
Colin Adams
d01f47f1ee
Implemented 414 and 503 responses on WSF_ROUTED_SERVICE
2013-03-16 15:12:58 +00:00
Olivier Ligot
c8845e7354
Fix indentation
2013-03-15 14:18:13 +01:00
Olivier Ligot
69495e69a9
Filter example: remove unused libraries in ecf file
2013-03-15 13:44:24 +01:00
Olivier Ligot
496b831956
Merge remote-tracking branch 'jocelyn/flexible_response' into cors
...
Conflicts:
examples/filter/filter-safe.ecf
examples/filter/src/filter_server.e
library/network/protocol/http/src/http_header.e
library/server/wsf/src/wsf_response.e
2013-03-15 13:33:13 +01:00
Jocelyn Fiat
56df2b085e
Fixing global EWF compilation
2013-01-31 16:21:16 +01:00
Jocelyn Fiat
a5c9329ada
Fixing global EWF compilation
2013-01-31 16:20:38 +01:00
Jocelyn Fiat
860959879c
Removed eel and eapml contrib/library from EWF
...
Since there are available from $ISE_LIBRARY
2013-01-23 18:13:22 +01:00
Jocelyn Fiat
393a4fc1bf
Removed useless dependencies on other lib.
2013-01-23 16:22:03 +01:00
Jocelyn Fiat
d1873d9645
Merge pull request #26 from oligot/no-context
...
Use execution_variable instead of context
2013-01-23 02:00:38 -08:00
Olivier Ligot
10c02219e3
Use execution_variable instead of context
...
This is mainly to be compatibe with other classes API.
In a lot of classes, we define methods like this:
```Eiffel
method (req: WSF_REQUEST; res: WSF_RESPONSE)
do
...
end
```
With the context, the signature becomes:
```Eiffel
method (ctx: C; req: WSF_REQUEST; res: WSF_RESPONSE)
do
...
end
```
So, I can't build a filter chain where one filter is with context
and one is without context (I can't call
WSF_FILTER.set_next (a_next: WSF_FILTER) with a filter that is a
descendant of WSF_CONTEXT_HANDLER).
Moreover, having to play with generic types just to pass some
data from one filter to another is a bit overkill imho.
Because this is really what I use contexts for:
to pass data from one filter to the next one.
Regarding execution_variable and strong typing, if we want to achieve these,
I realize we could write a class with one getter and one setter like this:
```Eiffel
class
TYPED_DATA
feature -- Access
user (req: WSF_REQUEST): detachable USER
do
if attached {USER} req.execution_variable ("user") as l_user then
Result := l_user
end
end
feature -- Element change
set_user (req: WSF_REQUEST; a_user: USER)
do
req.set_execution_variable ("user", a_user)
end
```
Now, I realize this is a major change since the last time we talked about this,
but at the end, after having played with both, I prefer the one with
execution_variable.
2013-01-23 10:20:03 +01:00