myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bernd Bohmann (JIRA)" <...@myfaces.apache.org>
Subject [jira] Commented: (TOBAGO-515) <tx:in> in facelets with binding attribute
Date Mon, 26 Nov 2007 16:36:47 GMT

    [ https://issues.apache.org/jira/browse/TOBAGO-515?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12545499
] 

Bernd Bohmann commented on TOBAGO-515:
--------------------------------------

The binding attribute for the tx variant in facelets has a different behavoir.
The binding point to a UIPanel instead of the UIInput. 
Unfortunately this difference can not changed.

The facelets-extension(tf) did not support the binding attribute. 
The facelets-extension is just a composition. See 

http://svn.apache.org/repos/asf/myfaces/tobago/trunk/extension/facelets/src/main/resources/META-INF/in.xml

But you can use the long specification of the extension:

<tc:panel>
   <f:facet name="layout">
     <tc:gridLayout columns="fixed;*"/>
   </f:facet>
   <tc:label value="#{label}" for="@auto"/>
   <tc:in value="#{value}">
     ...
   </tc:in>
 </tc:panel>   

> <tx:in> in facelets with binding attribute
> ------------------------------------------
>
>                 Key: TOBAGO-515
>                 URL: https://issues.apache.org/jira/browse/TOBAGO-515
>             Project: MyFaces Tobago
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.0.12
>         Environment: Facelets 1.1.13, MyFaces 1.1.6 snap (11.09.2007), Tobago 1.0.12
snap (11.10.2007)
>            Reporter: Guido Dubois
>         Attachments: tobago_faceletsexample.war
>
>
> ...
>   xmlns:tx="http://myfaces.apache.org/tobago/extension"
>   xmlns:fx="http://myfaces.apache.org/tobago/facelet-extension"
> ...
> If you have the following input field, the page rendering is broken. You get only a short
demaged part of page code. If you remove the binding attribute all works fine...
> ...
>         <tx:in id="name" value="#{counter.text}"
>           binding="#{counter.textInput}" label="#{bundle.helloWorldName}"
>           labelWidth="180px" validator="#{counter.stringValidator}"
>           required="true" markup="bg_color" />
> ...
> With the following input field, the page is rendered correctly, but you get a NullPointerException,
if you want to use the UIInput field in a BackingBean
> ...
>         <fx:in id="name" value="#{counter.text}"
>           binding="#{counter.textInput}" label="#{bundle.helloWorldName}"
>           labelWidth="180px" validator="#{counter.stringValidator}"
>           required="true" markup="bg_color" />

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message