Posts

java - javax validation not validating complex object attributes -

i trying validate class using javax.validation.validator. below doing. final set<constraintviolation<paymentdetailsform>> set = validator.validate(accountpaymentdetailsform); my paymentdetailform looks this public class paymentdetailsform { private string paymentid; private string cardtypecode; private boolean newbillingaddress; private addressform billingaddress; private string securitycode; when submitting form validating paymentid,cardtypecode, etc. not validating billingaddress form inside paymentdetailsform. do need give anotation on getbillingaddress() method?

google maps - How can I get value of html element in sap ui5 xml view -

i'm trying google maps api example sap ui5 , following xml view: <html:input id="pac_input" class="controls" type="text" placeholder="enter location" /> <html:div id="type_selector" class="controls"> <html:input type="radio" name="type" id="changetype-all" checked="checked" /> <html:label for="changetype_all">all</html:label> <html:input type="radio" name="type" id="changetype_establishment" /> <html:label for="changetype_establishment">establishments</html:label> <html:input type="radio" name="type" id="changetype_address" /> <html:label for="changetype_address">addresses</html:label> <html:input type="radio" name="type" id=...

Installer created with Wix fails to be installed as system -

i have quite simple installer created wix toolset. users complaints can't deploy installer system user. have user. however, have learned installers can deployed system user. tell me need in wxs file can deploy system user? we typically deploy our msis using microsoft sccm system. use psexec invoke cmd prompt system our dev testing before sending sccm. there 2 reasons installer fail system: 1) user error: can't tell how many times i've seen packages put sccm invalid command line arguments. 1 of favorite quotation marks turned unicode quotation marks via email transmission. logging directory doesn't exist. forgetting tell msi run silently. sits there , hangs. awesome 1 typing msi name wrong. it's awesome because give me sccm log when ask msi log. no msi log means it's not msi's fault. 2) installer design error: have tested silent installs? have custom actions make assumptions user context / environment? 1 of old favorites (not) ...

mysql - Why this database migration error after I upgrade my version django-mptt? -

Image
my django application has requirements.txt file (shown here ) use install modules in virtual environment. works fine. however, i'm trying upgrade django-mptt 0.6.1 latest version. (i don't care upgrade django-mptt. want upgrade version of django. seems upgrade django, must first upgrade django-mptt described here ). pip install -u django-mptt . causes django-mptt go 0.6.1 0.7.4 , django go 1.7.1 1.8.2. , causes django-cache-machine origin master. can see changes in screenshot below. then when manage.py runserver prompts me migrate. that. no problems. subsequently if drop tables , run migrate again, error during migration: django.db.utils.operationalerror: (1005, 'can\'t create table `mydb_instance`.`#sql-21b_1e` (errno: 150 "foreign key constraint incorrectly formed")') full stack trace here . what error? have fact i'm using mariadb (server version: 10.0.15-mariadb homebrew) instead of mysql database? edit: portion below point adde...

html - display tooltip bottom of the button when hover state -

here website link in first row of button,, when hover, tooltip displayed , hidden background image. so need display bottom of button first row. i tried css: .swatch .tooltip, .bullet li .tooltip{ text-align:center; background:gray; color:#fff; bottom:80%; padding-top: 5px; padding-bottom: 5px; padding-left: 0px; padding-right: 0px; display:block; position:absolute; width:100px; left:-23px; margin-bottom:10px; /* make invisible default */ filter:alpha(opacity=0); -khtml-opacity: 0; -moz-opacity: 0; opacity:0; visibility:hidden; /* animations */ -webkit-transform: translatey(10px); -moz-transform: translatey(10px); -ms-transform: translatey(10px); -o-transform: translatey(10px); transform: translatey(10px); -webkit-transition: .25s ease-out; -moz-transition: .25s ease-out; -ms-transition: .25s ease-out; -o-transition: .25s ease-out; transition: .25s ease-out; -webkit-box-shad...

jsf - Ajax call inside dataTable not working -

i trying make ajax call inside jsf datatable on checkobx value change. corresponding backing bean not getting fired. when tried same thing outside datatable, ajax call getting invoked , sop's getting printed. following code <!doctype html public "-//w3c//dtd html 4.01 transitional//en" "http://www.w3.org/tr/html4/loose.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://xmlns.jcp.org/jsf/html" xmlns:f="http://xmlns.jcp.org/jsf/core" > <h:body> <h:head></h:head> <section class="box"> <h:form> <f:event type="prerenderview" listener="#{adminaccounts.getappinfonew()}" /> <div class="row-fluid"> <div class="span7" style=""> <span class="heading">manage accounts</span> </div> ...

c# - No method 'Contains' exists on type 'System.Data.Linq.DataQuery`1[System.Object]' -

i trying build contains expression. private expression<func<t, bool>> contains<t>(string property, ienumerable<dynamic> values, t item) { parameterexpression pe = expression.parameter(item.gettype(), "c"); expression columnnameproperty = expression.property(pe, property); var somevaluecontain = expression.constant(values, values.gettype()); var convertexpression = expression.convert(columnnameproperty, typeof(guid)); expression expression = expression.call(somevaluecontain, "contains", new type[] { }, convertexpression); return expression.lambda<func<t, bool>>(expression, pe); } at run time got exception. "no method 'contains' exists on type 'system.data.linq.dataquery`1[system.object]'." the soultion cast values parameter list private expression<func<t, bool>> contains<t>(string property, ienumerable<dynamic> values, t item) { param...