You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by yazid <sm...@yahoo.fr> on 2007/01/02 22:00:21 UTC

[Tobago] Curious Problem : several buton inside same tab

Hi All ;
I’ve a strange behaviour of button.
In a tab containing two panel

<tab>
<tc:form id="formSearch">	
  <tc:panel>
    <tc:in value="#{bean1.attribute}" required="true"> 
        ……….
    <tc:button action="#{ method1}" …..>

</tc:panel>

<tc:panel>
</tc:form>
in the same tab I’ve another form
<tc:form id="formAssign">         
  <tc:panel  rendered="#{some value}" > 
           <tc:button action="#{method2}" label="press” />

The first button work fine; but the second’s action is never invoked;
instead of invoking “ method2” when pressing the second button; the
setAtrribute of the bean1 is invoked

-- 
View this message in context: http://www.nabble.com/-Tobago--Curious-Problem-%3A-several-buton-inside-same-tab-tf2910058.html#a8130641
Sent from the MyFaces - Users mailing list archive at Nabble.com.


Re: [Tobago] Curious Problem : several buton inside same tab

Posted by Bernd Bohmann <be...@atanion.com>.
Hello Yazid,

can you send a simple jsp page for this, please?

Regards

Bernd

yazid wrote:
> Hi Bernd;
> I'm using the snapshot 1.0.9
> no switchType (default)
> 
> 
> Bernd Bohmann wrote:
>> Hello Yazid,
>>
>> which version of tobago are you using?
>>
>> switchType of tabGroup?
>>
>> Regards
>>
>> Bernd
>>
>> yazid wrote:
>>> Hi All ;
>>> I’ve a strange behaviour of button.
>>> In a tab containing two panel
>>>
>>> <tab>
>>> <tc:form id="formSearch">	
>>>   <tc:panel>
>>>     <tc:in value="#{bean1.attribute}" required="true"> 
>>>         ……….
>>>     <tc:button action="#{ method1}" …..>
>>>
>>> </tc:panel>
>>>
>>> <tc:panel>
>>> </tc:form>
>>> in the same tab I’ve another form
>>> <tc:form id="formAssign">         
>>>   <tc:panel  rendered="#{some value}" > 
>>>            <tc:button action="#{method2}" label="press” />
>>>
>>> The first button work fine; but the second’s action is never invoked;
>>> instead of invoking “ method2” when pressing the second button; the
>>> setAtrribute of the bean1 is invoked
>>>
>>
> 

Re: [Tobago] Curious Problem : several buton inside same tab

Posted by yazid <sm...@yahoo.fr>.
Hi Bernd;
I'm using the snapshot 1.0.9
no switchType (default)


Bernd Bohmann wrote:
> 
> Hello Yazid,
> 
> which version of tobago are you using?
> 
> switchType of tabGroup?
> 
> Regards
> 
> Bernd
> 
> yazid wrote:
>> Hi All ;
>> I’ve a strange behaviour of button.
>> In a tab containing two panel
>> 
>> <tab>
>> <tc:form id="formSearch">	
>>   <tc:panel>
>>     <tc:in value="#{bean1.attribute}" required="true"> 
>>         ……….
>>     <tc:button action="#{ method1}" …..>
>> 
>> </tc:panel>
>> 
>> <tc:panel>
>> </tc:form>
>> in the same tab I’ve another form
>> <tc:form id="formAssign">         
>>   <tc:panel  rendered="#{some value}" > 
>>            <tc:button action="#{method2}" label="press” />
>> 
>> The first button work fine; but the second’s action is never invoked;
>> instead of invoking “ method2” when pressing the second button; the
>> setAtrribute of the bean1 is invoked
>> 
> 
> 

-- 
View this message in context: http://www.nabble.com/-Tobago--Curious-Problem-%3A-several-buton-inside-same-tab-tf2910058.html#a8137437
Sent from the MyFaces - Users mailing list archive at Nabble.com.


Re: [Tobago] Curious Problem : several buton inside same tab

Posted by Bernd Bohmann <be...@atanion.com>.
Hello Yazid,

which version of tobago are you using?

switchType of tabGroup?

Regards

Bernd

yazid wrote:
> Hi All ;
> I’ve a strange behaviour of button.
> In a tab containing two panel
> 
> <tab>
> <tc:form id="formSearch">	
>   <tc:panel>
>     <tc:in value="#{bean1.attribute}" required="true"> 
>         ……….
>     <tc:button action="#{ method1}" …..>
> 
> </tc:panel>
> 
> <tc:panel>
> </tc:form>
> in the same tab I’ve another form
> <tc:form id="formAssign">         
>   <tc:panel  rendered="#{some value}" > 
>            <tc:button action="#{method2}" label="press” />
> 
> The first button work fine; but the second’s action is never invoked;
> instead of invoking “ method2” when pressing the second button; the
> setAtrribute of the bean1 is invoked
>