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


Nikita Shah <[EMAIL PROTECTED]> wrote:
Hi

I have a situation where i have to use a popup on one of the tabs of TabbedPane.
Now when am trying to use jenia4faces popupFrame tag, it requires it to be inside the h:form element.. But i get _javascript_ error when i use h:form on the page..
saying "f has no properties" ..this element is formed in _javascript_ by some hidden dummyForm..

The jsp containing tabbedPanel is below:

<t:panelTabbedPane styleClass="tabs"
                 activeTabStyleClass="active"
                 inactiveTabStyleClass="inactive"
                 activeSubStyleClass="activeSub"
               &nbs p; inactiveSubStyleClass="inactiveSub"
                 tabContentStyleClass="tabContent"
                 cellpadding="0"
                 cellspacing="0"
                 width="100%">
    <f:subview id="pmtabview" >
        <t:panelTab id="PMTab" label="Project Manager View" rendered="#{tabbedPanel.pmTabVisible}">
            <jsp:include page="pmView.jsp"/>
        </t:panelTab>
    </f:subview>
   
    <f :subview id="potabview" >
        <t:panelTab id="POTab" label="Project Owner View" rendered="#{tabbedPanel.poTabVisible}">
            <jsp:include page="poView.jsp"/>
        </t:panelTab>
    </f:subview>
</t:panelTabbedPane>   

The pmView.jsp is as below :

<f:subview id="pop">
     <h:form id="p2">   
                                       
        <jp:popupFrame id="xx" scrolling="yes" height="450px" width="550px" actionOpen="#{projectLeaf.goPopup}" center="true" actionClose="#{projectLeaf.popupReturn}">
     &nbs p;      <h:outputText value="Popup frame"/>
        </jp:popupFrame>                               
       
         </h:form>       
     </f:subview>       



<t:dataTable id="taskTable" styleClass="taskTable"
    rowClasses="taskTable_Row1,taskTable_Row2" var="task"
    columnClasses="taskTable_nodeColumn,taskTable_weightColumn"
    value="#{projectLeaf.tasks}" >
   
    <t:column>
        <f:verbatim>& lt;DIV STYLE="float: left"></f:verbatim>
        <t:graphicImage value="../images/tick.jpg" rendered="#{task.isCompleted}" border="0"/>
        <t:graphicImage value="../images/block.jpg" rendered="#{!task.isCompleted}" border="0"/>               
       
        <h:outputText value="#{task.name}" />
</t:column>
</t:dataTable>


I am not getting a clue why am not allowed to use the h:form tag on the pmView.jsp .. ?
Can anyone suggest me where am i going wrong ..?
Any help wud be appreciated.

TIA
Nikita


Werner Punz <[EMAIL PROTECTED]> wrote:
::SammyR ulez:: wrote:
> not sure but I think
>
>
>
>
>


a target="_new" should do it, but opening popups is calling for trouble,
you basically open a can of worms, due to the fact that you do not have
a modal dialog mechanism which works across browsers.
That is one and pretty much the only thing the IE has as significant
advantage over all other browsers, that you are able to open modal windows.

As someone pointed out already, before opening popup windows, rather go
for a jenia4faces like popup mechanism. This one delivers modal like
mechanisms without having to open a new window.



Yahoo! Photos
Got holiday prints? See all the ways to get quality prints in your hands ASAP.


Yahoo! Photos
Ring in the New Year with Photo Calendars. Add photos, events, holidays, whatever.

Reply via email to