[Opensource] Adding a Transition to Browse
Michael Rimov
rimovm at centercomp.com
Fri Nov 1 11:01:53 PST 2002
At 08:52 PM 10/31/2002 -0800, you wrote:
>I'm working on my first real application and have I problem I've been
>unable to resolve.
>
>I started with a WebAppWriter built application. I'm trying to add some
>editable fields to each row of a Browse and corresponding transitions in
>each row to save updates or delete the row. I've been able to add the
>Inputs to the oneRow Block that represents a row in the browse table and
>display them in the .jsp. I've also added a Transition to the Block but
>I've been unable to display it. The jsp displays "The Transition Button
>Could Not Be Displayed "
>
>Input: <html:select name="oneRow" property="/Rating"/>
>Transition: <expresso:TransitionTag name="processMytoursUpdate" />
Hi Dan,
Ok, part of the confusion if over the fact that Expresso has several 'near
duplicate' tags that were created before struts was ported over to
Expresso. So if you're using <html:iterate> you're talking struts tag, and
if you're using <expresso:TransitionTag> you're talking the Expresso
similar tag library, and the two don't talk to each other [If somebody HAS
gotten the two to talk, let me know!]
So what you need depends on whether you want:
1 A Button
2 A Link
3 A picture that links.
If you want a link, one two liner is:
<bean:define id="myURL" name="oneRow" property="processMytoursUpdate"/>
<a href="<%=myURL%>" > ...... </a>
Somebody fleshed out the <html:exLink> tag to do this in one line, but IIRC
it's in the 5.0.1 release, so if you don't have that yet, you won't be able
to use it.
Anyway, check out the other tags in the html taglibrary as they'll be
compatible with the <logic:iterate/> tag.
HTH!
-Mike
More information about the Opensource
mailing list