-
1. Re: <s:link... /> - how to generate links?
pmuir Oct 2, 2006 11:23 AM (in response to superfis)I'm not sure I understand you but wouldn't
<ui:repeat value="#{myList}" var="url"> <a href="#{url}">#{url}</a> </ui:repeat>
work if you just want a list of links from a list of urls. -
2. Re: <s:link... /> - how to generate links?
gavin.king Oct 2, 2006 12:36 PM (in response to superfis)I just closed the JIRA issue, but I agree with petemuir - his approach is a better way.
-
3. Re: <s:link... /> - how to generate links?
superfis Oct 2, 2006 3:53 PM (in response to superfis)I agree with you guys, but I'd like to receive correct, from Seam point of view, url with conversationId and so on. I'm interested in such a url conversation as <s:link view="/xxx.xhtml" ... /> does with "/xxx.xhtml".
I hope I'm clear a bit more this time.
Regards, Slawek -
4. Re: <s:link... /> - how to generate links?
gavin.king Oct 2, 2006 3:57 PM (in response to superfis)So, like I said, I allowed value bindings in <s:link view="..."/> now.
But you can get the same effect using:<ui:repeat value="#{myList}" var="url"> <a href="#{url}?conversationId=#{conversation.id}&conversationIsLongRunning=#{conversation.longRunning}">#{url}</a> </ui:repeat>
-
5. Re: <s:link... /> - how to generate links?
superfis Oct 2, 2006 4:25 PM (in response to superfis)Thank you Gavin for value binding implementation and above explanation.
Slawek -
6. Re: <s:link... /> - how to generate links?
superfis Oct 3, 2006 6:00 AM (in response to superfis)Hi Gavin,
I didn't notice it earlier because there was time to bad :) but <s:link/> tag doesn't support view data binding correctly yet. I took a look into newest HtmlLink.java and there exists data binding implementation but without influence encodeUrl content.
Is it possible to relocate mentioned part of code before encodeUrl and connect view with viewId to achieve the same functionality for data binded values as for 'normal' ones? -
7. Re: <s:link... /> - how to generate links?
gavin.king Oct 3, 2006 11:35 AM (in response to superfis)huh?
-
8. Re: <s:link... /> - how to generate links?
superfis Oct 3, 2006 3:00 PM (in response to superfis)If I'm wrong, sorry about that.
-
9. Re: <s:link... /> - how to generate links?
gavin.king Oct 3, 2006 5:44 PM (in response to superfis)I have no idea if you are right or wrong, because I don't understand what you wrote.
-
10. Re: <s:link... /> - how to generate links?
superfis Oct 4, 2006 4:43 AM (in response to superfis)OK. I'll try to explain. The idea was to allow data binding for view parameter. It has beed implemented but there is a problem. Result of such a data binding has no effect on final URL generated by <s:link/> tag.
In the latest part of my previous post I ineffectually tried to ask you for such implementation which would give e.g.:
we have:someObject.someProperty = "/site.xhtml" <s:link view="#{someObject.someProperty}" .../>
and result in html:<a ref="/context/site.seam?conversationId=1&lrc=true">...</a>
-
11. Re: <s:link... /> - how to generate links?
superfis Oct 5, 2006 5:17 PM (in response to superfis)Hi Gavin.
Did you have a while to take a look at this?
Regards,
Slawek -
12. Re: <s:link... /> - how to generate links?
gavin.king Oct 5, 2006 10:35 PM (in response to superfis)Yes, there was a bug. Now fixed in CVS. Please test it for me.
-
13. Re: <s:link... /> - how to generate links?
superfis Oct 6, 2006 2:05 AM (in response to superfis)It works perfectly now. I'm thankful to you!
-
14. Re: <s:link... /> - how to generate links?
gavin.king Oct 6, 2006 3:20 AM (in response to superfis)np, good luck