Animate Song Lyrics within a custom length marquee

I am looking for a way to display the lyrics of a song
beneath a centered picture.
I want the lyrics to scroll within a custom length marquee
(approximately 3" centered)
Now the hard part;
I want to have a 'ball' (round dot) 'bounce' upon each of the
lyric words in sync with the music.
Is there a way to do this with HTML or is this something that
I might be able to do using Flash?
With appreciation,
Charles

Otto42 has a multi-script utility that will do just this function.
See here for individual functions: http://ottodestruct.com/blog/2005/10/20/itunes-javascripts/
Or get his 'QuickScripts.zip' multi-script utility: http://ottodestruct.com/blog/category/geekery/programmery/

Similar Messages

  • A script to pick up song lyrics from the web - feedback

    Below is a PC implementation of this script written by Chris Schull which uses google to grab the lyrics of the selected song in iTunes and add them to the tags for the song.
    Enjoy Andrew's first go at converting an Applescript to .net for the PC. I guess it is written in C++ since the file he gave me is .cs ?
    using System;
    using iTunesLib;
    using System.Net;
    using System.IO;
    using System.Collections;
    namespace AJCOWLEY
    /// <summary>
    /// Provides Windows .Net methods for interacting with iTunes.
    /// version 0.1 (this version) gets the lyrics for the currently playing track.
    /// </summary>
    public class myTunes
    IiTunes iTunesApp;
    const string baseurl = "http://www.google.com/search?q=site:searchlyrics.org-download";
    public myTunes()
    iTunesApp = new iTunesAppClass();
    //Currently am only supporting one method: so go to it.
    //Supply the current track playing. In future could loop around
    // a playlist or selected tracks and get lyrics for all of them.
    // easy enough to add when it is working reliably for one..
    get_lyrical(iTunesApp.CurrentTrack, true);
    static void Main()
    //Instantiate an instance of the main class
    myTunes _this = new myTunes();
    * get_lyrical:
    * First method developed for the myTunes application.
    * Will get the lyrics for a given track
    void get_lyrical(iTunesLib.IITTrack t, bool overwrite)
    if ( (t != null) && ( ( t.Kind == ITTrackKind.ITTrackKindCD ) || (t.Kind == ITTrackKind.ITTrackKindFile )))
    //Cast the generic track pointer
    // to a pointer that supports lyrics
    IITFileOrCDTrack f = (IITFileOrCDTrack) t;
    //Get the current lyrics
    string l = f.Lyrics;
    //Check if okay to overwrite
    if ( (l == null) || ( l.Length == 0 ) || (overwrite == true))
    f.Lyrics = get_lyrics(f.Artist, f.Name );
    * get_lyrics:
    * Asks google to search a lyric website, and loops through
    * each of the google hits. Each hit is opened and examined to see if
    * it contains lyrics within predetermined delimters.
    string get_lyrics(string Artist, string TrackName)
    //Setup the url to be searched. remove parantheses and spaces from arguments
    string url = baseurl+ fixup(Artist) +" lyrics " + fixup(TrackName);
    string google_response=WebQuery(url);
    * Loop through each google hit, get the URL, open the page, strip out the lyrics
    * until lyrics != null
    foreach( string hiturl in getgooglehits(googleresponse))
    //launch the hit
    //get responses in between the values "<font" and "</font>"
    //then home in on the first ">" character.
    string hitpage = WebQuery(fixup(hiturl));
    hitpage=TextBetween(hitpage,"<font","</font>");
    //Strio off the "" text
    hitpage=hitpage.Substring(hitpage.IndexOf(">")+1);
    //Strip off the "" text
    hitpage=hitpage.Substring(0,hitpage.Length - 7);
    //Strip off html newline breaks
    string lyrics = clearHTML(hitpage);
    if (lyrics.Length > 0 )
    return hiturl":n"lyrics;
    return "";
    string clearHTML(string text)
    string clean_text="";
    bool kill=false;
    foreach (char c in text)
    if (c=='<') kill = false;
    return clean_text;
    * WebQuery:
    * Open a web page and return the results as a string using System.Net
    * N.B. The GetResponse method doesnt seem to like going through proxy servers.
    * and yes, this should be in a class of its own (sic)
    string WebQuery(string url)
    WebResponse myResponse=null;
    StreamReader readStream=null;
    try
    // Initialize the WebRequest and get the Webresponse handle
    WebRequest myRequest = WebRequest.Create(url);
    myResponse = myRequest.GetResponse();
    // Read through the WebResponse.
    Stream receiveStream = myResponse.GetResponseStream();
    // Pipes the stream to a higher level stream reader with the required encoding format.
    readStream = new StreamReader (receiveStream, System.Text.Encoding.UTF8 );
    string text= readStream.ReadToEnd();
    return text;
    catch
    return "";
    finally
    // Free up the resources.
    if ( readStream != null) readStream.Close();
    if (myResponse != null) myResponse.Close();
    /* Loop throught the results using the <div> tags and http/html as markers
    * to indicate where the results are
    ArrayList get_googlehits(string google_results)
    string text= google_results;
    ArrayList s = new ArrayList();
    string part;
    while ( text.Length > 0)
    //First zone in on the text between the div tags
    part=TextBetween(text,"","");
    //Now zone in on the url itself. The url will start with http and end in .html
    part=TextBetween(part,"http",".html");
    if ( part.Length == 0 )text=""; //reached end of the line
    else
    //prepare string for the next go around by stripping off
    //the bit we have already looked at.
    text=text.Substring(text.IndexOf(""));
    //Add hit to the array
    s.Add(part);
    return s;
    //Simple function to extract text between ( and including) two
    //separators.
    //Ideally this would be a class extension of "string"
    string TextBetween(string s, string spat, string epat)
    int startpos = 0, len;
    string tmp;
    if ((s==null) || (s.Length==0))
    return "";
    startpos=s.IndexOf(spat,startpos);
    if (startpos== -1 )
    return "";
    tmp=s.Substring(startpos);
    len=tmp.IndexOf(epat);
    if (len==-1)
    return "";
    else
    tmp=tmp.Substring(0,len+epat.Length);
    return tmp;
    //Replace spaces with + and remove parentheses
    string fixup(string s)
    return s.Replace(" ","+").Replace("(","").Replace(")","");
    } //end of class declaration
    }//end of Namespace

    Otto42 has a multi-script utility that will do just this function.
    See here for individual functions: http://ottodestruct.com/blog/2005/10/20/itunes-javascripts/
    Or get his 'QuickScripts.zip' multi-script utility: http://ottodestruct.com/blog/category/geekery/programmery/

  • On the iPhone 4: where are the song times within an album in iTunes Store?

    Has anyone noticed that song time (or track time) has been omitted from the view of album contents in the iTunes Store on the iPhone 4?  If one takes an iPhone 3 running ios 3.1.3 and looks up an album in the iTunes Store and checks the songs listed within the album, the time of each song is shown in light gray before the buy/price button.  However, if the same procedure is done with an iPhone 4, the time of each song within the album is missing!  (Search an album on each phone—such as the Beatles’ Revolver—see the list of songs included and observe the difference.)  Since it has nothing to do with the iTunes Store itself, why is this?  In my internet search, I have not found a comment about this curious omission of important information—the length of a song (certainly useful before one buys a song from an album or if one compares various versions of the same musical composition by different artists).  Because song time is available in iTunes online by using a computer, why not show this on the current iPhone 4 since it can be seen on an iPhone 3 that still uses ios 3.1.3?

    You can't on your phone, you can only gift the album - you will need to use your computer's iTunes

  • Song Lyrics on iPod

    I noticed that a some of the songs on my iPod have their lyrics also on the iPod. I was wondering how the lyrics get onto my iPod and if I could get the lyrics for other songs as well.
    Thanks.
    iPod Video 30gb   Mac OS X (10.4.8)  

    With recent versions of iTunes you can add Lyrics to your songs. On each song's info screen in iTunes there is a tab for Lyrics.
    You can download them as well as Album Art (Covers) with various free software available on the Internet. There are also several widgets which will do the same thing.
    Check the Widgets site at www.Apple.com. You can also do a search (type in Lyrics) within VersionTracker at the following link ...
    http://www.versiontracker.com/macosx/

  • How to reuse standard Activity subcomponents - Appointments, Tasks, Phone Calls and Emails within a custom work center?

    Requirement : We have a requirement to reuse the standard Activity subcomponents Appointments, Tasks, Phone Calls and Emails within a custom work centre. The requirement is to leverage and copy all sub functionalities Appointments, Tasks, Phone Calls and Emails available within the standard activity work center. This feature is available within Accounts, Opportunities, Leads etc. (Refer screenshot: Std_Act_Screen.jpg)
    We are unable to consume/embed the standard Activity (Work center) sub components Appointments, Tasks, Phone Calls and Emails within the custom work center. This is because of backend consistency check violation UI designer error message displayed. (Refer screenshot:Error while consuming standard activities.jpg)
    Ø  Open Question:
    a.      Is there a limitation to consume/embed the standard Activity (Work center) subcomponents Appointments, Tasks, Phone Calls and Emails within a custom work center?  We have noticed that this standard Activity Work center subcomponents Appointments, Tasks, Phone Calls and Emails has been repeatedly reused within the application in Account, Opportunity, Sales lead, Lead, Sales Quote Objects.
    b.      Is there an alternative way in which we can call [Through API etc..] the standard Activity Work center subcomponents Appointments, Tasks, Phone Calls and Emails?
    We need your guidance to overcome the error to enable the reuse of the standard Activity Work center sub-components Appointments, Tasks, Phone Calls and Emails within our custom work center or suggest a suitable workaround on how this can be achieved.
    Regards .. Dheeraj Saini

    Whenever you find out let me know. I wanted to assign a text tone to someone and now in iOS 7 i can't. Or I haven't figured this out yet.

  • Hebrew language is shown gibberish in songs lyrics

    Hi,
    I have just got my new iPhone 5.After syncing the new device with iTunes, all songs lyrics in Hebrew are now shown in gibberish and cannot be read.
    I have re-checked the songs info and these show the text correctly.
    I was using iPhone 4 and never had this problem.
    HELP anyone?
    Thanks!

    I tried the "convert ID3 tags >> Reverse Unicode" option on a few songs. It only caused the gibberish song names and titles to change to different gibberish.
    The odd thing is that I have some songs that had english in some ID3 tags (such as "name") and Japanese in other ID3 tags (such as "artist") and for those, the Japanese text looks great. And yet some song text doesn't.
    I tried deleting a few songs from the iTunes Music library, then click-and-drag the songs from Windows' My Music folder into the iTunes program. It adds it back with the Japanese text still unreadable, same as before.
    I don't know what else to do. I've searched the discussions database here and found instances of the same problem but no fixes.
    Thanks for the help though, and I'd be glad to see any other ideas.
    Erin

  • WebLogic Server 7.0: Including another JSP from within a custom tag

    Hi all,
              has anyone made experience with including (ie. processing) a dynamic
              resource (JSP) from within a custom JSP tag?
              Using the following code inside doEndTag():
              pageContext.include("/templates/blub.jsp");
              throws a ServletException (Note: the JSP is a part of the web app
              which is deployed as war). Does it make a difference if the web
              application is warred up into and therefore include cannot resolve the
              specified relative URL?
              [Tomcat 4.1.10 doesn't have problems for that matter]
              The full stack trace is:
              javax.servlet.ServletException: java.lang.NullPointerException
              at com.foo.taglibs.template.InsertTag.doEndTag(InsertTag.java:55)
              at jsp_servlet._models.__index._jspService(__index.java:774)
              at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
              at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:945)
              at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:332)
              at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:376)
              at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:242)
              at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:5360)
              at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:721)
              at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3043)
              at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2468)
              at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:152)
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:133)
              TIA,
              niko.
              

    Try the same code from an exploded web app.
              Niko Schmuck wrote:
              > Hi all,
              >
              > has anyone made experience with including (ie. processing) a dynamic
              > resource (JSP) from within a custom JSP tag?
              >
              > Using the following code inside doEndTag():
              >
              > pageContext.include("/templates/blub.jsp");
              >
              > throws a ServletException (Note: the JSP is a part of the web app
              > which is deployed as war). Does it make a difference if the web
              > application is warred up into and therefore include cannot resolve the
              > specified relative URL?
              > [Tomcat 4.1.10 doesn't have problems for that matter]
              >
              > The full stack trace is:
              >
              > javax.servlet.ServletException: java.lang.NullPointerException
              > at com.foo.taglibs.template.InsertTag.doEndTag(InsertTag.java:55)
              > at jsp_servlet._models.__index._jspService(__index.java:774)
              > at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
              > at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:945)
              > at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:332)
              > at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:376)
              > at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:242)
              > at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:5360)
              > at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:721)
              > at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3043)
              > at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2468)
              > at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:152)
              > at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:133)
              >
              > TIA,
              > niko.
              Rajesh Mirchandani
              Developer Relations Engineer
              BEA Support
              

  • IPhone doesn't display song lyrics

    Since last iOS update (4.3.3) my iPhone doesn't  display song lyrics anymore. That is, it displays only when I switch back to the album cover view and back to the lyrics view. When the next song starts, again only album cover art remains visible with the scrolling bar at the top, but lyrics is missing. Tap once to remove scrolling bar at the top, tap again and both scrolling bar and lyrics appear. And so for almost all tracks. Last iOS update to 4.3.4 didn't change anything here. Any ideas?

    when ? - maybe with next firmware upgrade? - I don't perceive this as a hardwared issue, but a firmware update issue? would you agree?

  • What app will let me organize multiple pdfs so I can put song lyric pdfs in the order I sing them

    I want to use my iPad to view my song lyrics in pdf form as I perform. I'd like to be able to customize the order in which the pdfs are stored so that I can have a different set of songs for different shows. I also want to just swipe from song #1 to song #2 in my set so  don't have to search for a thing while onstage. Did I mention I want to be able to change the order of songs in the set and also have multiple sets in a night. 3 sets of 10 to 12 songs each show with the ability to change the order of songs/pdfs for each show. I also have a MacBook Pro and an iPhone 4s and I can use dropbox or iCloud or many other storage options if this helps. I'd like to be sure how many pdfs I can store in my iPad also since not all of my shows have wifi connections.

    You can try Quickoffice Pro
    http://i1224.photobucket.com/albums/ee374/Diavonex/fb272a97.jpg
    http://i1224.photobucket.com/albums/ee374/Diavonex/d48eadf9.jpg

  • How do I get song lyrics to display?

    How do I get song lyrics to display on my iPod Touch 4g and iPad 2?
    The lyrics are in iTunes. They do display on my iPod Touch 2g.
    I did try a reset on the iPod Touch 4g, but did not fix problem.
    Thanks to anybody who can help
    Scott
    Los Angeles

    lekker wrote:
    I can't get the word "Lyrics" to display. Is there a way to do this? I'm wondering what "Off" refers to.
    The word "lyrics" is never displayed, but if you paste lyrics into a song, they'll be shown when you press the centre button "enough" times. Note that if there are _no lyrics_ associated with the song (because you didn't put them there) the "button pushes" will take you from On/Off (the shuffle feature) to Play - no mention of lyrics!
    I hope that helps!

  • How can I see song lyrics in iOS 5.0?

    Before updating my iPad 2, I could see lyrics for the song playing just by touch the screen in "iPod" app (the screen in which the album cover appears). But now I can't see the lyrics at all, and I'm sure they're attached to the songs (I can see them in my iPod nano 5th; I sync the same songs between iPad and iPod). How can I do it now? Is there some way of seeing the lyrics, or the functionality was removed at all?
    And, of course, is there anyone else having this same problem?
    Thank you all =D

    This may be a bug for all that I know but I am too cynical to believe that.
    From everything that I have read, it appears as though Apple did remove the feature. What the reasons could be for that are beyond me. And I did find the paragraph that states that feature exists in the iPad. I copied this from the iPad User Guide for iOS 5. The free book that I downloaded in iBooks.
    "Display a song’s lyrics
    Display the album cover by tapping the thumbnail at the top of the screen. Lyrics appear if you’ve added them to the song using the song’s Info window in iTunes."
    However, who knows with Apple anymore. Case in point - Apple changed the wording on their website about multitouch gestures being one of the new features of iOS 5, a day or two after the update came out. They decided to release the feature to work on the iPad 2 only - even though the website promoted the feature as being one of the new features for the "iPad" for months leading up to the release - leading all users to believe that it would work on the iPad 1 as well. I don't know if you read any of those threads but the screaming is finally starting to die down on that one.
    My point is that even thought the guide says that the song lyrics works, I have not read of anyone that can confirm that it does. Maybe someone else will confirm that the feature is in the iOS, but I don't believe that it is. So for the time being - for me anyway - it is not a bug - but another "why did they do that" decision by Apple.

  • Retrieve data from AD from within a custom sharepoint 2010 webpart

    Hi,
    I have a requirement to retrieve user data from AD and display from within a custom built webpart.
    I am using the PrincipalContext class etc to get the info from AD, i have sucesfully done this in a console program without having to specifiy a username/password.
    In the webpart i have successfully retrieved the data by hard coding my domain username/password.
    Any ideas what i could do to get the webpart to retrieve information from AD without having to specify username/password?
    thanks cjm

    Hi C.J, 
    I wrote an example of this using credentials stored in the Secure Store in the TechNet Wiki. The article is here: http://social.technet.microsoft.com/wiki/contents/articles/20110.sharepoint-retrieving-credentials-from-the-secure-store-application-using-c.aspx
    There's an example in the above article about building a webpart that connects to AD using the credentials.
    Regards, Matthew
    MCPD | MCITP
    My Blog
    View
    Matthew Yarlett's profile
    See my webpart on the TechNet Gallery that allows administrative users to upload, crop and format user profile photos. Check it out here:
    Upload and Crop User Profile Photos

  • Tiles + JSF error (Illegal to flush within a custom tag)

    Hi,
    When I try to use Tiles + JSF I have this error message :
    javax.servlet.jsp.JspException: Illegal to flush within a custom tag
    I am already using flush="false" on my tiles:insert tag.
    This is my .jsp code :
    <%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>
    <tiles:insert beanName="cadastro_base" beanScope="request" flush="false">
    <tiles:put name="form_body" type="string">
    <f:view>
    <h:form id="DisciplinaJsfBean" binding="#{DisciplinaJsfBean.form}" >
    <h:inputText id="codigo" binding="#{DisciplinaJsfBean.itCodigo}"/>
    </h:form>
    </f:view>
    </tiles:put>
    </tiles:insert>
    And this is the stack trace message :
    exception
    javax.servlet.ServletException: Illegal to flush within a custom tag
         org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:825)
         org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:758)
         org.apache.jsp.security.disciplina.cadastrarDisciplinas_jsp._jspService(cadastrarDisciplinas_jsp.java:99)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
         com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322)
         com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:130)
         com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
         com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
         com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
         javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
    root cause
    javax.servlet.jsp.JspException: Illegal to flush within a custom tag
         com.sun.faces.taglib.jsf_core.ViewTag.doEndTag(ViewTag.java:223)
         org.apache.jsp.security.disciplina.cadastrarDisciplinas_jsp._jspx_meth_f_view_0(cadastrarDisciplinas_jsp.java:205)
         org.apache.jsp.security.disciplina.cadastrarDisciplinas_jsp._jspx_meth_tiles_put_0(cadastrarDisciplinas_jsp.java:157)
         org.apache.jsp.security.disciplina.cadastrarDisciplinas_jsp._jspx_meth_tiles_insert_0(cadastrarDisciplinas_jsp.java:122)
         org.apache.jsp.security.disciplina.cadastrarDisciplinas_jsp._jspService(cadastrarDisciplinas_jsp.java:92)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
         com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322)
         com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:130)
         com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
         com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
         com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
         javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
    Danilo.

    What worked for me was to add a flush="false" to each of the <tiles:insert tags in my layout page.
    I'm using this with JSF so it may be different for you:
    ... Layout stuff ...
       <tiles:insert attribute="body" flush="false" />
    ... More layout stuff, including more inserts with the flush="false" ....

  • Best approach to using command link from within a custom component

    I have created a navigation component "Menu" , used as follows:
    <custom:menu />The contents of menu are stored in an xml file and the Menu component delegates the rendering to a custom renderer, which basicaly writes out html links. (Actually, the component does a lot more, but I'm simplifying to get to the point.).
    Sometimes, I need to render a command link instead of a regular html link. I don't want to re-invent the wheel here, so I want to delegate this to the standard command link components.
    Approach 1: create child components within the Menu component constructor, e.g.
    HtmlCommandLink c = new HtmlCommandLink();
              MethodExpression e = FacesContext.getCurrentInstance().getApplication().getExpressionFactory().
                   createMethodExpression(FacesContext.getCurrentInstance().getELContext(),
                   "#{registrationEditor.enterSubmission}",
                   String.class,
                   new Class[] { });
              c.setActionExpression(e);
              c.setValue("TestLink");
              c.setTransient(true);
              getChildren().add(c);Approach 2: delegate to the CommandLinkRenderer within my custom renderer, e.g.CommandLinkRenderer delegate = new CommandLinkRenderer();
                        HtmlCommandLink link = new HtmlCommandLink();
                        ExpressionFactory elFactory =
                             FacesContext.getCurrentInstance().getApplication().getExpressionFactory();
                        MethodExpression actionExpression =
                             elFactory.createMethodExpression(context.getELContext(), c.getExpression(), String.class, new Class[] {});
                        link.setActionExpression(actionExpression);
                        link.setParent(component.getParent());
                        link.setValue(c.getLabel());
                        delegate.encodeBegin(context, link);
                        delegate.encodeChildren(context, link);
                        delegate.encodeEnd(context, link);Is either of these a respectable approach - they feel a little hackish. If so, which do you prefer. If not, what do you recommend?
    Thanks
    Richard

    I think either is a fine approach and not at all hackish. I prefer the second, although I couldn't tell you why (just a gut feeling). That said, I haven't tried either so there may be hidden problems. My main concern would be what happens when the request is submitted from the page, that the Restore View phase is done correctly so that the proper event is fired.

  • Changing state of application from within a custom component

    Hello, I have several custom components all of which are included in the parent application.
    When I try to change state from a custom component, I get an error  saying "undefined state: state name". How do I change the state of the  application from within a custom component ? All the states are defined in the parent application.

    @linrsvp,
    If you are using Flex3 try Application.application.currentState = "somestate";
    If you are using Flex4 try FlexGlobas.topLevelApplication.currentState = "somestate";
    Don't forget to import the corresponding namespaces for the above.
    Thanks,
    Bhasker

Maybe you are looking for

  • Java.lang.RuntimeException: Error while creating embedded frame

    hello, i know about http://forums.sun.com/thread.jspa?messageID=10273756, but this doens't helped. i got a java.lang.RuntimeException: Error while creating embedded frame at sun.plugin.viewer.WNetscapePluginObject.createFrame(Unknown Source) at sun.p

  • After updating, install error "Install Flash Player.exe - Entry point not found"

    My current version of Flash Player is: 11.1.102.55. Then after an Update is performed and the download is downloaded, then it tries to install the download and an error message occurs. The error message says - Install Flash Player.exe - Entry point n

  • Editing Final Cut Pro X Metadata

    I have tried to solve this problem for hours without success. I have dozens of FCPX projects I have exported as .MOV files. I just realized that I have been failing to specify the Title, Author, Description, & Tag files when I export the files. (See

  • Database creation - - -insufficient privs

    Hi, I am trying to create a database from using a script that I generated using DBCA. And when I run the script, I get the following error: startup nomount pfile='/opt/app/oracle/admin/FPRCEDGE/pfile/initFPRCEDGE.ora'; ORA-01031: insufficient privile

  • Collaborative views in CRM E-Commerce- Internet Sales

    CRM 5.0 E-Commerce (internet sales) Hi I have done XCM configuration for Collaborative views and also tested the jco componenet and I got all green. I also selected a Super User who has a Role SAP_CRM_ECO_ISA_TU_CVIEWS. But when I try to login no mat