myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gerald Müllan" <bierbra...@gmail.com>
Subject Re: Selectable DataTable or similar to that
Date Mon, 06 Nov 2006 18:18:23 GMT
Hi,

well, there should be a more nicer solution in order to achieve this.
Have a look at the sandbox-examples page. An addition to t:dataTable
does exist to get one row selected:

http://example.irian.at/example-sandbox-20061106/selectOneRow.jsf

Should be exactly what you need?

cheers,

Gerald

On 11/6/06, Jeff Bischoff <jbischoff@klkurz.com> wrote:
> Damar,
>
> I would say yes, dataTable is the right component for that. I have at
> some point done all three items which you wish to do. As for some
> pointers... well there is this [1], though I have a table with
> checkboxes, and I didn't need any javascript.
>
> [1] http://wiki.apache.org/myfaces/ManagingCheckboxes
>
> Regards,
>
> Jeff Bischoff
> Kenneth L Kurz & Associates, Inc.
>
> Damar Thapa wrote:
> > Hi,
> >
> > I have the following snapshot of my page:
> >
> > <h:selectOneMenu value="#{applicationProcess.courseTitle}">
> > <f:selectItems value="#{applicationProcess.courses}"/>
> > </h:selectOneMenu>
> >
> > <t:dataTable var="applicants"
> > value="#{applicationProcess.applications}" border="1"
> > preserveDataModel="true">
> > <t:column>
> > <h:outputText value="#{applicants.firstName}"/>
> > </t:column>
> > ……..
> > ….
> >
> > </t:dataTable>
> >
> > <h:commandButton action="processSelectedItem" value="DoSomthing"/>
> >
> > Basically, what I have to do:
> >
> > (1) I choose the option in <selectOnMenu> option, and based on the
> > option chosen here, it brings in the relevant data in <dataTable>.
> >
> > (2) The rows (records) displayed in <dataTable> has to be selectable,
> > possibly with check boxes, and
> >
> > (3) After completing records selections in <dataTable>, I click
> > <commandButton>, which will trigger the event that processes the
> > selected records.
> >
> > How do I do this? Is DataTable right component for this purpose? How
> > can I make record in dataTable selectable with checkboxes? Any
> > examples on this?
> >
> > Any pointers would be highly appreciated.
> >
> > With regards,
> >
> > Damar
> >
> >
> >
>
>
>


-- 
http://www.irian.at

Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German

Professional Support for Apache MyFaces

Mime
View raw message