CSS with JSC

I am using two style sheets fro my jsp page.One fro the screen media and the other for the print media. For print media I am hiding out unwanted elements using CSS selectors.I have a problem here. The JSC renderer generates id's for html span elements in the following format:
form1:<parent-name>:<child-name>.Now,CSS doesnt allow using colons with id's.So,I am not able to use those id's to hied out unwanted elements. I have also tried other ways of doing this..but in vain.I cud easily place the elements in a div tag and use the id for that to display out,but then I cannot keep adding div's for each and evry elemetn i want to hide out.
Please let me know if there's a plausible solution to this.

Instead of creating ID selector, why don't you create class selector and set them to the component styleclass attribute.
You could use two stylesheet for the two different user agent.
You could use the Link components to set two different stylesheets and conditionally render them
- Winston
http://blogs.sun.com/roller/page/winston?catname=Creator

Similar Messages

  • Problem when access to CSS with SSH

    Hi,
    We have an strange issue when we try to access to the management of the CSS with SSH protocol: we need to put the username twice.
    Is it a normal behaviour?
    /* Style Definitions */
    table.MsoNormalTable
    {mso-style-name:"Tabla normal";
    mso-tstyle-rowband-size:0;
    mso-tstyle-colband-size:0;
    mso-style-noshow:yes;
    mso-style-priority:99;
    mso-style-qformat:yes;
    mso-style-parent:"";
    mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
    mso-para-margin:0cm;
    mso-para-margin-bottom:.0001pt;
    mso-pagination:widow-orphan;
    font-size:11.0pt;
    font-family:"Calibri","sans-serif";
    mso-ascii-font-family:Calibri;
    mso-ascii-theme-font:minor-latin;
    mso-fareast-font-family:"Times New Roman";
    mso-fareast-theme-font:minor-fareast;
    mso-hansi-font-family:Calibri;
    mso-hansi-theme-font:minor-latin;}
    login as: test
    User Access Verification
    Username:test
    Password:
    /* Style Definitions */
    table.MsoNormalTable
    {mso-style-name:"Tabla normal";
    mso-tstyle-rowband-size:0;
    mso-tstyle-colband-size:0;
    mso-style-noshow:yes;
    mso-style-priority:99;
    mso-style-qformat:yes;
    mso-style-parent:"";
    mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
    mso-para-margin:0cm;
    mso-para-margin-bottom:.0001pt;
    mso-pagination:widow-orphan;
    font-size:11.0pt;
    font-family:"Calibri","sans-serif";
    mso-ascii-font-family:Calibri;
    mso-ascii-theme-font:minor-latin;
    mso-fareast-font-family:"Times New Roman";
    mso-fareast-theme-font:minor-fareast;
    mso-hansi-font-family:Calibri;
    mso-hansi-theme-font:minor-latin;}
    test# show version
    Version:               sg0810106 (08.10.1.06)
    Flash (Locked):        08.10.1.06
    Flash (Operational):   08.10.1.06
    Thanks.
    Best regards,
    Dani

    Hello Dani,
    This has been the behavior of the CSS when logging in via SSH since the product was introduced.  So yes, this is normal behavior for the CSS.
    Hope this helps,
    Sean

  • CSS with the pager

    hi guys,
    i have 4 servers setting behind CSS with SSL module (the same VIP) as shown below:
    owner KFIC-PUSH-PULL
    content PULL-SERVERS
    add service PULL1-HTTP
    add service PULL2-HTTP
    protocol tcp
    port 80
    dnsbalance leastloaded
    balance leastconn
    vip address 192.168.10.55
    advanced-balance sticky-srcip-dstport
    sticky-serverdown-failover sticky-srcip-dstport
    active
    content PUSH-SERVERS
    add service PUSH1-HTTP
    add service PUSH2-HTTP
    dnsbalance leastloaded
    protocol tcp
    port 80
    url "/HEN/pushlet"
    balance leastconn
    vip address 192.168.10.55
    advanced-balance sticky-srcip-dstport
    sticky-serverdown-failover sticky-srcip-dstport
    active
    content SSLAccl1
    add service SSLSlot2
    protocol tcp
    port 443
    vip address 192.168.10.55
    active
    my problem raised sometimes and sometimes not, when the user trying to access the server on:
    https://xxx.yyy.com/Trading/FEServlet?XSLCONTEXT=NBK
    the user will get nothing on the Web browser but when tried to use this url:
    https://xxx.yyy.com
    which is the same page its working fine....!!
    again this problem not always there sometimes it happen sometimes not !
    please advice if this is a server problem or the CSS pronlem or misconfiguration ?
    Thanks in advance,

    This sometimes happens. This is an issue with the server. When such things happen go step by step.

  • Photoshop sliced layout output are table base,  do it can control the position by CSS with div?

    Dear all,
    I have make some image in Photoshop, and sliced it to html
    page, but open it in dreamweaver it show me the table layout that
    Photoshop Sliced maked ..
    I am wonder, now many web site are integration with CSS, and
    I had saw some total using CSS with div maked Web Site, how to
    control the sliced image after that Photoshop sliced it?
    Any simple example for newbie reference?
    And sorry of my poor English.

    It seems you have exported the html from photoshop into
    Dreamweaver.
    This is not the best way to build a page. You should slice up
    your images
    and then export the images only into a folder. You then build
    the page
    using these exported images in your table or css layout. You
    can place the
    images directly into table cells or divs or use them as
    background images
    via css.
    Good CSS tutorials can be found here:
    http://www.adobe.com/devnet/dreamweaver/css.html
    Nadia
    Adobe� Community Expert : Dreamweaver
    http://www.DreamweaverResources.com
    - CSS Templates|Tutorials
    http://www.csstemplates.com.au
    http://www.adobe.com/devnet/dreamweaver/css.html
    CSS Tutorials for Dreamweaver
    > Dear all,
    >
    > I have make some image in Photoshop, and sliced it to
    html page, but open
    > it
    > in dreamweaver it show me the table layout that
    Photoshop Sliced maked ..
    >
    > I am wonder, now many web site are integration with CSS,
    and I had saw
    > some
    > total using CSS with div maked Web Site, how to control
    the sliced image
    > after
    > that Photoshop sliced it?
    >
    > Any simple example for newbie reference?
    >
    > And sorry of my poor English.
    >

  • Using CSS With id=form1:txtbox1

    Author: Mike12779 Sep 7, 2004 5:27 PM
    I am having a problem using CSS with the id's that JSF creates for the components on my page. After specifying an id="txtbox1", the rendering of the page changes my id to "form1:txtbox1". This is giving me problems applying styles to that element by ID. Please let me know if there is a way around this besides having unique classes for the css.

    you can use styleClass or style instead of id.
    For example,
    .text1 { font-size: 14px }
    <h:outputText styleClass="text1" />
    or
    <h:outputText style="font-size: 14px" />
    *NOTE:  the 'style' at JSF is similiar to 'style' in CSS                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Does electronic version Adobe Dreamweaver CSS with PHP content question

    Does electronic version Adobe Dreamweaver CSS with PHP come with the labs or files used in a college course?  What is on the CD and is there a way to get the content with the Barnes and Noble e-book?  This should be a Barnes and Nobel question but they seem to have troubles answering the questions like this.

    Electronic version comes with absolutely nothing about your course.   All you get is everything in this link:
    <http://www.adobe.com/cfusion/tdrc/index.cfm?product=dreamweaver>
    The link will give you 30 days of free use of DW after which you might get bored with DW or you will have given up on your course and started your own business to pay your school fees.
    hth

  • Shopping cart with JSC

    Hi,
    I wanna make a shopping cart, I dont know how to make with JSC, If ani1 has got code for shopping cart or ani instruction, resources, I'll be really glad if ani1 help me.
    Waiting for kind reply.
    Thanx.

    Hi Gaurav,
    Thanks for your response, but we have standlone scenario( No ECC), we have the Service Hierarchy, Category and Product all setup for Service, yet the system is not creating the SC with Service Item via PR Data Coming in to SRM System.
    Also, we tried the same directly from SRM system using describe what you need, and their as well the SC goes with Service category but when SC details are shown up it shows as Outline Item, where again we need to add subline using service category. Ideally i suppose it should take the Service Category which we added at the time of filling details in Describe what you need.
    Please suggest, where in my main concern was in standalone SRM system if we have material PR data, then apart from the Category to be used Service is their any other parameter to be passed in, to create SC with Service Item.
    Regards,
    Gaurav

  • Has anyone a jasper 6.8 example that works fine with JSC/JSF ???

    Has anyone just a jasper 6.8 example that works fine with JSC 2 / JSF ???
    Because I tried everything and it still doesn't want to do anything, and the code provided in this forum : http://swforum.sun.com/jive/thread.jspa?threadID=50166&tstart=0 doesn't work will other files or other than 6.1 Jasper version.
    thanks a lot
    Pierre

    Thank you for your answer, but this is exactly the thread I used and that I mentionned in my first message !!!
    this jasper example works fine with Creator only with the provided jasper file and the provided library. If I try to compile the jrxml provided, to change the library and so on, it doesn't work anymore, I don't know why.
    On this thread you can see more details :
    http://sourceforge.net/forum/forum.php?thread_id=1311641&forum_id=113530
    thanks for your help,
    Pierre

  • HELP Extending JAASAuthentication Example with JSC

    Hi All,
    Does anyone out there know how to go about extending the JAASAuthentication example shipped with JSC to include Authorisation code (for example, using roles)? I have managed to successfully swap out the use of the Derby database with that of a mySQL 5.0 database and would like to extend the database and the example app to include provision for user roles within the system so that I can protect say an admin area. I am really new to both JSC and JAAS and could really do with a little bit of help. I'm concerned that if I just search the web looking for clues that I will not end up using a best practice solution.
    If anyone from sun reads this post it would have been great if you had included even just a simple example of Authorisation as well as Authentication with this sample app, I think it would have enabled lots of people to get a real head start into building web apps with JSC.
    Kind Regards,
    Paul Anderson

    Hi,
    you should look towards jguard (http://www.jguard.net) which enable easy JAAS integration into webapps with multiple databases.
    it integrates many featuers including taglibs to protect frmagents of page, authentication, authorization,role inheritance and so on... ...
    hope it helps,
    Charles.
    jGuard team.

  • Can I use CSS with PS Web Gallery Preset?

    Using DW CS4. I wanted to create a web gallery with captions under the thumbnail images. I could not get captions to show up using the workspace output tool in Bridge, so I used the web gallery plug-in and preset in Photoshop. The doc title and description from the metadata shows up with each thumbnail and large photo, which is what I wanted. I added an Iframe to make the gallery show up in my web page layout with all the links I wanted, and I re-wrote part of the preset html to eliminate some of the extra preset gallery text at the top of the gallery pages. I am using a transitional doc type.
    It all worked out just fine and the pages are working as planned.
    However, when I used DW to validate the gallery pages, the report showed errors because the font attributes for the gallery pages are controlled by html and not by CSS. There are two problems cited in the report:
    The tag "center" is not allowed within: <p>
    In HTML 4.0, FONT is deprecated... consider using style sheets instead.
    Questions: On the gallery pages generated by the PS plug-in and pre-set, is there a way to control font attributes with a style sheet instead of using the pre-existing html styling? Do I need to be concerned about the attributes being deprecated?
    If you need to look at the web gallery, you can see it at http://www.LoonSongGardens.com/webgallery/galleryab.html
    If you look, you can see why I am daylilybud!

    I used an iframe (as opposed to a frame) as suggested in an article by David Powers about embedding a gallery into a web page. He says the iframe is acceptable in html, and no problem with the iframe itself was indicated during validation, just the FONT attributes from the PS preset I used. You can read the article here: http://foundationphp.com/tutorials/gallery/embed1.php
    In my current gallery, thumbnail captions appear from the metadata for each photograph. For each large image, both the title and the description come from the photo's metadata.  This works well for my purpose, and I want to avoid re-entering each title and description. I guess my question could be better stated by asking if CSS can be added to the preset to apply to captions coming from the metadata of each photo.
    Regarding the lightbox approach you suggest, I looked at the example and do not see captions under the thumbnails. Can captions be added to the thumbnail images? (It is essential that my thumbnails have captions.)
    Customers need to see the name of each plant when they browse thumbnails in order to select items (daylily plants) of interest.
    Because I am dealing with hundreds of photos and will need to update frequently, I am looking for a solution that is efficient and fairly easy to maintain. So far, the PS web gallery preset meets my needs better than anything else I have found, but I thought I'd try to find out if I should and can fix the FONT attribute validation problem.

  • More info needed on BC Dynamic menus and using CSS with them

    Hi all,
    The BC Gurus tutorial on Dynamic Menus and how to style them with CSS made no sense to me, unfortunately. The presentation was too rushed and the screen too small to see what was happening.
    In a previous question I found out how to apply CSS classes to BC menus after a bit of a run around.
    I was putting the # in front of the Item ID name and a . in front of the class name and this was not necessary.
    I have further questions though, as I am still struggling to get a BC Dynamic menu to style properly with the CSS I have created.
    1. If you choose CSS as the menu type, can you set the font, background colour and rollover state of the menu items in the Dynamic menu section? Or do you have to style it all in the CSS stylesheet?
    2. If you choose CSS as the menu type, the option to say how the submenu sits under the root menu disappears. So do you need to set this in the CSS stylesheet? And if so in which element? UL or LI?
    3. If you choose CSS/HTML only, how is this different to the option of CSS for the dynamic menu?
    4. If you choose CSS as the menu type and if you set a width and height in the menu item, and then set a different width and height in the CSS stylesheet, which width and height wins?
    5. If you want a dynamic menu to show on an Android phone, do you have to choose CSS/HTML only and do all the styling in the CSS stylesheet? Or should you avoid dynamic menus all together and just use a UL list in the template? (I am doing a responsive fluid grid layout in DW for the template).
    6. I am finding that the dynamic menu I have done, with CSS as the type, does not show and hide the sub menu items properly on an Android phone. Is there a problem with the javascript in Dynamic menus?
    Thanks for any help you folks can give on these questions!

    .pacnew files are only created if you have modified the default (or a change has been made to the config upstream); in both cases, you should be looking to incorporate the changes.
    It seems some new options are being shipped with lxdm: you want those in your config (turning them on or off is a matter for you and the man page to sort out)...

  • How to pass client IP address via CSS with SSL offload?

    Hello,
    We use Cisco CSS 11501S to do the SSL offload of web servers in one-armed mode. So we have to SNAT client IP in order to guaranty correct return path via the CSS. In this case web server can see only the IP address of the VIP used for SNAT. If there is a way to pass customer?s IP to the web server - i.e insert customized HTTP HEADER something like HTTP_REMOTEADDRESS:<IP address of the client> - similar to what is possible with BIG IP device for instance?
    Second question if there is a way to get from the CSS access log data similar to what we have in Apache access.log file to be used by Webalizer or similar application to analyze web traffic.

    Scott,
    if you're not doing src nat, the css will spoof the client ip and therefore, there is no need to save the client ip in the http header.
    Gilles.

  • How to use a custom css with a ditamap?

    I'm still trying to get to grips with some DITA Frame basics and another piece of info that I would like to have is how to get the ditamap to use a custom css when it is output to xhtml with the DITA OT. Is there any simple non-super-techie way to do this without having to learn how to hack the ANT programs?
    Under the StructureTools menu, there is an Import CSS styles item, but I can't find instructions on how to use it accessible to my level.
    Also, is there a way to apply a company stylesheet to the Responsive html output generated with the new Publish tool? I realize the two provided templates can be modified element by element, but it does mean a lot of modification, and it would be cool if we could just invoke the stylesheets that already govern our web site so that the output could match.
    Thanks to anyone who can help,
    Elisa Roselli
    Cambridge Imaging Systems

    Hi Elisa...
    The short answer is .. no.
    When you publish through the OT, you're just passing control off to an Ant target and the DITA-OT processing. You'd need to modify the files in the OT to use a modified CSS. Note that the "easy" way to do this is to just edit the CSS file directly in the OT file structure. The "proper" way to do it is to develop an OT plugin and set up a new Ant target that uses your styling instead of the default. You'd change the Ant target that FM uses so it calls yours (don't recall where this is but it can be done).
    One thing that may be useful to know is that when you set the value of the @outputclass attribute on an element in DITA, the corresponding tag in the generated HTML is assigned a @class attribute with that same value. This lets you set "styling" in DITA that is applied to the output. You still need to get your custom class definitions ino the CSS.
    The Import CSS item on the StructureTools menu has nothing to do with OT publishing (or anything that you'd likely be using).
    I'm not aware of a way to apply a stylesheet to the Publish tool .. I thnk you have to go through the process of mapping styles manually. I could be wrong, and if so, hopefully someone else will jump in to help.
    Cheers,
    …scott

  • Mime type note set for css with wwv_flow_file_mgr.get_file

    Hello,
    We have an apex application over here that has problems with the mime type of a theme (css) file. The css file works correctly in IE but not in FF or Chrome (because IE check the file extension, but FF seems not do not ..).
    This is the call that is failing
    <link type="text/css" rel="stylesheet" href="wwv_flow_file_mgr.get_file?p_security_group_id=33490830277084435&p_fname=theme_3_1.css" />
    in the FF error console it complains about the file being of application/octet-stream instead of text/css and therefore it will not load it.
    I have created a simple local .htm file with
    <html>
    <link type="text/css" rel="stylesheet" href="http://xxx.xxx.xx/pls/htmldb/wwv_flow_file_mgr.get_file?p_security_group_id=33490830277084435&p_fname=theme_3_1.css" />
    </html>
    And it loads the file (even though it says it is still application/octet-stream) in FF, but it will not do the same if called from Apex.
    I'm kind of lost here, so any ideas where to look for an explanation/fix ? (Yes, we have the AddType text/css .css in the httpd.conf)
    regards.

    Hi UserXY,
    what connectivity module do you use (Oracle HTTP Server, Embedded PL/SQL Gateway, APEX Listener)?
    Which Browser did you use to upload the css-File?
    I don't know why this happend in your case, but you could try a different browser to upload the file again.
    brgds,
    Peter
    Blog: http://www.oracle-and-apex.com
    ApexLib: http://apexlib.oracleapex.info
    Work: http://www.click-click.at

  • Re:css with BSP application in htmlb

    Hi,
    Iam new to BSP. i have a task to design a pages with css in htmlb.Please give me small examples step by step procedure of CSS coding and also page layout coding.how to call the CSS clasess in different UI elements.Please give me sample examples.

    Hi,
    take a look at this [Thread|;. The topic is similar to your topic.
    Regards
    Mark-André

Maybe you are looking for