From issues at jboss.org Thu May 8 10:31:58 2014 Content-Type: multipart/mixed; boundary="===============8256678590030917176==" MIME-Version: 1.0 From: Vineet Reynolds (JIRA) To: forge-issues at lists.jboss.org Subject: [forge-issues] [JBoss JIRA] (FORGE-1594) Being able to create an empty JSF page Date: Thu, 08 May 2014 10:31:58 -0400 Message-ID: In-Reply-To: JIRA.12533019.1393092453000@jira02.app.mwc.hst.phx2.redhat.com --===============8256678590030917176== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable [ https://issues.jboss.org/browse/FORGE-1594?page=3Dcom.atlassian.jira= .plugin.system.issuetabpanels:all-tabpanel ] Vineet Reynolds reassigned FORGE-1594: -------------------------------------- Assignee: Vineet Reynolds > Being able to create an empty JSF page > -------------------------------------- > > Key: FORGE-1594 > URL: https://issues.jboss.org/browse/FORGE-1594 > Project: Forge > Issue Type: Sub-task > Components: Scaffold > Affects Versions: 2.0.0.Final > Reporter: Antonio Goncalves > Assignee: Vineet Reynolds > Priority: Minor > Fix For: 2.x Future > > > At the moment the only way to generate JSF pages is with scaffolding. Whe= n you create an application, you realize that these scaffolded pages are no= t enough and that you need to create new ones. To save time and help the de= veloper in creating new pages, it would be good to have a command such : > {code} > faces-new-view --named mypage > {code} > This will create a mypage.xhtml on the root of the webapp directory. You = could also give a different directory with : > {code} > faces-new-view --named mypage --targetDirectory admin > {code} > This will create the page under webapp/admin/mypage.xhtml. = > {code} > > > xmlns:h=3D"http://xmlns.jcp.org/jsf/html" > xmlns:f=3D"http://xmlns.jcp.org/jsf/core" > xmlns:ui=3D"http://xmlns.jcp.org/jsf/facelets" > template=3D"/resources/scaffold/pageTemplate.xhtml"> > > > mypage > > > mypage > > > > > > {code} > The name of the page {{mypage}} is used for the title, header, subheader.= But we could customize this using optional attributes for title, header, s= ubheader : > {code} > faces-new-view --named mypage --targetDirectory admin --title Administrat= ion Page --header Admin Header --subheader Admin Sub Header > {code} > It would just create a minimum JSF page such as : > {code} > > > xmlns:h=3D"http://xmlns.jcp.org/jsf/html" > xmlns:f=3D"http://xmlns.jcp.org/jsf/core" > xmlns:ui=3D"http://xmlns.jcp.org/jsf/facelets" > template=3D"/resources/scaffold/pageTemplate.xhtml"> > > > Admin Header > > > Admin Sub Header > > > > > > {code} > If there were several templates, we could do : > {code} > faces-new-view --named mypage --template MyTemplate.xhtml > {code} > PS : I'm on holidays skiing, and the internet connection is really bad. S= o I could search for similar JIRAs if they existed -- This message was sent by Atlassian JIRA (v6.2.3#6260) --===============8256678590030917176==--