Sunday 15 June 2014

alloy ui - Is AlloyUI Form Builder Works For Liferay 6.0.5 -



alloy ui - Is AlloyUI Form Builder Works For Liferay 6.0.5 -

is alloyui form builder works liferay 6.0.5. because our site works on liferay 6.0.5 , can't update latest version. have placed code mentioned in alloyui.com. can drag , drop fields can't submit form. there script error in firebug m.loaded[n], didn't understand do.

suggest on this. using below code in liferay 6.0.5 jsp pages

<script src="http://cdn.alloyui.com/3.0.0/aui/aui-min.js"> <link href="http://cdn.alloyui.com/3.0.0/aui-css/css/bootstrap.min.css" rel="stylesheet"></link> <div id="myformbuilder"></div> <script> yui().use( 'aui-form-builder', function(y) { new y.formbuilder( { availablefields: [ { iconclass: 'form-builder-field-icon-text', id: 'firstname1', label: 'first name', readonlyattributes: ['name'], type: 'text', //unique: true, width: 75 }, { iconclass: 'form-builder-field-icon-text', id: 'lastname', label: 'last name', readonlyattributes: ['name'], type: 'text', //unique: true, width: 75 }, { iconclass: 'form-builder-field-icon-text', id: 'preferredname', label: 'preferred name', readonlyattributes: ['name'], type: 'text', //unique: true, width: 75 }, { iconclass: 'form-builder-field-icon-text', id: 'emailaddress', label: 'email address', readonlyattributes: ['name'], type: 'text', //unique: true, width: 75 }, { iconclass: 'form-builder-field-icon-radio', label: 'gender', options: [ { label: 'male', value: 'male' }, { label: 'female', value: 'female' } ], type: 'radio' }, { iconclass: 'form-builder-field-icon-button', label: 'button', type: 'button' }, ], boundingbox: '#myformbuilder', fields: [ { label: 'city', options: [ { label: 'ney york', value: 'new york' }, { label: 'chicago', value: 'chicago' } ], predefinedvalue: 'chicago', type: 'select' }, { label: 'colors', options: [ { label: 'red', value: 'red' }, { label: 'green', value: 'green' }, { label: 'blue', value: 'blue' } ], type: 'radio' } ] } ).render(); } ); </script>

it not possible utilize aui-form-builder in liferay 6.0.

according liferay integration wiki article, liferay 6.0 uses alloyui 1.0.3. after searching source in alloyui 1.0.3 tag, seems aui-form-builder did not exist in version. far can tell api docs, aui-form-builder added in 2.0.x version.

note: not possible upgrade new major version of alloyui in liferay either.

liferay-6 alloy-ui

No comments:

Post a Comment