If you only use standard components you shouldn`t need it. But if it
comes down to stuff which needs serving of resources then extensions
filter is obligatory.

If you have configured it the common way:

http://myfaces.apache.org/tomahawk/extensionsFilter.html

There should be no problem.

But it sounds that there is still some problem with your web.xml.

Any deeper infos coming from the exception?

cheers,

Gerald

On 9/12/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
Thanks again. For sure MyClass is declared.
But if I want to use tomahawk do I need something like this in my web.xml:

<filter-mapping>
<filter-name>MyFacesExtensionsFilter</filter-name>
<url-pattern>/faces/myFacesExtensionResource/*</url-pattern>
</filter-mapping>

I keep having the error: org.apache.myfaces.config.MyfacesConfig
Is it possible that tomahawk is not compatible with the program I am using
Alfresco with JBoss?

Thanks,
Sophie

-----Message d'origine-----
De: Gerald Müllan [mailto:[EMAIL PROTECTED]
Envoyé: mardi 12 septembre 2006 12:45
À: MyFaces Discussion; [EMAIL PROTECTED]
Objet: Re: RichList and SelectBooleanCheckbox

Hi,

sure, MyClass has to be declared as a managed bean in your faces-config.xml.

The t:updateActionListener should be used as follows:

<t:updateActionListener property="#{managedBean.itemId}"
value="#{item.id}"/>

Just use it inside a commandLink like:

<h:commandLink value="someText" action="#{managedBean.goNextPage}">
     <t:updateActionListener property="#{managedBean.itemId}"
value="#{item.id}"/>
</h:commandLink>

With the help of this component, you know (via the id) in the backend
which entry was clicked on. You can also use an ActionListener to
accomplish this task.

cheers,

Gerald

On 9/12/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Hi!
>
> Thanks for your help.
> I tried to use this dataTable tag as follow:
>
> <t:dataTable    value="#{MyClass.listToDisplay}"
>                                          var="item">
>
>         <f:facet name="Name">
>                   <f:verbatim>&amp;#160;</f:verbatim>
>         </f:facet>
>         <h:column>
>                           <h:outputText value="#{item.name}"/>
>         </h:column>
>         <h:column>
>                 <h:outputText value="#{item.firstname}"/>
>         </h:column>
> </t:dataTable>
>
> But I am getting this error: javax.faces.FacesException:
> org.apache.myfaces.config.MyfacesConfig
>
> Do I need to declare a bean or something in my xml configuration files to
> use it?
>
> And thus this t:updateActionListener will allow me to set a property of
the
> current item? For exemple if I have a list of person and this person has a
> property Boolean authorized then this authorized for this precise person
> will be set to true for example?
>
> Thanks
> Sophie
>
> -----Message d'origine-----
> De: Thorbjørn Ravn Andersen [mailto:[EMAIL PROTECTED]
> Envoyé: lundi 11 septembre 2006 21:25
> À: MyFaces Discussion
> Objet: Re: RichList and SelectBooleanCheckbox
>
> [EMAIL PROTECTED] skrev  den 11-09-2006 17:02:
> > The problem I have now is that I would like the user to select some
> persons
> > in this list and getting the list of selected persons in my program. I
was
> > thinking of putting a SelectBooleanCheckbox in front of each row of this
> > table but then I cannot get back the node associated to the checkbox. If
I
> > am doing something like this:
> >
> > H:selectBooleanCheckbox id=ok value="#{r.personAuthorized}"
> >
> > Then this checkbox will be checked if r.personAuthorized is true but I
> will
> > not get the value of this checkbox in my nodes when leaving this page
no?
> >
> >
> If you were using a h:dataTable I would suggest using the
> t:updateActionListener tag which allows you to set a property where the
> variable is available from the loop.
>
> Maybe it will work inside your package too?
>
> --
>   THorbjørn
>
>


--
http://www.irian.at

Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German

Professional Support for Apache MyFaces




--
http://www.irian.at

Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German

Professional Support for Apache MyFaces

Reply via email to