<div>Hi,</div><div><br></div><div>  Once the release-hangover from Seam 3 is over, I&#39;d like some feedback on the design etc. I tinkered with it a bit a long time ago in</div><div><br></div><div><a href="http://anonsvn.jboss.org/repos/seam/sandbox/modules/spreadsheet/">http://anonsvn.jboss.org/repos/seam/sandbox/modules/spreadsheet/</a> and it resulted in a blog posting at </div>
<div><a href="http://in.relation.to/Bloggers/SpreadsheetsInSeam3">http://in.relation.to/Bloggers/SpreadsheetsInSeam3</a></div><div><br></div><div>Here are some random ramblings on the subject...</div><div><br></div><div>Spreadsheet model</div>
<div>-----------------------------</div><div><br></div><div>I think it would be a good idea to have a generic spreadsheet model. The UI tags (or a JSF table) could then use a builder to generate</div><div>the model which in a final step could then be used to generate the actual binary spreadsheet. This would allow for more room for the user</div>
<div>(by observing events) to modify the model before binary is generated. The same model could also be used for producing ODF documents,</div><div>PDF, HTML, whatever.</div><div> </div><div>Formatting model</div><div>-------------------------</div>
<div><br></div><div>Seam 2 used CSS xls-tags for cascading various formatting from workbook to worksheet and down to cell level. This was OK but had some drawbacks</div><div>when it came to more advanced usage (e.g. different formatting for different rows in a column since the formatting was frozen once calculated for a UI-cell)</div>
<div>I&#39;m tinkering with the idea of formatting rules with &quot;appliesTo(cell) and getFormatting()&quot; semantics (see blog and code) but I&#39;m not sure how to best represent </div><div>those rules in the xhtml. Something like</div>
<div><br></div><div><div><span class="Apple-tab-span" style="white-space:pre">        </span>&lt;e:formatting&gt;</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>&lt;e:font size=&quot;12px&quot;/&gt;</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>&lt;/e:formatting&gt;</div></div><div><br></div><div>That could be placed at different levels (workbook, worksheet, cell etc.) that are then translated into different FormattingRules in the model but I&#39;m afraid</div>
<div>it would clutter down the xhtml file. And I&#39;m not sure how to make the &quot;applies to&quot; dynamic down to cell level. Would it be possible to keep all the rules in one place,</div><div>give then names and the have some EL-function that is consulted if they should be applied to a cell or not? </div>
<div><br></div><div>Delivery mechanism</div><div>-----------------------------</div><div><br></div><div>In Seam 2 there was the DocumentStore servlet for delivery. What will the Seam 3 way be for the reporting module? A JSF 2 resource handler?</div>
<div><br></div><div><br></div><div>Headless JSF rendering</div><div>-------------------------------------</div><div><br></div><div>Has there been any progress in this? Is the Seam 2 swapping-out-the-writer-and-grab-string approach still the current approach? I tried bootstrapping Mojarra</div>
<div>in SE with mocked servletcontexts etc. but never got it to work properly. The idea of JSF in SE for background processing of views is still cute, I think.</div><br>-- <br>---<br>Nik<br>