0
Guys I’m using JAVA, JPA, Primefaces... In my view (xhtml) I have a login screen, how do I pick the name the user typed and write in another inputText field?
0
Guys I’m using JAVA, JPA, Primefaces... In my view (xhtml) I have a login screen, how do I pick the name the user typed and write in another inputText field?
0
If it is at runtime (without reloading the page) it is best to use Jquery:
<script>
jQuery(document).ready(function () {
jQuery('#idCampoOrigem').blur(function () {
jQuery('#idCampoDestino').val(jQuery('#idCampoOrigem').val());
});
});
</script>
Norivan sorry, I didn’t explain 100%,...really changes page yes...=/ I want the text typed in a field and write this text in another field on another screen.
Save the information from the first field to your controller in session scope and take the other screen
Browser other questions tagged java primefaces jpa
You are not signed in. Login or sign up in order to post.
It is not better to use javascript and do this client-side?
– Jéf Bueno
Friend, there are several ways to do it, but it would be interesting for you to post your code so we can give the answer based on what you want.
– Jose Anderson Pereira
See if this helps you: http://answall.com/questions/54037/enviar-e-receber-vari%C3%A1vel-para-outra-p%C3%A1gina
– adventistaam
See if this helps you: http://answall.com/questions/54037/enviar-e-receber-vari%C3%A1vel-para-outra-p%C3%A1gina
– adventistaam
Carlos, I appreciate the link but not set much pq is an inputText, where I sent me the valr is described in the URL mine is not, I just want to take what is in inputText and write in another inputText from another page
– Pedro