AbstractTagConverter#doConvertRefresh [message #475024] |
Wed, 15 August 2007 04:32  |
Eclipse User |
|
|
|
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 #614176 is a reply to message #475024] |
Wed, 15 August 2007 13:37  |
Eclipse User |
|
|
|
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] |
Wed, 15 August 2007 22:49  |
Eclipse User |
|
|
|
"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.
|
|
|
|
Powered by
FUDForum. Page generated in 0.03945 seconds