Grid like Structure in ADF
Hi I need values that are abstracted from iterater operation in a fine Grid Layout format .
Please suggest.
use this
http://blogs.oracle.com/jdevotnharvest/entry/grid_layouts_in_adf_faces_using_trinidad
Similar Messages
-
does any body fimilar or made any grid like structure in jsp
Possibly the most useful client-side grid I have seen is the EBA Grid. It's entirely DHTML/JavaScript and has server-side code for JSP, ASP, and PHP. It does asynchronous paging and some other interesting stuff: http://www.aspgrids.com.
-
Grid like arrangements in UIScrollView(PhotoScroller)
Hi all,
I was using apple's scrollview sample code (PhotoScroller - https://developer.apple.com/library/ios/#samplecode/PhotoScroller/Introduction/I ntro.html) for my app using numerous images (and by recycling logic) in UIScrollView. I implemented that in my app and it works fine.
Now Im working in an app similar to the above, but with the difference, loading images in grid like view. When I happen to use the same sample code, every thing works fine except the recycling logic.
I think there is some problem with my frame set which don't tell the xcode, the visible region.
Please some one temme how to set the visible set for the grid View structure for scrollview? The code I use is,
Quote:
CGRect visibleBounds = _scrollView.bounds;
// CGRect gridElementvisibleBounds = CGRectMake(0, 0, 212, 200);
int firstNeededPageIndex = floorf(CGRectGetMinX(visibleBounds) - CGRectGetWidth(visibleBounds));
int lastNeededPageIndex = floorf((CGRectGetMaxX(visibleBounds)-1) - CGRectGetWidth(visibleBounds));
firstNeededPageIndex = MAX(firstNeededPageIndex, 0);
lastNeededPageIndex = MIN(lastNeededPageIndex, [self imageCount] - 1);
where _scrollView is the UIScrollView instance that I use and the gridElement that I use is of frame size (0, 0, 212, 200). The number of grid elements that occupy the scrollView bounds is
3 x 3 (9).
Please some one help me finding out the thing that I should correct in the above code.If Zach's answer doesn't correct the problem, consider filing a complaint with the Better Business Bureau and the consumer affairs department of your state's attorney general's office. After I got the run around for being billed for services I cancelled before they were installed and got nowhere with Comcast Customer Service, I filed complaints with the two agencies listed above. Surprisingly, I got not one, but TWO phone calls from Comcast's Executive Management something or other in Philly within 48 hours of filing the complaints. My bill was corrected within 24 hours. The last person I spoke with told me I was owed a refund after I cancelled the remaining service I had with them over the fiasco. If I don't get that refund within 30 days, I will file another complaint. The ony way Comcast is going to change their business practices is if customers continue to file legitimate complaints with the BBB and states' attorney generals' offices over their practices. Eventually, it will be so costly to pay people to answer these complaints and Comcast will decide its better for their bottom line to simply provide better customer service. File a complaint today.
-
Access rights in case of a tree-like structure, with inheritance
Hello,
the project I've just started to work on should include an easy way (from the user's point of view) to grant/revoke access rights on a tree-like structure with inheritance.
Basically we are working for several international companies who want to use our application to watch/manage some of their web projects - each project belongs to one company and consisting of several 'campaigns' in several countries (there can be several campaigns per country, but each campaign belongs to exactly one country).
From our point of view this is a tree-like structure, with a 'root' node at the top level, 'companies' at the first level, 'countries' at the second level, 'campaigns' at the third level, and modules of our application (for example a module to display overall stats of the campaing, and so on) at the fourth level. There could be (and probably will be) some more levels, but that's not important at this point - it will always be a tree-like structure.
The customer's reqirements are natural - the administrators should be able to grant/revoke access to 'subtrees' of this structure. For example the top managers should be able to see all the data related to their company, the local managers should be able to see all the data related to their company in the country they work in, etc. On the other hand the relular employees should not see some of the modules (with details about clients of the company).
I wonder whether this can be solved using JAAS in an elegant and flexible manner - from the documents / whitepapers / tutorials I've seen till now it seems to me it seems to me not too suitable.
All the data will be stored in relational database (Oracle, and in some cases PostgreSQL), and it would be nice to have the access rights stored in the same way (but it's not required). We have some ideas how to solve that using a single table containing paths in the tree, but at this point it's only an idea (not a single line of code written).
We are sure somebody has already to solve such a problem - maybe using JAAS, maybe some other technology - and we don't want to reinvent a wheel. Do you have an idea how to solve this (using JAAS or something else)?Well, I forgot to explain what the 'inheritance' means ...
We do not want to set the access right on each node of the tree - we prefer (as well as the users) to set/store only as much information as needed. We'd like the nodes to inherit the access rights from their parent nodes. For example we'd like granting access to particular project to mean granting access to all campaigns in all countries (related to the project), without the need to set and store these rights for each of the campaigns/countries. -
Previously, I posted a problem with trying to wrap tables within tables, referencing this code.
<!-- ... -->
<tableLayout>
<contents>
<rowLayout>
<contents>
<bc4j:viewObjectScope name="CustomArrayDataGraphsView">
<bc4j:rowStamp>
<cellFormat>
<contents>
<tableLayout>
<contents>
<rowLayout>
<contents>
<link
styleClass="OraHeaderSub"
targetFrame="display">
<boundAttribute
name="text">
<bc4j:attrValue name="AnalysisParam"/>
</boundAttribute>
<boundAttribute
name="destination">
<bc4j:ordProperty name="url"/>
</boundAttribute>
<boundAttribute
name="shortDesc">
<bc4j:attrValue name="Description"/>
</boundAttribute>
</link>
</contents>
</rowLayout>
<rowLayout>
<contents>
<bc4j:attrScope name="Graph">
<contents>
<html:object
width="300"
height="200">
<boundAttribute
name="data">
<bc4j:ordProperty name="url"/>
</boundAttribute>
<boundAttribute
name="type">
<bc4j:ordProperty name="contentType"/>
</boundAttribute>
<rawText>
<boundAttribute
name="text">
<bc4j:attrValue name="Description"/>
</boundAttribute>
</rawText>
</html:object>
</contents>
</bc4j:attrScope>
</contents>
</rowLayout>
</contents>
</tableLayout>
</contents>
</cellFormat>
</bc4j:rowStamp>
</bc4j:viewObjectScope>
</contents>
</rowLayout>
</contents>
</tableLayout>
<!-- ... -->The above code renders a single row of elements which are tables themselves. Using the <cellFormat> inside the <viewObjectScope> avoids the "new line" rendering of the internal tables of title/images. However, the internal tables do not wrap.
This is an unfortunate side-effect of html tables. So, I need to basically make a sizeable grid (similarly to a GridLayout for all you AWT/Swing folks out there) layout that can render a specified number of columns per table, creating new rows as necessary. Something like...
<gridLayout columns="5">
<contents>
<bc4j:viewObjectScope name="CustomArrayDataGraphsView">
<bc4j:rowStamp>
<cellFormat>
<contents>
<!-- render something per row -->
</contents>
</cellFormat>
</bc4j:rowStamp>
</bc4j:viewObjectScope>
</contents>
</gridLayout>This custom layout will render a maximum of five columns of data per table row, where each column is actually a row of information from the view object.
Is this possible using UIX components or should I start coding?
Thanks,
joeAlso, displaying a bunch of "inline"ed tables would be really useful. I can't seem to do this from within a <header>, <hideShowHeader> tag, even with explicitly coding:
<bc4j:viewObjectScope name="CustomArrayDataGraphsView">
<bc4j:rowStamp>
<bc4j:attrScope name="Graph">
<contents>
<html:table style="display: inline">
<html:tr>
<html:td>
<styledText text="Title"/>
</html:td>
</html:tr>
<html:tr>
<html:td>
<styledText text="Image"/>
</html:td>
</html:tr>
</html:table>
<!--
<tableLayout styleClass="display: inline" width="300">
<contents>
<rowLayout>
<contents>
<styledText text="Title"/>
</contents>
</rowLayout>
<rowLayout>
<contents>
<styledText text="Image"/>
</contents>
</rowLayout>
</contents>
</tableLayout>
</contents>
</bc4j:attrScope>
</bc4j:rowStamp>
<!-- render a "No Records Found" message -->
<contents>
<styledText
text="No Records Found"
styleClass="OraErrorText">
<boundAttribute
name="rendered">
<if>
<comparison
type="lessThan">
<bc4j:viewObjectProperty name="estimatedRowCount"/>
<fixed
javaType="int">1</fixed>
</comparison>
<fixed
javaType="boolean">true</fixed>
<fixed
javaType="boolean">false</fixed>
</if>
</boundAttribute>
</styledText>
</contents>
</bc4j:viewObjectScope>Apparently, the header tags do something which effects the display of "inline"ed elements, like the tables in the previous example. Any suggestions? I know taking out of the header works great, but, the <hideShowHeader> functionality is particularly necessary.
I have a time constraint on this... gotta be done by today, so if you have any other later minute suggestions besides creating a grid-like layout, let me know!
Thanks,
Joe -
Dear All,
I am working on some tree like structures querys.
I am strucked up with one tricky concept.
My Data is like as given below
EMPNO MGR
1
2 1
3 1
4 2
5 4
Now my requirement states that I should display the date as given below
1
1 2
1 2 4
1 2 4 5
Can anyone help me in designing a query.
Appreciate your help on this.
Thanks,
Madhu K.If more levels are there then it should populate under different columns like col5 ..... That's fine, that's how it will work.
There are only 4 levels above because that's just how the sample data is.
1 2 3 4You'd think people could give suggestions that get you over the hard bit and then you do some work for anything that's not exactly right.
SQL> ed
Wrote file afiedt.buf
1 WITH DATA AS(
2 SELECT 1 a,0 b FROM dual UNION
3 SELECT 2,1 FROM dual UNION
4 SELECT 3,1 FROM dual UNION
5 SELECT 4,2 FROM dual UNION
6 SELECT 5,4 FROM dual UNION
7 SELECT 6,5 FROM dual
8 )
9 SELECT SUBSTR(SYS_CONNECT_BY_PATH (a,' '),2) scbp
10 FROM DATA
11 CONNECT BY PRIOR a=b
12 START WITH a=1
13* ORDER BY 1
SQL> /
SCBP
1
1 2
1 2 4
1 2 4 5
1 2 4 5 6
1 3
6 rows selected.
SQL> -
Develop presets ordered in a directory like structure
If you are having a ton of develop presets you have to do extensive scrolling in order to find the proper presets.
Moving to LR4 I wish to have an directory like structure for the presets.
This makes even more sense because the new 2012 versions treats presets (not all but some) different than the "old" 2010 Version.
I can't imaging there will be something like a preset upgrade in the official version.
Having the mentioned structure it would be possible creating new presets under this structure and it would be easyly to differntiate the version.
e.g
2012-version
--- wedding
--------high contrast
--------low contrast
--------sepia
-------------foobar1
-------------foobar2
--- nature
2010-version
--- wedding
--------high contrast
--------low contrast
--------sepia
-------------foobar1
-------------foobar2
--- natureAs it may not make the final release, and we wouldn't want the request to get lost in beta land, might I suggest adding it as a suggestion on the Feature Request forum http://feedback.photoshop.com/photoshop_family where it can easily be tracked? In fact, if you search over there, I think you'll find a similar request to add your vote to.
-
I am getting a grid like pattern over solid colors durring a disolve
I recently upgraded to Studio. When a sequence dissolves, especially to white, I am seeing a grid like pattern. I have also noticed this pattern in shots where there is a solid color in one location for a period of time. Any ideas?
G5 Mac OS X (10.4.9)Check your view options in the canvas or viewer pulldown menu (little radio button looks like a pill in the top center-right or either window.) Sounds like you have your background set to checkerboard 1 or 2. That grid is telling you there is nothing to be seen here. Set it to black if you want it black. This won't take away the fact that there is transparency mind you, it just shows transparency as black. You can choose white, as well.
-
Trre like structure in JComboBox. (VERY VERY URGENT , PLZ. HELP)
hi,
Question is I want to get a tree like structure in my comboBox. I have built a custom component just like FileDialog. In my comboBox I have a directory showing that inturn contains directories inside. When I pop up my component my parent directory is shown in the comboBox and the child directories are shown in the panel underneath it. Just like FileDialog. When I select any child directory it's name is added under the parent directory and indented to the right a little in my comboBox and in my panel the child's sub-directories are shown. If I again click a parent directory in my comboBox the chiild directory is removed and in the panel again my parent directories child directories are shown it's just like FileDialog. How can i achieve this functionality. Any help or piece of code is appreciated
Thank youI am kind of guessing here, but this sounds like a
similar problem to that you'd have implementing a
treetable.
Check out the sun treetable tutorial, especially the
cell renderer parts wich is really how the tree is
displayed.
I guess you need to replicate that for your list (part
of the combo box). Let me know how you get on, I'll
try and work with you on this as I'd like to learn how
to do that myself.For a real tree table, check out the Swing Connection articles (it's about more that this renderering problem).
http://java.sun.com/products/jfc/tsc/articles/index.html
Anyway, for this problem, there are two solutions. Somehow draw a JTree when the drop down is clicked instead of the individual rows (I have no clue how to do this) or develop a new renderer.
The renderer would implement ListCellRenderer. The default renderer is based on a JLabel, but I know of no method to indent the JLabel by itself, so option 2 is a new renderer based on a JPanel with a flow layout with left alignment. The indentation can be achieved by adjusting the horizontal gap.of the layout.
You might also need to call invalidate(), followed by validate(), on the panel after adjusting the gap. This is because modifying the constraints on the layout does not cause it automatically to re-layout the components on the container. -
Hello
I want to get the tree like structure
My requirement is that when I write any jsp and put it in webapps's any
folder I should get tree like structure of the folders in which I am putting my jsp.
Foe example I have structure like
webapps
--rakesh_folder1
--rakesh_folder2
--rakesh_folder3
---rakesh_subfolder1
---rakesh_subfolder2
----(Here goes my jsp which would make to get sructure)
----my_other_file_1
----my_other_file_2
When I type http://localhost:8080/rakesh_folder3/rakesh_subfolder2/jspname
I want output as
--rakesh_folder3
---rakesh_subfolder2
----my_other_file_1 (size of file) (time stamp)
----my_other_file_2 (size of file) (time stamp)
How should I proceed ????????????????????
Tx in advance
Rakeshrakesh,
see if you have tree structure like this
C:\
Vivek
Rakesh
then C:\ is the root from where you are starting.
so just
<html>
<body>
C:\
&nbsp;&nbsp;&nbsp;Vivek
&nbsp;&nbsp;&nbsp;Rakesh
</body>
</html> -
Its possible to create a grid like this?!?!?
hello to all, im new in Mii and i have a sql statement to populate the table but i want to know if it is possible to create a grid like the image in this link :
http://img17.imageshack.us/img17/3021/gridx.jpg
and then put the information that comes from the sql in the blank spaces
regards and thanks for the help in advance
Máriohello, correct me if i say something wrong of yours steps:
1) Create a Doc action block with three columns like: Shift,Quantity,Scrap......
and then i put another field Total....correct?!?! or not?
2) Add SQLQuery Action block and configure it with already created SQL Query.
the result of my SQLQuery comes like this...
Yield Scrap
5000 1100
this is the result of this query:
select sum(max(yieldqty)), sum(max(scrapqty))
from z_event
where linenumber= '[Param.1]' and shiftnumber = '[Param.2]'
and (eventtimestamp >= to_date('[Param.3] 00:00:00', 'dd.mm.YYYY hh24:mi:ss'))
and (eventtimestamp <= to_date('[Param.4]', 'dd.mm.YYYY hh24:mi:ss'))
group by ordernumber
its better that the shiftnumber comes to???if yes the result comes like this:
Yield Scrap ShiftNumber
3720 35 1
30878 117 1
3) Put a repeater action block below that and configre with XPATH.
4)Add a Row action block,configure with Doc.output and map the each column from the repeater.
5) Also add other row with the total and take the sum of the quantity and scrap.
how to make the SUM?!?! There isnt SUM Function...
like this Total = Total + Repeater_0.Output{/Row/MAX_YIELDQTY_} ???
regards and sorry for all this questions
matinha -
HI. I would like to arrange over 30 pictures into one grid-like ARRANGEMENT. (meaning above, below, left, right, of each other and so forth to form a rectangle)
Please help...thxYou messaged me that the contact sheet look is what want but w/o spaces.
One method is to actually start with the PSE contact sheet tool. I assume your version has it (mine is PSE 2). Maybe your version has an option to remove spaces; mine doesn't. In this example I created a sheet of 4 rows and 3 columns, with the option to not flatten the layers. Each picture appears on a separate layer.
On each row I moved the left and right pics inward to remove the spaces between the pics:
Activate the Move tool. Click on the left pic and use the arrow keys to move it inward. Same with the right pic.
Now to remove the spaces between the rows. To make this easier. lock together the pics on each row. Here I locked the pics on the top row, then used the arrow keys to move the row as a unit downward. An alternative method would be to merge the 3 pics on each row and move that merged layer. Do the same for the remaining rows.
This method works of course if the pictures are all the same size and all aligned vertical or horizontal.
If you don't want to use the contact sheet tool (e.g., if the pics are different sizes or alignment) you can do this:
Create a blank canvas.
Open a picture, select it (Select > All) and copy to the clipboard (Edit > Copy).
Activate the blank canvas and Edit > Paste. The picture will be placed on its own layer.
Do the same with the remaining pics and use the Move tool with mouse and/or arrow keys to position them where you want.
The advantage of the first method is that the rows and columns are precisely aligned. Using the mouse to align the pictures could be a little tricky. -
How to implement table like structure in MIDP?
I am a starter of midp, and now need to implement something using MIDP 1.0.
I would like to know can I have table like structure in MIDP, just like HTML; or I can only work with List/Form (one dimension display). I can't find related information at api doc come with wireless toolkitsnot really knowing what you want to acomplish I have this suggestion: check Mobile Information Device Profile (JSR-37) at http://www.jcp.org/aboutJava/communityprocess/final/jsr037/index.html . This might shed more light on applicable classes/methods/interfaces within MIDP 1.0.
-
Where to download 11gr2 Grid infra structure for Windows
Hi,
I am not seeing the software of Oracle 11gR2 grid infra structure for Windows. Please let me know the link to download the grid infra structure for Windows.
Thanks,
MahipalAFAIK there is no software for windows 32-bit. but it is there for 64-bit. you can download from here
http://www.oracle.com/technetwork/database/enterprise-edition/downloads/112010-win64soft-094461.html -
What is the best way to organize a tree-like structure of constants?
Hello everone!
Need help with organizing my constants structrure.
I have several tables, and each of them need a list of column names to define the fields returned after query, and also a corresponding list of hashmap keys because that columnnames are ugly. Hashmap is where I store the result of searching through the table. This question is not about JDBC because I search through tables via COM interface, no JDBC ResultSets and other stuff here.
Finally, for each table I have two constant lists and I have a list of tables. What is the best way to store this?
My first idea was to create a enum and store column data in it as String array attributes: String[] columnNames; etc.
But in this case I cannot use each column and key separately.
Another option is to create two separate enums for each table: columnNames enum and keys enum. That doesn't look great also.
The third option is to create inner class for each table and store two enums in each of that classes.
Also I can store all data in hashmaps, Strings etc.
(1) Finally, from your experience, what is the best way to organize all that stuff?
(2) I have heard that smart Java programmer should avoid using the enums by any means. Do you agree?
(3) Generally what will you prefer when creating a constant which has two values: two final Integers or enum?
Edited by: Dmitry_MSK on Jul 8, 2010 5:22 AMI'm not sure why you don't just invent a generic data structure (e.g., table name, list of column names and aliases of column names) such as:
class QueryMetaData {
private final String tableName;
private final String[] columnNames;
private final String[] columnAliases;
}Read into the above structure from a properties file, database table, etc. You can store meta-data itself in places other than enum constants, particularly if would like to change the meta-data without requiring a new build of your application.
That having been said, WRT to your specific questions:
(1) Finally, from your experience, what is the best way to organize all that stuff?See above
(2) I have heard that smart Java programmer should avoid using the enums by any means. Do you agree?Enums are better than simple constants using int or String or something similar. If there are known, discrete values unlikely to change frequently, I see no issues with an enum. They improve the readability of code, and there are enough syntactic sugar features in the language (switch statements come to mind) to make them appealing.
(3) Generally what will you prefer when creating a constant which has two values: two final Integers or enum?
See above. Enums were introduced (in large part) to do away with storing constants as integers.
- Saish
Maybe you are looking for
-
When I try to install iTunes onto my new computer, it says "This installation package could not be opened. Verify that this package exists and that you can access it or contact the application vendor to verify to verify that this is a valid Windows
-
How to calculate sum of quantities of same item in po release using form personalization?
I am doing one form personalization in which an item can be entered multiple times in with different released quantity and need by date. I want to calculate the sum of release quantity of items. How I can achieve this using form personalization? Than
-
I uninstalled Adobe Acrobat Pro due to Windows 8 malfunction with starting up. I am trying to reinstall as I am an owner of the Creative Suite CS6 and I cannot access my serial number. I purchased the software in 2013 and never registered i, apparent
-
I can't open my ipad mini afther listening music
I can't open my ipad mini afther listening music and stop it.
-
Purchased the adobe product to convert a pdf image to a RTF file but cannot figure out to accomplis
Bought the adobe product to convert a pdf image to an RTF file but cannot figure out how to get it to work