I have a problem using the h: selectOneRadio
. I have a list of items that are coming back which needs to be displayed. I'm trying something like this:
& lt; H: SelectionOrderIDO ID = "Select Plan" layout = "Page Direction" & gt; & Lt; F: selection item value = "# {detailsHandler.planList}" /> & Lt; / H: selectOneRadio & gt;
And there is a list of plan list schemes defined as plan:
public class scheme {secure string ID; Protected string partner; Safe string shortName; Protected string value; Protected boolean service; Protected Boolean isOption; // All recipients with / sets}
The text that appears for each radio button is actually in a property file, and to fill some value into the parameter in the text Need beans For example, my property file contains the text:
plan_price = The price of this plan is {0}.
I was hoping to do something like this:
& lt; F: selectItems value = "& lt; h: outputFormat value =" # {i18n. Plan_price} "& gt; & lt; f: Ultimate Price =" # {planHandler.price} "& gt; & lt; / h: Output Format & gt;" / & Gt;
Usually if this is not a h: selectoneradiio
component, if it's just text then I use h: outputFormat
F: To display a message called
tag, and enter a key that has the backing bean. Does not work here, does anyone have any idea how can I deal with it? i18n
in my .property
file, enter the absolute
I am returning a list of plans with my own prices and the text displayed is done in the property file
thanks
< P> I am able to solve the above issue after the recommendation given below. But now I have another question: Every radio button item should look like this:
Click here ** to see what's included. Cost is XX
Now the above which is displayed for each radio button should have a hyperlink to "here" which users can click and take a dialog box up with more information needed. I can display the above sentence, but how can I make "here" clickable?
The above is displayed which is labeled for SelectItem (object value, string label) that is back.
Any idea was very appreciated.
& lt; F: selectItems / & gt;
should type a value or type of category Javax.faces.model.SelectItem
.
You can set output labels in the manufacturer of SelectItem. I think you can access your property file from the backing bean. The method to get selectItems will look something like this:
public list & lt; SelectItem & gt; GetPlanItems () {List & lt; SelectItem & gt; List = New Arrestist & lt; SelectItem & gt; (); (Plan Plan: Planlist) {String Label = BuildPlanPreceleLabel (plan.getPrice ()); List.add (new selection ITM (plan, label)); } Return list; }
Except for buildPlanPriceLabel
as a drill for the reader.
Comments
Post a Comment