struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ted Husted" <hus...@apache.org>
Subject Re: using YUI with struts 2
Date Mon, 21 Jan 2008 14:36:08 GMT
Does this count as being documented

 * http://struts.apache.org/2.x/docs/ajax.html

or do we need something more specific?

-Ted.

On Jan 20, 2008 5:56 AM, ravi_eze <ravi_eze@yahoo.com> wrote:
>
> hi Jeromy Evans,
> Thanks for the quick reply. The YUI is working with the html tags also. I
> dont know if this is documented anywhere; any how thanks for the help
>
>
> :-)
>
> Jeromy Evans - Blue Sky Minds wrote:
> >
> > Hi Ravi,
> >
> > YUI doesn't require any specific tags.  AFAIK, they're all plain old
> > valid html.  It can't get much better than that.
> >
> > ie. this is a TabView:
> >
> > <div id="demo" class="yui-navset">
> >     <ul class="yui-nav">
> >         <li class="selected"> #tab1 <em>Tab One Label</em> </li>
> >         <li> #tab2 <em>Tab Two Label</em> </li>
> >         <li> #tab3 <em>Tab Three Label</em> </li>
>
> >     </ul>
> >     <div class="yui-content">
> >         <div><p>Tab One Content</p></div>
> >         <div><p>Tab Two Content</p></div>
> >         <div><p>Tab Three Content</p></div>
> >     </div>
> > </div>
> >
> >
> > It's instantiated with:
> >
> > var myTabs = new YAHOO.widget.TabView("demo");
> >
> > Which adds additional valid html markup to the DOM.
> >
> > You can create a TagLib or Struts2 tags for commonly used widgets if you
> > like, as provided by the YUI plugin, but this doesn't add much value.
> > For instance, I've created a TabView tags like this:
> >
> > <yui:tabview id="demo" selected="tab1">
> >   <yui:tab id="tab1" label="Tab One Label">Tab One Content</yui:tab>
> >   <yui:tab id="tab2" label="Tab Two Label">Tab Two Content</yui:tab>
> >   <yui:tab id="tab3" label="Tab ThreeLabel">Tab Three Content</yui:tab>
> > </yui:tabview>
> >
> > That renders the original HTML above.  The value this adds over the
> > original HTML is dubious considering the effort it took to write the
> > custom-tag and the clarity of the original code.  Writing custom tags
> > for the DataTable, TreeView, Charts etc are definitely not worth the
> > effort because the tags can't replicate the functionality of the API.
> >
> > What exactly were  you hoping for?
> >
> > regards,
> >  Jeromy Evans
> >
> > ravi_eze wrote:
> >> hi,
> >>
> >> i want to use YUI library (http://developer.yahoo.com/yui/) with struts2.
> >> The problem is that YUI requires YUI specific tags while struts generates
> >> html tags. so, can we write themes(ftls etc similar to xhtml etc) which
> >> would generate YUI tags instead of HTML? would this bring in new
> >> problems?
> >> or did any one have tried this? YUI plugin is provided but its alpha
> >> version
> >> and doesnt provide all components that we require.
> >>
> >> any help?

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


Mime
View raw message