RE: Nested Tiles Definitions

2003-06-12 Thread Sandeep Takhar
Did you leave the original tile definition with having
statusBarPercent as 0 in tiles-def.

You could then to a tiles:importAttribute on that page
as well and it should have your default value...

sandeep
--- [EMAIL PROTECTED] wrote:
> I dont think this will work because the error seems
> due to the 
> >  > name="statusBarPercent" scope="request"
> > type="java.lang.String"/>
> 
> So what you can do is use logic:present tag and use
> this bean:define inside the logic present so that
> the bean define will be evaluated only if the bean
> is there in request scope...But this seems a bit too
> contrived logic.If anybody can give a clean solution
> for this nesting tiles problem,I will be too happy..
> 
> Any tiles experts listening?
> 
> Shirish
> 
> -Original Message-
> From: Sandeep Takhar
> [mailto:[EMAIL PROTECTED]
> Sent: Thursday, June 12, 2003 4:56 PM
> To: Struts Users Mailing List
> Subject: RE: Nested Tiles Definitions
> 
> 
> try ignore="true"
> 
> I think this works.
> 
> sandeep
> --- Robert Smith <[EMAIL PROTECTED]> wrote:
> > What Chip suggested I had also tried (and
> neglected
> > to mention in my first message).  I can divine for
> > Shirish's message that it has to do with the
> > attributes not being in scope in the subtile.
> > 
> > I tried what Shirish suggested and I can now pass
> > attributes from the JSP to the subtile.  However,
> > there's one problem.  If I don't pass the
> attribute
> > in the JSP, I get this error:
> > 
> > [ServletException in:/tiles/statusSubLayout.jsp]
> > Cannot find bean 
> > statusBarPercent in scope request'
> > 
> > I tried changing the  to
> >  but the
> > useAttribute tag doesn't get the value from the
> JSP.
> > 
> > I would think that  > scope="request"/> in subLayout.jsp would have
> > brought in attributes from the definition, but for
> > some reason it's not.
> > 
> > Is there anything I'm doing wrong, or is there
> good
> > workaround?
> > 
> > Thanks,
> > 
> > Robert
> > 
> > -Original Message-
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, June 12, 2003 9:41 AM
> > To: <[EMAIL PROTECTED]>,
> > <[EMAIL PROTECTED]>
> > Subject: RE: Nested Tiles Definitions
> > 
> > You can insert definition inside another
> > definition..There is no problem in that.That is
> the
> > whole point of tiles...
> > But what he is missing is that the nested
> definition
> > does not get the paraeters passed from the top
> level
> > definition...
> > 
> > SO try this..
> > In the toplevel template,/tiles/subLayout.jsp, add
> > tiles import statement as follows.
> > 
> > 
> > What this does is makes all the attributes passed
> to
> > this definition available in request scope.
> > 
> > So now when u pass any additional attruibutes,
> these
> > wil be available in request scope.
> > So the statusBarPercent value will be avallable in
> > request now..Get it from there before using it in
> > the jsp.../tiles/statusSubLayout.jsp
> > 
> >  > name="statusBarPercent" scope="request"
> > type="java.lang.String"/>
> > 
> > Now use this statusPercent ..
> > 
> > 
> > HTH.
> > 
> > regards,
> > Shirish
> > 
> > -Original Message-
> > From: Chip Paul [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, June 12, 2003 12:14 AM
> > To: Struts Users Mailing List
> > Subject: RE: Nested Tiles Definitions
> > 
> > 
> > I don't think you can net calls to 
> like
> > that.
> > 
> > Instead try this insert:
> > 
> >  > flush="true>
> >   
> > 
> > 
> > The whole reason you defined the
> > site.sublayout.status definition was so you
> > could refer to it and it's added percent bar
> > functionality, so go ahead and
> > insert it directly.
> > 
> > Chip
> > 
> > 
> > 
> > -Original Message-
> > From: Jerry Smith [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, June 11, 2003 4:26 PM
> > To: [EMAIL PROTECTED]
> > Subject: Nested Tiles Definitions
> > 
> > 
> > Hello,
> > 
> > I tried posting this through Yahoo! and my message
> > wouldn&#

RE: Nested Tiles Definitions

2003-06-12 Thread shirishchandra.sakhare
I dont think this will work because the error seems due to the 
>  name="statusBarPercent" scope="request"
> type="java.lang.String"/>

So what you can do is use logic:present tag and use this bean:define inside the logic 
present so that the bean define will be evaluated only if the bean is there in request 
scope...But this seems a bit too contrived logic.If anybody can give a clean solution 
for this nesting tiles problem,I will be too happy..

Any tiles experts listening?

Shirish

-Original Message-
From: Sandeep Takhar [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 12, 2003 4:56 PM
To: Struts Users Mailing List
Subject: RE: Nested Tiles Definitions


try ignore="true"

I think this works.

sandeep
--- Robert Smith <[EMAIL PROTECTED]> wrote:
> What Chip suggested I had also tried (and neglected
> to mention in my first message).  I can divine for
> Shirish's message that it has to do with the
> attributes not being in scope in the subtile.
> 
> I tried what Shirish suggested and I can now pass
> attributes from the JSP to the subtile.  However,
> there's one problem.  If I don't pass the attribute
> in the JSP, I get this error:
> 
> [ServletException in:/tiles/statusSubLayout.jsp]
> Cannot find bean 
> statusBarPercent in scope request'
> 
> I tried changing the  to
>  but the
> useAttribute tag doesn't get the value from the JSP.
> 
> I would think that  scope="request"/> in subLayout.jsp would have
> brought in attributes from the definition, but for
> some reason it's not.
> 
> Is there anything I'm doing wrong, or is there good
> workaround?
> 
> Thanks,
> 
> Robert
> 
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]
> Sent: Thursday, June 12, 2003 9:41 AM
> To: <[EMAIL PROTECTED]>,
> <[EMAIL PROTECTED]>
> Subject: RE: Nested Tiles Definitions
> 
> You can insert definition inside another
> definition..There is no problem in that.That is the
> whole point of tiles...
> But what he is missing is that the nested definition
> does not get the paraeters passed from the top level
> definition...
> 
> SO try this..
> In the toplevel template,/tiles/subLayout.jsp, add
> tiles import statement as follows.
> 
> 
> What this does is makes all the attributes passed to
> this definition available in request scope.
> 
> So now when u pass any additional attruibutes, these
> wil be available in request scope.
> So the statusBarPercent value will be avallable in
> request now..Get it from there before using it in
> the jsp.../tiles/statusSubLayout.jsp
> 
>  name="statusBarPercent" scope="request"
> type="java.lang.String"/>
> 
> Now use this statusPercent ..
> 
> 
> HTH.
> 
> regards,
> Shirish
> 
> -Original Message-
> From: Chip Paul [mailto:[EMAIL PROTECTED]
> Sent: Thursday, June 12, 2003 12:14 AM
> To: Struts Users Mailing List
> Subject: RE: Nested Tiles Definitions
> 
> 
> I don't think you can net calls to  like
> that.
> 
> Instead try this insert:
> 
>  flush="true>
>   
> 
> 
> The whole reason you defined the
> site.sublayout.status definition was so you
> could refer to it and it's added percent bar
> functionality, so go ahead and
> insert it directly.
> 
> Chip
> 
> 
> 
> -Original Message-
> From: Jerry Smith [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, June 11, 2003 4:26 PM
> To: [EMAIL PROTECTED]
> Subject: Nested Tiles Definitions
> 
> 
> Hello,
> 
> I tried posting this through Yahoo! and my message
> wouldn't show up.  If
> this gets posted multiple times, many apologies!
> 
> I'm using Struts 1.0 and the Tiles extension from
> http://www.lifl.fr/~dumoulin/tiles/ .
> 
> I want to use a one definition is another
> definition.  Here are my
> current definitions:
> 
>path="/tiles/subLayout.jsp">
>  value="/tiles/standardHeader.jsp" />
>  />
> 
>  value="site.subLayout.status" />
>   
> 
>path="/tiles/statusSubLayout.jsp">
> 
> 
> 
>   
> 
> Now, say I want the statusBarPercent value to be 50.
>  I can't figure out
> how to change this value in the JSP.  I've tried:
> 
>  flush="true">
>value="site.subLayout.status">
> 
>   
> 
> 
> The value remains "0".  Can someone see what I'm
> doing wrong or if what
> I want to do is feasible?
> 
> Thanks,
> 
> Robert
> 
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


__
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Nested Tiles Definitions

2003-06-12 Thread Sandeep Takhar
try ignore="true"

I think this works.

sandeep
--- Robert Smith <[EMAIL PROTECTED]> wrote:
> What Chip suggested I had also tried (and neglected
> to mention in my first message).  I can divine for
> Shirish's message that it has to do with the
> attributes not being in scope in the subtile.
> 
> I tried what Shirish suggested and I can now pass
> attributes from the JSP to the subtile.  However,
> there's one problem.  If I don't pass the attribute
> in the JSP, I get this error:
> 
> [ServletException in:/tiles/statusSubLayout.jsp]
> Cannot find bean 
> statusBarPercent in scope request'
> 
> I tried changing the  to
>  but the
> useAttribute tag doesn't get the value from the JSP.
> 
> I would think that  scope="request"/> in subLayout.jsp would have
> brought in attributes from the definition, but for
> some reason it's not.
> 
> Is there anything I'm doing wrong, or is there good
> workaround?
> 
> Thanks,
> 
> Robert
> 
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]
> Sent: Thursday, June 12, 2003 9:41 AM
> To: <[EMAIL PROTECTED]>,
> <[EMAIL PROTECTED]>
> Subject: RE: Nested Tiles Definitions
> 
> You can insert definition inside another
> definition..There is no problem in that.That is the
> whole point of tiles...
> But what he is missing is that the nested definition
> does not get the paraeters passed from the top level
> definition...
> 
> SO try this..
> In the toplevel template,/tiles/subLayout.jsp, add
> tiles import statement as follows.
> 
> 
> What this does is makes all the attributes passed to
> this definition available in request scope.
> 
> So now when u pass any additional attruibutes, these
> wil be available in request scope.
> So the statusBarPercent value will be avallable in
> request now..Get it from there before using it in
> the jsp.../tiles/statusSubLayout.jsp
> 
>  name="statusBarPercent" scope="request"
> type="java.lang.String"/>
> 
> Now use this statusPercent ..
> 
> 
> HTH.
> 
> regards,
> Shirish
> 
> -Original Message-
> From: Chip Paul [mailto:[EMAIL PROTECTED]
> Sent: Thursday, June 12, 2003 12:14 AM
> To: Struts Users Mailing List
> Subject: RE: Nested Tiles Definitions
> 
> 
> I don't think you can net calls to  like
> that.
> 
> Instead try this insert:
> 
>  flush="true>
>   
> 
> 
> The whole reason you defined the
> site.sublayout.status definition was so you
> could refer to it and it's added percent bar
> functionality, so go ahead and
> insert it directly.
> 
> Chip
> 
> 
> 
> -Original Message-
> From: Jerry Smith [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, June 11, 2003 4:26 PM
> To: [EMAIL PROTECTED]
> Subject: Nested Tiles Definitions
> 
> 
> Hello,
> 
> I tried posting this through Yahoo! and my message
> wouldn't show up.  If
> this gets posted multiple times, many apologies!
> 
> I'm using Struts 1.0 and the Tiles extension from
> http://www.lifl.fr/~dumoulin/tiles/ .
> 
> I want to use a one definition is another
> definition.  Here are my
> current definitions:
> 
>path="/tiles/subLayout.jsp">
>  value="/tiles/standardHeader.jsp" />
>  />
> 
>  value="site.subLayout.status" />
>   
> 
>path="/tiles/statusSubLayout.jsp">
> 
> 
> 
>   
> 
> Now, say I want the statusBarPercent value to be 50.
>  I can't figure out
> how to change this value in the JSP.  I've tried:
> 
>  flush="true">
>value="site.subLayout.status">
> 
>   
> 
> 
> The value remains "0".  Can someone see what I'm
> doing wrong or if what
> I want to do is feasible?
> 
> Thanks,
> 
> Robert
> 
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


__
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Nested Tiles Definitions

2003-06-12 Thread Robert Smith
What Chip suggested I had also tried (and neglected to mention in my first message).  I can divine for Shirish's message that it has to do with the attributes not being in scope in the subtile.

I tried what Shirish suggested and I can now pass attributes from the JSP to the subtile.  However, there's one problem.  If I don't pass the attribute in the JSP, I get this error:

[ServletException in:/tiles/statusSubLayout.jsp] Cannot find bean 
statusBarPercent in scope request'

I tried changing the  to  but the useAttribute tag doesn't get the value from the JSP.

I would think that  in subLayout.jsp would have brought in attributes from the definition, but for some reason it's not.

Is there anything I'm doing wrong, or is there good workaround?

Thanks,

Robert

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 12, 2003 9:41 AM
To: <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]>
Subject: RE: Nested Tiles Definitions
You can insert definition inside another definition..There is no problem in that.That 
is the whole point of tiles...
But what he is missing is that the nested definition does not get the paraeters passed 
from the top level definition...
SO try this..
In the toplevel template,/tiles/subLayout.jsp, add tiles import statement as follows.


What this does is makes all the attributes passed to this definition available in 
request scope.
So now when u pass any additional attruibutes, these wil be available in request scope.
So the statusBarPercent value will be avallable in request now..Get it from there 
before using it in the jsp.../tiles/statusSubLayout.jsp


Now use this statusPercent ..

HTH.

regards,
Shirish
-Original Message-
From: Chip Paul [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 12, 2003 12:14 AM
To: Struts Users Mailing List
Subject: RE: Nested Tiles Definitions
I don't think you can net calls to  like that.

Instead try this insert:



The whole reason you defined the site.sublayout.status definition was so you
could refer to it and it's added percent bar functionality, so go ahead and
insert it directly.
Chip



-Original Message-
From: Jerry Smith [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 11, 2003 4:26 PM
To: [EMAIL PROTECTED]
Subject: Nested Tiles Definitions
Hello,

I tried posting this through Yahoo! and my message wouldn't show up.  If
this gets posted multiple times, many apologies!
I'm using Struts 1.0 and the Tiles extension from
http://www.lifl.fr/~dumoulin/tiles/ .
I want to use a one definition is another definition.  Here are my
current definitions:
 
   
   
   
   
 
 
   
   
   
 
Now, say I want the statusBarPercent value to be 50.  I can't figure out
how to change this value in the JSP.  I've tried:

 
   
 

The value remains "0".  Can someone see what I'm doing wrong or if what
I want to do is feasible?
Thanks,

Robert



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Nested Tiles Definitions

2003-06-12 Thread shirishchandra.sakhare
You can insert definition inside another definition..There is no problem in that.That 
is the whole point of tiles...
But what he is missing is that the nested definition does not get the paraeters passed 
from the top level definition...

SO try this..
In the toplevel template,/tiles/subLayout.jsp, add tiles import statement as follows.


What this does is makes all the attributes passed to this definition available in 
request scope.

So now when u pass any additional attruibutes, these wil be available in request scope.
So the statusBarPercent value will be avallable in request now..Get it from there 
before using it in the jsp.../tiles/statusSubLayout.jsp



Now use this statusPercent ..


HTH.

regards,
Shirish

-Original Message-
From: Chip Paul [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 12, 2003 12:14 AM
To: Struts Users Mailing List
Subject: RE: Nested Tiles Definitions


I don't think you can net calls to  like that.

Instead try this insert:




The whole reason you defined the site.sublayout.status definition was so you
could refer to it and it's added percent bar functionality, so go ahead and
insert it directly.

Chip



-Original Message-
From: Jerry Smith [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 11, 2003 4:26 PM
To: [EMAIL PROTECTED]
Subject: Nested Tiles Definitions


Hello,

I tried posting this through Yahoo! and my message wouldn't show up.  If
this gets posted multiple times, many apologies!

I'm using Struts 1.0 and the Tiles extension from
http://www.lifl.fr/~dumoulin/tiles/ .

I want to use a one definition is another definition.  Here are my
current definitions:

  




  

  



  

Now, say I want the statusBarPercent value to be 50.  I can't figure out
how to change this value in the JSP.  I've tried:


  

  


The value remains "0".  Can someone see what I'm doing wrong or if what
I want to do is feasible?

Thanks,

Robert


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Nested Tiles Definitions

2003-06-11 Thread Chip Paul
I don't think you can net calls to  like that.

Instead try this insert:




The whole reason you defined the site.sublayout.status definition was so you
could refer to it and it's added percent bar functionality, so go ahead and
insert it directly.

Chip



-Original Message-
From: Jerry Smith [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 11, 2003 4:26 PM
To: [EMAIL PROTECTED]
Subject: Nested Tiles Definitions


Hello,

I tried posting this through Yahoo! and my message wouldn't show up.  If
this gets posted multiple times, many apologies!

I'm using Struts 1.0 and the Tiles extension from
http://www.lifl.fr/~dumoulin/tiles/ .

I want to use a one definition is another definition.  Here are my
current definitions:

  




  

  



  

Now, say I want the statusBarPercent value to be 50.  I can't figure out
how to change this value in the JSP.  I've tried:


  

  


The value remains "0".  Can someone see what I'm doing wrong or if what
I want to do is feasible?

Thanks,

Robert


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]