jakartaee / faces

Jakarta Faces
Other
103 stars 55 forks source link

Programmatic manipulation of list items #989

Open eclipse-faces-bot opened 13 years ago

eclipse-faces-bot commented 13 years ago

JB> 3) programmatically manipulation of an item in a displayed list - JB> The is ok, but ASP.NET ups the ante once again by JB> letting you raise a method on the backing class to easily manipulate JB> the child components for the current row

JB> Example tag

JB> <asp:Repeater ID="rptEvents" runat="server" JB> OnItemDataBound="handleRepeaterRow" >

JB> .... child components here

JB> </ asp:Repeater>

JB> Corresponding method on the backing class

JB> protected void handleRepeaterRow(object sender, JB> System.Web.UI.WebControls.RepeaterItemEventArgs e)

JB> this is REALLY powerful as it provides an excellent way to solve JB> issue #2 plus a whole lot more

Affected Versions

[1.1, 1.2, 2.0, 2.1]

eclipse-faces-bot commented 5 years ago
eclipse-faces-bot commented 13 years ago

@glassfishrobot Commented Reported by @edburns

eclipse-faces-bot commented 13 years ago

@glassfishrobot Commented lamine_ba said: One solution of this problem could be to attach to the component an event or an action to be executed? Now the missing piece is the intention of the developer? What he want to do in the server side? what does he need?

1) The current index 2) The current Object 3) the current UI representation of the current object

eclipse-faces-bot commented 13 years ago

@glassfishrobot Commented lamine_ba said: JB> Yes to all of the above. As proposed in the JIRA item I think the ability to call a method on the 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? "

eclipse-faces-bot commented 10 years ago

@glassfishrobot Commented @edburns said: Set priority to baseline ahead of JSF 2.3 triage. Priorities will be assigned accurately after this exercise.

eclipse-faces-bot commented 10 years ago

@glassfishrobot Commented @manfredriem said: Setting priority to Minor

eclipse-faces-bot commented 7 years ago

@glassfishrobot Commented This issue was imported from java.net JIRA JAVASERVERFACES_SPEC_PUBLIC-989