Oops... that one should have been obvious. Thanks again!!

On 7/19/05, Mind Bridge <[EMAIL PROTECTED]> wrote:
> The name of your table component is not currently specified. Try this:
> 
>     <table jwcid="[EMAIL PROTECTED]:Table" ...
> 
> That would make the following OGNL expression used in your code to work:
> 
>     components.table.tableRow
> 
> and it would no longer throw an exception that component 'table' is not
> present.
> 
> 
> 
> ----- Original Message -----
> From: "Darío Vasconcelos" <[EMAIL PROTECTED]>
> To: "Tapestry users" <[email protected]>
> Sent: Tuesday, July 19, 2005 7:12 AM
> Subject: Re: DirectLink inside a Table with ExpressionTableColumn: special
> treatment?
> 
> 
> I followed your suggestion, but if I do
> 
>    idCol.loadSettings(this)
> 
> there's an exception:
> 
>   Component [EMAIL PROTECTED] does not contain
> a component table.
> 
> Now, I tried
> 
>  col.loadSettings((Table)getComponents().get("$Table"));
> 
> I checked the values returned by getComponents() and it contains a
> $Table element. With this code, the table now displays, but still no
> links (or override for the ColumnHeader).
> 
> I also tried defining the columns with a simple string
> ("col1,col2,col3"). This works as long as I don't try to include a
> xxxColumnValue element, when I do it throws the same exception as
> before (the component does not contain a component table).
> 
> What am I missing? I already missed the loadSettings thing... but I
> can't find any docs that recommend its use.
> 
> Dario
> 
> On 7/18/05, Robert Zeigler <[EMAIL PROTECTED]> wrote:
> > You need to use the "loadSettings" method.
> > so, if you had something like the following in your page class...
> >
> > public List getColumns() {
> >    ...
> >    ExpressionTableColumn idCol = new ExpressionTableColumn("idc","id");
> >    idCol.loadSettings(this);
> > }
> >
> > then that should do the trick for you.
> >
> > Robert
> >
> > Darío Vasconcelos wrote:
> > > Hi,
> > >
> > > I've been trying unsuccessfully to add links to a Table whose columns
> > > have been specified with ExpressionTableColumns.  My code is pretty
> > > straightforward,
> > >
> > >               <table jwcid="@contrib:Table" source="ognl:data"
> > > columns="ognl:columns" border="0" cellspacing="1" cellpadding="2"
> > > class="tabla2" width="100%">
> > >                       <span jwcid="[EMAIL PROTECTED]"></span>
> > >                       <span jwcid="[EMAIL PROTECTED]">
> > >                               <a jwcid="@DirectLink"
> listener="ognl:listeners.linkEditContent"
> > > parameters="ognl:components.table.tableRow">idc</a>
> > >                       </span>
> > >         </table>
> > >
> > > The "idc" column exists, its cells are using class idcColumnValue, but
> > > the links just don't appear.  What am I doing wrong?
> > >
> > >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> 
> --
> Communism is man's exploitation of man. Capitalism is just the opposite.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 


-- 
Communism is man's exploitation of man. Capitalism is just the opposite.

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

Reply via email to