Truncate output text in hierarchyViewer component

Hi,
I want to display the text with truncated to 30 characters only. I identified the outputText and added the truncateAt attribute and set it to 30. but it doesn't seem to work. Moreover the line - truncateAt="30" is underlined with orange squiggly lines indicating that there is some error and when I mouse over it , it says that this attribute is not supported when the component is inside of a hierarchyViewer component.
Any pointers how can I truncate the output text to 30 characters only?
Thanks,
Dhirendra

hi Vinod,
Thanks for the reply.
I have run it and it doesn't work. Use case is that we have a hierarchy viewer and I want to just truncate the long names of the Node Title.
Here is my local deploy link
http://rws65447fwks:7101/projectsManagement/faces/ResourceManagementDashboard
All I want to do is truncate the Node Title and limit it to lets say 30 characters. So "Resources with No Pool Membership" becomes "Resources with No Pool Mem..."
I tried to change in the jsff file and add the attribute called truncateAt and set it to 30, but as I said it says by underlying squiggly lines that the attribute is not supported.
Please let me know against what team should I file a bug? or it has to bean SR?
Thanks,
Dhirendra

Similar Messages

  • Flahing output text

    Hi All,
    i have an adf page that i am displaying status's on they are retrived from a database table...
    i just wanted to know if it was possible to have these status's displayed (currently as output text) with some sort of flashing java script around them...
    is the best way to create some gif files and have them displayed instead of the output text...
    i am using jdeveloper 10.1.3 and oracle 10g...
    any help would be really be appriciated...
    thanks

    Hi,
    you can always add JavaScript on the page, set clientComponent="true" on the output text, find a component handle on the page and do the flashing thing. However, I think that using animated gif is more robust, less error prone and easier to implement
    Frank

  • Output text component new line

    HI Team,
    I am picking up a value from resouce bundle for output text component.
    I wish to display data in output text component to display data after a new line.
    Suppose the message is coming as How are you.Welcome
    Now it should come as
    How are you
    Welcome
    Any help how is this achievable.
    I am working on Jdev 11.1.1.6
    Regards,
    Ajay

    Hi Team,
    The issue is resolved now.
    I have changed the escape property of output text component. to false so as to avoid the <br /> being HTML-escaped. and at the value level have used like
    <af:outputText value="#{XX.YOUR_REQUEST_HAS_BEEN_SUBMITTE}&lt;br />&lt;br />#{XX.YOUR_REQUEST_HAS_BEEN_SUBMITTE1}"
                                         id="ot10" escape="false"/>
    Where XX.YOUR_REQUEST_HAS_BEEN_SUBMITTE=Value1 and YOUR_REQUEST_HAS_BEEN_SUBMITTE1=Value2 in my resource bundle file.
    Output is coming as
    Value1
    Value2
    Does any one know how can i mark it as correct , can't see it after the forums upgrade to new one.
    Message was edited by: Ajay

  • Retrieve RowSet and Display in Output Text Component

    To retrieve a row object, took more effort than I expected with this tool. I wanted to populate a simple output text component with a db object pulled from a row, and I binded it to the rowset column. It worked great, but it kept retrieving the first row, since in the JSP it was calling this:
    #{questionsetup.questionRowSet.currentRow['question']}
    To get it to increment rows per output text component I did this:
    questionRowSet.setDataSourceName("java:comp/env/jdbc/SelfService");
            questionRowSet.setCommand("SELECT ALL dbo.Question.quesId, dbo.Question.question, dbo.Question.lastChangeDate  FROM dbo.Question");
            questionRowSet.execute();
            questionRowSet.next();
            outputText3.setValue(questionRowSet.getString("question"));
            questionRowSet.next();
            outputText4.setValue(questionRowSet.getString("question"));
            questionRowSet.next();
            outputText5.setValue(questionRowSet.getString("question"));Is there another way to do this automatically? The Studio Creator way? Or is this correct? The Studio Creator help file explains how to bind a simple component, and using the binding, but it even says it will retrieve the data in the first row. Incremenet rows or specifying a specific one would really help!
    Thank you very much!

    Maybe take control of the Select statement myself...
    So I decided to get the MIN value of my ID
    like this
    "select MIN(T21id) AS ttt from persons"
    now this is valid in SQLyog
    BUT Creator says
    Description: An unhandled exception ...
    Exception Details: javax.faces.el.PropertyNotFoundException
    Invalid column name: BaseRemuneration
    nb why is this "unhandled" since it is inside a try block?
    why does it mention BaseRemuneration which is a completely different but valid column??
    So Sun Creator will accept an unknown subset of valid SQL commands, and give bizarre irrelevant exception error messages on the set of valid SQL statements that it doesnt like.
    The documents appear to state that MIN is not handled by the IDE but can be entered manually.
    In fact it can NOT be enmtered manually.
    So is there an accurate list of valid SQL that is accepted?

  • Issue using JS to change the value of an output text component dynamically

    I am developing an application and I need to change the output text component value at run time when the mouse moves over a field. I am using javascript and then using UIComponent.setproperty to change the value.
    I am not able to do this and am getting nothing.
    Kindly let me know what am I doing wrong
    I am using ADF 11g (10th November release).
    Regards,
    Deepak

    Hi i'm doing the same thing with an input text
    here is my code
    jspx:
    <af:inputText value="#{bindings.MiddleName.inputValue}"
    label="#{bindings.MiddleName.hints.label}"
    required="#{bindings.MiddleName.hints.mandatory}"
    columns="#{bindings.MiddleName.hints.displayWidth}"
    maximumLength="#{bindings.MiddleName.hints.precision}"
    shortDesc="#{bindings.MiddleName.hints.tooltip}"
    id="it4" autoSubmit="true">
    <f:validator binding="#{bindings.MiddleName.validator}"/>
    <af:clientListener type="valueChange" method="mo_UpperCase"/>
    </af:inputText>
    js:
    function mo_UpperCase(event){
    var inputField = event.getSource();
    if (event.getNewValue().toUpperCase()!=event.getNewValue())
    inputField.setValue(event.getNewValue().toUpperCase());
    In my case i change the input text to upercase when the value is changing
    I hope it works with output text also,
    change my examples clientlistener type from valueChange to mouseOver
    If you have more than one component and you need to pass parameters check this thread also:
    bug at af:clientAttribute 11.1.1.2.0
    Tilemahos

  • Using TabbedTextOut function to output text, the text will be truncated

    In standard C++, I am using 'TabbedTextOut()' function to output text.
    My application calls the function more than once with the parameter 'nTabOrigin' set to the same value each time. So that
    I call 'TabbedTextOut' function several times for a single line.
    Such as I output text 'jumpto A', firstly I output 'jumpto' by using ''TabbedTextOut(...)', then I output ' A' by using 'TabbedTextOut(...)'.
    But I found that the character 'o' had been truncated. When the font was set 10, the phenomenon was obvious. Is it a bug of this API? 

    It's OK for me, could you share your code snippets?
    Best Regards,
    Please remember to mark the replies as answers if they help

  • Auto Truncat of text in table row.

    Is there any way to truncate the text displayed in the table row. I need to auto truncate the text in case text does not fit in the row with current column height.

    Hi Kevin,
    I am also facing the same situation. I want to display teh text with truncated to 30 characters only. I identified the outputTexta nd added the truncateAt attribute and set it to 30. but it doesn't seem to work. Moreover the line - truncateAt="30" is underlined with orange squiggly lines indicating that there is some error and when I mouse over it , it says that this attribute is not supported when the component is inside of a hierarchyViewer component.
    Any pointers?
    Thanks,
    Dhirendra

  • Iterate over some output text in a panel Grid

    Hello folks
    Are any of you doing something like this in JSC
    <code>
    <%
    for (int i = 0; i<4; i++)
    %>
    <h:panelGrid bgcolor="gray" binding="#{Page1.gridPanel1}" id="gridPanel1" style="height: 73px; left: 0px; top: 120px; position: absolute" width="216">
    <h:outputText binding="#{Page1.outputText1}" id="outputText1" value="Author"/>
    <h:outputText binding="#{Page1.outputText2}" id="outputText2" value="Summary"/>
    <h:outputText binding="#{Page1.outputText3}" id="outputText3" value="Article link"/>
    </h:panelGrid>
    <%
    %>
    </code>
    What I'm trying to do is something like data table, except that I want to have control over where the output text goes, and how it is presented.
    In data table all I get is a predefined table (I�m unable to format it the way I would like) so lets do it the old way - link some output text to a database or maybe an array which holds the "data" then loop over it x number of times to display the content kind of like this
    For (less than x times) do
    Author name
    Date article written
    Summary article
    Link to more of the article
    This would be the way I used to this, now I�m curios how this is done using JSF
    <% loop here %> does not mix well in Creator, error not well formed
    I�m unable to format a data table in any respect except number of rows and stuff
    So Any suggestion on how to really do this effectively in JSC/JSF
    Thanks Bjorn

    Hi,
    Actually, you have quite a bit of flexibility with the Data Table component.
    You can add more than one component to a column,
    and you can use an outputText component to hold
    HTML formatting tags, such as <br>.
    Note: you must uncheck the escape attribute.
    And since the data table component produces an HTML <table> tag,
    you can also control style with additional style sheet classes (see Tor's blog).
    For an example of using the Data Table component
    to display the resuts of the Google search web services,
    See Beyond the Book at this URL:
    http://www.asgteach.com/download/beyond.pdf
    The relevant description is section A.5 beginning on page 24.
    Hope this helps.
    --Gail A.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Output Text values getting duplicated when UDF attached to view form

    Hi Experts,
    I am getting a error where the output text is having duplicated values, when i am trying to attach existing UDF to view form. Like for instance, as mentioned below:
    Phone Number - 23456789
    State - CACA
    Country - UnitedStatesUnitedStatesUnitedStates
    When i add COuntry UDF, first it printed UnitedStates once, When i add State UDF, the country UDF value came as two time (UnitedStatesUnitedStates). When i added UDF Phone Number, Phone number came once, But state came twice (CACA) and Country came thrice (UnitedStatesUnitedStatesUnitedStates) and so on.
    The following are the two contrasting scenarios.
    1. First, I used existing UDFs which we created longback and tried attaching to the view form, I am getting the error i mentioned.
    2. Second is I created two new UDFs and attached to the view form, i am not getting any error. Its printing all the values once.
    It happened that i already customized the view form using Data Component - Catalog instead of Data Component - manage User for view form customization. I published that sandbox. Then I realized that it was a mistake, so i created a new sandbox, removed all the fields and then published that sandbox. The view form came back to as it was before modification. After that, i created one more sandbox, tried attaching UDFs to view form using Data Component - manage User---> UserV01, i am getting the error of multiple values as i mentioned above.
    Please guide on what i can do further to solve the error. Thank you for your timie in advance.
    Regards

    Hi Nishith,
    I think it's only display issue. We have contacted oracle and raised an SR. they say it's fine when they recreate the same scenario. As i said, this isuue is only when we use existing UDFs and the sandbox is already published. Thats the complication now.

  • OutPut text should expand by mouse click.

    Hi all.
    I am displayings comments of a particular request in OutPut Text. i want to display these comments as follow
    "your request is ap..." more by clicking "more" text should be expanded like below
    "your request is approved" less
    I am Using Jdeveloper 11.1.1.6.Please give me u r valuble suggestions.
    Thanks,
    Sai

    You can use a af:switcher component for this like:
    <af:panelGroupLayout id="pgl6">
                    <af:switcher id="s1" facetName="#{viewScope.ToggleBean.truncateLength eq 0 ? 'LONG' : 'SHORT'}">
                      <f:facet name="SHORT">
                        <af:outputText value="outputText2 long test this is a long text sdfhkjsdh sdkfhsdhf fskhdf skh sjdj skdhf kshf fkjshd kshf kjshf skjhh ksjjh kjsdh kshf ksjhf kjshf ksfkjkh hksjdhf kjksdhff "
                                       id="ot7" truncateAt="#{viewScope.ToggleBean.truncateLength}" partialTriggers="cb6" noWrap="true"/>
                      </f:facet>
                      <f:facet name="LONG">
                        <af:panelGroupLayout id="pgl5" inlineStyle="width:250px;">
                          <af:inputText label="Label 1" id="it2"
                                        value="outputText2 long test this is a long text sdfhkjsdh sdkfhsdhf fskhdf skh sjdj skdhf kshf fkjshd kshf kjshf skjhh ksjjh kjsdh kshf ksjhf kjshf ksfkjkh hksjdhf kjksdhff outputText2 long test this is a long text sdfhkjsdh sdkfhsdhf fskhdf skh sjdj skdhf kshf fkjshd kshf kjshf skjhh ksjjh kjsdh kshf ksjhf kjshf ksfkjkh hksjdhf kjksdhff outputText2 long test this is a long text sdfhkjsdh sdkfhsdhf fskhdf skh sjdj skdhf kshf fkjshd kshf kjshf skjhh ksjjh kjsdh kshf ksjhf kjshf ksfkjkh hksjdhf kjksdhff "
                                        wrap="soft" readOnly="true" simple="true" rows="#{viewScope.ToggleBean.truncateLength eq 0 ? 5 : 1}" partialTriggers="cb6"/>
                        </af:panelGroupLayout>
                      </f:facet>
                    </af:switcher>
                    <af:commandButton id="cb6" text="#{viewScope.ToggleBean.buttonText}" action="#{viewScope.ToggleBean.toggleMode}"/>
                  </af:panelGroupLayout>The bean is the same!
    Timo

  • Problem of diappeared output text as soon as page refreshes

    Hi all,
    I have jspx page with following code
    <?xml version='1.0' encoding='windows-1252'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
              xmlns:h="http://java.sun.com/jsf/html"
              xmlns:f="http://java.sun.com/jsf/core"
              xmlns:trh="http://myfaces.apache.org/trinidad/html"
              xmlns:tr="http://myfaces.apache.org/trinidad"
              xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
      <jsp:directive.page contentType="text/html;charset=windows-1252"/>
      <f:view>
        <af:document>
          <af:form>
          <af:inputText label="Input some text" id="input" clientComponent="true"/>
          <af:commandButton text="Say Hello">
    <af:clientListener method="sayHello" type="action" />
    </af:commandButton>
    <af:outputText id="greeting" value="" clientComponent="true"/>
    <trh:script>
    function sayHello(actionEvent)
    var component=actionEvent.getSource();
    //Find the client component for the "greeting" af:outputText
    var greetingComponent=component.findComponent("greeting");
    //Set the value for the outputText component
    greetingComponent.setValue("Hello World !");
    </trh:script>
    </af:form>
        </af:document>
      </f:view>
      <!--oracle-jdev-comment:deviceCategory:pda-->
    </jsp:root>When I run this page in output I get an InputText box and a command button "Say Hello" . When I click on the button it shows message "Hello World" for a while and then page gets refreshes and "Hello World" message disappears.
    Is it possible to retain that message? Is it possible to display that message without clicking command button ? How it can be done - Please tell ?
    Thanks !

    Hey branislav,
    Thanks a lot. I figured out problem in my code after looking at your code.
    Now my following modified code is working fine. Problem was I need not to include input text and command button components in <af:form> tag. Only output text need to included in <af:form> tag.
    <?xml version='1.0' encoding='windows-1252'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
              xmlns:h="http://java.sun.com/jsf/html"
              xmlns:f="http://java.sun.com/jsf/core"
              xmlns:trh="http://myfaces.apache.org/trinidad/html"
              xmlns:tr="http://myfaces.apache.org/trinidad"
              xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
      <jsp:directive.page contentType="text/html;charset=windows-1252"/>
      <f:view>
        <af:document>
          <af:inputText label="Input some text" id="input" clientComponent="true"/>
          <af:commandButton text="Say Hello">
            <af:clientListener method="sayHello" type="action"/>
          </af:commandButton>
          <af:form>
            <af:outputText id="greeting" value="" clientComponent="true"/>
          </af:form>
    <trh:script>
    function sayHello(actionEvent) {
         var  component=actionEvent.getSource(); //Find the client component for the "greeting" af:outputText var
          greetingComponent=component.findComponent("greeting"); //Set the value for the outputText component
          greetingComponent.setValue("Hello World !");
    </trh:script>
        </af:document>
      </f:view>
      <!--oracle-jdev-comment:deviceCategory:pda-->
    </jsp:root>Thanks !

  • Table Output text tool tip does not update on PPR

    We have a adf table with a Lov and a out put text .
    On changing the LOV, the out put text also change . but, on we mouse over on the tool tip does not changed . any suggestions ?
    below code :
    <af:outputText value="#{row.PlanTitle}" id="ot4" partialTriggers="soc3 si2"/>
    However , if we refresh the table or reload after save , the toop tip also get change . but we need to update the tool tip on change the lov . any suggestion ?
    Jdev : 11.1.1.3.0
    browser : all ,

    Hi,
    taking it from:
    +"However , if we refresh the table or reload after save , the toop tip also get change . but we need to update the tool tip on change the lov . any suggestion ? "+
    The autput text component is part of a table ? If so then the table needs to be refreshed as the values in there are stamped. If I am wrong with my table assumption and the output text is part of a form, try setting clientComponent="true" for the output text field
    Frank

  • Get the value of output text box in javascript

    Hi all,
    I am trying to retreving the value of output text box using getElementById('form1:outputText3') but was not able to get it.
    Googled it but didnt find any way to get it on the page itself without going to backing bean
    jdeveloper version 10g
    Thanks in advance

    Hi,
    I think this is because out put text is not a component but text written to the page. So I thin you would have to parse the generated HTML for it or use a inputText field and set it to read only
    Frank

  • How can I output text in a browser window in JAVA?

    How can I output text in a browser window in JAVA?

    "response.getWriter().print()" is the most common method when using servlets

  • Is it possible to implement a truncation of text (a "more/less") function for paragraphs in PDFs?

    I work at a center for public service and we're trying to make our service handbook more user friendly. However, we're not experts when it comes to using Adobe Acrobat X Pro.
    Instead of having to scroll through the many pages of the handbook, we would like to implement a "more/less" function or a truncation of text. Are we able to do this for a PDF?
    It looks something similar to this: http://henrik.nyh.se/examples/truncator/[1]
    At this point however, we're not sure if it's even possible to implement this function into a PDF. Is it possible or are we just wasting our time trying to find a way to do it?
    Thanks for any advice you can give!

    Not really an option for PDFs. You can have stuff on layers that appears or disappears, but unlike web pages the page layout is fixed: everything stays where it is on a page. For more/less to work nicely you need a format where stuff can move down/up to make room or close gaps.

Maybe you are looking for