myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matthias Wessendorf" <mat...@apache.org>
Subject Re: MyFaces-1.2.3 + Myfaces-orchestra : dynaForm tag not rendered
Date Thu, 03 Jul 2008 16:06:03 GMT
On Thu, Jul 3, 2008 at 5:25 PM, Edmond M.
<edmond.mulemangabo@uclouvain.be> wrote:
>
>
>
> simon.kitching@chello.at wrote:
>>
>> simon.kitching@chello.at schrieb:
>>> Edmond M. schrieb:
>>>>
>>>> Edmond M. wrote:
>>>>
>>>>> Hi !
>>>>>
>>>>> I've trying to use MyFaces-1.2.3 , Myfaces-orchestra , spring-2.5.4,
>>>>> Facelets 1.1.14, tomcat-6.0.16 in my application. "od:dynaForm" is not
>>>>> running; the tag is not rendered. It might have to do with a
>>>>> misconfigured
>>>>> "web.xml" file. Has any one succeeded using these libraries ? I'd
>>>>> appreciated if I got a copy of his web.xml file. Here are the
>>>>> versions I'm
>>>>> using :
>>>>>
>>>>> myfaces-1.2.3
>>>>> springframework 2.5.4
>>>>> openJPA 1.1.0
>>>>> facelets 1.1.14
>>>>> trinidad-1.2.8
>>>>> myfaces-orchestra-core15-1.1-SNAPSHOT.jar
>>>>> myfaces-orchestra-core-1.2-SNAPSHOT.jar
>>>>> myfaces-orchestra-sandbox-1.0.a-SNAPSHOT.jar
>>>>> tomahawk-1.1.7-SNAPSHOT.jar (needed for JSCookmenu); by the way, I'm
>>>>> wondering whether there a drop-down menu compent in Trinidad.
>>>>>
>>>>>
>>>>
>>>> The actual problem seems to be the combination of facelets 1.1.14 and
>>>> "orchestra:dynaForm". My application works if I use "orchestra:dynaForm"
>>>> without facelets; it doesn't work (orchestra:dynaForm isn't being
>>>> rendered)
>>>> if I use facelets, whatever version of facelets I use. Any idea ?

perhaps you just create the taglib xml file on your own?

-Matthias

>>>>
>>>>
>>> We (Mario and I) are using dynaform with facelets 1.1.13.
>>>
>>> But it looks like no facelets taglib.xml is currently provided in the
>>> sandbox jar. We've got one of course; I'll try to tidy it up and add
>>> it to the sandbox today.
>>>
>>> Just a warning: the orchestra core and core15 modules are stable and
>>> well-tested. The sandbox stuff works for us, and we use it in
>>> production systems. However there has been no testing with setups
>>> other than what we use, the API is rather ugly, and documentation is
>>> badly lacking. Of course you are very welcome to use it and we will
>>> help where we can but there are no promises of stability or support
>>> for anything in the orchestra sandbox. If you want to use this bit of
>>> code, you may well find yourself reading the source...
>>
>> Ok, I've just committed the needed bits to the sandbox. To try it out,
>> you can:
>> * svn checkout (or svn update if you already have the code)
>> * mvn clean install
>>
>> I have *not* tested this at all, except to verify that it compiles.
>> Please let me know if it works for you.
>>
>> Regards, Simon
>>
>>
>>
>
> Hello Simon !
>
>
> The new sandbox doesn't seem to work for me. I compiled it using
> myFaces-1.2.3 and Facelets-1.1.14.
>
> Here is the non-facelets file ("testOrchestra.jsp") that is working; all
> components rendered as expected :
>
> <%@ page pageEncoding="UTF-8" %>
> <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
> <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
> <%@ taglib uri="http://myfaces.apache.org/orchestra/dynaForm" prefix="ox" %>
> <%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t" %>
>
> <f:view>
>    <h:form>
>        <t:htmlTag value="h3">
>            <h:outputText value="Form"/>
>        </t:htmlTag>
>        <h:outputText value="note : property
> 'editTDivisionCategory.divisionCategory' IS NOT empty"
>            rendered="#{!empty editTDivisionCategory.divisionCategory}"/>
>        <h:outputText value="note : property
> 'editTDivisionCategory.divisionCategory' IS empty"
>            rendered="#{empty editTDivisionCategory.divisionCategory}"/>
>
>        <h:panelGrid
>            id="entity-layout"
>            columns="2">
>
>            <ox:dynaForm
>                id="idDivisionCategory"
>
> uri="net.bilima.okapiCollege.persistence.divisionCategory.TDivisionCategory"
>                valueBindingPrefix="editTDivisionCategory.divisionCategory">
>                <ox:dynaFormConfigs>
>                    <ox:dynaFormConfig for="description" displaySize="32"/>
>                    <ox:dynaFormConfig for="discriminator"
> displaySize="32"/>
>                </ox:dynaFormConfigs>
>            </ox:dynaForm>
>
>        </h:panelGrid>
>
>    </h:form>
> </f:view>
>
> And here is the NON-working facelets file ("test.xhtml"); the first 2
> components (eg "<t:htmlTag>" and "<h:outputText>") are displaid,
> "<ox:dynaForm>" isn't; I've double checked that property
> 'editTDivisionCategory.divisionCategory' is not empty :
>
> <div
>    xmlns="http://www.w3.org/1999/xhtml"
>    xmlns:h="http://java.sun.com/jsf/html"
>    xmlns:t="http://myfaces.apache.org/tomahawk"
>    xmlns:ox="http://myfaces.apache.org/orchestra/dynaForm"
>    xmlns:ui="http://java.sun.com/jsf/facelets">
>
>    <ui:composition>
>        <h:form>
>
>            <t:htmlTag value="h3">
>                <h:outputText value="Form"/>
>            </t:htmlTag>
>            <h:outputText value="note : property
> 'editTDivisionCategory.divisionCategory' IS NOT empty"
>                rendered="#{!empty
> editTDivisionCategory.divisionCategory}"/>
>            <h:outputText value="note : property
> 'editTDivisionCategory.divisionCategory' IS empty"
>                rendered="#{empty editTDivisionCategory.divisionCategory}"/>
>
>            <h:panelGrid
>                id="entity-layout"
>                columns="2">
>
>                <ox:dynaForm
>                    id="idDivisionCategory"
>
> uri="net.bilima.okapiCollege.persistence.divisionCategory.TDivisionCategory"
>
> valueBindingPrefix="editTDivisionCategory.divisionCategory">
>                    <ox:dynaFormConfigs>
>                        <ox:dynaFormConfig for="description"
> displaySize="32"/>
>                        <ox:dynaFormConfig for="discriminator"
> displaySize="32"/>
>                    </ox:dynaFormConfigs>
>                </ox:dynaForm>
>
>            </h:panelGrid>
>
>        </h:form>
>    </ui:composition>
> </div>
>
> regards !
>
> Edmond/
> --
> View this message in context: http://www.nabble.com/MyFaces-1.2.3--%2B-Myfaces-orchestra-%3A-dynaForm-tag-not-rendered-tp18145815p18260272.html
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>
>



-- 
Matthias Wessendorf

further stuff:
blog: http://matthiaswessendorf.wordpress.com/
sessions: http://www.slideshare.net/mwessendorf
mail: matzew-at-apache-dot-org

Mime
View raw message