You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Saqib Rasul <sa...@sagadc.de> on 2004/10/25 13:49:53 UTC

2 tables one page causing a BindingException

Hello all, 

This one is a bit strange... 

I have 2 plain Table components on one page and that works. HTML code
for this is:

<form jwcid="@Form" delegate="ognl:beans.delegate">
    	<table jwcid="inputTable@contrib:Table" width = "100%"
border="1"
      		source="ognl:containerFields"
		      columns="name, connectorFieldName, connectorName,
type"
		pageSize="10">
              
	</table>
        <p>
       <table jwcid="t2@contrib:Table" width = "100%" border="1"
       		source="ognl:containerFields"
		      columns="name, connectorFieldName, connectorName,
type"
		       pageSize="10">
       
	</table>

       <span jwcid="@Submit" label="Check names!"/>
</form>

Now I try to make one of the columns in one of these tables into a
ValidField. HTML Code:

<form jwcid="@Form" delegate="ognl:beans.delegate">
    		<table jwcid="inputTable@contrib:Table" width = "100%"
border="1"
       			source="ognl:containerFields"
		       columns="name, connectorFieldName, connectorName,
type"
		       pageSize="10">
       
		       <span jwcid="nameColumnValue@Block">
		           <span jwcid="@ValidField"
value="ognl:components.inputTable.tableRow.name" 
		           	size="15" displayName="Field Name"
validator="ognl:beans.required"/>
		       </span>
       
		    </table>
        	<p>
            <table jwcid="t2@contrib:Table" width = "100%" border="1"
       			source="ognl:containerFields"
		       columns="name, connectorFieldName, connectorName,
type"
		       pageSize="10">
       
		    </table>

        	<span jwcid="@Submit" label="Check names!"/>
       	</form>

This is when it dies and says:
org.apache.tapestry.BindingException
Unable to resolve expression 'tableRow.name' for
org.apache.tapestry.contrib.table.components.Table$Enhance_18@1635484[Ho
me/inputTable].

ognl.OgnlException
source is null for getProperty(null, "name")

And the line in the HTML it complains about is the one with the
ValidField.

Each of these tables by itself works fine. But together they don't play
nice.

Is this some limitation of the table or am I doing something wrong?

Thanks in advance,

Regards,

Saqib

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org