These forums are currently read-only due to receiving more spam than actual discussion. Sorry.

It is currently Sat Dec 02, 2017 4:05 pm Advanced search

Bind a value in a backing bean (defined by getter's & sette

If you are stuck or have questions regarding HTML or other Web technologies, ask your questions here. No question too dumb!

Bind a value in a backing bean (defined by getter's & sette

Postby ivanradmore » Wed Jul 06, 2011 8:11 am

I am currently involved in developing an Internet Application using Netbeans 7.0 with JSF/Ajax/CSS3/EJB 3.0. I want to bind a value in a backing bean (defined by getter's & setters) to an HTML5 component without using JavaScript.

The following code refers to HTML 5 components and my backing beans that I am using.

<form>
<p><label id="seven" value="#{indexBean.loginResult}"/></p>
<p><label>Username:</label>
<input name="#{indexBean.username}" id="fifth" type="text" required/></p>
<p><label>Display password</label>
<input type="checkbox" id="loginBool"
value="#{indexBean.displayLoginPassword}"/></p>
<p><label></label>
<label id="loginPaswd" value="#{indexBean.loginPassword}"></label>
<p><label>Password:</label>
<input name="#{indexBean.password2}" id="fifth" type="password"
required/></p>
<button onclick="{indexBean.confirmUser}">Login</button>
<button action="#{indexBean.confirmUser}">Resend password</button>
</form>
ivanradmore
<h6>
 
Posts: 1
Joined: Wed Jul 06, 2011 8:00 am

Return to Help & Advice

Who is online

Users browsing this forum: No registered users and 0 guests