Btw, <a href="https://issues.jboss.org/browse/SEAM-53">https://issues.jboss.org/browse/SEAM-53</a><div><br><div class="gmail_quote">On Thu, Mar 31, 2011 at 16:05, Nicklas Karlsson <span dir="ltr">&lt;<a href="mailto:nickarls@gmail.com">nickarls@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><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/" target="_blank">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" target="_blank">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 style="white-space:pre-wrap">        </span>&lt;e:formatting&gt;</div><div><span style="white-space:pre-wrap">                </span>&lt;e:font size=&quot;12px&quot;/&gt;</div>
<div><span style="white-space:pre-wrap">        </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><font color="#888888">-- <br>---<br>Nik<br>
</font><br>_______________________________________________<br>
seam-dev mailing list<br>
<a href="mailto:seam-dev@lists.jboss.org">seam-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/seam-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/seam-dev</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><div>Dan Allen</div>Principal Software Engineer, Red Hat | Author of Seam in Action<br>Registered Linux User #231597<br><br><div><a href="http://www.google.com/profiles/dan.j.allen#about" target="_blank">http://www.google.com/profiles/dan.j.allen#about</a><br>

<a href="http://mojavelinux.com" target="_blank">http://mojavelinux.com</a><br><a href="http://mojavelinux.com/seaminaction" target="_blank">http://mojavelinux.com/seaminaction</a><br></div><br>
</div>