Hi
As everyone on post mentions about the jenia4faces popups , I have used that and its working gr8 for me. Thanks to all for that.
But I have a problem of disabling a button in certain cases, so dat it shldnt be clickable and therefore should not allow popup to open.
There is a property called disabled=true, but even though using it the button clicks and opens the popup.
Below is my jsp code..
<h:form id="pop">
<h:panelGrid columns="3" styleClass="explorerBar" width="100%"
cellpadding="0" cellspacing="0" width="30%">
<jp:popupFrame scrolling="no" height="150px" width="350px" actionOpen="#{projectLeafActions.goPopup}" actionClose="#{projectLeafActions.popupReturn}" center="true" >
<h:commandButton id="addtaskbutton" value="Add Task"
disabled="#{!projectLeafActions.isAddEnabled}"
styleClass="normalbutton"
/>
</jp:popupFrame>
<h:commandButton id="edittaskbutton" value="Edit"
styleClass="normalbutton"
>
</h:commandButton>
<h:commandButton id="deletetaskbutton" value="Delete"
styleClass="normalbutton"
>
</h:commandButton>
</h:panelGrid>
</h:form>
I want the "Add Task" button to be disabled if "projectLeafActions.isAddEnabled" returns false . The code works fine in FireFox but not in IE.
Is this some sort of bug.. ? Any workaround for this.. ?
Any help wud be appreciated.
TIA
Nikita
As everyone on post mentions about the jenia4faces popups , I have used that and its working gr8 for me. Thanks to all for that.
But I have a problem of disabling a button in certain cases, so dat it shldnt be clickable and therefore should not allow popup to open.
There is a property called disabled=true, but even though using it the button clicks and opens the popup.
Below is my jsp code..
<h:form id="pop">
<h:panelGrid columns="3" styleClass="explorerBar" width="100%"
cellpadding="0" cellspacing="0" width="30%">
<jp:popupFrame scrolling="no" height="150px" width="350px" actionOpen="#{projectLeafActions.goPopup}" actionClose="#{projectLeafActions.popupReturn}" center="true" >
<h:commandButton id="addtaskbutton" value="Add Task"
disabled="#{!projectLeafActions.isAddEnabled}"
styleClass="normalbutton"
/>
</jp:popupFrame>
<h:commandButton id="edittaskbutton" value="Edit"
styleClass="normalbutton"
>
</h:commandButton>
<h:commandButton id="deletetaskbutton" value="Delete"
styleClass="normalbutton"
>
</h:commandButton>
</h:panelGrid>
</h:form>
I want the "Add Task" button to be disabled if "projectLeafActions.isAddEnabled" returns false . The code works fine in FireFox but not in IE.
Is this some sort of bug.. ? Any workaround for this.. ?
Any help wud be appreciated.
TIA
Nikita
---------------------------------------------------------------------
Ability is what you 're capable of.
Motivation determines what you do.
Attitude determines how well you do it.
---------------------------------------------------------------------
Regards,
Nikita Shah
Software Engineer
SNS Technologies
Phone: Tel: +91-20-30582122
Cell: +919372873355
Website: www.snstech.com
Head Office: 301 | 3rd Floor | City Towers | 17 Dhole Patil Road |
Yahoo! Photos Showcase holiday pictures in hardcover
Photo Books. You design it and well bind it!

