myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Marinschek <martin.marinsc...@gmail.com>
Subject Re: [GSOC] HTML5 Proposal
Date Fri, 26 Mar 2010 11:58:07 GMT
Hi Jan Kees,

>It was about the ID naming separator, which is a
> colon. This colon is invalid and may cause issues with W3C, but I've also
> heard of people who had JavaScript issues with it. Anyway it's invalid
> according to the HTML spec.

this is not true. The colon is allowed, according to both the HTML and
XHTML specifications. What is invalid was the leading underscore in
automatically generated ids.

The colon, however, led to problems if you wanted to do CSS with an
id-selector, cause the colon is used in CSS as the pseudo-selector.
For this, you can escape the colon with a backslash, according to the
HTML standard. And there, of course, IE comes in, and IE doesn´t know
this escaping, at least in IE6.

I anyways strongly discourage using the id selector based approach -
but if you do, you might need to set prependId on the surrounding form
to false.

best regards,

Martin

>
> /JK
>
>
> 2010/3/23 Martin Marinschek <martin.marinschek@gmail.com>
>>
>> Hi guys,
>>
>> > "placeholder" attribute of "input" element: With this attribute, we can
>> > set
>> > a placeholder text that is shown if there is nothing typed into input.
>> > New "required" attribute of "input" element : If this is set, input is
>> > validated against emptyness before the form is submitted.
>> >
>> > Placeholder: We cannot add a placeholder attribute on <h:inputText>
>> > since it
>> > is not defined on spec, and no current component attribute can be used
>> > for
>> > this.
>> >
>> > Required: We can totally render HTML5 "required" attribute if
>> > <h:inputText
>> > required="true">. IMHO, we can do this by
>> >
>> > Writing a new renderer for <h:inputText> that extends current one with
>> > rendering "required" element attribute if set;
>> > And telling users to register this new renderer if they want to use
>> > optional
>> > HTML5.
>> >
>> > Is this possible?
>>
>> I would rather go with a context parameter.
>>
>> > Or, we can do this by using an optional HTML5 context parameter, as
>> > Jakob
>> > said.
>>
>> yes
>>
>> > Another thing: there are very few new features that can be applied to
>> > current components without breaking the spec. May be the only one which
>> > fits
>> > in the discussed case is "required".
>>
>> let´s see if we only have this one - then the context parameter should
>> not be named HTML 5, but rather something like
>> RENDER_REQUIRED_ATTRIBUTES - I think.
>>
>> >> IMO it's fine to "merge" stuff during/after GSOC.
>> >
>> > Yeah, I think so.
>>
>> whenever is more appropriate and causes less work (for the core team ;)
>>
>> best regards,
>>
>> Martin
>>
>> > On Tue, Mar 23, 2010 at 3:22 PM, Jakob Korherr <jakob.korherr@gmail.com>
>> > wrote:
>> >>
>> >> I like Martin's idea.
>> >>
>> >> If it would make some parts of the TCK fail, we could introduce a HTML5
>> >> config parameter to make the HTML5 features work. Of course, this has
>> >> to be
>> >> turned off by default in order to make the TCK work.
>> >>
>> >> Regards,
>> >> Jakob
>> >>
>> >> 2010/3/23 Matthias Wessendorf <matzew@apache.org>
>> >>>
>> >>> On Tue, Mar 23, 2010 at 4:30 AM, Martin Marinschek
>> >>> <mmarinschek@apache.org> wrote:
>> >>> > Hi Ali,
>> >>> >
>> >>> > great that you start out with this!
>> >>> >
>> >>> > I am not sure, but wouldn't it be good to have some of this support
>> >>> > already in MyFaces, the implementation? Like the required attribute
>> >>> > -
>> >>> > shouldn't we have our core inputs already render this attribute
out,
>> >>> > if necessary.
>> >>>
>> >>> not sure if the TCK does some HTML parsing
>> >>>
>> >>> > I think this would be nice. Everything which can not be
>> >>> > covered by our standard implementations should of course be in
a new
>> >>> > namespace, as you suggested.
>> >>>
>> >>> IMO it's fine to "merge" stuff during/after GSOC. or do you think this
>> >>> should be directly done on the IMPL, if possible.
>> >>>
>> >>> >
>> >>> > best regards,
>> >>> >
>> >>> > Martin
>> >>> >
>> >>> > On 3/22/10, Ali Ok <aliok@aliok.com.tr> wrote:
>> >>> >>>
>> >>> >>> I see you you refering to this thread:
>> >>> >>>
>> >>> >>> http://old.nabble.com/-GSOC--HTML5-Renderkit-Start-up-td27748075.html
>> >>> >>>
>> >>> >> I am not sure if that is good - folks may get the impression
some
>> >>> >> work
>> >>> >>> has already been done on that.
>> >>> >>
>> >>> >>
>> >>> >> You're right.
>> >>> >> Removed it.
>> >>> >>
>> >>> >>
>> >>> >> On Mon, Mar 22, 2010 at 10:36 PM, Jakob Korherr
>> >>> >> <jakob.korherr@gmail.com>wrote:
>> >>> >>
>> >>> >>> Hi,
>> >>> >>>
>> >>> >>> This all looks very fine to me - great work :)
>> >>> >>>
>> >>> >>> About the grouping (or "sub-tasking"): It would be cool
to have a
>> >>> >>> parent
>> >>> >>> GSoC 2010 issue with all the GSoC projects as ("mentor"
and "gsoc"
>> >>> >>> labeled)
>> >>> >>> sub-tasks. Furthermore it would be cool if each student
would
>> >>> >>> create
>> >>> >>> all
>> >>> >>> the
>> >>> >>> things he wants to do as sub-task issues of his GSoC project
>> >>> >>> issue.
>> >>> >>> So we
>> >>> >>> would have a hierarchy that looks like this:
>> >>> >>>
>> >>> >>> GSoC 2010
>> >>> >>> --HTML 5 RenderKit
>> >>> >>> ----issue #1 of HTML 5 RenderKit
>> >>> >>> ----issue #2 of HTML 5 RenderKit
>> >>> >>> ...
>> >>> >>> --GSoC project #2
>> >>> >>> ----issue #1 of GSoC project #2
>> >>> >>> ...
>> >>> >>>
>> >>> >>> What do you think?
>> >>> >>>
>> >>> >>> Regards,
>> >>> >>> Jakob
>> >>> >>>
>> >>> >>>
>> >>> >>>
>> >>> >>> 2010/3/22 Matthias Wessendorf <matzew@apache.org>
>> >>> >>>
>> >>> >>>> One thing,
>> >>> >>>>
>> >>> >>>> I see you you refering to this thread:
>> >>> >>>>
>> >>> >>>>
>> >>> >>>> http://old.nabble.com/-GSOC--HTML5-Renderkit-Start-up-td27748075.html
>> >>> >>>>
>> >>> >>>> I am not sure if that is good - folks may get the impression
some
>> >>> >>>> work
>> >>> >>>> has already been done on that.
>> >>> >>>>
>> >>> >>>> -Matthias
>> >>> >>>>
>> >>> >>>> On Mon, Mar 22, 2010 at 11:35 AM, Ali Ok <aliok@aliok.com.tr>
>> >>> >>>> wrote:
>> >>> >>>> > Hi,
>> >>> >>>> > Thank you all for your reviews.
>> >>> >>>> >
>> >>> >>>> >> Maybe one little thing, the prefix h5 might
be more
>> >>> >>>> >> appropriate
>> >>> >>>> >> for
>> >>> >>>> >> the
>> >>> >>>> >> library, even though there is also an html
tag named h5. hx
>> >>> >>>> >> sounds
>> >>> >>>> >> like
>> >>> >>>> HTML
>> >>> >>>> >> extensions to me and HTML5 is not really an
extension.
>> >>> >>>> >
>> >>> >>>> > Yeah, correct.
>> >>> >>>> > You know, no problem changing it. I am sure we
can find a cool
>> >>> >>>> > prefix
>> >>> >>>> later
>> >>> >>>> > :)
>> >>> >>>> >
>> >>> >>>> >> raw JIRA ticket (based on the original email
that I sent out):
>> >>> >>>> >>
>> >>> >>>> >> https://issues.apache.org/jira/browse/MYFACES-2617
>> >>> >>>> >>
>> >>> >>>> >> We will see where to add Ali's content, I
mean where it fits
>> >>> >>>> >> best.
>> >>> >>>> >> Perhaps we just link to his Wiki page? (Not
sure yet)...
>> >>> >>>> >
>> >>> >>>> > Thanks :)
>> >>> >>>> >
>> >>> >>>> > Regards,
>> >>> >>>> > --Ali
>> >>> >>>> >
>> >>> >>>> > On Mon, Mar 22, 2010 at 6:13 PM, Matthias Wessendorf
>> >>> >>>> > <matzew@apache.org
>> >>> >>>> >
>> >>> >>>> > wrote:
>> >>> >>>> >>
>> >>> >>>> >> OK,
>> >>> >>>> >>
>> >>> >>>> >> raw JIRA ticket (based on the original email
that I sent out):
>> >>> >>>> >>
>> >>> >>>> >> https://issues.apache.org/jira/browse/MYFACES-2617
>> >>> >>>> >>
>> >>> >>>> >> We will see where to add Ali's content, I
mean where it fits
>> >>> >>>> >> best.
>> >>> >>>> >> Perhaps we just link to his Wiki page? (Not
sure yet)...
>> >>> >>>> >>
>> >>> >>>> >> -Matthias
>> >>> >>>> >>
>> >>> >>>> >> On Mon, Mar 22, 2010 at 9:03 AM, Matthias
Wessendorf <
>> >>> >>>> matzew@apache.org>
>> >>> >>>> >> wrote:
>> >>> >>>> >> > Ah,
>> >>> >>>> >> >
>> >>> >>>> >> > interesting:
>> >>> >>>> >> > This is how tomcat does it.
>> >>> >>>> >> >
>> >>> >>>> >> > They "group" their tickets:
>> >>> >>>> >> > http://wiki.apache.org/tomcat/SummerOfCode2010
>> >>> >>>> >> >
>> >>> >>>> >> > and point to the JIRA entries.
>> >>> >>>> >> >
>> >>> >>>> >> >
>> >>> >>>> >> > Ok, so let me move this HTML5 specifc
content to a JIRA
>> >>> >>>> >> > ticket.
>> >>> >>>> >> > After
>> >>> >>>> >> > done, I'll create a "grouping" wiki page
as well
>> >>> >>>> >> >
>> >>> >>>> >> > -Matthias
>> >>> >>>> >> >
>> >>> >>>> >> > On Mon, Mar 22, 2010 at 8:43 AM, Jan-Kees
van Andel
>> >>> >>>> >> > <jankeesvanandel@gmail.com> wrote:
>> >>> >>>> >> >> Yeah, the rest looks very good. :)
>> >>> >>>> >> >>
>> >>> >>>> >> >> /JK
>> >>> >>>> >> >>
>> >>> >>>> >> >>
>> >>> >>>> >> >> 2010/3/22 Matthias Wessendorf <matzew@apache.org>
>> >>> >>>> >> >>>
>> >>> >>>> >> >>> that's details, for the actual
project ;-)
>> >>> >>>> >> >>>
>> >>> >>>> >> >>> BTW. I am just signing up as
a mentor, after that I will
>> >>> >>>> >> >>> bring
>> >>> >>>> >> >>> this
>> >>> >>>> >> >>> wiki txt to our jira.
>> >>> >>>> >> >>>
>> >>> >>>> >> >>> -Matthias
>> >>> >>>> >> >>>
>> >>> >>>> >> >>> On Mon, Mar 22, 2010 at 8:25
AM, Jan-Kees van Andel
>> >>> >>>> >> >>> <jankeesvanandel@gmail.com>
wrote:
>> >>> >>>> >> >>> > Looks good.
>> >>> >>>> >> >>> >
>> >>> >>>> >> >>> > Maybe one little thing,
the prefix h5 might be more
>> >>> >>>> >> >>> > appropriate
>> >>> >>>> for
>> >>> >>>> >> >>> > the
>> >>> >>>> >> >>> > library, even though there
is also an html tag named h5.
>> >>> >>>> >> >>> > hx sounds like HTML extensions
to me and HTML5 is not
>> >>> >>>> >> >>> > really an
>> >>> >>>> >> >>> > extension.
>> >>> >>>> >> >>> >
>> >>> >>>> >> >>> > Regards,
>> >>> >>>> >> >>> > Jan-Kees
>> >>> >>>> >> >>> >
>> >>> >>>> >> >>> > 2010/3/22 Cagatay Civici
<cagatay.civici@gmail.com>
>> >>> >>>> >> >>> >>
>> >>> >>>> >> >>> >> Looks good to me as
well, Good Luck Ali!
>> >>> >>>> >> >>> >>
>> >>> >>>> >> >>> >> On Mon, Mar 22, 2010
at 2:23 PM, Bruno Aranda
>> >>> >>>> >> >>> >> <brunoaranda@gmail.com>
>> >>> >>>> >> >>> >> wrote:
>> >>> >>>> >> >>> >>>
>> >>> >>>> >> >>> >>> It looks good to
me too!
>> >>> >>>> >> >>> >>> Bruno
>> >>> >>>> >> >>> >>>
>> >>> >>>> >> >>> >>> On 22 March 2010
14:11, Matthias Wessendorf
>> >>> >>>> >> >>> >>> <matzew@apache.org
>> >>> >>>> >
>> >>> >>>> >> >>> >>> wrote:
>> >>> >>>> >> >>> >>>>
>> >>> >>>> >> >>> >>>> Hi Ali,
>> >>> >>>> >> >>> >>>>
>> >>> >>>> >> >>> >>>> this looks good
to me.
>> >>> >>>> >> >>> >>>>
>> >>> >>>> >> >>> >>>> Any other comment
?
>> >>> >>>> >> >>> >>>>
>> >>> >>>> >> >>> >>>> -Matthias
>> >>> >>>> >> >>> >>>>
>> >>> >>>> >> >>> >>>> On Fri, Mar
19, 2010 at 7:01 PM, Ali Ok
>> >>> >>>> >> >>> >>>> <aliok@aliok.com.tr>
>> >>> >>>> >> >>> >>>> wrote:
>> >>> >>>> >> >>> >>>> > Hi,
>> >>> >>>> >> >>> >>>> > I've written
my GSOC proposal here :
>> >>> >>>> >> >>> >>>> > http://wiki.apache.org/myfaces/GSoC2010_HTML5
>> >>> >>>> >> >>> >>>> > Could you
review it and provide me some feedback?
>> >>> >>>> >> >>> >>>> >
>> >>> >>>> >> >>> >>>> > After your
feedback, we'll move it to ASF GSoC
>> >>> >>>> >> >>> >>>> > wiki.
>> >>> >>>> >> >>> >>>> >
>> >>> >>>> >> >>> >>>> > Thanks
& Regards,
>> >>> >>>> >> >>> >>>> > Ali
>> >>> >>>> >> >>> >>>> >
>> >>> >>>> >> >>> >>>> > --
>> >>> >>>> >> >>> >>>> > My Blog:
http://blog.aliok.com.tr
>> >>> >>>> >> >>> >>>> > Twitter:
http://twitter.com/aliok_tr
>> >>> >>>> >> >>> >>>> >
>> >>> >>>> >> >>> >>>> >
>> >>> >>>> >> >>> >>>>
>> >>> >>>> >> >>> >>>>
>> >>> >>>> >> >>> >>>>
>> >>> >>>> >> >>> >>>> --
>> >>> >>>> >> >>> >>>> Matthias Wessendorf
>> >>> >>>> >> >>> >>>>
>> >>> >>>> >> >>> >>>> blog: http://matthiaswessendorf.wordpress.com/
>> >>> >>>> >> >>> >>>> sessions: http://www.slideshare.net/mwessendorf
>> >>> >>>> >> >>> >>>> twitter: http://twitter.com/mwessendorf
>> >>> >>>> >> >>> >>>
>> >>> >>>> >> >>> >>
>> >>> >>>> >> >>> >>
>> >>> >>>> >> >>> >>
>> >>> >>>> >> >>> >> --
>> >>> >>>> >> >>> >> Cagatay Civici
>> >>> >>>> >> >>> >> JSF EG | PrimeFaces
Lead | Apache MyFaces PMC
>> >>> >>>> >> >>> >> http://www.primefaces.org
>> >>> >>>> >> >>> >
>> >>> >>>> >> >>> >
>> >>> >>>> >> >>>
>> >>> >>>> >> >>>
>> >>> >>>> >> >>>
>> >>> >>>> >> >>> --
>> >>> >>>> >> >>> Matthias Wessendorf
>> >>> >>>> >> >>>
>> >>> >>>> >> >>> blog: http://matthiaswessendorf.wordpress.com/
>> >>> >>>> >> >>> sessions: http://www.slideshare.net/mwessendorf
>> >>> >>>> >> >>> twitter: http://twitter.com/mwessendorf
>> >>> >>>> >> >>
>> >>> >>>> >> >>
>> >>> >>>> >> >
>> >>> >>>> >> >
>> >>> >>>> >> >
>> >>> >>>> >> > --
>> >>> >>>> >> > Matthias Wessendorf
>> >>> >>>> >> >
>> >>> >>>> >> > blog: http://matthiaswessendorf.wordpress.com/
>> >>> >>>> >> > sessions: http://www.slideshare.net/mwessendorf
>> >>> >>>> >> > twitter: http://twitter.com/mwessendorf
>> >>> >>>> >> >
>> >>> >>>> >>
>> >>> >>>> >>
>> >>> >>>> >>
>> >>> >>>> >> --
>> >>> >>>> >> Matthias Wessendorf
>> >>> >>>> >>
>> >>> >>>> >> blog: http://matthiaswessendorf.wordpress.com/
>> >>> >>>> >> sessions: http://www.slideshare.net/mwessendorf
>> >>> >>>> >> twitter: http://twitter.com/mwessendorf
>> >>> >>>> >
>> >>> >>>> >
>> >>> >>>> >
>> >>> >>>> > --
>> >>> >>>> > My Blog: http://blog.aliok.com.tr
>> >>> >>>> > Twitter: http://twitter.com/aliok_tr
>> >>> >>>> >
>> >>> >>>> >
>> >>> >>>>
>> >>> >>>>
>> >>> >>>>
>> >>> >>>> --
>> >>> >>>> Matthias Wessendorf
>> >>> >>>>
>> >>> >>>> blog: http://matthiaswessendorf.wordpress.com/
>> >>> >>>> sessions: http://www.slideshare.net/mwessendorf
>> >>> >>>> twitter: http://twitter.com/mwessendorf
>> >>> >>>>
>> >>> >>>
>> >>> >>>
>> >>> >>
>> >>> >>
>> >>> >> --
>> >>> >> My Blog: http://blog.aliok.com.tr
>> >>> >> Twitter: http://twitter.com/aliok_tr
>> >>> >>
>> >>> >
>> >>> >
>> >>> > --
>> >>> >
>> >>> > http://www.irian.at
>> >>> >
>> >>> > Your JSF powerhouse -
>> >>> > JSF Consulting, Development and
>> >>> > Courses in English and German
>> >>> >
>> >>> > Professional Support for Apache MyFaces
>> >>> >
>> >>>
>> >>>
>> >>>
>> >>> --
>> >>> Matthias Wessendorf
>> >>>
>> >>> blog: http://matthiaswessendorf.wordpress.com/
>> >>> sessions: http://www.slideshare.net/mwessendorf
>> >>> twitter: http://twitter.com/mwessendorf
>> >>
>> >
>> >
>> >
>> > --
>> > My Blog: http://blog.aliok.com.tr
>> > Twitter: http://twitter.com/aliok_tr
>> >
>> >
>>
>>
>>
>> --
>>
>> http://www.irian.at
>>
>> Your JSF powerhouse -
>> JSF Consulting, Development and
>> Courses in English and German
>>
>> Professional Support for Apache MyFaces
>
>



-- 

http://www.irian.at

Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German

Professional Support for Apache MyFaces

Mime
View raw message