You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Baljeet Nijjhar <Ba...@gmail.com> on 2009/04/24 16:41:00 UTC

Can I use h:commandButton on a Tomahawk t:aliasBean aliased bean

Hi
I have declared an aliasBean using the following syntax:
In top-level jsp:

<t:aliasBean alias="#{aliasBean}" value="#{realBean}">
            	<%@ include file="fragment.jspf" %> 
</t:aliasBean>

In included jsp:

<h:commandButton action="#{aliasBean.doSomething}" type="submit"
value="buttonA" title="buttonA"/>

However, although I can use h:outputText fine on my aliasBean, firing a
command does not seem to work. 
Is this expected behaviour, or am I missing something?
Many thanks, Baljeet.
-- 
View this message in context: http://www.nabble.com/Can-I-use-h%3AcommandButton-on-a-Tomahawk-t%3AaliasBean-aliased-bean-tp23217782p23217782.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.


RE: Can I use h:commandButton on a Tomahawk t:aliasBean aliased bean

Posted by Baljeet Nijjhar <Ba...@gmail.com>.
Doh, how embarrassing, yes that was it. 
thanks so much!!


Matt.Rossner-prest wrote:
> 
> Maybe you forgot to put it in an h:form ? It should work, I've done some
> similar things. That's the only thing I can think of for now. I know
> sometimes when I'm testing I forgot something obvious like that and none
> of the commands work.
> 
> -----Original Message-----
> From: Baljeet Nijjhar [mailto:Baljeet.Nijjhar@gmail.com] 
> Sent: vendredi 24 avril 2009 16:41
> To: users@myfaces.apache.org
> Subject: Can I use h:commandButton on a Tomahawk t:aliasBean aliased
> bean
> 
> 
> Hi
> I have declared an aliasBean using the following syntax:
> In top-level jsp:
> 
> <t:aliasBean alias="#{aliasBean}" value="#{realBean}">
>             	<%@ include file="fragment.jspf" %> 
> </t:aliasBean>
> 
> In included jsp:
> 
> <h:commandButton action="#{aliasBean.doSomething}" type="submit"
> value="buttonA" title="buttonA"/>
> 
> However, although I can use h:outputText fine on my aliasBean, firing a
> command does not seem to work. 
> Is this expected behaviour, or am I missing something?
> Many thanks, Baljeet.
> -- 
> View this message in context:
> http://www.nabble.com/Can-I-use-h%3AcommandButton-on-a-Tomahawk-t%3Aalia
> sBean-aliased-bean-tp23217782p23217782.html
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Can-I-use-h%3AcommandButton-on-a-Tomahawk-t%3AaliasBean-aliased-bean-tp23217782p23219736.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.


RE: Can I use h:commandButton on a Tomahawk t:aliasBean aliased bean

Posted by Ma...@sanofi-aventis.com.
Maybe you forgot to put it in an h:form ? It should work, I've done some
similar things. That's the only thing I can think of for now. I know
sometimes when I'm testing I forgot something obvious like that and none
of the commands work.

-----Original Message-----
From: Baljeet Nijjhar [mailto:Baljeet.Nijjhar@gmail.com] 
Sent: vendredi 24 avril 2009 16:41
To: users@myfaces.apache.org
Subject: Can I use h:commandButton on a Tomahawk t:aliasBean aliased
bean


Hi
I have declared an aliasBean using the following syntax:
In top-level jsp:

<t:aliasBean alias="#{aliasBean}" value="#{realBean}">
            	<%@ include file="fragment.jspf" %> 
</t:aliasBean>

In included jsp:

<h:commandButton action="#{aliasBean.doSomething}" type="submit"
value="buttonA" title="buttonA"/>

However, although I can use h:outputText fine on my aliasBean, firing a
command does not seem to work. 
Is this expected behaviour, or am I missing something?
Many thanks, Baljeet.
-- 
View this message in context:
http://www.nabble.com/Can-I-use-h%3AcommandButton-on-a-Tomahawk-t%3Aalia
sBean-aliased-bean-tp23217782p23217782.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.