• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

how to build CommandLink

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How to build the component commandLink.I am using the code
UICommand command = new UICommand();
But when displayed,it gives me a command button.But i want a commandLink to be displayed.
 
Ranch Hand
Posts: 2874
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Use HtmlCommandLink instead.

[Edited]
UICommand is a base class for both HtmlCommandLink and HtmlCommandButton.
[ April 05, 2006: Message edited by: Adeel Ansari ]
 
deepak reads
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Adeel,do i have to something else also.Bcoz when i do
HtmlCommmandLink command = new HtmlCommandLink();

It does not show up in the screen where as if with the same code i do
UICommand command = new UIcommand();

It shows in the screen as button

Thanks,
Deepak
 
Adeel Ansari
Ranch Hand
Posts: 2874
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Check. Whether it is rendering the component or not?
 
Ranch Hand
Posts: 455
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
deepak, did you add any components to the htmlcommandlink ? if u dont add any Text or Image it wont get displayed in your page.

try this


here createOutputText is a private method that creates and returns HtmlOutputText and panelGrid5_2_1 is the PanelGrid to which i am adding my components.

Hope it helps.

Thanks,
Rajeev.
 
Remember to always leap before you look. But always take the time to smell the tiny ads:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic