Nesting JSF components in a  custom component

I'm creating a new JSF custom component. my component needs to include an input text and a list box. my question is : how do I add these components to my JSF component ? I want to use to JSF component to render them rather then encoding the HTML myself. how can I do it ?
I was told I need to use encodeChildren method somehow but I don't know how ?

I finally found how to set a default skin to a custom component so that users of my component will not have to set again the skinClass value of my component.
You have to create a defaults.css file at the root of your library and tell the compiler to take it into account.
The remaining problem is about the compiler. There are some steps before success and they are a bit mysterious/unclear....
I found 2 or 3 blog articles explaining those steps but the compiler arguments to use are all differents in each article...
Here are the links I found:
http://www.unitedmindset.com/jonbcampos/2010/05/12/creating-custom-spark-components/
http://www.betadesigns.co.uk/Blog/2010/05/14/default-skin-for-custom-flashbuilder-componen ts/
http://flexdevtips.blogspot.com/2009/06/default-stylesheet-in-swc-flex-library.html
Following the first article guidelines has been successful for me but I'm not marking this topic as Resolved because I'd like some answers about this whole thing...

Similar Messages

  • Nesting/Nested JSF components

    Please excuse what should be a rudimentary question, but I can't seem to find any documentation on how to nest JSF components.
    For example, given the following objects:
    public class Order {
       private Address deliveryAddress;
       private Address billingAddress;
       //getters and setters...
    public class Address
        private String street;
        private String city;
        //getters and setters...
    }and the jsf managed beans:
    public class OrderModel {
        private Order order;
        // getters/setters and  jsf state, handlers, etc ...
    public class AddressModel {
       private Address address;
       // getters/setters and jsf state, handlers, etc ...
    }with faces-config.xml:
        <managed-bean>
            <managed-bean-name>orderModel</managed-bean-name>
            <managed-bean-class>OrderModel</managed-bean-class>
            <managed-bean-scope>session</managed-bean-scope>
        </managed-bean>
        <managed-bean>
            <managed-bean-name>addressModel</managed-bean-name>
            <managed-bean-class>AddressModel</managed-bean-class>
            <managed-bean-scope>session</managed-bean-scope>
        </managed-bean>
    ...So, my question is, how can I go about writing a reusable order and address component so I can call nest the address component within my order template?
    I guess I'm looking for something like (just a guess - not actual working code):
    order-template.jspx:
    <f:view xmlns:h="http://java.sun.com/jsf/html"
            xmlns:f="http://java.sun.com/jsf/core"
            xmlns:ui="http://java.sun.com/jsf/facelets">
    Delivery Address:<br/>
        <ui:decorate template="address-template.jspx">
    <!-- can I pass in #{orderModel.order.deliveryAddress} here? -->
        </ui:decorate>
    Billing Address:<br/>
        <ui:decorate template="address-template.jspx">
    <!-- can I pass in #{orderModel.order.billingAddress} here? or use something other than ui:decorate? -->
        </ui:decorate>
    </f:view>
    address-template.jspx:
    <f:view xmlns:h="http://java.sun.com/jsf/html"
            xmlns:f="http://java.sun.com/jsf/core"
            xmlns:ui="http://java.sun.com/jsf/facelets">
    street:<h:inputText value="#{addressModel.address.street}" />
    city:<h:inputText value="#{addressModel.address.city}"  valueChangeListener="#{addressModel.onCityChanged}"/>
    </f:view>I'm guessing the solution lies in having the OrderModel contain an AddressModel for the delivery and billing address, then pass #{orderModel.deliveryAddressModel} and #{orderModel.billingAddressModel} into the address template.
    So really my question is simply how do I pass those objects into the address-template.jspx?
    Many many thanks in advance!

    You want to use <ui:include> instead of <ui:decorate>. E.g.
    Delivery Address:<br/>
    <ui:include src="/WEB-INF/includes/address-template.jspx">
        <ui:param name="address" value="#{orderModel.order.deliveryAddress}" />
    </ui:include>
    Billing Address:<br/>
    <ui:include src="/WEB-INF/includes/address-template.jspx">
        <ui:param name="address" value="#{orderModel.order.billingAddress}" />
    </ui:include>Then you can refer to #{address} within address-template.jspx.
    Be aware however that Facelets is not particularly careful about protecting namespaces with includes and such. This won't be a problem if you use a unique name for the parameter.

  • Best practices for adding components in a composite custom component

    Hello,
    I am developing a custom, composite JSF component need to dynamically add child components in my renderer class. I've noticed that people add components to a custom component in many different ways. I'd like to follow JSF best practices when developing this component - of the following approaches, which would you recommend? Or is there yet another approach I should be using?
    1) in the encodeBegin method of my renderer class, create a new component, add it to the component tree, and let the page life cycle take care of the rendering:
    HtmlDataList dimensionStateGroupDataList = (HtmlDataList) app.createComponent( HtmlDataList.COMPONENT_TYPE );
    //set properties on dimensionStateGroupDataList
    component.getChildren().add(dimensionStateGroupDataList);
    2) in either the encodeBegin or encodeEnd method, create a component and encode it:
    HtmlDataList dimensionStateGroupDataList = (HtmlDataList) app.createComponent( HtmlDataList.COMPONENT_TYPE );
    //set properties on dimensionStateGroupDataList
    dimensionStateGroupDataList.encodeBegin();
    dimensionStateGroupDataList.encodeEnd();
    Both of these methods are functional, and I prefer the first (why encode children if you don't have to?), but I am interested in other people's take on how this should be done.
    Thanks for your help.
    -Christopher

    My bad, sorry, wasnt concentrating, Im afraid I have no experience with portlets, but I would have thought that you can mimic the outputLinkEx in you renderer by encoding your own links?
    If you were to bind a backing bean variable to an outputLinkEx what would it be? Not understanding portlets, or knowing what an outputLinkEx is may be hindering me, but you should be able to create an instance of it in code like (this example uses HtmlOutputLink, you would need to know which component to use):
    HtmlOutputLink hol = new HtmlOutputLink();
    hol.set....Then set any attributes on it, and explicitly call its encodeStart, encodeEnd functions. Is that way off the mark.

  • Custom component by aggregation of components

    I developed with some my custom and starndard component somthing like input text with server autocompletion.
    It works using an HtmlInputText, then there is one my custom component, and than I use a HtmlDataTable to show the list for autocompletion.
    So in my jsp i use somthing like:
    <my:wrapper>
    <h:inputText.../>
    </my:wrapper>
    <h:dataTable>
    <h:column>
    <h:outputLink..><h:outputText../></h:outputLink>
    </h:column>
    <h:dataTable>
    Ok now I want to aggregate all these components in one custom component.
    How can I do this?
    Should I create only a new tag, or also new component?
    How to create the aggregation of components in the java code?
    Thanks a lot.
    Alberto Gori.

    Take a look at:
    http://forum.java.sun.com/thread.jspa?forumID=427&threadID=556688
    http://forum.java.sun.com/thread.jspa?forumID=427&threadID=532149
    http://forum.java.sun.com/thread.jspa?forumID=427&tstart=0&threadID=549925
    Sergey : http://jsfTutorials.net

  • Best strategy for variable aggregate custom component in dataTable

    Hey group, I've got a question.
    I'd like to write a custom component to display a series of editable Things in a datatable, but the structure of each Thing will vary depending on what type of Thing it is. So, some Things will display radio button groups (with each radio button selecting a small set of additional input elements, so we have a vertical array radio buttons and beside each radio button, a small number of additional input elements), some will display text-entry fields, and so on.
    I'm wondering what the best strategy for tackling this sort of thing is. I'm sort of thinking I'll need to do something like dynamically add to the component tree in my custom component's encodeBegin(), and purge the extra (sub-) components in encodeEnd().
    Decoding will be a bit of a challenge, maybe.
    Or do I simply instantiate (via constructor calls, not createComponent()) the components I want and explicitly call their encode*() and decode() methods, without adding them to the view tree?
    To add to the fun of all this, I'm only just learning Faces (having gone through the Dudney book, Mastering JSF, and writing some simpler custom components) and I don't have experience with anything other than plain vanilla JSP. (No EJB, no Struts, no Tapestry, no spiffy VisualDevStudioWysiwyg++ [bah humbug, I'm an emacs user]). I'm using JSP 2.0, JSF 1.1_01, JBoss 4.0.1 and JDK 1.4.2. No, I won't upgrade to 1.5 (yet).
    Any hints, pointers to good sample code? I've looked at some of the sample code that came with the RI and I've tried to navigate the JSF Blueprints stuff, but I haven't really found anything on aggregating components into a custom component. Did I miss something obvious?
    If this isn't a good question, please let me know how I can sharpen it up a bit.
    Thanks.
    John.

    Hi,
    We're doing something very similar. I had a look at the Tomahawk Date component, and it seems to dynamically created InputText components in the encodeEnd(). However, it doesn't decode this directly (it only expects a single textual value). I expect you may have to check the request yourself in decode().
    Other ideas would be appreciated, though - I'm still new to JSF.

  • How to carry across a Facet through nested composite components

    Hello
    I have two nested composite components, with an inner component that does interesting things, and an outer that groups some child components in a convenient package. I would like to use a Facet in the inner component, and it would be nice if you could declare it on the outer component and have it passed through. But I am unable to achieve this, and there is no documentation on how it should work.
    I've made a test project where I try to use insertFacet in the outer component.
    Main page 'index.xhtml':
    <?xml version='1.0' encoding='UTF-8' ?>
    <!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:f="http://java.sun.com/jsf/core"
          xmlns:h="http://java.sun.com/jsf/html"
          xmlns:test="http://java.sun.com/jsf/composite/facettest">
        <h:head>
            <title>NestedFacetTest</title>
        </h:head>
        <h:body>
            <div>PageTopElement</div>
            <test:outerCC>
                <f:facet name="testFacet">
                    <div>FacetElement</div>
                </f:facet>
            </test:outerCC>
            <div>PageBottomElement</div>
            <br/>
            <div>PageTopElement2</div>
            <test:innerCC>
                <f:facet name="testFacet">
                    <div>FacetElement2</div>
                </f:facet>
            </test:innerCC>
            <div>PageBottomElement2</div>
        </h:body>
    </html>The outer composite component 'outerCC.xhtml' where I would like the Facet to be carried across:
    <?xml version='1.0' encoding='UTF-8' ?>
    <!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:composite="http://java.sun.com/jsf/composite"
          xmlns:test="http://java.sun.com/jsf/composite/facettest">
        <!-- INTERFACE -->
        <composite:interface>
            <composite:facet name="testFacet"/>
        </composite:interface>
        <!-- IMPLEMENTATION -->
        <composite:implementation>
            <div>OuterTopElement</div>
            <test:innerCC>
                <composite:insertFacet name="testFacet"/>
            </test:innerCC>
            <div>OuterBottomElement</div>
        </composite:implementation>
    </html>The inner composite component 'innerCC.xhtml' where I would like to use the Facet:
    <?xml version='1.0' encoding='UTF-8' ?>
    <!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:composite="http://java.sun.com/jsf/composite">
        <!-- INTERFACE -->
        <composite:interface>
            <composite:facet name="testFacet"/>
        </composite:interface>
        <!-- IMPLEMENTATION -->
        <composite:implementation>
            <div>InnerTopElement</div>
            <composite:renderFacet name="testFacet"/>
            <div>InnerBottomElement</div>
        </composite:implementation>
    </html>When I run the main page, I get the Facet text when I use innerCC directly, but not when I use outerCC. What do I do wrong, and how can I change the code so that the Facet is carried through to a nested composite component?
    I run GlassFish 3 with Mojarra 2.0.2 (FCS b10).
    Kind regards,
    Thomas Jahnsen

    I added an issue to Mojarra:
    http://java.net/jira/browse/JAVASERVERFACES-2219
    Feel free to vote for this that it will be implemented earlier.

  • Nest array in a custom component

    Hello and thanks in advance,
    I am building a custom datagrid component name custDG. It is a canvas containing the DG and some other visuals. So the actual component is based on canvas and has a DataGrid nested.
    I have also build a custom class name config based on Array to hold the DG column information
    AND a custom object class name col to hold each column information inside the config array class...
    My question is how to make it possible for user to nest the array and columns inside the custom component when adds it to an application. For example:
    <mike:custDG... >
         <mike:config>
              <mike:col.../>
              <mike:col.../>
              <mike:col.../>
         </mike:config>
    </mike:custDG... >
    Want to make something similar to the columns-datagridcolumn thingie but with custom classes in a custom component.
    Anyone plz?
    Thanks

    I finally found how to set a default skin to a custom component so that users of my component will not have to set again the skinClass value of my component.
    You have to create a defaults.css file at the root of your library and tell the compiler to take it into account.
    The remaining problem is about the compiler. There are some steps before success and they are a bit mysterious/unclear....
    I found 2 or 3 blog articles explaining those steps but the compiler arguments to use are all differents in each article...
    Here are the links I found:
    http://www.unitedmindset.com/jonbcampos/2010/05/12/creating-custom-spark-components/
    http://www.betadesigns.co.uk/Blog/2010/05/14/default-skin-for-custom-flashbuilder-componen ts/
    http://flexdevtips.blogspot.com/2009/06/default-stylesheet-in-swc-flex-library.html
    Following the first article guidelines has been successful for me but I'm not marking this topic as Resolved because I'd like some answers about this whole thing...

  • Custom component composed of other components

    Hello.
    I have a form (long, but simple) that is reused a few times across my applicaition. It would be great if I could package it as a JSF component. But I see no obvious way to create an UIComponent composed of other UIComponents.
    Are UIComponents really meant to be written from scrach, each parsing it's own request parameters and outputting raw html? Am I missing something?
    Thanks.

    Thanks for the quick reply, but I'm still stuck...
    How do I go about writing a composite custom
    component? Instanciating all sub components and
    delegating encoding and decoding to each? That's the road I try to take first.
    - Construct a SMALL test-bed application to develop your component.
    - consider implementing the naming container interface if you add components as children
    - consider acquiring "JSF in Action" from Kito Mann, it's the book with most samples for component building
    - announce "absences" to your family. It takes longer than you think beforehand ;-)
    - If your servlet-container starts up in less than 10 seconds it's better...
    I'm afraid to be asking too much, but does anyone
    know where can I find an example of this? I'm
    currently browsinng the MyFaces code, but so far
    whithout much luck....Well the myfaces code is the second best source after JSF in action and then there are a few tutorials on the net... time to surf to google and http://www.jsftutorials.net/
    hope this helps
    Alexander

  • Can't instantiate JSF Custom Component

    I'm hoping some of you expert (or at least seasoned) JSF custom component developers might be able to lend some insight into the "Can't instantiate class" problem. I have a custom component which extends another component (which happens to be Oracle ADF's panelGroup), and I've verified that everything is in place:
    1. Component class uses correct component type referenced by faces-config.xml and tag class
    2. Renderer type referenced in faces-config.xml matches that of the renderer type in component class
    3. There is a default constructor (no args) for the component class, which also sets the renderer type
    4. TLD with tag is correct
    All classes are definitely in the classpath, as I have another custom component in the same packages which loads and is used just fine.
    Any ideas would be appreciated.
    Thanks,
    Shawn Bertrand
    Tyco Electronics

    So, is no one else having any problems when using the new JSF components from Java Studio Creator 2 in their existing projects? I can make simple projects in Creator and run them on PointBase and Tomcat and can deploy and run from Eclipse using MyEclipse but I cannot get my existing project working and I am wondering if their is some sort of conflict between the new JSF components and legacy Struts stuff in that project or if perhaps Spring is someone interferering. Kind of at a loss right now...

  • 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

  • Custom components : contains other existing component

    How do i write a component with the use of existing component, i mean i need a component in which user can enter his address information. so i need 2 or 3 textboxes, a combo etc,.
    right now i doing this in my custom component class, but not working.
    HtmlInputText address = new HtmlInputText();
    address.setValue( "test address" );
    context.getViewRoot().getChildren().add( address );
    but my address field is not added.

    You create a new component as a child of UIViewRoot.
    But UIViewRoot's rendersChildren property is false;
    that means encodeChildren method is not invoked.
    Encodeing of other components under <f:view> is done by the corresponding
    Tag Handler; whereas your new component has no corresponding one.
    I think you should create a new component under some one
    whose rendersChildren property is true (e.g. PanelGrid).

  • JSF custom component

    Hi
    I have created a JSF cutom component , which has some javascript files. If i use the component within the same project my path for accessing the JS files is :- js/task.js (Its in public/html folder) .
    My problem is that when I use this custom component in some other project i am not able to access the js file ( Js file are deployed with other source file in ADF Library Jar) . As I have to hard code the path of JS files in the render can any one please tell me what will be the path for accessing the JS files.
    i heard ADFLibraryFilter is used for the purpose. Anyone please shed more light on it.

    Thanx Frank for your help .
    I am generating html from the rendererm, in the encodeBegin method i have now written <script type="text/javascript" src="adflibResources/js/task.js"></script>
    But still the script isn't loading on the page
    I added the following code in web.xml but Jdeveloper (Studio Edition Version 11.1.1.1.0) is complaining that "refernce oracle.adf.library.webapp.LibraryFilter and oracle.adf.library.webapp.ResourceServlet not found. I am using Fusion Web Application (ADF) as the application template.
    <filter>
    <filter-name>ADFLibraryFilter</filter-name>
    <filter-class>oracle.adf.library.webapp.LibraryFilter</filter-class>
    <init-param>
    <param-name>provider-lazy-inited</param-name>
    <param-value>true</param-value>
    </init-param>
    </filter>
    <filter-mapping>
    <filter-name>ADFLibraryFilter</filter-name>
    <url-pattern>/*</url-pattern>
    <dispatcher>FORWARD</dispatcher>
    <dispatcher>REQUEST</dispatcher>
    </filter-mapping>
    <servlet>
    <servlet-name>adflibResources</servlet-name>
    <servlet-class>oracle.adf.library.webapp.ResourceServlet</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>adflibResources</servlet-name>
    <url-pattern>/adflib/*</url-pattern>
    </servlet-mapping>

  • Custom component not found by jsf (mojarra)

    Coming from this link http://forums.sun.com/thread.jspa?threadID=5446475&tstart=0
    I have managed to get things together but for some reason, my app is not able to find the custom component at runtime. I have the component configured in my web.xml so that is not it. I am not sure if this has something to do with the fact that I am not able to see any JSF 2.0 annotations during runtime. I actually using spring for my component scan due some issues I had earlier on with JSF. At that time I was told that because I am using maven tomcat plugin for development, I might not be able to get that working. The explanation was that maven tomcat plugin uses tomcat 6.012 that does not support something, I cannot remember that makes JSF behave properly. Some advised me to use jetty but I have had a chance to try that. Has someone faced this kind of issues before? If so please let me know I am running out of time for this project. Thanks a million in advance.
    Edited by: mota_nginya on Aug 9, 2010 6:31 AM

    mota_nginya wrote:
    Coming from this link http://forums.sun.com/thread.jspa?threadID=5446475&tstart=0
    I have managed to get things together but for some reason, my app is not able to find the custom component at runtime. I have the component configured in my web.xml so that is not it. I am not sure if this has something to do with the fact that I am not able to see any JSF 2.0 annotations during runtime. I actually using spring for my component scan due some issues I had earlier on with JSF. At that time I was told that because I am using maven tomcat plugin for development, I might not be able to get that working. The explanation was that maven tomcat plugin uses tomcat 6.012 that does not support something, I cannot remember that makes JSF behave properly. Some advised me to use jetty but I have had a chance to try that. Has someone faced this kind of issues before? If so please let me know I am running out of time for this project. Thanks a million in advance.What do you mean you have the component configured in web.xml? While I can't say what effect Spring has on things as I don't use Spring, all you need are the annotations on the component, the entries in the -taglib.xml if you're using facelets, and an "empty" (root-element only) faces-config.xml set to version 2.0 in the jar if the component is jarred (as opposed to being part of the .war).
    When you say JSF can't find your component, are you getting an error message? Does the tag just appear in the browser unprocessed?
    Testing on GlassFish would be helpful (for me) as there are no known issues there in this area.

  • Can I write Design-time for JSP custom tag(not JSF components)

    I have some old JSP custom tags(not JSF components), and I want to use them in the IDE through the toolbox.
    Now I have already written the BeanInfos for these tags, and they can be drag from the toolbox; but it will throw a Exception when render the tags, and the properties in the Property Editor are not which I describe in the BeanInfos.
    How can I write Design-time for these tags? or whether it is possible to write the Design-time for these tags?
    the Exception is shown as follow:
    java.lang.ClassCastException
         at com.sun.rave.insync.faces.FacesPageUnit.renderNode(FacesPageUnit.java:1347)
    [catch] at com.sun.rave.insync.faces.FacesPageUnit.renderBean(FacesPageUnit.java:1086)
         at com.sun.rave.insync.faces.FacesPageUnit.getFacesRenderTree(FacesPageUnit.java:993)
         at com.sun.rave.css2.FacesSupport.getFacesHtml(FacesSupport.java:152)
         at com.sun.rave.css2.CssContainerBox.addNode(CssContainerBox.java:373)
         at com.sun.rave.css2.CssContainerBox.createChildren(CssContainerBox.java:354)
         at com.sun.rave.css2.DocumentBox.createChildren(DocumentBox.java:90)
         at com.sun.rave.css2.DocumentBox.relayout(DocumentBox.java:160)
         at com.sun.rave.css2.PageBox.layout(PageBox.java:392)
         at com.sun.rave.css2.PageBox.relayout(PageBox.java:454)
         at com.sun.rave.css2.DocumentBox.redoLayout(DocumentBox.java:313)
         at com.sun.rave.css2.PageBox.redoLayout(PageBox.java:460)
         at com.sun.rave.css2.DocumentBox.changed(DocumentBox.java:634)
         at com.sun.rave.designer.DesignerPaneUI$UpdateHandler.changedUpdate(DesignerPaneUI.java:1012)
         at com.sun.rave.text.Document.fireChangedUpdate(Document.java:851)
         at com.sun.rave.text.Document$5.run(Document.java:631)
         at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:454)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)

    I have some old JSP custom tags(not JSF components), and I want to use them in the IDE through the toolbox.
    Now I have already written the BeanInfos for these tags, and they can be drag from the toolbox; but it will throw a Exception when render the tags, and the properties in the Property Editor are not which I describe in the BeanInfos.
    How can I write Design-time for these tags? or whether it is possible to write the Design-time for these tags?
    the Exception is shown as follow:
    java.lang.ClassCastException
         at com.sun.rave.insync.faces.FacesPageUnit.renderNode(FacesPageUnit.java:1347)
    [catch] at com.sun.rave.insync.faces.FacesPageUnit.renderBean(FacesPageUnit.java:1086)
         at com.sun.rave.insync.faces.FacesPageUnit.getFacesRenderTree(FacesPageUnit.java:993)
         at com.sun.rave.css2.FacesSupport.getFacesHtml(FacesSupport.java:152)
         at com.sun.rave.css2.CssContainerBox.addNode(CssContainerBox.java:373)
         at com.sun.rave.css2.CssContainerBox.createChildren(CssContainerBox.java:354)
         at com.sun.rave.css2.DocumentBox.createChildren(DocumentBox.java:90)
         at com.sun.rave.css2.DocumentBox.relayout(DocumentBox.java:160)
         at com.sun.rave.css2.PageBox.layout(PageBox.java:392)
         at com.sun.rave.css2.PageBox.relayout(PageBox.java:454)
         at com.sun.rave.css2.DocumentBox.redoLayout(DocumentBox.java:313)
         at com.sun.rave.css2.PageBox.redoLayout(PageBox.java:460)
         at com.sun.rave.css2.DocumentBox.changed(DocumentBox.java:634)
         at com.sun.rave.designer.DesignerPaneUI$UpdateHandler.changedUpdate(DesignerPaneUI.java:1012)
         at com.sun.rave.text.Document.fireChangedUpdate(Document.java:851)
         at com.sun.rave.text.Document$5.run(Document.java:631)
         at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:454)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)

  • Problem Adding Custom JSF Components to Oracle JDeveloper 10g (10.1.3) Prev

    I'm having a problem on Adding Custom JSF Components to Oracle JDeveloper 10g (10.1.3) Preview (http://www.oracle.com/technology/products/jdev/101/collateral/101/adffaces/howto_customcomponents.html)
    The step 1 of 5 isn't visible for me and I don't see the "Install from local file" option to select the adf-faces-bundle.zip from my file system. The OTN check for updates don't prove the ADF Faces...
    What may I do?

    And...
    If "Check for Updates Wizard" is not launched, you can try to set LANG.
    see: 10.1.3 Can't not launch Update Wizard in Japanese environment.
    10.1.3 Can't not launch Update Wizard in Japanese environment.
    Thanks.
    Takuya Ono

Maybe you are looking for