0

link in tree???

asked 2006-05-15 16:07:52 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3731055

By: nobody

I have the following construct:

<treeitem forEach="${each.pages}">
<treerow>
<treecell label="${each.title}"/>
<treecell>
<h:table>
<h:tr>
<h:td><h:a href="/aale/author/deletePage.do?page_id=${each.id}"><h:img
src="../author/images/delete.png" title="delete"/></h:a></h:td>
<h:td><h:a href="/aale/author/editPage.do?page_id=${each.id}"><h:img
src="../author/images/edit.png" title="edit"/></h:a></h:td>
</h:tr>
</h:table>
</treecell>
</treerow>
</treeitem>

all the links are generated as the should be, but when i click on the link:
<h:a href="/aale/author/editPage.do?page_id=${each.id}"><h:img
src="../author/images/edit.png" title="edit"/></h:a>

or the deletPage the action is no called. When i use the same link outside my tree it works.

how can i use links inside a treecell??

greez


delete flag offensive retag edit

30 Replies

Sort by ยป oldest newest

answered 2006-05-15 16:20:04 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3731072

By: nobody

Looks like a bug. I posted it at
http://sourceforge.net/tracker/index.php?func=detail&aid=1488938&group_id=152762
&atid=785191

BTW, toolbarbutton is the same as h:a with label and/or image.

link publish delete flag offensive edit

answered 2006-05-15 16:31:26 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3731086

By: henrichen

Can you move the mouse over the link and see the interpreted link in Browser's status bar? Did the "complete" link is what you expected?

It all depends on the generated href, interpreted by the browser, not ZK.

/henri

link publish delete flag offensive edit

answered 2006-05-15 16:32:21 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3731088

By: henrichen

You can set both label and image in toolbarbutton.

/henri

link publish delete flag offensive edit

answered 2006-05-15 16:42:31 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3731101

By: nobody

im using this toolbarbutton now:
<toolbarbutton href="/author/deletePage.do?page_id=${each.id}"
image="../author/images/delete.png"/>

it generates this link:
http://localhost:8080/aale/author/deletePage.do?page_id=67

but when i click on it the action isn't called. instead the processing layer appears in the upper right corner and nothin is happening.


link publish delete flag offensive edit

answered 2006-05-15 16:49:09 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3731112

By: tomyeh

Confirmed. A bug and solved.

tom

link publish delete flag offensive edit

answered 2006-05-15 16:56:30 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3731128

By: nobody

a Bug and solved??????

It doesn't work for me. Also when i'm using onClick.
The action isn't called!!!!

link publish delete flag offensive edit

answered 2006-05-15 17:21:46 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3731157

By: nobody

is it not possible to call a normal html link from within a tree component??

with onClick i can just call a function in a zscript.

cheers

link publish delete flag offensive edit

answered 2006-05-16 06:56:32 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3731992

By: henrichen

Someone has post it as a bug. We confirm that and solve that. The next nigtly version would include the debugged version.

Follow this tracker:

https://sourceforge.net/tracker/?func=detail&atid=785191&aid=1488938&group_id=15
2762

/henri

link publish delete flag offensive edit

answered 2006-05-16 06:58:17 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3731995

By: henrichen

Try on the next Nightly release or maybe 1.2 RC3. href should work.

/henri

link publish delete flag offensive edit

answered 2006-05-16 06:59:38 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3731999

By: henrichen

Using java api(aka onClick in your case), you can call

Executions.sendRedirect(url);

to change to another page.

/henri


link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2006-05-15 16:07:52 +0800

Seen: 551 times

Last updated: May 23 '06

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More