fixed image renders

This commit is contained in:
Peter Schojer 2008-09-09 11:48:53 +00:00
parent 6bf2319a9e
commit a7da97f27d
2 changed files with 7 additions and 1 deletions

View File

@ -61,8 +61,14 @@ void ImageRenderer::renderHead(const Renderable* pRenderable, const RenderContex
poco_assert_dbg (pRenderable->type() == typeid(Poco::WebWidgets::Image)); poco_assert_dbg (pRenderable->type() == typeid(Poco::WebWidgets::Image));
const Image* pImage = static_cast<const Poco::WebWidgets::Image*>(pRenderable); const Image* pImage = static_cast<const Poco::WebWidgets::Image*>(pRenderable);
ostr << "new Ext.Panel({border:false,bodyBorder:false,"; ostr << "new Ext.Panel({border:false,bodyBorder:false,";
ostr << "id:'" << pImage->id() << "',";
ostr << "html:"; ostr << "html:";
writeHTML(pImage, ostr); writeHTML(pImage, ostr);
ostr << ",closeAction:'hide'";
if (!pImage->isVisible())
{
ostr << ",hidden:true";
}
ostr << "})"; ostr << "})";
} }

View File

@ -174,7 +174,7 @@ void RequestHandler::handleAjaxRequest(Poco::Net::HTTPServerRequest& request, Po
it = args.begin(); it = args.begin();
RequestProcessor* pProc = _pApp->getAjaxProcessor(id); RequestProcessor* pProc = _pApp->getAjaxProcessor(id);
poco_assert_dbg (pProc); //poco_assert_dbg (pProc);
if (!pProc) if (!pProc)
{ {
response.setStatusAndReason(Poco::Net::HTTPResponse::HTTP_INTERNAL_SERVER_ERROR, "no requestprocessor found"); response.setStatusAndReason(Poco::Net::HTTPResponse::HTTP_INTERNAL_SERVER_ERROR, "no requestprocessor found");