Hosted By

Contact Me

Misc Links

OpenNTF BlogSphere LotusGeek CoComment Custom Button

Ads by Google

Welcome to keithstric.com!

I hope you find this site useful in some way or another. I strive to bring you all sorts of geeky information and solutions to your most frustrating of issues with the occasional rant on whatever topic, technical reviews and weblog. You'll also find many products that I've developed and make available for you to use however you like. So, grab a cup of coffee, sit down and visit for a while.

« SnTT: XPages Blank Calendar Control (Part 2), adding data | Home Page| SnTT: XPages Calendar Control (Part 3), making it reusable »

XPages question... Editable Area within a Repeat?

02/08/2010 3:05 PM By Keith Strickland

I've been working on making the Calendar Control more of a reusable control rather than using the @DbLookup calls within the ccCalendar control itself. For the most part, I've succeeded in doing this however before I publish it I need some information as it doesn't quite work the way I expect it to.

So, here's the scenario. I've busted the code within the dayCells computed field to only contain the beginning cell HTML, basically the opening TD call. I then added another computed field to handle the closing of the TD. Now, in between these 2 I've placed an editable area. This editable area shows up in the design mode for the ccCalendar Custom Control. Now, when we drag the ccCalendar custom control onto a new XPage, the editable area is visible however you can't drag another custom control onto it. When you try it drops the control above everything else. Also, when you look at the source for the XPage before adding a custom control onto the editable area, there is no xp:this.facets tag. Now I can add this tag manually and define the custom control I created just to display the data and it all works flawlessly but I don't like that I have to hand code it. But below is some screen shots and a short screen cast of the behaviour I'm attempting to describe:

EditableAreaOutline.jpg

Here is the control after I dropped it onto a new XPage. See the Editable Area is available:
EditableAreaDesign.jpg

Here is the entire source of the new XPage, notice there is no xp:this.facets tag:
EditableAreaSource.jpg

Here is the Screen Cast of what happens when you try to drop a custom control onto this editable area:

So, my question is this.... Should you add an Editable area within a repeat? If not, what is a better route?


Comments

ID: 1
Date: 02/09/2010 08:29:27 AM
Name: Paul Hannan
Website: http://

This looks like a design time issue rather than a runtime one, right?
If so, we'll log a bug for that.
p.

ID: 2
Date: 02/09/2010 09:15:07 AM
Name: Keith Strickland
Website: http://www.keithstric.com

Hi Paul! Yes, this is a design time issue.

ID: 3
Date: 06/07/2010 07:46:55 AM
Name: Darry
Website: http://www.videorolls.com/watch/New-XPages-Calendar-Custom-Control-from-ZetaOne

I still have problems with Xpages and so far look for some easy to understand tutorials and guides. As for Calendar-Custom-Control, there's one more informative video on the issue - { Link } Emoticon

Post A Comment

:-D:-o:-p:-(:-):-\:-|:angry::cool::cry::dontknow::emb::hairout::laugh::rolleyes::whew:;-)

Subscribe to keithstric.com

OpenNTF

Disclaimer

The opinions and ideas posted on keithstric.com are not necessarily the opinions and ideas of my employer. The solutions, techniques and code provided here are not guaranteed or warranted in any way and are free for you to use at your own risk.