Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JavaServer Faces » AbstractTagConverter#doConvertRefresh
AbstractTagConverter#doConvertRefresh [message #475024] Wed, 15 August 2007 08:32 Go to next message
Dart peng is currently offline Dart peng
Messages: 27
Registered: July 2009
Junior Member
Hi all:

Recently I developed a plugins for CC(common-controls) tag,now there are
some quetions that I can't deal them well,so I want to get some help.

I want to convert one CC tag element to several elements , but the method
: doConvertRefresh can return ONLY ONE element object,so I create

a DIV tag element to wrap all elements I want to return,but the jsf editor
can't show it well.

This is the HTML code :



<table>

<tr>

<div>

<td>label:</td>

<td><input/></td>

</div>

</tr>

</table>

In the fact, I want to return " <td>label:</td> <td><input/></td> ",but the
AbstractTagConverter#doConvertRefresh can't return several elements, so I
use the "<div>" to wrap them.

Is there a method can return a list of element ( public List
doConvertRefresh(){.....} )?

If not,how can I do? Thanks!
Re: AbstractTagConverter#doConvertRefresh [message #475025 is a reply to message #475024] Wed, 15 August 2007 17:37 Go to previous messageGo to next message
Ian Trimble is currently offline Ian Trimble
Messages: 137
Registered: July 2009
Senior Member
There is currently no way to return more than the single Element, as you
have discovered.

I'm wondering if perhaps you could return the TR element with the child TD
elements (and so leave the TR element out of your source, knowing that
this tag will produce it)?

I think the issue with the less-than-great handling of the DIV element in
the editor is due to the fact that a DIV element is not legal inside of a
TR element but outside of a TD or TH element.

- Ian
JSF Tools Project
Re: AbstractTagConverter#doConvertRefresh [message #475028 is a reply to message #475025] Thu, 16 August 2007 02:49 Go to previous messageGo to next message
Dart peng is currently offline Dart peng
Messages: 27
Registered: July 2009
Junior Member
"Ian Trimble" <ian.trimble@oracle.com>
??????:43bb942faa52c40f1141bdfa42e19839$1@www.eclipse.org...
> There is currently no way to return more than the single Element, as you
> have discovered.
>
> I'm wondering if perhaps you could return the TR element with the child TD
> elements (and so leave the TR element out of your source, knowing that
> this tag will produce it)?
>
> I think the issue with the less-than-great handling of the DIV element in
> the editor is due to the fact that a DIV element is not legal inside of a
> TR element but outside of a TD or TH element.
>
> - Ian
> JSF Tools Project
>

Thank you for your help.

But I could not return the TR element with the child TD elements,because all
TD elements created by the converter(it's name is CCFormItemTagConverter)
must be in the same TR,so I will use other html tag to instead of the TD
tag.

I think the AbstractTagConverter should provid a method to return multi
elements ,or provid a CompositeElement (implements Element interface,it's a
nonvisual element,when paren element add it,give the parent it's children)
to wrap other elements.
Re: AbstractTagConverter#doConvertRefresh [message #475031 is a reply to message #475028] Thu, 16 August 2007 21:26 Go to previous message
Ian Trimble is currently offline Ian Trimble
Messages: 137
Registered: July 2009
Senior Member
Please open an enhancement request against JSF using Bugzilla
( https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Java%20S erver%20Faces).
Re: AbstractTagConverter#doConvertRefresh [message #614176 is a reply to message #475024] Wed, 15 August 2007 17:37 Go to previous message
Ian Trimble is currently offline Ian Trimble
Messages: 137
Registered: July 2009
Senior Member
There is currently no way to return more than the single Element, as you
have discovered.

I'm wondering if perhaps you could return the TR element with the child TD
elements (and so leave the TR element out of your source, knowing that
this tag will produce it)?

I think the issue with the less-than-great handling of the DIV element in
the editor is due to the fact that a DIV element is not legal inside of a
TR element but outside of a TD or TH element.

- Ian
JSF Tools Project
Re: AbstractTagConverter#doConvertRefresh [message #614183 is a reply to message #475025] Thu, 16 August 2007 02:49 Go to previous message
Dart peng is currently offline Dart peng
Messages: 27
Registered: July 2009
Junior Member
"Ian Trimble" <ian.trimble@oracle.com>
??????:43bb942faa52c40f1141bdfa42e19839$1@www.eclipse.org...
> There is currently no way to return more than the single Element, as you
> have discovered.
>
> I'm wondering if perhaps you could return the TR element with the child TD
> elements (and so leave the TR element out of your source, knowing that
> this tag will produce it)?
>
> I think the issue with the less-than-great handling of the DIV element in
> the editor is due to the fact that a DIV element is not legal inside of a
> TR element but outside of a TD or TH element.
>
> - Ian
> JSF Tools Project
>

Thank you for your help.

But I could not return the TR element with the child TD elements,because all
TD elements created by the converter(it's name is CCFormItemTagConverter)
must be in the same TR,so I will use other html tag to instead of the TD
tag.

I think the AbstractTagConverter should provid a method to return multi
elements ,or provid a CompositeElement (implements Element interface,it's a
nonvisual element,when paren element add it,give the parent it's children)
to wrap other elements.
Re: AbstractTagConverter#doConvertRefresh [message #614193 is a reply to message #475028] Thu, 16 August 2007 21:26 Go to previous message
Ian Trimble is currently offline Ian Trimble
Messages: 137
Registered: July 2009
Senior Member
Please open an enhancement request against JSF using Bugzilla
( https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Java%20S erver%20Faces).
Previous Topic:resource-bundle defined in faces-config.xml not used by validator and intellisen
Next Topic:Where can I change the HostElement attribute value?
Goto Forum:
  


Current Time: Wed Sep 03 02:25:51 GMT 2014

Powered by FUDForum. Page generated in 0.05071 seconds