You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Guido Dubois (JIRA)" <de...@myfaces.apache.org> on 2010/10/14 16:02:40 UTC
[jira] Created: (TOBAGO-922) no longer
<tc:out> no longer <span>
-------------------------
Key: TOBAGO-922
URL: https://issues.apache.org/jira/browse/TOBAGO-922
Project: MyFaces Tobago
Issue Type: Bug
Components: Core
Affects Versions: 1.5.0-alpha-2
Environment: Facelets
Reporter: Guido Dubois
In version 1.0.30 the following
<tc:panel>
<tc:out value="abc " escape="false" />
<tc:out id="clock" value="10:00" escape="false" markup="bold" />
<tc:out value=" def" escape="false" />
</tc:panel>
gives something like this ("abc 10:00* def") * bold
<div id="page:header:_id9" class="tobago-panel-default"><script type="text/javascript">
<!--
Tobago.addAjaxComponent("page:header:_id9")
// -->
</script><span class="tobago-out-default" id="page:header:_id13">abc </span>
<span class="tobago-out-default tobago-out-markup-bold" id="page:header:clock"> 10:00</span>
<span class="tobago-out-default" id="page:header:_id14"> def</span></div>
In version 1.5.0-alpha-2 it looks like this
<div style="width: 670px; height: 15px; top: 70px; left: 0px; display: block; position: absolute;" class="tobago-panel" id="page:header:j_id12"><script type="text/javascript">
<!--
new Tobago.ScriptLoader(
[],
"new Tobago.Panel(\"page:header:j_id12\", true, 0);"
);
// -->
</script><div class="tobago-out" style="width: 670px; height: 1px; top: 0px; left: 0px; display: block; position: absolute;" id="page:header:j_id16">abc </div><div class="tobago-out tobago-out-markup-bold" style="width: 670px; height: 2px; top: 6px; left: 0px; display: block; position: absolute;" id="page:header:clock"> 59:44</div><div class="tobago-out" style="width: 670px; height: 2px; top: 13px; left: 0px; display: block; position: absolute;" id="page:header:j_id17"> def</div></div>
With this behaviour it is no longer possible to create a variable text with inline markup in an easy way. I tried to use the inline-attribute of <tc:out>, but I'm not able to get the same result as above. Perhaps I'm not using it correctly.
Have you any suggestion or an example?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (TOBAGO-922) no longer
Posted by "Guido Dubois (JIRA)" <de...@myfaces.apache.org>.
[ https://issues.apache.org/jira/browse/TOBAGO-922?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12922363#action_12922363 ]
Guido Dubois commented on TOBAGO-922:
-------------------------------------
I will test this with today's nightly build...
Using flowLayout I get the following error:
2010-10-19 00:57:26 ERROR - org.apache.myfaces.tobago.context.ResourceManagerImpl:341 - Path not found, and no fallback. Using empty string.
resourceDirs = '[prodis3-resource, org/apache/myfaces/tobago/renderkit]' contentType = 'html' theme = 'speyside' browser = 'msie_7_0' subDir = 'tag' name = 'FlowLayoutRenderer' suffix = '' key = 'null'
2010-10-19 00:57:26 ERROR - org.apache.myfaces.tobago.context.ResourceManagerImpl:162 - Don't find any RendererClass for FlowLayoutRenderer. Please check you configuration.
How to configure?
Using ...columnSpacing="0px" rowSpacing="0px"... in flowLayout gets an exception
javax.el.ELException: Cannot convert 0px of type class java.lang.String to class org.apache.myfaces.tobago.layout.Measure
Why <tc:cell /> is deprecated? I often use it for a dummy place holder cell in a grid layout. Inserting a <tc:panel /> instead, generates allways unneeded js-code...
> <tc:out> no longer <span>
> -------------------------
>
> Key: TOBAGO-922
> URL: https://issues.apache.org/jira/browse/TOBAGO-922
> Project: MyFaces Tobago
> Issue Type: Bug
> Components: Core
> Affects Versions: 1.5.0-alpha-2
> Environment: Facelets
> Reporter: Guido Dubois
> Assignee: Udo Schnurpfeil
>
> In version 1.0.30 the following
> <tc:panel>
> <tc:out value="abc " escape="false" />
> <tc:out id="clock" value="10:00" escape="false" markup="bold" />
> <tc:out value=" def" escape="false" />
> </tc:panel>
> gives something like this ("abc 10:00* def") * bold
> <div id="page:header:_id9" class="tobago-panel-default"><script type="text/javascript">
> <!--
> Tobago.addAjaxComponent("page:header:_id9")
> // -->
> </script><span class="tobago-out-default" id="page:header:_id13">abc </span>
> <span class="tobago-out-default tobago-out-markup-bold" id="page:header:clock"> 10:00</span>
> <span class="tobago-out-default" id="page:header:_id14"> def</span></div>
> In version 1.5.0-alpha-2 it looks like this
> <div style="width: 670px; height: 15px; top: 70px; left: 0px; display: block; position: absolute;" class="tobago-panel" id="page:header:j_id12"><script type="text/javascript">
> <!--
> new Tobago.ScriptLoader(
> [],
> "new Tobago.Panel(\"page:header:j_id12\", true, 0);"
> );
> // -->
> </script><div class="tobago-out" style="width: 670px; height: 1px; top: 0px; left: 0px; display: block; position: absolute;" id="page:header:j_id16">abc </div><div class="tobago-out tobago-out-markup-bold" style="width: 670px; height: 2px; top: 6px; left: 0px; display: block; position: absolute;" id="page:header:clock"> 59:44</div><div class="tobago-out" style="width: 670px; height: 2px; top: 13px; left: 0px; display: block; position: absolute;" id="page:header:j_id17"> def</div></div>
> With this behaviour it is no longer possible to create a variable text with inline markup in an easy way. I tried to use the inline-attribute of <tc:out>, but I'm not able to get the same result as above. Perhaps I'm not using it correctly.
> Have you any suggestion or an example?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (TOBAGO-922) no longer
Posted by "Udo Schnurpfeil (JIRA)" <de...@myfaces.apache.org>.
[ https://issues.apache.org/jira/browse/TOBAGO-922?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12922122#action_12922122 ]
Udo Schnurpfeil commented on TOBAGO-922:
----------------------------------------
Now the tag is a SPAN again.
To get the result you want, please add this facet to the panel:
<f:facet name="layout">
<tc:flowLayout/>
</f:facet>
The source code (and HTML code) of the flow layout is experimental and may change until the release of Tobago 1.5.
On the other hand: Flow layout will be the solution of your requirements most likely.
What do you thing about it? Does this works for you?
> <tc:out> no longer <span>
> -------------------------
>
> Key: TOBAGO-922
> URL: https://issues.apache.org/jira/browse/TOBAGO-922
> Project: MyFaces Tobago
> Issue Type: Bug
> Components: Core
> Affects Versions: 1.5.0-alpha-2
> Environment: Facelets
> Reporter: Guido Dubois
> Assignee: Udo Schnurpfeil
>
> In version 1.0.30 the following
> <tc:panel>
> <tc:out value="abc " escape="false" />
> <tc:out id="clock" value="10:00" escape="false" markup="bold" />
> <tc:out value=" def" escape="false" />
> </tc:panel>
> gives something like this ("abc 10:00* def") * bold
> <div id="page:header:_id9" class="tobago-panel-default"><script type="text/javascript">
> <!--
> Tobago.addAjaxComponent("page:header:_id9")
> // -->
> </script><span class="tobago-out-default" id="page:header:_id13">abc </span>
> <span class="tobago-out-default tobago-out-markup-bold" id="page:header:clock"> 10:00</span>
> <span class="tobago-out-default" id="page:header:_id14"> def</span></div>
> In version 1.5.0-alpha-2 it looks like this
> <div style="width: 670px; height: 15px; top: 70px; left: 0px; display: block; position: absolute;" class="tobago-panel" id="page:header:j_id12"><script type="text/javascript">
> <!--
> new Tobago.ScriptLoader(
> [],
> "new Tobago.Panel(\"page:header:j_id12\", true, 0);"
> );
> // -->
> </script><div class="tobago-out" style="width: 670px; height: 1px; top: 0px; left: 0px; display: block; position: absolute;" id="page:header:j_id16">abc </div><div class="tobago-out tobago-out-markup-bold" style="width: 670px; height: 2px; top: 6px; left: 0px; display: block; position: absolute;" id="page:header:clock"> 59:44</div><div class="tobago-out" style="width: 670px; height: 2px; top: 13px; left: 0px; display: block; position: absolute;" id="page:header:j_id17"> def</div></div>
> With this behaviour it is no longer possible to create a variable text with inline markup in an easy way. I tried to use the inline-attribute of <tc:out>, but I'm not able to get the same result as above. Perhaps I'm not using it correctly.
> Have you any suggestion or an example?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (TOBAGO-922) no longer
Posted by "Udo Schnurpfeil (JIRA)" <de...@myfaces.apache.org>.
[ https://issues.apache.org/jira/browse/TOBAGO-922?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12922491#action_12922491 ]
Udo Schnurpfeil commented on TOBAGO-922:
----------------------------------------
When using nightly builds, you have to wait until the next build after commit, which was in this case tonight 01:11 GMT.
You don't need to configure, I've added a renderer class yesterday evening.
The attribute are not full implemented yet. Work in progress... I know this issue.
I've to think about the sense of rowSpacing...
> <tc:out> no longer <span>
> -------------------------
>
> Key: TOBAGO-922
> URL: https://issues.apache.org/jira/browse/TOBAGO-922
> Project: MyFaces Tobago
> Issue Type: Bug
> Components: Core
> Affects Versions: 1.5.0-alpha-2
> Environment: Facelets
> Reporter: Guido Dubois
> Assignee: Udo Schnurpfeil
>
> In version 1.0.30 the following
> <tc:panel>
> <tc:out value="abc " escape="false" />
> <tc:out id="clock" value="10:00" escape="false" markup="bold" />
> <tc:out value=" def" escape="false" />
> </tc:panel>
> gives something like this ("abc 10:00* def") * bold
> <div id="page:header:_id9" class="tobago-panel-default"><script type="text/javascript">
> <!--
> Tobago.addAjaxComponent("page:header:_id9")
> // -->
> </script><span class="tobago-out-default" id="page:header:_id13">abc </span>
> <span class="tobago-out-default tobago-out-markup-bold" id="page:header:clock"> 10:00</span>
> <span class="tobago-out-default" id="page:header:_id14"> def</span></div>
> In version 1.5.0-alpha-2 it looks like this
> <div style="width: 670px; height: 15px; top: 70px; left: 0px; display: block; position: absolute;" class="tobago-panel" id="page:header:j_id12"><script type="text/javascript">
> <!--
> new Tobago.ScriptLoader(
> [],
> "new Tobago.Panel(\"page:header:j_id12\", true, 0);"
> );
> // -->
> </script><div class="tobago-out" style="width: 670px; height: 1px; top: 0px; left: 0px; display: block; position: absolute;" id="page:header:j_id16">abc </div><div class="tobago-out tobago-out-markup-bold" style="width: 670px; height: 2px; top: 6px; left: 0px; display: block; position: absolute;" id="page:header:clock"> 59:44</div><div class="tobago-out" style="width: 670px; height: 2px; top: 13px; left: 0px; display: block; position: absolute;" id="page:header:j_id17"> def</div></div>
> With this behaviour it is no longer possible to create a variable text with inline markup in an easy way. I tried to use the inline-attribute of <tc:out>, but I'm not able to get the same result as above. Perhaps I'm not using it correctly.
> Have you any suggestion or an example?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (TOBAGO-922) no longer
Posted by "Guido Dubois (JIRA)" <de...@myfaces.apache.org>.
[ https://issues.apache.org/jira/browse/TOBAGO-922?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12922877#action_12922877 ]
Guido Dubois commented on TOBAGO-922:
-------------------------------------
With the nightly build from yesterday flowLayout works fine! Thanks...
Get this message:
2010-10-20 08:53:34 INFO - org.apache.myfaces.tobago.renderkit.html.scarborough.standard.tag.SheetRenderer:369 - Column should contain only one child. Please surround the components with a tc:panel.
But surrounding with <tc:panel> doesn't work correctly in the most cases...
Last <tc:out> in a gridLayout gets not style="width: __px; display: block;". If I have seen it correctly, you don't use tables in gridLayout anymore. There are only div's. I think then there must be used allways "display: block;" to get a grid.
Toolbar buttons gets not the correct width if using other fonts than arial.
> <tc:out> no longer <span>
> -------------------------
>
> Key: TOBAGO-922
> URL: https://issues.apache.org/jira/browse/TOBAGO-922
> Project: MyFaces Tobago
> Issue Type: Bug
> Components: Core
> Affects Versions: 1.5.0-alpha-2
> Environment: Facelets
> Reporter: Guido Dubois
> Assignee: Udo Schnurpfeil
>
> In version 1.0.30 the following
> <tc:panel>
> <tc:out value="abc " escape="false" />
> <tc:out id="clock" value="10:00" escape="false" markup="bold" />
> <tc:out value=" def" escape="false" />
> </tc:panel>
> gives something like this ("abc 10:00* def") * bold
> <div id="page:header:_id9" class="tobago-panel-default"><script type="text/javascript">
> <!--
> Tobago.addAjaxComponent("page:header:_id9")
> // -->
> </script><span class="tobago-out-default" id="page:header:_id13">abc </span>
> <span class="tobago-out-default tobago-out-markup-bold" id="page:header:clock"> 10:00</span>
> <span class="tobago-out-default" id="page:header:_id14"> def</span></div>
> In version 1.5.0-alpha-2 it looks like this
> <div style="width: 670px; height: 15px; top: 70px; left: 0px; display: block; position: absolute;" class="tobago-panel" id="page:header:j_id12"><script type="text/javascript">
> <!--
> new Tobago.ScriptLoader(
> [],
> "new Tobago.Panel(\"page:header:j_id12\", true, 0);"
> );
> // -->
> </script><div class="tobago-out" style="width: 670px; height: 1px; top: 0px; left: 0px; display: block; position: absolute;" id="page:header:j_id16">abc </div><div class="tobago-out tobago-out-markup-bold" style="width: 670px; height: 2px; top: 6px; left: 0px; display: block; position: absolute;" id="page:header:clock"> 59:44</div><div class="tobago-out" style="width: 670px; height: 2px; top: 13px; left: 0px; display: block; position: absolute;" id="page:header:j_id17"> def</div></div>
> With this behaviour it is no longer possible to create a variable text with inline markup in an easy way. I tried to use the inline-attribute of <tc:out>, but I'm not able to get the same result as above. Perhaps I'm not using it correctly.
> Have you any suggestion or an example?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (TOBAGO-922) no longer
Posted by "Udo Schnurpfeil (JIRA)" <de...@myfaces.apache.org>.
[ https://issues.apache.org/jira/browse/TOBAGO-922?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12922492#action_12922492 ]
Udo Schnurpfeil commented on TOBAGO-922:
----------------------------------------
tc:cell is deprecated, because it has quite the same features as tc:panel.
Originally the sense of tc:cell was only to define spanX and spanY, but this is no longer needed, because of the tc:gridLayoutContraint tag which can set this values to each component directly.
Removing the unneeded JS-Code is an optimization and will be done in future releases.
> <tc:out> no longer <span>
> -------------------------
>
> Key: TOBAGO-922
> URL: https://issues.apache.org/jira/browse/TOBAGO-922
> Project: MyFaces Tobago
> Issue Type: Bug
> Components: Core
> Affects Versions: 1.5.0-alpha-2
> Environment: Facelets
> Reporter: Guido Dubois
> Assignee: Udo Schnurpfeil
>
> In version 1.0.30 the following
> <tc:panel>
> <tc:out value="abc " escape="false" />
> <tc:out id="clock" value="10:00" escape="false" markup="bold" />
> <tc:out value=" def" escape="false" />
> </tc:panel>
> gives something like this ("abc 10:00* def") * bold
> <div id="page:header:_id9" class="tobago-panel-default"><script type="text/javascript">
> <!--
> Tobago.addAjaxComponent("page:header:_id9")
> // -->
> </script><span class="tobago-out-default" id="page:header:_id13">abc </span>
> <span class="tobago-out-default tobago-out-markup-bold" id="page:header:clock"> 10:00</span>
> <span class="tobago-out-default" id="page:header:_id14"> def</span></div>
> In version 1.5.0-alpha-2 it looks like this
> <div style="width: 670px; height: 15px; top: 70px; left: 0px; display: block; position: absolute;" class="tobago-panel" id="page:header:j_id12"><script type="text/javascript">
> <!--
> new Tobago.ScriptLoader(
> [],
> "new Tobago.Panel(\"page:header:j_id12\", true, 0);"
> );
> // -->
> </script><div class="tobago-out" style="width: 670px; height: 1px; top: 0px; left: 0px; display: block; position: absolute;" id="page:header:j_id16">abc </div><div class="tobago-out tobago-out-markup-bold" style="width: 670px; height: 2px; top: 6px; left: 0px; display: block; position: absolute;" id="page:header:clock"> 59:44</div><div class="tobago-out" style="width: 670px; height: 2px; top: 13px; left: 0px; display: block; position: absolute;" id="page:header:j_id17"> def</div></div>
> With this behaviour it is no longer possible to create a variable text with inline markup in an easy way. I tried to use the inline-attribute of <tc:out>, but I'm not able to get the same result as above. Perhaps I'm not using it correctly.
> Have you any suggestion or an example?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.