JSF Mail Components

Hi. I want to send a mail with a datatable displayed in the body of the mail. can any body help me out in finding a component for that.

Extending com.sun.anything is not such a hot idea, I think.
If you later switch implementations (e.g., to MyFaces), all your code will break.
In the case of Faces, that's sad, because there is a lot of good functionality in the com.sun.... stuff.
Benefit of using MyFaces: you can submit patches! (Not that I've done it.)
John.

Similar Messages

  • As a JSF Developer, I want to understand technically how the JSF View Components are rendered as html and how there events are binded to Server.I want to know each Java Class that is involved in flow.

    As a JSF Developer, I want to understand technically how the JSF View Components are rendered as html and how there events are binded to Server.I want to know how flows goes to the server and server understands the method which is to be called of managed bean. I know it is with annotation @ManagedBean and method name, but how Call is binded with annotation @ManagedBean.
    In short, i want to know the internal implementation of JSF Framework.

    As a JSF Developer, I want to understand technically how the JSF View Components are rendered as html and how there events are binded to Server.I want to know how flows goes to the server and server understands the method which is to be called of managed bean. I know it is with annotation @ManagedBean and method name, but how Call is binded with annotation @ManagedBean.
    In short, i want to know the internal implementation of JSF Framework.

  • How to access/identify components in JSF Declarative Components?

    Hi,
    I am beginner on ADF. Trying to build first Declarative Components.
    Use Case is as follows -
    I have put 2 InputTexts in Declarative Component.
    Want to set some value in second InputText (txtAddressLine2) in Validator/ValueChangeListner method of first InputText(txtAddressLine2).
    <?xml version='1.0' encoding='windows-1252'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
    <jsp:directive.page contentType="text/html;charset=windows-1252"/>
    <af:componentDef var="attrs" componentVar="component">
    <af:xmlContent>
    <component xmlns="http://xmlns.oracle.com/adf/faces/rich/component">
    <display-name>Test</display-name>
    <attribute>
    <attribute-name>
    AddressLine2
    </attribute-name>
    <attribute-class>
    java.lang.String
    </attribute-class>
    </attribute>
    <component-extension>
    <component-tag-namespace>Address3</component-tag-namespace>
    <component-taglib-uri>/Address3</component-taglib-uri>
    </component-extension>
    </component>
    </af:xmlContent>
    <af:inputText label="Address Line 1"
    binding="#{backing_Address3.txtAddressLine1}"
    id="txtAddressLine1"
    validator="#{backing_Address3.txtAddressLine1_validator}"
    autoSubmit="true" immediate="true" rendered="true"
    valueChangeListener="#{backing_Address3.txtAddressLine1_valueChangeListener}"/>
    <af:inputText label="Address Line 2" binding="#{backing_Address3.txtAddressLine2}"
    id="txtAddressLine2"
    validator="#{backing_Address3.txtAddressLine2_validator}"
    autoSubmit="true" immediate="true"/>
    </af:componentDef>
    <!--oracle-jdev-comment:auto-binding-backing-bean-name:backing_Address3-->
    </jsp:root>
    This is sample I am working on.
    I am trying following approaches in bean of Component itself.
    Approach I: This does not give any error, value is not set in txtAddressLine2
    this.getTxtAddressLine2().setValue("Some Value");
    Approach II: Not able to access txtAddressLine2 using findComponent() method
    UIViewRoot uiViewRoot = facesContext.getViewRoot();
    RichInputText inputText;
    inputText = null;
    if (uiViewRoot.findComponent("txtAddressLine2") != null) {
    System.out.println("Found ");
    inputText = (RichInputText)uiViewRoot.findComponent("txtAddressLine2");
    inputText.setValue("my value");
    } else {
    System.out.println("Not Found "); //Always not found
    Can anybody tell me correct way to access components and set their values inside Declarative Components itself?

    Thanks buddies....its resolved!
    This is how I have done it -
    Components have these 2 Input Texts :
    <af:inputText label="Label 1" id="txt1" autoSubmit="true" immediate="true"
    binding="#{DC2.txt1}" validator="#{DC2.txt1_validator}"/>
    <af:inputText label="Label 2" binding="#{DC2.txt2}" id="txt2"
    immediate="true" autoSubmit="true" partialTriggers="txt1"/>
    Code in Component Bean setting value is as follows:
    RichInputText txt22;
    txt22 = getTxt2();
    txt22.setSubmittedValue("Some Value");

  • JavaFX as renderer for JSF view components

    I don;t know if I am asking the right question.
    Since javaFX has GUI components, Does sun provide JavaFX as a default renderer for JSF applications. Wouldn't that be cool say I define my view in some standard format and just configure a renderer in some xml and then with a magic, the UI is all based on JavaFX

    ejp wrote:
    So my question is primarily 'does this make sense?' Yes. I don't see why this wouldn't make sense.
    If so, secondly, does this imply I should/shouldn't use Facelets?For now on, it's recommend to start with it. It will be the default supported view technology as per JSF 2.0 and it offers much more advantages than the legacy JSP. Here's a nice document to start with: [https://facelets.dev.java.net/nonav/docs/dev/docbook.html].
    Thirdly, what else might I need in the stack?Maybe a 3rd party component library to take out the boring UI and ajaxical work from your hands. For example RichFaces.

  • Jsf page components

    Hi,
    Iam a newbie to JSF. I want a know whether we can design a JSF page which contains Swing components? that means the look and feel must be like swing. It should not change from Os to Os or browser to browser.
    Thanks..

    You cannot use Swing components to draw a JSF page. JFC and JSF are different technologies aimed at different markets. JFC is useful for stand-alone application programming, where JSF is a web framework for web applications.
    Therefore, JSF is dependent on how the browser decides to render the HTML JSF generates. You will get close to the same page across all OSes and all browsers, but there will always be some differences in the way each page outputs.
    CowKing

  • Need more JSF UI Components

    Hello,
    I am using JSF 1.2, From where can we get more UI components which already developed ?
    Thanks
    Sarav

    There is a link to a matrix of Components on the Mojarra project site (https://javaserverfaces.dev.java.net).

  • ID attribute in JSF components

    Hello,
    I have a question about the id attribute on JSF 2 components.
    The document says, that it should be a String. Does that mean
    String constant or could it also be a el-expression resulting to a String.
    Actually I can use el-expression for id, but am not sure because of the documentation.
    Any infos about that would be great!

    Well, I stick with documentation. This is a specification. That means other iplementations like Apache myFaces
    will also stick to the documentation not for current mojorra implementation or others.
    That means, an implementation must not evaluate an el-expression. We ar here talking about evaluationg an
    el-expression and the documentation says, that id must not evaluate el-expressions. At least thats what i understand.
    So when i use mojorra and use el-expressions fpr id and change to apache implementation of jsf, i might be
    not working.
    Also i would get same result, if mojorra implementation someday does not evaluate el-expressions.
    So it is very important for me and i guess for JSF to clear this point cause it is important for development.
    One of the posters above mentioned it, is it possible to set dynamic ids for components or not.
    I always read that it is not wanted. Ids will be generated. But you can give a component an constant id.
    Like you can easy read in the documentation.
    You are interpreting the documentation. But JSF is a specification and should not let room for interpretations.
    If el-expressions are allowed it should be it should be documented.
    By the way, I think in apache implementation of JSF, el-expressions for id is not allowed.
    See here:
    http://www.mail-archive.com/[email protected]/msg20800.html
    So this implementation does exactly what documentation is saying so for me, mojorra implementation has here a bug!
    Edited by: 859302 on 18.05.2011 05:23

  • Using the Oracle ADF Data Visualization Components in a standard JSF enviro

    Hi,
    I have asked this question on the JDeveloper and ADF forum, haven't gotten a response yet:
    Using the Data Visualization Components from ADF in a JBoss 7.1.1
    .. but I would like to ask the question here as well if anyone have used the data visualization components from Oracle ADF Essentials .. the free version ... using the graph components in general, but I am looking at specifically using the gantt chart component in particular ... in a standard JSF environment ( e.g. Tomcat + Mojarra, or JBoss with the built-in Mojarra implementation ) ??
    I know there are other JSF charting components out there ...like the ones from PrimeFaces, but the gantt chart from ADF looks more ... well .. professional.

    People are not prone to answer questions that are not really a problem. You want to know something about a free product, install it and see for yourself. In any case spreading your question around is not going to help you, the people who know about ADF are still going to be looking in the ADF forum. If you don't get an answer there, what chance do you think you have that you'll get one here where it is off-topic?
    I'll close with a word of advice: you generally pay for quality. If you want professional looking charts, you'll probably have to look at commercial products.

  • Reusable JSF components - bundling a converter with a text field

    I am trying to create reusable text fields for different types of data (notes, amounts, percentages) that will use a JSF converter to implement formatting.
    Here is what I have done
    - created an application in JDeveloper that contains my components as JSF declarative components
    - created the Converter classes
    - registered the converter classes in faces-config.xml of the reusable components project
    - added my Converters to the inputText fields for each of my declarative components using the property palette
    - deployed the components as a jar file using the ADF Library Jar File archive type
    - created a second application to act as a consumer of the components
    - imported the jar file into the component palette using a file system connection
    - added the jar file to the active project's component library
    - added a converter entry for the converter I am trying to use to this project's faces-config.xml
    - created a consumer jspx page and dragged and dropped the control onto the page
    I put some system.outs in the getAsString() and getAsObject() methods of the converter I am trying to use and they are not output when I run the page. I've also set breakpoints in those methods to see if they are being called.
    I have no indication that my converter is being called.
    Can someone please confirm that what I am trying to do is possible using the declarative components?
    Any insight appreciated.
    Dave

    Actually this is working. I made the incorrect assumption that getAsString() in the converter class would be called on the initial request.
    Another thing I just noticed is that it is not necessary to reference the converter in the faces-config.xml of the consuming project. Not sure how this works, but its a nice feature :)

  • JSF 2.0 Composite components

    Hello
    I've learning and testing JSF 2.0 for fun on the latest few days, and i'm try to check if something is possible to do with composite components.
    Most o examples that I have seen do something like this:
    <util:myform image="#{resource['images:back.jpg']}"
    actionMethod="#{places.logout}"
    style="border: thin solid lightBlue"/>
    but i want to have something like:
    <util:mycomp image="#{resource['images:back.jpg']}"
    actionMethod="#{places.logout}"
    style="border: thin solid lightBlue">
    <p>insert some HTML and JSF tags here</p>
    </util:mycomp>
    where i want to grab inside my composite component the "<p>insert some HTML and JSF tags here</p>".
    Is it possible? Is there any example of this feature?
    Thanks

    Hi,
    Not sure I understand fully what you are looking to do but this my help you -
    This is a Composite Component declared in the resources folder...
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml"
          xmlns:h="http://java.sun.com/jsf/html"
          xmlns:cc="http://java.sun.com/jsf/composite">
        <head>
            <title/>
        </head>
        <h:body>
            <cc:interface />
            <cc:implementation>           
                <h:form>
                    <div>
                        <h5><h:outputLabel value="Email:" /></h5>
                        <h:inputText label="Email" id="email" style="margin-bottom:4px; width: 172px;"
                           validator="#{securityBean.validateEmail}" value="#{securityBean.email}" />
                        <h5><h:outputLabel value="Password:" /></h5>
                        <h:inputSecret  label="Password" id="password" value="#{securityBean.password}"
                             style="width: 172px;" validator="#{securityBean.validatePassword}"/>
                        <h:commandButton value="Register" type="reset" styleClass="logbt"  />
                        <h:commandButton value="Login" action="#{securityBean.performLogin}" styleClass="logbt"  />
                    </div>
                </h:form>
            </cc:implementation>
        </h:body>
    </html>And then you would be able to reuse it using something like
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml"
          xmlns:cc="http://java.sun.com/jsf/composite"
          xmlns:ro="http://java.sun.com/jsf/composite/components">
          <ro:loginPanel />                Hope this helps
    Regards
    Patrick

  • How to build custom JSF components?

    The JSF tutorials demonstrate ways to build JSF web "applications" ...
    I am interested in developing JSF web "components" ... Is there any resource that I can avail of or if it's possible for some of u to share a sample ...
    thanks much,
    keyur

    Hi Keyur,
    The tutorial does need to include a custom component example. We have been working on an example and it's just about done. We need to work out some bugs, get it working on the RI that is publicly available, and document it.
    If you need to get started in the meantime, here are some basic steps for creating a custom component:
    1. Write a tag handler class that extends javax.faces.webapp.FacesTag. In this
    class, you need:
    * a getRendererType method, which returns the name of your custom renderer, if
    you are using one (explained in step 4).
    * a createComponent method, which returns an instance of your custom component.
    * an overrideProperties method, in which you set all of the new attributes of
    your component.
    2. Create a TLD that associates the custom tag to the tag handler.
    3. Write a class that either extends a standard JSF component or extends directly from javax.faces.component.UIComponentBase.
    If a standard JSF component has most of the functionality you need, you can extend the component class that defines this component. These classes are found in the javax.faces.component package. Otherwise, extend UIComponentBase.
    4. Either create a custom renderer by extending javax.faces.render.Renderer, or include the rendering code in one of the encodeXXX methods of your custom
    component class. From the encodeXXX method, use the ResponseWriter from FacesContext to write out the markup. If what you need to render is fairly
    simple, it's easier to include the rendering code in the component class.
    5. From your ServletContextListener instance, register your Renderer to the standard RenderKit by: using RenderKitFactory to get the RenderKit, and using
    addRenderer on the RenderKit to add your new Renderer. You only need to do this if you created a Renderer in step 4.
    6. Declare your new TLD in your JSP page and use the tag in the page.
    This will all be clearer once we publish the custom component documentation. We are working on it presently and will announce its release on this forum.
    Thank you for your interest in JavaServer Faces

  • [ANNOUNCE] Ourfaces: Open Source Customer UI Components

    Hi,
    we have started an open source project with the aim to provide commonly needed customer JSF UI components. The project's name is Ourfaces.
    We are not implementing the JSF standard but like to share useful UI components based on the standard under the Sun Public License. Therefore the components can be used freely, can be customized or enhanced by everyone, and improvements should be given back to the community.
    Our vision is to have all commonly needed JSF UI components available under open source license - ready to plug them into any JSF supporting tool.
    However, we are starting modestly: We enhanced the tree component provided by the reference implementation and set up a project at java.net. We are trying to get the first component running robustly. Next component on the roadmap is a table component.
    If you are interested have a look at
    ourfaces.dev.java.net
    If you think that we are on the right way and you like to bring us a step further towards the vision, please, send me an e-mail.
    mailto:[email protected],
    Matthias Unverzagt

    Hi Matthias,
    Let me state upfront that I am running JSF1.0 and have some other apps running fine.
    I downloaded the new version. However, it looks a bit odd.
    I looked at the table examples.
    table/table.jsp is coded to use a tag called "ourfaces:panel_resultset". (Shown below) However this tag is not mentioned in the tld.
    Also, the tld for table is very small only two attributes.
    I tried to make the other examples work. But the tags are not even balanced. In:
    table/example1.jsp
    table/example2.jsp
    the view tag is not closed properly.
    As a result none of the table samples work.
    I do see the latest timestamps on the files.
    Please let me know if things are not quite ready yet?
    Thanks,
    Vinay
    //================================================
    <h:form formName="resultsForm" bundle="demoBundle">
    Rendered via Faces components:
    <ourfaces:panel_resultset
    columnClasses="list-column-center,list-column-left,
    list-column-center, list-column-right"
    headerClass="list-header"
    panelClass="list-background"
    rowClasses="list-row-even,list-row-odd"
    navFacetOrientation="NORTH"
    rowsPerPage="20">
    //================================================

  • What is the best way to add AJAX support in an existing JSF application?

    I've done some research and I found several options listed below:
    1.Use JSF AJAX components like JBOSS RichFaces
    2. Use Client JavaScript Library like DOJO
    3. Use JavaScript directly
    My question is what is the best way to do that?
    And for approach 2, is it possible to mingle DOJO and JSF ?
    Thanks a million for your answers.

    If you can't wait for JSF 2 GA or don't want to use beta, look at project Dynamic Faces. It looks like JSF 2 AJAX support was based on the Dynamic Faces project, so it should be easy to switch from DynaFaces to JSF 2.

  • HOW TO SEND NOTIFICATION THRO. MAIL

    I have installed workflow 2.6.4 on oracle 10.2.
    1) How to send notification thro mail?
    2) what kind of setting I need to do?
    3) Do I need to include all users email address in Microsoft Outlook contact or in WF_LOCAL_ROLES?
    Regards,
    Jitendra

    The Workflow Agent Listener and Workflow Notification Mailer components should be up and running in order for e-mails to be received from Oracle Workflow. These components are managed using batch files located on $ORACLE_HOME/wf/admin. You may verify the status and view the log files of these components using Workflow Manager UI accessible from Enterprise Manager.
    Thanks

  • OCS 10.1.2 on Win2003 - mail application cannot start after rebooting serve

    Hi
    We have installed OCS 10.1.2 on Win2003 (single box) and the mail appln was running OK after the installation. On rebooting the server, we found some components that were not started (eg Internet directory for Infra) which we started manually via EM.
    The Mail application however cannot be started giving the error message for all the mail components:
    - failed to start a managed process after the maximum retry limit
    We tried to start it manually using
    - oesctl startup midtierhost:um_system:xxx
    and even got the message:
    - All processes already started for midtierhost:um_system:xxx
    However, in EM, or when doing a
    - oesctl show status midtierhost:um_system:xxx, we get the error message:
    - midtierhost:um_system:nntp_in:116107583446856959 <no response>
    Any idea of where we can check to see what's going wrong? I'm not sure of where to check the logs for possible errors.
    Thanks for your assistance

    Glad I could be of help - maybe you could help me out too, please? I have the following problem: when I create an appointment with Calendar, and add some participants to it (with email notifications option checked), at first everything seems to go the right way.
    But if I delete the appointment/meeting, the following happens:
    - the notifications regarding the delete of the meeting are not sent
    - the whole mail system seems to hang, and I am not able to send emails anymore
    Do you have the same behaviour on your installation? It would be useful to me just to know if other people are having this trouble....
    Thank you!

Maybe you are looking for