• 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:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

List Of JSF Operations

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I"m looking for a list of the built-in javascript functions that I can use in rich:componentControl tag on the operation= attribute.
e.g. <rich:componentControl for="panel" attachTo="link" operation="show" event="onclick"/>

what other JS built-ins are there I can fill in operation with? "hide" . . .

Thank you!
 
Saloon Keeper
Posts: 28663
211
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The operations are the methods that the component identified by the "for=" attribute supports. So it depends on the component.
 
Mark Loren Brown
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Tim thanks for your reply!

I'm still not any closer to what I'm looking for though.

Are the built-in "operations" listed/documented on a per component basis
(however incomplete)???

i.e. a list of built-in operations for modalPanel would be very helpful

Thanks!
 
Mark Loren Brown
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Okay so I guess there is no list that documents the built-ins for the operation= attribute of a rich:componentControl tag
that's controlling a modal

I've been googling for examples and find some things that way. But a documented list of supported operations
for a modal panel would enable everyone to create more freely.

QUESTION: So how do you all find out what else you can do with a modal panel rich:componentControl ???
 
Tim Holloway
Saloon Keeper
Posts: 28663
211
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Components are JavaScript "classes", insofar as JavaScript is an OOP language. The operations are simply the methods implemented by that class. So your list of allowable operations is dependent wholly and entirely on the component class you're using, and not on RichFaces.
 
Mark Loren Brown
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm gonna get flamed for this I just know it. So don't forget I'm a greenhorn, but this is a friendly place for greenhorns

I take your point that the RichFaces components I"m asking about are JS at bottom. But telling me the operations I can invoke
are the ones the JS class supports doesn't answer my question. I'm asking specifically about the "modalPanel". WHAT operations are there and more importantly where can I look for such information when I have questions about other components?

My question has SOMETHING to do with RichFaces bc I'm not accessing the JS components directly. I'm accessing the RichFaces components directly.

Look: I have a richfaces component "modalPanel"
<rich:modalPanel id="printPanel" . . .>. . .</rich:modalPanel>

I have another richFaces component "componentControl":
<rich:componentControl for="printPanel" attachTo="printLabel" operation="show" event="onclick"/>

I can "show" the RichFaces modalPanel. I can "hide" the RichFaces component modalPanel.

Question: what else can I do with a RichFaces modalPanel from a RichFaces componentControl???
................^^^^^^^^^^^^^^^
(here's where I'm expecting someone to insert a hilarious flame )
and more importantly: where can I look for that kind of information when I'm working with a different component?

 
Tim Holloway
Saloon Keeper
Posts: 28663
211
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Naw, we don't do flaming here, but it does help when you RTFM.

Of course, like a lot of FM's the RichFaces one doesn't say much about things that were obvious to the people who designed RichFaces (like proper use of the "data=" attibute on the backing bean side). And of course, since it's written by someone whose native language isn't English, it can be rough going some times.

You may be stretching things there a bit using the richfaces component to refer to a RichFaces control, but I haven't RTFM'd this in a while so I may be forgetting something. However, the modalPanel should be rendering an HTML component (probably <div>, and like most HTML graphical elements, that means that all the JavaScript object methods that apply to any other div are fair game to RichFaces componentControl.
 
Mark Loren Brown
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Tim!

http://livedemo.exadel.com/richfaces-demo/richfaces/componentControl.jsf?c=componentControl&tab=usage

Here's a link to the Exadel Live Demo that gives an example of using componentControl to control a modalPanel
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic