Re: ERXWORepetition sending null iterator item.
Re: ERXWORepetition sending null iterator item.
- Subject: Re: ERXWORepetition sending null iterator item.
- From: Chuck Hill <email@hidden>
- Date: Wed, 1 Apr 2009 18:39:42 -0700
On Apr 1, 2009, at 6:26 PM, Greg Hulands wrote:
On Apr 1, 2009, at 4:34 PM, Chuck Hill wrote:
On Apr 1, 2009, at 4:26 PM, Greg Hulands wrote:
On Apr 1, 2009, at 7:18 AM, Dan Grec wrote:
2. Don't use the tabs at all, just have a WORepetition around
(Ajax)SubmitButtons and style them exactly the same as the tabs.
This works really well for us.
This seems to suffer the same problem of getting null passed down
from it after the repetition, causing no tab to display when there
is only one tab.
Perhaps you are mis-using the item binding of the repetition?
Don't expect this to have any value outside / after the repetition
I'm pretty sure I'm not. This is the component
<wo:if condition = "$session.worksheetsController.hasOpenWorksheets">
<wo:form name="tabs">
<wo:repeat list = "$session.worksheetsController.worksheets"
item="$worksheet">
<div class="$classname">
<wo:activeImage filename = "images/close.png" framework = "app"
action="$closeTab"/>
<wo:if condition = "$isActiveWorksheet">
<wo:AjaxInPlace value = "$worksheet.worksheet.title"
submitOnBlur = "$true" okButton = "false" cancelLink = "false"/>
</wo:if>
<wo:else>
<wo:AjaxSubmitButton action="$setActiveWorksheet"
value="$worksheet.worksheet.title" button="$false"/>
</wo:else>
</div>
</wo:repeat>
</wo:form>
<wo:Worksheet
worksheet="$session.worksheetsController.activeWorksheet"/>
</wo:if>
When it renders, it only shows the close button and no title. When I
set a breakpoint on the setWorksheet in the component, I see that
the worksheet is set in the repetition, but then it sets null on the
clean up bit.
I'd suspect what AjaxInPlace is doing. If you change the
wo:AjaxInPlace to a string, does the title appear?
Chuck
--
Chuck Hill Senior Consultant / VP Development
Practical WebObjects - for developers who want to increase their
overall knowledge of WebObjects or who are trying to solve specific
problems.
http://www.global-village.net/products/practical_webobjects
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden