Thanks you so much Andreou for ur reply... With the changes you have mentioned, its working fine. Thanks once again.
Regards, Anjali -----Original Message----- From: Andreas Andreou [mailto:[EMAIL PROTECTED] Sent: Thursday, October 20, 2005 5:05 PM To: Tapestry users Subject: Re: Need help for Contrib table format in Tapestry4Beta10 In beta-4, every component property had a default binding prefix. In the case of the columns property of the TableView component that prefix was "literal", so you could directly write text in it. In later betas, the default binding prefix concept has been dropped (after a vote), and is always "literal" in .html template files and "ognl" in .jwc or .page files. So, now, in order to make the value of the columns property be a string, you have 2 options: 1) <binding name="columns">'Name :name, Type : fileType,Upload Date:uploadDate, Privacy: privacy'</binding> which is the same as <binding name="columns">ognl:'Name :name, Type : fileType,Upload Date:uploadDate, Privacy: privacy'</binding> and 2) <binding name="columns">literal:Name :name, Type : fileType,Upload Date:uploadDate, Privacy: privacy</binding> Since this behavior is going to stay this way in the final 4.0 release, it's another reason to stick with the latest beta and update / fix your existing code. Anjali Abraham wrote: >Hi All, > I was using Tapestry4beta4.0 version. And for one of the page is >to display table and for that I was using contri:library. My .html code is: > ><table border="1" class="table" jwcid="membersTableView"> > <span jwcid="membersTableColumns"/> > <span jwcid="membersTableRows"> > <span jwcid="membersTableValues"/> > </span> ><tr> > <td colspan="7"> > <span jwcid="membersTablePages"/> > </td> ></tr> ></table> > >And my .page code is: > ><component id="membersTableView" type="contrib:TableView"> > <binding name="source" value="files"/> > <binding name="columns">Name :name, Type : fileType,Upload >Date:uploadDate, Privacy: privacy</binding> > <binding name="pageSize" value="10"/> > <binding name="initialSortColumn" value="'Upload Date'"/> > <binding name="initialSortOrder" value="true"/> </component> > <component id="membersTableColumns" type="contrib:TableColumns"> > </component> > <component id="membersTablePages" type="contrib:TablePages"> > </component> > <component id="membersTableRows" type="contrib:TableRows" > > </component> > <component id="membersTableValues" type="contrib:TableValues" > > </component> > >With Tapestry4.0beta4.0 version, this code was not breaking. But now I want >to migrate to Tapestry4.0Beta10 version. And I am getting the below error: > >An exception has occurred. >You may continue by restarting ><http://192.168.157.101:8080/spogger2/app?service=restart ><http://192.168.157.101:8080/spogger2/app?service=restart> > the session. > >org.apache.tapestry.BindingException > >Unable to parse OGNL expression 'Name :name, Type : fileType,Upload >Date:uploadDate, Privacy: privacy': Malformed OGNL expression: Name :name, >Type : fileType,Upload Date:uploadDate, Privacy: privacy > >binding: >ExpressionBinding[mymedia Name :name, Type : fileType,Upload >Date:uploadDate, Privacy: privacy] > >location: >context:/WEB-INF/mymedia.page, line 12, column 33 > >7 ><component id="header" type="header"> > >8 ></component> > >9 > > >10 ><component id="membersTableView" type="contrib:TableView"> > >11 ><binding name="source" value="files"/> > >12 ><binding name="columns">Name :name, Type : fileType,Upload Date:uploadDate, >Privacy: privacy</binding> > >13 ><binding name="pageSize" value="10"/> > >14 ><binding name="initialSortColumn" value="'Upload Date'"/> > >15 ><binding name="initialSortOrder" value="true"/> > >16 ></component> > >17 ><component id="membersTableColumns" type="contrib:TableColumns" > > > > >org.apache.hivemind.ApplicationRuntimeException > >Unable to parse OGNL expression 'Name :name, Type : fileType,Upload >Date:uploadDate, Privacy: privacy': Malformed OGNL expression: Name :name, >Type : fileType,Upload Date:uploadDate, Privacy: privacy > >Can Anybody help me out with want changes is being done in Tapestry4Beta10 >and what code changes need to be implemented for the same... > >Please respond with solution, >Thanks in advance, >Regards, >Anjali > > > > --------------------------------------------------------------------- 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]
