Hello,

  I have an author list (a typical CRUD application) which shows  the 
details of authors. Now I need to capture the works of each author, a
one-to-many relation ship.

  To accomplish the above task I have made a column 'h:commandLink' in the
author list and if the user clicks on this link he should be able to List
only the works related to the specific author and able to Add/Edit/Delete
his/her works.

<t:column>
        <f:facet name="header">
                <t:commandSortHeader columnName="Important Works">
                        <h:outputText value="Important Works" />
                </t:commandSortHeader>
        </f:facet>
        <h:commandLink action="?????" value="Add/Edit/Delete Important Works">
                <f:param name="id" value="#{author.id}"/>
                <f:param name="from" value="list"/>
        </h:commandLink>
</t:column>


  Is this is the way this type of task is done? If not please give me some 
hint on how this can be done.

  If I am on the right track I need a little help on how to proceed with the 
above task. At present I am stuck, I don't know where to call the getWorks
method? Can I call this method in the AuthorList.java? If yes, how to get
the author id in the getWorks method?

  Please help.

  Thank you.

Vishal S


  


-- 
View this message in context: 
http://www.nabble.com/newbie%3A-need-help-on-designing-appfuse-jsf-tf4115230s2369.html#a11702598
Sent from the AppFuse - User mailing list archive at Nabble.com.

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

Reply via email to