Faces expression in Javascript?  Flash/Flex and Faces Session Variables

Does anyone know how to add a faces expression in Javascript?
I basically want to pass a Faces Variable to Flash/Flex. The best way to do that would be in Javascript.
I thought it would be fairly easy. Something like:
                    <webuijsf:script binding="#{Page1.script1}" id="script1" >
                        function foo() {
                          var text = #{Page1.textField1.text};
                          alert(text);
                    </webuijsf:script>Or something like that, and hope that the Faces expression will be expanded before sent to the browser. Unfortunately, that's not happening:
SEVERE: Servlet.service() for servlet Faces Servlet threw exception
org.apache.jasper.JasperException: /Page1.jsp(16,38) #{..} is not allowed in template textWhen ran in the HTTP context of NetBeans.
Edited by: Neelixx on Apr 5, 2008 4:42 PM - Clarified using more javascript example

Have a look at Shared Objects, I think these are the sort of
thing you are after. I think the "Specifying a path" subtopic
should be particularly relevant for sharing the variables/objects
between the two swf files.
Livedocs
- Shared Objects

Similar Messages

  • Code to set and destroy session variables in Java Server Pages(JSP)

    code to set and destroy session variables in Java Server Pages(JSP)
    we have use following statement to set session variable
    session.setAttribute("userClient",id);
    we have use following statement to destroy session variable
    session.setAttribute("userClient","");
    and
    the session.invalidate() is not working
    Plz. solve this probem

    code to set and destroy session variables in Java
    Server Pages(JSP)
    we have use following statement to set session
    variable
    session.setAttribute("userClient",id);
    we have use following statement to destroy session
    variable
    session.setAttribute("userClient","");Perhaps if you tried using
    session.setAttribute("userClient", null);
    or
    session.removeAttribute("userClient");
    and
    the session.invalidate() is not workingNot working how?
    >
    Plz. solve this probem

  • Flash, Flex, and the iPad

    While there is no shortage of iPad/Flash discussions on the Adobe and Apple forums, after searching for a couple hours now I have been unable to find the answers to my specific question.  So please forgive me if I missed it somewhere.
    As I understand it, Apple does not support Flash for the mobile and iPad devices.  This is reiterated in a number of Apple forum postings that I just read, as well as Steve Jobs' rant here:
    http://www.apple.com/hotnews/thoughts-on-flash/
    However, I came across this Adobe press release from less than a year ago:
    http://blogs.adobe.com/ukchannelnews/2011/06/20/announcement-mobile-applications-for-andro id-blackberry-iphone-and-ipad/
    Apparently this Flex thing allows me to develop cross-platform mobile applications.  So I do some research on Flex, trying to figure out the difference between Flex and Flash.  I come across Adobe's FAQ here:
    http://www.adobe.com/products/flex/faq.html#flex-flash
    It's not real clear to me, but it sounds like what they are saying is that Flex is simply a programmatic framework around which I can build Flash applications, especially helpful for those more familiar with traditional programming.  If this is the case, based on Adobe's press release above, it sounds like I should be able to use Flash on the iPad via Flex?  What am I missing?  Is there other differences between Flex and Flash?  Or perhaps is it the difference between an application and browser support (like Apple's Safari)?
    Thanks in advance for your patience, and your help.
    3P

    It's easy Pea...
    Flash is a plugin. It runs from withing the browser IE, Firefox, Safari, Opera, etc... It also can be run standalone, via special exe program on Windows platform.
    Although this is less common. Here are all the Flash versions: http://helpx.adobe.com/flash-player/kb/archived-flash-player-versions.html
    AIR is a cross platform runtime, kind of like Java (build once run everywhere). But with AIR it's a bit more tricky. You have to compile your program to each target platform (Desktop, Andriod, BlackBerry, iOS) separately. It's not like with Java where you can indeed run your jar file on lot of platforms. AIR is essentially Flash "on steroids" as it mostly has the same API as Flash and builds on top of it. But AIR not in the pluging form, i.e. you don't need a web browser to run it from.
    Here are the latest AIR runtime: http://get.adobe.com/air/
    and SDK: http://www.adobe.com/devnet/air/air-sdk-download.html
    You will need AIR SDK to build AIR applications and it has to be overlayed on top of Flex SDK which you can find here:
    Flex SDK: http://opensource.adobe.com/wiki/display/flexsdk/Download+Flex+4.6
    Now Flex SDK is essentially a component framework. You will need a button in your application, or a Video component, right? So that is what Flex provides for you free of charge.
    Obviously this sound simple but Flex is much more then that and here is your
    Flex documentation: http://www.adobe.com/devnet/flex/documentation.html
    So, Flex is a component framework which lets you build applications which target either Flash or AIR as executable runtime. For Flash it is called Web application and it runs from withing browser or standalone Flash player. For AIR it is called Desktop or Mobile project and it runs from withing AIR runtime which has to be installed on your device or bundled with your application.
    Now, speaking of Steve rants, yes, they wanted to kill Flash on their platform, there was even a guy there who was responsible for that result (I forgot his name but you can google), although Adobe never admited that and played it nice with Apple. Why they wanted to kill most expressive and complete vector and video engine on the web (Flash)? It's simple! This is beacase they wanted to play on their nice and cozy iOS/iPad/iPod playground alone! Because they want to control the delivery of the content from publisher to consumer. they want to stick their proprietory products and specifications in between and skim the money! That is why they don't need Flash in the browser. Flash allows people to publish and consume an impressive content without charging a dime! That includes H264 video among other things. And that is what Apple doesn't want to see.
    Good luck with Flex and everything else,
    SdS

  • Open source debugger for Flash, Flex and AIR

    As developers at De Monsters we weren’t totally happy
    with the current Flash, Flex or AIR debuggers out there. So we
    decided to create our own debugger called De MonsterDebugger. Today
    we’ve got a great new version that we want to share with the
    community for free.
    Interface
    screenshot
    De MonsterDebugger started out as an internal tool that
    helped us with the development of different ActionScript 3
    projects. The past several months we’ve been working on a new
    version of this internal tool. With this new version you can
    explore your live application, adjust properties and run methods
    all at runtime. You can trace objects of any type (String, Array,
    XML or even custom classes) to De MonsterDebugger and it will show
    the complete structure of that object in an easy-to-read tree
    structure. De MonsterDebugger is made with Adobe Flex and brought
    to the desktop with Adobe AIR.
    Because De MonsterDebugger isn’t our core business
    we’re giving it away for free! All the sourcecode is open
    source available under the GNU General Public license.
    Enough talking!
    Here’s all the information you need:
    http://www.demonsterdebugger.com
    Ferdi Koomen,
    Lead Developer @ De Monsters

    I have uploaded the zip file containing my code . If anybody is interested can download from this link .
    http://www.mediafire.com/?8mfesdczsuv
    Vinod

  • Flash Menus cause my session variables to drop or not show temporarily until I refresh the page

    I have a login routine that once a user logs into teh site it
    creates a session variable. I have used this same script many times
    without any problem but I now have Flash menus and it seems that
    after logining in (session created) I will click on a menu item and
    the debugging shows that the session variable isn't there. If I hit
    the REFRESH button on the browser it appears.
    Has anyone gotten this and know a way to get around it. I
    have 5 pages I need for a user to navigate to after loging in but
    the initial load doesn't seem to have the session set even though
    it was set when they logged in but a REFRESH of each page
    individually now has the variable.
    Any Ideas...Is this something with Flash menus or
    something?

    Problem is solved by removing these 2 lines from iframe.html
    if(navigator.appName=="Microsoft Internet Explorer")
    document.location.replace("");

  • :USER and :GROUP session variables

    Hi,
    Please let me know the purpose of :USER and :GROUP variables. I have gone thru obiee docs but not understand clearly about these session variables.
    regards
    CK

    If you have to display a welcome message in a dashboard page with the user name, you can refer the USER session variable in the request. It will automatically get substituted with the log on name of the user
    Also you can use these variables in Authentication, authorization and data filters.
    Regards,
    Dpka

  • JSR 168 Portlet and PORTLET_SCOPE session variables

    Hi,
    I have a JSR-168 portlet that is putting session variables on the PortletSession. I have some variables that use "PORTLET_SCOPE" for that particular portlet. This works fine if I add the portlet directly on a page, no problems. Its able to retrieve and put variables on the PortletSession with PORTLET_SCOPE and retrieve them properly.
    The problem comes when when I have my JSR-168 portlet on a page, then select "Publish Page as Portlet", and then add that page (that contains the JSR-168 Portlet) to another page. Now, when I try to retrieve a variable that was put on the PortletSession w/ PORTLET_SCOPE, it returns null. So its like variables put on the PortletSession with PORTLET_SCOPE doesn't work properly if you add it as a page onto another page.
    In case that wasn't clear, let's say I have Page1 which contains my JSR-168 portlet and I selected "Publish Page as a Portlet."
    If I go to Page1, it works fine, no problems at all.
    Now, I have Page 2. I add Page 1 to Page 2. NOW, the Portlet on Page 1 doesn't work properly and I've narrowed it down to a problem with the PortletSession when PORTLET_SCOPE is used. Has anyone else run into this problem? I'm guessing the problem is the fact that page is published as a portlet and PORTLET_SCOPE doesn't work properly. Is this a bug or expected behavior?? If so, is there a workaround?
    Thanks in advance.

    Frank,
    The taglib is not in the classpath of the Portal server. We access other methods of the ftl taglib, like <f:webResources relativePath='js/myScripts.js' />at places higher up in the JSP and it has no problems with those ftl taglib calls.
    If I understand correctly, since the Portal is hosting a remote portlet, the Portal is only getting html from the remote portlet producer, not the actual JSP to compile into a web page. If that is true, the Portal never sees the taglib code, just the html that is produced from it - so it would not need the taglib in its classpath.
    There is something special about the "invoke" method of the taglib where it makes a call back to the Enterprise server. I think when it tries to go back to the Enterprise server, the Portal server has a problem with it.
    Thanks.
    Edited by marshallbenfield at 08/15/2007 6:02 AM
    Edited by marshallbenfield at 08/15/2007 6:03 AM

  • Flash, Flex, and Buttons oh my :)

    Hi world.  I have a programmer who is writing an application in Flex Builder 3.  I am doing all of the graphics in Adobe Illustrator, and we are now facing a situation with the buttons.  I am wondering if there is a way to make a button in Flash and export it to a file that he will have access to the three button states in his programming?  Of course I tried to just export an SWF of a button, and when he imported it, those three states were not available to him.  I have a feeling a solution involves a bit of Actionscript and naming an asset and a symbol for each state.  If anyone could point me to a solution or tutorial to making a button in Flash that would be importable to Flex would be greatly appreciated.  Thanks!

    Well, between the two of you I'm sure this will blow one of your minds:
    http://labs.adobe.com/technologies/flashcatalyst/
    "Transform artwork created in Adobe Photoshop®, Adobe Illustrator®, and Adobe Fireworks® into interactive designs."
    Free download...
    HTH,
    -Ted

  • Flash builder and php session management/login

    I've secured pages with cflogin using coldfusion but is there a comparible function in PHP?  I'm able to connect to a php/mysql DB but how do I lock those functions down with a login/password style security?
    Thanks

    Hi,
    I think this article contains what you are looking for.
    http://sudhirmanjunath.blogspot.com/2009/10/how-to-set-basic-authentication-for-php.html
    Please write back if you need any further clarifications.
    Thanks,
    Sudhir

  • Removing div with flash/flex from page crushes browser

    Hallo to all Flex experts !
    For an application based on dojo ( javascript ) we prototype
    the migration to flex -
    The application is very big, we already work on it more than
    2 years, so we try to make the migration smooth by implementing
    parts of the application in flex.
    To do that, we dynamically open a div with an <object>
    / <embed> in it, and close it on demand, by calling
    javascript from flex, and simply remove the div from the document.
    Problem is: this results in a browser crash ! (linux, FF 2,
    Flash 9.0.31)
    So, what is the recommended way to do that ( without crashing
    the browser) ? how do we gracefully remove a flash/flex from the
    page ?
    Cheers,
    Ron

    or [simple typo funonmars ;-) ]
    my_vars.send("
    http://some.com/file.php","_blank","POST");
    I used it a few times today for just the type of thing you're
    describing... it should do what you're after.

  • Future of Flash/Flex given HTML5 shows strongly

    Facebook has chosen HTML5 as the language to develop the new platform. It seems Flash/Flex is losing the war. Any comments?

    The one between Flash/Flex and HTML5, or between Adobe/Google and Apple. People are complaining Flex applications use a lot of memories and CPU powers on mobile devices. But I'm not so sure how good HTML5 is.
    Can you do a digital Guitar like the one we saw on Google a few days back using Flex? I heard it was done with HTML5.

  • Question about session variables and binding

    Hi All,
    I'm a newbie with Application Express. I've gone through several tutorials and a book, and now I'm actually getting started with apex. My first adventure is a tiny little form, where all you do is fill it out and it sends an email. Pretty simple.
    And, i have it working just fine - but I have a question about something I don't quite understand. Basically, I am generating the email text in a page process. And some of the form fields work fine if i reference them as *:ACCT_NAME*, but some give me the dreaded "not all variables bound" error. For the ones that give me the error, I can reference them like V('ACCT_NAME').
    So, as a newbie, I'm a little confused. When is it appropriate to use the V function, and when it is appropriate to use binding? Why would one of the fields work with binding but not another from the same form?
    Thanks for any clarification you can offer,
    Lisa

    Lisa,
    A bind variable is a place holder variable available in an environment.It is used quite frequently(outside Apex Context) in SQL and PLSQL scripts and especially in Dynamic SQL statements.Many times using a bind variable gives better performance. In the Apex environment,page items and many other variables related to the session are available as bind variables and hence their value can be referred in SQL,PLSQL contexts as :VARIABLE_NAME.
    Now V() function is an apex specific function which returns the value of an apex session variable outside the apex environment. So as Machaan pointed out, it is used in
    procedures and triggers that gets called from within an apex session. This is required since the bind variables themselves are not directly available in the SQL environment but their values from the corresponding session can be accessed by this apex built-in function.
    The length of any Bind variable name is limited to 30 characters, this is a limitation inherited from Oracle SQL itself and hence session variables(page or application items) whose name has a length which exceeds 30 characters cannot be used as the :ITEM_NAME format. In such cases you would have to use the v() method again. This might be happening in your case.

  • Session variable filters in the integration between OBIEE and webcenter

    Hello All,
    I have a customer with the requirement to make sure that reports created in answers and containing sessions variables in filters definition will be correctly filtered once called from webcenter.
    So if an OBI report is diplayed in webcenter and contains the same type of filters (based on session variable), will the results be filtered based on the specified variable?
    In other words can we use session variables in the integration between OBIEE and webcenter?
    Thanks Olayinka

    Have you follow all the steps written here :
    http://download.oracle.com/docs/cd/E10415_01/doc/bi.1013/e12188/T421739T475591.htm#T480640
    Do you have create the groups ?
    Do you connect as a member of the group XMLP_ADMIN ?
    Cheers
    Nico

  • Not booting from DVD drive | Flashing Question mark and face folder SOS!

    Hey there! I am hoping one of you folks can help.
    I noticed my iMac running really slow.
    I could not find my OS disks, so I bought OS X Leopard
    When I tried to boot from DVD it would flash the question/face folder for about 30 seconds then reboot normal. (I was able to install the OS. Just can't boot from the disk in order to run disk utility)
    Time got away from me and now my system is REALLY slow...
    I went and bought Disk Warrior
    Same issue, only my drive spits out that disk. (I can run and burn other disks)
    I won't discuss my failed attempts at getting help from the Apple store and by having the geniuses (not) call me. I would rather not pay an arm and a leg to have an approved repair center run the disk utility for me. I've already spent $169 on the OS and $100 on Disk Warrior... PLEASE HELP

    I think you are going in a totally wrong direction. Your profile indicates you have Leopard (10.5.X) however I don't believe that what you recently purchased. I think you purchased Snow Leopard (10.6.X), these are two totally different OS's! Unless you got extremely lucky and found someone selling 10.5.x then naturally you would have the problem you did trying to boot from it. My advice is:
    1. Look to see what version of OS X you are running (click the Apple in the upper left of this screen and then choose About this Mac) then cross check what version of the OS you recently purchased.
    2. If you are running 10.5.x then you will need to call Apple and purchase replacement discs for a nominal charge. Once received you should be able to boot from that disc and run Disk Utility from it.
    3. If you are running 10.6.x then re post (with an updated profile) so we can determine what the next step is.
    It seems like you don't know what you are doing and in an effort to save money you are probably going to spend more than taking your machine to an Apple Authorized Service Provider.
    Regards,
    Roger

  • Not booting from DVD drive | Flashing Question mark and face folder S

    Hey there! I am hoping one of you folks can help.
    I noticed my iMac running really slow.
    I could not find my OS disks, so I bought OS X Leopard
    When I tried to boot from DVD it would flash the question/face folder for about 30 seconds then reboot normal. (I was able to install the OS. Just can't boot from the disk in order to run disk utility)
    Time got away from me and now my system is REALLY slow...
    I went and bought Disk Warrior
    Same issue, only my drive spits out that disk. (I can run and burn other disks)
    I won't discuss my failed attempts at getting help from the Apple store and by having the geniuses (not) call me. I would rather not pay an arm and a leg to have an approved repair center run the disk utility for me. I've already spent $169 on the OS and $100 on Disk Warrior... PLEASE HELP

    Hey,
    No, I'm not running Snow Leopard. Running Leopard. 10.5.8
    I'm guessing the problem is either with my computer itself, or perhaps the DVD drive. Hard to tell. Maybe even something corrupt in my software?
    My problem is:
    I desperately need to run a disk utility of some sort, however am not able to make my computer use my OS disk or Disk warrior as a startup disk (either by holding down C, or by assigning it in System Utilities.)
    I was hoping someone might have a tip, or trick to get my machine to use one of these disks as the startup disk.
    Thanks!

Maybe you are looking for

  • Display non-english contacts in zen mi

    i have no problem getting chinese songs to display correctly on my zen micro using v2 firmware and wmp0, but some of my outlook contacts have chinese names and addresses, they don't show up when sync'd. anybody got non-english contact information to

  • In MEK3 Transaction How to Download the Display Customs % Values

    Hi Friends, Please Guide me on this Issue Once User enters MEK3 Transaction and he follows below Steps Enters the Condition Type Clicks on -> Key Combination Button Checks the Radio Button -> Purch Org / Plant/ Vendor and Continue After Providing Inp

  • In Soundtrack Pro I want to change the key of the audio but the feature is greyed out

    Hi. When I work with an audio file in Soundtrack Pro and want to raise or lower the key of the audio the choice is greyed out and so is change tempo. I am selecting the region and the track but those 2 features are grey and can't be used. Is there an

  • Correction Invoice - Poland/Hungary

    We are facing the following problem in Correction Invoice (RK) eg: Sales Order /Delivery/ Invoice (A) created for 100 pieces. Due to the material fault 50 pieces are returned and the credit note (B)is given for that 50 pieces. Later after few weeks w

  • GR/PO Confirmation Workflow

    Hi, Is there an N-Step Approval for PO Confirmation/Goods Receipt? I can only see One-Step, two-step and no approval. WS10400002     One-Step Approval of Goods Receipt WS10400009     Two-Step Approval of Goods Receipt WS10400010     Goods Receipt Wor