CSS layout and Internationalization of JSF apps

We use message bundles to handle internationalization in our JSF applications. This approach seems to work as we used HTML tables (or rather <h:panelGrid> tags) to layout components on the page.
We had numerous customer complaints about tons of extra white space left on the screen in languages like German (where some words are very long). There are other issues with grid layouts, and we decided to give CSS positioning a try.
I wonder, what folks on this forum think about using CSSP in conjunciton with JSF components. Also, given that text strings have different length in different languages, what is the i18n approach? Afterall, coordinates that work in English may not be accurate in German.
Any suggestions, ideas, pointers would be greatly appreciated.
Thanks,
Vadim.

Hi guys.
The problem seems a little bit weird. But you could try the following. It is just the idea.
1. You should recover the .properties file and get the Map for the current Locale. This should have to be done maybe in the Backing bean.
2. Get the maximum length of the UIOutputText elements present in the form that you need to control its length. Now the important thing here is that you should have the value atribute of the UIOutputText objects based on an internationalized Base Bundle prefix. Just cut -based on the substring of the value attribute- the name of the property.
3. Consider that you have to look in the Map the entry you just obtained from the UIOutputText object. After get the value of that Map entry (a String object) and get its length. At the end of the loop you sould have get the maximum length in characters of the component values to be displayed.
4. Fix that value as an attribute in the backing bean.
5. Use the output of that value to generate the style in CSS, as an String attribute of the Backing Bean. Base your CSS construction in "em" measures
6. Change the -style- attribute in each component to reflect the correct length using CSS like this -style="#�{backingBeanName.style}"-. With this you will get an space dependent of the length of the localized values.
Again. It is just a suggestion, I had not tried it already but I guess that will be my way in that case.
Greets from Ecuador

Similar Messages

  • Trouble Understanding CSS Layout and Padding

    Hi,
    I'm having some serious problems understanding CSS layout techniques and the impact of padding and was hoping I could get some help.
    Here are a couple of pages that show examples of what I don't "get". The first has padding that causes the layout to look right. The second doesn't have padding but doesn't lay out as I would expect. Also, the amount of text affects the "bottom" div as well. I'm an old hand at HTML and could do this layout in my sleep using tables. Css is a different, frustrating story.
    http://www.libertywebmarketing.com/test/1.html
    http://www.libertywebmarketing.com/test/2.html
    Thanks.
    Fitz21

    Thank you for the help.There's a lot of valuable info in these answers that I'm going to have to study. I never thought of applying classes to Div tags, but I guess I have to start learning somewhere. I'm not sure how to use the technique, but I'll definately look into it. If I could wake up tomorrow and know what you all know simply by wishing it, I would.
    I see that there are many things I have to learn about using CSS and I'd really like to see some real world examples that don't look like typical cheesy CSS designs with columns. If I were going to design this page using HTML, I would probably do something like this: http://www.libertywebmarketing.com/test/3.html
    (The last two tables show the table structure and use of a spacer. I know this a seriously antiquated way of doing it, but it's to illustrate what I'm trying to accomplish: Namely, staggered, left/right alternating boxes that will expand properly depending on the amount of copy or the vertical height of the photo in them.) 
    Dreamweaver 101,
    I have "Dreamweaver 8 The Missing Manual" by David Sawyer McFarland, but I find it really concentrates on "typical CSS designs" that look like Content mangement templates. While I agree it's a valuable book, there's nothing in there I have found that addresses anything like what I'm trying to do. Is the Dummies book better for atypical layouts?
    Again, thank you all.
    Fitz21

  • Still practicing my CSS layout, and IE 7 issues.

    I've revamped my site, and I've been practicing with the last 4 sites or so with mostly CSS layout....definitely a work in progress. My site is the first I've tried with overlapping images and the whole z-index thing. Everything looks great, for the most part. My issue is ALWAYS ie7, and then my issue is monitors with lower screen resolution. My sticky notes are showing up at the top of the page in IE7, looks great in 8. Every other browser seems to look great as well, as long as the resolution of the monitor is higher. I'm hoping someone can help me with positioning my sticky notes, so they don't shove my flash out to the right side of the page. Here's the URL www.theresasheridan.com.
    Another site with another IE 7 issue....www.viewcamera.com. Here the issue is that the image in the maincontent div is shoved way down the page. I want to keep my width at 450 px so that I can have my side borders. Anyone have any other suggestions for me pretty please?
    Last IE 7 issue (thanks so much), www.losvaquerosridingclub.org. The background color is white under the spry menu, but again...only in IE7.
    Thank you!!

    You are absolutely right about the validator.  Some of it is way beyond me too!
    However, it seems to indicate that you have some tag confusion going on there, usually that's about missing a closing element.  Fixing that is a good thing because it can screw your layout.  Another thing the validator points out is the omission of a few of your alt="" text.  That won't muck about with any layout issues but is worth adding if you have the time or inclination.  I'm afraid I don't have time to look right now but if I get the chance I'll have a go later.
    With your sticky notes, it struck me that you could use absolute positioning.  The trick there is to place those elements in to a containing element, set that element to position: relative and then absolutely position the sticky notes using px dimensions where you want them in the page.  At the moment, you are using floats on those two parts of the page but again, I haven't quite got the time to look in detail now.
    With the float drop thing and width, you would do well to Google "Box Model CSS" or something similar.  Width is not just the content width but also takes into account margin, border and padding.  When you add those up, the width may be too big for the containing element  width which will cause the content to "drop" or to be forced into a space that can accommodate it.  The other snag with the Box Model is that different Browsers handle it differently.  Sometimes what you need to do to create space in the page is to put padding on the nested element which constrains it's content without affecting the width of the container.
    I'm a bit of a novice myself at this and it sounds a lot to get your head around.  However there is a a logic to it and once you crack it, it gets easier.
    One other tip is to use FireFox browser and get the Firbug plug-in.  That lets you view the page in the browser and you can tweak your CSS "live" to get an idea of how things work together.  Once you have what you want you then turn to DW to make your edits.
    I hope that helps rather than misleads!  As I say, I'll try to look later on but in the mean time, an expert might drop by.
    And while I'm here, my feeling is that you might have done better to put each of your queries in different threads.  Sometimes, to see several questions in one hit is a bit daunting and I think people here tend to leave the longer questions a bit until they have time.
    Regards
    Martin

  • CSS layout and IE6 suddenly gone wrong

    Hi
    I have been working on a site, unfortunately I diont have a
    copy of IE6 but looked great in IE7 and FF, checked through
    development in IE6 when i had the opportunity, suddenly at the last
    hurdle it seems to have gone terribly wrong and I have no idea why
    I have been trouble shooting for some time now and I cant seem tio
    come up with an answer.
    So if anyone can help I would be very grateful. The url :
    http://www.blanc-wall.co.uk/sitefiles/index.htm
    The left hand div seems to be the source of all errors I dont
    know why, as is pretty much the same as the right hand div and that
    renders fine.
    Help!
    Many Thanks
    Andy

    andy_forbes wrote:
    > Hi
    > I have been working on a site, unfortunately I diont
    have a copy of IE6 but
    > looked great in IE7 and FF, checked through development
    in IE6 when i had the
    > opportunity, suddenly at the last hurdle it seems to
    have gone terribly wrong
    > and I have no idea why I have been trouble shooting for
    some time now and I
    > cant seem tio come up with an answer.
    > So if anyone can help I would be very grateful. The url
    >
    http://www.blanc-wall.co.uk/sitefiles/index.htm
    > The left hand div seems to be the source of all errors I
    dont know why, as is
    > pretty much the same as the right hand div and that
    renders fine.
    I can identify the issues but I don't know how to fix one of
    them. The
    way you have constructed the page isn't exactly the way I
    would go about
    doing it.
    Issue 1: The divLeft is inheriting the margin-left: 200px;
    from the
    divCenter css, which results in flinging it to the left in
    IE6. I don't
    know the solution to this one, someone else may well do as it
    seems to
    be an IE 6 bug of some kind.
    Issue 2: You can close up the space between the links by
    giving IE6 a
    conditional comment. The space bug on the 'a' tag in that
    browser is
    well documented.
    <!--[if IE 6]>
    <style>
    #divLeft a {height: 1em;}
    </style>
    <![endif]-->

  • CSS Layout problems

    I should start this by saying I am very new to CSS layouts,
    and am self taught, so I'm probably doing something very wrong. So
    far I've stuck to really simple layouts and had no problems...but
    they were very simple layouts.
    With the site I'm doing at the moment I have placed other
    div's inside a content div, so that I can have left and right hand
    content within the content div. But the left and right div's are
    not pushing the content div down with their content, and I'm not
    sure what else to try to get it to work.
    I've tried setting the height of the content div to auto or
    inherit but that doesn't work.
    As you can see on the main page of the site I'm using a
    background image in the content cell.
    http://members.westnet.com.au/zelky/surfschoolnew/index.html
    And if you look at the details page you can see what I am
    trying to describe. The content div not pushing down with the left
    and right content div’s contents means the background image
    is just a few pixels deep under the nav div.
    http://members.westnet.com.au/zelky/surfschoolnew/details.html
    And my pathetic CSS/stylesheet is here:
    http://members.westnet.com.au/zelky/surfschoolnew/mainstyle.css
    Thanks in advance and hopefully my mess isn’t’ to
    hard to look at. As I said I'm a bit lost so hopefully I'm not
    going to confuse anyone with my "home made" skills.

    When you 'float' elements on your page you effectively remove
    them from
    the normal flow of the document, therfore the 'content'
    <div> thinks
    nothing is inside it. You need to help it by 'clearing' the
    floats.
    There are various methods for clearing floats.
    Insert a 'clearing' <br> (shown below) into your pages
    code directly
    AFTER the closing 'right' container tag and BEFORE the
    closing 'content'
    container tag.
    </div><!-- end 'right' -->
    <br style="clear: both;" />
    </div><!-- end 'content' -->
    zelky wrote:
    > I should start this by saying I am very new to CSS
    layouts, and am self taught,
    > so I'm probably doing something very wrong. So far I've
    stuck to really simple
    > layouts and had no problems...but they were very simple
    layouts.
    >
    > With the site I'm doing at the moment I have placed
    other div's inside a
    > content div, so that I can have left and right hand
    content within the content
    > div. But the left and right div's are not pushing the
    content div down with
    > their content, and I'm not sure what else to try to get
    it to work.
    >
    > I've tried setting the height of the content div to auto
    or inherit but that
    > doesn't work.
    >
    > As you can see on the main page of the site I'm using a
    background image in
    > the content cell.
    >
    >
    http://members.westnet.com.au/zelky/surfschoolnew/index.html
    >
    > And if you look at the details page you can see what I
    am trying to describe.
    > The content div not pushing down with the left and right
    content div?s contents
    > means the background image is just a few pixels deep
    under the nav div.
    >
    >
    http://members.westnet.com.au/zelky/surfschoolnew/details.html
    >
    > And my pathetic CSS/stylesheet is here:
    >
    >
    http://members.westnet.com.au/zelky/surfschoolnew/mainstyle.css
    >
    > Thanks in advance and hopefully my mess isn?t? to hard
    to look at. As I said
    > I'm a bit lost so hopefully I'm not going to confuse
    anyone with my "home made"
    > skills.
    >
    >

  • Please check css layout

    Hi - posted this in the webforum but didn't show here for
    some reason so
    posting again...
    just doing my first all css layout and want to get the
    experts to
    check it out - tell me what could be better / anything
    glaringly
    wrong / etc etc
    Navigation is a work in progress - I'm trying to learn it
    from
    the project seven tutorial. Don't know why the drop down
    background is not
    going all the way down.
    Anyway, mainly wanting to get the page layout
    perfect first. Any comments appreciated. Still getting my
    head around
    floats. The less Ap the better - is that right? I've done
    lots of
    reading, now just trying to get it all working.
    http://www.hscatering.co.nz/2007/index3.html#
    Thanks in advance,
    Karen J

    "Karen J" <karen@don'tmailmeredsea.co.nz> wrote in
    message
    news:f6nklv$280$[email protected]..
    > thanks both for the kind words! And while i'm sure it's
    what I'd like to
    > hear I can't believe my first go is perfect...anyone who
    wants to be
    > unkind about my code and possible erratic abuse of divs
    please feel free
    > to jump in :-)
    Karen,
    Only because you asked:
    To find out if you've created a layout that is "robust"
    enough simply
    increase the text size in your browser to see if that doesn't
    break
    anything.
    If it doesn't, you have a winner, but if it does then you
    have to keep
    working on it :-(
    For example, this layout does not require you to use AP, you
    should try
    other things..
    As a side note, this type of markup is not good either:
    <span class="italics">delicious food?</span>
    I believe a simple <i>delicious food?</i> would
    be better here (if it is a
    purely visual effect you're after).
    Thierry
    Articles and Tutorials:
    http://www.TJKDesign.com/go/?0
    The perfect FAQ page:
    http://www.TJKDesign.com/go/?9
    CSS-P Templates:
    http://www.TJKDesign.com/go/?1
    CSS Tab Menu:
    http://www.TJKDesign.com/go/?3

  • Css layout problems - css and tables

    Hi guys,
    Well as some of you suggested months ago, I've been trying to
    learn to layout with CSS... It's actually getting a bit rewarding
    now as I start to figure a few things out but there's still plenty
    of questions!!!
    If anyone can take a look at what I'm working on at the
    moment and give me some help I'd REALLY REALLY appreciate it!!
    My main trouble (I think) is working with a drop-down menu
    system that I found on the web and I'm dying to use it because it's
    perfect for this design. It's layed out using a table so I'm trying
    to incorporate that...
    Click
    [url=http://home.iprimus.com.au/jediwdog/ltc/mockup2.jpg]here[/url]
    for a picture of what i'm trying to get this page to look like and
    [url=http://home.iprimus.com.au/jediwdog/ltc/example1.html]here[/url]
    to see how far I've got. You can download the stylesheet from
    [url=http://home.iprimus.com.au/jediwdog/ltc/example1.css]here[/url].
    Here's what I need to know:
    1. I'm trying to push the table down so it looks better lined
    up with the logo but when I tell it to be further from the top, it
    doesn't seem to move. Any ideas on why?
    2. As you can see, I've inserted some blank space into the
    middle of the menu so that the logo doesn't cover any of the menu
    items. I can't seem to get the same 1px black border on this
    section.
    I assume this is because the border on the other parts is a
    layer/div border? Will I have to somehow put a div in there so as
    to create the same border effect?
    3. I'd really like to keep the header and footer visible at
    all times, even if there's lots of content to scroll through. I
    found this:
    http://www.cssplay.co.uk/layouts/basics2.html#Top
    but when I tried to implement this on my page, it all went haywire!
    Is this going to be a possibility?
    4. I guess other than that, have I completely stuffed this
    up!? I don't think I have but it's worth asking I guess!
    THANKS IN ADVANCE! I'm really loving using css layout rather
    than tables - it's soooo much more versatile. I just need to get
    past some obstacles I think!
    Cheers
    Neil

    On Wed, 24 Jan 2007 22:17:20 +0000 (UTC), "Barb S."
    <[email protected]> wrote:
    >Ok, I made your suggested changes and have this:
    >
    > body {
    > font-family: Georgia, "Times New Roman", Times, serif;
    > text-align: center;
    > font-size: 1em;
    > font-style: normal;
    > text-decoration: none;
    > top: 15px;
    > background-image:
    url(/images/backgrounds/background1.gif);
    > padding-top: 15px;
    >>>> width: 70%;
    <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
    > }
    >
    > #body {
    > margin: 0 auto;
    > text-align:left;
    > width: 760px;
    > padding-right: 20px;
    > padding-bottom: 20px;
    > padding-left: 20px;
    > background-color: #FFFFCC;
    > padding-top: 20px;
    > font-family: Georgia, "Times New Roman", Times, serif;
    > font-size: 1em;
    > color: #003366;
    >
    > }
    >
    >
    http://www.japanesetemari.com
    >
    > The page is on the left size of the screen and the
    yellow box does not expand
    >out. Not exactly what I'd wanted. I like to take
    advantage of larger screens
    >and have the page expand out but not so far out so the
    lines of text are real
    >long.
    > Barb
    It's this in the body style that is limiting the width -
    change that
    to 100%
    >>>> width: 70%;
    <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
    > }
    ~Malcolm N....
    ~

  • New layout, CSS errors and Firefox problems

    Hi
    Could it be that some of the Firefox problems are caused by:
    1) The wrong mime type for the CSS files? Currently it appears to be:
    application/x-css
    shouldn't it be
    text/css
    2) Errors in the CSS files and inline CSS of.
    http://forums.oracle.com/forums/categoryHome.jspa?categoryID=84
    Can recommend using:
    http://jigsaw.w3.org/css-validator/
    ==== New layout ======
    The border error on the download button has been fixed, but the alt attribute of the upper right search icon is still "faq", shouldn't it be "Search"
    <img src="images/search-16x16.gif" width="16" height="16" border="0" alt="Search">
    Axel

    There are a number of fixes still to be made, but most of them will wait until our upgrade (still a few months out).

  • Beginners question : http 500 error when starting my first jsf-app

    i�ve just read a book about jsf, and now i�ve tried my first own jsf-app, but it seems that i have some kind of configuration problems with my tomcat, but have a look for yourself :
    after deploying my app out of eclipse with ant without any errors, i get the following screen in my firefox when i try to get to the first jsf page :
    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: Exception in JSP: /pages/start.jsp:13
    10: <link rel="stylesheet" type="text/css" href="basic.css">
    11: </head>
    12: <body>
    13: <f:view>
    14:      <h:form>
    15:           <h:commandButton action="#{naviHandler.startButton1}" value="Seite Eins" />
    16:           <h:commandButton action="#{naviHandler.startButton2}" value="Seite Zwei" />
    Stacktrace:
         org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:506)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:395)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    root cause
    java.lang.NullPointerException
         javax.faces.webapp.UIComponentTag.setupResponseWriter(UIComponentTag.java:929)
         javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:310)
         org.apache.myfaces.taglib.core.ViewTag.doStartTag(ViewTag.java:70)
         org.apache.jsp.pages.start_jsp._jspx_meth_f_view_0(start_jsp.java:93)
         org.apache.jsp.pages.start_jsp._jspService(start_jsp.java:68)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:334)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    note The full stack trace of the root cause is available in the Apache Tomcat/5.5.20 logs.
    it says that i have a problem in the line where the first jsf-tag appears : <f:fiew> , but i don�t get it what should be wrong with this?!
    i think theres a kind of config problem with my tomcat or something else, but i dont know where to look after it, the book i�ve read didn�t say much about those things, unfortunately..
    anyone out here who can help me?
    thanks in advance,
    stefan

    ok, i use :
    tomcat 5.5
    myfaces 1.1.4
    jre 1.5.0_09
    anything more you need? as i said in the topic, i�m a real beginner with this..
    and one more thing that i don�t understand :
    all example applications that come with the book that i�ve read are working perfectly with this configuration, but when i try to start my own app i get this error. quite strange for me..
    Message was edited by:
    elliptic

  • [svn:osmf:] 10580: Adding the MAST plugin and a MAST sample app.

    Revision: 10580
    Author:   [email protected]
    Date:     2009-09-24 17:02:28 -0700 (Thu, 24 Sep 2009)
    Log Message:
    Adding the MAST plugin and a MAST sample app.
    Modified Paths:
        osmf/trunk/apps/samples/plugins/AkamaiPluginSample/.actionScriptProperties
        osmf/trunk/plugins/akamai/AkamaiBasicStreamingPlugin/.actionScriptProperties
    Added Paths:
        osmf/trunk/apps/samples/plugins/MASTSample/
        osmf/trunk/apps/samples/plugins/MASTSample/.actionScriptProperties
        osmf/trunk/apps/samples/plugins/MASTSample/.project
        osmf/trunk/apps/samples/plugins/MASTSample/html-template/
        osmf/trunk/apps/samples/plugins/MASTSample/html-template/AC_OETags.js
        osmf/trunk/apps/samples/plugins/MASTSample/html-template/history/
        osmf/trunk/apps/samples/plugins/MASTSample/html-template/history/history.css
        osmf/trunk/apps/samples/plugins/MASTSample/html-template/history/history.js
        osmf/trunk/apps/samples/plugins/MASTSample/html-template/history/historyFrame.html
        osmf/trunk/apps/samples/plugins/MASTSample/html-template/index.template.html
        osmf/trunk/apps/samples/plugins/MASTSample/html-template/playerProductInstall.swf
        osmf/trunk/apps/samples/plugins/MASTSample/src/
        osmf/trunk/apps/samples/plugins/MASTSample/src/MASTSample.as
        osmf/trunk/plugins/MASTPlugin/
        osmf/trunk/plugins/MASTPlugin/.actionScriptProperties
        osmf/trunk/plugins/MASTPlugin/.project
        osmf/trunk/plugins/MASTPlugin/MASTPlugin.as
        osmf/trunk/plugins/MASTPlugin/html-template/
        osmf/trunk/plugins/MASTPlugin/html-template/AC_OETags.js
        osmf/trunk/plugins/MASTPlugin/html-template/history/
        osmf/trunk/plugins/MASTPlugin/html-template/history/history.css
        osmf/trunk/plugins/MASTPlugin/html-template/history/history.js
        osmf/trunk/plugins/MASTPlugin/html-template/history/historyFrame.html
        osmf/trunk/plugins/MASTPlugin/html-template/index.template.html
        osmf/trunk/plugins/MASTPlugin/html-template/playerProductInstall.swf
        osmf/trunk/plugins/MASTPlugin/org/
        osmf/trunk/plugins/MASTPlugin/org/openvideoplayer/
        osmf/trunk/plugins/MASTPlugin/org/openvideoplayer/mast/
        osmf/trunk/plugins/MASTPlugin/org/openvideoplayer/mast/MASTPluginInfo.as
        osmf/trunk/plugins/MASTPlugin/org/openvideoplayer/mast/adapter/
        osmf/trunk/plugins/MASTPlugin/org/openvideoplayer/mast/adapter/MASTAdapter.as
        osmf/trunk/plugins/MASTPlugin/org/openvideoplayer/mast/loader/
        osmf/trunk/plugins/MASTPlugin/org/openvideoplayer/mast/loader/MASTDocumentProcessedEvent. as
        osmf/trunk/plugins/MASTPlugin/org/openvideoplayer/mast/loader/MASTDocumentProcessor.as
        osmf/trunk/plugins/MASTPlugin/org/openvideoplayer/mast/loader/MASTLoadedContext.as
        osmf/trunk/plugins/MASTPlugin/org/openvideoplayer/mast/loader/MASTLoader.as
        osmf/trunk/plugins/MASTPlugin/org/openvideoplayer/mast/managers/
        osmf/trunk/plugins/MASTPlugin/org/openvideoplayer/mast/managers/MASTConditionManager.as
        osmf/trunk/plugins/MASTPlugin/org/openvideoplayer/mast/media/
        osmf/trunk/plugins/MASTPlugin/org/openvideoplayer/mast/media/MASTProxyElement.as
        osmf/trunk/plugins/MASTPlugin/org/openvideoplayer/mast/model/
        osmf/trunk/plugins/MASTPlugin/org/openvideoplayer/mast/model/MASTCondition.as
        osmf/trunk/plugins/MASTPlugin/org/openvideoplayer/mast/model/MASTDocument.as
        osmf/trunk/plugins/MASTPlugin/org/openvideoplayer/mast/model/MASTSource.as
        osmf/trunk/plugins/MASTPlugin/org/openvideoplayer/mast/model/MASTTarget.as
        osmf/trunk/plugins/MASTPlugin/org/openvideoplayer/mast/model/MASTTrigger.as
        osmf/trunk/plugins/MASTPlugin/org/openvideoplayer/mast/parser/
        osmf/trunk/plugins/MASTPlugin/org/openvideoplayer/mast/parser/MASTParser.as
        osmf/trunk/plugins/MASTPlugin/org/openvideoplayer/mast/traits/
        osmf/trunk/plugins/MASTPlugin/org/openvideoplayer/mast/traits/MASTPlayableTrait.as
        osmf/trunk/plugins/MASTPlugin/org/openvideoplayer/mast/types/
        osmf/trunk/plugins/MASTPlugin/org/openvideoplayer/mast/types/MASTConditionOperator.as
        osmf/trunk/plugins/MASTPlugin/org/openvideoplayer/mast/types/MASTConditionType.as

    Hi dia_ladji,
    I'm not sure if you've run across this article yet (pdf): http://osmf.org/downloads/pdf/Walkthrough_4_%20UI_Control_bar_and_Layout_Management.pdf
    It seems like conditionally controlling the functionality of your UI controls based on the playing media's metadata is what your after, correct? Here's an overview of what the article covers:
    In this walkthrough we will see how to use the advanced layout controls offered by the
    OSMF components and how dynamically control the layout of interactive elements outside of
    the OSMF components conditionally based on the size of the content displayed by OSMF.
    Specifically we will use the MediaContainer advanced layout capabilities with MetaData for
    composite media loading and display, and see how to integrate custom graphical user
    interface controls to make a skinnable control bar, and make it functional by linking the user
    interactions with the MediaPlayer API, and adjusting the position of the control bar
    dynamically based off of the media content being displayed via events.
    My apologies if you've already seen this, or if I've misunderstood your question, but hope it helps!
    -Scott

  • CSS Layout in DW CS 3

    I'm kinda wondering why the id's are preceded with a class if
    you open any of the premade CSS layouts in DW CS3.
    example:
    Two Columns, all widths in percent, with right sidebar header
    and footer.
    CSS:
    body {
    font: 100% Verdana, Arial, Helvetica, sans-serif;
    background: #666666;
    margin: 0; /* it's good practice to zero the margin and
    padding of the body element to account for differing browser
    defaults */
    padding: 0;
    text-align: center; /* this centers the container in IE 5*
    browsers. The text is then set to the left aligned default in the
    #container selector */
    color: #000000;
    .twoColLiqRtHdr #container {
    width: 80%; /* this will create a container 80% of the
    browser width */
    background: #FFFFFF;
    margin: 0 auto; /* the auto margins (in conjunction with a
    width) center the page */
    border: 1px solid #000000;
    text-align: left; /* this overrides the text-align: center
    on the body element. */
    .twoColLiqRtHdr #header {
    background: #DDDDDD;
    padding: 0 10px; /* this padding matches the left alignment
    of the elements in the divs that appear beneath it. If an image is
    used in the #header instead of text, you may want to remove the
    padding. */
    .twoColLiqRtHdr #header h1 {
    margin: 0; /* zeroing the margin of the last element in the
    #header div will avoid margin collapse - an unexplainable space
    between divs. If the div has a border around it, this is not
    necessary as that also avoids the margin collapse */
    padding: 10px 0; /* using padding instead of margin will
    allow you to keep the element away from the edges of the div */
    /* Tips for sidebar1:
    1. since we are working in percentages, it's best not to use
    padding on the sidebar. It will be added to the width for standards
    compliant browsers creating an unknown actual width.
    2. Space between the side of the div and the elements within
    it can be created by placing a left and right margin on those
    elements as seen in the ".twoColLiqRtHdr #sidebar1 p" rule.
    3. Since Explorer calculates widths after the parent element
    is rendered, you may occasionally run into unexplained bugs with
    percentage-based columns. If you need more predictable results, you
    may choose to change to pixel sized columns.
    .twoColLiqRtHdr #sidebar1 {
    float: right; /* since this element is floated, a width must
    be given */
    width: 24%;
    background: #EBEBEB; /* the background color will be
    displayed for the length of the content in the column, but no
    further */
    padding-top: 15px 0; /* top and bottom padding create visual
    space within this div */
    .twoColLiqRtHdr #sidebar1 h3, .twoColLiqRtHdr #sidebar1 p {
    margin-left: 10px; /* the left and right margin should be
    given to every element that will be placed in the side columns */
    margin-right: 10px;
    /* Tips for mainContent:
    1. the space between the mainContent and sidebar1 is created
    with the right margin on the mainContent div. No matter how much
    content the sidebar1 div contains, the column space will remain.
    You can remove this right margin if you want the #mainContent div's
    text to fill the #sidebar1 space when the content in #sidebar1
    ends.
    2. to avoid float drop at a supported minimum 800 x 600
    resolution, elements within the mainContent div should be 430px or
    smaller (this includes images).
    3. in the Internet Explorer Conditional Comment below, the
    zoom property is used to give the mainContent "hasLayout." This
    avoids several IE-specific bugs.
    .twoColLiqRtHdr #mainContent {
    margin: 0 26% 0 10px; /* the left margin should mirror the
    margin on the header and footer for proper alignment. */
    .twoColLiqRtHdr #footer {
    padding: 0 10px; /* this padding matches the left alignment
    of the elements in the divs that appear above it. */
    background:#DDDDDD;
    .twoColLiqRtHdr #footer p {
    margin: 0; /* zeroing the margins of the first element in
    the footer will avoid the possibility of margin collapse - a space
    between divs */
    padding: 10px 0; /* padding on this element will create
    space, just as the the margin would have, without the margin
    collapse issue */
    /* Miscellaneous classes for reuse */
    .fltrt { /* this class can be used to float an element right
    in your page. The floated element must precede the element it
    should be next to on the page. */
    float: right;
    margin-left: 8px;
    .fltlft { /* this class can be used to float an element left
    in your page. The floated element must precede the element it
    should be next to on the page. */
    float: left;
    margin-right: 8px;
    .clearfloat { /* this class should be placed on a div or
    break element and should be the final element before the close of a
    container that should fully contain a float */
    clear:both;
    height:0;
    font-size: 1px;
    line-height: 0px;
    take a look at this
    .twoColLiqRtHdr #container {
    width: 80%; /* this will create a container 80% of the
    browser width */
    background: #FFFFFF;
    margin: 0 auto; /* the auto margins (in conjunction with a
    width) center the page */
    border: 1px solid #000000;
    text-align: left; /* this overrides the text-align: center
    on the body element. */
    how do you interpret
    .twoColLiqRtHdr #container?
    in the code, .twoColLiqRtHdr is a class for the <body>
    tag only.
    So i guess I just need some enlightenment on how this CSS
    works, maybe I'm used to just defining the ID of <div> tags
    (ex: #wrapper {}).
    Is this use for inline styles only?
    what's the advantage of using this type of styles?
    I hope someone can take a look at this, thank you in advance!
    :)

    Yeah.... I can't really see a use for class here at all. But
    that's me
    (and now you!)....
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Thierry | www.TJKDesign.com" <[email protected]>
    wrote in message
    news:f0lh1l$ng$[email protected]..
    > Murray *ACE* wrote:
    >> I use this often when I have a single template with
    variable layout
    >> (i.e., section-specific layouts). You can use either
    >> server-scripting or template parameters to change
    the ID attribute on
    >> the body tag, which will trigger an entirely
    different set of CSS
    >> selector assignments.
    >
    > FWIW, I believe it makes more sense to use an ID
    attribute - as you do -
    > rather than a class on "BODY" as this element is unique
    through the
    > document.
    >
    > --
    > Thierry
    > Articles and Tutorials:
    http://www.TJKDesign.com/go/?0
    > The perfect FAQ page:
    http://www.TJKDesign.com/go/?9
    > CSS-P Templates:
    http://www.TJKDesign.com/go/?1
    > CSS Tab Menu:
    http://www.TJKDesign.com/go/?3
    >
    >

  • Looking for a two-column CSS layout

    I am looking for a two-column CSS layout that is centered
    with blank space
    on the sides, so the layout does not expand across the entire
    screen, but
    instead uses a portion of it (such as 75%). The left column
    would be for
    navigation and I haven't decided if I want it to be liquid or
    fixed, but the
    right column for content would be liquid. There would also be
    a heading div
    and navigation div across the top and a footer across the
    bottom.
    While looking for sample sites I keep finding ones that use
    three columns,
    and I'm worried that if I remove the third column that the
    layout will break
    at some point, even if I don't see it in my test browsers.
    I'm also
    discovering that some of the sample pages out there don't
    respond well when
    I resize the browser window. The columns don't have a minimum
    width or they
    stack on top of each other at some point.
    There are so many different techniques to use when designing
    a layout with
    CSS, some better than others, that I thought maybe some
    people here may
    already know what's tried and true and what should be
    avoided. Are any
    layouts robust enough to allow a third column to be added at
    a future date
    if needed? I also like the idea of putting the content div
    first in the
    code, to improve search engine indexing and also to aid those
    who may be
    using a screen reader, but if that feature makes the coding
    much more
    complex then I could see why I might avoid it for now.

    Sorry Nancy, I didn't see your post for some reason. At least
    we agree (o:
    Jo
    "josie1one" <[email protected]> wrote in message
    news:g4tv32$57f$[email protected]..
    >I have DW8 and am very happy with this:
    >
    http://projectseven.com/products/templates/pagepacks/cssmagic/index.htm
    >
    >
    > --
    > Jo
    >
    >
    > "Matt" <[email protected]> wrote in message
    > news:g4tg96$isq$[email protected]..
    >>I am looking for a two-column CSS layout that is
    centered with blank space
    >>on the sides, so the layout does not expand across
    the entire screen, but
    >>instead uses a portion of it (such as 75%). The left
    column would be for
    >>navigation and I haven't decided if I want it to be
    liquid or fixed, but
    >>the right column for content would be liquid. There
    would also be a
    >>heading div and navigation div across the top and a
    footer across the
    >>bottom.
    >>
    >> While looking for sample sites I keep finding ones
    that use three
    >> columns, and I'm worried that if I remove the third
    column that the
    >> layout will break at some point, even if I don't see
    it in my test
    >> browsers. I'm also discovering that some of the
    sample pages out there
    >> don't respond well when I resize the browser window.
    The columns don't
    >> have a minimum width or they stack on top of each
    other at some point.
    >>
    >> There are so many different techniques to use when
    designing a layout
    >> with CSS, some better than others, that I thought
    maybe some people here
    >> may already know what's tried and true and what
    should be avoided. Are
    >> any layouts robust enough to allow a third column to
    be added at a future
    >> date if needed? I also like the idea of putting the
    content div first in
    >> the code, to improve search engine indexing and also
    to aid those who may
    >> be using a screen reader, but if that feature makes
    the coding much more
    >> complex then I could see why I might avoid it for
    now.
    >>
    >
    >

  • Design view of CSS layout is innacurate

    Hello all -
    I'm beginning to redraft my company's hompage using a full
    CSS layout instead of our current nested table layout. Since I need
    to ensure that other staff members can edit pages freely - and I'm
    the only person comfortable doing straight code - it's important
    that the design view is as accurate as possible.
    When editing in Dreamweaver 8, my three column layout (a left
    table of contents, a center content column, and an additional
    content right column) breaks so that the table of contents
    dissapears. Some people have spoken with have suggested that my
    problem might be the negative margins I'm using to position the
    floated columns that form the meat of the page.
    You can view the page here:
    http://www.southernenvironment.org/test/home_redraft.html
    The CSS is here:
    http://www.southernenvironment.org/test/style_redraft.css
    In addition, the header navbar also appears strangely. In
    Design View, two word titles (ie. "Our Programs") break on to two
    separate lines, instead of staying in one line as they do in
    browsers I've tested.
    The frustrating thing about this is that my design seems to
    work in most browsers - but without a somewhat accurate
    representation in Dreamweaver, I won't be able to sell the idea of
    a standards-based revamp to other staff here.
    Any ideas?
    Matt

    Your CSS is not tight enough to get accurate columns. You
    shouldn't try to
    define the columns with the body tag. For a purely CSS site,
    you really find
    out why the code is called 'cascading' styles. They cascade
    all right. We've
    just finished wrestling with a similar re-design with CSS and
    the order of
    how tags and files come into play is very important.
    We have defined the body tag with background color, 0 margins
    and font
    family, color and size only. Header/footer and columns are
    defined by ID.
    The three "content" columns are within a page container,
    header and footer
    outside the page container. How these elements are placed is
    important, as
    they cascade.
    We use 3 linked main css files, 1) Page Layout (3 or 4
    different options) 2)
    Page presentation (all text styles) 3) Page menu styles (only
    menu styles).
    They are in that order, as the only body tag is in Page
    Layout.
    If a page has a watermarked background we import the code
    just for the
    watermark.
    This is not true for the home page, but all other pages in
    the site.
    http://www.nic.bc.ca/index.asp
    I hope this helps.
    Marianne
    "homestar79" <[email protected]> wrote in
    message
    news:[email protected]...
    > Hello all -
    >
    > I'm beginning to redraft my company's hompage using a
    full CSS layout
    > instead
    > of our current nested table layout. Since I need to
    ensure that other
    > staff
    > members can edit pages freely - and I'm the only person
    comfortable doing
    > straight code - it's important that the design view is
    as accurate as
    > possible.
    >
    > When editing in Dreamweaver 8, my three column layout (a
    left table of
    > contents, a center content column, and an additional
    content right column)
    > breaks so that the table of contents dissapears. Some
    people have spoken
    > with
    > have suggested that my problem might be the negative
    margins I'm using to
    > position the floated columns that form the meat of the
    page.
    >
    > You can view the page here:
    >
    >
    http://www.southernenvironment.org/test/home_redraft.html
    >
    > The CSS is here:
    >
    >
    http://www.southernenvironment.org/test/style_redraft.css
    >
    > In addition, the header navbar also appears strangely.
    In Design View,
    > two
    > word titles (ie. "Our Programs") break on to two
    separate lines, instead
    > of
    > staying in one line as they do in browsers I've tested.
    >
    > The frustrating thing about this is that my design seems
    to work in most
    > browsers - but without a somewhat accurate
    representation in Dreamweaver,
    > I
    > won't be able to sell the idea of a standards-based
    revamp to other staff
    > here.
    >
    > Any ideas?
    >
    > Matt
    >

  • Pie Charts causing Design mode to give warning and not preview the app

    I am using the final release. I have pie charts in my app. I
    also have column charts. Both are fed data the same way. Both work
    as expected when i build the app, and there are zero errors in the
    app. however, i was experiencing an issue in flexbuilder where in
    design mode, a vague warning was issued and the preview could not
    be displayed (blank except for very gernal 'outlines' of the layout
    and controls)
    I narrowed the problem down to the pie charts. Is anybody
    experiencing this problem? The application worked as expected, and
    previewed as expected in Design mode when previewd/built in Beta
    3.

    Hi masavran,
    For this issue, it's related to the render environment (browser/application). On Reporting Services side, we don't have any properties to change the resolution for chart to make it smoothly. We suggest you post this thread on Visual Studio forum
    http://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=visualstudiogeneral&filter=alltypes&sort=lastpostdesc
    Or the forum of corresponding browser.
    Best Regards,
    Simon Hou

  • CSS Layout Nightmare!

    OK, I've recently decided to convert from table based layout to div layouts using CSS. I'm pretty proud of the outcome and found it a nice approach to designing. HOWEVER, when i click to edit pages in contribute, it strips out all of the css outline visual aids (like you see in wysiwig editors like Dreamweaver). This is going to be a major problem for my client and wysiwig style editing. Does anybody know how i can get contribute to display this in edit mode and also the best option for my client to select divs in order to copy and paste content.  This would be pretty easy in table based layout as contribute lets you select a table and copy and paste it. Ideal way for my client to copy and paste additional news items  same format. Any help would be gratefully appreciated. Thanks in advance.

    Not.
    Walt
    "SamDesign.be" <[email protected]> wrote in
    message
    news:ets71o$ark$[email protected]..
    > Hallo Brandon,
    > Make de "<div id="divContent">" smaller
    > Sheers
    > www.SamDesign.be
    >
    >
    > "Brandon" <[email protected]>
    a écrit dans le message
    > de news: ets5tg$9fo$[email protected]..
    >> Working on CSS Layout for the first time (always
    have used Tables) . . .
    >> can you look at the page below (in initial stages)
    and tell me how I can
    >> move everything UP? It's driving me crazy. The
    picture in the center
    >> needs to come up, the main nav buttons need to move
    up, and the "boxes"
    >> in the left column all need to move up under each
    other.
    >>
    >>
    http://www.presentationsdirect.com/2007/
    >>
    >> --
    >> Brandon
    >>
    >>
    >
    >

Maybe you are looking for