Skip to content

Commit

Permalink
CRANK-44
Browse files Browse the repository at this point in the history
  • Loading branch information
RichardHightower authored and RichardHightower committed Jan 23, 2008
1 parent 9d28b86 commit 469f01d
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ public void setEmployeesController(JsfDetailController employeesController) {
this.employeesController = employeesController;
}

public void sayHello() {
FacesContext.getCurrentInstance().addMessage(null, new FacesMessage("Hello Task " +
FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap().get("id")
));
}

@SuppressWarnings("unchecked")
public void hello() {
List<Employee> list = employeesController.getSelectedEntities();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
propertyNames="firstName,lastName,active,dob,age,numberOfPromotions"
parentForm="departmentForm"
>

<crank:selectOneListing jsfSelectOneController="${employeeToSkillController}"
propertyNames="name"
parentForm="departmentForm"
Expand All @@ -40,8 +40,6 @@
parentForm="departmentForm"
/>



</crank:detailListing>
<a4j:commandLink action="#{hello.hello}" value="Say hello"/>
</crank:form>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,21 @@
detailController="${directReportDetailController}" enableGroups=""
propertyNames="firstName,lastName,description,age,numberOfPromotions" />

<crank:detailListing detailController="${taskDetailController}"
enableGroups=""
formPropertyNames="name,category,startDate,endDate,complete"
propertyNames="name,category.name,startDate,endDate,complete" />
<crank:detailListing detailController="${taskDetailController}"
enableGroups=""
formPropertyNames="name,category,startDate,endDate,complete"
propertyNames="name,category.name,startDate,endDate,complete"
useFormBody="${true}">

<h:outputText value="Hello World!" />
<!--
<a4j:commandLink
action="#{hello.sayHello}" value="hello" >
<f:param name="id" value="${row.id}" />
</a4j:commandLink>
-->

</crank:detailListing>

<crank:detailListing detailController="${contactDetailController}"
enableGroups="" propertyNames="name,phone" />
Expand Down

0 comments on commit 469f01d

Please sign in to comment.