DataTable + Button

Dear All,

My requirement goes here:-

Initially the data in Items table are populated with <h:datatable>

Data contains..Name1 and Name2.

and I have added a <column> with <h:button image="scheduler.gif"> .(always red in color) to the data table.

so 3 colums now.

Now when I click on the image a panel popup the data corresponding to the row has to be populated.

Here the scheduler panel popup has to options to schedule the data i.e. From date and to date fields or from sunday to sat with the checkboxes.

At the scheduler bean I have a method schedule which populates the panel with empty fields .

I can get the id of the particular row with the help of binding atribute to the data table.

so while saving the data I can get the pk of item name, scheduler details and save it in to the scheduler table.

My question is like how can I display two different buttons(green and red)? (Dta table)!!

where should I write this logic and how can i do this in data table..bcoz my data table is associated with items array list.(name 1, name 2)

How can I populate the data if the item has been scheduled and how to cancel the scheduler and immediately make it to red?

My scheduler table has following fields..sun to sat flag (varchar2 (1) .y/n and to and from dates + fk of item!

Thanks and Regards,

Kranthi

[1416 byte] By [Aurora_Greena] at [2007-11-27 4:40:54]
# 1
Duplicate topic, please proceed here: http://forum.java.sun.com/thread.jspa?threadID=5173655
BalusCa at 2007-7-12 9:52:12 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...