[seam-dev] a modest seam-gen style upgrade

Dan Allen dan.j.allen at gmail.com
Thu Oct 9 02:44:43 EDT 2008


Ah, yes, I forgot to send the screenshots. Here's the eye candy.

Disclaimer: The RichFaces colors don't always line up perfectly. It
was a bit of a game to find the right color to assign to each element.
Of course, it is simple enough to override the colors however you
choose, this is just a starting point.

-Dan

On Wed, Oct 8, 2008 at 11:45 PM, Gavin King <gavin at hibernate.org> wrote:
> Got a screenshot?
>
> On Wed, Oct 8, 2008 at 5:51 PM, Dan Allen <dan.j.allen at gmail.com> wrote:
>> You may have noticed by now that seam-gen has gotten a modest style
>> upgrade in the trunk. This upgrade is based on "style mods" I have
>> been maintaining while working on the source code for Seam in Action
>> (I had to dress up the screenshots for the show). Understand that this
>> is just a first step in making seam-gen applications look more
>> presentable, but nonetheless, and important first step.
>>
>> Below is a list of the enhancements (perhaps something worth blogging about):
>>
>> 1. Added a favicon of the Seam logo
>>  - personally, I think this is the coolest and simplest enhancement
>>  - by the way, we should consider use this favicon for
>> seamframework.org because I made it transparent
>> 2. Icons for each level of error message (warn, error, info)
>> 3. Stripped the border and background from global messages and fixed
>> the indenting to accommodate the icons
>>  - the messages were still using the style from the original orange
>> theme seam-gen projects had
>> 4. Used a RichFaces XCSS resource so that the theme matches the
>> currently selected RichFaces theme
>>  - I also applied some of the RichFaces gradients to form controls to
>> make the forms look better (w/ very little CSS)
>>
>> The only downside of the new theme is that the Visual Editor in
>> JBossTools doesn't understand the XCSS file (which resides in the
>> stylesheets directory). Therefore, I left behind the old theme.css and
>> put an instruction in template.xhtml about switching to the static
>> theme.css for previews. It would be great if the Visual Editor could
>> interpret the XCSS file. This opens up so much flexibility for
>> extending the RichFaces theme.
>>
>> The commit also came with some other goodies:
>>
>> 1. seam-gen WAR projects now have a consolidated compile target
>> 2. two new targets reexplode and redeploy, which do a clean unexplode
>> explode or clean undeploy deploy, respectively
>> 3. restart now detects if you have deployed an exploded or packaged
>> archive and restarts it appropriately (before it bombed if you had a
>> packaged archive deployed)
>> 4. EAR projects now compile groovy scripts on the classpath (deploying
>> raw .groovy files requires more research)
>> 5. Added a "head" named insertion in the template.xhtml so that you
>> can add additional markup in <head> on a per-page basis
>> 6. Global messages now reside in template.xhtml with a Facelets
>> parameter you can use to turn them off on a per-page basis
>> 7. Changed src/action to src/hot and src/model to src/main
>> 8. Added the view folder to the classpath for tests so that page
>> actions defined in *.page.xml are invoked during testing (previously
>> the tests only read the global pages.xml file)
>> 9. Added a javadoc task to the build
>> 10. The default username is admin and the password is blank.
>> Developers never got to see the failure login scenario out of the box
>> because we let any credentials through (obviously, with the new
>> security stuff, we don't even need the authenticator component, but
>> that is a next step perhaps)
>>
>> All in all, what these upgrades should do is make your demos of Seam
>> look just a touch prettier and give you a few more wrenches for
>> development. There are still plenty of improvements that could be
>> made.
>>
>> -Dan
>>
>> --
>> Dan Allen
>> Software consultant | Author of Seam in Action
>>
>> http://mojavelinux.com
>> http://mojavelinux.com/seaminaction
>>
>> NOTE: While I make a strong effort to keep up with my email on a daily
>> basis, personal or other work matters can sometimes keep me away
>> from my email. If you contact me, but don't hear back for more than a week,
>> it is very likely that I am excessively backlogged or the message was
>> caught in the spam filters.  Please don't hesitate to resend a message if
>> you feel that it did not reach my attention.
>> _______________________________________________
>> seam-dev mailing list
>> seam-dev at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/seam-dev
>>
>
>
>
> --
> Gavin King
> gavin.king at gmail.com
> http://in.relation.to/Bloggers/Gavin
> http://hibernate.org
> http://seamframework.org
>



-- 
Dan Allen
Software consultant | Author of Seam in Action

http://mojavelinux.com
http://mojavelinux.com/seaminaction

NOTE: While I make a strong effort to keep up with my email on a daily
basis, personal or other work matters can sometimes keep me away
from my email. If you contact me, but don't hear back for more than a week,
it is very likely that I am excessively backlogged or the message was
caught in the spam filters.  Please don't hesitate to resend a message if
you feel that it did not reach my attention.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: seam-gen-1.png
Type: image/png
Size: 24438 bytes
Desc: not available
Url : http://lists.jboss.org/pipermail/seam-dev/attachments/20081009/3a6fc25b/attachment.png 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: seam-gen-2.png
Type: image/png
Size: 20701 bytes
Desc: not available
Url : http://lists.jboss.org/pipermail/seam-dev/attachments/20081009/3a6fc25b/attachment-0001.png 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: seam-gen-3.png
Type: image/png
Size: 16872 bytes
Desc: not available
Url : http://lists.jboss.org/pipermail/seam-dev/attachments/20081009/3a6fc25b/attachment-0002.png 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: seam-gen-4.png
Type: image/png
Size: 24635 bytes
Desc: not available
Url : http://lists.jboss.org/pipermail/seam-dev/attachments/20081009/3a6fc25b/attachment-0003.png 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: seam-gen-5.png
Type: image/png
Size: 16914 bytes
Desc: not available
Url : http://lists.jboss.org/pipermail/seam-dev/attachments/20081009/3a6fc25b/attachment-0004.png 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: seam-gen-6.png
Type: image/png
Size: 21042 bytes
Desc: not available
Url : http://lists.jboss.org/pipermail/seam-dev/attachments/20081009/3a6fc25b/attachment-0005.png 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: seam-gen-7.png
Type: image/png
Size: 23400 bytes
Desc: not available
Url : http://lists.jboss.org/pipermail/seam-dev/attachments/20081009/3a6fc25b/attachment-0006.png 


More information about the seam-dev mailing list