Setting the Top and Left properties during runtime, depending on...

hi guys,
it's me again with the same question, but same scenario...
but probably with a bit clearer detail now...
actually, what i wanna do is that although i have set the top and left properties at design time, as soon as the page opens i wanna be able to do the following:
if ( userlevel == 1 ) {
textfield1.setStyle("top: 100...");
} else if ( userlevel == 2 ) {
textfield1.setStyle("top: 500...");
thanks for your time =)

The style properties CAN be set in the prerender call. Unfortunately, the requirement is that the component (text field in your case) has to have an unset property in the Design->properties window. (Or in the actual jsp code, which should be identical).
My main issue with this is SJC2's handling of this in the visual window. If i want to have a lot of components that are designed before run-time but placed during run-time, they all are a mess on the screen. I wish there was another property (in the properties window) that would be a checkbox, like "Use static layout". I, probably like others, am using a layout panel (grid) that has several other components in there. I want to be able to move this set of components at run-time, but to do so, I need to unset the layout panel's style. This causes my inside components to shift to the top left of my page, making a mess in the design window.
If any SJC developers are out there, please help! It would be great to somehow mitigate the static/dynamic properties/display issue. (Like, i want to have buttons with dynamic names (for localization), but basically, i have to have a bunch of blank buttons/text on the screen for all my pages because of the static requirement. At least, MyEclipse and others will put the id value if the text/label value is blank.
Chris

Similar Messages

  • Upon Loading of page, Setting the Top and Left properties of a TextField

    Hello again,
    I would just like to ask for suggestions on how to successfully set the top and left properties of a Textfield as soon as the page is loaded.
    Thru Giri's help, I was able to do this with the push of a button. What I would need to do right now is to set it as soon as the page is loaded.
    Thanks!

    Hi Jim,
    It is not clear what you are trying to do here. If you want to set the top and left properties of a component when the page is loaded all you have to do is set it at design time itself. If the properties need to be set the second time the page loads then the code can be used in the event handler which submits the page.
    It would help if you could explain the use case for setting the properties of a component when the page is loaded.
    Cheers
    Giri

  • Cut off the top and left sides of iFrame?

    I have a page I'd like to place as an iFrame in another page.
    Is it possible to move the framed page up and to the left so
    that the
    frame cuts off the top and left sides of the framed page?

    Jim,
    Thanks a TON!  That worked well.  It took me a bit longer to key it because the keyer didn't key out all of the color to black as well with the compound clip but I was able to make it happen.  Video is up and I appreciate the help!

  • Gap in the top and left edges

    Ive noticed that unpositioned DIV'S do not press up against the far left and top of the browser window, they have a margin of about 5px
    however divs inside other divs do not have this margin in regards to their pearent div
    does anyone know what causes this (does the body element have a hidden padding or something?

    Browsers add their own margins and padding to the body of the page.
    body {margin:0; padding:0;}
    Or you can do what I do to zero out browser defaults on everything with the universal selector (*).
    * {margin:0; padding:0; line-height: 100%; font-size: 100%}
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb

  • How do you unfreeze a frozen top and left command in the printing position command?

    The top and left option of the printing position command is frozen at 0.  The error message states that a value between 0.000 and 0.000 is required.  How do I change this?  This happens will unedited and edited pictures.  I have just installed a xerox printer perhaps there is a link between this problem and the printer.

    I didn't even suggest that because I would have thought that would be the first thing anyone would have checked for!   If you flip the on/off switch on the bottom of the mouse do you have a blinking green light?  Whether you do or don't, if you are unsure of the batteries then replace them.

  • Flash page: need to 'pin' top and left perhaps too...see

    Dear Experts,
    Thank for reading this.
    http://maharishihoney.safire.com/
    in the above page it is behaving just like wanted, EXCEPT want the top and left side (perhaps) to be 'pinned', meaning when resizing the browser window, the top does not disappear. I like that it resizes, and scales, yet, keeps the whole viewport filled. Don't like that it can disappear at the top if the browser window isnt just right.
    What do you think?
    Any ideas? Appreciate so much your thots.
    Warmly with thanks,
    Hope

    Ok, thanks again for reading...
    additional note: Am using cs3 and so far using as2
    To achieve as seen in above link: in dreamweaver set the w and h to 100% , plus setting the margin to 0 for height, width, top, bottom, plus set ' scale' to 'noscale.
    Then have also tried (not in link above) setting the publish settings to 100% for w and h, the flash does not disappear at the top, but then there is alot of white all the way around at top and bottom even with above mentioned DW settings.
    when not setting publish settings to 100% then we get what you see above in the link: it scales very nicely with no white and fills the screen the whole time, BUT it does disappear at the top.
    Thanks again for all your attention....
    Warmly, Hope
    p.s.
    2 samples of resizing in flash:
    http://www.fidmdigitalarts.com/#/home
    http://www.isurfbecause.com

  • Gap in DW CS3 page (top and left)

    i am still fairly new to dreamweaver but have learned a great
    amount, but when i build a layout in layout mode it wont let my put
    any tables, pictures, or generally anything else directly into the
    top left corner. So when i preview the page with F12 there is a 5px
    gap on the top and left of the page
    Heres an image
    http://i247.photobucket.com/albums/gg126/bigmack83/problem_1.jpg
    any idea how to fix this?

    Use CSS to control all of your page element margins and
    padding. In this
    case, what you are describing is the default margin on the
    <body> tags. Try
    this CSS -
    body { margin:0; padding:0; }
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "bigmack83" <[email protected]> wrote in
    message
    news:fqj003$22m$[email protected]..
    >i am still fairly new to dreamweaver but have learned a
    great amount, but
    >when
    > i build a layout in layout mode it wont let my put any
    tables, pictures,
    > or
    > generally anything else directly into the top left
    corner. So when i
    > preview
    > the page with F12 there is a 5px gap on the top and left
    of the page
    >
    > Heres an image
    >
    http://i247.photobucket.com/albums/gg126/bigmack83/problem_1.jpg
    >
    > any idea how to fix this?
    >

  • Dreamweaver page with flash - look at this - want top and left static

    Dear Experts,
    Thank for reading this.
    http://maharishihoney.safire.com/
    in the above page it is behaving just like wanted, EXCEPT want the top and left side to be 'pinned', meaning when resizing the browser window, the top does not disappear. I like that it resizes, and scales yet, keeps the whole viewport filled. Don't like that it can disappear at the top if the browser window isnt just right.
    What do you think?
    Any idea? Appreciate so much your thots.
    Warmly with thanks,
    Hope

    have any other ideas how to accomplish above without flash?
    Certainly - jQuery is a good alternative.  To see an example, look here -
    http://www.americanwatercolorsociety.org
    ok, this is very good...
    found this jquery plugin, for anyone reading this:
    http://jquery.malsup.com/cycle/lite/
    that does fade in and out something, even on click...
    The rotation is jQuery.
    But just because you use Flash for a cosmetic element (even an image rotation) doesn't mean that's the only thing that can be on the page, you know?
    Yes, that is a good point..(-:
    Thanks again for all your kind input.....
    Warmly, Hope

  • JScrollPane, I need scrol bars on top and left

    Hi,
    Is there an easy way to move the scrollbars in a scroll pane so that
    they are on the top and left. Every thing I can find shows them on the right and bottom and nothing explans how to get them left and top.
    I tried the setComponentOrientation but that does not seem to do
    anything.
    Thanks in advance,
    Pat

    The JScrollPane was designed to have scroll bar on right and bottom.
    You could add JScrollbar components on top and left of JScrollPane.
    But you cannot add other no scroll bar component to right and bottom!
    There are many ways to have scroll bar on top and left.
    One way is, not use JScrollPane, write your own JPanel, and
    has BorderLayout then put scroll bar on left and top.
    The other way is create your own JScrollPane, change the default
    layout manager use by JScrollPane, the ScrollPaneLayout.
    Create your own Layout manager to have the behaviour you like.
    Anyway, there are not esay way to just swap the scroll bar.

  • Flash CC 2014 html publishing banners - why you removed the default top and left margin? How to put it back in?

    Hello.
    When im making bazilions of flash banners for my clients they want to see the html preview cause not all clients have standalone flash player installed to open swf in original scale. It wasnt problem in CS4 (and all other versions i have used so far), but in CC 2014 published html previews have no margins on top and on the left of the embedded swf - that makes previewing them troublesome when someone want to judge if border is subtle enough etc (banners are never snatched closely to the border of the screen in their natural habitat ). Manually changing all published html previews to add these margins is misunderstunding, especially when Adobe charge so much money for new versions that supposed to be better, and require less effort to produce stuff in them... Perfect solution would be to be able to publish banners center on the html preview file, but i can live with just these oldschool top and left margins with swf in top-left corner.
    Is there a way to add to the default html preview file the margins back? I need them a lot. And im getting tired of Adobe making my life harder with each expensive version of their software im forced to buy due to no backward compatibility of fla files i have to work on with agencies.
    Thanks in advance for any help.

    I think the default behavior is to show the flash movie with top-left alignment with no border within the HTML page, even in previous versions.
    You could change that by selecting a different template for publishing,.
    Open Publish Settings dialog,
    Click on HTML Wrapper,
    Click on Template drop-down and try out with different templates.

  • When i turn on my Ipad air In the cornors of the Black Screen It has white stuff near the top bottom  left and Right   When it's all it turned on it's fine But when I go to a black Background It  does the Same is this normal?

    When i turn on my Ipad air In the corners of the Black Screen It has white stuff near the top bottom  left and Right   When it's all it turned on it's fine But when I go to a black Background It  does the Same is this normal
    It
    I
    O

    when I turn on my ipad and the black screen comes on I have a slight white light running along the bottom meaning the whole screen is not black. Is ths normal.
    better details Sorry
    N

  • Just brought a new iPod touch and when I set it up (twice now, after resenting to factory settings) there are grey squares on all screens at the top and the apps over these squares won't open. Any suggestions?

    Just brought a new iPod touch and when I set it up (twice now, after resenting to factory settings) there are grey squares on all screens at the top and the apps over these squares won't open. Any suggestions?

    I can't envision what yo are seeing.
    If you restored to factory settings/new iPod via iTunes (Not via Settings>General>Reset>Erase all Content and Setting) and still have the problem that indicates a hardware problem.
    Make an appointment at the Genius Bar of an Apple store..
    Apple Retail Store - Genius Bar

  • Get rid of the white space at the top and bottom of the report when Printing as PDF document

    Hello All,
    I have a wider tablix report which is 29 inches wide. I have given the paper size as custom and width as 29 and height as 11 in report properties.I have deployed it and saved it as PDF document. When I print preview the report I am using the paper size as
    tabloid (17 by 11) and selected the orientation as Landscape. I am getting the full report without any stripping but I am getting some extra space at the top and bottom when I print the report. Can anyone help me how to get rid of this space? . I checked the
    margins for the report and it was 0in. Please help.
    Thank You

    Hi There
    In Reporting Services (SSRS 2008), there are white spaces preserved in the report body by default. When the white space extends the body size beyond the width of the report, blank pages will be generated. To avoid the issue, you can set the “ConsumeContainerWhiteSpace”
    property of the report to “True”.
    Please try to adjust your margins (top + side) and hopefully this problem will get resolved
    Body Width <= Page Width - (Left Margin + Right Margin)
    Horizontal usable area:
    X = Page.Width - (Left Margin + Right Margin + Column Spacing)
    Vertical usable area:
    Y = Page.Height - (Top Margin + Bottom Margin + Header Height + Footer Height)
    Body Width <= Page Width - (Left Margin + Right Margin)
    Horizontal usable area:
    X = Page.Width - (Left Margin + Right Margin + Column Spacing)
    Vertical usable area:
    Y = Page.Height - (Top Margin + Bottom Margin + Header Height + Footer Height)
    If you have any questions please ask.
    Many Thanks
    Syed Qazafi Anjum
    Please click "Mark as Answer" if this resolves your problem or "Vote as Helpful" if you find it helpful.

  • Since installing LTR 5.4, which I've now upgraded to 5.6, I've encountered repeated slowness and malfunctions in operations, especially when using the Compare View function and the Tab key to open and close the right and left side panels.  Such problems n

    Since installing LTR 5.4, which I've now upgraded to 5.6, I've encountered repeated slowness and malfunctions in operations, especially when using the Compare View function and the Tab key to open and close the right and left side panels.  Such problems never arose during two years of using LTR-4 and nothing else has changed on my computer.  I have a pretty simple system with only a few plug-ins, which are usually not in operation.  I have 12GB of RAM in my Windows 7 PC.  I could illustrate these problems with screen shots if you would tell me how to submit screen shots.  Otherwise I will try to describe the problems in words.
    The problem is clearly cumulative, growing worse as usage time passes.  Compare View feature gradually slows down and eventually seems to choke as my work session proceeds. If I Exit LTR and re-enter and start all over, things will work normally for maybe 30 minutes, but then the Compare View feature begins to become very slow to respond.   In a recent example with my screen full of thumbnails in Library mode I highlighted two images to compare. LTR started to open the Compare View screen by first having the top row of thumbnails disappear to be replaced by the "SELECT" and "CANDIDATE" words in their spaces  (but no images), but Compare View never succeeded in gaining control of the screen. After some seconds the top row of thumbnails reasserted its position and the Compare View windows disappeared. But LTR kept trying to bring them back. Again the top row of thumbnails would go away, Select and candidate would reappear, try again, and give up. This went on for at least 2-3 minutes before I tried to choose File and Exit, but even that did not initially want to respond. It doesn't like to accept other commands when it's trying to open Compare View. Finally it allowed me to exit.
    To experiment I created a new catalog of 1100 images.  After 30-40 minutes, the Compare View function began to operate very slowly. With left and right side panels visible and two thumbnails highlighted, hitting Compare View can take half a minute before the two mid-size  images open in their respective SELECT and CANDIDATE windows. When the side panels are open and two images are in the Select/Candidate spaces, hitting the Tab button to close the side panels produces a very delayed response--25-30 seconds to close them, a few more seconds to enlarge the two images to full size. To reverse the process (i.e., to recall the two side panels), hitting Tab would make the two sides of the screen go black for up to a minute, with no words visible. Eventually the info fields in the panels would open up.
    I also created a new user account and imported a folder of 160 images. After half an hour Compare View began mis-placing data.  (I have a screen shot to show this.)  CANDIDATE appears on the left side of SELECT, whereas it should be on the right. The accompanying camera exposure data appears almost entirely to the left of the mid-screen dividing line. Although the Candidate and Select headings were transposed, the image exposure data was not, but the data for the image on the right was almost entirely to the left of the line dividing the screen in two.
    Gurus in The Lightroom Forum have examined Task Manager data showing Processes running and Performance indicators and they see nothing wrong.  I could also send screen shots of this data.
    At this point, the only way I can process my images is to work 30-40 minutes and then shut down everything, exit, and re-start LTR.  This is not normal.  I hope you can find the cause, and then the solution.  If you would like to see my screen shots, tell me how to submit them.
    Ollie
    [email protected]

    Since installing LTR 5.4, which I've now upgraded to 5.6, I've encountered repeated slowness and malfunctions in operations, especially when using the Compare View function and the Tab key to open and close the right and left side panels.  Such problems never arose during two years of using LTR-4 and nothing else has changed on my computer.  I have a pretty simple system with only a few plug-ins, which are usually not in operation.  I have 12GB of RAM in my Windows 7 PC.  I could illustrate these problems with screen shots if you would tell me how to submit screen shots.  Otherwise I will try to describe the problems in words.
    The problem is clearly cumulative, growing worse as usage time passes.  Compare View feature gradually slows down and eventually seems to choke as my work session proceeds. If I Exit LTR and re-enter and start all over, things will work normally for maybe 30 minutes, but then the Compare View feature begins to become very slow to respond.   In a recent example with my screen full of thumbnails in Library mode I highlighted two images to compare. LTR started to open the Compare View screen by first having the top row of thumbnails disappear to be replaced by the "SELECT" and "CANDIDATE" words in their spaces  (but no images), but Compare View never succeeded in gaining control of the screen. After some seconds the top row of thumbnails reasserted its position and the Compare View windows disappeared. But LTR kept trying to bring them back. Again the top row of thumbnails would go away, Select and candidate would reappear, try again, and give up. This went on for at least 2-3 minutes before I tried to choose File and Exit, but even that did not initially want to respond. It doesn't like to accept other commands when it's trying to open Compare View. Finally it allowed me to exit.
    To experiment I created a new catalog of 1100 images.  After 30-40 minutes, the Compare View function began to operate very slowly. With left and right side panels visible and two thumbnails highlighted, hitting Compare View can take half a minute before the two mid-size  images open in their respective SELECT and CANDIDATE windows. When the side panels are open and two images are in the Select/Candidate spaces, hitting the Tab button to close the side panels produces a very delayed response--25-30 seconds to close them, a few more seconds to enlarge the two images to full size. To reverse the process (i.e., to recall the two side panels), hitting Tab would make the two sides of the screen go black for up to a minute, with no words visible. Eventually the info fields in the panels would open up.
    I also created a new user account and imported a folder of 160 images. After half an hour Compare View began mis-placing data.  (I have a screen shot to show this.)  CANDIDATE appears on the left side of SELECT, whereas it should be on the right. The accompanying camera exposure data appears almost entirely to the left of the mid-screen dividing line. Although the Candidate and Select headings were transposed, the image exposure data was not, but the data for the image on the right was almost entirely to the left of the line dividing the screen in two.
    Gurus in The Lightroom Forum have examined Task Manager data showing Processes running and Performance indicators and they see nothing wrong.  I could also send screen shots of this data.
    At this point, the only way I can process my images is to work 30-40 minutes and then shut down everything, exit, and re-start LTR.  This is not normal.  I hope you can find the cause, and then the solution.  If you would like to see my screen shots, tell me how to submit them.
    Ollie
    [email protected]

  • How to set the size and position of JFrame

    hey all,
    i have a frame and i devide the frame into three panels, i want to make the top panel the lergest and make it square. and the rest two panels in small and in the bottom of the frame.
    could you please help me to set the size and position of the jpanel
    Thanks

    If u want the bottom 2 panels to be on the same level, u can try setting ur content pane to use the BorderLayout and the adding the 3 panels to it with BorderLayout.NORTH(for the TOP panel), BorderLayout.EAST(RIGHT panel) and BorderLayout.WEST(for LEFT panel).
    Don't know if this is what ur looking for, maybe u could describe more on ur layout with a sample image or something?

Maybe you are looking for

  • Help please!  This will be a user error im sure!

    Basically I have just downloaded my photos taken on the iphone4 this week (daughters birthday), however some pics are up the wrong way and need editing etc..but each time my wife edits them on the laptop an error message comes up saying 'This photo c

  • OO ALV Cell Merge Problem when editable fields

    Hi there! I'm using OO ALV ( CL_GUI_ALV_GRID ) and experiencing a strange problem. I'm interested in the cells merging functionality of ALV, when i sort data for a specific field. It works fine but only if i do not set any field as editable ( lvc_s_f

  • Problem with hearing sounds from macbook air, through earphones.

    This happened just recently, my mac won't "send" sounds or music to my iphone earplugs. What to do?

  • Connecting Samsung Blu Ray BD-D6700 to wireless network

    I got the Samsung BD-D6700 Blu Ray for Xmas and have not been able to set it up wirelessly, it doesn't see my network. Tried contacting Samsung support but they seem to think it is my Fios Router. Has anybody else had this issue and if so how did you

  • Operation wise fuel consumption details.

    Dears, How can we get the operation wise raw material consumption details. For example in an order I am having 5 operations. Each operation requires some fuel consumption. Fuel is my BOM component. I need to issue the quantity of fuel for each operat