You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Harald Müller <ha...@wimaxtelecom.at> on 2006/01/09 16:15:19 UTC

TabPane -> Form => Javascript-Error

Hi!

Code:

<t:panelTabbedPane id="tabpane1" width="100%">
  <t:panelTab id="ct" label="Current Task">
    <h:form id="taskform">
      <h:inputText value="Huhhhaaaaa" />
      <h:commandButton value="Reset" type="reset" styleClass="button" />
    </h:form>
  </t:panelTab>
</t:panelTabbedPane>

This code gives me a javascript-error on loading the webpage (Firefox):

-> "f has no properties"

Can someone reproduce that ... or am I doing something wrong?

I'm using today's svn-head!

Thanks,
H



Re: TabPane -> Form => Javascript-Error

Posted by Hansjörg Meuschel <hj...@gmx.de>.
Hi,
try to put the form tag before the paneltabbedpane tag and use one single
form for all tabs! 


> <h:form id="taskform">
> <t:panelTabbedPane id="tabpane1" width="100%">
>   <t:panelTab id="ct" label="Current Task">
>       <h:inputText value="Huhhhaaaaa" />
>       <h:commandButton value="Reset" type="reset" styleClass="button" />
>   </t:panelTab>
> </t:panelTabbedPane>
> </h:form>

if this does not work please post your jsf source!
Greets,
Hans



> --- Ursprüngliche Nachricht ---
> Von: Harald Müller <ha...@wimaxtelecom.at>
> An: "MyFaces Discussion" <us...@myfaces.apache.org>
> Betreff: TabPane -> Form => Javascript-Error
> Datum: Mon, 9 Jan 2006 16:15:19 +0100
> 
> Hi!
> 
> Code:
> 
> <t:panelTabbedPane id="tabpane1" width="100%">
>   <t:panelTab id="ct" label="Current Task">
>     <h:form id="taskform">
>       <h:inputText value="Huhhhaaaaa" />
>       <h:commandButton value="Reset" type="reset" styleClass="button" />
>     </h:form>
>   </t:panelTab>
> </t:panelTabbedPane>
> 
> This code gives me a javascript-error on loading the webpage (Firefox):
> 
> -> "f has no properties"
> 
> Can someone reproduce that ... or am I doing something wrong?
> 
> I'm using today's svn-head!
> 
> Thanks,
> H
> 
> 

-- 
DSL-Aktion wegen großer Nachfrage bis 28.2.2006 verlängert:
GMX DSL-Flatrate 1 Jahr kostenlos* http://www.gmx.net/de/go/dsl