[
https://issues.jboss.org/browse/RF-12836?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Lukáš Fryč updated RF-12836:
----------------------------
Description:
I'm trying to add a rich:componentControl to show a popup when a butotn is
clicked, but when the button is disabled it doesn't work.
{code}
<h:commandButton id="delete-all-button"
value="#{msgs.geral_excluir_selecionados}"
rendered="#{bean.dataModel.rowCount != 0}"
type="button" disabled="true">
<rich:componentControl event="click" target="confirm-popup"
operation="show">
<a4j:param noEscape="true" value="event" />
<rich:hashParam>
<f:param name="width" value="500" />
<f:param name="height" value="300" />
<f:param name="minWidth" value="300" />
<f:param name="minHeight" value="150" />
<a4j:param noEscape="true" name="left"
value="(jQuery(window).width()/2)-250" />
<a4j:param noEscape="true" name="top"
value="(jQuery(window).height()/2)-150" />
</rich:hashParam>
</rich:componentControl>
</h:commandButton>
{code}
If I remove the disabled attribute it works.
Issue on the forum: https://community.jboss.org/thread/222320
was:
I'm trying to add a rich:componentControl to show a popup when a butotn is
clicked, but when the button is disabled it doesn't work.
<h:commandButton id="delete-all-button"
value="#{msgs.geral_excluir_selecionados}"
rendered="#{bean.dataModel.rowCount != 0}"
type="button" disabled="true">
<rich:componentControl event="click" target="confirm-popup"
operation="show">
<a4j:param noEscape="true" value="event" />
<rich:hashParam>
<f:param name="width" value="500" />
<f:param name="height" value="300" />
<f:param name="minWidth" value="300" />
<f:param name="minHeight" value="150" />
<a4j:param noEscape="true" name="left"
value="(jQuery(window).width()/2)-250" />
<a4j:param noEscape="true" name="top"
value="(jQuery(window).height()/2)-150" />
</rich:hashParam>
</rich:componentControl>
</h:commandButton>
If I remove the disabled attribute it works.
Issue on the forum: https://community.jboss.org/thread/222320
> Component control doesn't work when a button is disabled
> --------------------------------------------------------
>
> Key: RF-12836
> URL: https://issues.jboss.org/browse/RF-12836
> Project: RichFaces
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: component-panels-layout-themes
> Affects Versions: 4.3.0.Final
> Reporter: Migore S
>
> I'm trying to add a rich:componentControl to show a popup when a butotn is
> clicked, but when the button is disabled it doesn't work.
> {code}
> <h:commandButton id="delete-all-button"
> value="#{msgs.geral_excluir_selecionados}"
> rendered="#{bean.dataModel.rowCount != 0}"
> type="button" disabled="true">
> <rich:componentControl event="click" target="confirm-popup"
> operation="show">
> <a4j:param noEscape="true" value="event" />
> <rich:hashParam>
> <f:param name="width" value="500" />
> <f:param name="height" value="300" />
> <f:param name="minWidth" value="300" />
> <f:param name="minHeight" value="150" />
> <a4j:param noEscape="true" name="left"
> value="(jQuery(window).width()/2)-250" />
> <a4j:param noEscape="true" name="top"
> value="(jQuery(window).height()/2)-150" />
> </rich:hashParam>
> </rich:componentControl>
> </h:commandButton>
> {code}
> If I remove the disabled attribute it works.
> Issue on the forum: https://community.jboss.org/thread/222320
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
richfaces-issues mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/richfaces-issues