Standard component for rendering WPC Pages

Hi Everybody,
I'm looking for the standard component that is used to render a Web Page Composer Page.
I'd like to create a wrapper for this component. But I can't seem to find which component I need to create a wrapper for.
Does anybody know what component I need to do this? And can this component be called using a url? This would make things even easier for me.
Thanks in advance.
Kind regards
Wouter Delellio

Let's assume you want to create a custom renderer which will be used to render the error-messages (the h:messages tag). The component-family in this case is: javax.faces.Messages, the renderer-type javax.faces.Messages.
Therefor in your application's faces-config.xml add this renderer-statement (inside a render-kit, obviuosly):
<faces-config>
  <!-- other stuff like components, managed beans, navigation-rules,... -->
  <render-kit>
    <renderer>
      <component-family>javax.faces.Messages</component-family>
      <renderer-type>javax.faces.Messages</renderer-type>
      <renderer-class>my.very.special.MessagesRenderer</renderer-class>
    </renderer>
  </render-kit>
  <!-- other renderers... -->
</faces-config>The code for MessagesRenderer is very dependent on your needs, therefor I will not post something here. Basically you need to extend javax.faces.render.Renderer. For help in that camp, surf to the online tutorials or get yourself a book (I learned a lot from Kito Mann's "JSF in Action"). Additionally grab the source for Sun's RI AND Myfaces and dig into that java-code. There is a huge learning potential looking at that source-material.
hth
Alexander

Similar Messages

  • How can we change the standard RSS XML of WPC pages

    What are the properties of the standard RSS XML of the pages those are created with Web Page Composer and how can we change the XML?

    Decided to do not use.

  • Is there a Component for rendering images with Absolute URLs?

    I would like a component like <h:graphicImage> that would accept absolute URLs instead of relative ones. Does such a beast exist or should I write one myself?
    Note, I'm looking for a component because I want the image to appear in a table and the URL changes for every row. If I just handcode a <img> tag in the <h:column> tag, it doesn't get rendered for every row.

    <h:graphicImage> can use absolute URL.

  • Help for Rendering the Page Header on a OAF Page

    hi all,
    as per our requirement i need to render the Global Header on a OAF Page....can some one please help me on this Issue...
    I'm trying this code in the PR of that Page CO... but it is throwing an error...
    OAPageLayoutBean page = pageContext.getPageLayoutBean();
    page.prepareForRendering(pageContext);
    OAPageHeaderLayoutBean head = (OAPageHeaderLayoutBean)page.getPageHeader();
    head.setAttributeValue(UIConstants.RENDERED_ATTR, Boolean.FALSE);
    but it is erroring out saying that ::: oracle.apps.fnd.framework.OAException: java.lang.ClassCastException: oracle.apps.fnd.framework.webui.beans.nav.OAGlobalHeaderBean
    can some one please suggest me on this Issue
    Thank you very much in advance
    Thanks and Regards,
    S K Sravanth

    Please refer to below thread and see Sumit reply. Nice explanation given by Sumit.
    Unable to remove Global Menu from Page from iRec Accounts Page
    OAPageLayoutBean page = pageContext.getPageLayoutBean();
    page.prepareForRendering(pageContext);
    OAGlobalButtonBarBean buttons = (OAGlobalButtonBarBean)page.getGlobalButtons();
    //If Global Buttons is not null.
    if(buttons!=null)
    for(int i = 0; i < buttons.getIndexedChildCount(pageContext.getRenderingContext()); i++)
    OAGlobalButtonBean oaglobalbuttonbean = (OAGlobalButtonBean)buttons.getIndexedChild(pageContext.getRenderingContext(), i);
    if("ICX_DIAGNOSTICS".equals(oaglobalbuttonbean.getName()) || "ICX_RETURN_TO_PORTAL".equals(oaglobalbuttonbean.getName())
    ||"ICX_LOGOUT".equals(oaglobalbuttonbean.getName()) || "ICX_USER_PREFERENCES".equals(oaglobalbuttonbean.getName()))
    oaglobalbuttonbean.setAttributeValue(UIConstants.RENDERED_ATTR, Boolean.FALSE);
    //Statement Executed
    if(transaction.isLoggingEnabled(OAFwkConstants.PROCEDURE))
    transaction.writeDiagnostics(CLASS_NAME,"Hiding Button: "+oaglobalbuttonbean.getName(), OAFwkConstants.PROCEDURE);
    Thanks
    --Anil                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Can I set a standard size for all web pages, or do I need to adjust text size every single time?

    I can fix this problem with readjusting the resolution on the screen, but it works good for other programs. Now I, zoom in on almost every web page I visit. Perhaps you have a better solution?
    br
    Björn Lindström

    Upgrade your browser to Firefox 8 and check
    * getfirefox.com

  • Is their any standard web dynpro component for Sales Order Creation

    Hi ,
          I want to  create a web dynpro component for Sales order creation.So i want to know is their any stardard web dynrpo component to use or we need to develop custom component.
    Thanks & Regards,
      Aditya Tanguturi.

    Hi Aditya,
    There is a standard component for Sales order maintenance : LORD_MAINTAIN_COMP
    Note: It is also used to create / change /display the quotation/inquiry as well
    Regards,
    Rama
    Message was edited by: Ramakrishnappa Gangappa

  • E-Recruiting :Webdynpro for ABAP start page modification

    Dear Experts,
    We will be using the wbdynpro for ABAP screens for candidate profile for a succession planning implementation.
    We have a requirement to change the start page as well as the candidate profile screens.We need to change the overview screen as well.
    In the IMG activity,i can see the node to change the start page.
    Can someone please help me out with the following :
    1) Start page id : I can specify 9NNN
        Config id : ???
    What exactly is the config id? i am totally new to webdynpro technology & webdynpro ABAP.
    Documentation says "Enter the Web Dynpro configuration identifier (component configuration ID of the start page component) that defines the start page variant."
    I went to SE80 & found the component for the start page & even went to the editor for component configuration(this opens in a browser).
    Should i create my own configuration id here?
    what else do i need to do.
    2) After creating the configuration id & creating a custom start page,how will the standard link to the webdynpro start page be modified? how do i refer to this custom start page?
    Please help as it is a matter of urgency.Assistance will be appreciated & rewarded.
    Thanks in advance.
    Sowmya

    Dear Rajeev,
    Thanks for the quick response.
    The entry in the table T77RCF_WD_SP_IDC will be taken care through the entries in the start page of the IMG activity.But do this i need to know what is config id. Can you please help me with this.
    We cannot make changes in T77RCF_WD_SP_ID.
    Regards,
    Sowmya

  • Use URL Parameters in WPC Pages

    Hi all,
    Is there anyway to pass url parameters when calling a wpc page? We would like to call a wpc page and pass a URL a parameter that would then be accessible to each individual component within the wpc page. Also, how can we read the url parameter in the XSLT for the component webforms? Any help would be appreciated.
    Thanks and Regards,
    Shibendra

    That would come within flex.
    In my case, there is a SAP CRM web application which has a push button. On click of this button, flex URL is called(ie., http://172.22.41.154/MH_Bluebook_Integration2.html). On click of that button I need to pass an Object ID, which is passed withing that flex URL, something like this:
    http://172.22.41.154/MH_Bluebook_Integration2.html?objID=abcd
    I need to receive 'abcd' in the flex. Any way we could modify the HTML wrapper to send this value to swf? 

  • Any component for article/material creation

    Hi All
    Is there any standard component for UI of articles/material creation in Webdynpro ABAP or SAP Floor Plan Manager?
    Regards
    Sunit

    Hi Aditya,
    There is a standard component for Sales order maintenance : LORD_MAINTAIN_COMP
    Note: It is also used to create / change /display the quotation/inquiry as well
    Regards,
    Rama
    Message was edited by: Ramakrishnappa Gangappa

  • Unable to publish WPC page in portal 7.4

    Hi Experts,
    My portal version is 7.4 and i have created one test WPC page under the Area Management but when i am unable to  publish the WPC page the publish option is in diable mode.
    Can anyone tell me how to enable the publish option for the WPC page???
    Regards,
    Anil

    Fixed with help of How to create web page and insert content in it using Web Page Composer in SAP EP 7.3

  • Render component for painting without adding it to window resource?

    I am creating a printing utilitiy for my applications that involves using a component renderer similar to many of the java classes. Ideally, I would like to do the following:
    class PainterComponent extends JPanel implements PagedDocumentPainter {
      void paintDocument(PagedDocument doc){    
         Graphics2D g2 = doc.getCurrentPage().getGraphics();
         this.paint(g2);
         //do any additional rendering
    }For some reason the component above is not renderable (does not have a size) until it is first added to a JFrame or other window resource.
    Is there a way to prepare this component for rendering without using a GUI resource? setSize does not work.
    Thank you!
    Edited by: jayse.brock on Mar 10, 2008 11:06 PM

    I've only ever worked with building Swing applications which take care of the painting for me- all I have to do is tell them (the Components) where to be placed.
    I've just recently started working with the Graphics class, and for my first experiment I'm making a GraphicsTester class that is basically a JFrame. I do not add anything to the JFrame.
    However, I have a class MyShape,
        class MyShape extends Component {
            // Fields
            public final static int SQUARE = 0;
            private int type;
            // Constructors
            private MyShape(int type, int w, int h) {
                super();
                this.type = type;
                Dimension size = new Dimension(w, h);
                setPreferredSize(size);
                setMinimumSize(size);
                setSize(size);
            // Methods
            public synchronized Point getLocation() {
                return super.getLocation();
            public void paint(Graphics g) {
                switch (type) {
                    case SQUARE:
                        g.setColor(Color.BLACK);
                        g.drawRect(getLocation().x, getLocation().y, getSize().width, getSize().height);
                        g.fillRect(getLocation().x, getLocation().y, getSize().width, getSize().height);
                    default:
                        return;
        }Obviously I'm going to add more constant values that represent other shapes (TRIANGLE, CIRCLE, whatever) so I can test each one. The reason getLocation is synchronized is because I am implementing a way to 'move' the shape, and it involves multiple threads.
    Anywho, I draw this component using a render loop,
    while (!done) {
                    Graphics g = getGraphics();
                    shape.paint(g);
                    g.dispose();
    }I do not have to add my instance of MyShape (called shape ) to the JFrame to get it to be painted.
    It paints right where I set its location, and with the size I created it with (in the constructor).
    Don't know if that helps you, since I'm still designing this program, and I'm still a Graphics newbie too, but thought I'd share the experience.

  • Best Practice : Creating Custom Renderer for Standard Component

    I've been reading the docs and a few threads about Custom Renderers. The best practice seems to be to create a Custom Component where you need a Custom Renderer. Is this the case?
    See [this post|http://forums.sun.com/thread.jspa?forumID=427&threadID=520422]
    I've created several Custom Renderers to override the HTML provided by the Standard Components, however I can't see the benefit in also creating a Custom Component when the behaviour of the standard component is just fine.
    Thanks,
    Damian.

    It all depends on what you are trying to accomplish. Generally speaking if all you need is for the user interface output to be changed then a renderer will work just fine. A new component is usually made in order to provide some fundamental change in server side functionality not related to the user interface. - Ponderator

  • Possible to create a custom renderer for rendering standard component ?

    This is in context for creating dynamic Data tables. Is it possible to create a custom Renderer for rendering component (standard) without creating a custom component?
    namanc

    Let's assume you want to create a custom renderer which will be used to render the error-messages (the h:messages tag). The component-family in this case is: javax.faces.Messages, the renderer-type javax.faces.Messages.
    Therefor in your application's faces-config.xml add this renderer-statement (inside a render-kit, obviuosly):
    <faces-config>
      <!-- other stuff like components, managed beans, navigation-rules,... -->
      <render-kit>
        <renderer>
          <component-family>javax.faces.Messages</component-family>
          <renderer-type>javax.faces.Messages</renderer-type>
          <renderer-class>my.very.special.MessagesRenderer</renderer-class>
        </renderer>
      </render-kit>
      <!-- other renderers... -->
    </faces-config>The code for MessagesRenderer is very dependent on your needs, therefor I will not post something here. Basically you need to extend javax.faces.render.Renderer. For help in that camp, surf to the online tutorials or get yourself a book (I learned a lot from Kito Mann's "JSF in Action"). Additionally grab the source for Sun's RI AND Myfaces and dig into that java-code. There is a huge learning potential looking at that source-material.
    hth
    Alexander

  • How i can check whether a component is being placed or it's being rendered during page load...

    Hi,
    I have a piece of code which needs to be triggered only when the component gets rendered.. and at the same time it shouldn't get trigerred when author places it in the page...
    For an example, Consider i have a component called samplecomponent. Also i have a piece of code in samplecomponent.jsp which should get triggered only when the component is being rendered during page load and if author places that component in the page (ofcourse the samplecomponent.jsp will get triggered but my particular piece of code should not get triggered.. Is there any condition to check that..?
    Thanks
    Shankar .A

    Hello Shankar,
    I think this is very straight forward and you can set this condition based on any of the property of your component via check null/empty condition because when you will drop your component the properties of your component will be not initialized and you can check for at (let say you have a property which is mandetory so to instantiate that component you have to have at least that property)
    And let say if above option doesn't work for you then there is one more option of checking the edit mode of the page and based on that you can differ your code. But edit mode code will not work until you will see the page in edit mode, the code will only work when you switch to preview mode (publish mode) of page from edit mode (from sidekick at bottom you have option to go to edit and preview mode).
    WCMMode mode = WCMMode.fromRequest(request);
        if (!mode.equals(WCMMode.EDIT) && !mode.equals(WCMMode.DESIGN)) {
         //this part of code never execute when your page is in edit mode (dropped content or load the page in edit mode). but this part of code will run when you switch from edit mode to previe mode (in author node) or on  publish instance of Server because there will be no edit mode there.
    Let me know if you need more information or it doesn't help you.
    Thanks,
    Pawan

  • Standard component's overview page have many components how they handling

    Hi All,
    As we seen Standard component's overview page have many components as assignment blocks,
    how the over view page handling all this, and how these components are interacting with each?
    waht is functionality behid it & how they handling this programatically?
    Regards,
    VJMHYD

    Hi VJMHYD
      Take BP_HEAD as an example and its overview page view.
      BP head overview page will display view with in the same component and views from other component (say BP_ROLE).
    1) for the BP_ROLE first interface component has to be defined
    2) the interface component defined for BP_ROLE will be used as Component usage in BP_HEAD component (pls check the runtime repository)
    3) Create a view of type overview page and assign views to overview page.
    4) this overview page will be assigned to window.
    Components will interact through component interface and component usage
    For more infomation pls check the runtime repository or (generated repository.xml file , don't make any changes to reposito
    Thanks & Regards
    Raj

Maybe you are looking for