How to set hyperlink on a text depending on a flag

Hi All,
Can any one help in setting a Hyperlink on a text depending on a flag which is being set in backing bean.
Thanks in Advance.

Not sure what you exactly mean, but you at least can use the rendered attribute of the component or conditional statements in EL.
<h:outputLink value="http://google.com" rendered="#{myBean.booleanValue}" />
<h:outputLink value="#{myBean.booleanValue ? 'http://google.com' : 'http://sun.com'}" />

Similar Messages

  • File adapter-How to set line break in text file-split record into two lines

    Dear Guru's,
    I have to solve following problem with XML (with mulitiple records) to TEXT file scenario using file adapter. I have to output for ever ONE data record in XML always two identical lines in text file. Second line should have a little bit different mapping in few fields like date,... So I did duplicate fileds in my output structure in mapping and need to know how to set line break in the middle and see half of structure in first line and next structure half in second line
    My output structure in mapping is:
    CASHFLOW
    - INTERFACE
    - GESELLSCHAFT
    - ANWENDUNG
    - PRODUKT
    - VERTRAG
    - BETRAG
    - WAEHRUNG
    - DIRECTION
    - BEWEGUNGSTYP
    - FAELLIGKEIT
    - ZINSFESTSTELLUNG
    - ZAHLUNGSTAG
    - RENDITE
    - INTERFACE2
    - GESELLSCHAFT2
    - ANWENDUNG2
    - PRODUKT2
    - VERTRAG2
    - BETRAG2
    - WAEHRUNG2
    - DIRECTION2
    - BEWEGUNGSTYP2
    - FAELLIGKEIT2
    - ZINSFESTSTELLUNG2
    - ZAHLUNGSTAG2
    - RENDITE2
    Question is how can I set on receiving file adapter in Content Conversion Parameters that fields from first structure half INTERFACE...RENDITE should be outputed in one line and fields from second half of structure INTERFACE2...RENDITE2 should start on second line in final text file.
    I'm getting at the moment one line only and I need to know how can set line break so that second line starting with INTERFACE2(CA)...RENDITE2 will start in new line.
    CA,"0100","7","512",20090127010001,-12454762586.6800,"EUR",2,12,2009-01-28,2009-01-27,2009-01-28,"0.0000000",CA,"0100","7","512",20090127010001,-12454762586.6800,"EUR",1,10,2009-01-27,2009-01-27,2009-01-27,"0.0000000"
    This should be final output:
    CA,"0100","7","512",20090127010001,-12454762586.6800,"EUR",2,12,2009-01-28,2009-01-27,2009-01-28,"0.0000000"
    CA,"0100","7","512",20090127010001,-12454762586.6800,"EUR",1,10,2009-01-27,2009-01-27,2009-01-27,"0.0000000"
    My file adapter settings:
    RecordsetStructure=CASHFLOW
    CASHFLOW.fieldNames=INTERFACE,GESELLSCHAFT,ANWENDUNG,PRODUKT,VERTRAG,BETRAG,WAEHRUNG,DIRECTION,BEWEGUNGSTYP,FAELLIGKEIT,ZINSFESTSTELLUNG,ZAHLUNGSTAG,RENDITE
    CASHFLOW.fieldSeparator=,
    CASHFLOW.endSeparator='nl'
    CASHFLOW.fieldNames=INTERFACE2,GESELLSCHAFT2,ANWENDUNG2,PRODUKT2,VERTRAG2,BETRAG2,WAEHRUNG2,DIRECTION2,BEWEGUNGSTYP2,FAELLIGKEIT2,ZINSFESTSTELLUNG2,ZAHLUNGSTAG2,RENDITE2
    CASHFLOW.fieldSeparator=,
    It wont help if I add two identical structures in mapping because in output i would see for multiple entries section with first lines only and after that section with second lines only. And CASHFLOW is one part of more complex mapping ...
    (This is final output structure RecordsetStructure=HEADER,CASHFLOW,CONDITION,REFERENCE,CONTRACT - more sections with different data and all these should have duplicate lines at the end)
    Thanks a lot for any help
    Cheers
    Marian
    Edited by: Marian  Luscon on Jul 14, 2009 11:44 AM

    Hi Ivan,
    right, I did test just for sure.
    Putting constant 'nl' into field CASHFLOW-INTERFACE1 didnt help - still getting one line instead two lines.
    CA ,"0100" ,"7" ,"512" ,20090127GTP101 ,-12454762586.6800 ,"EUR" ,2 ,12 ,2009-01-28 ,2009-01-27 ,2009-01-28 ,"0.0000000" ,'nl' ,"GTP1" ,"7" ,"512" ,20090127GTP101 ,-12454762586.6800 ,"EUR" ,1 ,10 ,2009-01-27 ,2009-01-27 ,2009-01-27 ,"0.0000000"
    So there is still question. Is there any way (mapping,...) how to output always 2 lines in text file for one record in XML. It always does 1 record in mapping structure = 1 line but we need 2 lines ...
    Example:
    Input: 4 records in XML
    Output: 8 lines in final text file ...
    Thanks to you all guys
    Marian

  • InDesign CS6 how to set justification for form text field?

    Hi everyone,
    I've been playing with the ability to create form for PDF file but I haven't figure out how to set a center justification for a text field.  By default it's left.  Same thing for font, the one selected in InDesign while creating the form isn't used when editing the form in Acrobat.
    Do I need to create a paragraph style with a specific name to preserve both attributes?
    Thanks.

    InDesign CS6's forms features are great, but you're looking as version 1.0 of the feature. Those features cannot be set in InDesign.
    Furthermore, if you try to pick a font other than the standard ones at the top of the menu, don't expect that your form users will be able to pick those fonts when they open up the form in Reader or Acrobat. I'm pretty sure that custom fonts are not stored in the PDF form.

  • How to set italic to a text frame with a JS script

    Hello guys,
    I'm a java developper, and for my customer I have to generate some JS scripts for Illustrator CS3/Windows XP.
    In my use case, I need to layout several textframes. Some need to be "bolded", some others have to be underlined, and some need to be italic.
    I found how to set the bold and underline attributes, but for the italic, I can't see any option related to it. I saw the "CharacterAttributes#italics" property, but the description is a bit odd: "If true, the Japanese OpenType
    font supports italics."... it doesn't fit my needs...
    Is it possible to make a text italic with a JS script in Illustrator?

    You will have to use the proper italic form of the font. AI does not support Faux italic or bold.

  • Urgent: How to set content type on upload depending on target folder?

    Hi,
    i have to set the content type of a file uploaded via SMB depending on the folder the file is placed in. All files placed below a certain root directory have to be of my custom content type. All others should be stored as documents of type "Document". Is there an easy way to accomplish this task? I can't assume any specific file extensions and can therefore not register my custom content type to that extension.
    Any hints are welcome.
    Thanks.

    Hi,
    i have to set the content type of a file uploaded via SMB depending on the folder the file is placed in.All files placed below a certain root directory have to be of my custom content type.
    +++ Use an agent to verify the name and extension using the IfsEvent class and EVENTTYPE_CREATEINSTANCE
    All others should be stored as documents of type "Document". Is there an easy way to accomplish this task?
    +++ Those that aren't your custom content type move to a different folder using the agent.
    I can't assume any specific file extensions and can therefore not register my custom content type to that extension.
    +++I've found that registering content type only really affects things like how a browser knows what kind of file it's downloading/looking at (mime type) or how a renderer knows how to render it.
    Any hints are welcome.
    Thanks.

  • (Bash) How to set a variable with text from a file? [SOLVED]

    I'm having a little problem.
    I have textfile with a single line of text. What I want to do is set a variable with that line of text. How do I go about doing that?
    A simple var="text" wont work in this case, since the text in the file changes with another script of mine.
    Thanks in advance.
    Last edited by Aziere (2007-03-27 09:07:03)

    if you have a file with more than one line but you only want the first line you could use 'head'
    VAR=`head -n 1 file`
    Last edited by SiD (2007-03-27 05:58:33)

  • How to Add Hyperlink to Static Text View

    It's possible to add Hyper link or local link(when click that link. then it shows some text in message box) to some part of the Static text view.
    for example, my Static Text view Contains following text,
    Laptop , Desktop, Mobile
    now i want to add that link to Desktop or any other text. like
    Mobile
    kindly help me.

    Hi J Sathish Kumar,
    From your description, it seems that you have a RichEdit Box control and you want to add a hyperlink feature to your RichEditBox control. Could you tell us what type project do you want to use, windows form, WPF or native MFC?
    For using windows form and WPF, you should be easy to find some ways to achieve your goal on the web. For example,
    http://stackoverflow.com/questions/435607/c-sharp-how-can-i-make-a-hyperlink-work-in-a-richtextbox
    For using native MFC, you may need to get the text range, add the underline,change the text color and use wm_notify to notify the parent windows about a click on a hyperlink.
    I make a quick research on the web, and I find this should helpful for this issue.
    http://www.flounder.com/richedithyperlinks.htm
    Best regards,
    Shu Hu
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • [b]How to Set Color of certain text in textArea.append();?[/b]

    Hiya guys
    Could anyone give me some advise on the easiest possible way to set certain text 1 color and other text a different color when appending a string to a textarea.
    Thanks in advanced!

    You can't. Use a JTextPane:
    http://forum.java.sun.com/thread.jspa?forumID=57&messageID=1408602

  • How to set size of rectangle dynamically depending on form size ?

    Hi,
    why does the size of a rectangle is not depend on the fom size? Can i set the size of my rectangle dynamically, depending on the user form size?
    best regards
    Markus

    Markus,
    I use the following in the FormResize event:
        Private Function ItemHandler_FormResize(ByRef oCompany As SAPbobsCOM.Company, _
                ByRef oApplication As SAPbouiCOM.Application, ByRef pVal As SAPbouiCOM.ItemEvent) As Boolean
            ItemHandler_FormResize = False
            oForm = oApplication.Forms.GetForm(pVal.FormTypeEx, pVal.FormTypeCount)
            Try
                oForm.Freeze(True)
                If pVal.BeforeAction = False Then
                    oForm.Items.Item("FldRtg").Width = oForm.Width - 20
                End If
                ItemHandler_FormResize = True
            Catch ex As Exception
                oApplication.MessageBox("ItemHandler_FormResize(): " & ex.Message.ToString)
            Finally
                oForm.Freeze(False)
            End Try
        End Function
    Regards,
    Vítor Vieira

  • How to set folder view to text wrap the tittles?

    Hi!
    I always use folder view to go through my documents, but some of the folder names are too big so it only shows the beggining and the end of each tittle. So it looks like this...
    How can I change that to show more lines and wrap the texts?
    kind of like this when you select it, but with more lines?

    Maybe this:
    Show Full File & Folder Names on the Mac Desktop
    Show Long File & Folder Names on the Mac OS X Desktop

  • How to set  color of a  row depending on the value of column in JTable?

    Hi All,
    I have a JTable that add rows when the user clicks on the button. In this way there can be any no. of rows in my table. My table contains five columns. When a new row is added , it is added with new data each time. Also the data of the rows keep on changing time to time.
    My problem is that when the data value for the third column comes out to be -ve then color of the row should be red and if its value is +ve then the color of the row should be green.
    I have tried for this in the way but it is not working properly.
    public Component prepareRenderer(TableCellRenderer renderer,int rowIndex, int vColIndex)
         Component c = super.prepareRenderer(renderer, rowIndex, vColIndex);
    if(rowIndex<table.getRowCount() && change<0 )
              c.setForeground(Color.red);
              c.setFont(new Font("TimesRoman",Font.PLAIN,11));
    else if(rowIndex<table.getRowCount() && change>0)
    c.setForeground(new Color(20,220,20));
         c.setFont(new Font("TimesRoman",Font.PLAIN,11));
    return c;
    where change is the value of the third column.
    Any help is highly appreciated.
    Thanx in advance.
    Regards,
    Har Krishan

    Perhaps you'll find this link useful. It gives a general idea of how you can create and adjust your custom renderer:
    http://www.senun.com/Left/Programming/Java_old/Examples_swing/JTableExamples4.html
    Hope it helps.
    Eugene

  • How to set up a scrolling text box?

    I have a page in my muse site with a diagram that fills up 2/3 of the page width. Next to it I have explanatory text that is too long to view all at once. Is there a way to make the text scroll without having the graphic move? I attach a sketch for the page structure I am trying to achieve- Thanks, David

    Hi,
    Here is a simpler way, Thanks to Imagine James.
    In Muse, Object menu > Insert HTML...
    Paste the code below and adjust details (width, height, colours... in the first line.
    <!-- Copy from here -->
    <div style="width:450px; height:285px; overflow:auto; color:#000000; font-size:18pt; padding-left:15px; padding-right:15px; text-align: justify; text-justify: newspaper; font-family:Open Sans;">
    Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras accumsan ullamcorper convallis. Curabitur ultrices augue suscipit sapien fringilla pulvinar. Duis molestie malesuada ligula a pellentesque. Sed accumsan ultrices congue. Nunc vitae tristique leo. Pellentesque fermentum sem at feugiat elementum. In eleifend augue vitae turpis suscipit, et dignissim felis vehicula. Pellentesque volutpat sollicitudin auctor. Mauris augue erat, placerat sit amet consectetur at, volutpat a eros. Aliquam erat volutpat. Aliquam dictum volutpat nulla, non dignissim massa interdum ac.
    Praesent bibendum, turpis a ornare tempor, elit magna eleifend orci, non fermentum erat lectus vel ante. Cras facilisis turpis a accumsan adipiscing. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Maecenas ante nisl, vestibulum eget turpis non, ullamcorper rhoncus lacus. Nam dignissim ante eu magna condimentum facilisis. Maecenas aliquam turpis pulvinar, accumsan metus id, laoreet libero. Donec tortor orci, vestibulum sed augue nec, elementum venenatis tortor. Sed pretium tempus massa, quis sagittis mi iaculis ac. Vestibulum pellentesque neque nibh, id convallis eros sollicitudin et. Suspendisse potenti. Cras fringilla in ipsum eu vulputate.
    Suspendisse vel aliquet leo. Praesent non mi eget lacus feugiat mollis ut vel nisl. Cras vel sem at mi facilisis viverra quis pharetra elit. Curabitur eget porta risus, vitae luctus tellus. Vivamus facilisis ante enim, ut volutpat sapien facilisis et. Mauris vel ante sit amet dui elementum convallis. Aenean id ante suscipit, pretium ipsum ut, aliquet augue. Vestibulum adipiscing vehicula nunc, nec lacinia nunc fermentum in. Nam vitae dui scelerisque ligula pulvinar vulputate eget ac orci.
    Ut ut interdum augue. Phasellus ut justo tristique, dictum arcu vitae, iaculis enim. Nam pellentesque non metus sit amet commodo. Aliquam pharetra, urna quis pulvinar convallis, leo massa dapibus dui, a elementum diam turpis vel neque. Maecenas eget mollis velit, eu commodo elit. Fusce luctus placerat lectus, sed scelerisque nunc vestibulum at. Aenean vitae lorem ut eros aliquet auctor quis eget purus. Maecenas aliquet dui in diam dignissim, vestibulum dapibus quam condimentum.
    Nam et mi est. Donec nibh erat, facilisis nec faucibus eu, viverra ac elit. Ut est felis, porttitor at libero eu, eleifend blandit tortor. Maecenas nec augue vitae neque auctor tempus. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Sed libero diam, interdum a pellentesque sit amet, sodales ac erat. Vestibulum vel elementum mauris. Nullam aliquam est egestas mauris feugiat tincidunt id sed dui. Ut sed elit vitae eros mollis ultrices. Vestibulum pretium vitae leo id mollis. Cras sit amet imperdiet orci. Curabitur auctor commodo blandit. Vivamus non congue ante, non tincidunt urna.
    </div>

  • How to set the printdocument tool text, for print by the thermal printer?

    Hello, is that be the same as the A4 paper printer?. I used for-loop-condition for print series of the pages, but the A4 printer printed for me 1 page only, but I asked it, for print more than 50 papers, by the thermal printer, by I used for-loop within
    the printdocument tool text, but I not the now tested it by the thermal printer, is that the for-loop succeed when I use it by the thermal printer? where the A4 printer printed 1 paper only for me. where I want series of the pages where I used for-loop-condition,
    and I want that succeed by the thermal printer, and is that be true? and what the true if that was wrong?

    Hi,
    Based on your desccription, I'm afraid that it is not the correct forum since this forum is to discuss the VS IDE.
    If you want to achieve it in code, I suggest you post this issue to the specific language development forum like C#, VB or others.
    Reference:
    https://social.msdn.microsoft.com/Forums/vstudio/en-US/7b07c516-46c5-46ab-a83a-92432b1e262f/print-multiple-pages-per-sheet-in-c
    https://social.msdn.microsoft.com/forums/windows/en-us/b6c5a867-ffa6-4e46-b6de-543b645e73c8/printing-and-previewing-multiple-pages-in-c
    http://www.codeproject.com/Tips/733680/Printing-and-Previewing-multiple-pages-in-Csharp
    Best Regards,
    Jack
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to set tabs and how to set them outside the margins of my main body of text

    I type lots of docs where I have a body of text, indented, and then there is an action letter, A,B,C etc, out to the right.  Can't see how to set the body of text plus separate tab outside the margin in Pages.  Could do it in MS Word.  Pages looks great, but I'm stuck on a few things I used to do.  Can anyone help?
    Thanks

    Hi Peter
    Thanks for the reply.
    Here is a sample of the text:
    you'll see that the D, C, B etc are squashed up to the text, I can't move their tab outside the margin.  On Word (dare I say it?) I could set my right hand margin and still have a tab further out.  Don't know that your anchoring idea is the thing.  Is there another way to limit my text?  I wonder about columns, although then all the ABCs will be in the second won't they?
    Any ideas?
    Thanks again
    Nonie

  • Set Infoobjects as Source System dependent

    Hi Experts,
    How we set Infoobjects as source system dependent. Where can I find the flag or check box to make it Source System dependent
    Cheers,
    DV

    HI,
    Simple..
    GOTO Infoobject change mode.
    click on MASTERDATA /TEXTS TAB
    There we have checkbox " Character . is Infoprovider " you select that and give the Info area name  and actvate it
    Then you can find that in INFOPROVIDER MENU
    and SELECT THE INFOAREA WHICH YOU HAVE GIVEN in infoobject.
    I hope it will help you.
    Regards,
    Yerrabelli.

Maybe you are looking for