Re: dynamic link in actionlink

2008-06-25 Thread Geoff Callender

Alternatively, if you like this kind of syntax
context=list:student.id,student.rank
then contribute a ListBindingFactory to AppModule as described in http://wiki.apache.org/tapestry/Tapestry5HowToAddBindingPrefix 
 .


On 25/06/2008, at 7:18 AM, Sven Homburg wrote:


read the bottom of this page
http://tapestry.apache.org/tapestry5/tapestry-core/ref/org/apache/tapestry5/corelib/components/ActionLink.html

2008/6/24 tapestry5 [EMAIL PROTECTED]:



I have a scenario where I am creating multiple actionlink in a  
loop. But I

want to use the same id for all the actionlinks.

Test.jsp

t:loop source=studentlist value=student
t:actionlink id=rank context=student.id rank
${student.rank}/t:actionlink
/t:loop


So in my Test.java I have

Object onActionFromRank(final long _ student)
{
  Now here I am getting student.id but I also want selected  
rank. I

don't
know how to get selected rank from .tml. This is not inside form.

}

--
View this message in context:
http://www.nabble.com/dynamic-link-in-actionlink-tp18100111p18100111.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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





--
with regards
Sven Homburg
http://tapestry5-components.googlecode.com
http://chenillekit.googlecode.com



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



dynamic link in actionlink

2008-06-24 Thread tapestry5

I have a scenario where I am creating multiple actionlink in a loop. But I
want to use the same id for all the actionlinks.

Test.jsp

t:loop source=studentlist value=student
t:actionlink id=rank context=student.id rank
${student.rank}/t:actionlink
/t:loop 


So in my Test.java I have

Object onActionFromRank(final long _ student)
{
Now here I am getting student.id but I also want selected rank. I don’t
know how to get selected rank from .tml. This is not inside form.

}

-- 
View this message in context: 
http://www.nabble.com/dynamic-link-in-actionlink-tp18100111p18100111.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



Re: dynamic link in actionlink

2008-06-24 Thread Sven Homburg
read the bottom of this page
http://tapestry.apache.org/tapestry5/tapestry-core/ref/org/apache/tapestry5/corelib/components/ActionLink.html

2008/6/24 tapestry5 [EMAIL PROTECTED]:


 I have a scenario where I am creating multiple actionlink in a loop. But I
 want to use the same id for all the actionlinks.

 Test.jsp

 t:loop source=studentlist value=student
 t:actionlink id=rank context=student.id rank
 ${student.rank}/t:actionlink
 /t:loop


 So in my Test.java I have

 Object onActionFromRank(final long _ student)
 {
Now here I am getting student.id but I also want selected rank. I
 don't
 know how to get selected rank from .tml. This is not inside form.

 }

 --
 View this message in context:
 http://www.nabble.com/dynamic-link-in-actionlink-tp18100111p18100111.html
 Sent from the Tapestry - User mailing list archive at Nabble.com.


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




-- 
with regards
Sven Homburg
http://tapestry5-components.googlecode.com
http://chenillekit.googlecode.com


Dynamic Link

2006-09-06 Thread Nilesh

hi,

I need to add dynamic link to Tapestry Page, which should open in a pop-up
window. can any one please let me know how can i do this?

Thanks A lot
-- 
View this message in context: 
http://www.nabble.com/Dynamic-Link-tf2226663.html#a6170388
Sent from the Tapestry - User forum at Nabble.com.


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



Re: Dynamic Link

2006-09-06 Thread Mael Caldas

Hi Nielsh,

You can use a special renderer on DirectLink, PageLink, ExternalLink and so
on..:

bean name=popupRenderer
class=org.apache.tapestry.contrib.link.PopupLinkRenderer
   set name=windowName value='disclaimer'/
   set name=features value='width=300, height=500, scrollbars=yes,
resizable=no'/
/bean

On template:

a href=# jwcid=@DirectLink page=ognl:page
renderer=ognl:beans.popupRendererspan jwcid=@Insert
value=ognl:linkTitleLink/span/a

Don't forget to use the @Body component, becouse of the generated javascript

See the documentation for more details about features and so on...

Mael Caldas




On 9/6/06, Nilesh [EMAIL PROTECTED] wrote:



hi,

I need to add dynamic link to Tapestry Page, which should open in a pop-up
window. can any one please let me know how can i do this?

Thanks A lot
--
View this message in context: http://www.nabble.com/Dynamic-
Link-tf2226663.html#a6170388
Sent from the Tapestry - User forum at Nabble.com.


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