Chcę stworzyć landing page i chcę, aby zapisać dane w mojej bazy danych za pomocą JSF 2.0 i Primefaces 3,5h: inputText - JSF nie czyni zastępczy
Moja strona * .xhtml strona wygląda tak:
Jednakże chcę, aby wyglądał jak mojej stronie HTML:
oprócz CSS mój h: inputText powinien zawierać symbol zastępczy. Mój kod wygląda następująco:
<h:form class="homepage_invitee_form" action="" method="POST">
<h:inputText name="email" placeholder="Email Address"
id="email_address_new" type="text placeholder" />
<br />
<h:inputText name="firstName" placeholder="First Name"
id="firstname_new" type="text placeholder" />
<h:inputText name="lastName" placeholder="Last Name"
id="lastname_new" type="text placeholder" />
<br />
<h:button value="Request Invitation" type="submit" class="btn btn-primary opal_btn"
id="submit_form_new" />
</h:form>
Jak widać, symbol zastępczy nie jest renderowany. Naprawdę doceniam każdy pomysł, jak to zrobić poprawnie.
UPDATE
Moje HTML kod wygląda następująco:
<form class="homepage_invitee_form" action="" method="POST">
<input name="email" placeholder="Email Address" id="email_address_new" type="text placeholder"><br>
<input name="firstName" placeholder="First Name" id="firstname_new" type="text placeholder">
<input name="lastName" placeholder="Last Name" id="lastname_new" type="text placeholder"><br>
<button type="submit" class="btn btn-primary opal_btn" id="submit_form_new">Request Invitation</button>
</form>
Odpowiedź jest tutaj: http://stackoverflow.com/questions/8494264/where-is-the-placeholder-text-going-when-using-jsf-and-inputtext – NeplatnyUdaj