Hi folks,

This is probably a long shot, but is it possible to render a component
(and its template) to DOM and eventually a String of markup?

I'm using the DataTables component from tapestry5-jquery [0] in ajax
mode. For the most part it uses standard tapestry elements (BeanModel,
GridDataSource, etc). However in ajax mode the entire contents of the
table is fed back to the DataTables jquery plugin via ajax as JSON in a
special format the plugin epects So rendering parameter blocks (i.e.,
<p:actionsCell>) doesn't work. The "render the block from server-side"
bit here doesn't work for components or page links [1]

Rendering PropertyConduits works normally, and I've even created some
custom PropertyConduits that return some markup rendering pagelinks and
such. But I'd really like to reuse some simple button group components.

I'd love to be able to do something like:

MyComponent myComponent = new MyComponent(paramters)
Dom/String renderedDom = myComponent.render();

Is there any way to do this?

Casey

[0]: http://tapestry5-jquery.com/components/docsdatatables
[1]:
https://github.com/got5/tapestry5-jquery/blob/efc38f955a5494cce18dfdd4553550b2963d6800/src/main/java/org/got5/tapestry5/jquery/internal/DefaultDataTableModel.java#L326

-- 
Casey Link

Outskirts Labs { https://outskirtslabs.com }
Technology for Changemakers


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to