You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by "F.R. Da Costa Gomez" <dc...@fixed.com> on 2003/04/09 11:38:47 UTC

Implicit vs. normal notation

Hi,

This might not be an easy one to answer but for a beginner like myself 
pretty significant.
It concerns the use of the implicit notation.

Is there some sort of 'rule of thumb' for using implicit opposed to 
normal notation?
Is there a speed trade-off or does that not enter into the equation?
HTML template complexity?

The reason for this q lies in the fact that the Workbench and Vlib seem 
to mix the two styles and I was wondering about the rationale for not 
going all implicit.

Rather ask this (possibly silly) q than wasting cycles on it to figuring 
it out.

Thx,
Fermin DCG


RE: Implicit vs. normal notation

Posted by "Howard M. Lewis Ship" <hl...@attbi.com>.
> Thx,
> 
> I understand what y'r saying and it makes obvious sense.
> 
> There is just one small q that pops to mind now.
> Can I also use ognl exprexxions in the declared notation? 
> That is using 
> things like ognl:@@min ....
> And if so do I start with ognl: or immediately with the 
> expression stuff?


<span jwcid="@Foo" baz="ognl:bar"/>

is the same as

<binding name="baz" expression="bar"/>

OR

<binding name="baz">
  bar
</binding>


So, no "ognl:" prefix in the specification.  In addition, for complex OGNL
expressions (like those with a mix of single and double quotes), you can use
the alternate syntax where the expression is enclosed by the <binding>
element.

> 
> Thx,
> 
> btw. the enhanced error reporting is saving a lotta time indeed
> 

Yes, even I'm amazed at how much it speeds up development.  It'll be a major
selling point of Tapestry as soon as I figure out how to market it.

--
Howard M. Lewis Ship
Creator, Tapestry: Java Web Components
http://jakarta.apache.org/tapestry



Re: Implicit vs. normal notation

Posted by "F.R. Da Costa Gomez" <dc...@fixed.com>.
Thx,

I understand what y'r saying and it makes obvious sense.

There is just one small q that pops to mind now.
Can I also use ognl exprexxions in the declared notation? That is using 
things like ognl:@@min ....
And if so do I start with ognl: or immediately with the expression stuff?

Thx,

btw. the enhanced error reporting is saving a lotta time indeed

Howard M. Lewis Ship wrote:

>It's totally up to the developer, there is no speed tradeoff or anything
>like that.
>
>The mixed use in the examples is my own comfort level; once the number of
>parameters, or the complexity of the OGNL expressions, reaches a certain
>point, I switch from implicit to declared.
>
>--
>Howard M. Lewis Ship
>Creator, Tapestry: Java Web Components
>http://jakarta.apache.org/tapestry
>
>
>
>  
>
>>-----Original Message-----
>>From: F.R. Da Costa Gomez [mailto:dcg@fixed.com] 
>>Sent: Wednesday, April 09, 2003 5:39 AM
>>To: Tapestry users
>>Subject: Implicit vs. normal notation
>>
>>
>>
>>Is there some sort of 'rule of thumb' for using implicit opposed to 
>>normal notation?
>>Is there a speed trade-off or does that not enter into the 
>>equation? HTML template complexity?
>>
>>    
>>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
>
>
>
>
>  
>



RE: Implicit vs. normal notation

Posted by "Howard M. Lewis Ship" <hl...@attbi.com>.
It's totally up to the developer, there is no speed tradeoff or anything
like that.

The mixed use in the examples is my own comfort level; once the number of
parameters, or the complexity of the OGNL expressions, reaches a certain
point, I switch from implicit to declared.

--
Howard M. Lewis Ship
Creator, Tapestry: Java Web Components
http://jakarta.apache.org/tapestry



> -----Original Message-----
> From: F.R. Da Costa Gomez [mailto:dcg@fixed.com] 
> Sent: Wednesday, April 09, 2003 5:39 AM
> To: Tapestry users
> Subject: Implicit vs. normal notation
> 
> 
> 
> Is there some sort of 'rule of thumb' for using implicit opposed to 
> normal notation?
> Is there a speed trade-off or does that not enter into the 
> equation? HTML template complexity?
>