voyent
format content of commandLink  XML
Forum Index -> Components
Author Message
Alex

Joined: 08/Feb/2006 00:00:00
Messages: 22
Offline


Hi there

Is there a way to render the value of a commandLink with another component, let's say an outputText?
I've tried a couple of components but they were not rendered at all?

I need it because I want a padding-top on the text of the link and if I put it on the commandLink itself it doesn't work correctly. I've tried it without JSF, using a styled < a> with a < h2> tag inside, works fine!

Any hints?
Alex
patrick.corless

Joined: 26/Oct/2004 00:00:00
Messages: 1982
Offline


Hello Alex;

You have two options in JSF for getting an anchor; commandLink and outputLink. In order to get plain html tags to show up you must add them to a panelGroup. Please see the attached example.

Patrick
 Filename anchors.jspx [Disk] Download
 Description No description given
 Filesize 2 Kbytes
 Downloaded:  348 time(s)

[Email]
Alex

Joined: 08/Feb/2006 00:00:00
Messages: 22
Offline


Got it!

Thanks a lot for the file!
Alex
 
Forum Index -> Components
Go to:   
Powered by JForum 2.1.7ice © JForum Team