Re: DataGrid and multiple renderers

From: Date: Thu, 28 Sep 2006 13:01:27 +0000
Subject: Re: DataGrid and multiple renderers
References: 1 2 3 4 5 6 7 8 9 10 11 12  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-25274@lists.php.net to get a copy of this message
Chris Boget wrote:
confused here. It seems you are taking a DB table - rendering as XML and then paging this ? I have never seen this in any Appy before - usually render the DB table as HTML then offer an XML download of the result set ? Anyway .... I need to test more to see if this is possible.
In concept, that is exactly what I'm trying to do. But in practice, I'm finding that it is exceptionally difficult to implement (properly) and is probably why you've never seen it done that way. Even if I can get all the paging code when adding the PAGING renderer (which, btw, is working exactly as Mark described using his code; thank you Mark!) and stick it in a sibling node, all the html will get turned into entities and thus make the links unusable.
Ah, now we're getting closer what your real problem is. As described in our discussion a few days ago, the HTML tags need to be translated into entities to get valid XML. If you don't like this, you could just overload the XML renderer and change line 176 so that it does not convert the data into entities. I'm not really sure yet, what you're really trying to do and what you expect, but maybe you want to use getOutput() instead of render() to avoid direct rendering and being able to do with the XML or paging string what you want. Regards, Mark

« previous php.pear.general (#25274) next »