generators/rx_scaffold/templates/component.mxml.erb in dima-restfulx-1.2.0 vs generators/rx_scaffold/templates/component.mxml.erb in dima-restfulx-1.2.1

- old
+ new

@@ -1,8 +1,8 @@ <?xml version="1.0" encoding="utf-8"?> <mx:HBox xmlns:mx="http://www.adobe.com/2006/mxml" width="100%" label="<%= class_name %>" - xmlns:rcomponents="org.restfulx.components.*"> + xmlns:rx="org.restfulx.components.rx.*"> <mx:Script><![CDATA[ import org.restfulx.Rx; import org.restfulx.utils.RxUtils; import <%= base_package %>.models.<%= class_name %>; <% for model in belongs_tos -%> @@ -119,10 +119,10 @@ <% elsif attribute.type == :string -%> <mx:TextInput id="<%= attribute.flex_name %>TextInput" width="100%" text="{_<%= class_name.dcfirst %>.<%= attribute.flex_name %>}"/> <% elsif attribute.type == :text -%> <mx:TextArea id="<%= attribute.flex_name %>TextArea" width="100%" height="200" text="{_<%= class_name.dcfirst %>.<%= attribute.flex_name %>}"/> <% elsif attribute.type == :datetime || attribute.type == :time -%> - <rcomponents:DateTimeTextInput id="<%= attribute.flex_name %>DateTimeTextInput" width="200" date="{_<%= class_name.dcfirst %>.<%= attribute.flex_name %>}"/> + <rx:DateTimeTextInput id="<%= attribute.flex_name %>DateTimeTextInput" width="200" date="{_<%= class_name.dcfirst %>.<%= attribute.flex_name %>}"/> <% elsif attribute.type == :date -%> <mx:DateField id="<%= attribute.flex_name %>DateField" selectedDate="{_<%= class_name.dcfirst %>.<%= attribute.flex_name %>}"/> <% else -%> <mx:TextInput id="<%= attribute.flex_name %>TextInput" width="100%" text="{_<%= class_name.dcfirst %>.<%= attribute.flex_name %>}"/> <% end -%> \ No newline at end of file