This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .box { background-color: lightblue; padding: 11px 10px 11px 38px; margin: 0 0 0 0; text-decoration: none; border-radius: 3px; -moz-border-radius: 3px; -webkit-border-radius: 3px; } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .box { | |
| background-color: lightblue; | |
| padding: 11px 10px 11px 38px; | |
| margin: 0 0 0 0; | |
| text-decoration: none; | |
| border-radius: 3px; | |
| -moz-border-radius: 3px; | |
| -webkit-border-radius: 3px; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [INFO] :web:war:1.0-SNAPSHOT | |
| [INFO] +- :services:jar:1.0-SNAPSHOT:compile | |
| [INFO] | \- core:core:jar:1.1-SNAPSHOT:compile | |
| [INFO] | +- com.sun.faces:jsf-api:jar:2.2.4:compile | |
| [INFO] | +- com.sun.faces:jsf-impl:jar:2.2.4:compile | |
| [INFO] | +- javax.validation:validation-api:jar:1.1.0.Final:compile | |
| [INFO] | +- org.hibernate:hibernate-validator:jar:4.3.1.Final:compile | |
| [INFO] | +- javax.servlet:javax.servlet-api:jar:3.0.1:compile | |
| [INFO] | +- javax.servlet:jstl:jar:1.2:compile | |
| [INFO] | +- org.primefaces.extensions:primefaces-extensions:jar:1.0.0:compile |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| In section 2 of the documentation (http://www.primefaces.org/documentation.html), it shows how you can define the primefaces repository in your maven pom.xml (or ~/.m2/settings.xml): | |
| <repository> | |
| <id>prime-repo</id> | |
| <name>Prime Repo</name> | |
| <url>http://repository.primefaces.org</url> | |
| </repository> | |
| If you are using maven in an organisation you would be better off setting up a repository manager such as NEXUS and configuring that with the primefaces repository. Then, your developers just configure this nexus repository as a mirror of everything in their ~/.m2/settings.xml and everything is transparent. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| The facelets code uses the id "state" | |
| <p:selectOneMenu id="state" value="#{myBean.state}"> | |
| ... | |
| </p:selectOneMenu> | |
| */ | |
| // sample invocation to select element |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <div id="myForm:state" class="ui-selectonemenu ui-widget ui-state-default ui-corner-all ui-helper-clearfix" style="width: 147px;"> | |
| <div class="ui-helper-hidden"> | |
| <select id="myForm:state_input" name="myForm:state_input"> | |
| <option value="">- Select One -</option> | |
| <option value="Enabled">Enabled</option> | |
| <option value="Disabled">Disabled</option> | |
| </select> | |
| </div> | |
| <div class="ui-helper-hidden-accessible"> | |
| <input id="myForm:state_focus" name="myForm:state_focus" type="text"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import net.thucydides.core.pages.PageObject; | |
| import org.apache.commons.lang3.StringUtils; | |
| import org.openqa.selenium.By; | |
| import org.openqa.selenium.WebDriver; | |
| public abstract class AbstractPage extends PageObject { | |
| public AbstractPage(WebDriver driver) { | |
| super(driver); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <p:row> | |
| <p:column> | |
| <p:outputLabel value="Date"/> | |
| </p:column> | |
| <p:column> | |
| <p:calendar pattern="dd/MMM/yyyy" navigator="true" showButtonPanel="true" | |
| converter="#{dateMidnightConverter}" | |
| value="#{myBean.selected.date}"/> | |
| </p:column> | |
| </p:row> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import org.apache.commons.lang.StringUtils; | |
| import org.joda.time.DateMidnight; | |
| import org.joda.time.format.DateTimeFormat; | |
| import org.springframework.stereotype.Component; | |
| import javax.faces.component.UIComponent; | |
| import javax.faces.context.FacesContext; | |
| import javax.faces.convert.Converter; | |
| @Component |