Putting an ap div inside a container?
Hello,
I am rather new to dreamweaver and am stuck with an issue. It is dealing with putting an ap div inside a container.
I am not planning on becoming a web developer, I am a VFX artist, and have some of my work up on the web for employment.
Since I don't know code and other complicated things with Dreamweaver, I decided to do an "easy" way of designing my page.
I basically made a giant container, and then dragged out ap divs inside it where ever I wanted.
I came back another day and added more ap divs, only this time - they didn't stay with the container. I am guessing I'm missing a step
or did something a little different this time, and am trying to find out what.
Here is my website for reference:
www.mikelarned.com
As you can see on the project page for example, when you click and drag the corner of the web window left and right, the top title moves with the page.
And the videos/ other text under, stays static.
I am hoping there is a way to resolve this issue without code. Maybe theres a way with the options on the right hand side of Dreamweaver to drag that ap div into the container?
If not, hopefully there is an easy way to copy and paste the code.
Thanks for you time and help.
-Mike
elementsk8er506 wrote:
I am a VFX artist, and have some of my work up on the web for employment.Since I don't know code and other complicated things with Dreamweaver, I decided to do an "easy" way of designing my page.
Hmm. I wonder what your reaction would be if I came along and asked a similar question about VFX? I know nothing about VFX, but want to do it the easy way without learning anything... Each technology requires certain skills and at least some basic knowledge. Unfortunately, a lot of people unfamiliar with web design think absolute positioning is the easy way. It's actually quite an advanced technique that has many people tearing out their hair until they learn how it really works.
Basically, the problem with AP (absolutely positioned) divs is that they are removed from the normal flow of a web page. You might think you're putting them in a container, but you're not. Absolutely positioned elements float in front of the web page and have a stacking order defined by their z-index property. The top and left coordinates are absolutely positioned with regard to the element's containing block. The containing block is the element's most immediate ancestor that is also positioned using either fixed, relative, or absolute positioning. If no such ancestor exists, the containing block is the page itself.
If you understand HTML and CSS, this is a relatively easy concept. If you don't, it's as difficult as VFX would be for me.
To put this in as simple terms as possible, your container must also use CSS positioning. A common way to do this is to set the CSS rule for the container to position: relative without defining coordinates for the top and left. All AP divs nested inside then take their coordinates from the container, which you can center by giving it a width and setting the left and right margins to auto.
Similar Messages
-
Lining up divs inside a main div: Mine not working
Hello, I need help with my CSS design, I am trying to line many dives inside a container DIV, interestingly only the first div is well
positioned, the rest lie outside the container all together. I can't figure out what I am doing wrong. Find attached my CSS definitions and also the related code:
CSS:
/* id the for main container of index page elements */
#indexmain{
background-color:#FFFFFF;
font-weight: bold;
color:#00FF00;
width: 100%;
height: 600px;
border-width: 1px;
border-style: solid;
border-color: red;
/* id for welcome label */
#welcome {
background-color:#FFFFFF;
color:#00FF00;
padding-top: 5px;
padding-right: 5px;
padding-left:5px;
padding-bottom:5px;
font-family: Verdana, Helvetica, Arial, sans-serif;
font-size:24px;
font-weight: bold;
width: 140px;
height: 20px;
border-width: 1px;
border-style: solid;
border-color: red;
top: 160px;
left: 120px;
/* id for main container of index elements */
#welcomemain{
background-color:#FFFFFF;
color:#00FF00;
font-family: Verdana, Helvetica, Arial, sans-serif;
font-size:24px;
font-weight: bold;
width: 60%;
height: 400px;
border-width: 1px;
border-style: solid;
border-color: red;
top: 192px;
left: 120px;
/* id for description of consumer component */
#consumerdescription{
background-color:#FFFFFF;
color:#00FF00;
font-family: Verdana, Helvetica, Arial, sans-serif;
font-size:24px;
font-weight: bold;
width: 50%;
height: 200px;
border-width: 1px;
border-style: solid;
border-right-color:#FF0000;
top: 0;
left:0;
margin-left: auto ;
margin-right: auto ;
text-align:center;
/* id for label of consumer link */
#consumerlink{
background-color:#FFFFFF;
color:#00FF00;
font-family: Verdana, Helvetica, Arial, sans-serif;
font-size:24px;
font-weight: bold;
width: 50%;
height: 200px;
border-width: 1px;
border-style: solid;
border-left-color:#FF0000;
background-color:#CCFF66;
top: 0;
right: 0;
margin-left: auto ;
margin-right: auto ;
text-align:center;
/* id for label of business link */
#businesslink{
background-color:#FFFFFF;
color:#00FF00;
font-family: Verdana, Helvetica, Arial, sans-serif;
font-size:24px;
font-weight: bold;
width: 50%;
height: 200px;
border-width: 1px;
border-style: solid;
border-right-color:#FF0000;
background-color:#CCFF66;
bottom: 0;
left: 0;
margin-left: auto ;
margin-right: auto ;
text-align:center;
/* id for description of business component */
#businessdescription{
background-color:#FFFFFF;
color:#00FF00;
font-family: Verdana, Helvetica, Arial, sans-serif;
font-size:24px;
font-weight: bold;
width: 50%;
height: 200px;
border-width: 1px;
border-style: solid;
border-left-color:#FF0000;
bottom: 0;
right: 0;
margin-left: auto ;
margin-right: auto ;
text-align:center;
/* id to control positioning of content*/
.centerlinkcontent{
position:absolute;
top:80px;
left: 110px;
.centerdescriptioncontent {
position:absolute;
top:50px;
left:20px;
.titlelabelconsumer{
width:100%;
height:35px;
background-image:url(../images/Isl_bkgrd.jpg);
background-repeat:repeat-x;
text-align:center;
.titlelabelbusiness{
width:100%;
height:35px;
background-image:url(../images/Isl_bkgrd.jpg);
background-repeat:repeat-x;
text-align:center;
top:400px;
.searchresultscontainer{
width:812px;;
height:62px;
border-style:solid;
border-color:#FF0000;}
.searchresultsimg{
width:100px;
height:60px;
background-color:#CCCCCC;
left:0px;
border-style:solid;
border-color:#9966CC;
border-width:1px;
/*.searchresultsdetail{
position:relative;
width:700px;
height:61px;
text-align:center;
background-color:#CCCCCC;
float:right;
left:101px;
margin:0;
padding:0;
.productdescription{
position:absolute;
width:300px;
height:36px;
text-align:left;
left:101px;
margin:0;
padding-bottom:10px;
padding-top:12px;
border-style:solid;
border-color:#FFCC00;
border-width:1px;
.productmodelno{
position:absolute;
width:100px;
height:36px;
text-align:left;
left:401px;
margin:0;
padding-bottom:10px;
padding-top:12px;
border-style:solid;
border-color:#996600;
border-width:1px;
.productmodelyear{
position:absolute;
width:100px;
height:36px;
text-align:left;
left:501px;
margin:0;
padding-bottom:10px;
padding-top:12px;
border-style:solid;
border-color:#00FF00;
border-width:1px;
.productprice{
position:absolute;
width:100px;
height:36px;
text-align:left;
left:601px;
margin:0;
padding-bottom:10px;
padding-top:12px;
border-style:solid;
border-color:#000033;
border-width:1px;
.productuserid{
position:absolute;
width:100px;
height:36px;
text-align:left;
left:701px;
margin:0;
padding-bottom:10px;
padding-top:12px;
border-style:solid;
border-color:#990000;
border-width:1px;
Related Code:
<!---Create a container for the search results --->
<div class="searchresultscontainer">
<div class="searchresultsimg"><!--- creating a resized version of uploaded image of product --->
<cfimage source="#ExpandPath('images/consumer/#Cnsmr_ProductIMAGE#')#" action="resize" width="100" height="60" name="resizedImg" format= "jpg">
<cfimage source="#resizedImg#" action="writeToBrowser"><!---img src="images/consumer/#Cnsmr_ProductIMAGE#"--->
</div>
<div class="productdescription"><font size="+2">#Cnsmr_ProductDESCRIPTION# </font> <font size="+2"></div>
<div class="productmodelno"><a href="showProductDetail.cfm?Cnsmr_ProductCountID=#URLEncodedFormat(TRIM(Cnsmr_ProductCountID))#">#Cnsmr_ProductMODELNo# </font> </a></div>
<div class="productmodelyear"><font size="+2">#Cnsmr_ProductMODELYEAR# </font> </div>
<div class="productprice"><font size="+2">#Cnsmr_ProductPRICE#</font> </div>
<div class="productuserid"><font color="#000066#" size="+2">#User_id#</font></div>
</div>
<!--- end of searchresultscontainer --->
</cfoutput>In addition to PZ's reply, you have way too much going on in your stylesheet ;-) it needs to be streamlined dramatically.
If you don't undersand the how and whys of using AP (absolutely positioned) divs, it's better not to use them - here's why:
Why do my AP Divs (layers) move when I resize the browser window?
You may want to run through a few CSS tutorials before going any further, so as to get your head around how CSS layouts work and how to use a stylesheet effectively :-)
http://www.macromedia.com/devnet/dreamweaver/articles/css_concepts.html http://www.adobe.com/devnet/dreamweaver/articles/bk_dwcs4_mastering_css/bk_dwcs4 _mastering_css_04.pdf
LIST OF CSS TUTORIALS:
http://www.adobe.com/devnet/dreamweaver/css.html -
Positioning off after put div inside a div
Hi,
Hope you're well.
As you'll see in the first
screenshot, I created a
spry menu bar that was
positioned 120 px from
the left and 250 px from
the top. It's position was
perfect.
I ultimately want to center
the website I am building on
the browser page so I am
putting all the elements inside
an outer div named "container"
which I have centered on the page.
However, as you'll see in the
2nd screenshot, when I made
that change, the spry menu bar
got larger, was moved to the
upper left of the container, and
the items are no longer
properly positioned within the
menu bar (they should be in
the upper left)
How can I fix this?
Thanks!Don't use position:absolute. You don't need it and it will cause you more pain than gain in primary layouts.
To jump start your projects, use the pre-built CSS layouts that come with DW.
File > New > blank > HTML > Layout > 2-col, fixed, left sidebar, header, footer.
Insert your SpryMenu into the left sidebar.
<div class="sidebar1">
<!--your spry menu HTML here...-->
</div>
Insert images and text into the content region.
<div class="content">
<!--your content goes here... -->
</div>
Nancy O. -
AP a Div inside a centered DIV
I've never got this understood. I have a Container DIV, set
to auto center. I'm using one of the presets that DW8 gives you. I
need put a small DIV in the upper right corner, that stays in the
exact spot even when browsers are widened...let me re-phrase. I
want the little DIV to be Absolutely Positioned, but using the XY
coordinates of my main, centered container.
I made a DIV, called it Absolute, moved it where I want it,
and of course it stays put when I widen the browser window. It is
using the whole browser window for the XY coordinates. That's fine,
and I understand it's supposed to work that way.
But, I also thought that if you put a DIV inside another, it
will use the XY of that div, not the whole page.
How do I do this?This may help you understand positioning a bit -
There are 4 different types of positioning:
Absolute
Relative
Fixed
Static
Here is a brief explanation of each kind of positioning (with
regard to
placement of elements on the page only)....
Position:absolute (or A/P elements)
This does several things -
1. It 'removes' the element from the flow of the code on
the page so that
it can no longer influence the size or position of any other
page element
(except for those contained within it, of course).
2. The absolutely positioned element takes its position from
the position of
its closest PARENT *positioned* element - in the
absence of any explicitly
positioned parent, this will default to the <body> tag,
which is always
positioned
at 0,0 in the browser viewport.
This means that it doesn't matter where in the HTML code the
layer's code
appears (between <body> and </body>), its
location on the screen will not
change (this assumes that you have not positioned the A/P
element within
a table or another A/P element, of course).
Furthermore, the space in
which
this element would have appeared were it not positioned
is not preserved
on the screen. In other words, absolutely positioned elements
don't take
up any space on the page. In fact, they FLOAT over the page.
Position:relative (or R/P elements)
In contrast to absolute positioning, a relatively positioned
page element is
*not* removed from the flow of the code on the page, so
it will use the
spot
where it would have appeared based on its position in
the code as its
zero point reference. If you then supply top, right,
bottom, or left
positions
to the style for this element, those values will be
used as offsets from
its
zero point.
This means that it DOES matter where in the code the
relatively positioned
element appears (, as it will be positioned in that location
(factoring in
the offsets) on the screen (this is true for any placement in
the code).
Furthermore, the space where this element would have
appeared is
preserved in the display, and can therefore affect the
placement of
succeeding elements. This means that the taller a relatively
positioned element is, the more space it forces on the page.
Position:static
As with relative position, static positions also "go with
the flow". An
element with a static position cannot have values for
offsets (top, right,
left, bottom) or if it has them, they will be ignored. Unless
explicitly
positioned, all div elements default to static positioning.
Position:fixed
A page element with this style will not scroll as the page
content scrolls.
Support for this in elements other than page backgrounds is
quirky
There are several other things you need to know:
1. ANY page element can be positioned - paragraphs, tables,
images, lists,
etc.
2. The <div> tag is a BLOCK level tag. This means that
if it is not
positioned or explicitly styled otherwise, a) it will always
begin on a new
line on the screen, and b) it will always force content to a
new line below
it, and c) it will always take up the entire width of its
container (i.e.,
width:100%).
3. The placement of A/P elements *can* affect the BEHAVIOR of
other
elements
on the page. For example, a 'layer' placed over a hyperlink
will mask that
hyperlink.
You can see a good example of the essential difference
between absolute and
relative positioning here -
http://www.great-web-sights.com/g_layersdemo.asp
You can see a good demonstration of why using layers for a
page layout tool
is dangerous here -
http://www.great-web-sights.com/g_layer-overlap.asp
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
==================
"synterx" <[email protected]> wrote in
message
news:[email protected]...
> I've never got this understood. I have a Container DIV,
set to auto
> center. I'm
> using one of the presets that DW8 gives you. I need put
a small DIV in the
> upper right corner, that stays in the exact spot even
when browsers are
> widened...let me re-phrase. I want the little DIV to be
Absolutely
> Positioned,
> but using the XY coordinates of my main, centered
container.
>
> I made a DIV, called it Absolute, moved it where I want
it, and of course
> it
> stays put when I widen the browser window. It is using
the whole browser
> window
> for the XY coordinates. That's fine, and I understand
it's supposed to
> work
> that way.
>
> But, I also thought that if you put a DIV inside
another, it will use the
> XY
> of that div, not the whole page.
>
> How do I do this?
> -
Centering an image inside its container
Hi,
I have been placing several images with text on a web page on which I have been using CSS3 to float the images either left or right so that my text wraps around the image.
Now, at the bottom of this same page, I want to add a wider image that I do not want to wrap text around. I just want the image to centered on my page (or in its container I guess I should say, which is a div).
If anyone could tell me the best way to do this, I would greatly appreciate it.
Thanks in advance,
PaulThank you Ken,
I created the .clearing rule as you suggested and added the <hr class="clearing" /> after the end of the paragraph that wraps around my second (and final) floated image.
After the <hr class="clearing" />, I have my image reference for the image I want to be centered inside its containing DIV as follows....
<hr class="clearing" />
<p><img src="Images/pk_38_41_43.jpg" alt="Membrane Casting Line" width="612" height="367" class="center"/></p>
...the class="center" is a class I created where I set the left and right margins to "auto", hoping that this would do the job. This didn't work. My image appears all the way to the left. If you can give me a hint what I should do to get it centered, I'd really appreciate it.
Thanks again for your help,
Paul -
Hi. I need to use ExecutorService inside my application.
Application is targeted to intensive usage and I want to take advantage of Java SE 5 concurrency.
How can I use Executors inside Web container? Can I create ExecutorService and put it to ServletContext?
How can I use Executors inside EJB container? Can I put it to JNDI?
Is there any restrictions or special conditions to do this?Frank,
Thanks, wasn't sure what extra information to provide but I'm running 11.1.1.3.0 of JDeveloper. If I create a two level tree data contol that works fine. When I add the third level I get the error yet I can navigate through the data control using the business components browser and the structure seems fine. I've tried two separate two level data controls; the first with the top two levels of the tree, the second with the bottom two levels of the tree. Both work fine but when I combine them into a single data control, then I get the error.
One of the problems I have is not knowing what the error means, so I have no idea what to start looking at to determine what to do to try to remedy it.
George -
Creating Input Field inside Docking Container bar
Hello.
Does anyone know how I can put an input field inside a docking container object ? Just like it appears in SE80.
I have created a docking container bar, and in one of those bars i want to put a text field.
Anyone please ?
Thank you
EDIT----
I found how to do this with cl_gui_container_bar_2 and with dynamic documents.
Edited by: Ricardo Monteiro on Aug 25, 2010 1:30 PMHi,
Check Program SAPSIMPLE_TREE_CONTEXT_MEN_DEM and check event node_context_menu_request
Hope this helps you.
Thanks,
Prashanth
Edited by: Prashanth KR on Jun 2, 2009 7:50 AM -
IllegalStateException: ADFv: Not inside a container
When accessing our UI application from multiple client sessions(browsers), we often get this exception while collapsing/expanding tree nodes. The issue happens only when we add new children to the node. Any idea what this exception is?
[2009-10-07T04:25:12.312-07:00] [AdminServer] [WARNING] [ADF_FACES-00009] [oracle.adf.view.rich.component.fragment.UIXRegion] [tid: [ACTIVE].ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: weblogic] [ecid: 0000IGiji9r37E7TrIaASY1An6lJ00006Z,0] [APP: oam_admin] [arg: /lhp/lhp.jsff] [arg: /oracle/am/security/taskflows/navigationtree/leftpane/Lhp.jsff] [arg: /oracle/am/security/taskflows/navigationtree/leftpane/Lhp.jsff] Error processing viewId: /lhp/lhp.jsff URI: /oracle/am/security/taskflows/navigationtree/leftpane/Lhp.jsff actual-URI: /oracle/am/security/taskflows/navigationtree/leftpane/Lhp.jsff.[[
java.lang.IllegalStateException: ADFv: Not inside a container.
at oracle.adfinternal.view.faces.model.binding.FacesCtrlHierBinding$FacesModel.exitContainer(FacesCtrlHierBinding.java:672)
at oracle.adfinternal.view.faces.model.FlattenedTreeCollectionModel.getRowIndex(FlattenedTreeCollectionModel.java:109)
owIndex(FlattenedTreeCollectionModel.java:109)
at oracle.adfinternal.view.faces.renderkit.rich.TreeRendererUtils$1.getRowIndex(TreeRendererUtils.java:552)
at oracle.adfinternal.view.faces.renderkit.rich.TreeRenderer._handleRowDelete(TreeRenderer.java:1171)
at oracle.adfinternal.view.faces.renderkit.rich.TreeRenderer._handleDataFetch(TreeRenderer.java:989)
at oracle.adfinternal.view.faces.renderkit.rich.TreeRenderer.encodeAll(TreeRenderer.java:231)
at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1369)
at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:335)
at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:751)
at org.apache.myfaces.trinidad.component.UIXCollection.encodeEnd(UIXCollection.java:527)
at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:415)Hello! Take a look at this thread
Recursive tree issue
This may help -
Hello I bought my iPhone from liverpools apple store, I put a giffgaff cArd inside and it locked my phone into 02 network. I contacted o2 as you suggested and they told me that they didn't lock my iPhone. Please find me some help
I guess you mean unlock the device. To lock it would mean to be possible to se it only with one carrier.
So no, unlocking the device must be done by the original carrier, you should contact them to do that. -
Getting Not inside a container with tree (key attributes defined)
Hello,
I'm building an ADF tree with a recursive entity based query:SELECT ProjectIndicators.ID_COMPONENT AS ID_COMPONENT_KEY,
ProjectIndicators.ID_PROJECT AS ID_PROJECT_KEY,
ProjectIndicators.THE_VALUE,
, res.ID_COMPONENT
, res.ID_PROJECT
, res.ID_MAIN_COMPONENT
from PROJECT_INDICATORS_BA ProjectIndicators
SELECT Project.Id_Project
, Component.Id_Component
, Component.Id_MAIN_COMPONENT
FROM ...
WHERE ... and Project.Id_Project = :Bind_IdProject
) res
WHERE ProjectIndicators.Id_Project (+) = res.ID_PROJECT
AND ProjectIndicators.Id_Component (+) = res.ID_COMPONENTNote there's a *:Bind_IdProject* peremeter inside a subquery.
Queried data is:ID_COMPONENT_KEY ID_PROJECT_KEY THE_VALUE ID_COMPONENT ID_PROJECT ID_MAIN_COMPONENT
1064 1003
1065 1003 1064
1353 1003 1066
1646 1003 1646 1003 1065
1586 1003 1066
1587 1003 1066
1605 1003 11 1605 1003 1065
1625 1003 1625 1003 1065
1845 1003 1065
1846 1003 1845 ID_COMPONENT_KEY and ID_PROJECT_KEY are primary keys of PROJECT_INDICATORS_BA. THE_VALUE is a filed I need to edit (in case a row is null, a new row would be created on runtime).
ID_COMPONENT and ID_MAIN_COMPONENT is a recursive relationship. ID_PROJECT is a foreign key.
The recursive view link is
Source Destination
IdComponent IdMainComponent
IdProject IdProject
Query
(:Bind_IdComponent = ID_MAIN_COMPONENT) AND (:Bind_IdProject = ID_PROJECT)So I build a treetable on my page and the first (root) level looks fine. I can disclose a row and see the second level.
But when I try to disclose any second level row I get java.lang.IllegalStateException: ADFv: not inside a container.
Funny is that I can do "right click - disclose all" on any row, and I will see an entire tree without any errors.
Seems, this messae should signal that there is no PK defined in the View Object, but here is prmary key definition: <AttrArray Name="KeyAttributes">
<Item Value="IdComponentKey"/>
<Item Value="IdProjectKey"/>
</AttrArray>Tricky is that the tree must show some records where primary keys are null. But still "disclose all" button works fine.
I also tried a key like: <AttrArray Name="KeyAttributes">
<Item Value="IdComponentKey"/>
<Item Value="IdProjectKey"/>
<Item Value="IdComponent"/>
<Item Value="IdProject"/>
</AttrArray>But that only shows me a root level, no child records.
Any help wpuld be appreciated.
Thanks.
ADF 11.1.2.1
Found kinda workaround adding NVL to keys:
SELECT nvl(ProjectIndicators.ID_COMPONENT, 0) AS ID_COMPONENT_KEY,
nvl(ProjectIndicators.ID_PROJECT, 0) AS ID_PROJECT_KEY, And yet it works... but that seem to deliver me some DML troubles.
Edited by: ILya Cyclone on Apr 25, 2012 4:54 PMHello,
I'm building an ADF tree with a recursive entity based query:SELECT ProjectIndicators.ID_COMPONENT AS ID_COMPONENT_KEY,
ProjectIndicators.ID_PROJECT AS ID_PROJECT_KEY,
ProjectIndicators.THE_VALUE,
, res.ID_COMPONENT
, res.ID_PROJECT
, res.ID_MAIN_COMPONENT
from PROJECT_INDICATORS_BA ProjectIndicators
SELECT Project.Id_Project
, Component.Id_Component
, Component.Id_MAIN_COMPONENT
FROM ...
WHERE ... and Project.Id_Project = :Bind_IdProject
) res
WHERE ProjectIndicators.Id_Project (+) = res.ID_PROJECT
AND ProjectIndicators.Id_Component (+) = res.ID_COMPONENTNote there's a *:Bind_IdProject* peremeter inside a subquery.
Queried data is:ID_COMPONENT_KEY ID_PROJECT_KEY THE_VALUE ID_COMPONENT ID_PROJECT ID_MAIN_COMPONENT
1064 1003
1065 1003 1064
1353 1003 1066
1646 1003 1646 1003 1065
1586 1003 1066
1587 1003 1066
1605 1003 11 1605 1003 1065
1625 1003 1625 1003 1065
1845 1003 1065
1846 1003 1845 ID_COMPONENT_KEY and ID_PROJECT_KEY are primary keys of PROJECT_INDICATORS_BA. THE_VALUE is a filed I need to edit (in case a row is null, a new row would be created on runtime).
ID_COMPONENT and ID_MAIN_COMPONENT is a recursive relationship. ID_PROJECT is a foreign key.
The recursive view link is
Source Destination
IdComponent IdMainComponent
IdProject IdProject
Query
(:Bind_IdComponent = ID_MAIN_COMPONENT) AND (:Bind_IdProject = ID_PROJECT)So I build a treetable on my page and the first (root) level looks fine. I can disclose a row and see the second level.
But when I try to disclose any second level row I get java.lang.IllegalStateException: ADFv: not inside a container.
Funny is that I can do "right click - disclose all" on any row, and I will see an entire tree without any errors.
Seems, this messae should signal that there is no PK defined in the View Object, but here is prmary key definition: <AttrArray Name="KeyAttributes">
<Item Value="IdComponentKey"/>
<Item Value="IdProjectKey"/>
</AttrArray>Tricky is that the tree must show some records where primary keys are null. But still "disclose all" button works fine.
I also tried a key like: <AttrArray Name="KeyAttributes">
<Item Value="IdComponentKey"/>
<Item Value="IdProjectKey"/>
<Item Value="IdComponent"/>
<Item Value="IdProject"/>
</AttrArray>But that only shows me a root level, no child records.
Any help wpuld be appreciated.
Thanks.
ADF 11.1.2.1
Found kinda workaround adding NVL to keys:
SELECT nvl(ProjectIndicators.ID_COMPONENT, 0) AS ID_COMPONENT_KEY,
nvl(ProjectIndicators.ID_PROJECT, 0) AS ID_PROJECT_KEY, And yet it works... but that seem to deliver me some DML troubles.
Edited by: ILya Cyclone on Apr 25, 2012 4:54 PM -
Handle "Enter" inside Custom Container
Hi all,
I am having 4 to 5 fields in my module pool screen and at the same time i am having a custom container wherein, there is editable ALV.
Here in editable ALV, i am having an editable field called dealer code.When i enter dealer code in editable ALV and press enter
my dealer name and dealer address in editable ALV [inside Custom Container] should get populated.
But when the cursor is inside the custom container [in that editable field] none of my screen events[Module pool events]
are getting triggered [Hence my values are not getting populated.When the cursor is outside the custom container all my module pool events are working fine, hence values are getting populated....
Is there anyway to handle this???
I am using OOPS Editable ALV inside a custom container...
Waiting for your repiles...Hello,
You have to implement events in order to handle your ALV, take a llok to this PDF:
http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e8a1d690-0201-0010-b7ad-d9719a415907
Take a look on section EVENT BASED ADDITIONAL FUNCTIONALITIES->Making ALV Grid Editable
Bye!!
Gabriel P- -
[Solved] Decrypt files securely inside lxc container.
Hi, this is my first question, I've been using Arch for 5 years now, thanks for all your hard work!
I'm trying to setup an lxc container to securely view encrypted files(gpg keys encrypted with cryptsetup and a loopback device), I've done so already using cryptsetup, the only issue is that after I decrypt the device from inside the container, it is available from the host as /dev/mapper/name and I can mount it and view it's contents.
Is there any way to set cgroups to deny host and allow lxc container to access this device, maybe I can change /dev permissions so only root on host can access? I would prefer that not even root on host can access it but I know I'm asking too much, I can do this with qemu or other VMs but there is a lot of overhead.
If you happen to know of any way I can access files from inside lxc container but block access to host even if it is after mounting the device, I would like to hear you out.
I'm running an archlinux host and archlinux lxc container with grsecurity-pax enabled.
Feel free to ask any questions if it's not clear .
Thank you for your time, and kudos for your great work with this distro.
Last edited by freetoken (2014-09-18 07:57:46)Progress!
$ ls -la /dev/mapper/name
lrwxrwxrwx 1 root root 7 Sep 16 09:21 /dev/mapper/name -> ../dm-0
$ ls -la /dev/dm-0
brw-rw---- 1 root disk 254, 0 Sep 16 09:21 /dev/dm-0
$ rm /dev/mapper/name
$ rm /dev/dm-0
voila!
The device is still there but it's not visible and user would need to have root permissions to run mknod and restore dm-0.
Also very interesting read about cgroups for anyone interested: https://www.kernel.org/doc/Documentatio … groups.txt
I'm wondering if there is any damage from doing this, since the data is backed up I guess I don't care too much and will test it for a while.
If anyone has any ideas or knows some cool feature I'm missing let me know.
Will mark as solved in 24 hours after more testing and in case something unexpected happens. -
Putting an applet window inside a dialog box
I am relatively new to Java, and have recently been introduced to swing and applets. Is it possible to put an applet window inside a dialog box? If this is a dumb question, I apologize in advance.
Thank you,
JonathanAs camickr pointed out, you cannot do this directly. Depending on what you want, you could do one of the following:
Start the applet and let the applet create a JFrame in wich the rest of the applet's operations can be displayed
Run the applet in Sun's appletviewer (note that this won't work in browsers). -
How to put AAC format into an AIFF container?
Hi,
after a long search I finally found a free webhoster with enough space and higher file size limit. After registration I found out that the hoster doesn't allow the most media formats like .MP3, .WMA, .WMV, .MOV, or .AVI.
Fortunately, AIFF files are allowed. When I change the file extension to .aif iTunes will play them. But the files are too big for my purposes. I really would like to use the m4a-format because of enhanced podcasts.
Is it possible to create a m4a-file and put it into a an AIFF-container, which iTunes can play?
SteffenSure. For this reason I would like to embed a m4a-file in an AIFF-container
Please see this page:
http://www-mmsp.ece.mcgill.ca/Documents/AudioFormats/AIFF/AIFF.html
and note part way down the paragraph which says:
AIFF files support only PCM data. They can specify any bit depth within a container which has a size which is rounded up to a multiple of 8 bits. Thus they can specify, for instance, 18 bits in a 24-bit container. The data in the container is left justified and zero padded. Data can be read as if it were the full precision of the container. The chunk information and the data (in most cases) is in big-endian byte order. -
Put a Spry Menu into a container div
Hi there,
I'm hoping someone can help me
I have a Spry Menu - but need to put this within a div tag - or as I;ve been advised, a container.
Could someone tell me how to do this step by step
ThankyouWhich Spry menu are you using?
The one in Dreamweaver (1.6) or Spry Menu 2.0 from the Widget Exchange?
Nancy O.
Maybe you are looking for
-
How to change "previous iTunes library" header after choosing and old library
This worked for me on windows vista ultimate: - Open itunes with shift press down - Create a new library, by default, it is created at C:\Users\"your user"\Music\iTunes\iTunes (different location from where it is originally), close iTunes -Now remov
-
Firefox not showing most images or links
This happens mainly with Facebook, but every website is messed up. The picture links do not appear, but are still there. It's a click-able white space. Kind of like scripts are missing, but I do not have any script blocker. Had a virus, now gone, but
-
I want to opt out of BTFON!
I had an updated modem for my bt infinty service last weekand I have just notice that I have been "opted in" to BTFON. I dont want BTFON and when I check the status section of the BTFON site I get the message "Customer product is not on allowed produ
-
Program used in R/3 that creates the sales orders sent by CRM
Hello CRMers: We are working with Sales orders in CRM that, via Middleware, replicate into R/3. We need to add a Abap development in order to change the Sales orders Delivery block status when these orders are created in R/3. The problem we have is t
-
Adobe Lightroom 3.3 BSOD
Hey guys, About two weeks ago I installed the trial version of Adobe Photoshop Lightroom 3.3. I am loving it to death and am considering purchasing the program, although there is a major issue that is standing in my way. Since I installed, I have pro