Maintaining state of changed style properties

I display a page with a number of sections with style="display: none" so they initially are not displayed.
The form functions like a questionaire so depending on the choices users make a section might get displayed by changing display= none to display="" in javascript..
After pressing the submit button, the page sections fall back
to the original style setting display=none.
Can somebody point me in the right direction on how to maintain the style state of these page sections?

The way I'd approach your problem is by setting boolean properties in the session bean, and binding the "rendered" property of each object to the bean property. (Reply in the topic if you need more detailed instructions on how to do this)
In the action() or processValueChange() method you can then put the logic to decide what needs to be displayed, and toggle appropriately the session bean properties (e.g. getSessionBean1().setRenderedProperty1(true)).
Hth,
Luca

Similar Messages

  • How to change style properties of text links

    Hello to everyone.
    There is a very irritating thing going on with the style properties of a text link.
    I want my text that acts as a link to other pages, to retain the properties of a normal text. iWeb keeps underlining the text and changing the colour of it.
    Is it possible to alter that without fiddling with the css file? I can change that if have to but that means that I'll have to manually edit the file in more than 50 pages...
    Any help would be greatly appreciated!
    Dimitris

    Dmitris,
    There is no way to do this in iWeb directly. As you have already alluded to, the only way to do this would be to edit the CSS files for your pages. You could do this by hand, but judging by your message it doesn't sound like you would have too much fun doing this.
    I would suggest that you look into a program like MassReplaceIt...
    http://www.apple.com/downloads/macosx/productivity_tools/massreplaceit.html
    This is basically a glorified find and replace type of tool. You can tell it to find a whole block of parameters in the CSS file and change it to whatever you like. And the benefit for you is that you can save these actions so that you can redo them whenever you publish the pages. MRI is smart enough to change only what needs changing. And searching out all the CSS files in all subdirectories is a bonus for you, Dmitris. Just point it at your site folder and let the program change all 50 CSS files in one click!
    Good luck!

  • Maintain language while changing style

    I'm norwegian, and I usually type things in norwegian when using pages. I'm a big fan of the styles drawer because it lets me get the perfect style for titles, subtitles, bullet points, and more with just one click, the only problem is that it seems like the language is included in the styles drawer options.
    for example if I start typing using the body style, I change my language to norwegian using the text inspector, and then It's norwegian, then I want some bullet points, so I click on the bullet points text in the styles drawer, and now the text I'm typing is no longer norwegian, It got reset to English. This is very annoying as I really like using the styles drawer, but I now need to go to the inspector, click on text, click on more, and change the language back to norwegian. (I'm using cocoaAspell, since there is not Norwegian spellcheck included on mac os X .
    anyone know a way to get pages to remember the language, or is iWork just not meant for people who don't speak english as their first language?

    As there is no Norwegian version of Pages, you are working with the English version.
    You may use the features available in the product to change the behavior of styles.
    Apply one of the predefined styles to a paragraph
    Let the paragraph selected
    Inspector > More
    set the language to "Norwegian" (from CocoaSpell)
    Click on the red down triangle near the used style
    Select the entry "Redefine Style from Selection"
    Do that to every styles.
    Save as a custom template.
    Bingo.
    For those working with a localized version, the setting is already done.
    You may also use the brute force.
    run this script:
    --\[SCRIPT]
    set dossier to (path to applications folder as text) & "iWork '08:Pages.app:Contents:Resources:Templates:Blank:"
    set vieuxNom to "Blank.template"
    set monIndex to "index-iso.xml.gz"
    set bakup to "backup_" & monIndex
    tell application "Finder"
    if not (exists item (dossier & vieuxNom & ":" & bakup)) then
    set dup to duplicate item (dossier & vieuxNom & ":" & monIndex)
    set name of dup to bakup
    end if
    set name of ((dossier & vieuxNom) as alias) to "dossier"
    open folder (dossier & "dossier")
    set name of folder (dossier & "dossier") to vieuxNom
    end tell
    --[/SCRIPT]
    double click Index-iso.xml.gz to get Index-iso.xml
    trash Index-iso.xml.gz (you have a backup named backup_index-iso.xml.gz)
    open Index-iso.xml (with TextWrangler for instance)
    Search for
    </sl:decimalTab>
    replace by
    </sl:decimalTab><sl:language><sl:string sfa:string="no"/></sl:language>
    save the Index-iso.xml file
    After that, the Blank WP template will default to Norwegian.
    Yvan KOENIG (from FRANCE mercredi 22 octobre 2008 18:34:11)

  • Administrator cannot change printer properties on "Advanced" tab from "Devices and Printers" on Windows Server 2012 R2

    Hello, dear Colleagues.
    User with administrators rights cannot change printer properties on "Advanced" tab from "Devices and Printers" on Windows Server 2012 R2. 
    If to launch "Devices and Printers" on server, all printer properties on "Advanced" tab are inactive (see screen below). 
    But I can change it manually with "Print Management". Features become active.
    The main purpose - to uncheck "Enable advanced printing features"  with powershell
    scripts.
    $erroractionpreference = "continue"
    $colPrinters = Get-Wmiobject -Class win32_printer -computername print_server -Filter "Name like 'printer1' or Name like 'printer2' or Name like 'printer3' or Name like 'printer4' or Name like 'printer5' or Name like 'printer6'" # get printers on server and filter with names
    ForEach ($objPrinter in $colPrinters) { # get printer details from WMI
    If ($objPrinter.RawOnly -ne "True") { # check that Advanced printing fetaures is turned on
    Write-host $objPrinter.Name
    Write-Host $objPrinter.RawOnly
    $objPrinter.RawOnly = "True" # Untick and update the object in WMI
    $objPrinter.Put()
    It works on Windows 7 workstation, but does not on print server Windows Server 2012 R2 with error
    Exception calling "Put" with "0" argument(s): "Generic failure "
    At \\print_server\c$\DisableAdvancedPrintingFeatures.ps1:8 char:17
    + $objPrinter.Put()
    + ~~~~~~~~~~~~~~~~~
    + CategoryInfo : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : DotNetMethodException
    Can you help me with that? Look like somethings with rights.
    Thank you.

    Hello, Alan
    Morris.
    Thanks for your reply.
    I've tried to runs PS Script both locally and remotely, previously running Powershell ISE as Administrator.
    I've noticed interesting thing - if to
    check "Enable advanced printing features"
    manually thru Print Management snap-in, script works fine. But, time to time after some manipulations on print server, this advanced feature returns to enabled state automatically by system, I think. In this case PS Script does not work. Next, if to disable
    feature manually again (thru Print Management snap-in),
    and enable manually again, PS Script will work. Very strange situation.
    Thanks.

  • How to change shape properties after having created one?

    Photoshop CC 2014 -- latest update as of October 06, 2014
    Windows 7
    How can I change a shapes properties after having created one.
    I have created a simple ellipse.
    When I drew the ellipse with the tool, I had the option for the fill color/style and stroke, etc.
    After I have created said ellipse, I wish to change its properties.
    I can use the Paint Bucket, gradient tool, etc for the fill, but is there way to get back to the original set of tools with which I created the ellipse in the first place?
    If I use Edit > Stroke... it adds a new stroke around the existing shape.
    If I use Edit > Fill... the entire layer is filled.
    There must surely be a way to reenter the tool set to edit an existing shape. No?
    Thanks,

    Hi everyone,
    Thanks for the helpful tips, advice, etc.
    I didn't explain myself very well--I apologize.
    However, with your tips I figured it out:
    When I create a rectangle or ellipse, I can later click on its layer and the Properties window appears with options to change their "Live Shape Properties."
    However, not so with the Polygon and Shape tools. With them, the Properties window shows only the Masks, but the Toolbar still shows some basic properties I can change.
    I was stymied by the above differences while working only on a Shape.
    I've attached two JPEG screenshots.
    I didn't need to change the actual shape, just the fill/stroke, etc.
    Later, I may wish to change the actual shape, but that appears to be done by simply creating something new.
    Thanks much!!

  • Using javascript to change styles and such

    I want ot use javascript to change the "display" style of a
    div tag
    whatDiv.style.display = "block"
    This works fine if the div tag has an inline style defined:
    <div style="display:none"> ...</div>
    But if the tag has a class attached to it and the display
    :none is attached
    to that class, then it doesn't work
    <style...>
    div.hidden{ display:none; }
    </style>
    <div class="hidden"> ... </div>
    ... how can I remedy this?

    On Thu, 15 Jun 2006 17:20:54 +0000 (UTC), "jeremyluby"
    <[email protected]> wrote:
    >What gary is saying is that you should not use a class,
    but an ID only to
    >define the region.
    Nope. That's not what I'm saying. Regardless of whether
    you're using a
    class or not, if you get an object reference using an ID, you
    can change
    the properties. Consider this example:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
    http://www.w3.org/TR/html4/strict.dtd">
    <html lang="en">
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    charset=iso-8859-1">
    <title>Demo</title>
    <style type="text/css">
    .demo {
    background-color: #000099;
    border: 1px solid #000;
    color: #ffffff;
    text-align: center;
    height: 60px;
    width: 500px;
    </style>
    <script type="text/javascript">
    var bg="#009";
    function changeColor(x){
    o=document.getElementById(x);
    bg=(bg=="#009"?"#900":"#009");
    o.style.backgroundColor=bg;
    </script>
    </head>
    <body>
    <div id="test" class="demo">
    <p>Lorem ipsum dolor sit amet, consectetuer adipiscing
    elit.</p>
    </div>
    <p><a href="javascript:;"
    onClick="changeColor('test')">Change
    Color</a></p>
    </body>
    </html>
    Gary

  • Multi-State Object Change Speed

    How can I adjust the speed and style how the multi-state object changes its states? I find the fade to be too long. Any ways that that can be shortened?

    Select the MSO and use the options in the Folio Overlays panel.

  • My ipod works in itunes but does not appear in "my computer" after I changed the properties

    My ipod works in itunes but does not appear in "my computer" after I changed the properties.
    First off, I'm using Windows XP (and Mac SnowLeopard) Here's how it started. For some reason my ipod started showing up as a camera when I plugged it in. It works fine in itunes, though. But when I tried to access it from "my computer" it only
    showed me the one and only picture I had on my ipod. I deleted that picture hoping it would no longer show up as a camera. When it still did I right-clicked on it in "my computer" and selected "properties". Under "autoplay" I
    chose for it to 'not show up' or 'take no action' or some such deal when I plugged it in. I thought that would stop it from popping up the window that asks whether i want to 'open camera wizard' or 'open camera scanning' or 'open folder to view files' or 'take
    no action' , etc. But now it won't show up in "my computer" at all. I also have a Mac with SnowLeopard. When I plugged my ipod into it my ipod doesn't show up in "finder" either! So basically my problem is not a mechanical one with hardware
    or software; yht ipod still works fine in itunes. I just need to undo the change I made. I've searched all around my preferences, utilities, options, etc. It shows up on my "Device Manager" but not on "Disk Management".
    Any help would be very much appreciated. Thanks.

    Hi,
    To show up in Windows Explorer, you can try placing the iPod into
    disk mode.
    Moreover, i recommend you to
    restore ipod to factory settings.
    If this issue still persists, locate to device manager, uninstall and reinstall USB Mass Storage Device driver.
    Here is an article you can refer to below:
    http://support.apple.com/kb/TS1369
    To get more help, you can also redirect to apple support forum:
    http://www.apple.com/support/ipod/
    Thanks!
    Andy Altmann
    TechNet Community Support

  • How to change the properties of a directory using java code

    Hai All,
    I need to change the properties of directory( websharing).
    Can i do this using java code.
    Regards,
    Charan

    I need to change the properties of
    directory( websharing).
    an i do this using java code.Depends on whether the server has a Java API to do it. Most likely it hasn't.

  • When creating a custom SearchPlugin, is it possible to add more code such as uppercase conversion of the SearchText and IF statements that change the URL depending on what is typed?

    When creating a custom SearchPlugin, is it possible to add more code such as uppercase conversion of the searchTerms and IF statements that change the URL depending on the searchTerms? Every time I try to add something firefox doesn't want to add it as a search plugin. I need to create a more powerful search tool for personal use.

    I've found some external software applications that will do it, so that leads me to believe its not possible within ID CC.

  • "Click To Change All Properties" Not Working In Dreamweaver CC For Padding/Margins

    Every time I try to use the "Click To Change All Properties" option in Dreamweaver CC (the chain link icon in the middle of the Magin/Padding box), it never seems to work. Nor does it use the CSS shorthand, it lists the top, bottom, left and right margins/padding separately no matter if I have the chain link icon connected or broken.  If I have it set to link all four sides, then enter a value into the top, nothing happens to the other sides. It's not until I enter a value in to the bottom that it auto fills in the other two sides. Anyone else having this issue?

    Thank you for your help. I think I figured out what I might have been doing wrong when setting the margins. I would first clickt the chain icon to join everything, then enter in a value in the Top box, but I wouldn't see the other boxes update with that same value, so I would immediately click the Bottom value box. Instead, if I just click on the inner white box, just outside of the perimeter of the chain icon, it updates all of the remaining values.
    The shorthand setting worked as well for the Padding/Margins. Thank you!

  • How to change the properties of individulal elements in an array?

    Hi all,
    I have an array (size is 25) of string and I want to disable and grayout half of them. But how do I do it? How do I change the properties of individual elements in an array? I have tried to use some of the examples given in the discussion forums, but it didint work for the task mentioned above. Anybody would be able to help me with a suitable example that can be specifically used for disable or enable the individual array  elements?
    Dev

    Telemaque wrote:
    The user will see the first half of the string elements filled-in and the lower half grayed-out (to be filled in later).  Make a test VI, play around.
    ... except that all elements "greyed out" with this method contain the default string for the array element (blank by default, but changeable). There is no way to have meaningful, unique text in the greyed out elements.
    I would suggest to use a listbox as control/indicator. Here elements can easily be disabled programmatically.
    LabVIEW Champion . Do more with less code and in less time .

  • How to use Prompts in the Filter created in Change Report Properties

    Hi all,
    I have created one Datetime prompt in Change report properties dialogue box.
    Now how can I use this same one in the filter ??
    Since I didn't get Surface and Prompt option for the Date field in the filter.
    Any help is appreciated.
    Thanks

    Actually problem is with Datatype..It was timestamp but it should be Datetime

  • Change Style in task description

    Hi All,
         I am using a decision step in my workflow.  I want to change the default font style associated with the task.  The default is Form: System and the default paragraph is '*'.
         I want to use custom style for formatting the task description.  The Menu option Change style in Change editor is not allowing me to select the zstyle i have created. 
        I will appreciate if anyone can provide me a solution.
    Thanks & Regards,
    Manikandan Ramamoorthy.
    Note:  All supportive answers will be rewarded

    Hi Barry,
    I also checked, and we are not having any options to choose the particular style.
    Hope its a limitation we have in workflow.
    Because when i checked the same option SO10, we have an option choose.
    So workaround will be like this:
    Create your desired text in SO10 with your own style and include that standard text in your task description.
    Hope it solves your issue.
    Thanks and Regards,
    Swaminathan

  • Can't change Movie Properties

    I just bought and downloaded 5 Pixar short subject movies.
    I have a 3 year old grandson that I've set up a Mac for.
    I've put his favorite movies and trailers on the desktop with large icons and slow double click. I set each movie to open in full screen and close when finished because he can't click on the red close button.
    The Pixar movies downloaded into iTunes, so it would be difficult for him to find them to play.
    I opened the mp4 in Quicktime and saved as self-contained movie, thinking this would do it. I put the movie on the desktop and opened it to get movie properties. I could not change them, so I can't set to go full screen or to close the movie when done. ???
    Is there no way to do this? "Protected" is one thing... but not being able to change the properties seems ridiculous.
    RM

    Better to use "reference" instead of "self contained" to save on HD space.
    Then unplug the mouse and teach the 3 year old the keyboard.
    The "Tab" key will highlight a file and a new tap on it will move the focus to a new item.
    Command key and the letter o key will launch QuickTime Player.
    Command key and the letter f will send the file to Full Screen (requires Pro).
    The Spacebar will start and stop playback. Up/down arrow keys will adjust volume.
    Command key and the letter w key will close the window. Escape key will send it out of full screen but leave the window open.
    Command key and the Tab key will allow switching between the Finder and QuickTime (focus changes each time the Tab key is clicked) and releasing the Command key will make that app the "front".

Maybe you are looking for

  • Cannot send email from Powershell on Mailbox Role

    Hi, I am trying to send an email from Powershell on Mailbox role of Exchange server. I have installed Symantec Mail Security on Mailbox Role. When I try to send email using Powershell, I got the following error. PS C:\a> Send-MailMessage -to [email p

  • Need to upgrade?? Please help

    I just bought the nano as a gift for someone. I am trying to put some music on there before I give it. I have itunes version4 on my comp. When I plug the nano in it does not show up in itunes, and I just get a do not disconnect message on it. Do I ne

  • Catalog to Customer

    Dear All, Is there a standard functionality in Oracle, which can generate the catalog of the items we have in the operating unit for the customer? A typical catalog will contain the item, description, price etc. Regards Merlin Rajesh

  • Work flows - SWW_SRV_MAIL_SEND

    Hi , Please help me with the below query. Could you please explain me on how to use the Remote Function Module SWW_SRV_MAIL_SEND. This is the Function module used in the 'Send Mail step ' of the work flow. Task -- TS90000115 In particular i want to k

  • Configure ASM for oracle Grid installation

    Hi, I do not know how to configure ASM for oracle grid infrastructure. As i tried to install oracle grid infrastructure says [INS - 30507] Empty ASM disk group. I have to configure Asm before installing 11g R2. Please let me know what i have to do an