-
1. Re: rich: pickList components getTargeList () script function how to get the value?
bleathem Nov 15, 2013 3:31 PM (in response to xuruilu)I'm sorry, I'm not following you. Can you please try to more clearly describe the use case you are trying to achieve?
-
2. Re: rich: pickList components getTargeList () script function how to get the value?
xuruilu Nov 18, 2013 8:43 PM (in response to bleathem)I'm sorry, I might describe unclear. Next, I describe the problem in detail.
<rich:pickList id="list" value="#{zhouyi.targetlist}" var="yi" listHeight="200px"> <f:selectItems value="#{zhouyi.sourcelist}" /> <f:converter converterId="yiConverter" /> <rich:column> <f:facet name="header">sequence</f:facet> #{yi.sequence} </rich:column> <rich:column> <f:facet name="header">name</f:facet> #{yi.name} </rich:column> <rich:column> <f:facet name="header">pronounce</f:facet> #{yi.pronounce} </rich:column> </rich:pickList> <a4j:commandButton value="submit" onclick="return test();"></a4j:commandButton>
I ordered the submit button, I want to get getTargeList with javascript in value, such as: # {yi.name}, # {yi.pronounce} value. See my above test () method is wrong, I call test () can not get my desired value. I'm looking forward to your answer, thank you
-
3. Re: rich: pickList components getTargeList () script function how to get the value?
xuruilu Nov 17, 2013 8:53 PM (in response to xuruilu)How no one to help me?
-
4. Re: Re: rich: pickList components getTargeList () script function how to get the value?
bleathem Nov 18, 2013 8:44 PM (in response to xuruilu)Try changing:
onclick="return test();"
to
onclick="test"
-
5. Re: Re: rich: pickList components getTargeList () script function how to get the value?
xuruilu Nov 19, 2013 1:59 AM (in response to bleathem)Thank you for your answer, but you said the problem is not my main issues raised.
var list = comp.getTargetList();
alert(list);
Print out the array of objects, but I want to get an array of objects of the object.for(var x in list)
{
alert(list[x]);
}
Such print out the value of the object is not.
-
6. Re: rich: pickList components getTargeList () script function how to get the value?
bleathem Nov 19, 2013 2:13 PM (in response to xuruilu)The best you'll be able to do is to use jQuery to get a list of selected rows and extract the information you are looking for from the DOM.