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. Da Costa Gomez" <dc...@fixed.com> on 2003/06/08 13:05:38 UTC

Not use @Conditional in a ?

Hi,

In order to keep the amount of code down I thought the following 
stucture was an elegant one.
If I want the row @Conditional has to come up true & otherwise ...

<tr jwcid="@Conditional" condition="ognl:!loggedIn">
 <td> All kinds off stuff ....... <td>
</tr>

Obviously the result was not what I expected.
It came back with the <td> tag whilst the whole row was nowhere to be seen.
I suppose I can surround the <tr> with a @Conditional span but I would 
like to understand the reason for the <tr> structure not working.

TIA,
Fermin DCG


RE: Not use @Conditional in a ?

Posted by "Howard M. Lewis Ship" <hl...@attbi.com>.
Yes, the Tapestry buglist in Bugzilla  http://issues.apache.org/bugzilla/

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



> -----Original Message-----
> From: F. Da Costa Gomez [mailto:dcg@fixed.com] 
> Sent: Sunday, June 08, 2003 9:14 AM
> To: Tapestry users
> Subject: Re: Not use @Conditional in a <tr>?
> 
> 
> Sounds fine to me.
> One small q though.
> Is there some place where I do that (suppose I do not send in an mail 
> stating this is a RFE ;-) )?
> 
> Cheers,
> Fermin DCG
> 
> Howard M. Lewis Ship wrote:
> 
> >Several other tags (Foreach, Any, ListEdit and Insert) support an 
> >"element" tag that allows them to render a tag (and informal 
> >parameters).  Please add a RFE and I'm sure we can slip that into 
> >Conditional.
> >
> >--
> >Howard M. Lewis Ship
> >Creator, Tapestry: Java Web Components 
> >http://jakarta.apache.org/tapestry
> >
> >
> >
> >  
> >
> >>-----Original Message-----
> >>From: F. Da Costa Gomez [mailto:dcg@fixed.com]
> >>Sent: Sunday, June 08, 2003 8:07 AM
> >>To: Tapestry users
> >>Subject: Re: Not use @Conditional in a <tr>?
> >>
> >>
> >>Julio C. Rivera wrote:
> >>
> >>    
> >>
> >>>I think the answer is at the "Tapestry Developer's Guide",
> >>>      
> >>>
> >>chapter 3.-
> >>    
> >>
> >>>Tapestry Components - Tapestry and HTML Production.
> >>>
> >>>You can read:
> >>>"The Insert component doesn't allow a body, so Tapestry
> >>>      
> >>>
> >>edits out the
> >>    
> >>
> >>>content of the <span> tag from the HTML template. The fact that a
> >>><span> was used to represent the Insert component in the 
> >>>      
> >>>
> >>HTML template
> >>    
> >>
> >>>is irrelevant to Tapestry;
> >>>---->>> any tag could have been used, Tapestry just cares that the
> >>>start and end tags balance. <<<----"
> >>>
> >>>When you use a jwcid attribute,  tag is ignored and it's 
> replaced by 
> >>>the component template.
> >>>      
> >>>
> >>Fair & clear enough.
> >>Thx,
> >>
> >>Cheers,
> >>Femrin DCG
> >>
> >>    
> >>
> >>>Regards
> >>>
> >>>        Julio.
> >>>
> >>>
> >>>At 13:05 08/06/2003 +0200, you wrote:
> >>>
> >>>      
> >>>
> >>>>Hi,
> >>>>
> >>>>In order to keep the amount of code down I thought the following 
> >>>>stucture was an elegant one. If I want the row 
> @Conditional has to 
> >>>>come up true & otherwise ...
> >>>>
> >>>><tr jwcid="@Conditional" condition="ognl:!loggedIn">
> >>>><td> All kinds off stuff ....... <td>
> >>>></tr>
> >>>>
> >>>>Obviously the result was not what I expected.
> >>>>It came back with the <td> tag whilst the whole row was
> >>>>        
> >>>>
> >>nowhere to be
> >>    
> >>
> >>>>seen.
> >>>>I suppose I can surround the <tr> with a @Conditional span but I
> >>>>would like to understand the reason for the <tr> structure 
> >>>>        
> >>>>
> >>not working.
> >>    
> >>
> >>>>TIA,
> >>>>Fermin DCG
> >>>>
> >>>>
> >>>>
> >>>>        
> >>>>
> >>------------------------------------------------------------
> ---------
> >>    
> >>
> >>>>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
> >>
> >>    
> >>
> >
> >
> >---------------------------------------------------------------------
> >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: Not use @Conditional in a ?

Posted by "F. Da Costa Gomez" <dc...@fixed.com>.
Sounds fine to me.
One small q though.
Is there some place where I do that (suppose I do not send in an mail 
stating this is a RFE ;-) )?

Cheers,
Fermin DCG

Howard M. Lewis Ship wrote:

>Several other tags (Foreach, Any, ListEdit and Insert) support an "element" tag that allows them to
>render a tag (and informal parameters).  Please add a RFE and I'm sure we can slip that into
>Conditional.
>
>--
>Howard M. Lewis Ship
>Creator, Tapestry: Java Web Components
>http://jakarta.apache.org/tapestry
>
>
>
>  
>
>>-----Original Message-----
>>From: F. Da Costa Gomez [mailto:dcg@fixed.com] 
>>Sent: Sunday, June 08, 2003 8:07 AM
>>To: Tapestry users
>>Subject: Re: Not use @Conditional in a <tr>?
>>
>>
>>Julio C. Rivera wrote:
>>
>>    
>>
>>>I think the answer is at the "Tapestry Developer's Guide", 
>>>      
>>>
>>chapter 3.-
>>    
>>
>>>Tapestry Components - Tapestry and HTML Production.
>>>
>>>You can read:
>>>"The Insert component doesn't allow a body, so Tapestry 
>>>      
>>>
>>edits out the
>>    
>>
>>>content of the <span> tag from the HTML template. The fact that a 
>>><span> was used to represent the Insert component in the 
>>>      
>>>
>>HTML template 
>>    
>>
>>>is irrelevant to Tapestry;
>>>---->>> any tag could have been used, Tapestry just cares that the
>>>start and end tags balance. <<<----"
>>>
>>>When you use a jwcid attribute,  tag is ignored and it's replaced by
>>>the component template. 
>>>      
>>>
>>Fair & clear enough.
>>Thx,
>>
>>Cheers,
>>Femrin DCG
>>
>>    
>>
>>>Regards
>>>
>>>        Julio.
>>>
>>>
>>>At 13:05 08/06/2003 +0200, you wrote:
>>>
>>>      
>>>
>>>>Hi,
>>>>
>>>>In order to keep the amount of code down I thought the following
>>>>stucture was an elegant one.
>>>>If I want the row @Conditional has to come up true & otherwise ...
>>>>
>>>><tr jwcid="@Conditional" condition="ognl:!loggedIn">
>>>><td> All kinds off stuff ....... <td>
>>>></tr>
>>>>
>>>>Obviously the result was not what I expected.
>>>>It came back with the <td> tag whilst the whole row was 
>>>>        
>>>>
>>nowhere to be
>>    
>>
>>>>seen.
>>>>I suppose I can surround the <tr> with a @Conditional span but I 
>>>>would like to understand the reason for the <tr> structure 
>>>>        
>>>>
>>not working.
>>    
>>
>>>>TIA,
>>>>Fermin DCG
>>>>
>>>>
>>>>
>>>>        
>>>>
>>---------------------------------------------------------------------
>>    
>>
>>>>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
>>
>>    
>>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
>
>
>
>  
>



RE: Not use @Conditional in a ?

Posted by "Howard M. Lewis Ship" <hl...@attbi.com>.
Several other tags (Foreach, Any, ListEdit and Insert) support an "element" tag that allows them to
render a tag (and informal parameters).  Please add a RFE and I'm sure we can slip that into
Conditional.

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



> -----Original Message-----
> From: F. Da Costa Gomez [mailto:dcg@fixed.com] 
> Sent: Sunday, June 08, 2003 8:07 AM
> To: Tapestry users
> Subject: Re: Not use @Conditional in a <tr>?
> 
> 
> Julio C. Rivera wrote:
> 
> > I think the answer is at the "Tapestry Developer's Guide", 
> chapter 3.-
> > Tapestry Components - Tapestry and HTML Production.
> >
> > You can read:
> > "The Insert component doesn't allow a body, so Tapestry 
> edits out the
> > content of the <span> tag from the HTML template. The fact that a 
> > <span> was used to represent the Insert component in the 
> HTML template 
> > is irrelevant to Tapestry;
> > ---->>> any tag could have been used, Tapestry just cares that the
> > start and end tags balance. <<<----"
> >
> > When you use a jwcid attribute,  tag is ignored and it's replaced by
> > the component template. 
> 
> Fair & clear enough.
> Thx,
> 
> Cheers,
> Femrin DCG
> 
> >
> >
> > Regards
> >
> >         Julio.
> >
> >
> > At 13:05 08/06/2003 +0200, you wrote:
> >
> >> Hi,
> >>
> >> In order to keep the amount of code down I thought the following
> >> stucture was an elegant one.
> >> If I want the row @Conditional has to come up true & otherwise ...
> >>
> >> <tr jwcid="@Conditional" condition="ognl:!loggedIn">
> >> <td> All kinds off stuff ....... <td>
> >> </tr>
> >>
> >> Obviously the result was not what I expected.
> >> It came back with the <td> tag whilst the whole row was 
> nowhere to be
> >> seen.
> >> I suppose I can surround the <tr> with a @Conditional span but I 
> >> would like to understand the reason for the <tr> structure 
> not working.
> >>
> >> TIA,
> >> Fermin DCG
> >>
> >>
> >> 
> ---------------------------------------------------------------------
> >> 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: Not use @Conditional in a ?

Posted by "F. Da Costa Gomez" <dc...@fixed.com>.
Julio C. Rivera wrote:

> I think the answer is at the "Tapestry Developer's Guide", chapter 3.- 
> Tapestry Components - Tapestry and HTML Production.
>
> You can read:
> "The Insert component doesn't allow a body, so Tapestry edits out the 
> content of the <span> tag from the HTML template. The fact that a 
> <span> was used to represent the Insert component in the HTML template 
> is irrelevant to Tapestry;
> ---->>> any tag could have been used, Tapestry just cares that the 
> start and end tags balance. <<<----"
>
> When you use a jwcid attribute,  tag is ignored and it's replaced by 
> the component template. 

Fair & clear enough.
Thx,

Cheers,
Femrin DCG

>
>
> Regards
>
>         Julio.
>
>
> At 13:05 08/06/2003 +0200, you wrote:
>
>> Hi,
>>
>> In order to keep the amount of code down I thought the following 
>> stucture was an elegant one.
>> If I want the row @Conditional has to come up true & otherwise ...
>>
>> <tr jwcid="@Conditional" condition="ognl:!loggedIn">
>> <td> All kinds off stuff ....... <td>
>> </tr>
>>
>> Obviously the result was not what I expected.
>> It came back with the <td> tag whilst the whole row was nowhere to be 
>> seen.
>> I suppose I can surround the <tr> with a @Conditional span but I 
>> would like to understand the reason for the <tr> structure not working.
>>
>> TIA,
>> Fermin DCG
>>
>>
>> ---------------------------------------------------------------------
>> 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: Not use @Conditional in a ?

Posted by "Julio C. Rivera" <ju...@ya.com>.
I think the answer is at the "Tapestry Developer's Guide", chapter 3.- 
Tapestry Components - Tapestry and HTML Production.

You can read:
"The Insert component doesn't allow a body, so Tapestry edits out the 
content of the <span> tag from the HTML template. The fact that a <span> 
was used to represent the Insert component in the HTML template is 
irrelevant to Tapestry;
---->>> any tag could have been used, Tapestry just cares that the start 
and end tags balance. <<<----"

When you use a jwcid attribute,  tag is ignored and it's replaced by the 
component template.

Regards

         Julio.


At 13:05 08/06/2003 +0200, you wrote:
>Hi,
>
>In order to keep the amount of code down I thought the following stucture 
>was an elegant one.
>If I want the row @Conditional has to come up true & otherwise ...
>
><tr jwcid="@Conditional" condition="ognl:!loggedIn">
><td> All kinds off stuff ....... <td>
></tr>
>
>Obviously the result was not what I expected.
>It came back with the <td> tag whilst the whole row was nowhere to be seen.
>I suppose I can surround the <tr> with a @Conditional span but I would 
>like to understand the reason for the <tr> structure not working.
>
>TIA,
>Fermin DCG
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>