You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Joey Gibson <jo...@joeygibson.com> on 2005/04/04 23:05:37 UTC

Engine Config Variables?

On a previous post on this list, someone presented code that looked like
this

<span jwcid="@contrib:InspectorButton"
      disabled="ognl:! page.engine.debugEnabled"/>

Now, I can use the InspectorButton, but how does one add a debugEnabled
property to the engine, or any other proper, for that matter? I have
read Howard's book, and I tried to find something in the index, but
didn't see anything. I thought about an init-parm in web.xml, but that
sets variables for the servlet, not the engine.

Am I missing something or was this example wrong? I asked the original
poster about it, but he said he no longer works with Tapestry and can't
remember how he did it...

BTW, I'm using Tapestry 3.0.3.

Thanks,
Joey


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: Engine Config Variables?

Posted by Joey Gibson <jo...@joeygibson.com>.
On 4/4/2005 19:42, Erik Hatcher wrote:
> By adding props, in this case it means to add a getDebugEnabled (or
> isDebugEnabled) to your custom engine class.

OK, I see now. That makes sense.

> Did you get the inspector working with 3.0.3?

Yes... It was a stupid mistake on my part. I came to that conclusion
when nobody was responding with "I'm having the same problem"
responses... Bottom line is that I had a filter that was screwing things
up. When I dropped the filter, which was poorly written anyway, the
Inspector button started working like a champ.

Joey

-- 
When the gun smoke settles, we'll sing a victory tune
 and we'll all meet back at the local saloon...

Jobkabob: http://www.jobkabob.com
Jobkabob News: http://www.jobkabob.com/news

http://www.joeygibson.com/blog
http://www.joeygibson.com/blog/life/Wisdom.html


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: Engine Config Variables?

Posted by Erik Hatcher <er...@ehatchersolutions.com>.
By adding props, in this case it means to add a getDebugEnabled (or 
isDebugEnabled) to your custom engine class.

Did you get the inspector working with 3.0.3?

	Erik

On Apr 4, 2005, at 5:36 PM, Andreas Andreou wrote:

> extend BaseEngine
> define it in .application
> and add any props you want
>
>
> Joey Gibson wrote:
>
>> On a previous post on this list, someone presented code that looked 
>> like
>> this
>>
>> <span jwcid="@contrib:InspectorButton"
>>      disabled="ognl:! page.engine.debugEnabled"/>
>>
>> Now, I can use the InspectorButton, but how does one add a 
>> debugEnabled
>> property to the engine, or any other proper, for that matter? I have
>> read Howard's book, and I tried to find something in the index, but
>> didn't see anything. I thought about an init-parm in web.xml, but that
>> sets variables for the servlet, not the engine.
>>
>> Am I missing something or was this example wrong? I asked the original
>> poster about it, but he said he no longer works with Tapestry and 
>> can't
>> remember how he did it...
>>
>> BTW, I'm using Tapestry 3.0.3.
>>
>> Thanks,
>> Joey
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>>
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: Engine Config Variables?

Posted by Andreas Andreou <an...@di.uoa.gr>.
extend BaseEngine
define it in .application
and add any props you want


Joey Gibson wrote:

>On a previous post on this list, someone presented code that looked like
>this
>
><span jwcid="@contrib:InspectorButton"
>      disabled="ognl:! page.engine.debugEnabled"/>
>
>Now, I can use the InspectorButton, but how does one add a debugEnabled
>property to the engine, or any other proper, for that matter? I have
>read Howard's book, and I tried to find something in the index, but
>didn't see anything. I thought about an init-parm in web.xml, but that
>sets variables for the servlet, not the engine.
>
>Am I missing something or was this example wrong? I asked the original
>poster about it, but he said he no longer works with Tapestry and can't
>remember how he did it...
>
>BTW, I'm using Tapestry 3.0.3.
>
>Thanks,
>Joey
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
>
>  
>

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org