Andrew Pollack's Blog

Technology, Family, Entertainment, Politics, and Random Noise

XPages: Is this a show stopper for you?

By Andrew Pollack on 07/02/2008 at 02:51 PM EDT

There's a control missing from XPages in Beta 1. I honestly don't remember (if I was ever told) if its in the plan or not because I never thought to ask about it. I guess it never even occurred to me that it was missing until I tried building a version of this blogsite using XPages.

At present - speaking of Domino 8.5 Public Beta 1 - there is now way to drop a Rich Text control onto an XPage, bind it to a rich text field (e.g. BODY) on a document you've bound as a data source, and have it render the rich text as html on your page. If the Rich Text is stored as MIME, I think you can do this just fine. But most Rich Text isn't. Its stored in native notes CD records.

Sure, you could stick an IFRAME tag on there and load just the body in that way. You could call in agent code with an http request, pull the html, parse the "BODY" part out and then shove it onto the form. Both of those are bad alternatives.

For me to deploy, I'd have to convert thousands of documents from CDRECORD to MIME and store the rich text as mime.

This is what I need:

a) A rich text field control that will render the cdrecord data from the bound notesRichTextItem

or

b) A notesRichTextItem.renderToMIME() method that returns mime data which can then be displayed in a control.

What about you? How critical is this issue for your own use of XPages?


There are  - loading -  comments....

re: XPages: Is this a show stopper for you?By sean cull on 07/02/2008 at 05:02 PM EDT
I was listening to your podcast on the way to a customers where I then enthused
them with the idea of being able to work with Rich Text on the web and Notes
more easily - it would be a shame if this turns out not to be so easy

I had assumed that looking at the field in Notes it would be rich text and on
the web it would be a dojo type rich text editor - there are already dojo rich
text editors in some of the templates I think ??

Getting away from the current Rich Text shannigans ( without excellent third
party software ) between web and client is long overdue
re: XPages: Is this a show stopper for you?By Bob Balaban on 07/02/2008 at 05:46 PM EDT
There actually IS a new JS rich text control in Domino 8.5. It was announced at
Lotusphere that you would be able to select it optionally in Designer.

Problem for this use case is that it only works (so far as I understand) with
the "regular" http server, which is a completely separate rendering engine from
XPages. HTTP knows how to convert CD records to HTML, XPages does not appear to
know how to do this.

The two worlds are complete separate, and this is one of the outcomes that
doesn't occur to most people until they find they need it.
re: XPages: Is this a show stopper for you?By Bruce Elgort on 07/03/2008 at 12:09 AM EDT
@Sean - which podcast were you listening to? Are you referring to Episode 83
of the Taking Notes podcast with John Head and Rob McDonagh?
re: XPages: Is this a show stopper for you?By sean cullk on 07/21/2008 at 05:43 PM EDT
yes
re: XPages: Is this a show stopper for you?By Peter Presnell on 07/02/2008 at 07:35 PM EDT
Yes this is a showstopper for me, but then there is already enough showstoppers
for 8.5 I doubt it is a release I will ever use...

Why would I migrate to a release that has design elements (X-Pages) support in
the Web client only?

When my company is only ever likely to upgrade to one release every 2-3 years
why would I push to upgrade to a version that does not have an improved
LotusScript editor and then have to wait another 2-3 years to finally get that?

No Rich Text on X-Pages seems like a huge whole. So to really get anything
major from a development perspective we are talking about applications that do
not have Notes client access AND do not need to access rich text fields. There
are probably a few companies out there but I would be surprised if 8.5 is ever
implemented in more than a handful of companies. (oops I forgot I can now set
the system date & time in LotusScript)
re: XPages: Is this a show stopper for you?By John Head on 07/02/2008 at 08:23 PM EDT
No, it is not a showstopper .. we set the majority of our apps for the rich
text fields to be in mime for other software / purposes. Mime is the future.
Plus, you can run an agent to resave the rt field as mime.
Unless I'm mistaken, that requires a front end agentBy Andrew Pollack on 07/02/2008 at 08:49 PM EDT
something that opens and saves UIDocuments -- and even then it requires you
modify the rich text field on the design document to set it to save as mime.

That's well and good, but doesn't help with surfacing existing content without
changing existing designs and code.

This conversion should be called as a method on an object within the xpage
itself and optionally stored for future re-use.
-FAIL- It doesn't work well enough at allBy Andrew Pollack on 07/03/2008 at 11:24 AM EDT
For example, if you have rich text and you've highlighted some to designate as
"Pass Through HTML" when you get it converted to MIME it comes through as
escaped text. Users who view the content will see it as inline html as if in a
code example.
re: XPages: Is this a show stopper for you?By Erik Brooks on 07/02/2008 at 11:14 PM EDT
Nope, not a showstopper, but definitely one of the "loose ends" that is
apparent from the rushing to catch-up that is 8.0 and 8.5.

IBM's doing a heck of a job trying to make up for all of the lost time spent
spinning their wheels with Workplace, and I think they're doing an admirable
job overall. Of course, 850 developers helps, but there's obviously a few
things that haven't been "folded in" properly from the scavenging of the
Workplace wreckage. This is one of them.

If it's something that can be converted via an agent, that's plenty fine for
me.
re: XPages: Is this a show stopper for you?By Nathan T. Freeman on 07/03/2008 at 09:02 AM EDT
It's only a showstopper if you're using XPages to deliver content from existing
apps. We already knew refactoring was going to be a bear.

But brand new apps? Then I don't really care.

But the RichTextItem.RenderToMIME() is long-overdue. If it takes this issue to
finally get them to provide that functionality, so be it.


Other Recent Stories...

  1. 01/26/2023Better Running VirtualBox or VMWARE Virtual Machines on Windows 10+ Forgive me, Reader, for I have sinned. I has been nearly 3 years since my last blog entry. The truth is, I haven't had much to say that was worthy of more than a basic social media post -- until today. For my current work, I was assigned a new laptop. It's a real powerhouse machine with 14 processor cores and 64 gigs of ram. It should be perfect for running my development environment in a virtual machine, but it wasn't. VirtualBox was barely starting, and no matter how many features I turned off, it could ...... 
  2. 04/04/2020How many Ventilators for the price of those tanks the Pentagon didn't even want?This goes WAY beyond Trump or Obama. This is decades of poor planning and poor use of funds. Certainly it should have been addressed in the Trump, Obama, Bush, Clinton, Bush, and Reagan administrations -- all of which were well aware of the implications of a pandemic. I want a military prepared to help us, not just hurt other people. As an American I expect that with the ridiculous funding of our military might, we are prepared for damn near everything. Not just killing people and breaking things, but ...... 
  3. 01/28/2020Copyright Troll WarningThere's a copyright troll firm that has automated reverse-image searches and goes around looking for any posted images that they can make a quick copyright claim on. This is not quite a scam because it's technically legal, but it's run very much like a scam. This company works with a few "clients" that have vast repositories of copyrighted images. The trolls do a reverse web search on those images looking for hits. When they find one on a site that looks like someone they can scare, they work it like ...... 
  4. 03/26/2019Undestanding how OAUTH scopes will bring the concept of APPS to your Domino server 
  5. 02/05/2019Toro Yard Equipment - Not really a premium brand as far as I am concerned 
  6. 10/08/2018Will you be at the NYC Launch Event for HCL Domino v10 -- Find me! 
  7. 09/04/2018With two big projects on hold, I suddenly find myself very available for new short and long term projects.  
  8. 07/13/2018Who is HCL and why is it a good thing that they are now the ones behind Notes and Domino? 
  9. 03/21/2018Domino Apps on IOS is a Game Changer. Quit holding back. 
  10. 02/15/2018Andrew’s Proposed Gun Laws 
Click here for more articles.....


pen icon Comment Entry
Subject
Your Name
Homepage
*Your Email
* Your email address is required, but not displayed.
 
Your thoughts....
 
Remember Me  

Please wait while your document is saved.