Posts

jaxb - Empty uri in rest response -

i developing plugin nexus oss .my app creates rest call response(to request server) . when server receives , throws error follows javax.xml.bind.unmarshalexception: unexpected element (uri:"", local:"com.collabnet.teamforge.ia.types.getconfigurationparametersresponse"). expected elements \lt{http://www.collab.net/teamforge/integratedapp}createprojectconfigurationrequest\gt, \lt{http://www.collab.net/teamforge/integratedapp}getconfigurationparametersrequest\gt, \lt{http://www.collab.net/teamforge/integratedapp}getconfigurationparametersresponse\gt, \lt{http://www.collab.net/teamforge/integratedapp}getpagecomponentparametersrequest> i guess reason behind exception response doesn't match expected because uri ( guess , if it's wrong please correct me),that namespace in response not set . snip of code in plugin follows @xmlaccessortype(xmlaccesstype.field) @xmltype(name = "", proporder = { "configurationparameter" }) @x...

python - As Django databrowse is deprecated in django 1.4, is there a better way for databrowsing? -

from this question , know django.contrib.databrowse unable set custom queryset (like filter in django.admin). think way of databrowse inspect model , create inline table automatically awesome (in django.admin, i'll have write own tabularinline class each model manually, quite suffering). my question is: django databrowse deprecated in django 1.4, there better way(for example, databrowse library) same task? and recommended use django admin or django databrowse make web interface users browse data? here's same app else adopted since deprecation django: https://github.com/alir3z4/django-databrowse it's available on pypi too;)

SugarCRM - Will workflow works during importing of files? -

i ask if there relationship between workflow , importing of files. for example, execution of workflow occurs when record saved, , applies updated records. , action update field on target module if specific field changed. example, field updated yes if field b changed. so works well, when manually saved module after updating field b. how during importing? workflow still matter? provided conditions met. i hope me on this. need update our ts if there's need hard coding support this. actually have posted on sugar forums. :d thanks much! workflows triggered before_save logic hook. logic hooks triggered anytime save() function called creating records via import process calls the save() function. so, yes, importing records trigger workflows.

unable to set hidden field content from div html content on fullscreen iPad Mobile Safari -

thanks spending time read this i have form call js function copy html content of div hidden form field can submit form. works fine on desktop webkit broswers , on mobile safari on ipad. when run application in fullscreen mode (by saving shortcut on home screen), not work. here's code js function: function update_script_in()//copies scripts , submits form { $("#script_in").html($("#scriptcontent").html()); $('#resiform').submit(); } form submission: <input type=submit value="submit" onclick="update_script_in()"> thanks help this quite old, after googling around solve same issue me, have not found solution. looks weird behaviour ipad (easily reproducible, no way fix, @ least found): target input field gets changed indeed, posted value original 1 (???) so in case workaround useful somebody, instead of applying changes contenteditable div on form submit, apply changes whenever div changed (no on ...

javascript - how to get size or count the number of properties of an object? -

this question has answer here: how efficiently count number of keys/properties of object in javascript? 15 answers is there method count number of properties (or size) of object (don't want use loop) ? suppose have object obj as, obj={id:'0a12',name:'nishant',phone:'mobile'}; then there method results 3 in case ? object.keys returns array containing names of object's own enumerable properties , so: var count = object.keys(obj).length; note there may loop involved (within object.keys ), @ least it's within javascript engine. object.keys added es5, older browsers may not have (it can "shimmed," though; search "es5 shim" options). note that's not quite same list of properties for-in iterates, for-in includes properties inherited prototype. i don't believe there's way list of ...

android - How can i Handle special kind of exception in doinBackground() method -

i making android app requires fetch information remote server , therefore have make http request in async task.now problem that response take more 2 secs , when give http timeout exception of time works fine .so want implement functionality when recieve http timeout exception want retry request again(try doinbackground again,because network call can made in thread other main thread) because chances successful , things need fetched remote server occur in callremoteserver() method now in program have implemented new asynctask<void, void, void>() { private boolean httpresponseok = true; @override protected void doinbackground(void... params) { try { callremoteserver(); } } catch (exception e) { httpresponseok = false; e.printstacktrace(); } return null; } @override protected v...

ruby on rails - What is Spree Deface::Override :original keyword? -

in spree deface::override :original keyword used ? working on apps not begining , got struck code here: deface::override.new(:virtual_path => "....", :name => "admin_user_acct_sales_row", :insert_bottom => "[data-hook='admin_users_index_rows'], #admin_users_index_rows[data-hook]", :partial => "spree/admin/users/...", :original => "90406d8cbc733e601bb9717b4b5711e43fe181a3", :disabled => false) here :original stands what? thanks. following found in spree/deface readme :original - string containing original markup being overridden. if supplied deface log when original markup changes, helps highlight overrides need attention when upgrading versions of source application. warranted :replace overrides. nb: whitespace stripped before comparison. ...