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}">
            <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.

Reply via email to