Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7745765
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T10:06:20+00:00 2026-06-01T10:06:20+00:00

How do you work with seam mail and styles in a good way? I

  • 0

How do you work with seam mail and styles in a good way? I have googled this for hours but I can’t find a good way to style my emails. The datatable comes out with no style at all, not even “standard” borders etc. Seam version is 2.2.2.

Basically what is good practice for sending mails with style? Examples are very appreciated.

Facelet below:

<m:message xmlns="http://www.w3.org/1999/xhtml"
    xmlns:m="http://jboss.com/products/seam/mail"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:a4j="http://richfaces.org/a4j"
    xmlns:rich="http://richfaces.org/rich"
    xmlns:s="http://jboss.com/products/seam/taglib">

    <m:from name="#{message.mailFrom}" address="k.kilden@logica.com" />
    <m:to name="mailFromName" address="k.kilden@logica.com" />

    <m:subject>
        <h:outputText value="#{message.mailTopic} Orderid: #{order.id}" />
    </m:subject>
    <m:body>
    <f:facet name="alternative">Sorry, your email reader can't show our fancy email</f:facet>
    <html>
    <head>
        <a4j:loadBundle var="message" basename="messagesGenericPurchase" />
        <link href="#{facesContext.externalContext.requestContextPath}/stylesheet/mail.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
        <h2>#{message.mailHeadLine} #{order.form.name}</h2>

        <hr style="border:1px solid red;"></hr>
            <h:outputText value="#{message.mailOrderHead}"
                style="font-weight:bold; line-height:20px;" />

        <rich:dataTable var="hField" value="#{order.headFields}">
            <rich:column style="width: 100px;">
                <h:outputText value="#{hField.field.label}" />
            </rich:column>
            <rich:column style="width: 100px border:2px;">
                <h:outputText value="#{hField.value}" style="border:2px;"/>
            </rich:column>
        </rich:dataTable>
    </body>
    </html>
    </m:body>
</m:message

Generated output in outlook:

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><link href="http://dl.dropbox.com/u/860312/genericPurchase.css" rel="stylesheet" type="text/css">
    </head>
    <body>
        <h2>Ny beställning: Arbetskläder3</h2>
    <hr style="border:1px solid red;"><span style="font-weight:bold; line-height:20px;">Orderhuvud</span><table class="rich-table " id="j_id11" border="0" cellpadding="0" cellspacing="0"><colgroup span="2"></colgroup><tbody id="j_id11:tb"><tr class="rich-table-row rich-table-firstrow "><td class="rich-table-cell " id="j_id11:0:j_id12" style="width: 100px;">test</td><td class="rich-table-cell " id="j_id11:0:j_id14" style="width: 100px border:2px;"><span style="border:2px;">asd</span></td></tr><tr class="rich-table-row "><td class="rich-table-cell " id="j_id11:1:j_id12" style="width: 100px;">test</td><td class="rich-table-cell " id="j_id11:1:j_id14" style="width: 100px border:2px;"><span style="border:2px;">asd</span></td></tr><tr class="rich-table-row "><td class="rich-table-cell " id="j_id11:2:j_id12" style="width: 100px;">test</td><td class="rich-table-cell " id="j_id11:2:j_id14" style="width: 100px border:2px;"><span style="border:2px;">asd</span></td></tr></tbody></table>
</body>
</html>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T10:06:22+00:00Added an answer on June 1, 2026 at 10:06 am

    Could not get this to work. Solution was to throw it out and use java mail

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

ok i know this has been beat to death but i can't seam to
Work on this small test application to learn threading/locking. I have the following code,
I am new to the Java / Hibernate / Seam way of development but
I have a problem with the way sessions and conversations are handled in Seam.
I have the following problem. I have a Seam web application which features e-mail
As this does not seam to work? class Site { private $PROPERTIES = array(
How can we resolve JSF EL expressions programmatically on Seam managed beans? I have
I have this very simple html page I ported from seam to playframework....the enter
Work on asp.net vs05. I have three type of value Like:IsDesign,IsPrinting,IsInstall they are bit
I work on code something like this ... HEADERS ... int *var; void child()

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.