This content has been marked as final.
Show 4 replies
-
1. Re: call richfaces components in javascript
akaine Jun 7, 2010 2:46 AM (in response to fantaisie)Try Richfaces.showModalPanel('panel');
does essentially the same thing...
-
2. Re: call richfaces components in javascript
ilya_shaikovsky Jun 7, 2010 6:42 AM (in response to fantaisie)rich:component should works, and Richfaces.show.. - deprecated API.. If not works - check browser console for JS errors.
-
3. Re: call richfaces components in javascript
fantaisie Jun 8, 2010 5:41 AM (in response to ilya_shaikovsky)i tried to use a4j:jsfunction to do that.
//js
function addMarker(){
//gmaps code
showPanel();
}
//jsf
<a4j:jsFunction name="showPanel" actionListener="#{mybean.showPanel}" reRender="panel"></a4j:jsFunction>//mybean.java
public void showPanel(ActionEvent event){
modelPanel.setShowWhenRendered(true);
}
but it doesn't work, anything i missed?
-
4. Re: call richfaces components in javascript
fantaisie Jun 8, 2010 6:40 AM (in response to ilya_shaikovsky)hey,
it works using jsFunction now, my mistake,
PS: jsFunction is a really great component!
and is there anyway to make the model panel with no model, like a regular message box?
thank you