Using a composite component from an xhtml that is included in another xhtml

JBoss 7.1.1
JSF 2.1
I have the following composite component:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:component xmlns="http://www.w3.org/1999/xhtml"
        xmlns:h="http://java.sun.com/jsf/html"
        xmlns:composite="http://java.sun.com/jsf/composite"
        xmlns:f="http://java.sun.com/jsf/core"
        xmlns:ui="http://java.sun.com/jsf/facelets"
        xmlns:rich="http://richfaces.org/rich">
        <composite:interface>
            <composite:attribute name="for" required="true" />
        </composite:interface>
        <composite:implementation>
            <rich:panel styleClass="aas-msg-tt-p">
                <rich:message id="#{cc.attrs.for}-msg"
                    for="#{cc.attrs.for}" />
                <rich:tooltip id="#{cc.attrs.for}-msg-tt">
                    <rich:message for="#{cc.attrs.for}"
                        styleClass="aas-rf-det-tooltip" />
                </rich:tooltip>
            </rich:panel>
        </composite:implementation>
</ui:component>It is in WebContent/resources/aas-composite/messagetooltip.xhtml ( where WebContent is the root directory or root context directory of the deployed WAR )
h3. *1. Using the composite component and working as expected*
If I use the composite component directly as follows, it all works:
1) Create test.xhtml in WebContent
2) Content of test.xhtml as follows:
<!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:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:a4j="http://richfaces.org/a4j"
      xmlns:rich="http://richfaces.org/rich"
      xmlns:aas="http://java.sun.com/jsf/composite/aas-composite">
<h:head>
    <meta http-equiv="X-UA-Compatible" content="IE=8" />
</h:head>
<h:body>
    <h:outputStylesheet library="css" name="richfacesoverrides.css"/>
    <h:form id="testform">
       <table>
            <tr>
                <td><aas:messagetooltip for="id2"/></td>
                <td><h:outputLabel>Input 2: </h:outputLabel></td>
                <td><h:selectOneMenu id="id2"
                        required="true"
                        requiredMessage="Cause of Death is required"
                        value="${death.causeOfDeath}">
                       <f:selectItem itemValue="" itemLabel="-- Select One --" />
                       <f:selectItem itemValue="COD01" itemLabel="Cancer" />
                       <f:selectItem itemValue="COD02" itemLabel="Diabetes" />
                       <f:selectItem itemValue="COD11" itemLabel="Other" />
                    </h:selectOneMenu>
                </td>
            </tr>
       </table>
       <h:commandButton id="submit" value="Submit"/><br/>
</h:form>
</h:body>
</html>3) Deploy and test, all good
h3. *2. Using the composite component but NOT working as expected*
Now if I use the composite component as follows:
4) Create XHTML file called includeThisFromRoot.xhtml under WebContent directory
5) with content as follows:
<!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:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:a4j="http://richfaces.org/a4j"
      xmlns:rich="http://richfaces.org/rich"
      xmlns:aas="http://java.sun.com/jsf/composite/aas-composite">
    <ui:composition>
       <table>
            <tr>
                <td><aas:messagetooltip for="id2"/></td>
                <td><h:outputLabel>Input 2: </h:outputLabel></td>
                <td><h:selectOneMenu id="id2"
                        required="true"
                        requiredMessage="Cause of Death is required"
                        value="${death.causeOfDeath}">
                       <f:selectItem itemValue="" itemLabel="-- Select One --" />
                       <f:selectItem itemValue="COD01" itemLabel="Cancer" />
                       <f:selectItem itemValue="COD02" itemLabel="Diabetes" />
                       <f:selectItem itemValue="COD11" itemLabel="Other" />
                    </h:selectOneMenu>
                </td>
            </tr>
       </table>
       <h:commandButton id="submit" value="Submit"/><br/>
    </ui:composition>
</html>6) Make a copy test.xhtml, but call the new one testWithInclude.xhtml, with content as follows:
<!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:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:a4j="http://richfaces.org/a4j"
      xmlns:rich="http://richfaces.org/rich"
      xmlns:aas="http://java.sun.com/jsf/composite/aas-composite">
<h:head>
    <meta http-equiv="X-UA-Compatible" content="IE=8" />
</h:head>
<h:body>
    <h:outputStylesheet library="css" name="richfacesoverrides.css"/>
    <h:form id="testform">
        <ui:include src="includeThisFromRoot.xhtml" />
    </h:form>
</h:body>
</html>h3. Summary of change
You can see here that I simply moved all of the content between the form tags from the original XHTML to a separate XHTML, and included that separate XHTML using <ui:include>.
h3. Result
7) Deploy and access testWithInclude.jsf from browser, and I get:
15:17:55,310 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/richfacestest].[Faces Servlet]] (http--0.0.0.0-8081-5) Servlet.service() for servlet Faces Servlet threw exception: javax.faces.view.facelets.TagException: /includeThisFromRoot.xhtml @13,52 <aas:messagetooltip> Tag Library supports namespace: http://java.sun.com/jsf/composite/aas-composite, but no tag was defined for name: messagetooltip
        at com.sun.faces.facelets.compiler.CompilationManager.pushTag(CompilationManager.java:304) [jsf-impl-2.1.7-jbossorg-2.jar:]
        at com.sun.faces.facelets.compiler.SAXCompiler$CompilationHandler.startElement(SAXCompiler.java:266) [jsf-impl-2.1.7-jbossorg-2.jar:]
        at org.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:496)
        at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:180)
        at org.apache.xerces.impl.dtd.XMLDTDValidator.emptyElement(XMLDTDValidator.java:810)
        at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:275)
        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1653)
        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:324)
        at org.apache.xerces.parsers.XML11Configuration.parse(XML11Configuration.java:845)
        at org.apache.xerces.parsers.XML11Configuration.parse(XML11Configuration.java:768)
        at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:108)
        at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1196)
        at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:555)
        at org.apache.xerces.jaxp.SAXParserImpl.parse(SAXParserImpl.java:289)
        at javax.xml.parsers.SAXParser.parse(SAXParser.java:195) [rt.jar:1.7.0_09]
        at com.sun.faces.facelets.compiler.SAXCompiler.doCompile(SAXCompiler.java:434) [jsf-impl-2.1.7-jbossorg-2.jar:]
        at com.sun.faces.facelets.compiler.SAXCompiler.doCompile(SAXCompiler.java:410) [jsf-impl-2.1.7-jbossorg-2.jar:]
        at com.sun.faces.facelets.compiler.Compiler.compile(Compiler.java:124) [jsf-impl-2.1.7-jbossorg-2.jar:]
        at com.sun.faces.facelets.impl.DefaultFaceletFactory.createFacelet(DefaultFaceletFactory.java:305) [jsf-impl-2.1.7-jbossorg-2.jar:]
        at com.sun.faces.facelets.impl.DefaultFaceletFactory.access$100(DefaultFaceletFactory.java:93) [jsf-impl-2.1.7-jbossorg-2.jar:]
        at com.sun.faces.facelets.impl.DefaultFaceletFactory$1.newInstance(DefaultFaceletFactory.java:160) [jsf-impl-2.1.7-jbossorg-2.jar:]What gives ? Am I missing something simple ?

I think I may have found a workaround.
In the XHTML file that is included and using the composite component, add the namespace as part of the custom component, like so:
<aas:messagetooltip xmlns:aas="http://java.sun.com/jsf/composite/aas-composite" for="id2"/>So that it now becomes:
<!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:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:a4j="http://richfaces.org/a4j"
      xmlns:rich="http://richfaces.org/rich"
      xmlns:aas="http://java.sun.com/jsf/composite/aas-composite">
    <ui:composition>
       <table>
            <tr>
                <td><aas:messagetooltip xmlns:aas="http://java.sun.com/jsf/composite/aas-composite" for="id2"/></td>
                <td><h:outputLabel>Input 2: </h:outputLabel></td>
                <td><h:selectOneMenu id="id2"
                        required="true"
                        requiredMessage="Cause of Death is required"
                        value="${death.causeOfDeath}">
                       <f:selectItem itemValue="" itemLabel="-- Select One --" />
                       <f:selectItem itemValue="COD01" itemLabel="Cancer" />
                       <f:selectItem itemValue="COD02" itemLabel="Diabetes" />
                       <f:selectItem itemValue="COD11" itemLabel="Other" />
                    </h:selectOneMenu>
                </td>
            </tr>
       </table>
       <h:commandButton id="submit" value="Submit"/><br/>
    </ui:composition>
</html>I tried this after finding a similar bug about nested composite components, which I do not use, but thought I would give it a try:
http://stackoverflow.com/questions/10898906/myfoo-tag-library-supports-namespace-http-java-sun-com-jsf-composite-mycom
http://stackoverflow.com/questions/9735593/nested-composite-component-broken-in-jboss-7-1-1
Have to keep track of all these workarounds that I am doing.

Similar Messages

  • Using the Composite/Component AV cable for slideshows

    iPad 32G WiFi
    Hi,
    I plan to use the Composite or Component AV cable for slideshows in the Photo app. There is a setting (TV Out) for Videos in Settings, I will set it to PAL when I run the slideshows in Asia later this week.
    Question: Once set, will this setting under Videos apply to the Photo app for slideshows as well, or this setting is only good for videos?
    Any suggestion will be greatly appreciated! /Kenny

    No problem
    enjoy your magic machine

  • If you disconnect Icloud from a Iphone that is connected to another Iphone will it erase everything from both ?

    I want to disconnect Icloud from a Iphone that is conneted to someone elses Icloud but I dont want everything on their Icloud on their Iphone to erase once i deleate the account on the Iphone I have. Is that possible ?

    Delete the account from your iPhone. All data remains in iCloud and all other devices.

  • Security warning claims invalid site when I attempt refresh. It uses outdated firefox component from Jan 2003.

    Tech details at end of this narrative:
    As you can see, Firefox is using an old piece of software not aware it is the one out of date, not the current certificate which it discovers is too far in the future. Accepting this puts me at risk as it may relate to the odd fact that a man called this morning that I did not know before saying he received email from me about the product I am now preparing to market. That was great - but, he received a message from me that I did not send and said he called my number expecting to hear a 15 minute recording I do not have set up. On occasion, including a few weeks ago, I have received email with my own address as if it was sent to me by someone with my identical address. If I push through this warning, it appears I am at risk of authorizing someone else access to my computer from a separate location. If so, with such persons advanced knowledge, I could lose access at times to my own online ID - for banking, etc, while such person cleans out my accounts. My Firefox software recently offered and I accepted an upgrade. Please assist me in getting the old security piece of softwar removed and I'd like to know what else may be suggested if anything. Thanks a million. Michael
    ~~
    Message:
    "You have asked Firefox to connect
    securely to login.live.com, but we can't confirm that your connection is secure.
    login.live.com uses an invalid security certificate.
    The certificate is not trusted because the issuer certificate has expired.
    The certificate will not be valid until 9/27/2011 5:00 PM. The current time is 1/1/2003 5:33 PM.
    (Error code: sec_error_expired_issuer_certificate)

    Quote: ''The current time is 1/1/2003 5:33 PM.''
    Check the date and time in the clock on your computer: (double) click the clock icon on the Windows Taskbar.
    *https://support.mozilla.com/kb/Secure+Connection+Failed

  • How can i use my garanty out from the city that i bought my iPhone?

    Hi, i was living in London, for arround 3 years i bought my iPhone 5 while i was living there, now i am in Peru (Lima) and my iPhone is not working propertly.
    The mobile is not sound when some one i calling me, also when i receive a msge from whats app, facebook or bbm etc. I went to an iSupport here in Lime and they told me that apparentlly is a problem whith the sound botom on the left side, is not working. Becouse when they try to put it this one up or down nothing apear on the screen, it is suppose to show a bell whit a cross on the middle but this image never appear.
    They also told me that the garantee is regional, so if i bought in London i have to put it in London.
    I appreciate your coments as soon as possible.
    Regards;
    Juan E. Pereira
    <Phone Number Edited by Host>

    Not London solely, but an iPhone sold in the United Kingdom will be be supported and serviced by Apple only in the United Kingdom or one of the other European Union countries (the EU is considered to be a single country for warranty/support purposes). You will need to take your iPhone to such a country or send it to someone you know there to get it services.
    Regards.

  • I unlock my phone to load app, using the winscp program from my computer that i transferedthe files as instructed , but the app still does not load . What do I need to do in order to have the app load.

    Please Help  SOS

    In order to do this, you had to jailbreak your phone.
    You can not be supported here. Discussing hacked / jailbroken devices is a violation of the TOS.
    Congratulations, you have voided your warranty and forfeited your right to support here or from Apple. You're on your own.

  • HT204266 How can i use my account to update an App that was purchased by another account??

    How can i cancel an account from my ipad store??
    Accordingly, how could i update my apps using my new account??
    For more clarification;
    I purchased my friend ipad with some applications that already downloaded before. I could use those apps &amp; games easily but when i need to update any, i couldn't because i have to have an App account.
    I created a new app account, now i can purchase &amp; download any app but i can't update an old App that was purchased through my friend account.
    Please take into your concederation that i don't want to delete the App &amp; redownload it as i don't want to miss my data registed before.
    Please advice

    Welcome to the Apple Community.
    You can't transfer purchases from one account to the other. Your friend had no right selling you the iPod with purchases on it made from his account.

  • How can I upgrade my CS6 from CS5.5 that is tied to another ID?

    Greetings.
    I have contacted tech support by phone and chat and neither time did I get the help I needed.
    My company bought CS5.5 a few years ago.  The woman that had my job at the time registered that version under her Adobe ID.  I recently purchased CS6 (upgrade-download version) and registered it under my Adobe ID.  When I run the installer and get to the part where I select a previous version, I choose 5.5 and enter the serial #.  It tells me that the serial # is not valid and to choose another.  I contacted support and they told me that they cannot help because the previous version is under another employees ID. 
    This is not a very effective registration model.  People come and go from jobs all the time, to have them tie a software version to their personal ID is ridiculous.  Look at what has happened to me.  I cannot locate the old employee to get her information and tech support won't do anything.
    How am I supposed to activate this software?  Is anybody from Adobe out there reading this?  After 4 phone calls and 2 chat sessions, I have no trust in technical support anymore.
    Please, please advise!

    Is the software owned by the company or the employee?  The software should have been registered under a company Adobe ID and not an employee.  It sounds like that serial number is now associated with the employee's own Adobe account and not the company so essentially she owns that serial number.  Your company doesn't sound too efficient when purchasing and managing their own software.
    Your IT department should have had control of all software and ID's.  Have you checked with them to see if they have access to that account?  Is it possible the employee took the software with her when she left then installed it on her own computer?  That might be why your serial number no longer works.
    Adobe's tech support stinks especially if you ask a question outside of their knowledge and what they have on a script.  They may as well have monkeys answering the phone.  Actually monkeys are easier to understand than the reps are.
    Maybe somebody else will come along with a better resolution.  You should return the upgrade of CS6 and may have to either get the CC version or re-purchase the full-price CS6 while it is still available.

  • How to bind a complex object to a composite component

    I'm using JSF2 and having an issue binding an object (EL Expression) as a parameter to my composite component.
    I have written a composite component (not very complex) that will display a drop-down list of countries and should bind the selection to a provided target bean.
    <!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:composite="http://java.sun.com/jsf/composite"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:a4j="http://richfaces.org/a4j"
    xmlns:rich="http://richfaces.org/rich">
    <!-- INTERFACE -->
    <composite:interface>
    <composite:attribute name="label" required="true" />
    <composite:attribute name="requiredMessage" required="true"/>
    <composite:attribute name="target" required="true" type="com.mycompany.entity.Country"/>
    </composite:interface>
    <!-- IMPLEMENATION -->
    <composite:implementation>
    <h:panelGrid columns="2">
    <h:outputLabel for="country-list" value="#{cc.attrs.label}"/>
    <h:panelGrid id="country" columns="1" styleClass="select-one-menu-panel" >
    <h:selectOneMenu id="country-list"
    enabledClass="select-one-menu-enabled" disabledClass="select-one-menu-disabled"
    layout="pageDirection"
    value="#{cc.attrs.target}"
    required="true" requiredMessage="#{cc.attrs.requiredMessage}"
    >
    <f:selectItem itemLabel="#{msgs['label.pleaseSelect']}" itemValue="" />
    <f:selectItems value="#{countryController.countries}" />
    <a4j:ajax />
    </h:selectOneMenu>
    <a4j:outputPanel id="country-list-error-panel" ajaxRendered="true">
    <h:message id="country-list-error" for="country-list" style="color:red"/>
    </a4j:outputPanel>
    </h:panelGrid>
    </h:panelGrid>
    </composite:implementation>
    </html>
    I want to be able to use the composite component in the following way:
    <util:country-select
    label="#{msgs['label.countryOfBirth']}"
    requiredMessge="#{msgs['error.birthCountryRequired']}"
    target="#{participant.countryOfBirth}"/>
    When I load the page everything renders correctly, but when I select an item from the drop-down I get a validation error.
    apply-form:j_idt77:country-list: Validation Error: Value is not valid
    I know that it must be something with the way that I have the parameters defined but I simply can't find any information to help me figure this out.
    Any light that you might be able to she on this would be greatly appreciated.
    Thank you for the help...

    Hi,
    well, you can. What the ADF Data Control and thus the binding gives you is the JSF component binding and the business service access.
    If you don't want to use ADF, then what you can do is
    - Create an ADF BC root Application Module from a managed bean
    e.g. see http://docs.oracle.com/cd/E21764_01/web.1111/b31974/bcservices.htm#CHDDDBFC
    - Access the View Object for querying the data to display
    - Expose the queried data so the component can handle it e.g. setter/getter for input components, ArrayList for tables (or you create the more complex component models like table and tree models)
    Having outlined the above, here are some gotchas to watch out for
    - Make sure creating the root application module is done such that you don't create/release it with each request. So you may consider a data serving managed bean in a scope like page flow or session
    - Ensure you have helper methods that allow you to query and CRUD operate the View Object data
    Frank

  • Using ITunes to import from analog

    Since buying an Apple laptop for my wife, I've been hooked to iTunes. In the "main" Windows XP PC, I downloaded iTunes. Other than some problems with remote Airport station (only from Windows), the program has exceeded my expectation. (My next main computer will be Apple.)
    I would love to remove Music Match from my hard drive, except it has one function unavailable to iTunes? I have a collection of vinyl (remember those?) that I would like to convert to mp3 or mp4 and Music Match has that capability.
    Does iTunes have that capabilty to import analog audio or is there a "plug in" available?

    Sorry - but no, iTunes hasn't the capability to import/record from line in.
    For that you have to use an application like "CD Spin Doctor" (that's included in Toast) or another similar application.

  • Using Aperture to import from an iPhoto picture disk?

    I saved a large collection of photos from another Mac on iPhoto DVDs that I would like to install a new Mac, but not in the iPhoto library, since I will be using Aperture. How may I most effectively get the photos from the iPhoto disk onto my new Mac in the organization I had on the other Mac? The iPhoto library folders of originals isn't organized the same way it's presented in iPhoto, but I really don't want to have to import into iPhoto, then export onto HD folders and then import into Aperture. Yet, I also don't want simply to copy 5,000 original photo files onto this computer and have to reorganize 7 years of photos by hand again.
    Can Aperture import directly from this DVD? I didn't see how ...
    Thanks!

    Sorry - but no, iTunes hasn't the capability to import/record from line in.
    For that you have to use an application like "CD Spin Doctor" (that's included in Toast) or another similar application.

  • Adding JSF 2 composite component at runtime from backing bean

    Hello,
    I try to add a custom composite component to a JSF page from a backing bean method in this way:
    +//-----------------------------------------------------------------------------------------------------+
    +public String addCC(){+
    +//create my comoposite component's istance+
    ccPageLoader = new CCPageLoader();
    +//set a property+
    ccPageLoader.setSrc("one.xhtml");
    +//get the object on the JSF page that must contains the comp.comp.+
    UIComponent c = this.findComponentInRoot("container");
    +//ADD THE COMPOSITE COMPONENT TO THE PAGE+
    c.getChildren().add(ccPageLoader);
    return null;
    +}+
    +//-----------------------------------------------------------------------------------------------------+
    Now, the method doesn't get errors, the beginEncode() method of the composite component is called, but I cannot see the composite component in the page...
    Instead, if a try to add a standard JSF component, using the same code, I can see the JSF component in the page.
    Any suggestion?
    Thank you, F. ...

    I removed all my assertions to see how far the submission could go when going unsane.
    I discovered that JSF attempts to redisplay my web page, and not to follow on the next one...
    ... so I have one explanation.
    Except that:
    There is no fields in the form that require a validation.
    (three hidden text fields, and a <h;inputTextarea> but that is not checked or mandatory).
    The form is not supposed to fail,
    and even if it had too, why the validation step doesn't carry the current managed bean at redisplay time, but instead re-create an empty managed bean?
    My form starts with a:
    <h:form id="${someId}"> where ${someId} is a scoped variable.
    Can it causes a problem during submission? Shall I use only a constant id for my form?
    What can you suggest me to do?
    Do I have a way to discover what JSF is about to complain against, before it tries to redisplay the page? I see nothing in my logs, but may be I shall redefine a log level somewhere, add one handler or something else?
    Regards,
    Grunt.

  • I have bought a Belkin composite cable from the apple store but the picture is black and white? The tv connection does require the red yellow white cables and that is the one I bought

    I have bought a Belkin composite cable from the apple store but the picture is black and white? The tv connection does require the red yellow white cables and that is the one I bought? Can any one help

    You have the iPhone in your profile, but people's profiles here are often incomplete or very outdated.  It's better to be specific.  And part of the problem is that I can't find any Belkin composite cables for connecting an iPhone to a TV, either on the Apple Store or the Belkin site.  The closest I found is this Belkin video cable, which doesn't specify exactly what kind of connection it is.
    For the most relevant assistance, you've got to post in the iPhone forum and specify the cable by providing a link to exactly which cable you're using.

  • Cross-component: Call method of using component from within used component?

    Hi,
    I began diving into cross-component programming.
    Meanwhile after having digged into some scenarios some questions came up to my mind that I am not able to answer myself. I would appreciate your help here!
    Say we have to components.  Comp A uses Comp B (hence, B is a component usage in A)
    1) How to make them communicate not on a data level (via context binding) but on a process level, thus...
    a) can I call A's method from within B? How is the approach on a general level? - as B can be used from totally different components (like A, A1, A2 ...)
    b) perhaps the only way to do this is by firing events? If so, how can I react in A when an event in B (marked as interface event) gets fired? As it seems they do not get registered within A directly...
    I guess the question seems to be a bit tricky. Nevertheless, I think there will be plenty of you out there who used to asked them the same questions before and came up with an approach. Would be nice to hear from you.
    Best wishes,
    Marc @sap1

    Hi,
    thanks for your reply!
    Indeed, I think the nature of WDA would be just to somehow map the context from the used component to the other back and forth.
    Nevertheless, what if I would like to invoke a method of the using component from inside the used component.
    One sample for this requirement could be e.g.:
    Component B offers a tree item and a send/verify button.
    Component A uses B and has some restraints regarding what the selection should look like.
    The user taps the button in B (at runtime in the view container of A), the context gets updated in A and B and in Component A the verifyWithOwnConstraints() method gets called (through B).
    Thanks again,
    Marc

  • Using COM component from EJB

    Hi,
    I'd like to use a third party COM component from. I know JIntegra and such tools but I'd like to use a non-commercial software as I need it for my diploma thesis.
    Did anyone ever manage to call an ActiveX/COM component from an EJB. I mean a third party component, not a self developed one.
    Could I use M$ specific classes in my EJB or do they rule out each other?
    Any working example?
    TIA
    Frank

    Did you really manage to use third party DLLs with EZJCOM?
    Would be great if you could clarify this to me:
    If I would use M$ specific classes to have a Java / COM - communication then I would
    have to use M$ JVM, right?
    But if I use that VM, I can not use my classes within the J2EE / EJB environment as this
    requires Sun's JVM, right?
    So, if I use EZJCOM for that than I do not have to use any M$ specific stuff, right?
    Unfortunately, I did not get any further yet. The product I'd like to use is Lindo.
    I have the DLL, but trying to use it with EZJCOM it says: No COM interface definition.
    No tlb is given either. There's a JAR package with classes that seem to use JNI to call
    DLL functions, so maybe it does not provide a COM interface.
    But that means I would have to build my own (maybe VB) ActiveX DLL that calls all the funtions
    in the Lindo DLL. But that would keep me busy for weeks I guess :-(
    As I need it for my diploma thesis, I can not spend a lot of time building ActiveX components.
    Frank

Maybe you are looking for

  • Video clip did not export in the Slide show

    I recently created a photo slideshow in Aperture for my grandmother's funeral.  I exported it as a movie to play through apple tv but when it played the slideshow, the video clip was not there.  When I preview the slideshow in Aperture, its there and

  • Trying to activate a second iphone and itunes doesnt recognize

    I am trying to activate a second iphone, and itunes doesnt recognize that it is plugged in.  This is also the case with my other iphone and my itouch.  Tried restarting everything and also tried uninstalling itunes and reinstalling it, nothing has wo

  • How to fetch the condition value per line item in PO o/p

    Dear Experts , I need to fetch the value of the all valid condition types in the PO item , for its o/p . For this i should know 1.what all are the  condition types involved in the item . 2.what is the condition rate 3. what is the condition value .  

  • Mailing in HTMLB using HTML a href syntax

    Hi my question is as follows. I am using a HTML syntax inside BSP page and trying to call onInputprocessing event. It gives me a Javascript error. The point is i need the mail ids at runtime and hence the ABAP scripting involved.. Is the code wrong-?

  • GS60-2QE (970M) USB Boot Issue

    Hi all, I have been having a strange issue on my new Ghost Pro, sometime it allows me to boot from a USB CD drive or thumbstick and other times it won't. I have checked the BIOS settings, secure boot, UEFI, boot order and they are fine. The USB devic