I have a script that gives automatic address
<script src="${facesContext.externalContext.requestContextPath}/js/jquery.geocomplete.js"> </ script>
<script>
$ (function () {
$ ("# geocomplete " ) . geocomplete ( {
map: , " Give us feedback . "
details " form ul "
detailsAttribute " geo - data "
} ) ;
} ) ;
and the jsf part here is the code!
<h:inputText id="geocomplete" style="margin-left:34%" type="text" value="#{creerCompteFacade.adresse}" />
but the problem that gives no automatic address
I changed
<input type="text" id="geocomplete" style="margin-left:34%" value="#{creerCompteFacade.adresse}" />
it works well and gives the automatic address but the problem that I can not retrieve the value
An Error Occurred :
org.hibernate.exception.ConstraintViolationException : Column ' ADDRESS ' can not be null
I tried with JSFC but nothing has changed
<input jsfc="h:inputText" id="geocomplete" style="margin-left:34%"
type="text" value="#{creerCompteFacade.adresse}" />