Questions about a new javaee portlet plugin
by Jérémie
Hi Forge Team!
I would like to create a plugin to manage javaee portlets.
A first commit is available here http://goo.gl/OKgsG .
Before going further and create a Forge Jira ticket I would appreciate
your opinion.
- Do you think core/javaee-api and core /javaee-impl is a right place or
I need to create an other project?
- The JBoss Shrinkwrap project doesn't currently include the portlet.xml
description. I think it's interesting to do that. (I can create an other
Jira ticket)
- The quickstart option would be interesting to push the generated code
in a GateIn instance (not implemented yet).
- Command names and options are correct?
Thanks for your comments.
For now here's what you can do:
$ portlet setup
$ portlet add --named helloportlet --title "My forge portlet"
--short-title ForgePortlet --keywords "demo,forge,portlet"
$ portlet add-param --portlet helloportlet --name
javax.portlet.faces.defaultViewId.view --value "/home.xhtml"
$ portlet add-param --portlet helloportlet --name
javax.portlet.faces.defaultViewId.edit --value "/edit.xhtml"
$ portlet add-param --portlet helloportlet --name
javax.portlet.faces.defaultViewId.help --value "/help.xhtml"
And the result is :
src/main/webapp/WEB-INF/portlet.xml
-----------------------------------------------------
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<portlet-app xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.0"
xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd">
<portlet>
<portlet-name>helloportlet</portlet-name>
<portlet-class>javax.portlet.faces.GenericFacesPortlet</portlet-class>
<supports>
<mime-type>text/html</mime-type>
<portlet-mode>EDIT</portlet-mode>
<portlet-mode>HELP</portlet-mode>
<portlet-mode>VIEW</portlet-mode>
</supports>
<portlet-info>
<title>My forge portlet</title>
<short-title>ForgePortlet</short-title>
<keywords>demo,forge,portlet</keywords>
</portlet-info>
<init-param>
<name>javax.portlet.faces.defaultViewId.view</name>
<value>/home.xhtml</value>
</init-param>
<init-param>
<name>javax.portlet.faces.defaultViewId.edit</name>
<value>/edit.xhtml</value>
</init-param>
<init-param>
<name>javax.portlet.faces.defaultViewId.help</name>
<value>/help.xhtml</value>
</init-param>
</portlet>
</portlet-app>
Regads,
Jérémie.
12 years, 7 months
Re: [forge-dev] Forge website changes
by Paul Bakker
Hi Ivan,
Using GIT can be a bit challenging at first if your still thinking in a svn like workflow. There are some good guides to help with that, I would really advice just playing around with it a bit, you will love it soon :-)
This is a good online reference: http://book.git-scm.com/
Anyway, I committed your changes and also pushed them to forge.github.com.
Thanks a lot!
Paul
On Apr 12, 2012, at 23:04 , Ivan St. Ivanov wrote:
> Hi Paul,
>
> I'm again struggling with Git! And can't commit my changes. Could you do it for me. They are attached. Please extract the content to the website\docs\plugin_development directory and delete the old prefixed pages.
>
> Thanks!
>
> I wonder why people use Git?! It took me less time to do my change than to write all the Git commands. And at the end I didn't succeed. I thought that the source repo is there to help us, not to make us think.
>
> Cheers,
> Ivan
> <plugin.pages.zip>
12 years, 7 months
website - sorting docs
by Paul Bakker
Hi all,
As discussed during the IRC meeting I added support in the docs plugin for sorting them.
A header of a docs page can now look as follows:
---
layout: docs
title: Installing new Plugins
index: 1
---
The index property is used for sorting the documents within the category. We don't need prefixes in file names any more.
Paul
12 years, 7 months
Meeeting minutes 2012-04-11
by Lincoln Baxter, III
Meeting ended Wed Apr 11 15:03:22 2012 UTC. Information about MeetBot at
http://wiki.debian.org/MeetBot . (v 0.1.4)
Minutes:
http://transcripts.jboss.org/meeting/irc.freenode.org/forge/2012/forge.20...
Minutes (text):
http://transcripts.jboss.org/meeting/irc.freenode.org/forge/2012/forge.20...
Log:
http://transcripts.jboss.org/meeting/irc.freenode.org/forge/2012/forge.20...
Meeting summary
---------------
* Agenda (lincolnthree1, 14:03:02)
* Forge website (lincolnthree1, 14:03:11)
* Long term developments (paul) (lincolnthree1, 14:04:28)
* Forge website (lincolnthree1, 14:06:02)
* ACTION: Paul changes the docs Awestruct plugin to use a new variable
for page ordering (paulbakker_, 14:19:57)
* LINK: irc://irc.freenode.net:6667/#Action Paul changes the docs
Awestruct plugin to use a new variable for page ordering
(lincolnthree1, 14:20:32)
* ACTION: Paul changes the docs Awestruct plugin to use a new
variable for page ordering (lincolnthree1, 14:20:51)
* ACTION: Paul writes down an initial set of JIra issues
(paulbakker_, 14:32:26)
* Long term developments (lincolnthree1, 14:35:39)
* ACTION: Lincoln will document the future vision on the website and
in JIRA (lincolnthree1, 14:46:23)
* Forge 2.0 - Separate forge core into standalone without bultin
plugins (lincolnthree1, 14:49:06)
* Forge 2.0 - Support additional build tools (lincolnthree1,
14:49:12)
* ACTION: lincoln will create a 2.0 branch for future magical work
(lincolnthree1, 14:55:12)
Meeting ended at 15:03:22 UTC.
Action Items
------------
* Paul changes the docs Awestruct plugin to use a new variable for page
ordering
* Paul changes the docs Awestruct plugin to use a new variable for page
ordering
* Paul writes down an initial set of JIra issues
* Lincoln will document the future vision on the website and in JIRA
* lincoln will create a 2.0 branch for future magical work
--
Lincoln Baxter, III
http://ocpsoft.org
"Simpler is better."
12 years, 7 months
Fwd: forge build
by Burr Sutter
Begin forwarded message:
> From: Burr Sutter <bsutter(a)redhat.com>
> Subject: forge build
> Date: March 31, 2012 2:26:33 PM EDT
> To: Lincoln Baxter <lbaxter(a)redhat.com>, Koen Aers <kaers(a)redhat.com>
>
> Please tell me how to make "mvn install" work with Forge.
>
> I use
> "git clone https://github.com/forge/core.git"
> "mvn install"
>
> and I always have test failures on Mac & Windows
>
> Tests in error:
> testRunScriptNotHostHttpUrl(org.jboss.forge.shell.test.plugins.builtin.RunUrlP
> luginTest): Unexpected exception, expected<java.net.UnknownHostException> but wa
> s<org.mvel2.CompileException>
>
> Tests run: 136, Failures: 0, Errors: 1, Skipped: 5
>
> [INFO] ------------------------------------------------------------------------
> [INFO] Reactor Summary:
> [INFO]
> [INFO] Forge - Parent .................................... SUCCESS [0.733s]
> [INFO] Forge - Targeted Event Bus ........................ SUCCESS [40.622s]
> [INFO] Forge - Parser/Java API ........................... SUCCESS [1.246s]
> [INFO] Forge - Parser/XML ................................ SUCCESS [0.950s]
> [INFO] Forge - Shell API ................................. SUCCESS [10.231s]
> [INFO] Forge - Maven Integration APIs .................... SUCCESS [22.668s]
> [INFO] Forge - Git Integration ........................... SUCCESS [7.097s]
> [INFO] Forge - Test Harness .............................. SUCCESS [1.277s]
> [INFO] Forge - Maven Project Model ....................... SUCCESS [18.364s]
> [INFO] Forge - Parser/Java ............................... SUCCESS [28.347s]
> [INFO] Forge - Shell ..................................... FAILURE [3:42.427s]
> [INFO] Forge - Git Integration Tests ..................... SKIPPED
> [INFO] Forge - Project Model Maven Tests ................. SKIPPED
> [INFO] Forge - Test Harness (Web) ........................ SKIPPED
> [INFO] Forge - Java EE APIs .............................. SKIPPED
> [INFO] Forge - Java EE Integration Impl & Plugins ........ SKIPPED
> [INFO] Forge - Scaffolding APIs .......................... SKIPPED
> [INFO] Forge - Scaffolding Plugins ....................... SKIPPED
> [INFO] Forge - Dev Plugins ............................... SKIPPED
> [INFO] Forge - Scaffold Provider for Java Server Faces ... SKIPPED
> [INFO] Forge - Modular Plugin Loader ..................... SKIPPED
> [INFO] JBoss Forge - Distribution Build .................. SKIPPED
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 5:56.660s
> [INFO] Finished at: Sat Mar 31 13:07:19 EDT 2012
> [INFO] Final Memory: 30M/102M
> [INFO] ------------------------------------------------------------------------
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.
> 12:test (default-test) on project forge-shell: There are test failures.
> [ERROR]
> [ERROR] Please refer to D:\code\forge\core\shell\target\surefire-reports for the
> individual test results.
> [ERROR] -> [Help 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
> ch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions, please rea
> d the following articles:
> [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureExc
> eption
> [ERROR]
> [ERROR] After correcting the problems, you can resume the build with the command
>
> [ERROR] mvn <goals> -rf :forge-shell
> D:\code\forge\core>
12 years, 7 months
Forge'in ahead with JBoss Tools
by Burr Sutter
In my recent video series I have two videos that describe Forge - and a Hibernate Tools interlude in-between, I wish to know if I have demo'd Forge well - did I highlight forge's best features?
4. Forge Introduction in JBoss Developer Studio 5
http://www.screencast.com/t/olxrVyPy5
http://vimeo.com/39608223
Forge is JBoss's rapid application development tool. A command line based tool that is embedded in JBoss Developer Studio 5. Run a whole script of commands to render a complete application.
5. Hibernate Tools for DB Reverse Engineering
http://www.screencast.com/t/x6lcG2BP8jn5
http://vimeo.com/39608294
Hibernate Tools have been part of JBoss Developer Studio for a long time - now they are integrated with Dali - and you can use Dali's JPA Generate Entities from Tables feature. This video walks you through how to setup the Hibernate Configuration and the JBDC connection to allow for JPA entity generation.
Sakila H2 Database:
https://github.com/maxandersen/sakila-h2
6. Forge for DB Reverse Engineering with CRUD
http://www.screencast.com/t/aSym9aul5
http://vimeo.com/39608326
Forge also has a Hibernate Tools plugin that allows it to analyze a database schema and produce JPA entity classes. Then Forge can use its scaffolding feature to generate JSF2 Create, Read, Update and Delete (CRUD) user interfaces.
12 years, 7 months