Custom component with additional tags

Hi. I need to write complicated custom JSF component.
I know how to write simple custom components, and receive String variables from tag attributes e.g.
https://github.com/devalentino/temp/blob/master/src/main/java/net/monopolyclub/components/component/UserData.java
But now I need to write custom component with additional tags (for example like dataTable and column tags).
How can I write such component? How can I receive collections in my component? How can I work with additional tags in my component.
for example I need something like:
<m:chat>
     <m:tab value="#{UserList}" />
     <m:message value="#{MesageMap}" />
</m:chat>
where UserList - Collection with current users and MessageMap is Map with User as key and message as value.

Iam using pt:ptdata.joincurrcommunitydata
here is some code
<pt:ptdata.joincurrcommunitydata pt:id="menutabsjoin" />
<pt:logic.foreach pt:var="temp2" pt:data="menutabsjoin">
<span class="CommunityPage">
<pt:core.html href="$temp2.url" pt:tag="a">
<pt:core.html pt:tag="img" src="$temp2.img" alt="$temp2.title" border="0" align="absmiddle" height="$temp2.imgheight"      width="$temp2.imgwidth" />
                    <pt:logic.value pt:value="$temp2.title" />
                         </pt:core.html>
                         </span>
                         </pt:logic.foreach>
But the URL that is generated is not having the CommunityID, hence it errors out saying object not found.
Any help would be appreciated?
Thanks
kartik

Similar Messages

  • Writing a custom component with multiple fields.

    Does anyone have some pointers on writing a custom component that properly handles multiple input fields?
    An example usage might be as follows:
    Assume the following java classes:
    public interface Address {
        //... getters/setters for Address.
    public class Company{
        Address getAddress(){...};
    }The tag usage might be something like the following:
    <custom:address value="#{myCompanyBean.address}" />
    Extending UIComponentBase I can easily render the output and create all the needed input elements. I'm also able to properly retrieve the submitted values in the decode method. But I'm unsure how to handle the "UpdateModelValues" step. Do I simply over-ride processUpdates, or is there more housekeeping to be done?
    Thanks.

    I'm guessing that doing addChild inside createChildren causes an infinite loop.
    Why aren't you just doing this with MXML?  it would be a lot simpler.

  • JSF-Custom Component with EventHandling

    Dear All,
    I wanted to write my own component with event handling.
    This is my requirement:
    In my JSP, I'll put my cusom component tag for displaying 10 records and with prev and next buttons. after clicking prev button, i should get previouse 10 records and if i click next button, i should get next 10 records.
    so, my component should render
    1. 10 records
    2. Prev button
    3. Next button.
    After clicking prev button it should render previouse 10 records and also prev and next button.
    I do not know whether it is possible with JSF or not and also i'm not finding any example which explaining above situation.
    My jsp should contain only my custom tag like
    <mine:listRecords/>
    Tag Handler of listRecords tag should render 10 records and prev and also next button. After clicking prev, i should get 10 previouse records and and both the buttons and so on.
    advanced thanks,
    ram

    It is certainly possible to write a component that embeds its own navigation and paging as you describe. On the other hand, you can also assemble this kind of functionality out of a combination of the existing simple components. The "repeater" example illustrates exactly the kind of application you are talking about (and the same techniques will work fine with the standard <h:dataTable> component as well).
    Craig

  • Problem custom component with children in RestoreView phase

    Hi there!
    I've got a problem with a custom component that I am writing. It consists of several UISelectOne and UIInputText components. Depending on the value selected in the UISelectOne components, the UISelectOne and UIInputText components may change. Therefore I attached a ValueChangeListener to the UISelectOne components. So far, so good.
    The problem is, when the event is triggered, I get an ArrayIndexOutOfBoundsException. It took me a while to track it down. The problem seems to be, that during the Restore View phase, the StateManager's restoreComponentTreeStructure method first creates the component again and later restores its tree structure.
    During creation of the component, its constructor is called in which I add the children to the component. While restoring the tree structure, the StateManager again adds the children to the component. So the list of my component's children contains each child twice.
    The exception is due to the fact that in the saved state array only the original component's states are saved (which is perfectly right). So while restoring state and iterating through the component's children, the exception is thrown for the first child which is twice in the list (which is also perfectly right).
    I hope this description is not too confusing. My question is, if anyone can give me a hint what I am doing wrong here? How can I avoid the component being initialized again? Or where should I add the children to the component?
    Thanks for any advices!

    Hi again,
    I've perpared a minimal example (which in fact is quite big, but considering it's a custom tag it's probably not possible to make it smaller):
    The UITest class (as you can see I add the child component in the constructor):
    package test;
    import java.io.IOException;
    import java.util.*;
    import java.util.ArrayList;
    import java.util.List;
    import javax.faces.application.Application;
    import javax.faces.component.*;
    import javax.faces.context.FacesContext;
    import javax.faces.context.ResponseWriter;
    import javax.faces.event.ValueChangeEvent;
    import javax.faces.model.SelectItem;
    public class UITest extends UIInput {
      public static final String COMPONENT_TYPE = "Test";
      public static final String COMPONENT_FAMILY = "Test";
      private UISelectOne selectOne;
      private UISelectItems selectItems;
      public UITest(){
        Application application = FacesContext.getCurrentInstance().getApplication();
        selectItems = (UISelectItems)application.createComponent(UISelectItems.COMPONENT_TYPE);
        List items = new ArrayList();
        items.add(new SelectItem("One", "one"));
        items.add(new SelectItem("Two", "two"));
        selectItems.setValue(items);
        selectOne = (UISelectOne)application.createComponent(UISelectOne.COMPONENT_TYPE);
        selectOne.getAttributes().put("onchange", "submit()");
        Class[] params = {ValueChangeEvent.class};
        selectOne.setValueChangeListener(application.createMethodBinding("#{TestBean.valueChange}", params));
        selectOne.getChildren().add(selectItems);
        this.getChildren().add(selectOne);
      public void encodeChildren(FacesContext context) throws IOException {
        ResponseWriter writer = context.getResponseWriter();
        Iterator children = getChildren().iterator();
        while(children.hasNext()){
          UIComponent child = (UIComponent)children.next();
          if(child.isRendered()){
            child.encodeBegin(context);
            if(child.getRendersChildren()){
              child.encodeChildren(context);
            child.encodeEnd(context);
      public boolean getRendersChildren(){
        return true;
    }The component tag class:
    package test;
    import javax.faces.webapp.UIComponentTag;
    public class TestTag extends UIComponentTag {
      public String getComponentType() {    return "Test";  }
      public String getRendererType() {    return null;  }
    }Tag registration:
      <tag>
        <name>test</name>
        <tag-class>test.TestTag</tag-class>
      </tag>The backing bean:
    package test;
    import javax.faces.event.ValueChangeEvent;
    public class TestBean {
      private String currentValue;
      public void valueChange(ValueChangeEvent event) {
        System.err.println(event.getNewValue());
      public String getCurrentValue() {
        return currentValue;
      public void setCurrentValue(String currentValue) {
        this.currentValue = currentValue;
    }And finally the definition in the faces-config:
       <component>
          <component-type>Test</component-type>
          <component-class>test.UITest</component-class>
       </component>
       <managed-bean>
        <managed-bean-name>TestBean</managed-bean-name>
        <managed-bean-class>test.TestBean</managed-bean-class>
        <managed-bean-scope>session</managed-bean-scope>
       </managed-bean>When included in the JSP and then clicked on the combobox, I get an ArrayIndexOutOfBoundsException.
    Can anyone give me a hint what the problem might be?
    Thanks in advance!

  • How to code spark custom component with variable number of (skin)parts?

    Hello. I'm trying to code a complex Spark custom component that may have a variable number of parts. To help you understand the requirements, the component can be visualized as an HSlider with a unlimited number of thumbs (as opposed to one).
    How do I, in general, represent these thumbs in the host component as well as the skin? If I had a fixed number of thumbs, say 5, I could easily represent them as 5 button SkinParts declaratively. However, it's not immediately clear to me how to deal with a variable number of them.
    I've studied the HSlider implementation as well as other components and can't find an example that fits this pattern. The closest thing that I can think of is to represent the thumbs as a DataGroup and provide a custom item renderer to render them. Couple that with the general HSlider behaviors that I need to preserve, such as the fairly involved local/global coordinate translations, I don't know whether the approach will work.
    Any better ideas? Thanks.

    #2 sounds utterly strange to me. How would I utilize the phase id?The code below shows my idea whereas I never validate it in any real projects:
    public class MyPhaseListener implements PhaseListener {
         private static final String IDKEY = "PHASEID";
         public static PhaseId getCurrentPhaseId() {
              return (PhaseId) FacesContext.getCurrentInstance().getExternalContext().getRequestMap().get(IDKEY);
         public void beforePhase(PhaseEvent event) {
    event.getFacesContext().getExternalContext().getRequestMap().put(IDKEY,event.getPhaseId());
         public PhaseId getPhaseId() {
              return PhaseId.ANY_PHASE;
    }You can write your constructor like as:
    if (MyPhaseListener.getCurrentPhaseId().equals(PhaseId.RENDER_RESPONSE ) {
         /* create children because this is the first time to create the component */
    }

  • 11g Custom Component with SQL IN (val1, val2, ..., valN) query

    Hello
    I want to use a query with a varchar input parameter in a custom component. The query definition is like this:
    <tr>
         <td>QWhereIsAdministrator</td>
         <td>SELECT DISTINCT * FROM FWMTSITE WHERE ADMINISTRATOR IN ( ? )</td>
         <td>UserRoleList varchar</td>
    </tr>
    I can't pass the correct param value to the query from IdocScript
    I tried the following:
    <$UserRoleList = "'valA1','valA2'"$>
    <$executeService("SITES_WHERE_IS_ADMINISTRATOR")$>     
    <$UserRoleList = "\'valB1\',\'valB2\'"$>
    <$executeService("SITES_WHERE_IS_ADMINISTRATOR")$>     
    <$UserRoleList = js("'valC1','valC2'")$>
    <$executeService("SITES_WHERE_IS_ADMINISTRATOR")$>
    <$UserRoleList = xml("'valD1','valD2'")$>
    <$executeService("SITES_WHERE_IS_ADMINISTRATOR")$>
    <$UserRoleList = url("'valE1','valE2'")$>
    <$executeService("SITES_WHERE_IS_ADMINISTRATOR")$>
    <$UserRoleList = urlEscape7Bit("'valF1','valF2'")$>
    <$executeService("SITES_WHERE_IS_ADMINISTRATOR")$>
    No results found, the syntax of the executed query isn't correct. These are the QUERY trace output:
    SELECT DISTINCT * FROM FWMTSITE WHERE ADMINISTRATOR IN ( '''valA1'',''valA2''' )[Executed. Returned row(s): false]
    SELECT DISTINCT * FROM FWMTSITE WHERE ADMINISTRATOR IN ( '''valB1'',''valB2''' )[Executed. Returned row(s): false]
    SELECT DISTINCT * FROM FWMTSITE WHERE ADMINISTRATOR IN ( '\''valC1\'',\''valC2\''' )[Executed. Returned row(s): false]
    SELECT DISTINCT * FROM FWMTSITE WHERE ADMINISTRATOR IN ( '&#002339;valD1&#002339;,&#002339;valD2&#002339;' )[Executed. Returned row(s): false]
    SELECT DISTINCT * FROM FWMTSITE WHERE ADMINISTRATOR IN ( '%27valE1%27%2c%27valE2%27' )[Executed. Returned row(s): false]
    SELECT DISTINCT * FROM FWMTSITE WHERE ADMINISTRATOR IN ( '%27valF1%27,%27valF2%27' )[Executed. Returned row(s): false]
    Thank you for your help.

    Change parameter type from varchar to varchar.in in your query definition. Like this:
    <tr>
    <td>QWhereIsAdministrator</td>
    <td>SELECT DISTINCT * FROM FWMTSITE WHERE ADMINISTRATOR IN ( ? )</td>
    <td>UserRoleList varchar.in</td>
    </tr>In your binder, put a comma separated list in param UserRoleList. In java you can use:
    final List<String> someListOfStrings = ...; // your list of strings
    final String yourUserRoleListParam = StringUtils.createStringSimple( someListOfStrings );
    m_binder.putLocal( "UserRoleList", yourUserRoleListParam );In your case <$UserRoleList = "val1,val2,...,valN"$> should do the job.
    regards,
    Fabian
    Edited by: fscherpe on Mar 24, 2011 7:45 AM (Added iDoc variable; saw you wanted to start query from template, not from Java)

  • Custom Component with xfaForm input

    Hi. I'm trying to create a custom component that takes as one of its inputs either an xfaForm, a Document containing XML, or an xml variable. So my service method has a variable called data which is just an Object. When I pass in the xfaForm I get a class cast exception when casting the object to the XFARepositoryFormInstance class. I even print out the object and it shows me that its an XFARepositoryFormInstance. Do I have to do something special to work with an xfaForm inside the component? It seems like some sort of class loading issue or something.
    I'm stuck. Anybody have thoughts?
    Thanks,
    Bryan

    I'm unstuck :)  The key to getting this to work is to import the packages you are going to use in your component.xml.
    So, for me..I had to add the following:
            com.adobe.idp.workflow.dsc.type
            com.adobe.idp.taskmanager.form
            com.adobe.idp.taskmanager.form.impl
            com.adobe.idp.taskmanager.form.impl.xfa

  • URGENT: How to build composite custom component with a valuechangelistener?

    Hi there!
    I already posted regarding this issue before but unfortunately there wasn't any answer. But I don't think what I am trying to achieve is something unusual.
    I am trying to build a composite custom component, that consists of some UISelectOne components and some UIInputText fields. Now I need to fill the combo boxes depending on the selected values of the other boxes. Therefore I added a value change listener. But when it fires I get an index out of bounds exception on the page.
    The problem seems to be that the child components are being added twice to the component: Once in the constructor (which I am doing and which is called everytime the component is built) and once as part of the Restore View Phase (which JSF is doing).
    So my question is: How and where do I correctly initialize my component's children?
    A full code example can be found under http://forum.java.sun.com/thread.jspa?threadID=586301&tstart=150
    Thanks a lot in advance!

    #2 sounds utterly strange to me. How would I utilize the phase id?The code below shows my idea whereas I never validate it in any real projects:
    public class MyPhaseListener implements PhaseListener {
         private static final String IDKEY = "PHASEID";
         public static PhaseId getCurrentPhaseId() {
              return (PhaseId) FacesContext.getCurrentInstance().getExternalContext().getRequestMap().get(IDKEY);
         public void beforePhase(PhaseEvent event) {
    event.getFacesContext().getExternalContext().getRequestMap().put(IDKEY,event.getPhaseId());
         public PhaseId getPhaseId() {
              return PhaseId.ANY_PHASE;
    }You can write your constructor like as:
    if (MyPhaseListener.getCurrentPhaseId().equals(PhaseId.RENDER_RESPONSE ) {
         /* create children because this is the first time to create the component */
    }

  • Resizing custom component with fixed aspect ratio in designer

    Hello,
       I have a custom component that can have a fixed aspect ratio depending on certain property settings and I would like to know if there is any way to make the component resize in the designer in the same manner that the XCelcius built-in spreadsheet table component does?
      It is possible to workaround this somewhat by correcting the width or height of the component after resize, XCelsius sees the change and stores it correctly but sometimes the IDE "remembers" the old value. For example if the component changings its own height programmatically in response to a property and then, while keeping the current component selected, the user resizes the width XCelsius sometimes tries to put the old height back even through it has the correct height saved in the XLF and works fine when compiled.
      Is there a way to properly notify XCelsius IDE of a programmatic width/height change in the component itself in response to a property change?
    Thanks

    The SDK does not support reszing a component using a fixed aspect ratio.
    Do not set the width and height of your component directly. You can set the initial size when dropped onto the canvas using the measure function...
    A better approach is to let the user size the component on the Xcelsius canvas.
    And instead of rendering directly in your add-on, move that code into a child renderer. Then use your aspect ratio to calculate the max size the child renderer can be to fit in the component. Then center your child renderer in the component. That is what I did when I created AnyMap.
    |--------------------------------|
    | component on canvas            |
    |--------------------------------|
    |  |--------------------------|  |
    |  | centered child renderer  |  |
    |  |--------------------------|  |
    |  |                          |  |
    |  |                          |  |
    |  |                          |  |
    |  |--------------------------|  |
    |--------------------------------|
    Regards
    Matt

  • Custom component with javascript source

    Hey guys,
    this is a bit of a newbie question but..
    I am creating a custom component.
    instead of embedding javascript directly into the page i would like to seperate the javascript into a js file and just add a link into the script
    e.g.
    component might output include
    <script language="JavaScript" src="script/someJsFile.js"></script>
    I would like to keep my .js file jar'ed up in the lib directory
    so
    trying to work out what src attribute i need cant seem to get it to link
    Cheers
    Dave

    Hi I have the same problem. I need to encode the javascript and image files that I have inside a jar.
    if you know how can we do it..could you send me an email: [email protected].so if I find something I'll send to you the solution.
    Thanks.
    Omar_G

  • Custom component with drag&drop ?

    Hello everyone, I'm new to CQ5.
    I'm trying to develop a custom component that allows me to use drag & drop to drag an image from DAM to my component instead of having to insert the image in the component code. How can I do?
    Thank you!

    Content finder(cf) will list all the assets in dam.  Look at OOB image component to get an idea where in you can drag & drop assets from image (cf) into component.
    What different you are looking in custom component?
    Thanks,
    Sham

  • Custom component with valuechangelistener attribute

    I am playing around with JSF and want to make a custom UIcomponent which extends UIinput. I want this component to have the valueChangeListener as an attirbute so that I can:
    <my:customComponent valueChangeListener="#{myBackingBean}">
    Now simple attributes aren't a problem and are explained in every tutorial you find and then some. I haven't found any tutorial that even touches this subject. If anyone can point me in the right direction I would be grateful.
    What I have somewhat figured out is the tld entry:
    <attribute>
    <name>valueChangeListener</name>
    <required>false</required>
    <deferred-method>
    <method-signature>
    void valueChange(javax.faces.event.ValueChangeEvent)
    </method-signature>
    </deferred-method>
    </attribute>
    I am assuming that you have to change the setProperties so that
    if (valueChangeListener != null){
    component.setMethodExpression(...)?
    except that my component deosn't seem to know this but only setmethodbinding, even though I should be using jsf 1.2
    Now obviously I am missing half the story, if not more. Which is the problem of course.

    In the setProperties method of the tag handler, you convert the MethodExpression
    object to an appropriate listener object and add it to the component:
    public void setProperties(UIComponent component) {
         super.setProperties(component);
         if (valueChangeListener != null)
              ((EditableValueHolder) component).addValueChangeListener(
              new MethodExpressionValueChangeListener(valueChangeListener));
    }** Borrowed from 'Core JavaServer Faces' book. 2nd edition. chapter 9

  • Custom taglib with nested tag not working

    Hi everybody,
    I have a question concerning a custom taglib. I want to create a tag with nested child tags. The parent tag is some kind of iterator, the child elements shall do something with each iterated object. The parent tag extends BodyTagSupport, i have overriden the methods doInitBody and doAfterBody. doInitBody initializes the iterator and puts the first object in the pageContext to be used by the child tag. doAfterBody gets the next iterator object and puts that in the pageContext, if possible. It returns with BodyTag.EVAL_BODY_AGAIN when another object is available, otherwise BodyTag.SKIP_BODY.
    The child tag extends SimpleTagSupport and does something with the given object, if it's there.
    In the tld-file I have configured both tags with name, class and body-content (tagdependent for the parent, empty for the child).
    The parent tag is being executed as I expected. But unfortunately the nested child tag does not get executed. If I define that one outside of its parent, it works fine (without object, of course).
    Can somebody tell me what I might have missed? Do I have to do something special with a nested tag inside a custom tag?
    Any help is greatly appreciated!
    Thanks a lot in advance!
    Greetings,
    Peter

    Hi again,
    unfortunately this didn't work.
    I prepared a simple example to show what isn't working. Perhaps it's easier then to show what my problem is:
    I have the following two tag classes:
    public class TestIterator extends BodyTagSupport {
        private Iterator testIteratorChild;
        @Override
        public void doInitBody() throws JspException {
            super.doInitBody();
            System.out.println("TestIterator: doInitBody");
            List list = Arrays.asList(new String[] { "one", "two", "three" });
            testIteratorChild = list.iterator();
        @Override
        public int doAfterBody() throws JspException {
            int result = BodyTag.SKIP_BODY;
            System.out.println("TestIterator: doAfterBody");
            if (testIteratorChild.hasNext()) {
                pageContext.setAttribute("child", testIteratorChild.next());
                result = BodyTag.EVAL_BODY_AGAIN;
            return result;
    public class TestIteratorChild extends SimpleTagSupport {
        @Override
        public void doTag() throws JspException, IOException {
            super.doTag();
            System.out.println(getJspContext().getAttribute("child"));
            System.out.println("TestIteratorChild: doTag");
    }The Iterator is the parent tag, the Child shall be shown in each iteration. My taglib.tld looks like the following:
    <?xml version="1.0" encoding="UTF-8"?>
    <taglib
         xsi:schemaLocation="http://java.sun.com/xml/ns/javaee web-jsptaglibrary_2_1.xsd"
         xmlns="http://java.sun.com/xml/ns/javaee"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.1">
         <tlib-version>1.0</tlib-version>
         <short-name>cms-taglib</short-name>
         <uri>http://www.pgoetz.de/taglibs/cms</uri>
         <tag>
              <name>test-iterator</name>
              <tag-class>de.pgoetz.cms.taglib.TestIterator</tag-class>
              <body-content>tagdependent</body-content>
         </tag>
         <tag>
              <name>test-iterator-child</name>
              <tag-class>de.pgoetz.cms.taglib.TestIteratorChild</tag-class>
              <body-content>empty</body-content>
         </tag>
    </taglib>And the snippet of my jsp is as follows:
         <!-- TestIterator -->
         <cms:test-iterator>
              <cms:test-iterator-child />
         </cms:test-iterator>The result is that on my console I get the following output:
    09:28:01,656 INFO [STDOUT] TestIterator: doInitBody
    09:28:01,656 INFO [STDOUT] TestIterator: doAfterBody
    09:28:01,656 INFO [STDOUT] TestIterator: doAfterBody
    09:28:01,656 INFO [STDOUT] TestIterator: doAfterBody
    09:28:01,656 INFO [STDOUT] TestIterator: doAfterBody
    So the child is never executed.
    It would be a great help if anybody could tell me what's going wrong here.
    Thanks and greetings from germany!
    Peter
    Message was edited by:
    Peter_Goetz

  • Flex 4 custom component with children inserted directly into view stack

    I give up. Hopefully I am just missing something easy, but I feel like I am pulling teeth trying to get this to work. All I want is a custom 'wizard' component whose children are placed within a ViewStack and beneath the ViewStack there is a next and back button. Here are some code excerpts to illustrate my approach:
    WizardGroup.as:
    [SkinPart(required="true")]
    public var nextBt:Button = new Button();
    [SkinPart(required="true")]
    public var backBt:Button = new Button();
    [SkinPart(required="true")]
    public var stack:ViewStackSpark = new ViewStackSpark();
    WizardGroupSkin.mxml:
    <s:VGroup width="100%" height="100%"
              paddingBottom="10" paddingTop="10" paddingLeft="10" paddingRight="10">
         <container:ViewStackSpark id="stack" width="100%" height="100%">
              <s:Group id="contentGroup" width="100%" height="100%" minWidth="0" minHeight="0"/>
         </container:ViewStackSpark>
         <s:HGroup horizontalAlign="right" width="100%">
              <s:Button id="nextBt" label="Next" enabled="{hostComponent.permitNext}" enabled.last="false"/>
              <s:Button id="backBt" label="Back" enabled="{hostComponent.permitBack}" enabled.first="false"/>
         </s:HGroup>
    </s:VGroup>
    While this comes very close to working, the major problem is that the children of the WizardGroup component are not added as children of the viewstack. Instead, they are added as children of the contentGroup. So the viewstack will always only have one child: contentGroup.
    I also tried the approach of binding the contents of the view stack to the children of contentGroup, but with Spark containers, there is no way to access an array of children or array of elements (ie, there is no contentGroup.getChildren() or contentGroup.getElements()).  Finally, I tried making the id of the ViewStackSpark "contentGroup" but since the ViewStackSpark inherits from BorderContainer, Flex complains at runtime that it can't cast the BorderContainer to Group.
    Help would be greatly appreciated.
    Thanks everyone.
    Josh

    I finally figured it out. The trick is to set the default property of the WizardGroup to a public member array I am calling "content"
    [DefaultProperty("content")]
    public class WizardGroup extends TitleWindow
        [SkinPart(required="true")]
        public var nextBt:Button = new Button();
        [SkinPart(required="true")]
        public var backBt:Button = new Button();
        [Bindable]
        public var content:Array;
    And then within the skin, bind the content of the viewstack to the hostComponent's content array:
            <s:VGroup width="100%" height="100%"
                      paddingBottom="10" paddingTop="10" paddingLeft="10" paddingRight="10">
                <container:ViewStackSpark id="stack" width="100%" height="100%" content="{hostComponent.content}"/>
                <s:HGroup horizontalAlign="right" width="100%">
                    <s:Button id="nextBt" label="Next" enabled="{hostComponent.permitNext}" enabled.last="false"/>
                    <s:Button id="backBt" label="Back" enabled="{hostComponent.permitBack}" enabled.first="false"/>
                </s:HGroup>
            </s:VGroup>

  • Customer Clearing with additional open line item

    Dear All,
    Pl. consider the following scenario:
    A customer open line item is created wilth Billing Document/outgoing invoice. Alongwith this one more open line item is generated. Eg Accrued Sales Commission. Now, we need to clear this line item (with Accrued Sales Commission) alongwith the customer whenever the payment is received. We tried to look for enhancement/user exit, but  could not fine one.
    Can you pl. suggest the solution in SAP for the above scenario?
    Thanks & Regards,
    Raja

    Hi,
    If you manually clear customer open items then:
    1) Execute t-code F-32;
    2) Enter customer account, company code and other required fields;
    3) Press "process open items" button;
    4) Press "Res. items" tab;
    5) Select line items that you want to clear;
    6) Simulate it;
    7) Post the document;
    Residual payment  means it clears the  invoce amount for incoming payment.and ceate  line time for remaing outstanding amount.
    If you select "Part payment" tab then the payments that can be posted to an account without open items being cleared.orginal open items (credit invoice amount)and partly payment remains in open item category.
    Cheers!
    Martins

Maybe you are looking for

  • Deleted items would not be purged automatically after 30 days

    On my Exchange 2013 ECP, I went to Servers->Databases, then double click to open one of the databases listed, I then clicked Limits, under "Keep deleted items for (days):", I set it to 30 days. But the deleted items in Outlook or OWA did not get purg

  • True or false, I receive a message from nokiasweep...

    true or false, I receive a message from [email protected] for winner nokia uk from Solved! Go to Solution.

  • SELECT * INTO Problem

    I need help, please. I'm trying this basic statement to create a backup copy of the hr.employees table. SELECT * INTO employees_Backup FROM employees Which I copied from examples on the internet (two sources, same syntax) When I run this in SQL Devel

  • Working with IBM HTTP Server 2.0.47.Planning to upgrade.

    Hi, My webgate is configured with IBM HTTP Server 2.0.47 and now i would like to upgrade the Server and add a new webgate to it. Now i am planning to upgrade to a higher version of IBM HTTP Server. But i am not able to find any version of IBM HTTP Se

  • Canon PIXMA MX860 driver problems with OSX 10.7.5

    Somewhere along the road of updates, I have lost the ability to have my Canon PIXMA MX860 recognize the envelope feeder.  Does anyone have a suggestion what I need to do to get all of my printer's functions working again?  I am on OSX 10.7.5 with a 1