Project

General

Profile

Actions

Bug #593

closed

no signal generation from WTableCell in HTML-version

Added by Boris N about 14 years ago. Updated almost 14 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
11/05/2010
Due date:
% Done:

0%

Estimated time:

Description

Wt::WTable *table = new Wt::WTable(this);

Wt::WTableCell *cell = table->elementAt(0, 0);

cell->addWidget(new Wt::WText("Item @ row 2"));

cell->clicked().connect(...);

This works in ajax-version, but not in HTML-version

Submit button for clicking seems to be added before whole table

Actions #1

Updated by Koen Deforche about 14 years ago

  • Status changed from New to Feedback

Hey Boris,

Unfortunately, there is no way to make this work in an HTML-version: listening to click signals in a plain HTML-version can only be done on elements. Therefore Wt wraps the widgets with clicked() handlers in a button. This can be done for most widgets, but not for a table cell (

).

So when Ajax is not available, you would need to listen on the cell's contents rather than the cell itself.

Regards,

koen

Actions #2

Updated by Koen Deforche almost 14 years ago

  • Status changed from Feedback to Closed
Actions

Also available in: Atom PDF