Ben Langhinrichs

Photograph of Ben Langhinrichs

E-mail address - Ben Langhinrichs

February, 2011
  01 02 03 04 05
06 07 08 09 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28

Search the weblog

Genii Weblog

Civility in critiquing the ideas of others is no vice. Rudeness in defending your own ideas is no virtue.

Wed 9 Feb 2011, 03:40 PM
Coming soon to a database near you, but with a few twists you might not expect. (And like the Lotusphere Sessions db... completely unauthorized.)

IdoSphere Sessions

Copyright 2011 Genii Software Ltd.


Wed 9 Feb 2011, 10:49 AM

On page 67 of Mastering XPages (What? You don't have Mastering XPages yet? Well, we're hardly going to wait around a week for it to get delivered, so you can order it for Kindle at Mastering XPages - Kindle edition and look for Chapter 4, listing 4.18), there is a discussion about filling in content for a rich text field using escaped HTML with the xp:inputRichText tag.

So, our second method will be GeniiRTChunk.GenerateHTML. The general help for the method is below, but we will use a very specific set of parameters which I will get to later.  This will allow us to do some fancy tricks, but will also use the Midas LSX's high fidelity rendering engine.

GenerateHTML method  

Version added: 2.21

Converts the specified chunk into HTML controlled by the various arguments and properties, and returns the result as a text stream. Result can be  complete, compliant, well formed  HTML or XHTML, or it can be a compliant fragment of HTML or XHTML that can be embedded in an HTML or XHTML result from elsewhere.  Ideal for use with agents generating HTML rapidly and completely but needing to incorporate rich text fields in the results.  Please note that style mappings created through the SetStyleMapping method will also effect HTML and XHTML generation.  The ClearStyleMappings method can be called to eliminate previously created style mappings.
Defined in
GeniiRTChunk class
textgeniiRTChunk.GenerateHTML(subdefinition [html_type  [properties]])
String.  Optional.  The definition of the subchunk, or "" if the whole chunk should be used.
String.  Optional.  Currently "HTML" and XHTML are the only valid options, but in future versions the default may change.  HTML refers to compliant HTML 4.01, while XHTML refers to compliant XHTML 1.0.
String.  Optional.  Properties which control the generation of the HTML are defined in the document Working with HTML generation.  In addition, there is a property called OutputToEvent which can be set to "Yes" or "No".  If it is set to "No" or not set at all, the return value for the GenerateHTML call will be all of the HTML generated concatenated together.  If the size is greater than 64KB, the result will be truncated.  If the OutputToEvent property is set to "Yes", an ActOnText event will be triggered for each 8000 characters (roughly), and all limits on the size of the HTML to be generated are removed.

Copyright 2011 Genii Software Ltd.


Wed 9 Feb 2011, 08:20 AM
The Lotusphere Sessions db is taking on its traditional role of storing links to blogs, slideshare, websites and anywhere else that people have chosen to share their presentations and other resources with the wide world. Just replicate and go to the Resource Links view.

Inside each presentation, you will find links. While there, look at the Additional Resources below for books, courses, webcasts and other items that might be relevant to you. Click on any one for more information. 

Note: Chris Miller made the excellent point that the Lotusphere-2011 Slideshare group is doing well. The reason I am continuing to add these in the Sessions database is that not everybody puts their slides on Slideshare, as evidenced by the 21 presentations in that group and the 40 I have listed. That said, I encourage people to add their slides to the Slideshare group, as not everybody is going to replicate andd check the Sessions db.

Copyright 2011 Genii Software Ltd.


Wed 9 Feb 2011, 07:41 AM
I greatly appreciate the feedback I go on my Web Editors resource page, and have worked on it some more. Could any of you more sophisticated web developers, and other generally smart people, take a look and see what you think.  If you could start with the main page, and then take a look inside one or two editors, but specifically inside the entry for TTW WYSIWYG Editor, not because it is the best, but because it has the in-line demo I am planning to add to as many of the editors as possible.

Any thoughts or suggestions?  Information that would be better inside the view or inside the document?  Navigation tips?  

I am still going through and validating information for each editor, which takes time as some have died and some have simply moved, but feel free to leave feedback on any of them if you know something I ddon't.

Copyright 2011 Genii Software Ltd.