Firing ResourceEvents before CommandExecuted event?
by Jevgeni Zelenkov
Hi guys,
I am having an issue with Events in Forge. I would like to get a list
of Resources modified by a forge command, after a forge command has
been executed.
Fortunately, forge fires events when command execution completes
(either successfully, or unsuccessfully) and when resources are
created/modified/deteled/etc. Sadly, it fires CommandExecuted event
before any of ResourceEvents. (EventBusInvoker listens to
CommandExecuted event and fires all ResourceEvents queued in the
EventBus).
I expect ResourceEvents to be fired before the CommandExecuted event
(which would correspond to what actually happends). I tried commenting
out code inside of EventBusInvoker's fire method and adding
"bus.fireAll();" into Execution class (right before firing
CommandExecuted event) but that doesn't seem to work.
How could I fire ResourceEvents before CommandExecuted event? Or is
there another way to get a list of modified resources during forge
command exection?
What does this line do? Is forge multi-threaded?
"Thread.currentThread().setContextClassLoader(current);"
Jevgeni
12 years, 5 months
Problem with OpenShift plugin in plugin repository
by Lincoln Baxter
Due to a bug in the Forge plugin name resolution, "openshift" conflicts with "openshift-express" and cannot be installed. ("openshift-express" can.) We will fix this in the next version of Forge, but unfortunately, that's not what's going into JBDS.
Which would you like to keep?
--
Lincoln Baxter, III
JBoss, by Red Hat
lbaxter(a)redhat.com
"If you want something, you'll find a way; if you don't, you'll find an excuse."
12 years, 5 months
Plugin Spring MVC
by Lincoln Baxter, III
Hey Ryan,
Your dependencies are being included as <provided> scope
107 <dependency>
108 <groupId>org.jboss.forge</groupId>
109 <artifactId>plugin-spring-mvc</artifactId>
110 <version>1.0.0-SNAPSHOT</version>
111 <scope>provided</scope>
112 </dependency>
Which Forge warns about (it probably did this to you once (easy to miss),
and it probably got checked in:)
***WARNING*** Dependency
[org.jboss.forge:plugin-spring-mvc:jar::1.0.0-SNAPSHOT] was not correctly
marked as PROVIDED scope; this has been corrected.
And that's because you used the org.jboss.forge package (forge claims this
namespace for its own internals,) so you should use a different package for
your plugins IMO, such as "org.jboss.forge.spring". This is why the project
compiles but does not run when installed. I should add this to the plugin
docs.
--
Lincoln Baxter, III
http://ocpsoft.org
"Simpler is better."
12 years, 5 months
XmlUnit on Scaffold test cases
by George Gastaldi
Hello all,
I noticed that most of our scaffold unit tests are kinda hard to
maintain. specially because they compare XHTML as strings, instead of
the structure as a whole.
This implies that if you place a line break in a generated XHTML for
example, it breaks the whole test as well.
What about if we refactor these tests to use XmlUnit instead ?
(http://xmlunit.sourceforge.net/)
This way we could compare the structure without the ugly plain string
comparison, WDYT ?
Regards,,
George Gastaldi
12 years, 5 months
Fwd: Re: FORGE-568 "Allow running/debugging Forge in eclipse" opinion quest
by Thomas Frühbeck
OK, the size limit killed me, another go to send this message:
Hi,
I just finished a first draft of the ForgeConsole in Debug mode.
The loading of the embedded Forge runtime ist still not working, this
needs real experts :-/
So if you would like to give it a try, pleas load your own runtime in
the Forge preferences.
The implementation is still a bit shaky, but at least the direction
seems to be clear.
Still missing:
- automatic source lookup of Forge sources in eclipse
- and of course most interesting: the lookup of sources which are
used by Forge during debug - that will be real fun :-))
Load the attached plugin: unzip in <eclipse-home>/dropins/
To run the DebugForge: [SHIFT]+[CTRL]+[4]
Please find attached:
- the zip of the plugin for dropins folder
- the source I adapted included in the soure.jar files will come in
separate message
So, how do we go from here, to whom can I pass over the sources for
quality check / check-in?
Any ideas welcome,
Thomas
Am 26.05.2012 19:51, schrieb Lincoln Baxter, III:
> This is a really great idea! Fantastic!
>
> On Sat, May 26, 2012 at 5:49 AM, Koen Aers <koen.aers(a)gmail.com
> <mailto:koen.aers@gmail.com>> wrote:
>
> Yes, that's actually a good idea. It would also be cool if we
> could pickup the classes being worked upon directly in the
> class/module path of this Forge launch, but I guess that will not
> be so easy...
>
> Cheers,
> Koen
>
12 years, 5 months
Plugins Development
by Rafael Benevides
Hi people,
Let me introduce myself.
My name is Rafael Benevides and I started to use JBoss Forge when it was
called Seam Forge. I started to use Forge as a way to extend Seam Projects
and adds custom components and libraries.
One of the features that brings more productivity to Seam projects is the
Facelets Compositions. Based on the "Facelets fits JSF like glove", I (and
some friends) started to write some custom components so instead of write:
<h:outputLabel value="Label" for="input" />
<h:inputText id="input" value="#{myBackingBean.property}" >
<f:convertNumber />
<f:validateLength minimum="1" maximum="10"/>
<a4j:support event="onblur" reRender="input"/>
</h:inputText>
<h:message for="input" />
We could write only: <x:inputText label="Nome:"
value="#{myBackingBean.property}" name="nome" required="true"/>
With this in mind, I started a project called XSeam (focused in Seam 2.x) -
I think that Pete heard about it when he came to Brasil and Edgar(Red Hat)
talked about - the whole idea could be saw at this 15 min screencast -
http://blip.tv/rafael-benevides/xseam-demonstration-with-subtitles-in-eng...
I would like to known what do you think about this concept of XSeam? I am
asking that, because last year I started to port XSeam (
https://github.com/rafabene/XSeam2 ) as plugin to JBoss Forge (
https://github.com/rafabene/XSeam3 ) . This project is in initial state and
I have no time to dedicate to it.
Anyway it was a great opportunity to see the big potentials of Forge.
With the advent of Java EE 6 and other JBoss productsI I hope to be closest
enough to help in other plugins like a Picketlink integration (for
example).
Please, feel free to post any comments about the idea of having a plugin
(maybe a scaffold provider) similar to XSeam and also about the plan of a
PicketLink integration plugin?
Thank you all
Rafael Benevides
rafabene(a)gmail.com
@rafabene
12 years, 5 months