How do I edit the contents of a datatable row?

[nobr]I hope I post this in the rights spot...

I am using JBoss Seam

I am trying to set up a simple but effective way to edit simple information.

My problem is, whn I try to inject the object from the row I try to edit, I get the object in its unchaged mode, and I can't find the changes anywhere.

Do you have ideas how to get the changes?

In my stateful sessionbean @Name("aclList")

@DataModel("acls")

private List<ACL> acls;

@DataModelSelection("acls")

@Out(required=false)

private ACL selAcl;

@DataModel("rights")

private List<ARO> rights;

@DataModelSelection("rights")

@Out(required=false)

private ARO selAro;

+ the metods to fill the Lists...

In the stateless action bean @Name("aclAction")

@In(required=false)

private ACL selAcl;

publicvoid edit(){

System.out.println("ACLAction:edit() :: " + selAcl);

}

This is my form in the XHTML page

<h:form>

<h:dataTable value="#{acls}" var="selAcl" rendered="#{acls.rowCount>0}">

<h:column>

<f:facet name="header">Resource</f:facet>

#{selAcl.axo.name}

</h:column>

<h:column>

<f:facet name="header">Right</f:facet>

<h:selectOneMenu id="selAro" value="#{selAcl.aro.ID}">

<si:selectItems value="#{rights}" var="aro" label="#{aro.name}" key="#{aro.ID}"/>

</h:selectOneMenu>

</h:column>

<h:column>

<f:facet name="header">Valid</f:facet>

<h:selectBooleanCheckbox value="#{selAcl.valid}"/>

</h:column>

<h:column>

<s:link action="#{aclAction.delete}">Delete</s:link><br/>

<s:link action="#{aclAction.edit}">Change</s:link>

</h:column>

</h:dataTable>

</h:form>

[/nobr]

[2922 byte] By [fredricpa] at [2007-11-26 17:54:45]
# 1
I don't have experience with Seam yet, but I guess you just needs an extra mapping layer.See http://balusc.xs4all.nl/srv/dev-jep-dat.html how to use datatables. You can change "Do your DAO thing" by your Seam thing.
BalusCa at 2007-7-9 5:07:49 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...