Hi!

I am using the opensource software Alfresco and I am using their tag a:
richList. I don't know if there is similar tag in JSF or other languages but
here the goal is:

I have a MapNode (or Hashtable me think) with some properties inside.
This table contains several nodes for example:
Id=Node1, name=person1, age=25, sex=female
Id=Node2, name=person2, age=25, sex=male
...

Then I want to display the table containing all nodes with all of their
properties except the id so I am using a richList as follow:

<a:richList id="personList" [...]
value="#{MyClass.personNodes}" var="r">

<a:column id="col00" width="12%" style="padding:2px;text-align:left">
<f:facet name="header">
<a:sortLink label="Person" value="name" styleClass="header"/>
</f:facet>
<h:outputText id="name" value="#{r.name}" />
</a:column>

<a:column id="col00" width="12%" style="padding:2px;text-align:left">
<f:facet name="header">
<a:sortLink label="Age" value="age" styleClass="header"/>
</f:facet>
<h:outputText id="age" value="#{r.age}" />
</a:column>
...

Then it is possible to click on the column description name "Person" to sort
the names by alphabetical order. 

The problem I have now is that I would like the user to select some persons
in this list and getting the list of selected persons in my program. I was
thinking of putting a SelectBooleanCheckbox in front of each row of this
table but then I cannot get back the node associated to the checkbox. If I
am doing something like this:

H:selectBooleanCheckbox id=ok value="#{r.personAuthorized}"

Then this checkbox will be checked if r.personAuthorized is true but I will
not get the value of this checkbox in my nodes when leaving this page no?

Thanks for your help,
Sophie





Reply via email to