Change Properties by ADF JavaScript

Hello Experts,
I am trying to change two properties styleClass and shortDesc of a panelGroupLayout. I have a clientListener attached to that panelGroupLayout.
<af:panelGroupLayout id="dc_pgl3" styleClass="carousel-player-panel start" layout="vertical">
    <af:clientListener method="playOrPauseCaroselAnimation" type="click"/>
</af:panelGroupLayout>
From the playOrPauseCaroselAnimation method I am doing:
var playOrPauseCaroselAnimation = function(event) {
    //some other code
    var carouselPlayerPanel = event.getSource();  
    if(hasStyleClass(carouselPlayerPanel, 'start')) {
        carouselPlayerPanel.setProperty("shortDesc", "Pause", false, AdfUIComponent.PROPAGATE_LOCALLY);
        carouselPlayerPanel.setProperty("styleClass", "carousel-player-panel stop", false, AdfUIComponent.PROPAGATE_LOCALLY);
  //some other code
    } else {          
        carouselPlayerPanel.setProperty("shortDesc", "Play", false, AdfUIComponent.PROPAGATE_LOCALLY);
        carouselPlayerPanel.setProperty("styleClass", "carousel-player-panel start", false, AdfUIComponent.PROPAGATE_LOCALLY);
But the strange thing that is happening is, it is not working unless I comment the line where I am changing the property shortDesc. For the styleClass it does work.
I even have tested by commenting the property change of the styleClass. And in that case also the shortDesc is not updating.
And if I do this:
var playOrPauseCaroselAnimation = function(event) {
    clearInterval(searchCarouselInterval);
    var carouselPlayerPanel = event.getSource();  
    if(hasStyleClass(carouselPlayerPanel, "start")) {
        //carouselPlayerPanel.setProperty("shortDesc", "Pause", false, AdfUIComponent.PROPAGATE_LOCALLY);
        carouselPlayerPanel.setShortDesc("Pause");
        carouselPlayerPanel.setProperty("styleClass", "carousel-player-panel stop", false, AdfUIComponent.PROPAGATE_LOCALLY);
        //some other code                
    } else {          
        //carouselPlayerPanel.setProperty("shortDesc", "Play", false, AdfUIComponent.PROPAGATE_LOCALLY);
        carouselPlayerPanel.setShortDesc("Play");
        carouselPlayerPanel.setProperty("styleClass", "carousel-player-panel start", false, AdfUIComponent.PROPAGATE_LOCALLY);
Then on the first click the change is not reflecting. The codes which are in the "//some other code" portion get executed but the o change in styleClass and shortDesc. On second time clicking it is working. But when again that panelGroupLayout got the styleClass "start" it behaves the same (first time doesn't work, on second click work). Also by changing the shortDesc this way would persist the change and that is not desired. Since I want if any PPR happens the panelGroupLayout should get reset as it was initially.
I am unable to figure what is causing the issue? Any pointer would be very helpful.

Hi Tapas,
I think you might be doing something else in //someothercode. I tried the following and it works as expected with no problem:
                        <af:resource type="javascript">
                            function updateAttributes(event){
                                var panel = event.getSource();
                                console.log("entering");
                                console.log(hasStyleClass(panel,'start'));
                                if (hasStyleClass(panel,'start')){
                                    panel.setProperty("shortDesc", "Pause");
                                    panel.setProperty("styleClass", "carousel-player-panel stop");
                                }else{
                                    console.log("Adding ShortDesc");
                                    panel.setProperty("shortDesc", "Play");
                                    console.log("Adding start class");
                                    panel.setProperty("styleClass", "carousel-player-panel start");
                            function hasStyleClass(ui, str){
                                var style = ui.getStyleClass();
                                console.log("looking for "+str);
                                console.log("in "+style);
                                console.log("Returning "+(style != null ? style.indexOf(str) != -1? true : false : false));
                                return (style != null ? style.indexOf(str) != -1? true : false : false);
                        </af:resource>
Also, you need to put clientComponent="true" to your panelGroupLayout.

Similar Messages

  • Error (23317) The operation Change properties of virtual machine is not permitted on a virtual machine that has shared virtual hard disks. Recommended Action The operation Change properties of virtual machine is not permitted on a virtual machine that h

    Experts !
    Error (23317)
    The operation Change properties of virtual machine is not permitted on a virtual machine that has shared virtual hard disks.
    Recommended Action
    The operation Change properties of virtual machine is not permitted on a virtual machine that has shared virtual hard disks.
    Is this limitation by design? If we have a shared VHDX between two VMs, then I am not able to change the VM properties from SCVMM.
    SCVMM 2012 R2 with Windows Server 2012 R2 Hyper-V.
    Appreciate any help !
    Optimism is the faith that leads to achievement. Nothing can be done without hope and confidence.
    InsideVirtualization.com

    Hello,
    that is a VMM issue.
    If you did not deploy your virtual cluster from a VMM service template, VMM doesn't recognize the configuration.
    Until MS got it fixed, you could use the workaround from system center central:
    http://www.systemcentercentral.com/tag/shared-vhdx/
    This posting is provided >AS IS< with no warranties.

  • Change security of adf application on weblogic

    hi all,
    i am new in weblogic. i set oid in weblogic succesfully. But i couldn't change security of adf application. Is there any documantationof how change security of adf application?

    hi frank,
    i mean that i set oid in myrealm which is my default security realm. I change order of Authentication Providers. all of the users of oid are in myrealm . However my application does not use this ldap configuration. i couldn't change security of application, and i need help. Before i deploy my 10.1.3 adf application to oc4j and during deployment i can set the security of application but i couldnt see anything like oc4j in weblogic
    i configure my oid like below link
    http://www.oracle.com/technology/products/jdev/tips/fnimphius/oidconfig/index.html

  • How can i use  a adf javascript api

    hi
    can i use the adf javascript api for creating the AdfRichInputText .is there any producer
    to create the AdfRichTextInputText in javascript .plz guide me
    Thanks and Regard
    Message was edited by:
    Prapan Sol

    Hi,
    the ADF JavaScript API is not meant for you to create JSF components on the fly. For this you please use teh ADF Facesserver side components.
    The RichInputText component is defined by a pair of components, the AdfRichInputText and its Peer component. I don't know what your usecase is, but my impression is you are looking at it from the wrong end
    Frank

  • ADF Javascript problem

    <af:clientListener method="Clickheretoprint('content')" type="click"/>
    function Clickheretoprint(id)
    alert(id);
    this javascript is called on page load.
    But i want to call this javascript on button click.

    duplicate of ADF Javascript problem

  • Change 3D views with JavaScript code?

    I am looking for a way to change 3D views using JavaScript. I want to obtain similar result as the predefine action (Go to a 3D view) but with code.
    More preciselly, I want to connect items within a list box to different 3D views.
    Any ideas or suggestion would be greatly appreciated.
    Thank you
    Tutorial on how to use the Go to a 3D view action:
    Connecting Document JavaScript to 3D Views (PDF: 2.3M)
    http://partners.adobe.com/public/developer/en/tips/topic_tip3.pdf
    Related topics:
    looking for a way to switch views using Javascript
    http://www.adobeforums.com/cgi-bin/webx/.3bbed722/0
    SMOOTH TRANSITION BETWEEN VIEWS?
    http://www.adobeforums.com/cgi-bin/webx/.3bc0ce56
    Cameras vs. views; views.xml
    http://www.adobeforums.com/cgi-bin/webx/.3bbf0748/3

    hello maybe other have same problem i found a simple solution for me
    use the javascript bridge and juse the f4m manifest files
    function changeSrc(playerdivId,src){
                var player = document.getElementById(playerdivId);
                player.setMediaResourceURL(src);
    src multicast fm4 manifest like this
    http://sourceforge.net/apps/mediawiki/osmf.adobe/index.php?title=Flash_Media_Manifest_(F4M )_File_Format
    best regards

  • Change "choiseListe" values with javascript

    Dear,
    Is it possible to change "choiseListe"  values  with javascript.
    Exemple il have a choseListe :
         Country //// Values
          USA            us
          France         fr
          Spain           sp
    When il click in a botton i whant to change this choceListe :
         Country //// Values
          Morocco           ma
         Portugal           pt
    Thanks

    Hi,
    Listboxes and dropdowns can be scripted against without too much difficulty.
    You would need something like this in the click event of the button:
    listbox1.rawValue = null; //clear previous choice
    listbox1.clearItems(); //clear the list items
    listbox1.addItem("Moocco", "ma"); //add new list items
    listbox1.additem("Portugal", "pt");
    Hope that helps,
    Niall

  • Change logging in ADFS Configuration

    Is there and tracking or logging on Changes made in ADFS?

    Hi,
    Please refer to this:
    How to enable debug logging for adfs 2.0
    http://social.technet.microsoft.com/wiki/contents/articles/1407.how-to-enable-debug-logging-for-active-directory-federation-services-2-0-ad-fs-2-0.aspx
    If it does not help, as pbbergs mentioned, you could post it to
    here for more help. 
    Regards.  
    If you have any feedback on our support, please click
    here
    Vivian Wang

  • How to access Parent page UIComponent from inlineFrame using ADF javascript

    Hi,
    My application includes an <af:inlineFrame component on the top portion of the page. It contains a table with delete option for the end user. Requirement is after user has deleted all the records of the table and table has no records to display, inlineFrame needs to be made invisible so that the bottom portion content of my page will get stretched fully and has more visibility to the user. Hence when user click on Delete button of the table, after delete operation, I am planning to check the row count and write javascript to client using ExtendedRenderKitService to make the inlineframe invisible.
    Question:
    1. What is the right ADF javascript API to access the parent page and work with its components. I came to know we can call using 'parent.document.getElementById' but I want to know correct ADF's javascript API.
    Thanks in Advance
    Raghu

    The way you suggested didn't help me.
    Yes.. This inlineFrame content is also a part of the same application only. The reason why it is kept in inlineFrame is it is an ADS implemented table. ADS is able to push the data to the table provided we should keep the application idle. If I keep on working with the application (i.e. request/response happens because user works with the bottom portion content of the page), ADS is not able to push the data to UI. Keeping the ADS implemented table in a top portion still but inside an inlineFrame has solved this problem.
    Given below my page design
       main.jspx
       ======
       <af:form id="f1"....
           <af:inlineframe source="faces/page/employee.jspx" />
       </form>
       employee.jspx
       =========
       <af:form id="f2"
        </form>
                 In the employee.jspx only I have delete button and javascript which is suppose to find the parent page (i.e. main.jspx) and to work with inlineframe component to make it visible/invisible based on whether table gets records or no records. (This javascript call will happen with the help of ClientListener set for the ADS implemented table with event type as propertyChange) Intention is to check the row count of the table during every javascript call and to go to parent page, find the inlineframe, make it visible or invisible.
    Edited by: Raguraman on 25-Jan-2013 08:59

  • Password meter using ADF javascript

    Do we have any out of the box functionality in ADF javascript for password meter (to check the strength of the password)?

    This is relatively easy to implement yourself using a clientListener to hook into keypresses, regex to assess password strength and an outputText or an af:image to display the gauged password strength.

  • Activate (or change focus) on ADF Paneltab using javascript

    Hello,
    I am trying to embed an oracle form inside ADF page. I need to activate or change focus on an adf panel tab when I click on a link. I need to use javascript for this as I cannot afford a trip to the server (and hence a backing bean is not an option), as every time the page refreshes the form loses its session. Is there a way to activate/disclose a paneltab using javascript?
    Regards,
    Anirban

    This problem seems to be resolved. We can use javascript as well as a managed bean to do this. I was missing the setDisclosed(true/false) function. The best part is, even without a partial trigger or a partial submit, we can do this without refreshing the page when using a managed bean.
    When using javascript, we can use the below method:
    function f1(event) {
    var v1 = event.getSource();
    v1.setDisclosed(true);
    }

  • Changing properties in JavaScript

    <af:inputText id="it1" autoSubmit="false">
    <af:clientListener type="valueChange" method="changed"/>
    </af:inputText>
    <af:commandButton text="Unchanged" id="cb1"/>
    <af:resource type="javascript">
    function changed(event) {
    var it = event.getSource();
    it.setValue("Changed");
    cb1.setText("Changed");
    </af:resource>
    The value of it1 has been changed, the text of cb1 has not been changed.
    Edited by: user5376911 on 24.05.2013 4:40

    Hi,
    Always mention your JDev version. Check out this announcement : https://forums.oracle.com/forums/ann.jspa?annID=56
    You are trying to set the label of the button, without find the button component.
    Try this
                    <af:inputText id="it1" autoSubmit="false" clientComponent="true">
                        <af:clientListener type="valueChange" method="changed"/>
                    </af:inputText>
                    <af:commandButton text="Unchanged" id="cb1" clientComponent="true"/>
                    <af:resource type="javascript">
                      function changed(event) {
                          var it = event.getSource();
                          it.setValue("Changed");
                          var cb1 = AdfPage.PAGE.findComponentByAbsoluteId('cb1');
                          cb1.setText("Changed");
                    </af:resource>-Arun

  • Can I change properties of objects by javascript?If can,how do this?

    In my jsp page I wrote:
    <%
    session.setAttribute("username","admin");
    %>
    I want to use javascript change value of "username" to "guest",please tell me......
    thanks

    Javascript, which is run on the client, cannot change the value of server-side session variables.

  • ADF Javascript error in MS IE v 8.0.6001.18702

    Hi,
    I'm using jdeveloper v11.1.2.0.0. I have a login page with language, username, password fields. Language is af:selectonechoice and is using ppr to re-render the page on language change. It's working fine with FireFox 4 and chrome. But when I open the page in IE (8.0.6001.18702), it's showing the following javascript error, and I cannot even submit the login details(eventhough I'm not changing language). The error is,
    User Agent: Mozilla/4.0 (compatible; MSIE 8.0; the Windows NT 5.1; Trident/4.0; NET CLR 2.0.50727)
    Timestamp: Thu, 23 Feb 2012 01:57:28 UTC
    Message: Element not found.
    Line: 6219
    Characters: 2
    Code: 0
    URI: http://192.168.5.140:7101/eMotor/afr/partition/ie/default/opt/boot-SHERMAN-1147.js
    Please find my web.xml code below,
    <?xml version = '1.0' encoding = 'windows-1252'?>
    <web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
             version="2.5">
        <display-name>eMotor</display-name>
        <context-param>
            <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
            <param-value>client</param-value>
        </context-param>
        <context-param>
            <description>No obfuscation of CSS.</description>
            <param-name>org.apache.myfaces.trinidad.DISABLE_CONTENT_COMPRESSION</param-name>
            <param-value>true</param-value>
        </context-param>
        <context-param>
            <param-name>javax.faces.PARTIAL_STATE_SAVING</param-name>
            <param-value>false</param-value>
        </context-param>
        <context-param>
            <description>If this parameter is true, there will be an automatic check of the modification date of your JSPs, and saved state will be discarded when JSP's change. It will also automatically check if your skinning css files have changed without you having to restart the server. This makes development easier, but adds overhead. For this reason this parameter should be set to false when your application is deployed.</description>
            <param-name>org.apache.myfaces.trinidad.CHECK_FILE_MODIFICATION</param-name>
            <param-value>false</param-value>
        </context-param>
        <context-param>
            <description>Whether the 'Generated by...' comment at the bottom of ADF Faces HTML pages should contain version number information.</description>
            <param-name>oracle.adf.view.rich.versionString.HIDDEN</param-name>
            <param-value>false</param-value>
        </context-param>
        <context-param>
            <description>Security precaution to prevent clickjacking: bust frames if the ancestor window domain(protocol, host, and port) and the frame domain are different. Another options for this parameter are always and never.</description>
            <param-name>oracle.adf.view.rich.security.FRAME_BUSTING</param-name>
            <param-value>differentDomain</param-value>
        </context-param>
        <context-param>
            <param-name>javax.faces.FACELETS_VIEW_MAPPINGS</param-name>
            <param-value>*.jsf;*.xhtml</param-value>
        </context-param>
        <context-param>
            <param-name>javax.faces.FACELETS_SKIP_XML_INSTRUCTIONS</param-name>
            <param-value>true</param-value>
        </context-param>
        <context-param>
            <param-name>javax.faces.FACELETS_SKIP_COMMENTS</param-name>
            <param-value>true</param-value>
        </context-param>
        <context-param>
            <param-name>javax.faces.FACELETS_DECORATORS</param-name>
            <param-value>oracle.adfinternal.view.faces.facelets.rich.AdfTagDecorator</param-value>
        </context-param>
        <context-param>
            <param-name>javax.faces.FACELETS_RESOURCE_RESOLVER</param-name>
            <param-value>oracle.adfinternal.view.faces.facelets.rich.AdfFaceletsResourceResolver</param-value>
        </context-param>
        <filter>
            <filter-name>JpsFilter</filter-name>
            <filter-class>oracle.security.jps.ee.http.JpsFilter</filter-class>
            <init-param>
                <param-name>enable.anonymous</param-name>
                <param-value>true</param-value>
            </init-param>
        </filter>
        <filter>
            <filter-name>SecurityFilter</filter-name>
            <filter-class>com.allianz.common.web.filter.SecurityFilter</filter-class>
        </filter>
        <filter>
            <filter-name>trinidad</filter-name>
            <filter-class>org.apache.myfaces.trinidad.webapp.TrinidadFilter</filter-class>
        </filter>
        <filter>
            <filter-name>adfBindings</filter-name>
            <filter-class>oracle.adf.model.servlet.ADFBindingFilter</filter-class>
        </filter>
        <filter>
            <filter-name>ADFLibraryFilter</filter-name>
            <filter-class>oracle.adf.library.webapp.LibraryFilter</filter-class>
        </filter>
        <filter-mapping>
            <filter-name>JpsFilter</filter-name>
            <url-pattern>/*</url-pattern>
            <dispatcher>FORWARD</dispatcher>
            <dispatcher>REQUEST</dispatcher>
            <dispatcher>INCLUDE</dispatcher>
        </filter-mapping>
        <filter-mapping>
            <filter-name>SecurityFilter</filter-name>
            <servlet-name>Faces Servlet</servlet-name>
            <dispatcher>FORWARD</dispatcher>
            <dispatcher>REQUEST</dispatcher>
            <dispatcher>ERROR</dispatcher>
        </filter-mapping>
        <filter-mapping>
            <filter-name>trinidad</filter-name>
            <servlet-name>Faces Servlet</servlet-name>
            <dispatcher>FORWARD</dispatcher>
            <dispatcher>REQUEST</dispatcher>
            <dispatcher>ERROR</dispatcher>
        </filter-mapping>
        <filter-mapping>
            <filter-name>adfBindings</filter-name>
            <servlet-name>Faces Servlet</servlet-name>
            <dispatcher>FORWARD</dispatcher>
            <dispatcher>REQUEST</dispatcher>
        </filter-mapping>
        <filter-mapping>
            <filter-name>ADFLibraryFilter</filter-name>
            <url-pattern>/*</url-pattern>
            <dispatcher>FORWARD</dispatcher>
            <dispatcher>REQUEST</dispatcher>
        </filter-mapping>
        <listener>
            <listener-class>oracle.adf.mbean.share.config.ADFConfigLifeCycleCallBack</listener-class>
        </listener>
        <listener>
            <listener-class>oracle.adf.mbean.share.connection.ADFConnectionLifeCycleCallBack</listener-class>
        </listener>
        <listener>
            <listener-class>oracle.bc4j.mbean.BC4JConfigLifeCycleCallBack</listener-class>
        </listener>
        <servlet>
            <servlet-name>Faces Servlet</servlet-name>
            <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
            <load-on-startup>1</load-on-startup>
        </servlet>
        <servlet>
            <servlet-name>resources</servlet-name>
            <servlet-class>org.apache.myfaces.trinidad.webapp.ResourceServlet</servlet-class>
        </servlet>
        <servlet>
            <servlet-name>BIGRAPHSERVLET</servlet-name>
            <servlet-class>oracle.adf.view.faces.bi.webapp.GraphServlet</servlet-class>
        </servlet>
        <servlet>
            <servlet-name>BIGAUGESERVLET</servlet-name>
            <servlet-class>oracle.adf.view.faces.bi.webapp.GaugeServlet</servlet-class>
        </servlet>
        <servlet>
            <servlet-name>MapProxyServlet</servlet-name>
            <servlet-class>oracle.adf.view.faces.bi.webapp.MapProxyServlet</servlet-class>
        </servlet>
        <servlet>
            <servlet-name>adflibResources</servlet-name>
            <servlet-class>oracle.adf.library.webapp.ResourceServlet</servlet-class>
        </servlet>
        <servlet-mapping>
            <servlet-name>Faces Servlet</servlet-name>
            <url-pattern>/faces/*</url-pattern>
        </servlet-mapping>
        <servlet-mapping>
            <servlet-name>resources</servlet-name>
            <url-pattern>/adf/*</url-pattern>
        </servlet-mapping>
        <servlet-mapping>
            <servlet-name>resources</servlet-name>
            <url-pattern>/afr/*</url-pattern>
        </servlet-mapping>
        <servlet-mapping>
            <servlet-name>BIGRAPHSERVLET</servlet-name>
            <url-pattern>/servlet/GraphServlet/*</url-pattern>
        </servlet-mapping>
        <servlet-mapping>
            <servlet-name>BIGAUGESERVLET</servlet-name>
            <url-pattern>/servlet/GaugeServlet/*</url-pattern>
        </servlet-mapping>
        <servlet-mapping>
            <servlet-name>MapProxyServlet</servlet-name>
            <url-pattern>/mapproxy/*</url-pattern>
        </servlet-mapping>
        <servlet-mapping>
            <servlet-name>resources</servlet-name>
            <url-pattern>/bi/*</url-pattern>
        </servlet-mapping>
        <servlet-mapping>
            <servlet-name>adflibResources</servlet-name>
            <url-pattern>/adflib/*</url-pattern>
        </servlet-mapping>
        <context-param>
            <param-name>oracle.adf.view.rich.sessionHandling.WARNING_BEFORE_ TIMEOUT</param-name>
            <param-value>1800</param-value>
        </context-param>
        <session-config>
            <session-timeout>30</session-timeout>
        </session-config>
        <mime-mapping>
            <extension>swf</extension>
            <mime-type>application/x-shockwave-flash</mime-type>
        </mime-mapping>
        <mime-mapping>
            <extension>amf</extension>
            <mime-type>application/x-amf</mime-type>
        </mime-mapping>
        <welcome-file-list>
            <welcome-file>/faces/Login.jspx</welcome-file>
        </welcome-file-list>
        <mime-mapping>
            <extension>rrpa</extension>
            <mime-type>application/x-orarrp-pdf</mime-type>
        </mime-mapping>
        <mime-mapping>
            <extension>rar</extension>
            <mime-type>application/octet-stream</mime-type>
        </mime-mapping>
        <mime-mapping>
            <extension>zip</extension>
            <mime-type>application/x-zip-compressed</mime-type>
        </mime-mapping>
        <mime-mapping>
            <extension>doc</extension>
            <mime-type>application/msword</mime-type>
        </mime-mapping>
        <mime-mapping>
            <extension>docx</extension>
            <mime-type>application/vnd.openxmlformats-officedocument.wordprocessingml.document</mime-type>
        </mime-mapping>
        <servlet>
        <servlet-name>imageServlet</servlet-name>
        <servlet-class>com.allianz.web.servlet.ImageServlet</servlet-class>
    </servlet>
    <servlet-mapping>
        <servlet-name>imageServlet</servlet-name>
        <url-pattern>/image/*</url-pattern>
    </servlet-mapping>
    </web-app>
                And in faces-config, I have the following details,
    <application>
            <default-render-kit-id>oracle.adf.rich</default-render-kit-id>
            <locale-config>
                <default-locale>zh</default-locale>
                <supported-locale>en</supported-locale>
            </locale-config>
            <resource-bundle>
                <base-name>resources.UIResources</base-name>
                <var>msg</var>
            </resource-bundle>
        </application>My Login.jspx code,
    <af:pageTemplate viewId="/template/LoginTemplate.jspx" id="pt1">
                    <f:facet name="loginArea">
                        <af:panelFormLayout id="pgl1"
                                            inlineStyle="width: 398px; height: 278px; margin-top: 150px; margin-left: 300px; 
                                           background: url(#{facesContext.externalContext.requestContextPath}/img/login.PNG);">
                            <af:spacer height="15px"/>
                            <af:outputLabel value="#{msg['login.loginheader']}"
                                            inlineStyle="font-weight: bold; font-size: 15px; align: left; margin-left: 5px"/>
                            <af:panelFormLayout labelAlignment="start" inlineStyle="margin-top: 30px">
                                <af:selectOneChoice label="#{msg['login.country']}" value="#{authorizationBean.country}"
                                                    autoSubmit="true" styleClass="select_normal" id="country"
                                                    valueChangeListener="#{authorizationBean.changeLanguage}">
                                    <af:selectItem value="zh" label="#{msg['label.china']}"/>
                                    <af:selectItem value="en" label="#{msg['label.english']}"/>
                                </af:selectOneChoice>
                                <af:spacer height="5px"/>
                                <af:inputText label="#{msg['login.username']}" value="#{authorizationBean.auth.userName}" required="true"
                                            requiredMessageDetail="#{msg['message.mandatoryselect']}"/>
                                <af:spacer height="5px"/>
                                <af:inputText label="#{msg['login.password']}" secret="true" value="#{authorizationBean.auth.password}" required="true"
                                            requiredMessageDetail="#{msg['message.mandatoryselect']}">
                                   </af:inputText>
                                <af:spacer height="5px"/>
                                <af:commandButton text="#{msg['label.login']}" accessKey="L" styleClass="button_normal"
                                                  action="#{authorizationBean.doLogin}" id="loginButton"/>
                                 <af:commandLink text="#{msg['title.forgotPassword']}" id="cl1" immediate="true" partialSubmit="true"  >
                                    <af:clientListener method="openForgetPasswordPage" type="action"/>
                                </af:commandLink>                
                              <af:outputLabel value="#{authorizationBean.loginErrorMsg}" inlineStyle="color:Red;"/>
                            </af:panelFormLayout>
                        </af:panelFormLayout>
                    </f:facet>
                </af:pageTemplate>Any help would be much appreciated...

    chk this
    http://vtkrishn.com/2011/08/23/ie8-element-not-found-error/

  • Can't change properties to selectors.

    Hello,
    I'm new to using Dreamweaver. I've created some selectors for div files in my HTML. When I go to add properties to the selector, it doesn't do anything. I can't change the padding, position or anything. The image or text just stays in the same place and doesn't change. Am I doing something wrong?
    I'm using Dreamweaver CC and a Macbook Pro running Lion on it.
    Here is my code if this helps.
    HTML:
    <!doctype html>
    <html>
    <head>
    <meta charset="UTF-8">
    <title>vacancyart</title>
    <link href="CSS/index.css" rel="stylesheet" type="text/css">
    <!--The following script tag downloads a font from the Adobe Edge Web Fonts server for use within the web page. We recommend that you do not modify it.--><script>var __adobewebfontsappname__="dreamweaver"</script><script src="http://use.edgefonts.net/source-sans-pro:n2:default.js" type="text/javascript"></script>
    </head>
    <body>
    <
      <header id="top">
        <nav id="mainNav">
          <ul>
            <li><a href="index2.html">Home</a></li>
            <li><a href="about.html">About</a></li>
            <li><a href="art.html">Art</a></li>
            <li><a href="photos.html">photos</a>
            <li>
            <li><a href="Projects.html">Projects</a></li>
            <li><a href="Resume.html">Resume</a></li>
            <li><a href="https://www.etsy.com/shop/VacancyArt">Etsy</a></li>
            <li><a href="Contact.html">Contact</a></li>
          </ul>
          <div id="main2">Vacancy Art is for all art and design. Check back frequently for updates!</div>
        </nav>
      </header>
    <body> <div id="IG image"><img src="Images/IGlogosite2.png" alt="" width="50" height="55" id="IG"/></div></body>
      <footer>
        <p>&copy;</p>
      </footer>
    </div>
    </body>
    </html>
    CSS:
    header {
      text-transform: uppercase;
      list-style-type: none;
      list-style-position: outside;
      width: 115%;
      bottom: 1px;
      max-height: 0%;
      text-decoration: none;
    #main2 {
      display: block;
      color: #FFFFFF;
      -webkit-box-sizing: inherit;
      -moz-box-sizing: inherit;
      box-sizing: inherit;
      position: fixed;
      font-family: "Gill Sans", "Gill Sans MT", "Myriad Pro", "DejaVu Sans Condensed", Helvetica, Arial, sans-serif;
      font-style: normal;
      text-align: center;
      text-decoration: none;
      text-transform: none;
      line-height: 200px;
      margin: auto;
      margin-top: -100px;
      position: absolute;
      top: 70%;
      width: 80%;
      background-color: #000000;
      opacity: 0.9;
      right: 10%;
    #mainNav ul  {
      list-style-type: none;
      display: block;
      padding-bottom: 2px;
    #mainNav a {
      width: 10%;
      display: block;
      color: #FCFCFC;
      text-decoration: none;
      background-color: #010101;
      text-align: center;
      line-height: 100%;
      -webkit-box-shadow: 0px 0px 0px 1px;
      box-shadow: 0px 0px 0px 1px;
      opacity: 0.9;
      overflow-x: visible;
      visibility: visible;
      -webkit-box-sizing: content-box;
      -moz-box-sizing: content-box;
      box-sizing: content-box;
      float: left;
      text-shadow: 0px 0px;
    #mainNav {
      text-align: center;
      vertical-align: baseline;
      list-style-type: none;
      list-style-position: inside;
      display: inline;
      color: #000000;
      opacity: 0.4;
    body {
      background-color: #000000;
      color: #F9F8F8;
      font-family: "Gill Sans", "Gill Sans MT", "Myriad Pro", "DejaVu Sans Condensed", Helvetica, Arial, sans-serif;
      font-style: normal;
      font-weight: 200;
      text-align: center;
      padding-top: auto;
      padding-bottom: 0px;
      max-width: none;
      background-image: url(../Images/Japanesehouse1.52.jpg);
      background-size: 100px
      background-repeat: no-repeat;
      display: inherit;
      width: 100%;
      height: 100%;
      padding-right: 0%;
      position: static;
    #IGimage {
      padding-right: 100%;
    footer {
      position: absolute;
      bottom: 0;
      width: 100%;
      height: 60px;
      padding-left: 10px;
    Any Idea? Thanks!

    Messy code often causes DW to choke.  And it doesn't make browsers happy either.  My advice is to use HTML5 tags since you're already using an HTML5 doc type.  It makes your code much simpler.  Copy & paste this into a new, blank document.  SaveAs test.html and preview in browsers.  I'll let you style it however you wish.  My goal was to get things cleaned up and remove the invalid & redundant code.
    <!doctype html>
    <html>
    <head>
    <meta charset="UTF-8">
    <title>vacancyart</title>
    <!--The following script tag downloads a font from the Adobe Edge Web Fonts server for use within the web page. We recommend that you do not modify it.-->
    <script>var __adobewebfontsappname__="dreamweaver"</script><script src="http://use.edgefonts.net/source-sans-pro:n2:default.js" type="text/javascript"></script>
    <style>
    /**CSS Reset**/
        padding: 0;
        /**fixes the CSS box model in Fluid Layouts**/
        -moz-box-sizing: border-box;
        -webkit-box-sizing: border-box;
        box-sizing: border-box;
    img {
        vertical-align: baseline;
        display: block;
        max-width: 100%
    body {
        width: 88% /**adjust width in px or % as req'd**/;
        margin: 0 auto; /**with width, this is centered**/
        color: #F9F8F8;
        font-family: "Gill Sans", "Gill Sans MT", "Myriad Pro", "DejaVu Sans Condensed", Helvetica, Arial, sans-serif;
        /**scales BG image to viewport**/
        background: #000 url(Images/Japanesehouse1.52.jpg) no-repeat center center fixed;
        /**for Safari,Chrome**/
        -webkit-background-size: cover;
        /**for Firefox**/
        -moz-background-size: cover;
        /**for Opera**/
        -o-background-size: cover;
        /**for other browsers**/
        background-size: cover;
    header, footer {
        width: 100%;
        background: rgba(51,102,153,0.5)
    nav ul {
        list-style: none;
        margin: 0;
        padding: 0;
        float: right;
        width: 85%
    nav li a {
        text-transform: uppercase;
        color: #CCC;
        text-decoration: none;
        text-align: center;
        float: left;
        width: 6.5em;
        opacity: 0.75;
    nav li a:hover,
    nav li a:active,
    nav li a:focus {
         text-decoration: underline;
         opacity:1.0
    /**clear floats after nav**/
    nav:after {
        clear: both;
        display: block;
        content: '';
        visibility: hidden;
    /**main content**/
    article {
        text-align: left;
        padding: 1%;
        background: rgba(255,255,255,0.2)
    /**re-usable classes**/
    .right { text-align: right }
    .center { text-align: center }
    .left { text-align: left }
    </style>
    </head>
    <body>
    <header> <img src="Images/IGlogosite2.png" alt="logo" id="IG"/>
    <nav>
    <ul>
    <li><a href="index2.html">Home</a></li>
    <li><a href="about.html">About</a></li>
    <li><a href="art.html">Art</a></li>
    <li><a href="photos.html">photos</a><li>
    <li><a href="Projects.html">Projects</a></li>
    <li><a href="Resume.html">Resume</a></li>
    <li><a href="https://www.etsy.com/shop/VacancyArt">Etsy</a></li>
    <li><a href="Contact.html">Contact</a></li>
    </ul>
    </nav>
    </header>
    <article>
    <h1 class="center">Vacancy Art is for all art and design. Check back frequently for updates!</h1>
    <h3>Heading 3</h3>
    <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.  Mauris vitae libero lacus, vel hendrerit nisi!  Maecenas quis velit nisl, volutpat viverra felis. Vestibulum luctus mauris sed sem dapibus luctus.  Pellentesque aliquet aliquet ligula, et sagittis justo auctor varius. Quisque varius scelerisque nunc eget rhoncus.  Aenean tristique enim ut ante dignissim. </p>
    <h3>Heading 3</h3>
    <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.  Mauris vitae libero lacus, vel hendrerit nisi!  Maecenas quis velit nisl, volutpat viverra felis. Vestibulum luctus mauris sed sem dapibus luctus.  Pellentesque aliquet aliquet ligula, et sagittis justo auctor varius. Quisque varius scelerisque nunc eget rhoncus.  Aenean tristique enim ut ante dignissim. </p>
    </article>
    <footer>
    <small class="right">&copy; 2014 Web Site Name.  All rights reserved.</small>
    </footer>
    </body>
    </html>
    Nancy O.

Maybe you are looking for

  • How to write a recovery disc in my hp probook 4530s?

    i have baught this probook 4530s from Dubai.. and i didnt know how to write a recovery disc in dvds...? So plz help me? or should i get the recovery dvds from hp office?

  • Notes will not open: The operation couldn't be completed. (NSSQLiteErrorDomain error 8.)

    Notes will not open. The operation couldn't be completed. (NSSQLiteErrorDomain error 8.) System Preferences closes when select Mail, Contacts & Calendar I found a Discussion regarding and replied.  Copied: Re: notes has error NSSQLiteErrorDomain erro

  • Image size in iBooks Author 'Gallery' when at full page

    Hi I'me looking to make an image gallery (c 40 images)  to fill a complete landscape page in IBAuthor I now need to get the images from the photographers. I was told to request them in the size below but I've just noticed that in the gallery format a

  • Error Message: oracle/jbo/html/databeans/Res

    I have copied required JAR and ZIP files into the /lib directory of Java Web Server. Classpath is also pointed to that. I am getting the first screen of JSP with menu on left side but I am getting "Error Message: oracle/jbo/html/databeans/Res" if I a

  • No problem- Just need advice

    My audio can only come from a MiniDV tape that goes through a camcorder to the CPU via a Fire-Wire. What is the best way to be able to extract the audio and start editing only the audio. What programs, filters, etc. should I use?