[JBoss JIRA] (FORGE-1594) Being able to create a new View
by Antonio Goncalves (JIRA)
[ https://issues.jboss.org/browse/FORGE-1594?page=com.atlassian.jira.plugin... ]
Antonio Goncalves updated FORGE-1594:
-------------------------------------
Assignee: (was: Antonio Goncalves)
> Being able to create a new View
> -------------------------------
>
> 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
> Priority: Minor
> Labels: starter
> Fix For: 2.x Future
>
>
> At the moment the only way to generate JSF pages is with scaffolding. When you create an application, you realize that these scaffolded pages are not enough and that you need to create new ones. To save time and help the developer 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}
> <?xml version='1.0' encoding='UTF-8' ?>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> <ui:composition xmlns="http://www.w3.org/1999/xhtml"
> xmlns:h="http://xmlns.jcp.org/jsf/html"
> xmlns:f="http://xmlns.jcp.org/jsf/core"
> xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
> template="/resources/scaffold/pageTemplate.xhtml">
> <ui:param name="pageTitle" value="mypage"/>
> <ui:define name="header">
> mypage
> </ui:define>
> <ui:define name="subheader">
> mypage
> </ui:define>
> <ui:define name="footer"/>
> <ui:define name="main">
> </ui:define>
> </ui:composition>
> {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, subheader :
> {code}
> faces-new-view --named mypage --targetDirectory admin --title Administration Page --header Admin Header --subheader Admin Sub Header
> {code}
> It would just create a minimum JSF page such as :
> {code}
> <?xml version='1.0' encoding='UTF-8' ?>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> <ui:composition xmlns="http://www.w3.org/1999/xhtml"
> xmlns:h="http://xmlns.jcp.org/jsf/html"
> xmlns:f="http://xmlns.jcp.org/jsf/core"
> xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
> template="/resources/scaffold/pageTemplate.xhtml">
> <ui:param name="pageTitle" value="Administration Page"/>
> <ui:define name="header">
> Admin Header
> </ui:define>
> <ui:define name="subheader">
> Admin Sub Header
> </ui:define>
> <ui:define name="footer"/>
> <ui:define name="main">
> </ui:define>
> </ui:composition>
> {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. So I could search for similar JIRAs if they existed
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
9 years, 7 months
[JBoss JIRA] (FORGE-2060) Being able to create a new CDI interceptor
by Antonio Goncalves (JIRA)
[ https://issues.jboss.org/browse/FORGE-2060?page=com.atlassian.jira.plugin... ]
Antonio Goncalves updated FORGE-2060:
-------------------------------------
Status: Pull Request Sent (was: Open)
Git Pull Request: https://github.com/forge/core/pull/513
> Being able to create a new CDI interceptor
> ------------------------------------------
>
> Key: FORGE-2060
> URL: https://issues.jboss.org/browse/FORGE-2060
> Project: Forge
> Issue Type: Sub-task
> Components: Java EE
> Affects Versions: 2.12.0.Final
> Reporter: Antonio Goncalves
> Assignee: Antonio Goncalves
> Fix For: 2.x Future
>
>
> It would be good to have a command to generate a CDI interceptor. A simple command such as :
> {code}
> cdi-new-interceptor --named LoggingInterceptor ;
> {code}
> Would generate :
> {code}
> @Interceptor
> public class LoggingInterceptor {
> @AroundInvoke
> public Object logMethod(InvocationContext ic) throws Exception {
> try {
> return ic.proceed();
> } finally {
> }
> }
> }
> {code}
> There could even have another parameter to add an existing interceptor binding
> {code}
> cdi-new-interceptor --named LoggingInterceptor --binding Loggable ;
> {code}
> Would add the Loggable interceptor binding to the class :
> {code}
> @Interceptor
> @Loggable
> public class LoggingInterceptor {
> @AroundInvoke
> public Object logMethod(InvocationContext ic) throws Exception {
> try {
> return ic.proceed();
> } finally {
> }
> }
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
9 years, 7 months
[JBoss JIRA] (FORGE-2060) Being able to create a new CDI interceptor
by Antonio Goncalves (JIRA)
[ https://issues.jboss.org/browse/FORGE-2060?page=com.atlassian.jira.plugin... ]
Antonio Goncalves reassigned FORGE-2060:
----------------------------------------
Assignee: Antonio Goncalves
> Being able to create a new CDI interceptor
> ------------------------------------------
>
> Key: FORGE-2060
> URL: https://issues.jboss.org/browse/FORGE-2060
> Project: Forge
> Issue Type: Sub-task
> Components: Java EE
> Affects Versions: 2.12.0.Final
> Reporter: Antonio Goncalves
> Assignee: Antonio Goncalves
> Fix For: 2.x Future
>
>
> It would be good to have a command to generate a CDI interceptor. A simple command such as :
> {code}
> cdi-new-interceptor --named LoggingInterceptor ;
> {code}
> Would generate :
> {code}
> @Interceptor
> public class LoggingInterceptor {
> @AroundInvoke
> public Object logMethod(InvocationContext ic) throws Exception {
> try {
> return ic.proceed();
> } finally {
> }
> }
> }
> {code}
> There could even have another parameter to add an existing interceptor binding
> {code}
> cdi-new-interceptor --named LoggingInterceptor --binding Loggable ;
> {code}
> Would add the Loggable interceptor binding to the class :
> {code}
> @Interceptor
> @Loggable
> public class LoggingInterceptor {
> @AroundInvoke
> public Object logMethod(InvocationContext ic) throws Exception {
> try {
> return ic.proceed();
> } finally {
> }
> }
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
9 years, 7 months
[JBoss JIRA] (FORGE-2059) Being able to create a new CDI interceptor binding
by Antonio Goncalves (JIRA)
[ https://issues.jboss.org/browse/FORGE-2059?page=com.atlassian.jira.plugin... ]
Antonio Goncalves reassigned FORGE-2059:
----------------------------------------
Assignee: Antonio Goncalves
> Being able to create a new CDI interceptor binding
> --------------------------------------------------
>
> Key: FORGE-2059
> URL: https://issues.jboss.org/browse/FORGE-2059
> Project: Forge
> Issue Type: Sub-task
> Components: Java EE
> Affects Versions: 2.12.0.Final
> Reporter: Antonio Goncalves
> Assignee: Antonio Goncalves
> Fix For: 2.x Future
>
>
> It would be good to have a command to create a CDI interceptor binding. A command like this :
> {code}
> cdi-new-interceptor-binding --named Loggable ;
> {code}
> Would generate :
> {code}
> @InterceptorBinding
> @Target({METHOD, TYPE})
> @Retention(RUNTIME)
> public @interface Loggable {
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
9 years, 7 months
[JBoss JIRA] (FORGE-2061) Being able to create a new CDI interceptor
by Antonio Goncalves (JIRA)
[ https://issues.jboss.org/browse/FORGE-2061?page=com.atlassian.jira.plugin... ]
Antonio Goncalves deleted FORGE-2061:
-------------------------------------
> Being able to create a new CDI interceptor
> ------------------------------------------
>
> Key: FORGE-2061
> URL: https://issues.jboss.org/browse/FORGE-2061
> Project: Forge
> Issue Type: Sub-task
> Reporter: Antonio Goncalves
>
> It would be good to have a command to generate a CDI interceptor. A simple command such as :
> {code}
> cdi-new-interceptor --named LoggingInterceptor ;
> {code}
> Would generate :
> {code}
> @Interceptor
> public class LoggingInterceptor {
> @AroundInvoke
> public Object logMethod(InvocationContext ic) throws Exception {
> try {
> return ic.proceed();
> } finally {
> }
> }
> }
> {code}
> There could even have another parameter to add an existing interceptor binding
> {code}
> cdi-new-interceptor --named LoggingInterceptor --binding Loggable ;
> {code}
> Would add the Loggable interceptor binding to the class :
> {code}
> @Interceptor
> @Loggable
> public class LoggingInterceptor {
> @AroundInvoke
> public Object logMethod(InvocationContext ic) throws Exception {
> try {
> return ic.proceed();
> } finally {
> }
> }
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
9 years, 7 months
[JBoss JIRA] (FORGE-2060) Being able to create a new CDI interceptor
by Antonio Goncalves (JIRA)
Antonio Goncalves created FORGE-2060:
----------------------------------------
Summary: Being able to create a new CDI interceptor
Key: FORGE-2060
URL: https://issues.jboss.org/browse/FORGE-2060
Project: Forge
Issue Type: Sub-task
Components: Java EE
Affects Versions: 2.12.0.Final
Reporter: Antonio Goncalves
Fix For: 2.x Future
It would be good to have a command to generate a CDI interceptor. A simple command such as :
{code}
cdi-new-interceptor --named LoggingInterceptor ;
{code}
Would generate :
{code}
@Interceptor
public class LoggingInterceptor {
@AroundInvoke
public Object logMethod(InvocationContext ic) throws Exception {
try {
return ic.proceed();
} finally {
}
}
}
{code}
There could even have another parameter to add an existing interceptor binding
{code}
cdi-new-interceptor --named LoggingInterceptor --binding Loggable ;
{code}
Would add the Loggable interceptor binding to the class :
{code}
@Interceptor
@Loggable
public class LoggingInterceptor {
@AroundInvoke
public Object logMethod(InvocationContext ic) throws Exception {
try {
return ic.proceed();
} finally {
}
}
}
{code}
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
9 years, 7 months
[JBoss JIRA] (FORGE-2061) Being able to create a new CDI interceptor
by Antonio Goncalves (JIRA)
Antonio Goncalves created FORGE-2061:
----------------------------------------
Summary: Being able to create a new CDI interceptor
Key: FORGE-2061
URL: https://issues.jboss.org/browse/FORGE-2061
Project: Forge
Issue Type: Sub-task
Components: Java EE
Affects Versions: 2.12.0.Final
Reporter: Antonio Goncalves
Fix For: 2.x Future
It would be good to have a command to generate a CDI interceptor. A simple command such as :
{code}
cdi-new-interceptor --named LoggingInterceptor ;
{code}
Would generate :
{code}
@Interceptor
public class LoggingInterceptor {
@AroundInvoke
public Object logMethod(InvocationContext ic) throws Exception {
try {
return ic.proceed();
} finally {
}
}
}
{code}
There could even have another parameter to add an existing interceptor binding
{code}
cdi-new-interceptor --named LoggingInterceptor --binding Loggable ;
{code}
Would add the Loggable interceptor binding to the class :
{code}
@Interceptor
@Loggable
public class LoggingInterceptor {
@AroundInvoke
public Object logMethod(InvocationContext ic) throws Exception {
try {
return ic.proceed();
} finally {
}
}
}
{code}
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
9 years, 7 months
[JBoss JIRA] (FORGE-2059) Being able to create a new CDI interceptor binding
by Antonio Goncalves (JIRA)
Antonio Goncalves created FORGE-2059:
----------------------------------------
Summary: Being able to create a new CDI interceptor binding
Key: FORGE-2059
URL: https://issues.jboss.org/browse/FORGE-2059
Project: Forge
Issue Type: Sub-task
Components: Java EE
Affects Versions: 2.12.0.Final
Reporter: Antonio Goncalves
Fix For: 2.x Future
It would be good to have a command to create a CDI interceptor binding. A command like this :
{code}
cdi-new-interceptor-binding --named Loggable ;
{code}
Would generate :
{code}
@InterceptorBinding
@Target({METHOD, TYPE})
@Retention(RUNTIME)
public @interface Loggable {
}
{code}
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
9 years, 7 months
[JBoss JIRA] (FORGE-2058) Being able to create fields with generics types
by Antonio Goncalves (JIRA)
Antonio Goncalves created FORGE-2058:
----------------------------------------
Summary: Being able to create fields with generics types
Key: FORGE-2058
URL: https://issues.jboss.org/browse/FORGE-2058
Project: Forge
Issue Type: Sub-task
Components: UI - Shell
Affects Versions: 2.12.0.Final
Reporter: Antonio Goncalves
Fix For: 2.x Future
At the moment we can add a new field to a Java class :
{code}
java-new-field --named log --type java.util.List
{code}
It would be very useful to be able to add generics. Something like :
{code}
java-new-field --named log --type java.util.List<String>
{code}
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
9 years, 7 months