Has anyone else ran into this problems, or is it just something i'm doing wrong?
On 8/4/05, Chris Chiappone <[EMAIL PROTECTED]> wrote: > So I am getting some strange source is null for get property > exceptions when doing this: > > <span jwcid="@Conditional" condition="ognl:resultPage"> > <table class="TapTable" jwcid="[EMAIL PROTECTED]:Table" > source="ognl:page.appList" > columns="company, name, versionName, current, regdate, mailtoPoc"> > <span jwcid="[EMAIL PROTECTED]"> > <span jwcid="companyLink"> > <span jwcid="companyText"/> > </span> > </span> > <span jwcid="[EMAIL PROTECTED]"> > <span jwcid="nameLink"> > <span jwcid="nameText"/> > </span> > </span> > </table> > </span> > <span jwcid="@Conditional" condition="ognl:!resultPage"> > <table class="TapTable" jwcid="[EMAIL PROTECTED]:Table" > source="ognl:page.appList" > columns="!name, !versionName, !current, !regdate"> > </table> > <span jwcid="[EMAIL PROTECTED]"> > <span jwcid="nameLink2"> > <span jwcid="nameText2"/> > </span> > </span> > </span> > > The thing is if I remove the conditional it works fine. The only > reason I am using the condtional is to show or not show certian rows > and not allow sorting in my table. Even though I called the the > second table 'table2' and reference that in my page: > > <component id="nameLink2" type="DirectLink"> > <binding name="appVerId" > expression="components.table2.tableRow.appVerId"/> > <binding name="listener" expression="listeners.editAppListener"/> > <binding name="parameters" > expression="components.table2.tableRow.appVerId"/> > </component> > <component id="nameText2" type="InsertText"> > <binding name="value" > expression="components.table2.tableRow.name"/> > </component> > > It still seems to be wanting to get the first table values. Any help > would be appreciated or at least a work around. Thanks. > > On 8/3/05, Mind Bridge <[EMAIL PROTECTED]> wrote: > > Yes. The position of the blocks used by the table is actually irrelevant. > > Since the nameColumnValue block is the same in both cases, simply remove > > its two definitions from inside the tables, and place it once somewhere > > outside the If/Else construct. > > > > If you need a different block for the second table, however, simply > > define the column to be 'name2:name' rather than just 'name', and rename > > that block to be name2ColumnValue. That would resolve any conflicts... > > > > -mb > > > > > > Chris Chiappone wrote: > > > > >Is there any way to do the following? I get component contains > > >multiple references exception when i try this: > > > > > ><span jwcid="@base:If" condition="ognl:resultPage"> > > > <table class="TapTable" jwcid="[EMAIL PROTECTED]:Table" > > > source="ognl:page.appList" > > > columns="company, name, versionName, current, regdate, mailtoPoc"> > > > <span jwcid="[EMAIL PROTECTED]"> > > > <span jwcid="companyLink"> > > > <span jwcid="companyText"/> > > > </span> > > > </span> > > > <span jwcid="[EMAIL PROTECTED]"> > > > <span jwcid="nameLink"> > > > <span jwcid="nameText"/> > > > </span> > > > </span> > > > </table> > > ></span> > > ><span jwcid="@base:Else> > > > <table class="TapTable" jwcid="[EMAIL PROTECTED]:Table" > > > source="ognl:page.appList" > > > columns="name, versionName, current, regdate"> > > > <span jwcid="[EMAIL PROTECTED]"> > > > <span jwcid="nameLink"> > > > <span jwcid="nameText"/> > > > </span> > > > </span> > > > </table> > > ></span> > > > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > -- > ~chris > -- ~chris --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
