Add means of defining constraint for Length on String
by Robb Greathouse
Hi,
Was trying to change the length on String from the VarChar(255). In Hibernate this can be done by specifying @Length(max=350) (for example.
However, there is no "constraint Length --onProperty xxx --max 350" available in Forge.
Using "constraint Max" causes forge to have a conversion error when attempting to insert string data.
Robb Greathouse
Partner Enablement
Middleware Business Unit
JBoss, a Division of Red Hat
cellphone 505-507-4906
11 years, 3 months
On the topic of the impedance mismatch between Forge and IDE's
by Max Rydahl Andersen
Hi guys,
Returning from JBDS face-2-face last week I'm realising we got a few old known challenges and wondering what/how we can fix or at least make the issues non-issues.
The primary usecase for Forge from my POV is being able to reuse scaffolding and code generation as a replacement of Seam Gen functionality we have in Eclipse and
right now Forge is not there yet and I fear it won't be there within the next 1-2 months where we actually need to make progress on scaffolding and generation for things like
HTML5 and more. I'm wondering if we need to readjust our approach to how we use forge and its addons - maybe the "old" approach of sharing code/templates is a better one
instead of requiring a full running Forge to make it work ?
I actually started writing a long email about the various issues but I realised that wouldn't be read by anyone, so I'm wondering if someone could give me quick summary
of what are happening in context of Forge 1 or even 2 when it comes to making it easier/better to utilize Forge addons from something like Eclipse ?
To give an idea of my main concerns here is a quick list:
* startup time
* how to keep forge addons uptodate/in-sync to keep working together
* Support a "multi-step wizard" approach for one and combined forge commands
* How to not have too many hard requirements of the sequence or if possibly any need of Forge setup commands to use Forge to simply generate code
(i.e. today I have to wait for Forge to parse and understand maven metamodel and more to just use its generate code functionality - meaning if I just have a plain
eclipse project or even a gradle project or ant project I can use Eclipse tooling to generate wizards, but Forge are not possible (or at least very slow in comparison, even when ignoring startup time))
/max
11 years, 11 months
Opinion poll: Jackson vs Errai
by Thomas Frühbeck
Hi,
during experiments extending a generated aerogear application I found that
- the current integration of JSON via Jackson is kinda creative hack
- not easily portable to recent releases of Jackson (see above)
- does not make use of annotation driven UI/ser/deserializ. processing
During my investigations on upgrade possibilities to modern Jackson I realized, that Errai is a very powerful and complete framework well worth being featured
in Forge's scaffold.
As I am not really deep into Jackson/JSON/Rest yet I would like to ask for your opinion on this.
Another question regarding use of annotations in a scaffold:
Especially regarding modern Errai/Jackson annotations are an easy means to control the UI / (De-)Serialization, e.g. when working with entities, I think it is
necessary to use persistence-based entity instantiation before deserialization, to avoid loss of data if an incomplete entity is desrialized and persisted by
merge().
Do you think it acceptable to actively insert annotations into entity code - possibly by a scaffold command like "scaffold applyAnnotations"?
In my opinion this could provide interesting best practice propagation for novices like me.
Thanks,
Thomas
11 years, 11 months
How to define field of type float?
by Robb Greathouse
Hi,
I tried "field float --named xxxx" But that does not produce a field. int, long work but there doesn't seem to be anything for float.
Robb Greathouse
Partner Enablement
Middleware Business Unit
JBoss, a Division of Red Hat
cellphone 505-507-4906
11 years, 11 months
Re: [forge-dev] Looking for documentation for creating ENUM classes
by Lincoln Baxter
I believe someone is working on this now if it has not been done already. But basically, you would use:
JavaParser.create(JavaEnum.class) ...
Then manipulate and write out the file to a JavaResource (if you're doing this in a plugin operating on a Java project.)
~Lincoln
----- Original Message -----
From: "Robb Greathouse" <robb.greathouse(a)jboss.com>
To: "Lincoln Baxter" <lbaxter(a)redhat.com>
Sent: Thursday, December 13, 2012 1:01:51 PM
Subject: Looking for documentation for creating ENUM classes
Hi,
I was wondering if we had any instruction for creating an ENUM type example
entity --named MyEnumType --??
or
enum --named MyEnumType
Robb Greathouse
Partner Enablement
Middleware Business Unit
JBoss, a Division of Red Hat
cellphone 505-507-4906
12 years
Generating compound and complex views
by Robb Greathouse
Hi all,
I have been working on something with Forge to build out projects really quickly. I do it with cut and pastes now. But is so simple, it should be possible to write a plugin to do this. I take the views that are automatically generated by the Forge and cut and paste them together.
What I wanted to do was a plugin that would take the views created by the forge (create.xhtml, search.xhtml, view.xhtml) and build them into another view. Example taking a customer.xhtml and creditCard.xhtml and combining them to be a customerRegistration.xhtml. Really easy with the forge frame work. Just requires adding a cascade and fetch to the @ManyToOne annotation.
Really simple.
Then wanted to try something more complicated like a Booking (from TicketMonster) by combining more and creating a backing bean by injecting other backing beans into it.
While the UI will not be pretty; but IMHO it creates a solid starting point really fast, that can be easily beautified later. Just doing it cut and paste really speeds up development.
Robb Greathouse
Partner Enablement
Middleware Business Unit
JBoss, a Division of Red Hat
cellphone 505-507-4906
12 years
Faces scaffold wishlist
by Thomas Frühbeck
Dear all,
christmas is near and so I decided to write down my personal wishlist
for Faces scaffold in 2.0.
- annotation driven UI generation: @UI(disabled, input, visible, button,..)
- composite/template based rendering
modular, less hardcoded
- RichFaces integration out-of-the-box
or on demand? really? why not per default? be bold?
- Seam3 integration in kinda best-practice starter-kit way - or is it
DeltaSpike? Why not DeltaSpike?!
Transaction (even if Jason dislikes it :), Security, Rewrite, I18N, ...
- when using Metawidget as UI-generator I would love to use CDI (static
model?)
- support for enumerations
It was really great to take part in the development of Forge 1, I would
be glad to continue in Forge 2 :-)
Wish you all the best!
Regards,
Thomas
12 years
Forge 2.0 UI Design
by ggastald@redhat.com
Hello all,
We're designing a UI API that will serve as the base for the Addons UI
layer in Forge 2.0
I'd like some thoughts about what would be the best design strategy for it.
I've created a JIRA issue to keep track:
https://issues.jboss.org/browse/FORGE-719
I kindly ask you to add your comments as what would be a good feature to
have, and additional requirements if necessary.
Best Regards,
--
*George Gastaldi* | /Senior Software Engineer/
JBoss Forge Team
Red Hat
12 years
Forge 1.1.3.Final Released !
by ggastald@redhat.com
Hello All !!
Forge 1.1.3.Final has just been released ! The Website was updated with
the release notes.
Best Regards,
--
*George Gastaldi* | /Senior Software Engineer/
JBoss Forge Team
Red Hat
12 years