About the Flex with jsf

Hi
  I am new to flex and i have a knowledge on jsf .We got a requriment to integrate the flex with jsf .
  I googled and i developed the sample application using the fiji (Exadel ) .
  When i an running the application in the jboss I GOT EMPTY page then after deselecting the check box of 'blockjavascript' in the browser
  am able to see the swf file in the page
can any one help me..
My Project
The   mxml
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" width="1024" height="715" xmlns:ns1="*">
<mx:Form x="22" y="47" width="1200" height="680">
</mx:Form>
   <mx:Button x="22" y="5" label="This is Prapansolution" width="280"/>
</mx:Application>
The .jsp
       <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page"
          xmlns:f="http://java.sun.com/jsf/core"
          xmlns:h="http://java.sun.com/jsf/html"
          xmlns:fiji="http://exadel.com/fiji"
          xmlns:a4j="http://richfaces.org/a4j"
          xmlns:rich="http://richfaces.org/rich"
          xmlns:ui="http://java.sun.com/jsf/facelets"
           version="2.0">
         <f:view><h:form id="myForm">
          <fiji:swf src="/faces/FirstFlexApp.swf" id="demonew"  bgcolor="#FFFFFF" width="820" height="480">
          <f:param name="text1" value="Hello" />
         </fiji:swf> </h:form></f:view>

The imageicon only be supported JMenuItem.
how to dispose the case of sub-menu.
JMenu mainMenu = new JMenu("main");
JMenuItem miNew = new JMenu("New", new ImageIcon("..."));
JMenu mnuOpenHistory = new JMenu("Open List"); /// <<<----------------- this item can not support Icon
JMenuItem open1 = new JMenuItem("", new ImageIcon());
mainMenu.add(miNew);
mainMenu.add(mnuOpenHistory);

Similar Messages

  • Flex with jsf Application

    Hi
      I am new to flex and i have a knowledge on jsf .We got a requriment to integrate the flex with jsf .
      I googled and i developed the sample application using the fiji (Exadel ) .
      When i an running the application in the jboss I GOT EMPTY page then after deselecting the check box of 'blockjavascript' in the browser
      am able to see the swf file in the page
    can any one help me..
    My Project
    The   mxml
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" width="1024" height="715" xmlns:ns1="*">
    <mx:Form x="22" y="47" width="1200" height="680">
    </mx:Form>
       <mx:Button x="22" y="5" label="This is Prapansolution" width="280"/>
    </mx:Application>
    The .jsp
           <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page"
              xmlns:f="http://java.sun.com/jsf/core"
              xmlns:h="http://java.sun.com/jsf/html"
              xmlns:fiji="http://exadel.com/fiji"
              xmlns:a4j="http://richfaces.org/a4j"
              xmlns:rich="http://richfaces.org/rich"
              xmlns:ui="http://java.sun.com/jsf/facelets"
               version="2.0">
             <f:view><h:form id="myForm">
              <fiji:swf src="/faces/FirstFlexApp.swf" id="demonew"  bgcolor="#FFFFFF" width="820" height="480">
              <f:param name="text1" value="Hello" />
             </fiji:swf> </h:form></f:view>

    "vikbar" <[email protected]> wrote in
    message
    news:gb0tug$7je$[email protected]..
    > Hi Amy,
    >
    > Isnt the HistoryManager approach more specific to Flex
    application i.e if
    > user
    > is just navigating with in the flex application? In my
    case the user will
    > navigate between a JSF page which does not have any SWF
    file and the
    > another
    > one which has swf file embedded. Now everytime when the
    suer moves to the
    > flex
    > embedded JSF page from the Non Flex JSF page these are
    the steps which are
    > always going to happen :
    >
    > 1.) System Manager will get initialized and will create
    PreLoader
    > instance.
    > 2.) The preLoader will then try to download the swf
    file. Now since this
    > is
    > the second time the user is coming back to the flex page
    so the broswer
    > would
    > have already cached this swf, so Preloader will skip the
    downloading
    > swf/RSl
    > step and hence you wont see any initialization progress
    bar.
    >
    > 3.) New Application object will get instantiated and
    will go through its
    > whole
    > lifecycle.
    >
    > So, I guess historyManager approach will work only if
    the user stays on
    > the
    > flex application only and navigates with in flex
    application itself(so in
    > that
    > case if the user clicks back then it knows which flex
    component or view to
    > display), but in my case user will completely move away
    from flex page to
    > a
    > JSF page and then will try to come back.
    >
    You'd need to put the right stuff in the url to make it work,
    just like if
    you were calling a page that's expecting GET params. I don't
    really use the
    HistoryManager, so you'll need to either look into this
    yourself or ask
    someone who knows more about it.
    HTH;
    Amy

  • HT1338 what about the problems with the trojan virus is that a problem for my mac as well?

    What about the problems with the Trojan virus will this be a problem also for me using Mac

    What Trojan?
    If you're referring to the DNS Changer Trojan, it's highly unlikely you're affected. The actual distribution of the trojan was stopped several years ago and the perpertrators jailed.
    The FBI has been maintaining the servers used by the trojan for the last 5 years in order to give affected systems time to be purged. They will finally shut them down on Monday.
    Ensure that your router and the Mac's network settings are set for the DNS addresses of your ISP, or if you're not sure what they should be, change them to Open DNS using the IP addresses;
    208.67.222.222
    208.67.220.220

  • Jsf 1s phase of life cycle how knows ths components of the jsp with jsf tag

    i wish to know how faces servlet knows the jsp s view components while creaTI NG component tree at first request to input jsp which may have jsf tags.in the first phase faces servlet doesnot know input jsp with jsf tags what componnets it has. it is actually atthe response send or forward time which is the final phase when the tag ge executed and output is sent to client.i did understandin jsf life cycle in 1 st phase component tree is created at first request in 1 st phase .

    Hi,
    though a FacesContext holds the values used by a request, it doesn't mean it lives for as long as the request. The best explanation I found is from the JavaDocs
    release
    public abstract void release()
    +Release any resources associated with this FacesContext instance. Faces implementations may choose to pool instances in the associated FacesContextFactory to avoid repeated object creation and garbage collection. After release() is called on a FacesContext instance (until the FacesContext instance has been recycled by the implementation for re-use), calling any other methods will cause an IllegalStateException to be thrown.+
    The implementation must call setCurrentInstance(javax.faces.context.FacesContext) passing null to remove the association between this thread and this dead FacesContext instance.
    Throws:
    java.lang.IllegalStateException - if this method is called after this instance has been released
    Frank

  • Question about app design with JSF

    I'm new to JSF and have been using MyFaces in combination with Tomcat and Hibernate to write a web application for my institution. We have a fairly clean model implemented and our hibernate persistence layer is also looking good. I'm running into trouble making a clean view layer with JSF. Namely, I can't seem to avoid creating lots of classes to get a given job done.
    As a for instance: I have quite a few enumerations representing various units of measure, conventions, etc. To persist them in the db with hibernate, I needed to make a converter class to convert the Enums to strings. I wrote a class using generics that could convert any enum to strings appropriately given a class object you pass into the constructor. Well, hibernate needs a no arg constructor so it can instantiate one automatically, so I had to make a subclass of this converter for each enumeration I have in my model. Couldn't see a way around it.
    Now, using JSF, I'm needing to implement another converter for enumerations in order convert back and forth from strings. Same deal. I could use a single class to get the job done. The problem is, in the faces-config.xml where you define your converter classes, it doesn't look like I can have 2 converters defined with the same converter class.
    i.e.:
    <converter>
    <converter-for-class>commons.astronomy.Epoch</converter-for-class>
    <converter-class>tools.webapp.EnumConverter</converter-class>
    <property>
         <property-name>enumClass</property-name>
         <property-class>java.lang.Class</property-class>
           <default-value>commons.astronomy.Epoch</default-value>
    </property>
    </converter>
    <converter>
    <converter-for-class>commons.astronomy.VelocityConvention</converter-for-class>
    <converter-class>tools.webapp.EnumConverter</converter-class>
    <property>
         <property-name>enumClass</property-name>
         <property-class>java.lang.Class</property-class>
            <default-value>commons.astronomy.VelocityConvention</default-value>
    </property>
    </converter>MyFaces seems to associate both Epoch and VelocityConvention with the second configuration of the EnumConverter class. So, the long and short of it is, here I am again having to write yet another class PER enumeration.
    I could go on with another example, but this post is getting lengthy, so I'll make it short. Some of my model classes are not java beans because it would create inconsistencies to only set some of the properties one at a time. I.E. I need to call a method obj.set(a, b) not obj.setA(a); obj.setB(b). My first thought was to create a custom component for obj so that I can turn 2 (or more) input fields into 1 set call. There are other advantages in reusability, etc.
    Unfortunately, I have several of those situations and am finding myself leaning toward implementing yet MORE classes to make a separate component for each such instance of a non-java bean set of properties.
    What it all comes down to is I seem to be having a class explosion and I'm wondering if there's a better approach to this whole thing. How do you organize a view layer that talks to a model having enumerations and not quite javaBean pattern properties without a class explosion? That's the question I guess.
    Thanks for your patience in reading all of that and any help you can provide!
    brian

    No, I don't have tables of values. I have a java 1.5 enumeration, like for instance:
    public enum VelocityConvention {
       RELATIVISTIC,
       REDSHIFT;
    }and a class Velocity that contains a convention and a value like so:
    public class Velocity {
       public VelocityConvention getConvention() {...}
       public double getValue() {...}
       public void set(VelocityConvention conv, double value) {...}
    }When I persist the Velocity class to the database, I want a field called convention that holds the appropriate value of the enumeration. That much is done how I explained before.
    I want to have a selectOneMenu for setting the convention. Via trial and error, I found that MyFaces wasn't able to automatically convert from a string back to a proper VelocityConvention enum constant. It can, of course, convert from the enum to a string because it just calls toString(). But I need both directions for any UIInput element I use, be it a selectOne, or just a straight inputText.

  • What do I do about the file with a question mark when it starts up?

    I have a MacBook Pro, had it for 2 years now. It has been good, up until just now... It was on, perfect as normal until I plugged in my iPad mini and my iPod touch. It started freezing up, and so I turned it off, but when I turned it back on, the file with the question mark just shows up. What am I supposed to do now?  I have never had this problem before, and I don't wanna lose everything inside it as I have 2 years worth of pictures and videos. Any suggestions? Is there any steps I can take?
    P.s I'm not sure which operating system it is, so I just chose one that might be close to it, as I updated my Mac just a couples weeks ago.

    A flashing question mark appears when you start your Mac

  • Pavilion G7 nedd to know something about the processor with nvidia

    ok i got a new G7 laptop and i got the one with the 
    Intel(R) Core(TM) i3-370M Processor (2.40 GHz, 3MB L3 Cache) + Intel(R) HD Graphics 
    and i was wanting to know is there any possible way i could swap the processor or what ever with the one with the
    Intel(R) Core(TM) i3-370M (2.40 GHz, 3MB L3 Cache) + 1GB DDR3 NVIDIA(R) GeForce(R) GT 520M Graphics?
    would i have to get a whole new laptop or is there a way i could replace it somehow?

    FYI the processor is the same and its only video/graphics card which is different
    The first option has onboard intel graphics whereas second one has Nvidia Dedicated graphics. The graphics card is soldered on the motherboard and its obvious that you would have to get a new laptop in exchange as I dont think store or any place where you bought it would give you just the new motherboard with Nvidia GPU.
    //Click on Kudos and Accept as Solution if my reply was helpful and answered your question//
    I am an HP employee!!

  • Version number in 'About the Application' with Oracle SCM

    We are using Designer 6i with Headstart 6.5. We will be turning on Source Configuration Manager in Designer shortly , but after we go live. Hence we want to set up the P_revision value for displaying version in 'About this Application' form before using SCM, and want to do it so there will be minimal change when SCM Does get turned on.
    The Question:
    Can someone tell how the SCM version number get loaded into Headstart's p_revision on th forms ???

    The P_REVISION is just a forms parameters with as default value the version number.
    There is no direct link between the version number determined by SCM and this parameter.
    However there is Headstart utility which create or update the P_REVISION parameter to a manual supplied value or to the version number as determined by SCM.

  • Do not remove information about the community with out replacing said information.

    Policy changes ok. What things are about, or the meaning of items, should stay here until something is new to replace these pieces of information.
    Solved!
    Go to Solution.

    Heather_VZ wrote:
    Hey Prisaz-
    Can you please elaborate? Which pieces of information are you talking about? We don't delete information and very rarely do we archive things- and even then, they are all searchable. If you can give me more specifics, I'll be happy to do some research to see what's up.
    Thanks,
    Heather
    My bad. I guess with newer information, the older Jamie_Lee stuff regarding user levels, has just been bumped towards the bottom, and is still there, as pointed out by SomeGirl. I just over looked most of it.
    I just posted this because of other items being discussed. Please disregard, as it was an error on my part. The information is still there, but with the last site upgrade it is not exactly in the same place. (sort of)

  • The problem about the interMedia with JMF

    I have done the following things:
    1. Add jmfordim.jar into my client computer's CLASSPATH
    2. Using JMFRegistry, Add "oracle.ord" into both my client's "protocol Prefix List" and "Content Prefix List" in PackageManager tab, commit on both.
    My computer is a client, and the Oracle 9i database and the intermedia are installed on another server with the service name "CAO". I use the JMStudio on my computer.
    But when I use the URL :"im://oci8/CAO/scott:tiger/SELECT t.aud.getcontent(), t.aud.getmimetype() FROM TAUD t WHERE n = 1 " and add into the JMStudio's OpenURL,
    it can't work correctly.
    Would you please tell me the reason? Thank you very much!

    Can you post the error message? Or print out a java stack dump with the exception text?
    There can be problems in different areas, without the error information, I cannot hope to tell you why it does not work. Perhaps you don't have the orcale JDBC driver in your path?
    Larry

  • How to deliver a paramter to the viewobject with jsf

    I use hr schema to learn adf bc component.but i want to use jsf #{param.region} to get the parameter from the urls and deliver it to the viewobject and last show the list table on the jsf page
    in the viewoject xml
    sql :
    select a,b,c,d... from xxxview where region =: para_region
    and parmeters:
    parameter para_region
    and next how to operate the jdeveloper or write some code ?
    I'm a beginner .thanks.

    It is not clear what do you want to do?
    You would use #{param.region} if you want to display the query string param in your jsf like <af:outputText value="#{param.region}"/>.
    Do you want to get the query string value in the backing bean and set this value in VO where clause?
    To pass a value to your vo where clause:
      DCIteratorBinding  iter = (DCIteratorBinding)bindings.get("yourVOIterator");
      ViewObject vo =  iterter.getViewObject();
      vo.setNamedWhereClauseParam("whereparam", value);
      vo.executeQuery();

  • So I called Apple Care to ask about the delay with my MBP

    It's been almost a month - August 22nd - since i sent it in. Apparently, i'm waiting for a part - Logic Board? Probably.
    The guy put me on hold to check on the status. The song playing when he put me on hold? Hold On For One More Day, by Wilson Phillips. I kid you not.
    He said it would be back in a week and a half. I'm ******, but what can you do?

    That is absolutely awful and there is no excuse for that.
    Call customer relations and explain to them the situation. No one should have to wait a month.
    Apple Customer Relations: (800) 767-2775

  • On Apple's website it seems like everything about the iPad with retina display is better than the iPad 2. Is this true?

    ????

    The iPad 4 has a higher resolution than the iPad 2 (iPad 2 is 1024 x 768 pixels, on the iPad 3 and 4 it's 2048 x 1536).  The iPad 4 also has a faster processor (A6, the iPad has A5).
    iPad 2 and iPad 4 comparison : http://www.apple.com/ipad/compare/

  • Help about the last SRM version and interaction with suppliers

    Hello, I need the confirm that the last SAP SRM versione is the 7.0. Which are the differences between 5.0 and 7.0? Do you have materials about the interaction with suppliers for bids? Thank you!
    Dany

    Hi,
    There are a lot of differences between the SRM 5.0 and SRM 7.0.regarding the Bidding Scenario.
    Infact SRM 7.0 is released with Public Procurement service(PPS)
    The main differences
    SRM 5.0 -tender fees payment and EMD (Earnest Money deposit) is thro' Development
    SRM 7.0 -Tender fess -Payment can be made in SRM thro'Payment Gateway
                 - EMD Fees can also be paid in the SRM 7.0 which is Standard Functionality..
    There are  lot of differnce
    Just Wait for a day or two I will send the difference to your Business Id
    Regards
    G.Ganesh Kumar

  • Event handling with JSF

    Hi Everybody,
    I have a question about event handling and I am just wondering if I can do the following with JSF.
    I have two HTML dropdown lists A and B. When ever a value changes in list A, based on the selected value, list B has to be populated. Is it possible to do with JSF? Can you guys give me pointers where some code samples may be available?
    Cheers!
    Krish

    Take a look at the JSF Value-Changed Listener sections

Maybe you are looking for