|
View:
New views
10 Messages
—
Rating Filter:
Alert me
|
|
|
DataBind and object graphs-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1 I'm trying to use DataBind with an object graph (nested object hierarchy). I'm getting the top-level object, but not the children. What am I doing wrong? The object graph is like this: Exam has_many Page Page has_many Question Question has_many Choice Question has_many Answer My controller action looks like this: public void SubmitStudentExam( [DataBind("Page")] Page[] pages ) { ..... } My page code (inline aspx) is this: <%@ Import Namespace="Offline.WSDL.Services" %> <%@ Import Namespace="Castle.MonoRail.Framework.Helpers" %> <%@ Import Namespace="Castle.MonoRail.Framework" %> <%@ Implements Interface="Castle.MonoRail.Framework.IControllerAware" %> <script runat="server"> private Controller _controller; private HtmlHelper h; private StudentExam studentExam; //private int idForBackLink; private Question q; //private int pageCounter; public void SetController( Controller controller ) { _controller = controller; h = _controller.Helpers["HtmlHelper"] as HtmlHelper; studentExam = _controller.PropertyBag["studentExam"] as StudentExam; //idForBackLink = (int)_controller.PropertyBag["thisID"]; //pageCounter = 0; } </script> <%= h.Form( "SubmitStudentExam." + _controller.Context.UrlInfo.Extension ) %> <%= h.InputHidden( "Page@count", studentExam.Pages.Length ) %> <table> <% for( int pageCount=0; pageCount < studentExam.Pages.Length; pageCount++ ) { %> <% Offline.WSDL.Services.Page page = studentExam.Pages[pageCount]; %> <tr> <td> <table> <tr> <th colspan="2"> <strong>PAGE <%= pageCount + 1 %></strong> <%= h.InputHidden( string.Format( "Page[{0}].ID", pageCount ), page.ID ) %> </th> </tr> <tr> <td>ID</td> <td><%= page.ID %></td> </tr> <tr> <td>Title</td> <td><%= page.Title %></td> </tr> <tr> <td>Instructions</td> <td><%= page.Instructions %></td> </tr> <tr> <td>Questions</td> <td> <ul> <% for( int questionCount=0; questionCount < page.Questions.Length; questionCount++ ) { %> <% q = page.Questions[questionCount]; %> <li> <% //h.LinkTo( q.Text, "Exam", "ExamQuestion",q.ID ) %> <%= h.InputHidden( string.Format( "Page[{0}].Questions[{1}].ID", pageCount, questionCount ), q.ID ) %> <%= h.InputHidden( string.Format( "Page[{0}].Questions@count", pageCount ), page.Questions.Length ) %><br /> <% switch( q.QuestionType ) { case ExamQuestionTypes.FillInTheBlank: break; case ExamQuestionTypes.ManyMultipleChoice: break; case ExamQuestionTypes.Matching: break; case ExamQuestionTypes.MultipleChoice: break; case ExamQuestionTypes.TrueFalse: %> <%= h.InputRadio( string.Format( "Page[{0}].Questions[{1}].StudentAnswers[0].Text", pageCount, questionCount ), q.Choices[0].Text ) %> <%= q.Choices[0].Explanation %><br /> <%= h.InputRadio( string.Format( "Page[{0}].Questions[{1}].StudentAnswers[0].Text", pageCount, questionCount ), q.Choices[1].Text ) %> <%= q.Choices[1].Explanation %><br /> <% break; default: break; } %> <% } %> </li> </ul> </td> </tr> </table> </td> </tr> <% } %> </table> <%= h.SubmitButton( "Submit" ) %> <%= h.EndForm() %> Thanks in advance! Cheers, Kevin -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFJToZ28MvkaQ+4e8RAnwTAJ9zXqJxn9Wvr2p9ELZ9Zm/D0mlU5QCggs05 9d0JFuHN6mcX20EMYVM5PJ0= =RtlF -----END PGP SIGNATURE----- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ CastleProject-users mailing list CastleProject-users@... https://lists.sourceforge.net/lists/listinfo/castleproject-users |
|
|
Re: DataBind and object graphsSorry, but I need to see the form html.
On 10/5/06, Kevin Williams <kevin@...> wrote: > I'm trying to use DataBind with an object graph (nested object > hierarchy). I'm getting the top-level object, but not the children. What > am I doing wrong? -- Cheers, hammett http://hammett.castleproject.org/ ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ CastleProject-users mailing list CastleProject-users@... https://lists.sourceforge.net/lists/listinfo/castleproject-users |
|
|
Re: DataBind and object graphsScroll down, it's all there.
hammett wrote: > Sorry, but I need to see the form html. > > On 10/5/06, Kevin Williams <kevin@...> wrote: >> I'm trying to use DataBind with an object graph (nested object >> hierarchy). I'm getting the top-level object, but not the children. What >> am I doing wrong? > ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ CastleProject-users mailing list CastleProject-users@... https://lists.sourceforge.net/lists/listinfo/castleproject-users |
|
|
Re: DataBind and object graphsAll I see the is ASP.Net WebForms code. I need html code generated by it.
On 10/5/06, Kevin Williams <kevin@...> wrote: > Scroll down, it's all there. > > hammett wrote: > > Sorry, but I need to see the form html. > > > > On 10/5/06, Kevin Williams <kevin@...> wrote: > >> I'm trying to use DataBind with an object graph (nested object > >> hierarchy). I'm getting the top-level object, but not the children. What > >> am I doing wrong? > > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys -- and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > CastleProject-users mailing list > CastleProject-users@... > https://lists.sourceforge.net/lists/listinfo/castleproject-users > -- Cheers, hammett http://hammett.castleproject.org/ ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ CastleProject-users mailing list CastleProject-users@... https://lists.sourceforge.net/lists/listinfo/castleproject-users |
|
|
Re: DataBind and object graphsI see. Here you go:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head> <title>Course Service - GetGetStudentExam</title> <style type="text/css"> #nav { font-size: 0.8em; padding: 10px; } </style> </head> <body> <div id="container"> <span id="nav"><a href="/MercuryQA/home/index.ashx">Home</a> | <a href="/MercuryQA/course/contentitemlist.ashx?id=2037027">Content Item List</a> | <a href="/MercuryQA/Exam/ExamContentItem.ashx?id=1523379">Exam Content Item</a> | <a href="/MercuryQA/home/logout.ashx">Logout</a></span><br /> <span style="color:red"></span><br /> <span style="color:green">Retrieved Student Exam for item ID 1523379</span><br /> <form method="post" action="SubmitStudentExam.ashx"> <input type="hidden" name="Page@count" id="Page@count" value="1" /> <table> <tr> <td> <table> <tr> <th colspan="2"> <strong>PAGE 1</strong> <input type="hidden" name="Page[0].ID" id="Page[0].ID" value="374179" /> </th> </tr> <tr> <td>ID</td> <td>374179</td> </tr> <tr> <td>Title</td> <td>[Sample Exam Page 1 of 1 Title]</td> </tr> <tr> <td>Instructions</td> <td>[This is the only page of the exam that can be used offline. These are the page instructions and they are enclosed in square brackets for testing purposes.]</td> </tr> <tr> <td>Questions</td> <td> <ul> <li> <a href="/MercuryQA/Exam/ExamQuestion.ashx?id=15523191">[This is a true/false question. The correct answer is true. As with everything else I'm using square brackets to denote entered text. The square brackets are not required, they are only here for testing purposes.]</a> <input type="hidden" name="Page[0].Questions[0].ID" id="Page[0].Questions[0].ID" value="15523191" /> <input type="hidden" name="Page[0].Questions@count" id="Page[0].Questions@count" value="4" /><br /> <input type="radio" name="Page[0].Questions[0].StudentAnswers[0].Text" value="True" /> [True Explanation: The correct answer is true.]<br /> <input type="radio" name="Page[0].Questions[0].StudentAnswers[0].Text" value="False" /> [False Explanation: The correct answer is not false.]<br /> <li> <a href="/MercuryQA/Exam/ExamQuestion.ashx?id=15523192">[Multiple Choice Question: The correct answer is 'Three.]</a> <input type="hidden" name="Page[0].Questions[1].ID" id="Page[0].Questions[1].ID" value="15523192" /> <input type="hidden" name="Page[0].Questions@count" id="Page[0].Questions@count" value="4" /><br /> <li> <a href="/MercuryQA/Exam/ExamQuestion.ashx?id=15523193">[Multiple Answer Question: The Correct Answers are 'Two' and 'Three.']</a> <input type="hidden" name="Page[0].Questions[2].ID" id="Page[0].Questions[2].ID" value="15523193" /> <input type="hidden" name="Page[0].Questions@count" id="Page[0].Questions@count" value="4" /><br /> <li> <a href="/MercuryQA/Exam/ExamQuestion.ashx?id=15523194">[Fill-in-the-Blank Question: Acceptable answers are 'Yes' and 'Correct.']</a> <input type="hidden" name="Page[0].Questions[3].ID" id="Page[0].Questions[3].ID" value="15523194" /> <input type="hidden" name="Page[0].Questions@count" id="Page[0].Questions@count" value="4" /><br /> </li> </ul> </td> </tr> </table> </td> </tr> </table> <input type="submit" value="Submit" /> </form> </div> </body> </html> hammett wrote: > All I see the is ASP.Net WebForms code. I need html code generated by it. > > On 10/5/06, Kevin Williams <kevin@...> wrote: >> Scroll down, it's all there. >> >> hammett wrote: >>> Sorry, but I need to see the form html. >>> >>> On 10/5/06, Kevin Williams <kevin@...> wrote: >>>> I'm trying to use DataBind with an object graph (nested object >>>> hierarchy). I'm getting the top-level object, but not the children. What >>>> am I doing wrong? >> ------------------------------------------------------------------------- >> Take Surveys. Earn Cash. Influence the Future of IT >> Join SourceForge.net's Techsay panel and you'll get the chance to share your >> opinions on IT & business topics through brief surveys -- and earn cash >> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV >> _______________________________________________ >> CastleProject-users mailing list >> CastleProject-users@... >> https://lists.sourceforge.net/lists/listinfo/castleproject-users >> > > ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ CastleProject-users mailing list CastleProject-users@... https://lists.sourceforge.net/lists/listinfo/castleproject-users |
|
|
Re: DataBind and object graphsSome questions:
- Which version of the databinder are you using? - Page[0].Questions[0].ID What is the type of Questions? Is it an IList/ISet or an array? - Page[0].Questions@count Meta attributes are not used anymore on the new databinder impl. You may remove it if you are using it. On 10/5/06, Kevin Williams <kevin@...> wrote: > I see. Here you go: > > <!DOCTYPE html > PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> > <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> > <head> > <title>Course Service - GetGetStudentExam</title> > <style type="text/css"> > #nav { > font-size: 0.8em; > padding: 10px; > } > </style> > </head> > <body> > <div id="container"> > > <span id="nav"><a > href="/MercuryQA/home/index.ashx">Home</a> | <a > href="/MercuryQA/course/contentitemlist.ashx?id=2037027">Content Item > List</a> | <a > href="/MercuryQA/Exam/ExamContentItem.ashx?id=1523379">Exam Content > Item</a> | <a > href="/MercuryQA/home/logout.ashx">Logout</a></span><br /> > <span style="color:red"></span><br /> > <span style="color:green">Retrieved Student Exam for item ID > 1523379</span><br /> > <form method="post" action="SubmitStudentExam.ashx"> > > <input type="hidden" name="Page@count" id="Page@count" value="1" /> > <table> > > <tr> > <td> > <table> > <tr> > <th colspan="2"> > <strong>PAGE 1</strong> > <input type="hidden" name="Page[0].ID" id="Page[0].ID" > value="374179" /> > > </th> > </tr> > <tr> > <td>ID</td> > <td>374179</td> > </tr> > <tr> > <td>Title</td> > > <td>[Sample Exam Page 1 of 1 Title]</td> > </tr> > <tr> > <td>Instructions</td> > <td>[This is the only page of the exam that can be used offline. > These are the page instructions and they are enclosed in square brackets > for testing purposes.]</td> > </tr> > <tr> > > <td>Questions</td> > <td> > <ul> > > <li> > <a href="/MercuryQA/Exam/ExamQuestion.ashx?id=15523191">[This is > a true/false question. The correct answer is true. As with everything > else I'm using square brackets to denote entered text. The square > brackets are not required, they are only here for testing purposes.]</a> > <input type="hidden" name="Page[0].Questions[0].ID" > id="Page[0].Questions[0].ID" value="15523191" /> > <input type="hidden" name="Page[0].Questions@count" > id="Page[0].Questions@count" value="4" /><br /> > <input type="radio" > name="Page[0].Questions[0].StudentAnswers[0].Text" value="True" /> > [True Explanation: The correct answer is true.]<br /> > > <input type="radio" > name="Page[0].Questions[0].StudentAnswers[0].Text" value="False" /> > [False Explanation: The correct answer is not false.]<br /> > > <li> > <a > href="/MercuryQA/Exam/ExamQuestion.ashx?id=15523192">[Multiple Choice > Question: The correct answer is 'Three.]</a> > <input type="hidden" name="Page[0].Questions[1].ID" > id="Page[0].Questions[1].ID" value="15523192" /> > <input type="hidden" name="Page[0].Questions@count" > id="Page[0].Questions@count" value="4" /><br /> > > <li> > <a > href="/MercuryQA/Exam/ExamQuestion.ashx?id=15523193">[Multiple Answer > Question: The Correct Answers are 'Two' and 'Three.']</a> > > <input type="hidden" name="Page[0].Questions[2].ID" > id="Page[0].Questions[2].ID" value="15523193" /> > <input type="hidden" name="Page[0].Questions@count" > id="Page[0].Questions@count" value="4" /><br /> > > <li> > <a > href="/MercuryQA/Exam/ExamQuestion.ashx?id=15523194">[Fill-in-the-Blank > Question: Acceptable answers are 'Yes' and 'Correct.']</a> > <input type="hidden" name="Page[0].Questions[3].ID" > id="Page[0].Questions[3].ID" value="15523194" /> > <input type="hidden" name="Page[0].Questions@count" > id="Page[0].Questions@count" value="4" /><br /> > > </li> > </ul> > > </td> > </tr> > </table> > </td> > </tr> > > </table> > <input type="submit" value="Submit" /> > > </form> > > </div> > > </body> > </html> > > > hammett wrote: > > All I see the is ASP.Net WebForms code. I need html code generated by it. > > > > On 10/5/06, Kevin Williams <kevin@...> wrote: > >> Scroll down, it's all there. > >> > >> hammett wrote: > >>> Sorry, but I need to see the form html. > >>> > >>> On 10/5/06, Kevin Williams <kevin@...> wrote: > >>>> I'm trying to use DataBind with an object graph (nested object > >>>> hierarchy). I'm getting the top-level object, but not the children. What > >>>> am I doing wrong? > >> ------------------------------------------------------------------------- > >> Take Surveys. Earn Cash. Influence the Future of IT > >> Join SourceForge.net's Techsay panel and you'll get the chance to share your > >> opinions on IT & business topics through brief surveys -- and earn cash > >> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > >> _______________________________________________ > >> CastleProject-users mailing list > >> CastleProject-users@... > >> https://lists.sourceforge.net/lists/listinfo/castleproject-users > >> > > > > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys -- and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > CastleProject-users mailing list > CastleProject-users@... > https://lists.sourceforge.net/lists/listinfo/castleproject-users > -- Cheers, hammett http://hammett.castleproject.org/ ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ CastleProject-users mailing list CastleProject-users@... https://lists.sourceforge.net/lists/listinfo/castleproject-users |
|
|
Re: DataBind and object graphsThe DLLs are from trunk, sometime on or before May 19th. I can't be
sure, thus my desire for revision numbers in the assembly version info. Page.Questions is a Question[]. I guess I need to update the DLLs, but I didn't want to change anything until I got it working. If I do update the DLLs, should this code work? (without the meta attributes) hammett wrote: > Some questions: > > - Which version of the databinder are you using? > > - Page[0].Questions[0].ID > What is the type of Questions? Is it an IList/ISet or an array? > > - Page[0].Questions@count > Meta attributes are not used anymore on the new databinder impl. You > may remove it if you are using it. > > > On 10/5/06, Kevin Williams <kevin@...> wrote: >> I see. Here you go: >> >> <!DOCTYPE html >> PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" >> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> >> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> >> <head> >> <title>Course Service - GetGetStudentExam</title> >> <style type="text/css"> >> #nav { >> font-size: 0.8em; >> padding: 10px; >> } >> </style> >> </head> >> <body> >> <div id="container"> >> >> <span id="nav"><a >> href="/MercuryQA/home/index.ashx">Home</a> | <a >> href="/MercuryQA/course/contentitemlist.ashx?id=2037027">Content Item >> List</a> | <a >> href="/MercuryQA/Exam/ExamContentItem.ashx?id=1523379">Exam Content >> Item</a> | <a >> href="/MercuryQA/home/logout.ashx">Logout</a></span><br /> >> <span style="color:red"></span><br /> >> <span style="color:green">Retrieved Student Exam for item ID >> 1523379</span><br /> >> <form method="post" action="SubmitStudentExam.ashx"> >> >> <input type="hidden" name="Page@count" id="Page@count" value="1" /> >> <table> >> >> <tr> >> <td> >> <table> >> <tr> >> <th colspan="2"> >> <strong>PAGE 1</strong> >> <input type="hidden" name="Page[0].ID" id="Page[0].ID" >> value="374179" /> >> >> </th> >> </tr> >> <tr> >> <td>ID</td> >> <td>374179</td> >> </tr> >> <tr> >> <td>Title</td> >> >> <td>[Sample Exam Page 1 of 1 Title]</td> >> </tr> >> <tr> >> <td>Instructions</td> >> <td>[This is the only page of the exam that can be used offline. >> These are the page instructions and they are enclosed in square brackets >> for testing purposes.]</td> >> </tr> >> <tr> >> >> <td>Questions</td> >> <td> >> <ul> >> >> <li> >> <a href="/MercuryQA/Exam/ExamQuestion.ashx?id=15523191">[This is >> a true/false question. The correct answer is true. As with everything >> else I'm using square brackets to denote entered text. The square >> brackets are not required, they are only here for testing purposes.]</a> >> <input type="hidden" name="Page[0].Questions[0].ID" >> id="Page[0].Questions[0].ID" value="15523191" /> >> <input type="hidden" name="Page[0].Questions@count" >> id="Page[0].Questions@count" value="4" /><br /> >> <input type="radio" >> name="Page[0].Questions[0].StudentAnswers[0].Text" value="True" /> >> [True Explanation: The correct answer is true.]<br /> >> >> <input type="radio" >> name="Page[0].Questions[0].StudentAnswers[0].Text" value="False" /> >> [False Explanation: The correct answer is not false.]<br /> >> >> <li> >> <a >> href="/MercuryQA/Exam/ExamQuestion.ashx?id=15523192">[Multiple Choice >> Question: The correct answer is 'Three.]</a> >> <input type="hidden" name="Page[0].Questions[1].ID" >> id="Page[0].Questions[1].ID" value="15523192" /> >> <input type="hidden" name="Page[0].Questions@count" >> id="Page[0].Questions@count" value="4" /><br /> >> >> <li> >> <a >> href="/MercuryQA/Exam/ExamQuestion.ashx?id=15523193">[Multiple Answer >> Question: The Correct Answers are 'Two' and 'Three.']</a> >> >> <input type="hidden" name="Page[0].Questions[2].ID" >> id="Page[0].Questions[2].ID" value="15523193" /> >> <input type="hidden" name="Page[0].Questions@count" >> id="Page[0].Questions@count" value="4" /><br /> >> >> <li> >> <a >> href="/MercuryQA/Exam/ExamQuestion.ashx?id=15523194">[Fill-in-the-Blank >> Question: Acceptable answers are 'Yes' and 'Correct.']</a> >> <input type="hidden" name="Page[0].Questions[3].ID" >> id="Page[0].Questions[3].ID" value="15523194" /> >> <input type="hidden" name="Page[0].Questions@count" >> id="Page[0].Questions@count" value="4" /><br /> >> >> </li> >> </ul> >> >> </td> >> </tr> >> </table> >> </td> >> </tr> >> >> </table> >> <input type="submit" value="Submit" /> >> >> </form> >> >> </div> >> >> </body> >> </html> >> >> >> hammett wrote: >>> All I see the is ASP.Net WebForms code. I need html code generated by it. >>> >>> On 10/5/06, Kevin Williams <kevin@...> wrote: >>>> Scroll down, it's all there. >>>> >>>> hammett wrote: >>>>> Sorry, but I need to see the form html. >>>>> >>>>> On 10/5/06, Kevin Williams <kevin@...> wrote: >>>>>> I'm trying to use DataBind with an object graph (nested object >>>>>> hierarchy). I'm getting the top-level object, but not the children. What >>>>>> am I doing wrong? >>>> ------------------------------------------------------------------------- >>>> Take Surveys. Earn Cash. Influence the Future of IT >>>> Join SourceForge.net's Techsay panel and you'll get the chance to share your >>>> opinions on IT & business topics through brief surveys -- and earn cash >>>> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV >>>> _______________________________________________ >>>> CastleProject-users mailing list >>>> CastleProject-users@... >>>> https://lists.sourceforge.net/lists/listinfo/castleproject-users >>>> >>> >> ------------------------------------------------------------------------- >> Take Surveys. Earn Cash. Influence the Future of IT >> Join SourceForge.net's Techsay panel and you'll get the chance to share your >> opinions on IT & business topics through brief surveys -- and earn cash >> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV >> _______________________________________________ >> CastleProject-users mailing list >> CastleProject-users@... >> https://lists.sourceforge.net/lists/listinfo/castleproject-users >> > > ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ CastleProject-users mailing list CastleProject-users@... https://lists.sourceforge.net/lists/listinfo/castleproject-users |
|
|
Re: DataBind and object graphsIt should be working even with the old version. Arrays are supported.
You could debug it to see what is going on too. Although the most recent version is simpler. On 10/5/06, Kevin Williams <kevin@...> wrote: > The DLLs are from trunk, sometime on or before May 19th. I can't be > sure, thus my desire for revision numbers in the assembly version info. -- Cheers, hammett http://hammett.castleproject.org/ ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ CastleProject-users mailing list CastleProject-users@... https://lists.sourceforge.net/lists/listinfo/castleproject-users |
|
|
Re: DataBind and object graphsI think I know what's wrong. These classes are proxy classes for a web
service call. When VS.NET generates proxy classes for web services, the classes use public fields instead of properties (why? I don't know). The data binder only handles properties. hammett wrote: > It should be working even with the old version. Arrays are supported. > You could debug it to see what is going on too. Although the most > recent version is simpler. > > > On 10/5/06, Kevin Williams <kevin@...> wrote: >> The DLLs are from trunk, sometime on or before May 19th. I can't be >> sure, thus my desire for revision numbers in the assembly version info. > ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ CastleProject-users mailing list CastleProject-users@... https://lists.sourceforge.net/lists/listinfo/castleproject-users |
|
|
Re: DataBind and object graphsI think that you can configure it to use properties.
Fields has a "perf advantage" over properties - although in practice the JIT make it moot. > -----Original Message----- > From: castleproject-users-bounces@... > [mailto:castleproject-users-bounces@...] On Behalf Of > Kevin Williams > Sent: Saturday, October 07, 2006 3:35 PM > To: castleproject-users@... > Subject: Re: [Castle-users] DataBind and object graphs > > I think I know what's wrong. These classes are proxy classes for a web > service call. When VS.NET generates proxy classes for web services, the > classes use public fields instead of properties (why? I don't know). The > data binder only handles properties. > > > hammett wrote: > > It should be working even with the old version. Arrays are supported. > > You could debug it to see what is going on too. Although the most > > recent version is simpler. > > > > > > On 10/5/06, Kevin Williams <kevin@...> wrote: > >> The DLLs are from trunk, sometime on or before May 19th. I can't be > >> sure, thus my desire for revision numbers in the assembly version info. > > > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's > Techsay panel and you'll get the chance to share your opinions on IT & > business topics through brief surveys -- and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > CastleProject-users mailing list > CastleProject-users@... > https://lists.sourceforge.net/lists/listinfo/castleproject-users ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ CastleProject-users mailing list CastleProject-users@... https://lists.sourceforge.net/lists/listinfo/castleproject-users |
| Free embeddable forum powered by Nabble | Forum Help |