IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
Expand all | Collapse all

CSS Classes for JSF Components

  • 1.  CSS Classes for JSF Components

    Posted Tue December 17, 2013 06:20 AM

    Hello guys,

    I started the development of a new CAF Portlet application and i also need to style it.

    My concert is that i cannot find a resource to point me the classes for CSS.

    For the Property Group component I have tryed to style it with the .section-group-bg class but with no success.

    Could you please provide me a resource/information in how can I access the components and the css class references ?

    Kind Regards,
    Sil


    #webMethods
    #MWS-CAF-Task-Engine
    #webMethods-BPMS


  • 2.  RE: CSS Classes for JSF Components

    Posted Thu January 02, 2014 04:12 AM

    I assume you know how to create and reference a css file in CAF, and set the “CSS Class” properties of ProeprtyGroup control to “section-group-bg”, and the css definition is something like:

    
    .section-group-bg{
    background-color:#999999;
    }

    In run-time, PropertyGroup will be rendered as:

    
    <fieldset id="jsfwmp7671:defaultForm:propertyGroup" class="caf-property-group section-group-bg">
    <div class="caf-property-group-inner-border">
    <div class="portlet-form-label">
    Title
    <span class="caf-label-separator">:</span>
    </div>
    <div class="caf-content">
    <div id="jsfwmp7671:defaultForm:blockPanel">Anything you set in PropertyGroup will be here</div>
    </div>
    </div>
    </fieldset>

    So even you set the class “section-group-bg” correctly, it won’t affect the sub-div, because there is already default style and you can’t modify it. You need the css definition below to change the priority.

    
    .section-group-bg{
    background-color:#999999;
    }
    .caf-content div{
    background-color:#999999;
    }
    .caf-property-group-inner-border div {
    background-color:#999999;
    }

    #webMethods
    #MWS-CAF-Task-Engine
    #webMethods-BPMS