[richfaces-issues] [JBoss JIRA] (RF-11306) [rich:tabPanel] allow usage of form-elements inside tabs

Yavuz Kavus (JIRA) jira-events at lists.jboss.org
Mon Feb 6 05:05:49 EST 2012


    [ https://issues.jboss.org/browse/RF-11306?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12664389#comment-12664389 ] 

Yavuz Kavus commented on RF-11306:
----------------------------------

I think it should not be added a form dynamically.
Why not just when click a tab, calling an external
ajax function. like jsFunction.

We need this improvement. Because sometimes,
instead of creating multiple pages,
we are using tabpanel whose each tab includes
one page. And those pages need one or more 
sub forms.

Ex:
<tabPanel ontabchange="call an external ajax, on complete, render new tab">
   <tab>
      <include page1.xhtml>
         <!-- content of page1.xhtml
             <form> navigation </form>

             <form> login </form>

             <form> ... </form>

         -->
      </include>
   </tab>
   <tab>
      <include page2.xhtml />
   </tab>
</tabPanel>

Sorry, for my guidance :)
But in our projects, we are using dirty workarounds. We need it.
                
> [rich:tabPanel] allow usage of form-elements inside tabs
> --------------------------------------------------------
>
>                 Key: RF-11306
>                 URL: https://issues.jboss.org/browse/RF-11306
>             Project: RichFaces
>          Issue Type: Feature Request
>      Security Level: Public(Everyone can see) 
>          Components: component-panels-layout-themes
>    Affects Versions: 4.0.0.Final
>            Reporter: Rene O
>             Fix For: 4.3-Tracking
>
>
> Currently you must surround <rich:tabPanel> with <h:form>-element if you use switchType="ajax" or switchType="server".
> It should be possible, like in Richfaces 3, that a form-element outside of rich:tabPanel is not needed.
> A common usecase is the usage of an include-fragment which contains a form.
> <rich:tabPanel switchType="ajax">
>    <rich:tab>
>       <h:form if="form1">
>       ...
>       </h:form>
>    </rich:tab>
>    <rich:tab>
>       <ui:include .../>
>    </rich:tab>
> </rich:tabPanel>
> definition of include:
> <ui:composition >
> ...
> <h:form if="formOfInclude">
> ...
> </h:form>
> </ui:composition >
> Currently it is not possible to design the pages in such way cause of nesting form-elements

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the richfaces-issues mailing list