EL Expression Used to Set a Style Attribute

I want to change the Appearance of my selectOneListbox !
If a value in the list is named "ALL" it appears in red:
<af:selectOneListbox id="navList1" autoSubmit="true"
value="#{bindings.findRegionsByUserId1.inputValue}"
styleClass="listbox" size="10" valign="middle"
inlineStyle="#{bindings.findRegionsByUserId1.inputValue}
eq 'ALL'?'color:rgb(255,0,0);'):('color:rgb(255,0,0);')}"> <f:selectItems value="#{bindings.findRegionsByUserId1.items}"/>
</af:selectOneListbox>
but it doesn't it works.
What's wrong ?
thx

gimbal2 wrote:
Ah, the sharing of code and ideas. I used to do that years ago when I stumbled onto a WTF.
But the fact of the matter is that your post is going to disappear off of the radar tomorrow and nobody performs research anymore (even if that is as simple as performing a Google search), so your effort was likely misspent. Better put this kind of stuff in a personal blog, not in a forum. If your work is in some way useful, people who know better will start to link to it in forum questions.Well, I don't have and will probably never have a personal blog. Even if I do, I do believe that this forum will last longer than my personal blog, and no one will probably even look at my personal blog even if I had one ( Who am I in the world of JSF compared to BalusC, Ed Burns, and yourself ? ). Thus, the people here can comment, criticise, improve, or even reject the idea altogether.
In any case, it was an idea where instead of specifying the components to execute / render via the execute and render attributes respectively, you actually want to say "execute / render all components ... EXCEPT these". Who knows, maybe someday we can have something like:
<f:ajax ... execute="@form[except='componentA componentB']" ... />Of course, the above is not a valid syntax ...
Seems like a reasonable ( and maybe common ?? ) thing that others would want to do.
Edited by: jmsjr on 14-Jan-2013 21:52

Similar Messages

  • Using spry value in style attribute

    Hey guys I am trying to
    <td spr:if ="" style="text-indent:{order}px">{name}<td>    
    However when I run the spry it doesn't print the style infact <td> is outputted but the style attribute remains blank.It appears that the spry is taking it out... even the "text-indent" part....what gives

    Hi,
    that's correct, custom report templates will do.
    I find them sometimes quite limited, though. And I always ask myself "how would I do it without APEX", because there's often a lean jQuery solution that affords less coding.
    If you employ a so called "marker class" that depends on your colour value, you could begin like in the previous answer and enter the follwing into HTML Expression:
    &lt;span class="#BKG_CLASS#"&gt;#THE_COLUMN_I_WANT_TO_SHOW#&lt;/span&gt;
    That means you would not query a plain color, but some name that can act as a CSS marker, like
    select THE_COLUMN_I_WANT_TO_SHOW
          , case when THE_COLUMN_I_WANT_TO_SHOW > 100 then 'hotColor' else 'coldColor' end as BKG_CLASS
      from my_tableIn the page's Function and Global Variable Declaration, you'd enter
    function colorMyReport () {
      apex.jQuery('.hotColor').closest('td').css('background-color','#FAA');
    }And under Execute when Page Loads, you enter:
    colorMyReport();There's only one challenge, of course, when the report is paged via AJAX, because the script would only run once (on the first page shown).
    But if this is a solution for you, I'd be pleased to show you how to overcome this. Just let me know.
    Hope there is no typo in my typing, because I have to catch my train now :-)
    Bye!

  • H:panelGrid width or style attribute not rendering

    Hi
    I am currently experiencing a weird problem. I use a panel grid to align inputs in a form.
    when I try to set the width of the panel grid using the width or style attribute, the HTML equivalent is not rendered when displaying the web page.
    Here is what I try to do:
    <h:panelGrid columns="2" styleClass="patient-problem-form" style="width: 300px;">
    No style attribute is rendered on the table tag...
    Anyone knows what could case this issue?
    I am using
    facelets - 1.1.14
    seam - 2.0.1.CR1
    richfaces - 3.1.3.GA
    just updated glassfish 2-b58c with JSF 1.07 but did not make any difference
    Thanks.

    This will occur if you're using JSF impl newer than 1.2_05, but are using JSF api of 1.2_05 or older. Your classpath may be a mess with duplicated JAR's of different versions. Clean up your classpath. It may be good to know that Glassfish ships with javaee.jar which also contains JSF API. You need to upgrade it as well, you can get a Glassfish updater tool or read the instruactions at Mojarra homepage.

  • Setting value for attribute  'PO_NUMBER_SOLD'  using setter method

    Hi Experts,
    I need to set the value of a screen field according to some condition. I am using setter method of this attribute to set the value but it is not getting changed.
    I have written following code in DO_PREPARE_OUTPUT method of implementation class ZL_ZZBT131I_ZCREDITCHECK_IMPL using setter method of attribute
    Get Referral Authorization Code
          lv_val1 = me->typed_context->crechkresph->get_po_number( attribute_path = 'PO_NUMBER' ).
          me->typed_context->crechkresph->set_po_number( attribute_path = 'PO_NUMBER'
                                                            value     = ' ' ).
    while debugging I found that in method set_po_number set_property method has been used:--
    current->set_property(
                          iv_attr_name = 'PO_NUMBER_SOLD' "#EC NOTEXT
                          iv_value     = <nval> ).
    In set_property method  following code is getting executed
    if ME->IS_CHANGEABLE( ) = ABAP_TRUE and
               LV_PROPS_OBJ->GET_PROPERTY_BY_IDX( LV_IDX ) ne IF_GENIL_OBJ_ATTR_PROPERTIES=>READ_ONLY.
              if <VALUE> ne IV_VALUE.
                if ME->MY_MANAGER_ENTRY->DELTA_FLAG is initial.
                first 'change' -> proof that entity is locked
                  if ME->MY_MANAGER_ENTRY->LOCKED = FALSE.
                    if ME->LOCK( ) = FALSE.
                      return.
                    endif.
                  endif.
                flag entity as modified
                  ME->MY_MANAGER_ENTRY->DELTA_FLAG = IF_GENIL_CONTAINER_OBJECT=>DELTA_CHANGED.
                endif.
                ME->ACTIVATE_SENDING( ).
              change value
                <VALUE> = IV_VALUE.
              log change
                set bit LV_IDX of ME->CHANGE_LOG->* to INDICATOR_SET.
              endif.
            else.
            check if it is a real read-only field or a display mode violation
              assert id BOL_ASSERTS subkey 'READ-ONLY_VIOLATION'
                     fields ME->MY_INSTANCE_KEY->OBJECT_NAME
                            IV_ATTR_NAME
                     condition ME->CHANGEABLE = ABAP_TRUE.
            endif.
    and in debugging I found that if part ( ME->IS_CHANGEABLE( ) = ABAP_TRUE and
               LV_PROPS_OBJ->GET_PROPERTY_BY_IDX( LV_IDX ) ne IF_GENIL_OBJ_ATTR_PROPERTIES=>READ_ONLY) fails and hence else part is getting executed and hence my field a real read-only field or a display mode violation is happening according to comments in code.
    What shall I do so that I would be able to change the screen field value?
    Any help would be highly appreciated.
    Regards,
    Vimal

    Hi,
    Try this:
    data: lr_entity type cl_crm_bol_entity.
    lr_entity = me->typed_context->crechkresph->collection_wrapper->get_current( ).
    lr_entity->set_property( iv_attr_name = 'PO_NUMBER' value = '').
    Also, make sure the field is not read-only.
    Regards
    Prasenjit

  • How can I set up an older airport express using the newest airport utilities?

    How can I set up an older airport express using the newest airport utilities? Seems like there isn't an option to set this up.  Normally you could add/set up this in the airport setup assistant- but that doesn't exsist any longer.
    Thanks for any suggestions 

    How can I set up an older airport express using the newest airport utilities?
    Unfortunately you can't, since Apple dropped support of the older AirPorts with AirPort Utility 6.x.
    Using some workarounds....not supported by Apple.....you might be able to download and install an older version of AirPort Utility that would allow you to administer the older AirPort.
    See this thread for more details and instructions:
    https://discussions.apple.com/message/21397085#21397085

  • How can I set a VO Attribute value ?

    Hi,
    I'm relatively new to developing OA framework pages, so apologise in advance if my terminology is not quite right at the moment. But I have an experienced Oracle Forms developer so am getting to grips with new tools.
    I've managed to develop a number of simple pages (query page and create single record page). I now want to develop a simple "master-detail" page. I've created a page that has two regions Header region and Lines region. Region styles are set to Header and AdvancedTable (child of Header region). I created some test data in TOAD and have written the code to query back the header and related lines. This works and the correct lines get displays when a new header record is displayed. I coded this in the initQuery methods. But now I'm stuck trying to create detail/line rows from the page.
    I've added the "Add New Rows" to and want to populate the Lines row with the value of my parents primary key (eventually I'll make the child fkey column hidden). For the last few days, I've read lots of forum notes and the OA dev guide. At the moment, I've created a CO on my Lines region and this basically does the following in the processFormRequest :-
    a) Traps the Add Rows Event
    b) Fetches the current row for the parent and parent Id (primary key)
    c) Fetches the current child row
    d) Tries to update the child foreign key attribute using parent's primary key.
    When I pressed the Add Rows button I was getting an error "Attribute set <attribute> failed for ...>.
    I read various notes suggesting that I did not have my EO and VO properties set for the attribute I was updating. So I changed the EO and VO to allow the attribute to always be updateable. Now I don't get the error, but the column is not populated. An empty row appears. I used the messaging and am definately getting a value in the parentKey variable.
    I know I'm in the Add Rows event because I manged to display some dummy messages.
    Below is the code in my Lines CO processFormRequest :
    OAAdvancedTableBean tableBean = (OAAdvancedTableBean) webBean.findChildRecursive("RoutesRN");
    if (tableBean.getName().equals(pageContext.getParameter(SOURCE_PARAM))
    && ADD_ROWS_EVENT.equals(pageContext.getParameter(EVENT_PARAM)))
    OAViewObject parentVO = (OAViewObject)am.findViewObject("XXRPAirlineCreateVO1");
    OARow parentRow = (OARow)parentVO.getCurrentRow();
    String parentKey = (String)parentRow.getAttribute("CompCode");
    OAViewObject childVO = (OAViewObject)am.findViewObject("XXRPRouteFullVO1");
    OARow childRow = (OARow)childVO.getCurrentRow();
    //String childFKey = (String)childRow.getAttribute("CompCode");
    //childRow.setAttribute("CompCode",parentKey);
    childRow.setAttribute("CompCode",parentKey);
    ///// String message = "Pressed Add Rows Button Parent = " + parentKey + " Child = " + childFKey;
    /// // throw new OAException(message, OAException.INFORMATION);
    I guess the above may not be the best way to the "copy" of a parent id into a child foreign key.
    Any help would be really appreciated.
    Thanks
    Ramnik
    The region style for the Header

    Look in the dev guide, Tables --> Adding rows.
    If you are handling the add row event, you need to set autoInsertion off. You need to create a row in the child VO and then set the desired attributes

  • Use of tables and style sheet

    Hi all,
    I am strungling using tables in RoboHelp HTML 7, to generate
    webhelp.
    What I try to accomplish is using tables in RH, and have its
    formatting defined in a style sheet. The html code generated by RH
    should be nice and clean. If possible I would not like to go into
    the HTML code, I prefer the use of the Design editor.
    I have the following in a new file in the RoboHelp table
    gallery:
    quote:
    <table>
    <caption>CAPTIONTITLE</caption>
    <COL style="width: 5%;">
    <COL style="width: 40%;">
    <thead>
    <tr><th></th><th></th></tr>
    </thead>
    <tbody>
    <tr><td></td><td></td></tr>
    <tr><td></td><td></td></tr>
    <tr><td></td><td></td></tr>
    <tr><td></td><td></td></tr>
    </tbody>
    </table>
    The following is in the CSS file:
    quote:
    table {
    border: 2px #c0c0c0 solid;
    border-collapse: collapse;
    width: "100%";
    margin: 10px;
    td, th {
    border: 1px #c0c0c0 solid;
    padding-left: 5px;
    padding-right: 10px;
    text-align: left;
    vertical-align: top;
    th {
    background: #ffc000;
    When I insert a table into a page, using the table file I
    created above, the html looks like:
    quote:
    <table x-use-null-cells>
    <col style="width: 33.333%;">
    <col style="width: 33.333%;">
    <col style="width: 33.333%;">
    <tr><td style="padding-right: 10px; padding-left:
    10px;" width=33.333%>
    <p> </td>
    <td style="padding-right: 10px; padding-left: 10px;"
    width=33.333%>
    <p> </td>
    <td style="padding-right: 10px; padding-left: 10px;"
    width=33.333%>
    <p> </td></tr>
    <tr><td style="padding-right: 10px; padding-left:
    10px;" width=33.333%>
    <p> </td>
    <td style="padding-right: 10px; padding-left: 10px;"
    width=33.333%>
    <p> </td>
    <td style="padding-right: 10px; padding-left: 10px;"
    width=33.333%>
    <p> </td></tr>
    <tr><td style="padding-right: 10px; padding-left:
    10px;" width=33.333%>
    <p> </td>
    <td style="padding-right: 10px; padding-left: 10px;"
    width=33.333%>
    <p> </td>
    <td style="padding-right: 10px; padding-left: 10px;"
    width=33.333%>
    <p> </td></tr>
    </table>
    So, RoboHelp adds a number of styles to the inserted table
    that overrules the style sheet. That shouldn't be done.
    Also, in the RoboHelp editor the table looks different than
    in the preview. That shouldn't be a big deal, but something is
    missing:
    - There's no table caption shown.
    - The background in the table header is not colored as I
    expected to be.
    To eliminate the behavior of RoboHelp with respect to the
    table gallery, I created a new page in RoboHelp, and opened the
    HTML view. I inserted the following to create a new table.
    quote:
    <table>
    <caption>CAPTIONTITLE</caption>
    <COL style="width: 5%;">
    <COL style="width: 40%;">
    <thead>
    <tr><th></th><th></th></tr>
    </thead>
    <tbody>
    <tr><td></td><td></td></tr>
    <tr><td></td><td></td></tr>
    <tr><td></td><td></td></tr>
    <tr><td></td><td></td></tr>
    </tbody>
    </table>
    When switching to Design view and bach to HTML, it has been
    converted by RoboHelp to:
    quote:
    <table x-use-null-cells>
    <col style="width: 5%;">
    <col style="width: 40%;">
    <caption>CAPTIONTITLE</caption>
    <tr><th style="width: 5%;" width=5%>
    <p> </th>
    <th style="width: 40%;" width=40%>
    <p> </th></tr>
    <tr><td style="width: 5%;" width=5%>
    <p> </td>
    <td style="width: 40%;" width=40%>
    <p> </td></tr>
    <tr><td style="width: 5%;" width=5%>
    <p> </td>
    <td style="width: 40%;" width=40%>
    <p> </td></tr>
    <tr><td style="width: 5%;" width=5%>
    <p> </td>
    <td style="width: 40%;" width=40%>
    <p> </td></tr>
    <tr><td style="width: 5%;" width=5%>
    <p> </td>
    <td style="width: 40%;" width=40%>
    <p> </td></tr>
    </table>
    That seems ok, there are no styles redefined, other that the
    width.
    In Design view the table looks different than intended,
    however in preview it is as expected. I shows the caption tile, and
    the background of the table header, and text alignment is correct
    (at the top of each cell).
    So, my interpretation is that RoboHelp messes up the nice and
    neat html code when using the table gallery, and does not show the
    table in Design view as it would like in the Preview.
    As a consequence I think I will copy and paste the table code
    into the html directly, rather than using the table gallery.
    Unless, there's a good solution by using the table gallery.
    It would also be nice that the Design view behaves as a
    WYSIWYG editor.
    Has anyone an idea how I can use tables in RoboHelp as easy
    as possible, while keeping the benefits of style sheets?
    TIA,
    Andre
    BTW, my excuses for using quotes rather than attach code, but
    it seemed all code was added to the end.

    You should avoid locking yourself into a single solution for
    anything to do with RH (or any other help authoring tool, for that
    matter). Whether dealing with lists, tables, or images (the three
    major areas that usually create problems), it's wise to strike a
    balance between the features and drawbacks in HTML, CSS, RH, and
    web browsers.
    Confronted with the issue of changing border colors and table
    heading colors earlier this year (and having to do this for the 42
    projects in our merged WebHelp project), I simply used
    FAR to change the hex numbered
    colors in the code, outside of RH (from #808080 to #d8e4f8, for
    example). Some freeware products for content replacement are also
    available.
    If you've used those colors for other things, such as H1/H2,
    or other backgrounds, etc., you'll need to identify all table uses
    first, and then change only those instances. You could then set up
    a batch file to change all border-right-color: #808080;
    border-left-color: #808080; etc. all at once
    You could also just use the RH Multi-File Find & Replace
    if you're only dealing with a few projects, since these table
    attributes are likely to always appear as complete on a single line
    (the RH feature doesn't handle search and replace strings
    interrupted by line breaks and multiple spaces).
    All of our tables had been created using Rick's solution via
    the Table Gallery, and the background and border colors show up
    identically in Design, Preview, and output views. The only use of
    the css for our tables is the styling of the actual text that
    appears in the cells (TableHead, TableRow, TableSubHead), such as
    shown in the attached code below.
    BTW, another look at your original post shows that your claim
    that "RoboHelp adds a number of styles to the inserted table that
    overrules the style sheet," is not quite on the mark. The only
    change is that the
    "padding-left:" value has been increased from the CSS 5px to
    10px. I would guess that you have a 5px indent in either your BODY
    or P tag in the CSS, thereby resulting in the value being increased
    to the total of 10px.
    Good luck,
    Leon

  • Excel MySQL - To set the action attribute in a  form

    Hi All
    I am working on an application that requires to read data from Excel and update the table in MySQL. My java code works well and does the required. For the user to select an excel file, i have designed a form using JSP. This JSP form gets loaded through Tomcat..When the user browses and selects the required file, he then will click on the update button and the java code then should be executed.
    How can i set the action attribute in form tag to execute java code.
    Following is my code.
    <%@page
    language="java"
    import="javax.servlet.*,javax.servlet.http.*,java.io.*,java.util.*,java.sql.*"
    info="BulkUpdate"
    session="true"
    %>
    <html>
    <head></head>
    <title>Bulk Update Page</title>
    <body bgcolor="#FFcc00">
    <p style="margin-top: 0; margin-bottom: 0">
    <u><b><font color="#800000" size="4"><center>Update Data from Excel Sheet to Database</center></font></b></u></p><br>
    <p style="margin-top: 0; margin-bottom: 0">
    <font face="arial" color="#000080" align="left"><b>Bulk Update on :</b>
    <%
    java.util.Date date = new java.util.Date();
    %></font>
    <%
        out.print( date );
    %>
    <br><br>
    <b><font size="2" face="Arial" color="#000080">This page is used to Select the
    data and configuration file in the browser and update MYSQL database
    </font></b></p>
    <form action="http:\\localhost:8080\itasm\ExcelTest3.java" method="post" enctype="multipart/form-data">
      <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="98%" id="AutoNumber1">
        <tr>
          <td width="34%" bgcolor="#800000"><b>
      <font face="Arial" color="#FFFF00" size="2">Select the Excel File to update </font>
          </b></td>
          <td width="53%" bgcolor="#800000">
          <p align="left"><input size="34" type="file" name="spreadsheet" /></td>
          <td width="17%" bgcolor="#800000"><input type="submit" value="Update File" /></td>
        </tr><br>
    <tr>
    <td width="34%" bgcolor="#800000"><b>
    <font face="Arial" color="#FFFF00" size="2">Select the corresponding Configuration File</td>
    <td width="17%" bgcolor="#800000"><input size="34" type="file" name="configfile" /></td>
    <td width="53%" bgcolor="#800000"></td>
    </tr></font>
      </table>
    </form>
    <p style="margin-top: 0; margin-bottom: 0">
    </p>
    </body>
    </html>When i execute the above code rather than executing the code, it just displays it in the browser.
    Please help.
    Regards

    Hi Andy!
    I just started to set the tabindex on each item... it wasn't working.. I copied the example you gave.. ha.. you had taxindex --- TAX and I too didn't notice it.. so just want to mention it incase anyone does what I did.. copies without thinking..
    As you said in the previous post it is TABINDEX="n"
    Ha.. its a Monday.. Bill

  • Copy item style attributes/properties to other item?

    Just want to ask if someone know if there is short way to copy item properties to other object, than go through every possibilities with script. There is quite many possibilities with strokes and so on, so this could be helpful...
    I mean like with "Eyedropper Tool", but with the script
    I can set them manually like below. But just want to know is there already some "shortcut" way to handle this kind object style copying?
    var doc = app.activeDocument;
    var selectedItems = doc.selection;
    var newLayer = doc.layers.add();
    var ellipse = newLayer.pathItems.ellipse(100, 0, 100.0, 100.0, false, true );
    ellipse.fillColor = selectedItems[0].fillColor;
    ellipse.strokeColor = selectedItems[0].strokeColor;
    ellipse.strokeWidth = selectedItems[0].strokeWidth;
    ellipse.strokeDashes = selectedItems[0].strokeDashes;
    ellipse.strokeDashOffset = selectedItems[0].strokeDashOffset;
    // etc etc...

    You can make an object to store attributes you want to copy from some art item and then use that object as data for a function which takes another art item as an argument and applies all appropriate options from the data object.
    My sample code here relies on having 2 path items with names of 'mySource' and 'myDest'  .
    The appStyle object acts as a clipboard to hold the style attributes of the art, and uses the for-in loops to apply and copy them, which means if AI art objects had a 'copyStyle' or 'applyStyle' properties, it would mess you up, then the names would need to change to be unique.
    #target illustrator
    function test(){
        var doc= app.activeDocument;
        var appStyle = {
             fillColor: null,
             strokeColor: null,
             strokeWidth: null,
             strokeDashes: null,
             strokeDashOffset: null,
             copyStyle: function(sourceArt){
                var a = sourceArt;
                for(var all in this){
                    if(a.hasOwnProperty(all)){
                        this[all] = a[all];
            applyStyle: function(destArt){
              var b = destArt;
                for(var all in this){
                    if(b.hasOwnProperty(all) && this[all] != null){
                        b[all] = this[all];
        var mySourcePath = doc.pathItems.getByName('mySource');
        var myDestPath = doc.pathItems.getByName('myDest');
        appStyle.copyStyle(mySourcePath);
        appStyle.applyStyle(myDestPath);
    test();

  • How do I set the mailhost attribute in Messaging Server 3.5?

    <B>Intent of the hostname aliases feature: </B><BR>
    In Messaging Server 3.5, the hostname aliases feature is designed to facilitate migrating and co-hosting. For
    instance, if you set up all of your sales and marketing users on one Messaging Server, but suspect that you'll
    want to split those groups in the future, you can give the sales users the mailhost value sales.company.com and
    the marketing users the mailhost value mktg.company.com. This feature can also be used for fast failover if
    you want to be able to move a group of users quickly from one Messaging Server to another.
    <P>
    <B>How to use hostname aliases and how to set mailhost and MessageHostName settings: </B><BR>
    Each user's mailhost attribute can have only one value. All users on a single Messaging Server do not need to
    have the same mailhost value in the LDAP directory. The user's mailhost value should match one of the
    MessageHostName attribute values in netscape.mail.conf. (On Unix, the path to this file is
    /etc/netscape.mail.conf. Windows NT users must use Notepad to create this file in
    server-root\bin\mail\Server\etc, where server-root is the base directory where your SuiteSpot servers are
    installed.)
    <P>
    With Messaging Server 3.5 and later, MessageHostName can have multiple values. Think of hostnames as
    colors. Each mail account in the LDAP server has a single color. Each Messaging Server has one or more
    colors. A Messaging Server will check an LDAP account's color (mailhost) against its own color(s)
    (MessageHostName), and if they match, the server considers the account to be local. <P>
    For example: <BR>
    MessageHostName=red.company.com,green.company.com,blue.company.com
    <BR>where original-host-name is the machine's real name. This entry must come first as the server uses the first
    entry to generate machine specific postmaster forms. The subsequent host names can be any values that you
    wish separated by commas that are inside the brackets. Do not place spaces anywhere on the line.
    <P>
    In this example, if the mailhost setting for the user is set for either red.company.com or green.company.com, or
    blue.company.com, the server will consider the user to be local. (Hostname aliases must also be configured in
    DNS. Please see the DNS section at the end of this technote.) No other Messaging Server should list either
    red.company.com or green.company.com or blue.company.com in the MessageHostName field. Mail could
    not be delivered properly if either red.company.com or green.company.com or blue.company.com were listed
    in any other server's MessageHostName field. A user with a mailhost setting of violet.company.com would not
    be considered local to this machine.
    <P>
    Although it is possible with Messaging Server 3.52 to list more than 16 different host names in the
    MessageHostName field, it is not recommended because increasing the number of hostnames in this field beyond
    16 will have a negative impact on performance. This feature is intended to provide fast failover and/or
    migration of users. If users need to be divided up into many smaller groups, the use of some other LDAP
    attribute is recommended.
    <P>
    In Messaging Server 3.0, you can associate a server with only one host name. Consequently, all mail accounts
    on a given server must have the same mailhost value in the LDAP directory. This should be the name of the
    server, i.e. host.company.com
    <P>
    </A>A note about DNS
    Hostname aliases must be configured in DNS. This is done with a CNAME record. For example:
    A 128.101.101.101
    CNAME
    <P>
    Additional MX records are not required to use hostname aliases.
    <P>
    If you aren't sure about how to configure your DNS records, consult the book <I>DNS and Bind </I> by Paul Albitz and
    Cricket Liu.

    You can find the connection settings in Tools > Options > Advanced : Network : Connection
    See "Firefox connection settings":
    *[[Firefox cannot load websites but other programs can]]

  • Using getter/setter for returing a string variable to display on an Applet

    have two classes called, class A and class testA.
    class A contains an instance variable called title and one getter & setter method. class A as follow.
    public class A extends Applet implements Runnable, KeyListener
         //Use setter and getter of the instance variable
         private String title;
         public void init()
              ASpriteFactory spriteFactory = ASpriteFactory.getSingleton();
              // Find the size of the screen .
              Dimension theDimension = getSize();
              width = theDimension.width;
              height = theDimension.height;
              //Create new ship
              ship = spriteFactory.createNewShip();
              fwdThruster = spriteFactory.createForwardThruster();
              revThruster = spriteFactory.createReverseThruster();
              ufo = spriteFactory.createUfo();
              missile = spriteFactory.createMissile();
              generateStars();
              generatePhotons();
              generateAsteroids();
              generateExplosions();
              initializeFonts();
              initializeGameData();
              //Example from Instructor
              //setMyControlPanel( new MyControlPanel(this) );
              // new for JDK 1.2.2
              addKeyListener(this);
              requestFocus();
         public void update(Graphics theGraphics)
              // Create the offscreen graphics context, if no good one exists.
              if (offGraphics == null || width != offDimension.width || height != offDimension.height)
                   // This better be the same as when the game was started
                   offDimension = getSize();
                   offImage = createImage(offDimension.width, offDimension.height);
                   offGraphics = offImage.getGraphics();
                   offGraphics.setFont(font);
              displayStars();
              displayPhotons();
              displayMissile();
              displayAsteroids();
              displayUfo();
              //displayShip();
              //Load the game with different color of the space ship          
              displayNewShip();
              displayExplosions();
              displayStatus();
              displayInfoScreen();
              // Copy the off screen buffer to the screen.
              theGraphics.drawImage(offImage, 0, 0, this);
         private void displayInfoScreen()
              String message;
              if (!playing)
                   offGraphics.setColor(Color.white);
                   offGraphics.drawString("\'A\' to Change Font Attribute", 25, 35);
                   offGraphics.drawString(getTitle(), (width - fontMetrics.stringWidth(message)) / 2, height / 2
                             - fontHeight);
                   message = "The Training Mission";
                   offGraphics.drawString(message, (width - fontMetrics.stringWidth(message)) / 2, height / 2);
                   message = "Name of Author";
                   offGraphics.drawString(message, (width - fontMetrics.stringWidth(message)) / 2, height / 2
                             + fontHeight);
                   message = "Original Copyright 1998-1999 by Mike Hall";
                   offGraphics.drawString(message, (width - fontMetrics.stringWidth(message)) / 2, height / 2
                             + (fontHeight * 2));
                   if (!loaded)
                        message = "Loading sounds...";
                        int barWidth = 4 * fontWidth + fontMetrics.stringWidth(message);
                        int barHeight = fontHeight;
                        int startX = (width - barWidth) / 2;
                        int startY = 3 * height / 4 - fontMetrics.getMaxAscent();
                        offGraphics.setColor(Color.black);
                        offGraphics.fillRect(startX, startY, barWidth, barHeight);
                        offGraphics.setColor(Color.gray);
                        if (clipTotal > 0)
                             offGraphics.fillRect(startX, startY, (barWidth * clipsLoaded / clipTotal), barHeight);
                        offGraphics.setColor(Color.white);
                        offGraphics.drawRect(startX, startY, barWidth, barHeight);
                        offGraphics
                                  .drawString(message, startX + 2 * fontWidth, startY + fontMetrics.getMaxAscent());
                   else
                        message = "Game Over";
                        offGraphics.drawString(message, (width - fontMetrics.stringWidth(message)) / 2, height / 4);
                        message = "'S' to Start";
                        offGraphics.drawString(message, (width - fontMetrics.stringWidth(message)) / 2, height / 4
                                  + fontHeight);
              else if (paused)
                   offGraphics.setColor(Color.white);
                   message = "Game Paused";
                   offGraphics.drawString(message, (width - fontMetrics.stringWidth(message)) / 2, height / 4);
         public String getTitle() {
              System.out.print(title);
              return title;
         public void setTitle(String title) {
              this.title = title;
    }displayInfoScreen method in class A calls out for getTitle( ) to be displayed on an applet as an initial display string for the application.
    The instance variable title is set by setTitle method which is called out in class testA as follow,
    public class testA extends TestCase
          * testASprite constructor comment.
          * @param name
          *          java.lang.String
         public testA(String name)
              super(name);
          * Insert the method's description here.
          * @param args
          *          java.lang.String[]
         public static void main(String[] args)
              junit.textui.TestRunner.run(suite());
              // need to figure out how to get rid of the frame in this test
              System.exit(0);
         public static Test suite()
              return new TestSuite(testA.class);
          * Basic create and simple checks
         public void testCreate()
              A theGame = new A();
              assertNotNull("game was null!", theGame);
          * Basic create and simple checks
         public void testInit()
              A theGame = new A();
              Frame gameFrame = new Frame("THE GAME");
              gameFrame.add(theGame);
              int width = 640;
              int height = 480;
              gameFrame.setSize(width, height);
              // must pack to get graphics peer
              gameFrame.pack();
              theGame.resize(width, height);
              theGame.setTitle("TEST THE GAME");
              theGame.init();
              assertEquals("ASprite width not set", A.width, width);
              gameFrame.dispose();
              gameFrame.remove(theGame);
    }Basically, class testA invokes the init( ) method in class A and start the applet application. However, it displays a white blank display. If I change the getTitle( ) in the displayInfoScreen method to a fixed string, it works fine. Did I forget anything as far as using getter & setter method? Do I have to specify some type of handle to sync between setter and getter between two classes? Any feedback will be greatly appreciated.
    Thanks.

    Your class A extends runnable which leads me to believe that this is a multi-threaded application. In that case, title may or may not be a shared variable. Who knows? It's impossible to tell from what you posted.
    Anyway, what is happening is that your applet is being painted by the JFrame before setTitle is called. After that, who knows what's happening. It's a complicated application. I suspect that if you called setTitle before you added the applet to the frame, it would work.

  • How to set multiple styles on a single component in flex ?

    Hi ,
    I would like to know how to set multiple styles on a single component in flex.
    Can anyone give me an example as to how to set multiple styles for a single component ?
    Thanks ,
    Regards,
    Ajantha

    Hi tuliptaurus,
    You can setStyleName property for chnaging the external css dynamically by using the setStyle() method ...
    btn.setStyle("styleName","blendButtonSkinOther");
    You can change the external css by using the styleaName property with setStyle method..the line in blue..where blendButtonSkinOther is another css class..
    blendButtonSkin {
        fontFamily: Arial;
        fontSize: 11;
        color: #F1F1F1;
        textRollOverColor: #F1F1F1;
        textSelectedColor: #F1F1F1;
        horizontal-align:center;
        width:150;
        height:30;
        cornerRadius:5;
        upSkin:ClassReference('assets.skins.BlendButtonSkin');
        downSkin:ClassReference('assets.skins.BlendButtonSkin');
        overSkin:ClassReference('assets.skins.BlendButtonSkin');
        disabledSkin:ClassReference('assets.skins.BlendButtonSkin');
        selected-up-skin: ClassReference('assets.skins.BlendButtonSkin');
        selected-down-skin: ClassReference('assets.skins.BlendButtonSkin');
        selected-over-skin: ClassReference('assets.skins.BlendButtonSkin');
    blendButtonSkinOther {
        fontFamily: Arial;
        fontSize: 11;
        color: #F1F1F1;
        textRollOverColor: #F1F1F1;
        textSelectedColor: #F1F1F1;
        horizontal-align:center;
        width:150;
        height:30;
        cornerRadius:5;
        upSkin:ClassReference('assets.skins.BlendButtonSkin');
        downSkin:ClassReference('assets.skins.BlendButtonSkin');
        overSkin:ClassReference('assets.skins.BlendButtonSkin');
        disabledSkin:ClassReference('assets.skins.BlendButtonSkin');
        selected-up-skin: ClassReference('assets.skins.BlendButtonSkin');
        selected-down-skin: ClassReference('assets.skins.BlendButtonSkin');
        selected-over-skin: ClassReference('assets.skins.BlendButtonSkin');
    Thanks,
    Bhasker Chari

  • Creation of Service Product with Set Type and Attribute

    Dear All,
    Please guide me with proper step by step process,
    How to create the product with the set type and attribute for service industry in sap crm 7.0
    Regards,

    Hi Nitin,
    Before creating the Service type of product, you have to define the Base category for Service type product. Generally the category for service will be created under the R3 hierarchy R3PRODSTYPE. You can create this category using the TCode:
    COMM_HIERARCHY. Here you have to select the product type as Service and have to assign the set types to the category.
    You can create a service product using the transaction : COMMPR01 -> Click on Service ICON -> Select the Category for Service Type. Then fill in the details for Service Product description, Service ID(Based on number range settings for products), Language.
    Also fill other details like Base Unit of measure, Pricing condition for different sales areas for the service product.
    Since you are using CRM7.0, you can do all these activities using a POWER USER role.
    For more information about Set types and hierarchies please refer the following help link:
    http://help.sap.com/saphelp_crm70/helpdata/EN/46/57672501a208e7e10000000a114a6b/frameset.htm
    Hope this helps!
    Regards,
    Chethan

  • Is there support in certmap.conf for using DN's with dc= attributes

    Hi Folks-
    The Question:
    Is there any support on certmap.conf (or the like) for dealing with suffixes that use the "dc=example,dc=com" format (in either 5.2 or 6.0)?
    The Details/Background:
    Like many places our suffixes are named ending with "dc" attributes (e.g. dc=example,dc=com). I've been setting up SSL Client Certificate based authentication. It's working via the CmapLdapAttr with a custom attribute/class added to the schema (I haven't finished with VerifyCert yet).
    The docs say that DNComps and FilterComps support the following RDN keywords: cn, ou, o, c, l, st, e, and mail. Notably missing from both is "dc". This seems to leave no valid value for DNComps (forcing all the searches to be across ALL suffixes including cn=config and co). With those global searches FilterComps also seems to be fairly limited (especially if uid is not part of the Certificate's Subject DN which it arguably shouldn't be in many situations).
    It seems all I'm left with is CmapLdapAttr (after creating the custom attribute & class) with every search across all suffixes. I don't think I can (or should) place indexes in the stuff in dse.ldif, hopefully they won't stop the other suffixes to be searched using their indexes and these should be small enough (and hopefully in memory) that they don't make a real difference.
    Thanks,
    -Scott-

    Ok, so as far as I can tell that just leaves using "CmapLdapAttr" with a custom attribute (& class) extension to the schema.
    Since I won't be able to restrict the suffix being searched it's going to do at least 6 separate scans: one each on userRoot (and any other user suffixes), NetscapeRoot, "", cn=schema, cn=config, and cn=monitor (based on what it's reported in the logs already).
    (1) Am I correct in my assumption that creating indexes on attributes in the suffixes in dse.ldif is probably not possible and would be a bad idea?
    My guess is that everything in dse.ldif gets loaded into memory on startup and stays there. Also these aren't that big so the combination should mean that their search time is negligible.
    (2) When automatically searching all 6+ suffixes (on every client certificate authenticated connection) will it perform indexed searches on userRoot & NetscapeRoot (assuming the correct indexes exist for CmapLdapAttr) and unindexed searches for the suffixes in dse.ldif? Or will the lack of indexes in the dse.ldif suffixes cause all of the searches to be unindexed?
    (3) Is there something I'm missing that would be a better approach?
    Thanks,
    -Scott-

  • [CS3 AS] set paragraph style, go to next paragraph, set paragraph style, etc.

    hello,
    i'm pretty much a noob at scripting. i'd like to automate applying paragraph styles to a document with reviews.
    basically, i want to place the cursor in a paragraph (manually), and have a script do the following: set paragraph style 5, go to the next paragraph, set paragraph style 1, go to the next paragraph, set paragraph style 2, go to the next paragraph, set paragraph style 3.
    help?
    (i specified AS as i think i might understand it, but JS probably works as well)

    Assuming you set the relationship of one style to the next using the 'Next Style' definition in the paragraph styles, then the following should do the trick (assuming you have your cursor in the first paragraph).
    > // Follows next paragraph style setting until Same Style or No Paragraph Style
    >// Get the current pagaraph based on user cursor location
    var myCurrentParagraph = app.documents[0].selection[0].paragraphs[0];
    do
    ] // Currently applied paragraph style
    var myCurrentParagraphStyle = myCurrentParagraph.appliedParagraphStyle;
    ] // Next Style for current paragraph style
    var myNextParagraphStyle = myCurrentParagraph.appliedParagraphStyle.nextStyle;
    ] // Check current style and next style are not the same or No Paragraph Style
    if (myCurrentParagraphStyle == myNextParagraphStyle
    || myNextParagraphStyle == app.documents[0].paragraphStyles.item("[No Paragraph Style]") ) {
    ]] exit(); }
    ] // Get next paragraph in chain
    var myNextParagraph = myCurrentParagraph.insertionPoints[-1].paragraphs[0];
    ] // If we are end of story then stop
    if (myNextParagraph == myCurrentParagraph) { exit(); }
    ] // Apply next style to next paragraph
    myNextParagraph.appliedParagraphStyle = myNextParagraphStyle;
    ] // Restart the process
    myCurrentParagraph = myNextParagraph;
    >while (true)
    Note that the process will end when the Next Style setting of one paragraphs is Same Style or when the Next Style is No Paragraph Style. There would be other ways to end the process, such as limiting it to a certain number of steps if the number of steps was always the same. Let me know.

Maybe you are looking for

  • Remote Debug mode while starting Weblogic server using my eclipse plugin

    Hi When am starting the Weblogic server via my eclipse it is opening in Remote Debug mode. Can anyone tell me how do I change the preferences/configure so that it doesnt run in debug mode. NOTE:I have deployed the application and ran number of times,

  • JDeveloper 3.2 Problems - Access violation errors

    Hi, I suddenly got the following error message on a dialog box when I was editing code in the visual designer: QUOTE Access violation at address 00402FC8 'jdeveloper.exe'. Read of address FFFFFFF UNQUOTE When I tried to save my work, I was not able t

  • 5D Mark III Raw file support

    I just got the Canon 5d Mark III and the raw files do not seem to be supported by Aperture.  What can I do to fix this?  Thanks.

  • Underlying tables of business Content data sources

    Hello Exerts, Can anyone advice me finding the underlying tables of business Content data sources? Regards.

  • Billing problem with previous

    I changed the pin on my credit card. There is a billing problem with a previous purchase So i am asked to reenter the security code When i enter the new one it wont accept. What do i do?