[ 
https://issues.apache.org/struts/browse/WW-2067?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_41690
 ] 

Hubert Grininger commented on WW-2067:
--------------------------------------

We want to avoid both JavaScript and AJAX (as a consequence).

Well and the tabbed panel is really just a list of html tags but with the extra 
feature to remember which tab is currently active (and of course the including 
of the tab's content). Thus you need some logic which remembers which tab was 
clicked. In WebWork 1 this info was stored in the session. I think the 
functionality of the old implementation was useful, so maybe it's worth to 
create a struts tag (or adopt the current tag resp.).

> Make tabbed pane usable without the need for AJAX
> -------------------------------------------------
>
>                 Key: WW-2067
>                 URL: https://issues.apache.org/struts/browse/WW-2067
>             Project: Struts 2
>          Issue Type: Improvement
>          Components: Views
>    Affects Versions: 2.0.0, 2.0.1, 2.0.2, 2.0.3, 2.0.4, 2.0.5, 2.0.6, 2.0.7, 
> 2.0.8, 2.0.9
>            Reporter: Hubert Grininger
>
> There sould be a AJAX-less version of the tabbed panel, because *not everyone 
> wants to use ajax*, at least not as a prerequisite.
> The declaration should look a bit like that:
> Example:
>  <s:tabbedPanel id="test">
>     <s:panel id="one" label="one"       include="inc/panelone.inc.jsp" >      
>   
>     <s:panel id="two" label="remote"  include="inc/paneltwo.inc.jsp" >        
>  </s:tabbedPanel>
> So you just declare which jsp files should be included for each tab. The 
> include is only done when the specific panel is active.
> I think it's a bit like the old WebWork's tabbedpane tag, but not as 
> complicated to configure.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to