RichFaces rich:clientId within facelets
Posted
by Matthias Hryniszak
on Stack Overflow
See other posts from Stack Overflow
or by Matthias Hryniszak
Published on 2010-06-02T10:55:03Z
Indexed on
2010/06/07
1:52 UTC
Read the original article
Hit count: 377
Hi there,
I'm trying to something like this:
<?xml version="1.0"/>
<ui:composition ....>
<h:inputText id="#{id}InputText" value="#{value}"/>
<rich:calendar id="#{id}Shevron"
popup="true"
datePattern="ddMMyy"
showInput="false"
todayControlMode="hidden"
enableManualInput="false"
showApplyButton="false"
updateDays="14"
ondateselected="alert('#{rich:clientId('#{id}Shevron')}');"
inputClass="xwingml-input"/>
</ui:composition>
The problem I'm facing here is that the actual client id is generated for my facelts components. Is there a way to pass an id to rich:clientId like this? If not how would one go about this kind of problem?
Thanks in advance!.
© Stack Overflow or respective owner