-
Notifications
You must be signed in to change notification settings - Fork 531
/
Copy pathadmin_layer.fsh
40 lines (26 loc) · 1.8 KB
/
admin_layer.fsh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
@/* Forge Script - Generates the administration view */;
@/* Clear the screen */;
clear;
@/* This means less typing. If a script is automated, or is not meant to be interactive, use this command */;
set ACCEPT_DEFAULTS true;
@/* Enable scaffolding from entities */;
scaffold setup;
@/* Enable RichFaces for wizzy widgets from entities */;
richfaces setup;
@/* Scaffold CRUD views for the entities that an admin would start drilling down into the data model from */;
scaffold from-entity org.jboss.jdf.example.ticketmonster.model.Venue --targetDir admin;
scaffold from-entity org.jboss.jdf.example.ticketmonster.model.TicketCategory --targetDir admin;
scaffold from-entity org.jboss.jdf.example.ticketmonster.model.TicketPriceCategory --targetDir admin;
scaffold from-entity org.jboss.jdf.example.ticketmonster.model.Show --targetDir admin;
scaffold from-entity org.jboss.jdf.example.ticketmonster.model.EventCategory --targetDir admin;
scaffold from-entity org.jboss.jdf.example.ticketmonster.model.Event --targetDir admin;
scaffold from-entity org.jboss.jdf.example.ticketmonster.model.Section --targetDir admin;
scaffold from-entity org.jboss.jdf.example.ticketmonster.model.Show --targetDir admin;
scaffold from-entity org.jboss.jdf.example.ticketmonster.model.Performance --targetDir admin;
scaffold from-entity org.jboss.jdf.example.ticketmonster.model.EventCategory --targetDir admin;
scaffold from-entity org.jboss.jdf.example.ticketmonster.model.MediaItem --targetDir admin;
@/* Deploy this to JBoss AS 7 to see the result */;
build clean package jboss-as:deploy;
echo Examine the app so far at http://localhost:8080/ticket-monster;
wait;
echo Add "<tm:image media="#{mediaManager.getPath(eventBean.event.picture)}" />" to "scaffold/event/view.xhtml" and "scaffold/venue/view.xhtml" instead of the output of the picture