Ron,

Since code speaks thousand words :), I would love to see some sample code on what you're trying to do and how you did it. If you're busy, no biggie, just trying to learn a new pattern...

Thanks,
Dennis

RonPiterman wrote:
andyhot wrote:
Do you have to use direct links?
They expose too much of the inner workings of tapestry - that's why
they're not got for bookmarks as well...

how is this possible if my component should be dropped in different pages ?

I found finally another solution:

What I did is removed the link rendering from the pager, and delegated it to its body.

Added 3 out parameters: link text, link page and if selected.

in the page I added as a body a renderBlog, in both pages the same block, which contains the desired link. So both pagers render the same link, thus do the same URls...

Cheers,
Ron



Anyway, can you code around this using ExternalLinks ?


RonPiterman wrote:
I have a nice usability problem with direct links nested inside
components:

I have a pager component, which takes an in-out "page" parameter.

The pager component generates direct links, which invoke a listener in
the component with the page number as parameter.

The listener calls the set method of the "page" parameter, thus
changing the page number.

Now if I drop two instances of the pager component in a page, they
both generate different links, so visited pages can not be traced:

if the user clicks "2" on the one pager, the url is:

http://localhost:8080/bardtke/reg/Forum,$Pager.$DirectLink_1.sdirect?sp=1

on the other pager, the url is:

http://localhost:8080/bardtke/reg/Forum,$Pager_0.$DirectLink_1.sdirect?sp=1




so if on pager 1 page 2 is marked as visited, on pager 1 it isn't :(

Now thats a fine problem...

Any idees ?

Cheers,

Ron


---------------------------------------------------------------------
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]




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

Reply via email to