How to dinamically add label to flex application...?

Hi,
I'm new to flex and I have to make component similar to this:
http://imageupload.org/?d=F41EBEC01
I have 3 questions:
1. As you can see, component is divided on regions (here is 4 regions with different colors, but there can be more regions - this should be programatically). Now, above this box should be scale with number of region
(you can see this scale to). Scale should also be programatically, based on number of regions - 4 in this example.
Which is the best control for doing this? Is there any
flash builder control that support customization with scales and something like this component, or I have to use drawing for this, as I have already have?
2. How can I make opacity css effect? For example, in component on previous link I want to make some areas of box black but with opacity, so area under black is seen. Something like on this picture:
http://imageupload.org/?d=A3B76A421
3. How can I add label dinamically in action script code? I tried:
var myLabel:spark.components.Label=new spark.components.Label();
myLabel.move(0,0);
myLabel.text="AAA"
addChild(myLabel);
but nothing happened.
I'm using spark layout. I also tried to add label on button click but it also doesn't work. I tried to set wigth and height of label but it also doesn't work.
Any kind of help would be appreciate.
Thanks in advance

you may have to use Hbox then insert label inside
this may be helpful!!
http://livedocs.adobe.com/flex/3/html/help.html?content=containers_intro_6.html

Similar Messages

  • When I go to the option and then application I do not have a mailto content. How do I add this to my application so I can get my links mail from gmail? I am trying to set up email links to gmail. I have vista on this computer.

    I do not have a mailto under my application file. How do I add this to the application. I am trying to change my email links to gmail. I am using Vista.

    Try "Reset all user preferences to Firefox defaults" on the [[Safe mode]] start window.
    * http://kb.mozillazine.org/Resetting_preferences

  • How can we add the years, in Application Profile.

    Hi Experts,
    I have a doubt regarding the Application Profile in HFM, Here My question is, How can we add the years to application profile, After once created and attached with one application and the application is going on for past 2 years, now the requirement is add the years to application profile HFM.
    1. Is there any rule required for this?, If there is a rule, please explain the rule.
    Thanks & Regards.
    RajaKK

    Hi RajaKK
    The below mentioned article might be helpful to you.
    How to Add Additional Years to the Year Dimension in an HFM Application (Doc ID 1287575.1)
    If you are in 11.1.2.1. version the utility would be available in the below location by default.
    C:\Oracle\Middleware\EPMSystem11R1\products\FinancialManagement\Utilities\FMChangeNumberOfYearsForApp_x64.exe
    Hope this helps,
    Thank you,
    Charles Babu J

  • How to use virtual keyboard in flex application

    hi..
    i am using flash builder 4,
    how to use virtual keyboard in flex?
    if any one aware of this pls reply me.......
    saran r

    hi,
    how to code for these buttons  "control,alt,delete,insert and spacebar".
    can u help me  how to program?
    i have attached the mxml code with this,
    virtualkeypad1.mxml
    <?xml  version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                    xmlns:s="library://ns.adobe.com/flex/spark"
                    xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955"  minHeight="600"
                     creationComplete="application1_creationCompleteHandler(event)"  viewSourceURL="srcview/index.html">
         <fx:Script>
             <![CDATA[
                 import flash.utils.getQualifiedSuperclassName;
                 import mx.events.FlexEvent;
                 private var inpText:String = 'inp1';
                 private var shiftState:Boolean = false;
                 private var capsState:Boolean = false;
                 protected function  keyboard_clickHandler(event:MouseEvent):void
                     this[inpText].text =  this[inpText].text+(event.currentTarget as Button).label;
                     if (shiftState == true) shift_clickHandler(null);
                 protected function caps_clickHandler(event:MouseEvent):void
                     capsState = !capsState;
                     if (capsState == true)
                         currentState = "SHIFTED" else currentState =  "PRIMARY";
                 protected function tab_clickHandler(event:MouseEvent):void
                     this[inpText].text = this[inpText].text+"    ";
                 protected function shift_clickHandler(event:MouseEvent):void
                     shiftState = !shiftState;
                     if (shiftState == true)
                         currentState = "SHIFTED" else currentState =  "PRIMARY";
                 protected function enter_clickHandler(event:MouseEvent):void
                     this[inpText].text = this[inpText].text+"\n";
                 protected function  backspace_clickHandler(event:MouseEvent):void
                     var tmpStr:String = this[inpText].text;
                     this[inpText].text = tmpStr.substr(0,tmpStr.length-1);
                 protected function  application1_creationCompleteHandler(event:FlexEvent):void
                     inp1.setFocus();               
                 protected function focus_enterHandler(event:MouseEvent):void
                     inpText = event.currentTarget.id;
             ]]>
         </fx:Script>
         <s:states>
             <s:State name="PRIMARY"/>
             <s:State name="SHIFTED"/>
         </s:states>
         <fx:Declarations>
             <!-- Place non-visual elements (e.g., services, value  objects) here -->
         </fx:Declarations>
         <s:TextInput id="inp1" y="36" width="151" horizontalCenter="0"  click="focus_enterHandler(event)" y.PRIMARY="239"  horizontalCenter.PRIMARY="42" width.PRIMARY="199"  height.PRIMARY="31"/>
         <s:Group id="keyboard" width="661" height="184"  horizontalCenter="0" y="300" focusEnabled="false">
             <s:Button x="5" y="5" label="~" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="`"/>
             <s:Button x="49" y="5" label="!" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="1"/>
             <s:Button x="93" y="5" label="@" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="2"/>
             <s:Button x="137" y="5" label="#" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="3"/>
             <s:Button x="181" y="5" label="$" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="4"/>
             <s:Button x="225" y="5" label="%" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="5"/>
             <s:Button x="269" y="5" label="^" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="6"/>
             <s:Button x="313" y="5" label="&amp;" height="43"  width="44" fontSize="24" fontWeight="bold"  click="keyboard_clickHandler(event)" label.PRIMARY="7"/>
             <s:Button x="357" y="5" label="*" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="8"/>
             <s:Button x="401" y="5" label="(" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="9"/>
             <s:Button x="445" y="5" label=")" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="0"/>
             <s:Button x="489" y="5" label="_" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="-"/>
             <s:Button x="533" y="5" label="+" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="="/>
             <s:Button x="577" y="5" label="Backspace" height="43"  width="80" fontSize="11" fontWeight="bold"  click="backspace_clickHandler(event)"/>
             <s:Button x="5" y="48" label="Tab" height="43" width="67"  fontSize="12" fontWeight="bold" click="tab_clickHandler(event)"/>
             <s:Button x="72" y="48" label="Q" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="q"/>
             <s:Button x="116" y="48" label="W" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="w"/>
             <s:Button x="160" y="48" label="E" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="e"/>
             <s:Button x="204" y="48" label="R" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="r"/>
             <s:Button x="248" y="48" label="T" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="t"/>
             <s:Button x="292" y="48" label="Y" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="y"/>
             <s:Button x="336" y="48" label="U" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="u"/>
             <s:Button x="380" y="48" label="I" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="i"/>
             <s:Button x="424" y="48" label="O" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="o"/>
             <s:Button x="468" y="48" label="P" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="p"/>
             <s:Button x="512" y="48" label="{" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="["/>
             <s:Button x="556" y="48" label="}" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="]"/>
             <s:Button x="600" y="48" label="|" height="43" width="57"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="\"/>
             <s:Button x="5" y="91" label="CapsLock" height="43"  width="80" fontSize="12" fontWeight="bold"  click="caps_clickHandler(event)"/>
             <s:Button x="85" y="91" label="A" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="a"/>
             <s:Button x="129" y="91" label="S" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="s"/>
             <s:Button x="173" y="91" label="D" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="d"/>
             <s:Button x="217" y="91" label="F" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="f"/>
             <s:Button x="261" y="91" label="G" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="g"/>
             <s:Button x="305" y="91" label="H" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="h"/>
             <s:Button x="349" y="91" label="J" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="j"/>
             <s:Button x="393" y="91" label="K" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="k"/>
             <s:Button x="437" y="91" label="L" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="l"/>
             <s:Button x="481" y="91" label=":" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY=";"/>
             <s:Button x="525" y="91" label="&quot;" height="43"  width="44" fontSize="24" fontWeight="bold"  click="keyboard_clickHandler(event)" label.PRIMARY="'"/>
             <s:Button x="569" y="91" label="Enter" height="43" width="88"  fontSize="24" fontWeight="bold" click="enter_clickHandler(event)"/>
             <s:Button x="5" y="134" label="Shift" height="43" width="106"  fontSize="24" fontWeight="bold" click="shift_clickHandler(event)"/>
             <s:Button x="111" y="134" label="Z" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="z"/>
             <s:Button x="155" y="134" label="X" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="x"/>
             <s:Button x="199" y="134" label="C" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="c"/>
             <s:Button x="243" y="134" label="V" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="v"/>
             <s:Button x="287" y="134" label="B" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="b"/>
             <s:Button x="331" y="134" label="N" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="n"/>
             <s:Button x="375" y="134" label="M" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="m"/>
             <s:Button x="419" y="134" label="&lt;" height="43"  width="44" fontSize="24" fontWeight="bold"  click="keyboard_clickHandler(event)" label.PRIMARY=","/>
             <s:Button x="463" y="134" label="&gt;" height="43"  width="44" fontSize="24" fontWeight="bold"  click="keyboard_clickHandler(event)" label.PRIMARY="."/>
             <s:Button x="507" y="134" label="?" height="43" width="44"  fontSize="24" fontWeight="bold" click="keyboard_clickHandler(event)"  label.PRIMARY="/"/>
             <s:Button x="551" y="134" label="Shift" height="43"  width="106" fontSize="24" fontWeight="bold"  click="shift_clickHandler(event)"/>
         </s:Group>
    </s:Application>
    thanks in  advance,
    saran r

  • How to create multiple pages using flex application.

    Hi all,
    i am doing flex application which contains 5 different
    pages,
    to do this i have used viewstack component to navigate
    between the pages.
    this is working fine if all my pages are of same size. each
    page as different background image.
    but i have to create pages with different sizes.
    my first and second page are small and remaining pages are
    big.
    when i navigate to 3rd or 4th page, it is showing scrollbar
    inside swf.
    but i want scrollbar for browser window not inside my swf
    anyone please guide me how to create pages in flex
    application.
    i have one more doubt, if my page contains some html links ,
    how to open those links,
    is it posible to open the link in new window.
    please help me , i have no idea how to create web
    applications using flex
    Thanks in advance
    regards
    avanthika

    Hi inlineblue,
    Thanks for your reply,
    you asked about sample code,
    following is my sample code.
    In my Application mxml file, i am loading all custom
    components for each page.
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    xmlns="*"
    horizontalAlign="center" verticalAlign="top"
    styleName="plain"
    backgroundColor="#FFFFFF"
    creationComplete="init()" width="780" height="594" >
    <mx:Script>
    <![CDATA[
    //navigating to next page
    public function showNextStep(newIndx:int):void{
    vs.selectedIndex=newIndx;
    //navigating to previous page
    public function showPreviousStep(newIndx):void{
    vs.selectedIndex=newIndx
    ]]>
    </mx:Script>
    <mx:ViewStack id="vs" paddingLeft="0" height="100%"
    width="100%" >
    <mx:Canvas id="s1" label="step1"
    backgroundImage="assets/Step1.jpg" >
    <!-- Step1.jpg image size is width=778, height=560 -->
    <mx:HBox paddingLeft="8" width="780" height="548">
    </mx:HBox>
    <mx:Button alpha="0" buttonMode="true" x="697" y="18"
    click="showNextStep(1)" width="72" height="24" />
    <mx:Button alpha="0" buttonMode="true" x="697" y="508"
    width="72" click="showNextStep(1)" height="24"/>
    </mx:Canvas>
    <step2 id="s2" label="Step2" hideEffect="{blurImage}"
    showEffect="{unblurImage}" />
    <step3 id="s3" label="Step3" hideEffect="{blurImage}"
    showEffect="{unblurImage}" />
    <step4 id="s4" label="Step4" hideEffect="{blurImage}"
    showEffect="{unblurImage}" />
    <step5 id="s5" label="Step5" hideEffect="{blurImage}"
    showEffect="{unblurImage}" />
    </mx:ViewStack>
    </mx:Application>
    // following is the page2 (step2) component code
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Canvas xmlns:mx="
    http://www.adobe.com/2006/mxml"
    creationComplete="init()"
    backgroundImage="assets/Step2.jpg" width="778" height="600"
    >
    <!-- Step2.jpg image size is width=778, height=600 -->
    <mx:HBox horizontalAlign="left" paddingLeft="5"
    height="511" width="768">
    </mx:HBox>
    <mx:Button alpha="0" buttonMode="true" x="648" y="6"
    click="this.parentApplication.showPreviousStep(0)" width="61"
    height="24"/>
    <mx:Button alpha="0" buttonMode="true" x="711" y="6"
    click="this.parentApplication.showNextStep(2)" width="53"
    height="24"/>
    <mx:Button alpha="0" buttonMode="true" x="651" y="529"
    width="58" click="this.parentApplication.showPreviousStep(0)"
    height="24"/>
    <mx:Button alpha="0" buttonMode="true" x="712" y="528"
    width="54" click="this.parentApplication.showNextStep(2)"
    height="24"/>
    </mx:Canvas>
    // following is the code for page3 (step3) component
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Canvas xmlns:mx="
    http://www.adobe.com/2006/mxml"
    creationComplete="init()"
    backgroundImage="assets/Step3.jpg" >
    <!-- Step3.jpg image size is width=778, height=660 -->
    <mx:VBox width="763" height="668">
    </mx:VBox>
    <mx:Button alpha="0" buttonMode="true" x="644" y="10"
    click="this.parentApplication.showPreviousStep(1)" width="61"
    height="24"/>
    <mx:Button alpha="0" buttonMode="true" x="708" y="10"
    click="this.parentApplication.showNextStep(3)" width="53"
    height="24"/>
    <mx:Button alpha="0" buttonMode="true" label="Back"
    x="625" y="590" width="58"
    click="this.parentApplication.showPreviousStep(1)" height="24"/>
    <mx:Button alpha="0" buttonMode="true" x="694" y="590"
    width="68" click="this.parentApplication.showNextStep(3)"
    height="24"/>
    </mx:Canvas>
    // following is code for page4 (step 4),
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Canvas xmlns:mx="
    http://www.adobe.com/2006/mxml"
    creationComplete="init()"
    backgroundImage="assets/Step4.jpg" >
    <!-- Step4.jpg image size is width=778, height=773 -->
    <mx:VBox width="762" height="792">
    <!-- User interface -->
    </mx:VBox>
    <mx:Button alpha="0" buttonMode="true" x="644" y="15"
    click="this.parentApplication.showPreviousStep(2)" width="61"
    height="24"/>
    <mx:Button alpha="0" buttonMode="true" x="708" y="16"
    click="this.parentApplication.showNextStep(4)" width="53"
    height="24"/>
    <mx:Button alpha="0" buttonMode="true" x="644" y="710"
    width="58" click="this.parentApplication.showPreviousStep(2)"
    height="24"/>
    <mx:Button alpha="0" buttonMode="true" x="703" y="710"
    width="54" click="this.parentApplication.showNextStep(4)"
    height="24"/>
    </mx:Canvas>
    // Following is code for Page 5 (step 5 ) component.
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Canvas xmlns:mx="
    http://www.adobe.com/2006/mxml"
    creationComplete="init()"
    backgroundImage="assets/Step5.jpg" width="778"
    height="600">
    <!-- Step5.jpg image size is width=778, height=539-->
    <mx:VBox paddingLeft="170" paddingTop="170" width="778"
    height="522">
    </mx:VBox>
    <mx:Button alpha="0" buttonMode="true" x="654" y="41"
    click="this.parentApplication.showPreviousStep(3)" width="72"
    height="24"/>
    <mx:Button alpha="0" buttonMode="true" x="654" y="486"
    width="72" click="this.parentApplication.showPreviousStep(3)"
    height="24"/>
    </mx:Canvas>
    I am getting vertical scrollbar for page3 and page4,
    please tell me how to avoid this, Is their any other method
    to do this.
    Following is the link for my above code
    http://www.emantras.com/flexdemo/sample.html
    in this application one more problem is also their,
    background image loads very slow, before it loads all the flex
    components will load. So when you open this please wait till
    background image loaded, to move to next and back pages.
    Thanks for your time and consideration.
    Regards
    Avanthika

  • How to display pdf file in flex application

    hi,
    I am Ibran, I am using Flex4.5, in that i want to display a pdf file like images.
    How can i do it please anyone tell me.
    I have used navigateToURL(url),but this was going into navigation and i can't see my textfield and buttons.
    So without this  navigateToURL(url) how can i display a pdf file in flex without navigation so that i can see my textInputs and buttons.

    Flash does not have the ability to load/display/manipulate PDF files, so you can't open it directly in the flex application.  With clever HTML and javascript, you can make it appear that it is in the same window, but it will actually be in a separate window/div in the browser.  And yes, this has always seemed absurd to me that Adobe doesn't support PDF's......
    Mark

  • How-To dinamically add an attribute using "c:if" tag?

    Hi,
    I have a problem with f:attribute tag.
    I need to dinamically add an attribute to a h:panelGroup tag according to the value of a ELExpression. For example the fragment below should output an HTML page with two radio controls; depending to the clicked radio, the "foo" section or the "baz" section is showed (this is controlled client-side vie the javascript function called in the onclick event of the "foobaz" component):
    <h:selectOneRadio id="foobaz" layout="lineDirection" value="#{myBean.foobazMode}" onclick="showHideFooBaz(this);">
      <f:selectItem itemValue="#{myBean.fooMode}" itemLabel="Show Foo"/>
      <f:selectItem itemValue="#{myBean.bazMode}" itemLabel="Show Baz"/>
    </h:selectOneRadio>
    <h:panelGroup id="foo">
      <c:if test="#{myBean.bazVisibile}">
        <f:attribute name="style" value="display: none"/>
      </c:if>
    </h:panelGroup>
    <h:panelGroup id="baz">
      <c:if test="#{myBean.fooVisibile}">
        <f:attribute name="style" value="display: none"/>
      </c:if>
    </h:panelGroup>Well, the problem is this not work.
    So my idea was to develop a new AttributeTag with a JSP body content in order to write:
    <h:panelGroup id="foo">
      <my:attribute name="style">
        <c:choose>
          <c:when test="#{myBean.fooVisibile}">
            <f:verbatim>display: block</f:verbatim>
          </c:when>
          <c:otherwise>
            <f:verbatim>display: none</f:verbatim>
          </c:otherwise>
        </c:choose>
      </my:attribute>
    </h:panelGroup>
    ...but don't work too.
    Starting from the SUN JSF-RI AttributeTag, I developed my version extending from BodyTagSupport class instead of TagSupport one.
    public class AttributeTag extends BodyTagSupport
        public int doStartTag() throws JspException {
            return (EVAL_BODY_INCLUDE);
        public int doEndTag() throws JspException {
           // Locate our parent UIComponentTagBase
            UIComponentClassicTagBase tag = UIComponentELTag.getParentUIComponentClassicTagBase(pageContext);
            if (tag == null) {
                    throw new JspException("com.sun.faces.NOT_NESTED_IN_UICOMPONENT_TAG_ERRO");
            // Add this attribute if it is not already defined
            UIComponent component = tag.getComponentInstance();
            if (component == null) {
                    throw new JspException("com.sun.faces.NO_COMPONENT_ASSOCIATED_WITH_UICOMPONENT_TAG");
            FacesContext context = FacesContext.getCurrentInstance();
            ELContext elContext = context.getELContext();
            String nameVal = null;
            Object valueVal = null;
            boolean isLiteral = false;
            int result = EVAL_PAGE;
            if (name != null) {
                nameVal = (String) name.getValue(elContext);
            if (value != null) {
                if (isLiteral = value.isLiteralText()) {
                    valueVal = value.getValue(elContext);
            else
                    BodyContent bodyContent = null;
                    String content = null;
                    String trimContent = null;
                    if (
                            (bodyContent = this.getBodyContent()) == null
                            || (content = bodyContent.getString()) == null
                            ||  (trimContent = content.trim()).length() == 0
                            || (
                                    trimContent.startsWith("<!--")
                            return result;
                    valueVal = trimContent;;
                    bodyContent.clearBody();
                    isLiteral = true;
            if (component.getAttributes().get(nameVal) == null) {
                if (isLiteral) {
                    component.getAttributes().put(nameVal, valueVal);
                else {
                    component.setValueExpression(nameVal, value);
            this.release();
            return result;
    }So guy, have you any idea of how to solve my problem?
    Any help is very very appreciated!!
    Regards,
    -- Anthony

    Hi BalusC
    The first one is not for me because the "rendered" attribute is set on the server-side: the current "invisibl"e section would not be included in the renderer page (what I want is render the page displaying the current visible section and to switch to another section at client-side)
    ...but...
    The second solution you propose is OK!!!! and so simple!!
    Yeah man I really really thank you (sorry I didn't find the "?:" expression in the JSP manual http://java.sun.com/products/jsp/syntax/2.0/syntaxref20.html. Now looking again - and better - I find it as "ChoiceExpression")
    Again, thanks!!!
    -- Anthony

  • How to create add-on for VB application

    Hi friends,
    I had created a VB application(not vb.net) and now i want to make that application as Add-On and Register in B1.
    for that what are the things i have to install,and how to create add-on to my VB application.
    Thanks & Regards
    Srinivas

    Srinivas,
    The SAP Business One SDK Help Center documents how to package your solution.  I would recommend that you start with reading the documentation here under the subject of "Package and Deployment".  You can also download the Business One Development tools (B1TE) from this site which will assist you with packaging your add-on.
    HTH,
    Eddy

  • How to open user file in Flex Application

    Hi forum,
    I develop flex2 application where user can browse and open
    XML file: the file should be loaded to text area.
    Could you, please, advice me how to browse and open user
    file?
    I found FileReference class but it looks that it can only
    upload file to a server. I need to open the file in flex
    application.
    Thanks for your help.
    Smoke007

    The issue isn't Flex, but the Flash Player. It is too much of
    a security risk to allow SWFs running in the Flash Player to open
    local files. Imagine going to a web site that has a SWF banner ad -
    but that banner ad opens local files and sends them to a remote
    system - all of your personal and financial information transfered
    without your consent.
    Flex apps running in the AIR player are different - the end
    user must launch them explicitly, just like any other local
    program.

  • How to embed Passcode mechanism in flex application

    Hi,
    I'm developing a flex based application. Almost everything is done. Now I would like to let the users to install this product only for 3 times on their machine.
    For this, Passcode mechanism is a good idea. The user has to enter this passcode which went alongwith the CD / DVD product after installing the product.
    They shall use this code for only 3 times. After that the product should not accept this passcode. Could anyone suggest me how to accomplish this task in flex ?
    Any tutorials for this ?
    Thanks in advance.

    The AIR desktop application is already made. The user will have to purchase the CD to install it. He/She should have to input the Code which went along with the CD while installing the product.
    He / She should be able to use this CD only for 3 times in the same computer OR use this CD in 3 different computers for 1 time in each.
    Simply it should be used only for 3 times.
    Could anyone suggest me how to accomplish this task ?

  • How we implement push on a flex applications?

    Hi
            Can any body tell me how we can implement push in flex.please tell me what actually this push means.even i have no idea what is push in flex?
    So please provide me link of some basic tutorial or explain me.
    Thanks In advance
           Vineet osho

    It meansh taht the servers sends data to your client through a persistent
    channel. Hence the push. You have a permanent connection between the Server and
    the Client. The client does not have to ask for updates/data it just gets them.
    This is different from the pull where client makes request for updates tho the
    server and the server replies with data as a result of the client requests. Pull
    is getting stuff ion demand.
    http://en.wikipedia.org/wiki/Push%E2%80%93pull_strategy
    this is a high level explanation.
    You have to use LCDS/Blaze DS in the backedn they have this kind of
    functionality built in. On the flex side there si not that much to do configure
    communication channels and listen for the incoming data. Once is there it is the
    same as in pull.
    HTH,
    C

  • ADF Tree with several sublevel : how to dinamically change labels ?

    Hello,
    I defined a tree (not treetable) like this
    Label (12)
      Sublevel (5)
        Another (0)
      Second (1)
    Label Two (5)
    ...  The number is corresponding to the number of element present in the corresponding level, number could be different depending on the user.
    For each level I have a VO, having a ViewCriteria to filter user or not (display user's elements or all element)
    I use a selectoneradio to change display.
    When I change the filter, the display of the first level changes (for instance "Label (12)" updated to "Label (25)"). But sublevel are not updated.
    How can I have the text updated ?
    In nodeStamp facet, I tried both outputtext and activeoutputtext with value :
    value="#{node.NodeLabel} (#{node.NodeNumber})"But sublevel never updated, and VO successfully updated (it seems)
    Any idea ?

    I add a precision. In fact the problem does not come from the labels, but the sub-level queries seem not updated.
    level 1 query looks like :
    select node_label,node_number,node_key,parent_key
      from (
        select level1.label,mypackage.getnumber(level1.key,:user),level1.key,null
          from common.level1)level 2 query looks like :
    select node_label,node_number,node_key,parent_key
      from (
        select level2.label,mypackage.getnumber(level2.key,:user),level2.key,level2.parent
          from common.level2)In the tree, if the bind variable :user is changed (through setuser method in the VO Java's code) and the VO's method (level1 and level2) executeQuery is called, the tree still displays the result of the first call fot sub-levels (starting at level2) although the first level is well updated.

  • How can I have my adobe flex application scale to fit the users screen ?

    I have been looking on google and couldn't find a answer. I have a application I created in adobe flex and I need it to scale to the users screen and fill the entire browser window no matter what.

    If you want your application to fill the user's whole screen you could set it to be in FullScreen
    Application.application.stage.displayState = StageDisplayState.FULL_SCREEN
    Write the above code into the callback of "applicationComplete"
    Hope this helps

  • The 'applications' tab in tools does not list Adobe documents (pdf), only adobe forms - so it will not open pdfs properly. How do i add an item to Applications?

    The topic in Help relating to the Applications manager tab shows Adobe.pdf as a separate line, but it does not appear in my set up. I can download pdf files, but not open them online (e.g hotel menus etc.)

    I have a similar problem. Even though Word is listed under Firefox applications as opening .doc files, when I try to download a .doc file, it always asks me to choose an application and I have to go through an extra three steps to open Word.

  • Under the tools/options/applications tab Telnet is not listed. I have 2 computers running the same OS and on 1 telnet is listed under the applications tab and on the other it is not. How can I add Telnet to the applications tab.

    This is an issue in both the 3.x and the 4.x versions. On the computer that has telnet listed I have it setup so that when I enter telnet:x.x.x.x it opens a putty session. I have created a bunch of bookmarks using the telnet:x.x.x.x format and exported them to my peers but some have telnet option and some do not. Telnet is enabled on there PC's

    Yes you can. Make sure that domains configured to use different multicast address. WLS uses multicast for communications between nodes in domain.
              although your configuration will work, you could have troubles if you going to execute inter-domain calls between domains/servers with the same names.

Maybe you are looking for

  • Converting ResultSet to XML by OracleXMLQuery

    Hello, I'm newbie in XML and I have following problem: I'm using OracleXMLQuery to convert ResultSet from oracle db to XML document. I'm using getXMLDOM()(from oracle package) to convert this OracleXMLQuery into DOM representation. I can extract node

  • DNS, site question

    I am tinkering with Snow Leopard Server as a web/file/vpn server. I am not able to get it working however, and wondered if someone could help me out. I am a noob to mac as a web server, but have some experience in dns and apache hosting in the tradit

  • Ipod said it needs restored but Itunes or windows won't recognize

    I have an 80 gb classic and it said one day (after being fully charged) that it needed to be restored. So I plug it in and Itunes won't recognize it and windows shows it as a removeable disk but there's no info there either. I have the latest version

  • How can I access the Edit preferences performance use Graphics Processor option through the jsx scri

    I want to runa a script with and without GPU options. I made an actionto click on the Edit>Preferences>Performace>use graphics processor checkbox. But now I want to check wether the checkbox is ticked or not to determine i should use it for a with GP

  • LSMW - Unicode

    Hello Experts! I have issue. I need to upload customer master record. Of 30 fields, three needs to be uploaded in Chinese language. I have installed Unicode for notepad and I can see the Chineese characters in my source file. But when I read data fro