You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by PiotrekJ <ja...@gmail.com> on 2006/11/09 14:41:39 UTC

[tobago] Cannot render tc:button

Hi, 
I've got such code:

<tc:tabGroup id="NavTabs" state="client" height="120px">
    <tc:tab label="Produkty">
        <tc:panel height="65px">
            <f:facet name="layout">
                <tc:gridLayout columns="*;fixed;*" rows="fixed"  />
            </f:facet>
            
            <tc:link label="Asortyment" link="/products/list.jsp"/>
            
            <tc:cell>
                <tc:form id="NewProduct">    
                    <tx:in id="name" label="Nowy produkt:"/>
                    <tc:button action="submit()" label="OK"/>
                </tc:form>
            </tc:cell>
            
            <tc:cell/>
        </tc:panel>
    </tc:tab>
....
</tc:tabGroup>

After rendering, there is no submit button(tc:button). <tx:in...> renders
ok.

Any suggestions?

Thanks,
Peter

(sorry for poor english)
-- 
View this message in context: http://www.nabble.com/-tobago--Cannot-render-tc%3Abutton-tf2601746.html#a7258289
Sent from the MyFaces - Users mailing list archive at Nabble.com.


Re: [tobago] Cannot render tc:button

Posted by Volker Weber <we...@googlemail.com>.
Hi,

try this:

           <tc:form id="NewProduct">
               <tc:panel>
                   <tx:in id="name" label="Nowy produkt:"/>
                   <tc:button action="submit()" label="OK"/>
               </tc:panel>
           </tc:form>

put the form to outher and the cell/panel to inner.

the only difference between cell and panel are the additional spanX/Y
attributes,
if no need for them use panel.

Regards,
  Volker


2006/11/9, PiotrekJ <ja...@gmail.com>:
>
>
>
> Volker Weber-4 wrote:
> >
> > What happen if you leave out the tx:in ?
> >
> >
> >
> Hi,
> I doesn't matter which component I remove, only the first is rendered.
> If I cut tx:in and leave tc:button, I can see the button. Also, If I swap
> tx:in with tc:button(now tc:button is the first and tx:in is the second), I
> can see the button.
> Sorry, every component is rendered in html, but only the first is visible in
> browser.
> It seems like only one component in tc:cell is visible.
>
> I've found such solution(I've added tc:panel and made gridLayout in it):
>
>
> <tc:tab label="Produkty">
>         <tc:panel height="65px">
>             <f:facet name="layout">
>                 <tc:gridLayout columns="*;fixed;*" rows="fixed" />
>             </f:facet>
>
>             <tc:link label="Asortyment" link="/products/list.jsp"/>
>
>             <tc:panel>
>                 <f:facet name="layout">
>                     <tc:gridLayout columns="1*;1*" rows="fixed;fixed" />
>                 </f:facet>
>                 <tc:form id="NewProduct">
>                     <tc:label for="name" value="Nowy produkt:"/>
>                     <tc:button action="#{CartEdit.CreateProduct}"
> label="OK"/>
>                     <tc:hidden id="action" value="createproduct"/>
>                     <tc:cell spanX="2">
>                         <tc:in id="name" value="#{CartEdit.newName}"/>
>                     </tc:cell>
>                 </tc:form>
>             </tc:panel>
>
>             <tc:cell/>
>         </tc:panel>
> --
> View this message in context: http://www.nabble.com/-tobago--Cannot-render-tc%3Abutton-tf2601746.html#a7259425
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>
>

Re: [tobago] Cannot render tc:button

Posted by PiotrekJ <ja...@gmail.com>.


Volker Weber-4 wrote:
> 
> What happen if you leave out the tx:in ?
> 
> 
> 
Hi,
I doesn't matter which component I remove, only the first is rendered. 
If I cut tx:in and leave tc:button, I can see the button. Also, If I swap
tx:in with tc:button(now tc:button is the first and tx:in is the second), I
can see the button.
Sorry, every component is rendered in html, but only the first is visible in
browser.
It seems like only one component in tc:cell is visible.

I've found such solution(I've added tc:panel and made gridLayout in it):


<tc:tab label="Produkty">
        <tc:panel height="65px">
            <f:facet name="layout">
                <tc:gridLayout columns="*;fixed;*" rows="fixed" />
            </f:facet>
            
            <tc:link label="Asortyment" link="/products/list.jsp"/>
            
            <tc:panel>
                <f:facet name="layout">
                    <tc:gridLayout columns="1*;1*" rows="fixed;fixed" />
                </f:facet>
                <tc:form id="NewProduct">    
                    <tc:label for="name" value="Nowy produkt:"/>
                    <tc:button action="#{CartEdit.CreateProduct}"
label="OK"/>
                    <tc:hidden id="action" value="createproduct"/>
                    <tc:cell spanX="2">
                        <tc:in id="name" value="#{CartEdit.newName}"/>
                    </tc:cell>
                </tc:form>
            </tc:panel>
            
            <tc:cell/>
        </tc:panel>
-- 
View this message in context: http://www.nabble.com/-tobago--Cannot-render-tc%3Abutton-tf2601746.html#a7259425
Sent from the MyFaces - Users mailing list archive at Nabble.com.


Re: [tobago] Cannot render tc:button

Posted by Volker Weber <we...@googlemail.com>.
What happen if you leave out the tx:in ?

2006/11/9, PiotrekJ <ja...@gmail.com>:
>
> Hi,
> I've got such code:
>
> <tc:tabGroup id="NavTabs" state="client" height="120px">
>     <tc:tab label="Produkty">
>         <tc:panel height="65px">
>             <f:facet name="layout">
>                 <tc:gridLayout columns="*;fixed;*" rows="fixed"  />
>             </f:facet>
>
>             <tc:link label="Asortyment" link="/products/list.jsp"/>
>
>             <tc:cell>
>                 <tc:form id="NewProduct">
>                     <tx:in id="name" label="Nowy produkt:"/>
>                     <tc:button action="submit()" label="OK"/>
>                 </tc:form>
>             </tc:cell>
>
>             <tc:cell/>
>         </tc:panel>
>     </tc:tab>
> ....
> </tc:tabGroup>
>
> After rendering, there is no submit button(tc:button). <tx:in...> renders
> ok.
>
> Any suggestions?
>
> Thanks,
> Peter
>
> (sorry for poor english)
> --
> View this message in context: http://www.nabble.com/-tobago--Cannot-render-tc%3Abutton-tf2601746.html#a7258289
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>
>