Custom Templates by Project
by Filipe Névola
Hi, I'm starting with Forge and I would like to know how can I work with
custom templates by project.
Let me try to be more clear, I want to have a project A using AngularJS
Addon with custom templates for my views and a project B using AngularJS
Addon with others custom templates.
The differences won't be only images, styles, etc but will be on the
structure of html also.
My question is: How can I do that? Is there a simple way? Maybe some addon.
Thank you!
---
*Filipe Névola <https://twitter.com/FilipeNevola>*
*Leader of Product Innovation Lab at *Tecsinapse
<http://www.tecsinapse.com.br>
*Você conhece Jesus? Ainda não? Então busque conhecer pois você não está
aproveitando sua vida como poderia.*
*Jesus disse em João 10:10b - "Eu vim para que tenham vida, e a tenham com
abundância."*
10 years, 2 months
CdCommand
by Daniel Cunha
Hello Folks,
Forge: When executed cd command without parameter the command does nothing.
Aesh: When executed cd command without parameter, the shell goes to
USER_DIR.
Does good idea when I execute cd command without parameter in Forge, the
shell go to root dir of the project? WDYT?
--
Att;
Daniel Cunha (soro)
10 years, 5 months
Forge doesn't work.
by Daniel Cunha
Hi folks,
I started to work with JBoss Forge 2.6.1-SNAPSHOT.
When I run Bootstrap, forge started run, but the shell doesn't work.
I have this problem with a bin mode. I compiled Forge but the problem is
persistent.
--
Att;
Daniel Cunha (soro)
10 years, 5 months
Roaster - Missing or improving ?
by Antonio Goncalves
Hi,
Still playing with Roaster so I could fix
https://issues.jboss.org/browse/FORGE-1618 (Command
constraint-new-validator to create a new validator implementation). I don't
know how to do two things (nicely) :
*# Parameterize interface*
For a constraint, I need to implement a parametrize interface like this :
public class MaxValidatorForString implements ConstraintValidator<Max,
Number> {
The only way I could find is passing a String :
final JavaClassSource javaClass = Roaster.*create*(JavaClassSource.class);
javaClass.setName("MaxValidatorForString");
javaClass.addImport(ConstraintValidator.class);
javaClass.addInterface("ConstraintValidator<Max, Number>");
It's a shame because with addInterface(Class), it does the import
automatically and things are more typed. But I cannot add types :
final JavaClassSource javaClass = Roaster.*create*(JavaClassSource.class);
javaClass.setName("MaxValidatorForString");
javaClass.addInterface(ConstraintValidator.class);
It would be good to have something like :
javaClass.addInterface(ConstraintValidator.class).
addType(Max.class).addType(Number.class);
*# Typed parameters*
My isValid method takes two parameters. And the only way to add two
parameters seems to be by a String
javaClass.addMethod().setPublic().setName("isValid").setReturnType("boolean"
).setParameters("Number value, ConstraintValidatorContext
context").setBody("return
false;").addAnnotation(Override.class);
Again, it would be nice to have typed parameters so the import is implicit,
and things are a bit more typed :
javaClass.addMethod().setPublic().setName("isValid").setReturnType("boolean"
).addParameter(Number.class,
"value").addParameter(ConstraintValidatorContext.class,
"context").setBody("return
false;").addAnnotation(Override.class);
So I'm just wondering if I'm missing something or this is not implemented
yet on Roaster
--
Antonio Goncalves
Software architect and Java Champion
Web site <http://www.antoniogoncalves.org/> |
Twitter<http://twitter.com/agoncal>
| LinkedIn <http://www.linkedin.com/in/agoncal> | Paris
JUG<http://www.parisjug.org/>
| Devoxx France <http://www.devoxx.fr/>
10 years, 5 months
Meeting minutes - 2014-05-21
by Lincoln Baxter, III
Minutes:
http://transcripts.jboss.org/meeting/irc.freenode.org/forge/2014/forge.20...
Minutes (text):
http://transcripts.jboss.org/meeting/irc.freenode.org/forge/2014/forge.20...
Log:
http://transcripts.jboss.org/meeting/irc.freenode.org/forge/2014/forge.20...
Meeting summary
---------------
* Agenda (lincolnthree, 14:45:55)
* 2.5.1.Final Release (lincolnthree, 14:48:40)
* 2.5.1.Final should go out today or tomorrow (lincolnthree,
14:48:55)
* the 2.5.1.Final release will actually be 2.6.0.Final (lincolnthree,
14:50:41)
* Website (lincolnthree, 14:51:51)
* We've found a graphic designer to work on the website presentation.
WiIl begin design soon. (lincolnthree, 14:52:28)
* LINK: https://github.com/forge/addon-repository (lincolnthree,
14:58:23)
* Arquillian Addon (lincolnthree, 15:02:19)
--
Lincoln Baxter, III
http://ocpsoft.org
"Simpler is better."
10 years, 6 months
Deprecated method
by Daniel Cunha
Hi folks,
I'm refactoring towards JDK 1.7 enhancements. But I see some alerts in
project about deprecated method.
Exist other form to get root directory?
Actually the getRootDirectory of the Project is deprecated.
--
Att;
Daniel Cunha (soro)
10 years, 6 months