yet more TagLibs problems

As jato2 still doesn't know about some HTML4 tags like <label>

ex:

<label><input type="radio" ... />TheLabel</label>

if you click on "TheLabel", it clicks on the radio button, like every

other GUI

I thought I would be able use the <label for=""> as a workaround

<input type="radio" name="choice" id="choice1" /> <label

for="choice1">TheLabel</label>

BUT despite it generates several tags, <jato:radioButtons> sets the id

attribute to the same value for every tag :< This not only defeats my

workaround but also id main purpose to uniquely identity elements.

We really need a generic mechanism to specify attributes when jato tags

generate multiple HTML tags.

I can still change the generated tags in endDisplay but it be neat if

the 201 taglib was a little bit more XHTML compliant and savvy ;)

Fr?d?ric

ps: release this part of the source code and we'll do it !

[1051 byte] By [Guest] at [2007-11-25 9:29:05]
# 1

On mercredi, nov 13, 2002, at 13:34 Europe/Paris, Todd Fast wrote:

> Fr?d?ric--

>

> Thanks for the info; I will look into a way of doing something about

> this.

>

> However, please keep in mind that you can write your own complementary

> tags

> to render JATO components any way you like (or write JATO components

> that

> render themselves any way you like), and this is expected to be a

> normal, if

> infrequent, part of writing JATO 2.0 components.

That's what I'm doing right now for the WML tags. But I was planning on

using the standard tags for mainstream HTML ;)

May you elaborate a little bit on complementary tags vs components ?

(first part of the suggested thread.

> Until the 2.0 taglib is documented, you can use the 1.2.1 JATO source

> to

> guide this effort.? It's actually pretty easy, but you will need the

> source

> to guide you without docs to that effect.? You can download the JATO

> 1.2.1

> source, free of charge, etc. here:

>

> ? <a href="http://iplanet.com/downloads/developer/5102.html">http://iplanet.com/d ownloads/developer/5102.html</a>

>

> (If that doesn't work, just do a search for "JATO" on sun.com).? We

> can also

> start a tag-writing thread here if you like.

>

> I would love to get your perspective on any XHTML shortcomings of the

> current tag library.? Can you plase send your thoughts, list of

> issues, etc.

> to <a href="/group/SunONE-JATO/post?protectID=045166114007175198169154203077006015071 222163234209171188199">jatoteam@e...</a>?

you don't know what you've just asked ;)

> Todd

>

> -- Original Message --

> From: "Fr?d?ric Miserey" <<a href="/group/SunONE-JATO/post?protectID=230212192150056209036102203101176090177 048234051197">frederic@n...</a>>

> Sent: Tuesday, November 12, 2002 8:35 AM

> Subject: [SunONE-JATO] yet more TagLibs problems

>

>

> As jato2 still doesn't know about some HTML4 tags like <label>

>

> ex:

> <label><input type="radio" ... />TheLabel</label>

> if you click on "TheLabel", it clicks on the radio button, like every

> other GUI

>

> I thought I would be able use the <label for="">? as a workaround

>

> <input type="radio" name="choice" id="choice1" /> <label

> for="choice1">TheLabel</label>

>

> BUT despite it generates several tags, <jato:radioButtons> sets the id

> attribute to the same value for every tag :< This not only defeats my

> workaround but also id main purpose to uniquely identity elements.

>

> We really need a generic mechanism to specify attributes when jato tags

> generate multiple HTML tags.

>

> I can still change the generated tags in endDisplay but it be neat if

> the 201 taglib was a little bit more XHTML compliant and savvy ;)

>

> Fr?d?ric

> ps: release this part of the source code and we'll do it !

>

>

> To download the latest version of JATO, please visit:

> <a href="http://www.sun.com/software/download/developer/5102.html">http://www.s un.com/software/download/developer/5102.html</a>

>

> For more information about JATO, please visit:

> <a href="http://developer.iplanet.com/tech/appserver/framework/index.jsp">http: //developer.iplanet.com/tech/appserver/framework/index.jsp</a>

>

>

>

>

>

>

> To download the latest version of JATO, please visit:

> <a href="http://www.sun.com/software/download/developer/5102.html">http://www.s un.com/software/download/developer/5102.html</a>

>

> For more information about JATO, please visit:

> <a href="http://developer.iplanet.com/tech/appserver/framework/index.jsp">http: //developer.iplanet.com/tech/appserver/framework/index.jsp</a>

>

>

[Non-text portions of this message have been removed]

Guest at 2007-7-1 16:34:55 > top of Java-index,Development Tools,Java Tools...
# 2

Give me until monday and I'll have what you "ask" for (WML/XHTML

Basic/Mobile as well as ViewBean).

Following Todd advices,

for the former, I am having new tags to render the same components. I

may need to write new components but I'm not sure yet.

for the latter, 1 pagelet per "rendering" type with an inner

ContainerView when the logic is different ; the pagelet tags being

surrounded by a homemade tag that "activates" the pagelet based on the

client type. A specialized tag seems better than <jato:content> as the

logic is wired.

Further step would be to make the tags client aware but I'm not sure

yet it is the right thing to do. Are tags "allowed" to store data in

the session (to avoid computing client type ever and ever) ?

Fr?d?ric

PS: James Baty will confirm I'm not cheap ;?)

On mercredi, nov 13, 2002, at 21:11 Europe/Paris, Craig V. Conover

wrote:

> Fr?d?ric

> Is there anyway that we could talk with you about your WML efforts with

> JATO?

> I would love to get a sample WML app to show the world. And then have a

> WML/HTML app to show multiple clients using the same ViewBeans.

> craig

>

>

> Fr?d?ric Miserey wrote:

>

> > On mercredi, nov 13, 2002, at 13:34 Europe/Paris, Todd Fast wrote:

> >

> > > Fr?d?ric--

> > >

> > > Thanks for the info; I will look into a way of doing something

> about

> > > this.

> > >

> > > However, please keep in mind that you can write your own

> complementary

> > > tags

> > > to render JATO components any way you like (or write JATO

> components

> > > that

> > > render themselves any way you like), and this is expected to be a

> > > normal, if

> > > infrequent, part of writing JATO 2.0 components.

> >

> > That's what I'm doing right now for the WML tags. But I was planning

> on

> > using the standard tags for mainstream HTML ;)

> >

> > May you elaborate a little bit on complementary tags vs components ?

> > (first part of the suggested thread.

> >

> > > Until the 2.0 taglib is documented, you can use the 1.2.1 JATO

> source

> > > to

> > > guide this effort.? It's actually pretty easy, but you will need

> the

> > > source

> > > to guide you without docs to that effect.? You can download the

> JATO

> > > 1.2.1

> > > source, free of charge, etc. here:

> > >

> > >? <a href="http://iplanet.com/downloads/developer/5102.html">http://iplanet.com/d ownloads/developer/5102.html</a>

> > >

> > > (If that doesn't work, just do a search for "JATO" on sun.com).? We

> > > can also

> > > start a tag-writing thread here if you like.

> > >

> > > I would love to get your perspective on any XHTML shortcomings of

> the

> > > current tag library.? Can you plase send your thoughts, list of

> > > issues, etc.

> > > to <a href="/group/SunONE-JATO/post?protectID=045166114007175198169154203077006015071 222163234209171188199">jatoteam@e...</a>?

> >

> > you don't know what you've just asked ;)

> >

> >

> > > Todd

> > >

> > > -- Original Message --

> > > From: "Fr?d?ric Miserey" <<a href="/group/SunONE-JATO/post?protectID=230212192150056209036102203101176090177 048234051197">frederic@n...</a>>

> > > Sent: Tuesday, November 12, 2002 8:35 AM

> > > Subject: [SunONE-JATO] yet more TagLibs problems

> > >

> > >

> > > As jato2 still doesn't know about some HTML4 tags like <label>

> > >

> > > ex:

> > > <label><input type="radio" ... />TheLabel</label>

> > > if you click on "TheLabel", it clicks on the radio button, like

> every

> > > other GUI

> > >

> > > I thought I would be able use the <label for="">? as a workaround

> > >

> > > <input type="radio" name="choice" id="choice1" /> <label

> > > for="choice1">TheLabel</label>

> > >

> > > BUT despite it generates several tags, <jato:radioButtons> sets

> the id

> > > attribute to the same value for every tag :< This not only defeats

> my

> > > workaround but also id main purpose to uniquely identity elements.

> > >

> > > We really need a generic mechanism to specify attributes when jato

> tags

> > > generate multiple HTML tags.

> > >

> > > I can still change the generated tags in endDisplay but it be neat

> if

> > > the 201 taglib was a little bit more XHTML compliant and savvy ;)

> > >

> > > Fr?d?ric

> > > ps: release this part of the source code and we'll do it !

[Non-text portions of this message have been removed]

Guest at 2007-7-1 16:34:55 > top of Java-index,Development Tools,Java Tools...
# 3

No, I'm not saying it worked with 121 and not with 20. I mentioned 121

as I have the source for that (would I decompile 2.0 sources, NO ;)

I am rewriting the visual tags extending the 20 classes as I need

compliant classes and this now works with WAP2 phones.

1. end tags with no content with "/>"

2. multiple and selected become multiple="multiple" &

selected="selected"

3. remove "name" from <form

4. surround the 2 ><input "hidden"> added by <form with ><div></div> as

<form elements as blocks, not form-inline

This still doesn't fix the dot problem for WML1x. I tried a servlet

filter but I got troubles when altering the result of the GET. It works

fine on a "normal" servlet but as jato servlets forward the rendering

to a jsp, oc4j gave me an error and s1as ignores the whole thing.

I plan to have a session.attribute that tells me if some kind of trick

should be done (condition = Nokia-WAP-Gateway)

1. in the visual tags, replace "_" by "." in field.getQualifiedName()

2. in the servlet filter, in a PUT, replace _ by .

The "good" news is that AOL wap site triggers an error from the current

gateways. As it was working 3 weeks ago, I bet they installed a brand

new release ;)

-

One side question : a lof of WAP (1 and 2) products require ><?xml and

DOCTYPE to be the first and second lines of the page (that is no empy

lines before and in between). I solved this by having

<<a href="/group/SunONE-JATO/post?protectID=073229104237229198">%@p...</a> info="SearchRoad" language="java"%>

<<a href="/group/SunONE-JATO/post?protectID=073229114237229153036171">%@t...< /a> uri="/WEB-INF/jato.tld" prefix="jato"%>

<jato:useViewBean className="caremonger.module1.SearchRoadViewBean">

<?xml version="1.0"

on the same line which is UGLY and prone to errors if somebody forgets

about this. Is there a better way to ask the jsp engine to ignore

rendering up to a certain point ?

Fr?d?ric

On lundi, nov 18, 2002, at 19:04 Europe/Paris, Craig V. Conover wrote:

> Are you saying that it DOES work with 1.2.1 version tags and NOT with

> 2.0 tags?

> There should not be any difference at all, and so if it doesn't work

> with one, it should NOT work with the other.

>

> I'm think there should be an easy way to use an alternate character to

> replace the dot.

>

> I'm sure Todd will have some good feedback for you when he gets this

> later today.

> craig

>

>

> Fr?d?ric Miserey wrote:

>

> > I'm writing a servlet filter to change "." into "_" for WML pages to

> go

> > around Nokia's WAP Gateway bug.

> >

> > As I guessed, WAP2 clients are very strict about XHTML. So most Jato

> > Visual Tags prevent the pages from being displayed. As I can't really

> > wait that this get fixed by the jatoteam and as we converted our app

> to

> > 2.0 classes, I was wondering if we could use 1.2.1 Visual Tags

> classes,

> > modify and use them to replace the 2.0 ones ?

> >

> > Fr?d?ric

> >

> > On mercredi, nov 13, 2002, at 21:11 Europe/Paris, Craig V. Conover

> > wrote:

> >

> > > Fr?d?ric

> > > Is there anyway that we could talk with you about your WML efforts

> with

> > > JATO?

> > > I would love to get a sample WML app to show the world. And then

> have a

> > > WML/HTML app to show multiple clients using the same ViewBeans.

> > > craig

> >

> >

> > [Non-text portions of this message have been removed]

> >

> >

> > To download the latest version of JATO, please visit:

> > <a href="http://www.sun.com/software/download/developer/5102.html">http://www.s un.com/software/download/developer/5102.html</a>

> >

> > For more information about JATO, please visit:

> > <a href="http://developer.iplanet.com/tech/appserver/framework/index.jsp">http: //developer.iplanet.com/tech/appserver/framework/index.jsp</a>

> >

> >

>

>

>

>

<image.tiff>

>

>

> To download the latest version of JATO, please visit:

> <a href="http://www.sun.com/software/download/developer/5102.html">http://www.s un.com/software/download/developer/5102.html</a>

>

> For more information about JATO, please visit:

> <a href="http://developer.iplanet.com/tech/appserver/framework/index.jsp">http: //developer.iplanet.com/tech/appserver/framework/index.jsp</a>

>

>

[Non-text portions of this message have been removed]

Guest at 2007-7-1 16:34:56 > top of Java-index,Development Tools,Java Tools...