You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Phillip Rhodes <sp...@rhoderunner.com> on 2003/11/23 00:43:03 UTC
table edit link example?
I just successfully did a search and display the results using
tapestry/hibernate.
Anyone see an example, where the table record would have an "edit" link
that will take the user to a a new page for editing the record?
Have not been able to find an example such as this.
Thanks!
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: table edit link example?
Posted by "Kevin C. Dorff" <kd...@dorffweb.com>.
If you are using Hibernate, I think I would recommend passing the users
primary id stead of passing the entire user. Then you can just do a
.load to obtain the object from Hibernate.
Kevin
Phillip Rhodes wrote:
> I have found this application example very helpful. However, in this
> case, the table is not using the contrib:table. Summary: I want to
> use an ExternalLink to allow the user to go to an edit page from a row
> in the contrib:table component
>
> I looked at the table example in the workbench, and followed the
> example on how they added a "Delete" link to each row for the
> LocaleSelection. The "Delete" link is a DirectLink (goes to the same
> page). I wanted an Edit link to go to a different page (ExternalLink).
>
> I added my "Edit" column the same way that they did the Delete column
> in the LocalSelection example in the workbench.
>
> I did not add anything to my spec. I see folks to do define
> ExternalLinks in the spec
>
> I added the following to my component html file
>
> <span jwcid="blockEdit@Block">
> <span jwcid="@ExternalLink" page="EditUser"
> parameters="ognl:user">Edit</span>
> </span>
>
>
> As I see it, I am not setting the parameters correctly for the ognl
> expression immediately above. The table will render correctly without
> the Edit link (the table model wraps an array of type User objects).
>
> Can anyone point out my failings (besides my wife;) or point me to an
> example that puts an External link from the contrib:table component?
> Thanks!
>
>
>
> At 01:45 AM 11/23/2003 +0200, Marilen Corciovei wrote:
>
>> If this is what you want
>> http://nemesisit.rdsnet.ro/opendocs/tapehibe2/view.png check the
>> associated example.
>>
>> Len
>>
>>
>> On Sun, 2003-11-23 at 01:43, Phillip Rhodes wrote:
>>
>> > I just successfully did a search and display the results using
>> > tapestry/hibernate.
>> >
>> > Anyone see an example, where the table record would have an "edit"
>> link
>> > that will take the user to a a new page for editing the record?
>> >
>> > Have not been able to find an example such as this.
>> > Thanks!
>> >
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>> > For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: table edit link example?
Posted by Marilen Corciovei <le...@nemesisit.rdsnet.ro>.
If I understand correctly then this should be what you need:
<table jwcid="table@contrib:TableView" tableModel="ognl:...."
tableSessionStateManager="ognl:..." ....>
<tr><th width="10" class="columnHeader"> </th>
<span jwcid="@contrib:TableColumns"
class="columnHeader"/>
</tr>
<tr jwcid="tableRows">
<td><span jwcid="@ExternalLink" page="Update"
parameters
="ognl:[use the id here]">Update</span>
</td>
<td jwcid="@contrib:TableValues"/>
</tr>
<!--tr><td><span
jwcid="@contrib:TablePages"/></td></tr-->
</table>
Len
On Sun, 2003-11-23 at 03:42, Phillip Rhodes wrote:
> I have found this application example very helpful. However, in this case,
> the table is not using the contrib:table. Summary: I want to use an
> ExternalLink to allow the user to go to an edit page from a row in the
> contrib:table component
>
> I looked at the table example in the workbench, and followed the example on
> how they added a "Delete" link to each row for the LocaleSelection. The
> "Delete" link is a DirectLink (goes to the same page). I wanted an Edit
> link to go to a different page (ExternalLink).
>
> I added my "Edit" column the same way that they did the Delete column in
> the LocalSelection example in the workbench.
>
> I did not add anything to my spec. I see folks to do define ExternalLinks
> in the spec
>
> I added the following to my component html file
>
> <span jwcid="blockEdit@Block">
> <span jwcid="@ExternalLink" page="EditUser"
> parameters="ognl:user">Edit</span>
> </span>
>
>
> As I see it, I am not setting the parameters correctly for the ognl
> expression immediately above. The table will render correctly without the
> Edit link (the table model wraps an array of type User objects).
>
> Can anyone point out my failings (besides my wife;) or point me to an
> example that puts an External link from the contrib:table component?
> Thanks!
>
>
>
> At 01:45 AM 11/23/2003 +0200, Marilen Corciovei wrote:
> >If this is what you want
> >http://nemesisit.rdsnet.ro/opendocs/tapehibe2/view.png check the
> >associated example.
> >
> >Len
> >
> >
> >On Sun, 2003-11-23 at 01:43, Phillip Rhodes wrote:
> >
> > > I just successfully did a search and display the results using
> > > tapestry/hibernate.
> > >
> > > Anyone see an example, where the table record would have an "edit" link
> > > that will take the user to a a new page for editing the record?
> > >
> > > Have not been able to find an example such as this.
> > > Thanks!
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: table edit link example?
Posted by Phillip Rhodes <sp...@rhoderunner.com>.
I have found this application example very helpful. However, in this case,
the table is not using the contrib:table. Summary: I want to use an
ExternalLink to allow the user to go to an edit page from a row in the
contrib:table component
I looked at the table example in the workbench, and followed the example on
how they added a "Delete" link to each row for the LocaleSelection. The
"Delete" link is a DirectLink (goes to the same page). I wanted an Edit
link to go to a different page (ExternalLink).
I added my "Edit" column the same way that they did the Delete column in
the LocalSelection example in the workbench.
I did not add anything to my spec. I see folks to do define ExternalLinks
in the spec
I added the following to my component html file
<span jwcid="blockEdit@Block">
<span jwcid="@ExternalLink" page="EditUser"
parameters="ognl:user">Edit</span>
</span>
As I see it, I am not setting the parameters correctly for the ognl
expression immediately above. The table will render correctly without the
Edit link (the table model wraps an array of type User objects).
Can anyone point out my failings (besides my wife;) or point me to an
example that puts an External link from the contrib:table component?
Thanks!
At 01:45 AM 11/23/2003 +0200, Marilen Corciovei wrote:
>If this is what you want
>http://nemesisit.rdsnet.ro/opendocs/tapehibe2/view.png check the
>associated example.
>
>Len
>
>
>On Sun, 2003-11-23 at 01:43, Phillip Rhodes wrote:
>
> > I just successfully did a search and display the results using
> > tapestry/hibernate.
> >
> > Anyone see an example, where the table record would have an "edit" link
> > that will take the user to a a new page for editing the record?
> >
> > Have not been able to find an example such as this.
> > Thanks!
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: table edit link example?
Posted by Marilen Corciovei <le...@nemesisit.rdsnet.ro>.
If this is what you want
http://nemesisit.rdsnet.ro/opendocs/tapehibe2/view.png check the
associated example.
Len
On Sun, 2003-11-23 at 01:43, Phillip Rhodes wrote:
> I just successfully did a search and display the results using
> tapestry/hibernate.
>
> Anyone see an example, where the table record would have an "edit" link
> that will take the user to a a new page for editing the record?
>
> Have not been able to find an example such as this.
> Thanks!
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org