You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by lbastil <ba...@gmx.de> on 2007/10/19 13:50:50 UTC
Re: [Struts2] tabbed panel: tab which directly calls other view
(like anchor)?
Does nobody have comment about it?
anybody who did something similar?
Thank you in advance.
lbastil wrote:
>
> Hello,
>
> I have the following requirement I would like to realize and I ask myself
> whether it is possible with struts2 tabbed pane (right now after some
> attempts I was not successful):
>
> I have hierarchical data which are shown in tabs.
>
> Sample: <ObjectA> have Collection of <ObjectB>
>
> now presentation of that is the following:
>
> - ViewA for <ObjectA> has tabed pane with:
> * tab 1: (local) main information of <ObjectA>
> * tab 2: (remote) other information of <ObjectA>
> * tab 3: (remote) list of <ObjectB>, by clicking on special <ObjectB> you
> are forwarded to:
>
> - ViewB for <ObjectB> has tabed pane with:
> * tab 1: (local) main information of <ObjectB>
> * tab 2: (remote) other information of <ObjectB>
>
> Now here in this view I would like to add a special tab3:
> * tab 3: label something like "back", which will forward the user
> immediately to ViewA
> (in addition it would be nice if this special tab could have some extra
> css formating, for instance shown on right side and so on ...)
>
> So what I mean is pretty much the same like an anchor (<s:a>-tag), but
> rendering as "special tab" on a user friendly position and styled
> comparable to the normal tabs ...
>
> Can anybody tell me whether this is possible
> a) with configuring tabbed panes / divs
> or
> b) some workaround which could realize most of the requirement?
>
> meanwhile I was able to realize the requirement, but it is really a dirty
> hack and render only in firefox:
>
> ...
> <s:url id="goback" value="/traegerData_traeger_show.action" />
>
> <!-- really a hack, temporary -->
> <div class="dojoTab current" style="float:right;">
> <div>
> <s:a href="%{goback}"><s:text name="back.title" /></s:a>
> </div>
> </div>
>
> <s:tabbedPanel id="tabpanel_einrichtung" >
> <s:div ...
> ...
>
>
> Its really dirty (simulates an dojo tab), but from gui perspective it
> shows exactly what I want ...
>
>
> Thank you very much for any recommendations in advance,
> Basti
>
--
View this message in context: http://www.nabble.com/-Struts2--tabbed-panel%3A-tab-which-directly-calls-other-view-%28like-anchor%29--tf4640952.html#a13292888
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org