You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Chetty, Arun" <ar...@firepond.com> on 2002/12/04 23:45:37 UTC

Tool for visually documenting Tiles hierarchy?

Is anyone aware of any tools in the market that would help visually document
the complete Tiles hierarchy used in an application. If not, any ideas on
how you would go about doing this.

A speedy reply would be greatly appreciated

Thanks in advance
Arun

-----Original Message-----
From: Karr, David [mailto:david.karr@attws.com]
Sent: Wednesday, December 04, 2002 4:38 PM
To: Struts Users Mailing List
Subject: RE: How does Struts handle arrays of fields?


You can call it a "subclass", or you can say it "implements" something.
It's the same thing.  I believe that you'll get into trouble if you try
to make a class which is both a bean AND a collection.  You'll end up
having to make a bean which contains a collection property AND a size
property.  I'm not sure exactly how this is going to interact with the
form population process.

> -----Original Message-----
> From: David Graham [mailto:dgraham1980@hotmail.com]
> 
> My custom Collection class is not a subclass of anything.  It 
> implements the 
> Collection interface and adds a getSize() method so the EL 
> will work .  This 
> solution works.
> 
> What I really need to know is if Struts can populate a 
> Collection class 
> instead of a String[] for arrays of fields.  It acts like it 
> can't but I may 
> be missing something.
> 
> I think the problem is that the EL requires my custom 
> Collection and struts 
> requires a String[].
> 
> Thanks,
> David
> 
> 
> 
> 
> 
> 
> >From: "Karr, David" <da...@attws.com>
> >Reply-To: "Struts Users Mailing List" 
> <st...@jakarta.apache.org>
> >To: "Struts Users Mailing List" <st...@jakarta.apache.org>
> >Subject: RE: How does Struts handle arrays of fields?
> >Date: Wed, 4 Dec 2002 11:37:38 -0800
> >
> >If I'm seeing your problem correctly, you probably know by 
> now that the
> >EL only references bean properties, except when it's referencing
> >collections :) .  It checks whether something is a 
> collection before it
> >checks whether it is a bean, so creating a SUBCLASS of a collection
> >class and adding bean properties won't work.  You'll have to 
> have a bean
> >class that has a collection property, AND a size property.  Try
> >restructuring your bean to deal with that and see how far you get.
> >
> > > -----Original Message-----
> > > From: David Graham [mailto:dgraham1980@hotmail.com]
> > >
> > > I have a set of hidden fields all named "deletedId" but with
> > > different
> > > values.  What type should this be in my ActionForm?  It works
> > > if I have
> > > private String[] deletedId; and related accessor methods.
> > >
> > > My problem is that I want to use the JSTL's EL to get the
> > > size of this
> > > array.  I tried ${myForm.deletedId.length} with no success so
> > > I tried using
> > > a custom Collection class with a getSize() method and
> > > ${myForm.deletedId.size}.  So I have a
> > > public Collection getDeletedId() and a
> > > public void setDeletedId(String[] id) method.  Struts
> > > apparently didn't like
> > > that I was trying to trick it and doesn't refill the array
> > > when there's an
> > > error on the form.
> > >
> > > Any suggestions?
> > >
> > > Thanks,
> > > Dave
> > >
> > > _________________________________________________________________
> > > Add photos to your messages with MSN 8. Get 2 months FREE*.
> > > http://join.msn.com/?page=features/featuredemail
> > >
> > >
> > > --
> > > To unsubscribe, e-mail:
> ><ma...@jakarta.apache.org>
> >For additional commands, e-mail:
> ><ma...@jakarta.apache.org>
> >
> >--
> >To unsubscribe, e-mail:   
> ><ma...@jakarta.apache.org>
> >For additional commands, e-mail: 
> ><ma...@jakarta.apache.org>
> 
> 
> _________________________________________________________________
> The new MSN 8: advanced junk mail protection and 2 months FREE* 
> http://join.msn.com/?page=features/junkmail
> 
> 
> --
> To unsubscribe, e-mail:   
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>

--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Tool for visually documenting Tiles hierarchy?

Posted by Emmanuel Boudrant <b7...@yahoo.fr>.
 And Easy Struts for Eclipse soon ;)
-emmanuel
http://easystruts.sf.net

  James Holmes &lt;jholmes612@yahoo.com&gt; a écrit : Struts Console allows you to visually edit the Tiles
config file.

http://www.jamesholmes.com/struts/

-james

--- "Chetty, Arun" wrote:
> Is anyone aware of any tools in the market that
> would help visually document
> the complete Tiles hierarchy used in an application.
> If not, any ideas on
> how you would go about doing this.
> 
> A speedy reply would be greatly appreciated
> 
> Thanks in advance
> Arun
> 
> -----Original Message-----
> From: Karr, David [mailto:david.karr@attws.com]
> Sent: Wednesday, December 04, 2002 4:38 PM
> To: Struts Users Mailing List
> Subject: RE: How does Struts handle arrays of
> fields?
> 
> 
> You can call it a "subclass", or you can say it
> "implements" something.
> It's the same thing. I believe that you'll get into
> trouble if you try
> to make a class which is both a bean AND a
> collection. You'll end up
> having to make a bean which contains a collection
> property AND a size
> property. I'm not sure exactly how this is going to
> interact with the
> form population process.
> 
> > -----Original Message-----
> > From: David Graham
> [mailto:dgraham1980@hotmail.com]
> > 
> > My custom Collection class is not a subclass of
> anything. It 
> > implements the 
> > Collection interface and adds a getSize() method
> so the EL 
> > will work . This 
> > solution works.
> > 
> > What I really need to know is if Struts can
> populate a 
> > Collection class 
> > instead of a String[] for arrays of fields. It
> acts like it 
> > can't but I may 
> > be missing something.
> > 
> > I think the problem is that the EL requires my
> custom 
> > Collection and struts 
> > requires a String[].
> > 
> > Thanks,
> > David
> > 
> > 
> > 
> > 
> > 
> > 
> > >From: "Karr, David" 
> > >Reply-To: "Struts Users Mailing List" 
> > 
> > >To: "Struts Users Mailing List"
> 
> > >Subject: RE: How does Struts handle arrays of
> fields?
> > >Date: Wed, 4 Dec 2002 11:37:38 -0800
> > >
> > >If I'm seeing your problem correctly, you
> probably know by 
> > now that the
> > >EL only references bean properties, except when
> it's referencing
> > >collections :) . It checks whether something is
> a 
> > collection before it
> > >checks whether it is a bean, so creating a
> SUBCLASS of a collection
> > >class and adding bean properties won't work. 
> You'll have to 
> > have a bean
> > >class that has a collection property, AND a size
> property. Try
> > >restructuring your bean to deal with that and see
> how far you get.
> > >
> > > > -----Original Message-----
> > > > From: David Graham
> [mailto:dgraham1980@hotmail.com]
> > > >
> > > > I have a set of hidden fields all named
> "deletedId" but with
> > > > different
> > > > values. What type should this be in my
> ActionForm? It works
> > > > if I have
> > > > private String[] deletedId; and related
> accessor methods.
> > > >
> > > > My problem is that I want to use the JSTL's EL
> to get the
> > > > size of this
> > > > array. I tried ${myForm.deletedId.length}
> with no success so
> > > > I tried using
> > > > a custom Collection class with a getSize()
> method and
> > > > ${myForm.deletedId.size}. So I have a
> > > > public Collection getDeletedId() and a
> > > > public void setDeletedId(String[] id) method. 
> Struts
> > > > apparently didn't like
> > > > that I was trying to trick it and doesn't
> refill the array
> > > > when there's an
> > > > error on the form.
> > > >
> > > > Any suggestions?
> > > >
> > > > Thanks,
> > > > Dave
> > > >
> > > >
>
_________________________________________________________________
> > > > Add photos to your messages with MSN 8. Get 2
> months FREE*.
> > > >
> http://join.msn.com/?page=features/featuredemail
> > > >
> > > >
> > > > --
> > > > To unsubscribe, e-mail:
> >
> >
> > >For additional commands, e-mail:
> > >
> > >
> > >--
> > >To unsubscribe, e-mail: 
> >
> >
> > >For additional commands, e-mail: 
> > >
> > 
> > 
> >
>
_________________________________________________________________
> > The new MSN 8: advanced junk mail protection and 2
> months FREE* 
> > http://join.msn.com/?page=features/junkmail
> > 
> > 
> > --
> > To unsubscribe, e-mail: 
> 
> For additional commands, e-mail:
> 
> 
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
> 
> --
> To unsubscribe, e-mail: 
> 
> For additional commands, e-mail:
> 
> 


__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

--
To unsubscribe, e-mail: 
For additional commands, e-mail: 



---------------------------------
Soyez solidaire soutenez l’action du Téléthon avec Yahoo! France.
Cliquez ici pour faire un don !

Re: Tool for visually documenting Tiles hierarchy?

Posted by James Holmes <jh...@yahoo.com>.
Struts Console allows you to visually edit the Tiles
config file.

http://www.jamesholmes.com/struts/

-james

--- "Chetty, Arun" <ar...@firepond.com> wrote:
> Is anyone aware of any tools in the market that
> would help visually document
> the complete Tiles hierarchy used in an application.
> If not, any ideas on
> how you would go about doing this.
> 
> A speedy reply would be greatly appreciated
> 
> Thanks in advance
> Arun
> 
> -----Original Message-----
> From: Karr, David [mailto:david.karr@attws.com]
> Sent: Wednesday, December 04, 2002 4:38 PM
> To: Struts Users Mailing List
> Subject: RE: How does Struts handle arrays of
> fields?
> 
> 
> You can call it a "subclass", or you can say it
> "implements" something.
> It's the same thing.  I believe that you'll get into
> trouble if you try
> to make a class which is both a bean AND a
> collection.  You'll end up
> having to make a bean which contains a collection
> property AND a size
> property.  I'm not sure exactly how this is going to
> interact with the
> form population process.
> 
> > -----Original Message-----
> > From: David Graham
> [mailto:dgraham1980@hotmail.com]
> > 
> > My custom Collection class is not a subclass of
> anything.  It 
> > implements the 
> > Collection interface and adds a getSize() method
> so the EL 
> > will work .  This 
> > solution works.
> > 
> > What I really need to know is if Struts can
> populate a 
> > Collection class 
> > instead of a String[] for arrays of fields.  It
> acts like it 
> > can't but I may 
> > be missing something.
> > 
> > I think the problem is that the EL requires my
> custom 
> > Collection and struts 
> > requires a String[].
> > 
> > Thanks,
> > David
> > 
> > 
> > 
> > 
> > 
> > 
> > >From: "Karr, David" <da...@attws.com>
> > >Reply-To: "Struts Users Mailing List" 
> > <st...@jakarta.apache.org>
> > >To: "Struts Users Mailing List"
> <st...@jakarta.apache.org>
> > >Subject: RE: How does Struts handle arrays of
> fields?
> > >Date: Wed, 4 Dec 2002 11:37:38 -0800
> > >
> > >If I'm seeing your problem correctly, you
> probably know by 
> > now that the
> > >EL only references bean properties, except when
> it's referencing
> > >collections :) .  It checks whether something is
> a 
> > collection before it
> > >checks whether it is a bean, so creating a
> SUBCLASS of a collection
> > >class and adding bean properties won't work. 
> You'll have to 
> > have a bean
> > >class that has a collection property, AND a size
> property.  Try
> > >restructuring your bean to deal with that and see
> how far you get.
> > >
> > > > -----Original Message-----
> > > > From: David Graham
> [mailto:dgraham1980@hotmail.com]
> > > >
> > > > I have a set of hidden fields all named
> "deletedId" but with
> > > > different
> > > > values.  What type should this be in my
> ActionForm?  It works
> > > > if I have
> > > > private String[] deletedId; and related
> accessor methods.
> > > >
> > > > My problem is that I want to use the JSTL's EL
> to get the
> > > > size of this
> > > > array.  I tried ${myForm.deletedId.length}
> with no success so
> > > > I tried using
> > > > a custom Collection class with a getSize()
> method and
> > > > ${myForm.deletedId.size}.  So I have a
> > > > public Collection getDeletedId() and a
> > > > public void setDeletedId(String[] id) method. 
> Struts
> > > > apparently didn't like
> > > > that I was trying to trick it and doesn't
> refill the array
> > > > when there's an
> > > > error on the form.
> > > >
> > > > Any suggestions?
> > > >
> > > > Thanks,
> > > > Dave
> > > >
> > > >
>
_________________________________________________________________
> > > > Add photos to your messages with MSN 8. Get 2
> months FREE*.
> > > >
> http://join.msn.com/?page=features/featuredemail
> > > >
> > > >
> > > > --
> > > > To unsubscribe, e-mail:
> >
> ><ma...@jakarta.apache.org>
> > >For additional commands, e-mail:
> > ><ma...@jakarta.apache.org>
> > >
> > >--
> > >To unsubscribe, e-mail:   
> >
> ><ma...@jakarta.apache.org>
> > >For additional commands, e-mail: 
> > ><ma...@jakarta.apache.org>
> > 
> > 
> >
>
_________________________________________________________________
> > The new MSN 8: advanced junk mail protection and 2
> months FREE* 
> > http://join.msn.com/?page=features/junkmail
> > 
> > 
> > --
> > To unsubscribe, e-mail:   
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
> 
> --
> To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
> 
> --
> To unsubscribe, e-mail:  
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
> 


__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>