Changing CSS dynamically

Hi,
Can I change at runtime a given definition in of a style ? In example, I have the following defined:
Button
    paddingTop: 1;
    paddingBottom: 1;
    padding-left: 1;
    padding-right: 1;
    fillAlphas: 0.4, 0.8, 0.2, 1.0;
    fillColors: #FFFFFF, #FFFFFF, #FFFFFF, #FFFFFF;
    borderColor: #E67F24;
    themeColor: #E67F24;
When the stage is large, I want to increase the padding of all buttons. Is it possible?
thanks,
Vince

If you want to change Cascading Style Sheets (CSS) dynamically, you can compile a css into a swf to load at runtime.
This will allow you to have multiple themes for your application just like HTML can.
Now!, if you just want to change padding of a button according to its size, you can bind the style to some ratio of the width of the button but this is not done in CSS but must be done in actionscript/MXML.

Similar Messages

  • Using setId on a component to change CSS dynamically

    Hi all -- I'm hoping that one of the JavaFX wizards can help me out with this one. I'm trying to set up a webview component with scrollbars that are initially transparent, but then appear on a given trigger (e.g., a mouse press) and then disappears (e.g., on mouse release) -- similar to how a scrollbar is rendered on a tablet interface (e.g., such as w/Android), for instance. Of course, the first complication is that a webview manages its own scrollbars. So this is what I thought might work:
    1) Create a webview. Set the webview's ID to a given CSS style that overrides the default scrollbar colors so they're transparent. Hence, the scrollbar is still rendered, but it's just not visible. (Yes, I know it may be "easier" to deal with opacity/visibility, but I haven't found an obvious way to affect just the scrollbars).
    2) Add an eventFilter to the webview to catch MOUSE_PRESSED. Once this happens, then I change the webview's CSS style by changing it's ID to another style, this one where the scrollbar's colors are not transparent.
    3) Similarly, another eventFilter is added to catch a MOUSE_RELEASED on the webview, and that restores the webview's CSS to the original transparent scrollbar colors.
    Okay, it's a bit convoluted, I know -- but seeing as that the scrollbars are potentially created/destroyed by the webview when pages are loaded, this seemed like a good solution. The basic code is as follows:
    final WebView browser=new WebView();
    final WebEngine webEngine=browser.getEngine();
    browser.setId("transparentScroll");
    browser.addEventFilter(MouseEvent.MOUSE_PRESSED,new EventHandler<MouseEvent>() {
      public void handle(MouseEvent me) {
        browser.setId("visibleScroll");
    browser.addEventFilter(MouseEvent.MOUSE_RELEASED,new EventHandler<MouseEvent>() {
      public void handle(MouseEvent me) {
        browser.setId("transparentScroll");
    });Unfortunately, this isn't quite working as expected. The events are captured and executed, and the setIds do take place. However, the webview isn't refreshing the scrollbars until something moves over them (like the mouse pointer). I tested this with a different (simpler) component, like a Button:
    public void start(Stage primaryStage) {
      Group root=new Group();
      Scene scene=new Scene(root,1150,700,Color.rgb(32,32,32));
      scene.getStylesheets().add("jfx.css");
      primaryStage.setScene(scene);
      final Button b=new Button("Click me");
      b.setId("test1");
      b.addEventFilter(MouseEvent.MOUSE_PRESSED,new EventHandler<MouseEvent>() {
        public void handle(MouseEvent me) {
          b.setId("test2");
      b.addEventFilter(MouseEvent.MOUSE_RELEASED,new EventHandler<MouseEvent>() {
        public void handle(MouseEvent me) {
          b.setId("test1");
      root.getChildren().add(b);
      primaryStage.show();
    }And the code with the Button class works as I expected -- the change in the CSS style is rendered immediately.
    Anyone have any ideas how to achieve this same effect with webview? Am I missing something? I would have thought that the setId would have propagated a change immediately, but apparently something is blocking the refresh. (And yes, I've tried doing a requestLayout(), and even tinkering with getting the scrollbars directly from the webview, but to no avail).
    All thoughts/ideas would be greatly appreciated. Thanks in advance!

    I won't try to solve your problem here, but will give you a couple of things to think about.
    You may want to make a feature request at http://javafx-jira.kenai.com/ to add a setting to webview to enable/disable scrolling - not sure that it would get high priority treatment though as it seems a pretty specialized case. If you need supporting reasons for such a thing, I was creating some custom controls wrapping jquery ui components and didn't want the scrollbars to appear, but just wanted any extra white space in the document clipped when the webview was sized smaller, so maybe if you also provide that use-case, that might help.
    You are setting the id on the webview component itself. The webview is a complex control, and has other controls (like the scroll bars) encapsulated in it which you don't directly get access to via the public api. So, perhaps depending on what css you used, you may need to set the id on the actual scrollbars inside the webview rather than the webview. To get a hold of them you can try running a css lookup in your code. Now the css lookup to get the webview controls is not publicly documented, but you can work it out by dumping the webview and all of it's child nodes to system.out. See here for an example of how to do this Re: Pie Chart and legend symbols (follow links from the forum post too - the example uses a chart, but the basic principle of peeking inside the complex control to get nodes via a css lookup should still work for the webview as long as you aren't trying to get the actual rendered dom objects). Once you have the scrollbars from the lookup, you could try setting their maxsize to 0,0 when you don't want them seen and removing the maxsize restriction when you want them available.
    One other thing you could try is, when you don't want the scroll bars to be visible, make the webview a bit bigger than the visible area you want to display it in and clipping it to the right size so that the scrollbars are just clipped off the display. Doing this may require a bit of fiddling around if you are using the resizable layout panes as they may want to keep resizing the webview to fit the visible area, also Nodes clip property seemed either buggy or difficult to work with from my past experience with it.

  • How to change the dynamic IP address to Static IP Address in Solaris 10X86

    Hi,
    I have installed Solaris 10X86 in a VM.While installing Solaris I have enabled DHCP.So its created with dynamic IP Address.Now I want to change the dynamic IP address to static IP address.Please anyone can help me to sort out this problem.

    Hi,
    I have installed Solaris 10X86 in a VM.While installing Solaris I have enabled DHCP.So its created with dynamic IP Address.Now I want to change the dynamic IP address to static IP address.Please anyone can help me to sort out this problem.

  • Change query dynamically in DB Adapter

    Hi,
    Please answer these questions.
    1. How to change query dynamically in DB Adapter?
    2. I have 2 db adapters, if i got error in 1 db adapter then how to rollback?
    Regards,
    kpr

    Hi,
    <div class="jive-quote">How to change query dynamically in DB Adapter?</div>
    Unfortunately there is no way to pass the query dynamically in DB Adapter. The reasoning behind that is that the DB adapter configuration wizard creates multiple assist files for each operation including the xsd which can not be created for any query dynamically.
    <div class="jive-quote">I have 2 db adapters, if i got error in 1 db adapter then how to rollback?</div>
    Either use XA datasources or throw a rollback fault in the catch block.
    Regards,
    Neeraj Sehgal

  • How to change JNDI dynamically in DB adapter and FTP adapter

    Hi every one,
    Please any one explain "How to change JNDI dynamically in DB adapter and FTP adapter" with screen shots
    Thanks in advance

    YES, very much possible. Only with CRUD operation on a table is possible.
    Please refer the below URL, where you can see the multiple check box selected under "Perform an operation on a table" under Operation Type.
    http://docs.oracle.com/cd/E23943_01/integration.1111/e10231/adptr_db.htm#BDCGADFJ
    *7) Give points - it is good etiquette to reward an answerer points (5 - helpful; 10 - correct) for their post if they answer your question.*
    Going forward, please raise this as a separate thread. So that people will get benefited.
    Thanks,
    Vijay

  • Change CSS in Web Dynpro?

    Hi,
    Is there a way to change CSS( like background, font etc..) in Web Dynpro?
    If yes, how please..
    Thanks.
    Adibo..:)

    Hi,
    How can I see which CSS / STYLESHEET am I using..
    When I startr web dynpro and see source, I can't find stylesheet..I see this:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html dir="ltr">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <title>ZZ_AA_RM2 [Web Dynpro voor ABAP]</title>
    <script type="text/javascript" language="JavaScript" src="/sap/public/bc/webdynpro/ssr/SAPWebFramework.js?00037"></script>
    <script type="text/javascript" language="JavaScript">
    var frame_A = "B8565B8D826AE747B1262BE0CCBF3261_A";
    var frame_B = "B8565B8D826AE747B1262BE0CCBF3261_B";
    var lastShowFrame;
    var lastHiddenFrame;
    var responseCounter;
    var is_suspend = false;
    SAP_bindPageToDomain();
    function Loader() {
    function exitApplication() {
    //only send unload template in case of it is not a suspend
    if (!is_suspend)
    img=new Image;
    img.src="zz_aa_rm2/~ucfUNLOAD?sap-contextid=SID%3aANON%3aNLGMSAP01_R3D_00%3aHGXA2LFUGVJ4MFDzsUQKTDfs4SCyitT-WGhwfsoR-NEW&sap-wd-clientWindowId=17327";
    for(i=0;i<70;i++){ tmp=document.body.outerHTML; while(tmp)tmp=tmp.slice(1) }
    document.getElementById("B8565B8D826AE747B1262BE0CCBF3261_FRAMESET").onunload = null;
    ETC......

  • How to change css of f:selectItems

    Hello
    I am not able to change the css of f:selectItems inside rich:select. I can change CSS of rich:Select successfully unfortunately I do fail when I try to change f:selectItem. You can see the code.. Any help will be appreciated.
    Best Regards
    Altaico
    <code>
    <h:panelGroup styleClass="mySelectStyle" rendered="#{loginBean.isAuthorize('sigorta') or loginBean.isAuthorize('admin')}" >
    <rich:select id="kurumList" enableManualInput="true"
    value="#{loginBean.islemYapilanKurum.kurumKodu}"
    defaultLabel=" " rendered="#{not empty kurumListTemp}" styleClass="mySelectStyle" >
    <f:selectItems value="#{kurumListTemp}" var="k"
    itemLabel="#{k.kurumAdi}" itemValue="#{k.kurumKodu}" styleClass="mySelectStyle" />
    <f:ajax event="change" render="toolbar" listener="#{loginBean.kurumAta}"/>
    </rich:select>
    </h:panelGroup>
    </code>

    Yes, if you would check the JSF specifications or any result you get by searching google for 'jsf tags' you would see that f:selectItem in fact does not support a styleClass attribute. In stead of just guessing - look up specs and know. Surely that is not a weird concept to you?
    But then you're using Richfaces - and this is not a Richfaces forum. But I'm a nice guy (really!) so I check the Richfaces manual for you - which you could have done yourself. And then I see that the rich:comboBox element supports an 'itemClass', an 'itemSelectedClass' and a 'listClass' attribute. 2 minutes of work. Might be worth investigating.
    Good luck.

  • How to change images dynamically in jsp?

    Hi All,
    i Want to know how to change images dynamically in jsp, for example in any site if u look at advertise or any images, it will be changed after every few seconds.
    Please guide me
    Thanks
    Sandesh S

    sandeshas wrote:
    Hi BlusC,
    i was searching your mail Id to ask the question directly to u,i checked in your blog also, but i didnt get,I want to keep my email spam safe. Only trusted people and direct friends have it. Just use the forums for discussion.
    my question is suppose if i want to display and change the advertise(adds from different company ) in my web site,how can i do it by using jsp?
    Do i need to create animated gifs which contains all company adds??one might be from movie add,after few seconds next one migth be some other web site add like that, how can i achieve this in my servet,jsp or using struts.You create animated gifs with an [animated gif editor|http://google.com/search?q=animated+gif+editor]. There is nothing what JSP can do for you here.

  • Changing bgColor dynamically?

    Is it possible to use a repeater, with the dataProvider, to
    change backgroundColor dynamically?
    for instance:
    <mx:Repeater ........ >
    <mx:Canvas
    backgroundColor="{repeaterIdHere.currentItem.bg_color}"
    width="100%" height="100%" />
    </mx:Repeater>

    The Repeater will create a series of instances of the
    contents between <mx:Repeater> and </mx:Repeater>. For
    example, if you wanted 6 Canvases each with a different background
    color, the Repeater would work:
    [Bindable] private var dp:ArrayCollection = new
    ArrayCollection(
    [{color:0xff0000},{color:0xff8800},{color:0xffff00}, ... ]);
    <mx:Repeater id="rep" dataProvider="{dp}" >
    <mx:Canvas backgroundColor="{rep.currentItem.color}" ...
    >
    </mx:Canvas>
    </mx:Repeater>

  • How to change CSS Class Dynamically for columns in a page

    Hi ,
    I have a page and i have columns like customer, bill to location, date from, date to..etc.
    Once i save the records the columns shoulbd change to Bold(CSS Class = OraDataText). In simple way how to chane CSS class for an item dynamically to a specific value.
    Can some one help me if came across this kind of a requirement.
    Please send me sample code if any one has this....
    Thanks,
    Mahesh

    I'm getting the following error while i implement the code in CO of Apply button.
    oracle.apps.fnd.framework.OAException: java.lang.ClassCastException
         at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:888)
         at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(OAPageErrorHandler.java:1145)
         at oracle.apps.fnd.framework.webui.OAPageErrorHandler.processErrors(OAPageErrorHandler.java:1408)
         at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(OAPageBean.java:2637)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1659)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:497)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:418)
         at OA.jspService(OA.jsp:40)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
         at java.lang.Thread.run(Thread.java:534)
    ## Detail 0 ##
    java.lang.ClassCastException
         at xxafp.oracle.apps.qp.pricelistrebate.webui.XxafpEepRebateCreateCO.processFormRequest(XxafpEepRebateCreateCO.java:98)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:799)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
         at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processFormRequest(OAPageLayoutHelper.java:1118)
         at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processFormRequest(OAPageLayoutBean.java:1579)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:995)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:961)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:816)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
         at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processFormRequest(OAFormBean.java:395)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:995)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:961)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:816)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
         at oracle.apps.fnd.framework.webui.beans.OABodyBean.processFormRequest(OABodyBean.java:363)
         at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(OAPageBean.java:2633)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1659)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:497)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:418)
         at OA.jspService(OA.jsp:40)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
         at java.lang.Thread.run(Thread.java:534)
    java.lang.ClassCastException
         at xxafp.oracle.apps.qp.pricelistrebate.webui.XxafpEepRebateCreateCO.processFormRequest(XxafpEepRebateCreateCO.java:98)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:799)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
         at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processFormRequest(OAPageLayoutHelper.java:1118)
         at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processFormRequest(OAPageLayoutBean.java:1579)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:995)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:961)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:816)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
         at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processFormRequest(OAFormBean.java:395)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:995)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:961)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:816)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
         at oracle.apps.fnd.framework.webui.beans.OABodyBean.processFormRequest(OABodyBean.java:363)
         at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(OAPageBean.java:2633)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1659)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:497)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:418)
         at OA.jspService(OA.jsp:40)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
         at java.lang.Thread.run(Thread.java:534)
    Thanks,
    Mahesh

  • Custom Master Page - CSS & Dynamic Display

    I have created a css file and attached it using Site Settings> Master Page> Alternate CSS URL.  This works really well and I get the customisations for the global navigation drop-downs as below including colours size etc.
    For my drop-downs, I'm wanting three levels of fly-out.  So, I created a custom master page from seattle.html and even before I made the change to
    MaximumDynamicDisplayLevels="3" - I set this new page as the default.  When I look at the site now, the CSS customisations are not showing (see below).
    The new master page is not applying my css file.  Any ideas why?
      MaximumDynamicDisplayLevels="2"
      MaximumDynamicDisplayLevels="2"

    Thanks for the suggestion but this didn't seem to help.  I've pasted below the whole contents in my .css file.  Anything you can see that is out of place?
    /* --- Global navigation --- */
    #DeltaPlaceHolderMain{
    margin-top:30px;
    .ms-breadcrumb-top{
    background-color:#fff;
    /*font on navigation items*/
    .ms-core-navigation > div > ul.root > li.static a:link, ul.root > li.static a:visited{
    font-family:Arial; font-size:16px !important;
    /* links */
    .ms-core-navigation > div > ul.root{
    padding-top:0px;
    padding-left:0px;
    .ms-core-navigation > div > ul.root > li a{
    #border:1px #fff solid;
    padding:10px 10px 10px 0px;
    font-size:20px;
    .ms-core-navigation .ms-core-listMenu-horizontalBox li.static > .ms-core-listMenu-item{
    margin-right:8px;
    /* links selected */
    .ms-core-navigation > div > ul.root > li.static > ul.static > li.selected a:link, ul.root > li.static > ul.static > li.selected a:visited{
    color:#005DAB; font-weight:bold;
    background-color:#fff;
    /* home link selected */
    .ms-core-navigation div.ms-core-listMenu-horizontalBox > ul.static > li.selected a.selected{
    border:1px transparent solid;
    background-color:#fff
    /* home */
    .ms-core-navigation > div > ul.root > li.static > ul.static{
    margin-left:0px; color:#005DAB;
    /* Hover */
    .ms-breadcrumb-top .ms-core-navigation ul.static > li a:hover{
    border:1px transparent solid;color: #005DAB !important ;
    background-color:#E6EFF7 !important;
    ul.dynamic{
    background: #fff;
    min-width: 250px
    padding: 2px 2px 2px 2px;
    white-space: nowrap;
    word-wrap: normal;
    #zz15_RootAspMenu>li>a>span>span{
    color:#005DAB; font-size:14px;
    #zz15_RootAspMenu>li>span>span>span{
    color:#005DAB;

  • Change CSS file programatically

    Hello,
    Is there a way to change the CSS file that it's applyed to the project programatically?
    Example:
    The user enters the application and want's to change it's appearence by giving it a new CSS, so he uploads a .CSS file which should then be applyed to the application.
    Thanks,
    Rui Belchior

    Maybe the CSS can be dynamically generated and made available via a servlet (or any other dynamic technology).
    Note also that the Style property of any component can be bound to a Java property:
    Right-click on a component, choose Property bindings..., select 'style' in the left column, and bind it to a Java property.

  • VM NIC keeps changing from Dynamic to Static IP (from a static IP pool)

    Back ground:
    Having migrated our VM's from 2008R2 and 2012SP1 servers into one 4 node 2012R2 Hyper V Cluster we have a problem with NIC's being changed to Static IP, this in turn gives a range of warning and errors when
    moving VM's between the nodes (example during a live migrate or when we put a node in maintenance mode). 
    The cluster share a Logical Switch, this switch has 1 Uplink. The uplink is a Port Profile called "TrunkPort" and it contains lots of network sites. Each network site links to a Logical Network, each Logical Network is basically a VLAN on our Cisco
    router/switch.
    We don't have any IP Pools configured since we assign all VM's a static IP manually or they use DHCP provided by our AD servers.
    When we change a NIC to from Static IP to Dynamic (there might be power shell to do this), bit in the GUI its painfull as you have to shutdown the VM remove the adapter and create a new one. I does not last long as the system after a few minutes changes
    the NIC configuration back to Static IP again. Any idea why and how to stop it?
    example of errors after a migration that completed w/ Info :
    Error (23801)
    No available connection to selected VM Network can be found.
    Recommended Action
    Ensure host NICs have connection to the fabric network on which VM Network is created.
    Error (23810)
    There is no host NIC with required classification.
    Recommended Action
    Ensure that there NICs with required classification on a host.
    Error (23806)
    All available ports on switch extension  has been used.
    Recommended Action
    Ensure there are free ports available on a switch extension.
    Error (23808)
    All available ports on port profile  has been used.
    Recommended Action
    Ensure that there are free ports available on a port profile.
    Error (23807)
    The switch extension  has reached maximum supported ports on this host.
    Recommended Action
    Ensure there are free ports available on a switch extension per host.
    Error (23809)
    The port profile  has reached maximum supported ports on this host.
    Recommended Action
    Ensure that there are free ports available on a port profile per host.
    Error (23825)
    The virtual machine requires a logical switch connection and the host network adapter is not attached to a logical switch or operating system doesn't support logical switch.
    Recommended Action
    Ensure operating system supports logical switch and there is a logical switch connection for the host or remove the network interface card from the virtual machine and try the operation again.
    Error (23753)
    The virtual machine or tier load balancer configuration requires an IP pool and there are no appropriate IP pools accessible from the host.
    Recommended Action
    Select a host with access to an appropriate IP pool and try the operation again.
    Warning (23830)
    Unable to find compliant logical switch.
    Recommended Action
    Fix logical switch compliance state.
    Note: a server configured with Dynamic NIC will move between nodes without any errors (nice green tick box icon), our problem is that SCVMM or the servers deside to reconfigure the NIC's to Static IP when ever they see fit!!

    I feel like some issue with the Fabric configuration.
    If you are create a new VM through SCVMM, do you face this issue? (While creating the new VM, on the hardware configuration page, use dynamic IP and Dynamic MAC)
    The first event which you listed says about missing VM Network.
    No available connection to selected VM Network can be found.
    Please check the VM Network to where the VM is connected through SCVMM. And check if all the nodes have the same VM Network.
    If thats missing, fixing it might fix few other errors which you mentioned.
    Optimism is the faith that leads to achievement. Nothing can be done without hope and confidence.
    InsideVirtualization.com

  • Adobe Media Encoder CC renders do not reflect changes to Dynamically Linked After Effects Comps

    When rendering a Premiere timeline with a dynamically linked After Effects composition, Adobe Media Encoder will sometimes use an older version of the linked composition (even after I have saved changes in the After Effects comp).
    For example, if I correct a spelling mistake on some text in After Effects, save the composition, and then add the sequence to the render queue in Premiere, the final output from media encoder still has the old spelling.
    If I do a straight export from Premiere instead of adding to render queue, the output is always correct. I've noticed this problem on several different Windows 8.1 systems.
    All versions of the software are up to date as of today.
    Why is this? Is it something to do with the disk cache in After Effects? Does media encoder have it's own cache that I need to clear?

    Hi, I've been having this same issue.  Here are some additional things I've noticed about it:
    Changes are reflected properly when played back on timeline in Pr CC 2014.
    Happens regardless if the dynamic link file was rendered or not, thus deleting the render files does not fix the issue.
    The issue can persist through saving, closing, and reopening both AE and Pr. 
    I'm using OSX 10.9.4, so this is not just a PC issue.
    Other than manually watching for every change to be reflected in the render, there is no way to know a problem has occurred.  Needless to say this can be incredibly costly.
    Please address this quickly, it's completely unacceptable that what we render out could be a different version from what we see on the timeline.
    PS Some additional things I will be testing:
    Does the issue persist through closing all CC apps, including Media Encoder.
    Does rendering directly out of Pr, i.e. not using Media Encoder, fix the issue.

  • Change non-dynamic attributes of MBeans to dynamic attributes

    Hi All,
    I have legacy code (for WL 8.1), that must run with WL 10.3. There are old Admin scripts for the domain-configuration of the application. During the configuration of the domain, the scripts are trying to set some MBean properties. These properties are non-dynamic, so consuming the change of these properties requires a restart of the Administration Server.
    Is there a way to make these non-dynamic attributes to be dynamic? So, how can I omit the restart(s) of the server?
    The messages in the log file are like this:
    A non-dynamic change has been made which affects the server adminServer. This server must be rebooted in order to consume this change.
    Interestingly, in the log files of the old system (WL 8.1) there is no sign of the need of reboot. In those logs, there is nothing like "non-dynamic", "restart", "reboot".
    József
    Edited by: Jozsef Halasz on 2009.08.03. 15:54

    It is not possible to change the font family of smartstyles. Yes, you are write... Uni-code enable printer cannot support Helve fonts we should use HELVECRYL (cyrillic fonts) else alignment of quantity, amounts all gets truncated.
    Regards,
    SaiRam

Maybe you are looking for

  • After completing a scan of 15 pages I can't find where the scanned files have been sent.

    After completing a 15 page scan I find I can't locate where my files were sent.  Help! Thanks,Firstsergeant

  • Oracle Fusion Admin Training ----

    Hi , I am new to SOA and i will be undegoing Oracle Fusion Admin Training from this week . Please let me know the kind of work that will be involved in it And how would it be in a long term perspective for me in career . Thanks and Regards , Mohan

  • Prototype / Extend a TextInput()

    Hi -- I would like to add some functionality to a TextInput but I am not yet familiar with working with objects in AS 3. I do understand object oriented programming and I am familiar with prototyping in Javascript but I'm not sure of the exact syntax

  • Translating Oracle to Sql Server

    My question is on an appropriate approach to take. We have an very large company database that supports all of current software in Sql Server. A current requirement is to take data from a Oracle Database that has "agreed upon" tables and to "Translat

  • Migration Assistant seems to be hung, cancel?

    I ran the Migration Assistant on my New MBP, connected old MBP to it via FireWire, told it to migrate everything. The progress bar ran through counting down about 45 minutes or so, then got to the point of saying Less than a minute remaining with the