dev@woodstock.java.net

Re: Facelets + Woodstock problem

From: Venkatesh Babu <Venkatesh.M_at_Sun.COM>
Date: Thu, 25 Oct 2007 19:50:21 +0530

I was able to get action attribute to work with a method binding.
With Dmitry's example, i did something like

                <w:button id="button1" text="click me"
action="#{FieldBean.actionPerformed}"/>
-Venky

stuartr wrote:
> See in line
>
> I get Woostock to invoke and reload the same page but no beans nor error
> messages ( Im runnin in tomcat ). Nothing at all.
> The action attribute actually works ( when you set a text value ) and the
> faces nvaigations works without error, but the EL expression just doesnt get
> invoked whatsoever.
>
>
>
>
>
> Morten Egelund Rasmussen-2 wrote:
>
>> Hi!
>>
>> We're using Facelets and Woodstock with Woodstock buttons all over. No
>> problems whatsoever.
>>
>> Use 'actionListener' and 'action' on the button. The ActionListener is
>> executed before the Action.
>>
>> Some ideas:
>>
>> * Check your ActionListener method signature.
>> ActionListener matches that oif the example woodstock components servlet.
>> I have the ActionEvent as the param within the sig and it is a void method
>>
>> * Remember to register all backingbeans in faces-config.xml.
>> Backing bean is working on all other components, This is the same bean
>>
>>
>>
>> * Check that faces-config.xml has JSF 1.2 in the header.
>> Yip .
>>
>>
>>
>> * Try with <webuijsf:page> and the whole stack in the page and in the
>> Facelets template (dunno if it makes a difference).
>> Was using this anyway
>> Within my main template.xhtml page i have
>> <jsp:directive.page contentType="text/html" />
>>
>> <f:view contentType="text/html">
>>
>> <webuijsf:page xhtml="true">
>> <webuijsf:html id="htmlheader">
>>
>>
>>
>> Let us know if it helps..... Send code snippets if not.
>>
>>
>> Best regards,
>> ~Morten :-)
>>
>>
>>
>>
>>>>> stuart.russell_at_sun.com 25-10-2007 13:46:04 >>>
>>>>>
>> Jason I too have just wasted 4 hours trying to get the actionlisteners and
>> actionExpression working on the Woodstock button component.
>> It just doesnt work .
>> Tried using firebox to find out exactly whats going wrong but getting
>> nowwhere.
>>
>> Have resorted to using the standard commandButton within JSF and it works
>> AOK, no problems.
>>
>> Did anyone get to the button of this issue when integrating with FACELETS.
>>
>> Or
>>
>> Anyone suggest another template engine.
>>
>> Stu
>>
>>
>>
>>
>> Jason Suplizio wrote:
>>
>>> A coworker at my company has the following problem:
>>>
>>> I am trying to use Woodstock and Facelets. Rendering works correctly, but
>>> the binding of the "action" components did not work. For example, a
>>> button
>>> would not invoke its backing beans action. Removing Facelet and using Jsp
>>> allowed Woodstock to work properly.
>>>
>>> Tried using the actionExpression and the actionListenerExpression.
>>>
>>> Also note:
>>> The h:commandButton worked as expected.
>>> The w:radioButton also failed in Facelets
>>>
>>>
>>> Does anyone have any similar experiences? Do you know of a solution for
>>> these issues?
>>>
>>> Thanks,
>>> Jason
>>>
>>> PS Is the dev list the wrong place for these questions?
>>>
>>>
>>>
>> --
>> View this message in context:
>> http://www.nabble.com/Facelets-%2B-Woodstock-problem-tf4469174.html#a13405134
>> Sent from the Project Woodstock - Dev mailing list archive at Nabble.com.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe_at_woodstock.dev.java.net
>> For additional commands, e-mail: dev-help_at_woodstock.dev.java.net
>>
>>
>
>