Solved

How to make a link only to a part of a text in JSF

Posted on 2014-04-07
1
165 Views
Last Modified: 2014-04-15
OK, I have a p:commandLink.
This commandLink's' text changes (based on some conditions) from the server side bean. The text string showing in the p:commandLink has this format:

RR999 : The description

RR999 is the link part and "The description" is the description of RR999 which is picked up from a database. RR999 changes like RR891, RR215 RR013 etc.

So my question is how to make the string "RRR999 : The Description" whose ONLY the RR999 part is underlined link and the rest is normal text.

The aboe must be done from a bean.
0
Comment
Question by:prain
1 Comment
 
LVL 35

Accepted Solution

by:
girionis earned 250 total points
ID: 39988075
If you put all the text inside a commandLink element then all the text will be highlighted. You will need to break the text into two components. Have your bean return only the RR999 which you can put inside the commandLink and then have another method in the bean that only returns the description, and put this description outside the commandLink.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
squareUp  challenge 22 133
where is session ID cache stored 1 47
groovy example issue 10 90
How to only allow authenticated (logged in) users to access Spring restful service 3 48
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

896 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now