struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stephen Ince <stephenpi...@gmail.com>
Subject Re: how to customize the rendering of a tabbedpanel? struts2, dojo plugin
Date Fri, 05 Feb 2010 22:26:40 GMT
I haven't gone around to trimming the fat yet.
You also need the css files.

On Fri, Feb 5, 2010 at 10:43 AM, Jake Vang <vangjake@googlemail.com> wrote:
> Steve, i know this is a dojo question, but while we're on it, i don't
> think i need all those .js files. i think the only ones i need are
> referenced by dojo.require(..) right? thanks for the heads up (i was
> worried about those remote servers going away too).
>
> On Fri, Feb 5, 2010 at 9:40 AM, Stephen Ince <stephenpince@gmail.com> wrote:
>> Jake,
>>  I actually ran into a lot problems accessing dojo from other
>> servers. They all went away when I installed it locally. I think you
>> get some sandbox security issues with some of the packages.
>>
>> cheers,
>> Steve
>>
>> On Fri, Feb 5, 2010 at 8:44 AM, Jake Vang <vangjake@googlemail.com> wrote:
>>> stephen,
>>>
>>> thanks. i'm looking into the dojo js framework right now. i've
>>> downloaded the files, but they are almost 10 MB? !!!! i know you can
>>> reference the JS on other servers too, but i'd like local copies for
>>> development testing. i didn't really want to use dojo directly because
>>> i didn't want to do programming (Java or JavaScript) right on the
>>> page.
>>>
>>> On Thu, Feb 4, 2010 at 6:10 PM, Stephen Ince <stephenpince@gmail.com> wrote:
>>>> Jake,
>>>>  The sx: tags are based on the .4 dojo tags. I would just use the
>>>> dojo tags themselves. The dojo plugin is also being depricated. The
>>>> new dojo tags are at 1.4.  I solved a similiar height problem on dojo
>>>> 1.4 by doing the following.
>>>>
>>>>
>>>>  <style type="text/css">
>>>>      body, html { height: 99%;overflow:hidden;
>>>> margin-bottom:0;padding-bottom:0;}
>>>>  </style>
>>>> </head>
>>>> <body class="tundra">
>>>> <div id="tabbedPaneContainer" style="height:100%;">
>>>> <div id="tabbedPane" dojoType="dijit.layout.TabContainer"
>>>> preload="false" style="width:100%;height:100%">
>>>>
>>>> Steve
>>>>
>>>>
>>>>
>>>> On Thu, Feb 4, 2010 at 10:25 AM, Jake Vang <vangjake@googlemail.com>
wrote:
>>>>> i'm using the <sx:tabbedpanel/> in the struts2-dojo-plugin. i have
a
>>>>> few questions on controlling the display/rendering of this component.
>>>>>
>>>>> 1. can i make the <sx:tabbedpanel/> expand 100% in height? i've
tried
>>>>> several things: a) place the <sx:tabbedpanel/> inside a <table>
and
>>>>> set the height of the table to 100%, b) set the <body/> height
to
>>>>> 100%, c) set the <sx:tabbedpanel/> height to 100% (with combinations
>>>>> of a and/or b). none of these seem to work unless i explicitly set the
>>>>> height in px (i.e. <sx:tabbedpanel cssStyle="width: 100%; height:
>>>>> 400px;"/>), but then this doesn't expand 100% in height.
>>>>>
>>>>> 2. how can i control how the actual tabs inside <sx:tabbedpanel/>
gets
>>>>> displayed (the <sx:div/>)? from looking at the TLD and generated
HTML,
>>>>> it seems the rendering is controlled through CSS. however, at which
>>>>> level, <sx:tabbedpanel/> or <sx:div/>, do i set the CSS?
my problem is
>>>>> that i don't particularly like the rounded, blue tab display. i want
>>>>> to change it to something more linear/rectangular. when i look at the
>>>>> HTML generated, there is a link to
>>>>> /<my-context>/struts/TabbedPanel.css, but looking at this CSS file,
i
>>>>> just see something defined for, .strutsDisabledTab div span.
>>>>>
>>>>> any help is appreciated. thanks.
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>>>>> For additional commands, e-mail: user-help@struts.apache.org
>>>>>
>>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>>>> For additional commands, e-mail: user-help@struts.apache.org
>>>>
>>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>>> For additional commands, e-mail: user-help@struts.apache.org
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message