The code snippet I sent is called by the API:
<!-- and display the page -->
<view-page name="workOrder.view" contentArg="content" />
I am using a filter to generate the view arguments that I am looping
through.
That seems to be working just fine.
I am pretty sure that the problem is in the API. I am finding simular
javascript errors occurring ( object not found). Once I wrap my script
tag with cfoutput everything works again.
I am just providing information. I have a work-around that we will
follow here. Maybe this will benefit others in the community.
Bill Peddy
Web Developer
ECS Team - ITS-EPA II -
Contractor
voice: (919) 541-1329
fax: (919) 541-3700
|------------>
| From: |
|------------>
>---------------------------------------------------------------------------------------------------------------------------------------|
|"Peter J. Farrell" <[email protected]>
|
>---------------------------------------------------------------------------------------------------------------------------------------|
|------------>
| To: |
|------------>
>---------------------------------------------------------------------------------------------------------------------------------------|
|[email protected]
|
>---------------------------------------------------------------------------------------------------------------------------------------|
|------------>
| Date: |
|------------>
>---------------------------------------------------------------------------------------------------------------------------------------|
|06/01/2010 12:38 PM
|
>---------------------------------------------------------------------------------------------------------------------------------------|
|------------>
| Subject: |
|------------>
>---------------------------------------------------------------------------------------------------------------------------------------|
|Re: [Mach-II] Converting from 1.5 to 1.8
|
>---------------------------------------------------------------------------------------------------------------------------------------|
Well, it's probably upstream from view layer then. It's probably
somewhere else in your application. Are you calling views using the API
or via filter? Another place is if you calling something from a
functions and you leave off the "output" attribute. Sadly, Adobe CF's
output attribute on cffunction doesn't work like a boolean. It's more
tripod-ish:
* output="false" -- no output
* output="true" -- everything in the body outputted
* output attribute no defined -- nothing outputted unless a cfoutput
wraps the desired block of code
I've seen a lot of upgrades from older versions of Mach-II go without a
hitch. I suspect it's a combination of something like what I described
above.
.pjf
[email protected] said the following on 01/06/10 11:18:
> Thanks for the reply Peter,
> The scenario I am describing is in a view page.
> I don't reference<cfsetting enablecfoutputonly="true"> at all. Just
> in case is, I added it and set to true and false and had no impact on
> issue.
>
> Here is a code sample of what I am talking about:
>
> <cfoutput>
> <table border="0" width="100%">
> <tr>
> <td colspan="2"><p>Click tab to view Task Order Requests at
that
> Tab's WorkFlow Level</p></td>
> </tr>
> <tr>
> <td>
> <cfset variables.arrTabCount = arrayNew(1) />
> <cfset variables.arrTitle = arrayNew(1) />
> <cfset variables.tab = 0 />
> <div class="tab-pane" id="tabPanel">
> <cfif NOT variables.workflow>
> <div class="tab-page" id="workflowTab">
> <h2 class="tab">...Workflow</h2>
> <!--- empty tab, relocates (code below) to another page.
>
--->
> </div>
> </cfif>
> </cfoutput>
>
> <<<<<<<<<<<<<<<<<<< Code above didn't render until I wrapped in
> cfoutput>>>>>>>>>>>>>>>>>
>
> <cfoutput query="variables.step" group="stepName">
> <cfset variables.tab = incrementValue
( variables.tab ) />
> <cfset variables.arrTabCount[variables.tab] = 0 />
> <cfset variables.arrTitle[variables.tab] =
variables.step.title />
> <!--- create tabPane --->
> <div class="tab-page" id="Tab#variables.tab#">
> <h2 class="tab">#variables.step.tabText#</h2>
> #event.getArg( variables.step.stepName )#
> </div>
> <cfoutput>
> <cfset variables.arrTabCount
[variables.tab] =
> incrementValue( variables.arrTabCount[variables.tab] ) />
> </cfoutput>
> </cfoutput>
>
> <<<<<<<<<< Div tag (inside if statement) below didn't render until
I
> added cfoutput>>>>>>>>>>>>>>>>>
> <cfoutput>
> <cfif variables.workflow>
> <div class="tab-page" id="moreTab">
> <h2 class="tab">More...</h2>
> <!--- empty tab, relocates (code below) to another page.
>
--->
> </div>
> <cfelseif variables.showServiceCallTab>
>
> <div class="tab-page" id="TabServiceCall">
> <h2 class="tab">Service Calls</h2>
> #event.getArg( "serviceCalls" )#
> </div>
> </cfoutput>
> </cfif>
> </div>
> </td>
> </tr>
> </table>
>
>
>
>
> Bill Peddy
> Web Developer
> ECS Team - ITS-EPA II -
> Contractor
> voice: (919) 541-1329
> fax: (919) 541-3700
>
>
>
>
>
> |------------>
> | From: |
> |------------>
>
>---------------------------------------------------------------------------------------------------------------------------------------|
> |"Peter J. Farrell"<[email protected]>
|
>
>---------------------------------------------------------------------------------------------------------------------------------------|
> |------------>
> | To: |
> |------------>
>
>---------------------------------------------------------------------------------------------------------------------------------------|
> |[email protected]
|
>
>---------------------------------------------------------------------------------------------------------------------------------------|
> |------------>
> | Date: |
> |------------>
>
>---------------------------------------------------------------------------------------------------------------------------------------|
> |06/01/2010 11:52 AM
|
>
>---------------------------------------------------------------------------------------------------------------------------------------|
> |------------>
> | Subject: |
> |------------>
>
>---------------------------------------------------------------------------------------------------------------------------------------|
> |Re: [Mach-II] Converting from 1.5 to 1.8
|
>
>---------------------------------------------------------------------------------------------------------------------------------------|
>
>
>
>
>
> We added a lot of whitespace suppression in 1.8. However you have to
be
>
> careful when you use<cfsetting enablecfouputonly="true">. I suspect
> you're flipping that back on somewhere in your code. When you are in
a
> view,<cfouput> is not required -- so I'd look at the the WebFXTabPane
> (sorry never heard of it) or other views where you're flipping this
back
> on.
>
> .pjf
>
> [email protected] said the following on 01/06/10 10:42:
>
>> Hey guys,
>> I think I may have found a problem in 1.8 with whitespace suppression
>> (I'm guessing).
>>
>> I have a page that starts with cfset statements, then creates a HTML
>> table.
>> I am using WebFXTabPane to generate tabs on the page.
>> I create a table row with div statement for the parent of the tabs.
>> I then enter into a cfoutput loop to generate my tabs. I get an
error
>> on page because the tab parent is not found.
>>
>> The problem was that none of the HTML was rendered above the
cfoutput.
>>
>> When I surrounded the HTML code with a cfoutput, everything was fine.
>>
>>
>>
>>
>> Bill Peddy
>> Web Developer
>> ECS Team - ITS-EPA II -
>> Contractor
>> voice: (919) 541-1329
>> fax: (919) 541-3700
>>
>>
>>
>>
>>
>>
> --
> You received this message because you are subscribed to Mach-II for
CFML
> list.
> To post to this group, send email to
> [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/mach-ii-for-coldfusion?hl=en
>
> ***New URLs as of April 29th, 2010***
> SVN: http://svn.mach-ii.com/machii/
> Wiki / Documentation / Tickets: http://trac.mach-ii.com/machii/
>
>
>
>
--
You received this message because you are subscribed to Mach-II for CFML
list.
To post to this group, send email to
[email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/mach-ii-for-coldfusion?hl=en
***New URLs as of April 29th, 2010***
SVN: http://svn.mach-ii.com/machii/
Wiki / Documentation / Tickets: http://trac.mach-ii.com/machii/
--
You received this message because you are subscribed to Mach-II for CFML list.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/mach-ii-for-coldfusion?hl=en
***New URLs as of April 29th, 2010***
SVN: http://svn.mach-ii.com/machii/
Wiki / Documentation / Tickets: http://trac.mach-ii.com/machii/