[JAVASERVERFACES_SPEC_PUBLIC-989] Programmatic manipulation of list items Created: 25/Apr/11 Updated: 01/Aug/14
|Affects Version/s:||1.1, 1.2, 2.0, 2.1|
|Remaining Estimate:||Not Specified|
|Time Spent:||Not Specified|
|Original Estimate:||Not Specified|
JB> 3) programmatically manipulation of an item in a displayed list -
JB> Example tag
JB> <asp:Repeater ID="rptEvents" runat="server"
JB> .... child components here
JB> </ asp:Repeater>
JB> Corresponding method on the backing class
JB> protected void handleRepeaterRow(object sender,
JB> this is REALLY powerful as it provides an excellent way to solve
|Comment by lamine_ba [ 25/Apr/11 ]|
One solution of this problem could be to attach to the <ui:repeat> component an event or an action to be executed?
1) The current index
|Comment by lamine_ba [ 27/Apr/11 ]|
JB> Yes to all of the above. As proposed in the JIRA item I think the ability to call a method on the <ui:repeat /> would be optimal. Forgive my pseudo code but maybe something like this:
public void handleRepeatItem(Object currentObjectFromCollection, UIComponent currentContainerHoldingChildComponents)
MLB> Thus you can programmaticaly create an UI representation for your object and attach this representation to its UI container (Builder Pattern). From a programmer perspective, I can only appreciate this solution which is really scalable at the condition you don't keep the UI reference (UIComponent currentContainerHoldingChildComponents). Once we have this feature, I bet that any programmer will say " Oh! I love it so much. I have now the freedom to do whatever I want" and I bet that any web designer will say " Oh! I hate it so much. I can't program and I can't help. Who can save a wretch like me? "
|Comment by Ed Burns [ 01/Aug/14 ]|
Set priority to baseline ahead of JSF 2.3 triage. Priorities will be assigned accurately after this exercise.
|Comment by Manfred Riem [ 01/Aug/14 ]|
Setting priority to Minor