fixed events

This commit is contained in:
Peter Schojer
2008-09-18 12:19:11 +00:00
parent b1c5c8b484
commit 4d95e3bf49
7 changed files with 45 additions and 2 deletions

View File

@@ -43,6 +43,7 @@
#include "Poco/WebWidgets/Form.h"
#include "Poco/WebWidgets/WebApplication.h"
#include "Poco/WebWidgets/RequestHandler.h"
#include "Poco/NumberFormatter.h"
namespace Poco {
@@ -131,6 +132,8 @@ void TextFieldCellRenderer::writeCellProperties(const TextFieldCell* pCell, std:
ostr << "}"; // close listeners
}
if (pOwner)
WebApplication::instance().registerAjaxProcessor(Poco::NumberFormatter::format(pOwner->id()), const_cast<TextFieldCell*>(pCell));
}
}

View File

@@ -41,6 +41,7 @@
#include "Poco/WebWidgets/ToggleButtonCell.h"
#include "Poco/WebWidgets/ToggleButton.h"
#include "Poco/WebWidgets/RequestHandler.h"
#include "Poco/NumberFormatter.h"
namespace Poco {
@@ -101,6 +102,10 @@ void ToggleButtonCellRenderer::renderProperties(const ToggleButtonCell* pToggleB
{
WebApplication::instance().registerFormProcessor(pToggleButtonCell->getOwner()->getName(), const_cast<ToggleButtonCell*>(pToggleButtonCell));
}
if (pButton)
{
WebApplication::instance().registerAjaxProcessor(Poco::NumberFormatter::format(pButton->id()), const_cast<ToggleButtonCell*>(pToggleButtonCell));
}
}