Show more columns using HtmlDataTable

The thing is that this code works...the result is html with one column in each row filled with "col1", "name1", "value1".
What I want to do is to get html with three columns with separated strings("col1", "name1", "value1") in each row!
What I must to change in code? Is it in mybean or in h:dataTable?
Thx for any help!
espyder
MyBean code:
public HtmlDataTable getDataTable() {
String[] headers = new String[] {"hname1", "hname2", "hname3"};
String[] row1 = {"col1", "name1", "value1"};
String[] row2 = {"col2", "name2", "value2"};
String[] row3 = {"col3", "name3", "value3"};
testList = new ArrayList();
koloneList = new ArrayList();
testList.add(Arrays.asList(row1));
testList.add(Arrays.asList(row2));
testList.add(Arrays.asList(row3));
dataTableP = new HtmlDataTable();
if (testList != null && testList.size() > 0) {
int columns = 3;
for (int i = 0; i < columns; i++) {
UIOutput header = new UIOutput();
header.setId("id"+i);
header.setValue(headers);
UIColumn column = new UIColumn();
column.setId("col"+i);
column.setHeader(header);
HtmlOutputText output = new HtmlOutputText();
ValueBinding myItem = FacesContext.getCurrentInstance().getApplication().
createValueBinding("#{myItem[" + i + "]}");
output.setValueBinding("value", myItem);
output.setStyleClass("osebac");
column.getChildren().add(output);
dataTableP.getChildren().add(column);
} return dataTableP; }
Code in jsp for dataTable:
<h:dataTable value="#{MyBean.testList}" var="podatki"
binding="#{SeznamBean.dataTableP}"
id="dataTableP" cellpadding="0" cellspacing="0"
border="0">
<h:column>
<f:facet name="header">
<h:panelGroup styleClass="tdbgcol">
<afh:tableLayout width="200">
<afh:rowLayout>
<afh:cellFormat styleClass="koledar4">
<af:outputText value="header test"/>
</afh:cellFormat>
</afh:rowLayout>
</afh:tableLayout>
</h:panelGroup>
</f:facet>
<afh:tableLayout width="200">
<afh:rowLayout>
<afh:cellFormat styleClass="oseba">
<h:outputText value="#{podatki}"/>
</afh:cellFormat>
</afh:rowLayout>
</afh:tableLayout>
</h:column>

The Music app on the iPad doesn't have configurable columns. You can set the rating of the current track, but you can't make changes to other properties such as Comments or Genre. In iTunes on your Mac you can display different columns and resize them. Tweak your tags in the main library.
tt2

Similar Messages

  • Could show more columns at detail page?

    we are new at html db, there are a few of questions we need to clear before we make decision to use HTML DB to develop our next version of application: (I seperate them at differenct topics).
    * By click link at query result page (table may has 5 columns), could show more columns at detail page (may 10 columns) with editable mode?
    Thanks
    Lei

    one way to do this would be to have your link take you to another similar looking page in your app that's an updatable report for the 10 columns you need. you could use our "tabular form" wizard to create that updatable report (if your tablular form is going to joining multiple tables, you might need to create an updatable view on the tables and build your form off that. you could also build that tabular form yourself. we have a how-to doc, "Build tabular forms for multi-row operations", for that at http://otn.oracle.com/products/database/htmldb/howtos/index.html ).
    regards,
    raj

  • About this mac shows more space used by apps

    When i triple tap the "Applications" folder in the finder, it shows me that my apps are taking about 15 Go. However, the "apps" bar in "About this Mac" reveal that apps are taking me over 90 Go !!!
    PS: I don't have any backups on my mac and i haven't set up time machine yet.

    That Applications folder should be only what you added to it not what was in launchpad after initial start up of your Mac . 92GBS is a combination of original apps and what you added to your library Application Folder. This is how My Mac is working but it seems like a lot of space used for a 2013 MBP

  • We used to be able to sort by multiple columns/rows at once by right clicking on the header and choosing show more options-how do we do that in the new Numbers?

    We used to be able to sort by multiple columns/rows at once by right clicking on the header and choosing show more options-how do we do that in the new Numbers?  It doesn't appear anywhere.  Do I now have to sort massive tables by each column one at a time now?  Also there used to be an easier way to merge/unmerge cells without me having to go to the table menu each time.  Am I missing something?

    Multiple column sort is a missing feature in the new version.  Hopefully soon to return. You can do a multicolumn sort by sorting one at a time in reverse order of importance.
    For merging and unmerging cells, I select the cells and right click to bring up the contextual menu. Merge and unmerge are on the menu.  You could also create keyboard shortcuts for Merge Cells and Unmerge Cells in the Table menu.

  • Want to display more than 300 charcters in a column using ALV grid display

    Hi Guru's,
    I am trying to display more than 500 charcters in a column using alv grid display but it in the output it is showing only 128 characters. Can you help me to display all the characters in particular column Or is there any limitation in maximum of no of charcters for a column?
    Thanks,
    Radha.

    Hi Paurl,
    Define a work area say
    wa_layout type slis_layout_alv.
    then fill this work area as
    wa_layout-zebra = X
    wa_layout-colwidth_optimize = X.
    wa_layout-max_linesize = 300.
    Then in FM 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
    is_layout = wa_layout
    etc.
    you provided this for the field which is displayed in alv grid will have more than 128 characters.
    from this code i want,how it refers to particular field.
    when i mentioned field catalog-OUTPUTLEN = '300'.
    it is not displayed the field morethan 128 characters.
    it only displays 128 characters.
    please provide me clear and breif information with suitable code.
    i am trying what your sending but it is not displayed more than 128 characters.
    if you don't mind please spend for me some time for this and
    give me clear and breif information with suitable code.
    Thanks & Regards,
    Radhakrishna.

  • The workflow could not update the item, possibly because one or more columns for the item require a different type of information using Update Item action

       I got error  "The workflow could not update the item, possibly because one or more columns for the item require a different type of information "I  found out the cause is  Update Item action       
    I need to update item in another List call Customer Report ,the field call "Issues"  with data type  "Choice"   to yes
    then the error arise .   please help..

    Thanks for the quick response Nikhil.
    Our SPF 2010 server is relatively small to many setups I am sure. The list with the issue only has 4456 items and there are a few associated lists, eg lookups, Tasks, etc see below for count.
    Site Lists
    Engagements = 4456 (Errors on this list, primary list for activity)
    Tasks = 7711  (All workflow tasks from all site lists)
    Clients = 4396  (Lookup from Engagements, Tslips, etc)
    Workflow History = 584930 (I periodically run a cleanup on this and try to keep it under 400k)
    Tslips = 3522 (Engagements list can create items here, but overall not much interaction between lists)
    A few other lists that are used by workflows to lookup associations that are fairly static and under 50 items, eg "Parters Admin" used to lookup a partners executive admin to assign a task.
    Stunpals - Disclaimer: This posting is provided "AS IS" with no warranties.

  • My iPhone 4s keeps showing more space being used for photos than i have - i have deleted cache folders, unselect and reselect in iTunes and nothing appears to work my iPhone still shows 6.5 gig use of photos when i only have the  camera roll listed

    my iPhone 4s keeps showing more space being used for photos than i have -
    i have deleted cache folders, unselect and reselect in iTunes I read one post
    where they said keep syncing and in a couple days it would correct itself, that
    hasnt happened.  I have see others have the same issue but no solution and nothing
    appears to work my iPhone still shows 6.5 gig use of photos when i only have the camera roll listed

    i thought the photo stream only holds 1000 i usuaaly take each month and save them to iphoto but if thats the my ipad should say the same amount and it doesnt - it shows 2.5 gig which is correct for iphoto.  and i havent ever had that much but if for some reason icloud has that much saved how do i delete and again if it does why doesnt ipad show that amount _ HELP!

  • How can I import data using .dmp into the table which has more columns then in import

    I am building the history for warehouse purpose on Oracle 8i database and want to use the old import (.dmp) files (from oracle 7.3.4) to import data but the underlying table is having few more columns which are not in my old DMP file .. how can I import the data into these altered tables while using the same *.imp files .
    Any solutions ?

    That is the most obvious solution .. but think of the case when my operational database which is the source of my data is undergoing changes every quarter i.e after every 3 months there are some changes on underlying table structures which means structures of my import files will always be different after evry quarter .. you can imagine the number of temporary import structures I need to create .. can't there be a solution wherein I can write an SQL over the import file to read the data in required format ..

  • Show more than 5 column in web analyzer

    dear all,
    how can i set web analyzer to show more than 5 column , for examples all kfigures in one page?
    thanks

    Hi John,
    Open the Web Application Designer.
    Open the 0Analysis_Pattern file. (This is the default template for Web Analyzer)
    On Properties panel select Analysis(Grid)
    Select Web Item Parameters Tab
    Look for Paging section.
    On Number of Data Columns displayed at once change from 4 to 16
    On Number of Data Rows displayed at once change from 10 to 100
    Finally Save the 0Analysis_Pattern file.
    The 0Analysis_Pattern is included in the Business Content. So, if necesary you can recover the original version.
    Hope it helps.

  • In my application on openeing a page mozilla browser history shows more than one entry which inturn makes it difficult to go the previous page using back button. It works fine in I

    In My application on opening a page using TOC, mozilla browser shows more thanon entry in history, which makes it difficult to browse the previous page using back button. Although it works fine on IE
    == URL of affected sites ==
    http://
    == User Agent ==
    Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; MS-RTC LM 8)

    In My application on opening a page using TOC, mozilla browser shows more thanon entry in history, which makes it difficult to browse the previous page using back button. Although it works fine on IE
    == URL of affected sites ==
    http://
    == User Agent ==
    Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; MS-RTC LM 8)

  • My home screen used to show 4 columns of apps, now it only shows 3. How to revert to the 4-colums screen?

    My home screen usually displays 4 columns of apps. Now, all of a sudden, it started showing 3 columns of enlarged apps. How do I revert to the 4 columns of apps in normal size?

    Hi,
    Try resetting your iPod:  Press/hold the home and sleep/wake buttons until the Apple logo appears. 
    Hope this helps! 
    ---likeabird---

  • Looking for more columns in Address Book

    Hello,
    I am a long time (over 10 years) Palm user so I have gotten used to the Palm Desktop displaying a good amount of information in the Contacts area. I just got an iPhone so I am converting over to iCal and Address Book world. Some thing are driving me crazy and I am wondering if I just don't have a setting right. Here are my questions:
    1. In the main Address Book pane, is there a way to have more columns of information about a contact card displayed in the contact finder list? It currently only shows "Name." Is there a way to add other data columns to the screen such as "Company?" Just a list of names can be hard to navigate if you have a lot of contacts and want to quickly find someone by a second field.
    2. What is the logic to the order it displays the contacts in the list? It seems kind of random. Does it look at "Last Name" first or "Company" or what?
    Thanks,
    Sam

    In the main Address Book pane, is there a way to have more columns of information about a contact card displayed in the contact finder list?
    No, it's name only, I'm afraid.
    Just a list of names can be hard to navigate if you have a lot of contacts and want to quickly find someone by a second field
    The Search field is not limited to the visible information (e.g. name). If you type in a company name the list will update to show people from that company only, even though you're not showing company name.
    2. What is the logic to the order it displays the contacts in the list? It seems kind of random. Does it look at "Last Name" first or "Company" or what?
    You can set this in preferences. IIRC the default is Last Name.

  • A somewhat more complex use of EXECUTE_QUERY with a Where clause...

    Basically, what I need to be able to do is when the form receives a certain parameter upon opening; it must immediately run a certain query and populate the data blocks.
    I do understand the concept of setting the DEFAULT_WHERE in the PRE_QUERY trigger for the block; but I don't think this will work in my situation.
    The reason being is that each data block must run 2 separate queries; and BOTH resulting queries must be populated to each data block, and not overwrite eachother...
    Not only that, but the query being executed requires me to reference 2 separate tables (the data coming from one, however its comparing results from 2 separate tables, so I don't think simply modifying the where clause for the data block will even be possible to achieve the results I am looking for.
    Maybe further explanation of my queries may help the situation. Basically, each data block is linked to a table for the current logged in user, and then there is a production table as well. When ANYTHING is modified, added, or deleted on the current user's table, they are suppose to "publish" the record to the production table. The EXECUTE_QUERY statement will be responsible for running the query that will populate ALL the records that have yet to be published to the production table. So basically, its running a query that will use an ID and compare each individual field by that ID for any changes from the production table. Then, it runs another query to find records that are in either the production table or user table, and not the other; to flag a new record or deleted record.
    I've been thinking about possible ways to do this, but have had no luck unfortunately;
    ANY guidance will be greatly appreciated it. I do understand that my description of the problem may be hard to comprehend, so if you need further clarification please ask.
    Jason
    Message was edited by:
    user558647

    It would be helpful to give an example of the sort of data in each table and what you want to show in each block. I probably didn't understand most of what you wrote but I think the following may be analogous to your situation and requirements (but you'll have more columns of course):
    SQL> CREATE TABLE t_user AS
      2    SELECT
      3      ROWNUM id,
      4      object_name col1,
      5      object_type col2
      6    FROM all_objects
      7    WHERE ROWNUM < 10;
    Table created.
    SQL>
    SQL> DELETE FROM t_user WHERE id = 1;
    1 row deleted.
    SQL>
    SQL> CREATE TABLE t_published AS
      2    SELECT
      3      ROWNUM id,
      4      CASE Mod(ROWNUM,2)
      5        WHEN 0 THEN SubStr(object_name,1,2)
      6        ELSE object_name
      7        END AS col1,
      8      object_type col2
      9    FROM all_objects
    10    WHERE ROWNUM < 9;
    Table created.
    SQL>
    SQL>
    SQL> SELECT * FROM t_user;
            ID COL1                           COL2
             2 I_USER1                        INDEX
             3 CON$                           TABLE
             4 UNDO$                          TABLE
             5 C_COBJ#                        CLUSTER
             6 I_OBJ#                         INDEX
             7 PROXY_ROLE_DATA$               TABLE
             8 I_IND1                         INDEX
             9 I_CDEF2                        INDEX
    8 rows selected.
    SQL> SELECT * FROM t_published;
            ID COL1                           COL2
             1 ICOL$                          TABLE
             2 I_                             INDEX
             3 CON$                           TABLE
             4 UN                             TABLE
             5 C_COBJ#                        CLUSTER
             6 I_                             INDEX
             7 PROXY_ROLE_DATA$               TABLE
             8 I_                             INDEX
    8 rows selected.
    SQL>
    SQL> -- yet to be published to the production table
    SQL> -- includes records previously published and then updated, but not new
    SQL> -- records which have never been published (these are in the other query)
    SQL> SELECT u.id, u.col1, u.col2
      2  FROM t_user u, t_published p
      3  WHERE u.id = p.id
      4  AND (
      5    u.col1 != p.col1
      6    OR u.col2 != p.col2
      7    )
      8  ;
            ID COL1                           COL2
             2 I_USER1                        INDEX
             4 UNDO$                          TABLE
             6 I_OBJ#                         INDEX
             8 I_IND1                         INDEX
    SQL>
    SQL> -- new and deleted records
    SQL> SELECT * FROM(
      2    SELECT id, col1, col2, 'NEW' status FROM t_user
      3    UNION ALL
      4    SELECT id, col1, col2, 'DELETED' status FROM t_published
      5  )
      6  WHERE id NOT IN(
      7    SELECT id FROM t_user
      8    INTERSECT
      9    SELECT id FROM t_published
    10  )
    11  ;
            ID COL1                           COL2                STATUS
             9 I_CDEF2                        INDEX               NEW
             1 ICOL$                          TABLE               DELETED
    SQL> Basically, I think the answer is in the query and not the Where Clause.
    I think you want one of these queries in each block, so set the blocks' queries (are you changing that query based on the parameter passed in, or just executing the query, you're not clear on that) and then do
    go_block('B2');
    execute_query;
    go_block('B1');
    execute_query;

  • Get more column in Group by query....

    select np.netting_profile, max(np.effective_date) from netting_profile np
    where np.profile_run_time_date=to_timestamp('2010-11-18 18:00:00','yyyy-MM-dd HH24:MI:SS') and
    np.effective_date <= to_timestamp('2010-11-26 00:00:00','yyyy-MM-dd HH24:MI:SS')
    GROUP BY np.netting_profile
    In above query i need to get Profile_version. but i dont want to GROUP BY profile_version.....
    Multi profile_version are there so i am getting duplicate value.......
    Table structure
    Netting_Profile Profile_Version Effective_Date Profile_run_time_date
    P1 V1 2010-11-18 00:00:00 2010-11-18 18:00:00
    P1 V2 2010-11-26 00:00:00 2010-11-18 18:00:00
    P1 V3 2010-11-28 00:00:00 2010-11-18 18:00:00
    C1 V1 2010-11-20 00:00:00 2010-11-18 18:00:00
    C2 V2 2010-11-26 00:00:00 2010-11-18 18:00:00
    Expected result
    Netting_Profile Profile_Version Max(Effective_Date)
    P1 V2 2010-11-26 00:00:00
    C1 V2 2010-11-26 00:00:00
    here not able to get Profile_Version
    if required what is the solution.........plz help me..........
    Edited by: user1141807 on Nov 28, 2010 11:27 PM

    SQL> SELECT deptno,max(sal)
      2  FROM emp
      3  GROUP BY deptno;
        DEPTNO   MAX(SAL)
            30       2850
            20       3000
            10       5000
    SQL>
    SQL> --Now I want to show ename column. Example of co-related subquery.
    SQL> --Search documentation for more understanding and example.
    SQL> --http://download.oracle.com/docs/cd/E11882_01/server.112/e17118/queries007.htm#i2067858
    SQL> SELECT ename,deptno,sal
      2  FROM emp e1
      3  WHERE (deptno,sal) IN
      4       (SELECT deptno,max(sal)
      5        FROM emp e2
      6        WHERE e1.deptno=e2.deptno
      7        GROUP BY deptno
      8        );
    ENAME          DEPTNO        SAL
    BLAKE              30       2850
    SCOTT              20       3000
    FORD               20       3000
    KING               10       5000
    SQL> http://download.oracle.com/docs/cd/E11882_01/server.112/e17118/queries007.htm#i2067858
    SQL> --Use Of analytical function.
    SQL> SELECT ename,deptno,sal
      2  FROM (SELECT ename,deptno,sal
      3        ,RANK() OVER ( PARTITION BY deptno ORDER BY sal desc) rn
      4         FROM emp
      5         )
      6  WHERE rn<2;
    ENAME          DEPTNO        SAL
    KING               10       5000
    SCOTT              20       3000
    FORD               20       3000
    BLAKE              30       2850
    SQL> http://download.oracle.com/docs/cd/E11882_01/server.112/e16579/analysis.htm#i1006229

  • More columns in table control and occupy space left on screen

    Hi,
    How to put more no of coulums in table control.
    on my screen i am getting 10 coulums.for further
    i have to scrool.but on my customer screen it is displaying
    8 columns, but on his system,  left side more space is remaining,he asking to increase the table control so that he can able to to see more columns,but on my system it is saying table control length is 115.it is not allowing to increase it.
    Is there any option to occupy space left on customer screen,on my system it is showing no space left
    Plz give some solution .
    Thanks and Regards
    Ramakrisnaia y

    Hi,
    i observed that in order to put screen in synch for both customer and for us ,i  modified the screen attributes.
    that mean length and witdh.
    if u write BDC then we have to use one strcture in order to take defualt screen size.in my case i am using noram screen and table control.
    Thanks .
    Ramki.

Maybe you are looking for

  • Both side chatting with simple GUI ,,helps pls?

    guys I'm Java application programmer i don't have well knowledge in network programing ,,my question ,,,from where should i start to design a simple GUI client*s* server chat program ,i mean some thing like simple yahoo messenger the program should i

  • Issue in HTTP to RFC scenario

    Hi Experts, i am working on HTTP to RFC scenario.From Http client i am sending data to integration engine. i am unable to see any messages in SXMB_MONI.Means data from HTTP client not reached Integration engine. why the data is not reaching integrati

  • How to reset system password

    Does anyone know how to reset a system password for a Macbook?

  • Forms to Java conversion

    Hello Gurus, i have Oracle / Developer 2000 Forms in binary(fmb) and executable(fmx) format , i need them to convert them into Java, is there any tool or conversion method so that i can use as a java program. Please help me in this regard Thanks Qavi

  • How to get description from the field name

    Hello fellow SAP Fanatics, I am trying to find an easy way to get the description of a field if I know the technical name. I know I can view them in tables but is there one place where I can just look up the field and get the description? Thanks.