Skip to main content

Posts

Showing posts with the label select one choice

ADF Table dependant list select one choice : Thing I learned being stupid final

It ended up the source of all my problems was an invalid long to string conversion while rendering my select items. So if you are having endless hassles with a dependent select box in a table try this when you are rendering the lists to make sure you are not rendering a string and matching on long or int:     public List convertItem(List dataItems) {         ArrayList covertedList = new ArrayList ();         if (dataItems != null) {             for (Site dataItem : dataItems) {                 SelectItem item = new SelectItem(new String(dataItem.getId()), dataItem.getDescription());                 covertedList.add(item);             }  ...

ADF Dependant select items in a table: Things I learned being stupid

Hard hard thing to do - table of dependant select items that you can add new rows to. (backing bean driven) (When you add a new row it keeps values from the previous row) In my search for the answer I made an forEach act like a table - by using the f:attribute to pass through the current row - crazy but I hopw this helps someone sometime. Stuff I learned             <af:selectOneChoice label="#{labelBundle['choice_lbl']}"                                 id="soc1" value="#{row.choiceId}"                                 valueChangeListener="#{pageFlowScope.testBean.choiceValueChange}"                                 required="true"                     ...