ADF Faces - indenting text in table column.

Is there a way to indent text in an ADF Faces coreColumn component? I'm trying to represent a recursive tree structure in a CoreTable. I've tried inserting object spacers depending on the depth of each node in the tree, but Faces then wraps the text after the spacers, even when I specify no wrap for the column.
Better yet, is there a way I could do this with a tree component? I've tried separating the different levels into different collections with separate custom methods, but I don't know how to specify the master/detail relationships between them.
Any suggestions gratefully received.
Brian Spear.

Thanks, Frank. I don't think a tree table is the answer; it has the same requirements as the tree (or so I understand) with regards to populating each level from a different collection, and foreign key relationships. Not suitable for recursive relationships. Furthermore it only shows a small part of the tree at a time. I've got as far as returning a list of nodes within a structure, and I can display the structure, with icons for expanding and collapsing the nodes. All I need now is a way to indent the levels so the structure is more visible. The best I've managed so far is by inserting ". . ." in the text itself on each lower level, to make the left-justified text look indented. Obviously, I'd like a better way, that can be implemented in the view layer.
Is there maybe a way of nesting objects within an outputText component so that it doesn't wrap? Must look into that.
Thanks again.
Brian Spear.

Similar Messages

  • ADF Faces - ConvertNumber, aligning in table column

    Is there a way in ADF Faces to display a table with a column of currency figures, with possible trailing sign for negatives, aligned on the decimal point? With a total at the bottom? These seem like such elementary requirements, but I can find no reference to them in the documentation. ConvertNumber javadocs mentions a pattern property, but no details of what constitutes a pattern.
    Any help gratefully received.

    Hi,
    drag and drop the ConvertNumber component and double click on it in the StructureWindow of the page (strl+shift+s). This brings up a dialog that provides help when moving the mouse over the labels
    As a pattern try e.g. 0000.00
    The currency can be specified in the last field as the type. The symol can be expressed as a character $ or in ISO format USD
    There is no native component to compute the total, but since the table shows the values in page ranges, you can add a output field and compute this information in a backing bean
    Frank

  • ADF Faces OutputText text-align

    I´m working in an ADF Faces Application, a column in a table is showed using an outputText but the customer wants its value is showed right align.
    I've tried the propertie inlineStyle="text-align:right;" in the outputText but it's not working correctly.
    I think that inlineStyle="text-align:right;" doesn't work with outputText.
    Are there any solution to align text in a af:outputText?
    Thanks in advanced
    Toni - Oracle Principal Consultant - Spain

    Hi,
    select the column and and change the FormatType to Number.
    <af:column headerText="Description"
                           sortProperty="Description" sortable="false"
                           formatType="number">Brenden

  • ADF Faces -- Input Text

    Hello all
    I am developing a GUI using ADF Faces and I have only one problem left in my jsp. I use an Input Text with its "readOnly" attribute set to true to show some values in the screen and it works just fine, but now I need to input the values shown in the InputText field.
    I mean...i need to show a value in the InputText field and i must be able to update this value. What i did is set the attribute "readOnly" to false and add a binding Attribute. But i got an error saying that it's not possible to have a "readOny" and "binding" Attribute at the same time and it seems to be logical it the readOnly where set to TRUE, but it's set to false so I can't see why i am wrong.
    I put here the code for the input Text. I wonder if someone know what's the issue or another way to do what i am trying to do
    <af:inputText label="#{bundle[\'showResults.refTexto\']}"
                                    binding="#{mostrarResultadoDiagQuery.descripTexto}"
                                    rows="1" readOnly="false" rendered="true"/> I am using Jdeveloper 10.1.3.4
    Thanks to all, thanks in advance
    Edited by: Jose Miguel on Dec 15, 2008 8:42 AM

    Hello again
    I've been doing some testing but I still have the original problem.
    I have tried getting the entered text in another been but i still get the same problem.
    I do have getter and setters methods for the attribute where i update the values.
    The message i get is the following
    javax.faces.el.EvaluationException: javax.faces.el.EvaluationException: Error getting property 'result' from bean of type mx.com.uaem.htb.sspoc.portal.managed.DiagQueryBean: java.lang.NumberFormatException: null
         at com.sun.faces.el.ValueBindingImpl.isReadOnly(ValueBindingImpl.java:293)
         at oracle.adfinternal.view.faces.renderkit.core.xhtml.EditableValueRenderer.getReadOnly(EditableValueRenderer.java:211)
         at oracle.adfinternal.view.faces.renderkit.core.xhtml.EditableValueRenderer.wasSubmitted(EditableValueRenderer.java:109)
         at oracle.adfinternal.view.faces.renderkit.core.xhtml.EditableValueRenderer.decode(EditableValueRenderer.java:48)
         at oracle.adfinternal.view.faces.renderkit.core.xhtml.InputLabelAndMessageRenderer.decode(InputLabelAndMessageRenderer.java:34)
    Caused by: javax.faces.el.EvaluationException: Error getting property 'result' from bean of type mx.com.uaem.htb.sspoc.portal.managed.DiagQueryBean: java.lang.NumberFormatException: null
         at com.sun.faces.el.PropertyResolverImpl.getValue(PropertyResolverImpl.java:109)
         at oracle.adfinternal.view.faces.model.FacesPropertyResolver.getValue(FacesPropertyResolver.java:92)
         at com.sun.faces.el.impl.ArraySuffix.evaluate(ArraySuffix.java:187)
         at com.sun.faces.el.impl.ComplexValue.isReadOnly(ComplexValue.java:204)
         at com.sun.faces.el.ValueBindingImpl.isReadOnly(ValueBindingImpl.java:266)
    Caused by: java.lang.NumberFormatException: null
         at java.lang.Integer.parseInt(Integer.java:415)
         at java.lang.Integer.parseInt(Integer.java:497)
         at mx.com.uaem.htb.sspoc.portal.managed.DiagQueryBean.getResult(DiagQueryBean.java:56)
         at sun.reflect.GeneratedMethodAccessor33.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.sun.faces.el.PropertyResolverImpl.getValue(PropertyResolverImpl.java:99)
    Thanks for all your help

  • Show bold text in Table column's Caption in WebDynpro

    How to set style of table column's Caption in WebDynpro to bold?

    If you're on a portal, use the Portal Theme editor (Complex Elements > Tables)
    Or, alternatively, use the eclipse theme editor, available for download at http://www.sdn.sap.com/irj/scn/downloads?rid=/library/uuid/136dd890-0201-0010-1b9d-bd09a0d3b1d8
    Best,
    Robin

  • ADF Faces tooltip text for datatable's columns impossible?

    Hi,
    How can I show tooltip text for column in datatable? ShortDesc property for column is ignored.
    thanks,
    Branislav

    Hi Brano,
    this is a small workaround:
      <af:table rows="5">
        <af:column>
          <f:facet name="header">
            <af:panelGroup layout="vertical">
              <af:outputText value="Ako ide ADF?"/>
              <af:outputText value="Small blue tooltip"
                                    inlineStyle="font-size: 70%; color: blue"/>
            </af:panelGroup>
          </f:facet>
          <af:outputText value="#{row.col2}"/>
        </af:column>
      </af:table>Rado

  • ADF Faces: sorting in af:table does'n work after migration fr. EA11 to EA13

    I have a JSF JSP with an <af:table> component (EA11). Sorting of columns in this table works fine with this code:
    <af:column>
    <f:facet name="header">
    <af:sortableHeader text="Name" property="Name"/>
    </f:facet>
    <af:outputText value="#{item.Name}"/>
    </af:column>
    Then i migrate to EA13 and changed the code to:
    <af:column sortProperty="Name" sortable="true">
    <f:facet name="header">
    <h:outputText value="Name"/>
    </f:facet>
    <af:outputText value="#{item.Name}"/>
    </af:column>
    => the column headers are rendered as sortable, but sorting of columns does not work!
    The bean property, the value attribute of the table is bound to, extends oracle.adf.view.faces.model.CollectionModel.
    I will give you a hint: documentation to <af:column> and <af:table> always describes how to implement sorting with <af:sortableHeader>.

    I use my own Implementation of CollectionModel. It extends oracle.adf.view.faces.model.CollectionModel.
    The setSortCriteria method is called correctly. Even the sorting is done correctly. I just don't see it in my page. If I click on a column header to sort the column my cursor transforms to an hourglass, and that's it. Then I click on another button which makes the page render again, and suddenly the table is sorted according to the column I clicked before.

  • Center text in table column expanding and distorting side columns

    Anyone out there that can help me with this, I would appreciate it. I've created the table for this web page in photoshop and sliced it up. The center column is were the body of the text is displayed as you can see from the screen shot. The body text on some of the pages extends below the design of the page. This is dependent on how much content I have of course. If the text continues below the table parameters, the outer cells stretch out, causing separation of the sliced images in the side columns, as you can see in the other screen shot. This only happens in I.E. of course. In safari the table has no problems.
    Is there any way to get this under control in I.E? I have tried everything that I can think of. I have battled with this for far too long now.
    Any Help would really be appreciated
    Thanks,
    Duncan

    Would really need to see the code to see the extent of the damage Photoshop html has caused. This is a typical problem when exporting html from Photoshop OR trying to assemble the slices into one gigantic table where the cells have been split and merged numerous times which causes distortion.
    The idea, looking at your page, would be to insert a simple 3 column x 1 row table into Dreamweaver then insert the components that make up your page into their realtive columns. Using this simple construction method will ensure that all the page elements remain seperate and cannot interact with other element in different cells, which is what is NOT happening in your construction at the moment. 

  • ADF Faces: Newbee problem with table

    Hello,
    I try to generate a table like in the demo app:
    <af:form>
    <af:table allDetailsEnabled="true" var="row"
    bandingInterval = "2"
    banding = "row"
    value="#{projectView.currentProjects}" rows="5">
    <af:column sortable="true" sortProperty="proj_name">
    <f:facet name="header">
    <af:outputText value="#{bundle.proj_name}"/>
    </f:facet>
    <af:outputText value="#{row.proj_name}"/>
    </af:column>
    <af:column sortable="true" sortProperty="proj_descr">
    <f:facet name="header">
    <af:outputText value="#{bundle.proj_descr}"/>
    </f:facet>
    <af:outputText value="#{row.proj_descr}"/>
    </af:column>
    <f:facet name="detailStamp">
    <af:panelGroup type="vertical">
    <af:outputText value="Name: #{row.proj_name}"/>
    <af:outputText value="Descr: #{row.proj_descr}"/>
    <af:outputText value="Volume: #{row.proj_volume}"/>
    <af:outputText value="Area: #{row.proj_area}"/>
    </af:panelGroup>
    </f:facet>
    </af:table>
    </af:form>
    The currentProjects method returns a database query as a list of beans. The content of the beans is displayed. My problem is, when I click on e.g. 'Next' or 'All Details' nothing happens and I get javascript errors like this:
    Error: _submitPartialChange is not defined
    Source File: http://localhost:8080/timerec/faces/ADFbrowseProjects.jsp
    Line: 25
    I´m using EA 13. What am I doing wrong?
    Thanks, Axel

    The problem you're encountering is that the table view is being re-initialized whenever the underlying table model changes. Thus, the navigation appears to do nothing. The demo code doesn't "appear" to do anything special because the af:table value property is bound to a managed bean, periodicTable, that has session scope. Thus the table is built only once and the value binding is simply returning the same java object every time.
    For you to accomplish the same thing, your code will need to return the SAME OBJECT (since I can't see the source code I don't really know if it's using object identity or equals()) each time unless your underlying data has actually changed.
    I'm struggling with the same thing. I'm working with a small table and it's just easier to manage concurrency issues by pulling the data out of the database every time instead of building the logic to detect a change, but I'm having to build that due to this behavior.

  • ADF Faces - how to sort a column by sub-property ?

    hi,
    in a "af:table", this works fine :
    <af:column sortProperty="title" sortable="true">
    <f:facet name="header">
    <af:outputText value="Titre" />
    </f:facet>
    <af:outputText value="#{thisRowDoc.title}" />
    </af:column>
    but this doesn't :
    <af:column sortProperty="facility.libelle" sortable="true">
    <f:facet name="header">
    <af:outputText value="Service" />
    </f:facet>
    <af:outputText value="#{thisRowDoc.facility.libelle}" />
    </af:column>
    how can i sort on a property of a property ?
    thx !

    Hi,
    you have to consider that when loading a tile for the first time always rowloaded2 is fired (several times) and afterwards onload. Maybe rowloaded2 again afterwards. So it should work to sort in onload.
    But when clicking the <back> button in the menue the order of the fired events might be different!
    Do you want to sort by an unbound column which is readonly or is it also editable (see other thread)? In this case things might be much more complicate... Normally another sorting should be done in onsave event but unfortunately you don't save anything as it is unbound...
    Regards,
    Wolfhard

  • ADF Faces: Differring text sizes for AFFieldText and AFFieldTextDisabled

    I have found differing texts sizes in the generated css file for AFFieldText, AFFieldTextDisabled. Does anyone know the best way to fix this?

    I double checked and there was nothing in the WEB-INF/temp but the file was in the application-deployments/ directory. The contents of which are:
    more oracle-desktop-10_1_3_0_4-en-ie-6-windows-s.css
    /* CSS file generated on Tue Jan 31 14:24:27 EST 2006 */
    .AFInstructionText,.x0,.AFFieldText,.x6,.AFFieldTextLTR,.x42,.AFPhoneFieldText,.
    x44,.AFPostalCodeFieldText,.x46,.AFAddressFieldText,.x48,.PortletText1,.x6t,.Por
    tletText2,.x6u,.PortletText3,.x6v,.PortletText4,.x6w,.portlet-form-field,.x7l,.O
    raMessageBoxText,.x8p {font-family:Arial,Helvetica,Geneva,sans-serif;font-weight
    :normal;font-size:smaller;color:#000000}
    .AFInstructionTextDisabled,.x1,.AFFieldTextDisabled,.x7,.AFFieldTextLTRDisabled,
    .x43,.AFPhoneFieldTextDisabled,.x45,.AFPostalCodeFieldTextDisabled,.x47,.AFAddre
    ssFieldTextDisabled,.x49,.portlet-font-dim,.x6y {font-family:Arial,Helvetica,Gen
    eva,sans-serif;font-weight:normal;font-size:small;color:#999999}

  • ADF Faces Output Text - Automatic Update?

    Say you had a stock value in a view object as an output text field that updates in the view object once a minute. During this time, validate() is called on the row (which i thought would update the client). How can i get the client web page to update the field automatically?
    OR
    Have the client request an update of the text field from the view object once a minute?

    +1
    its the only way you could handle this. In JDeveloper 11 there will be a technology available for pushing such information to the cient. But in 10.1.3.x poll is the only option you have.
    Frank

  • ADF Faces: Initially checking (radio) table's first row programatically

    How can I initially check table's first row radio button programatically (from the backing bean)?
    Setting current row in the iterator to be first row does not help. af:table attribute selectionState is set to bindings.PersonInformationPersonCustomers.collectionModel.selectedRow, however model is tree based - value="#{bindings.PersonInformationPersonCustomers.treeModel}"

    why don´t you add on SQL Statement of your View Object an clause order by
    the first row will show as the first row of you VO can view
    but you can know the value of your field or your radio with a binding
    open your JSP on Design view
    with the right button
    click on the component, your radio.
    last option, Properties
    at the param Binding you choose the BackingBean (or ManegedBean) and defined the name
    does that you can use the name to invoke the method getValue()

  • ADF Faces - how do stop table navigation?

    im have <af:table with rangeChangeListener="#{ResPage.RangeChL}" on JSF page
    in RangeChL im check on last rows in ResultSet:
    if(sr.rs.isLast())
    System.out.println("%%%%%%%%AbortProcessingException");
    // throw new AbortProcessingException("EEEENNNNDDDD!!!");
    is record is last - im generate new AbortProcessingException.
    But it dont stop table from switch on next range.
    where I was wrong? why its dont work?

    Im also try generate
    System.out.println("%%%%%%%%AbortProcessingException");
    sr.rs.previous();
    sr.rs.previous();
    throw new AbortProcessingException("EEEENNNNDDDD!!!");
    in rangeChangeListener without condition - on each change. But it dont stop navigation on table ...

  • ADF FACES: af:table and complex column data

    Using EA15.
    I want to use an af:table to allow the in-place editing of the data. However, I have some fields that are not simple text entry fields. Two of them would ideally use af:selectOneList elements. This doesn't work given the limitations of how af:column elements work.
    Is there anyone out there creating complex, in-place edit tables? If so, how are you doing it?
    Thanks.

    I was mistakenly believing that you couldn't use a selectOneChoice in an af:table given some experimentation where they simply failed to render at all.
    It turns out that I had a hadn'e created the appropriate setter method for the property. However, instead of making the data readOnly (as most of the ADF FACES controls do) it just didn't render anything. Thus making me think it just didn't work inside of a table.
    FYI - in case this happens to anyone else.

Maybe you are looking for

  • My iWeb Site can't be seen by PC users but works fine on Macs.

    I just redesigned my iWeb website to include a new Home page, Movie list page and Photo Gallery. While the Movies list page and the Photo gallery all work before on both Mac & PC computers, since the redesign PCs can't view the home page. It gets stu

  • Objects Not Loaded Correctly Error

    When I open up Data Modeler I get this error. "Some objects are not loaded correctly. See the log file for details" After I click OK my model opens up but I noticed that I can not change the precision on a column in one of my tables. This model is un

  • How do I un disable my Apple ID?

    When I try to purchase things in the iTunes store, it will not allow me to and it says your Apple ID has been disabled.

  • Purchase requisition still contains items with errors

    DER SIR / MEDAM PLEAE PROVIDE ANSWER Purchase requisition still contains items with errors Edited by: Csaba Szommer on May 1, 2011 6:56 PM

  • ACS 4.2 with patch 4 Services restart

    I have installed ACS 4.2 with patch 4 Scertain period after authentication failed. Giving internal error. I need to restart all the services. What could be proble and pl help me in resolving this issue. I am running short of time.