File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Passing attributes with <ice:commandButton>

 
Peter Fat
Greenhorn
Posts: 24
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!

I have several buttons, and I want each of of them to pass an attribute to the backing bean. How do I do this? I googled it several times, but I always get answers in completely different contexts... Is this not possible?

I have read that I can't pass <f:param> with command buttons. Is this true? All I need to pass is a string.
 
Cesar Loachamin
Ranch Hand
Posts: 90
Chrome Eclipse IDE Java
  • 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Peter

Hi Peter, sure you can pass parameters for your UI to your bean, and you can do it for different ways, but you can use a <f:param> or <f:attribute>, If you use the f:param in a commandButton or commandLink the value of the param is turned into a request parameter. When you use f:attribute you're attaching this attribute to the map of attributes of the component, I give you an example of how to use it.

An the method listener for the action event.

I hope this help you with your question
Regards
Cesar
 
Peter Fat
Greenhorn
Posts: 24
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Many thanks, mate!
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic