UVAshley / krank

Automatically exported from code.google.com/p/krank
0 stars 0 forks source link

composite panel fails in combination with detailListing #42

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
When I have a compositepanel in combination with a detaillisting, and call
the page, I get an error with  org.crank.core.CrankException:
CrankUtils.getToolTip: Null arguments are not allowed  clazz = null,
propertyName = %first property in composite panel%

If I remove the tag, load the page, see the listing, reinsert the tag and
click edit, it works and the embedded fields show up. So it just seems to
affect the listing view without the form visible.

If I call the page without the detailListing it works also

No clue why. But I'm a newbie.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:a4j="https://ajax4jsf.dev.java.net/ajax"
    xmlns:rich="http://richfaces.ajax4jsf.org/rich"
    xmlns:c="http://java.sun.com/jstl/core"
    xmlns:crank="http://www.googlecode.com/crank" 
    >

<ui:composition template="/templates/layout.xhtml">
    <ui:define name="content">
        <c:set var="crud" value="${cruds.offer.controller}"/>
        <c:set var="photoDetailController"
value="${offerCrud.controller.children.photos}" /> 

        <h:form id="usorForm">

            <crank:ajaxForm 
                crud="${crud}"
                propertyNames="id,title,description,hideAddress,offerType,price,URLPath"
                parentForm="offerForm"      
                >

                <crank:compositePanel entity="${crud.entity.address}" 
                    name="address"
propertyNames="street,houseNumber,houseNumberExt,zipCode,skype,phone,longitude,l
atitude"/>

                <crank:selectOneListing 
                    jsfSelectOneController="${categorySelectController}"
                    propertyNames="label,parent,country,hidden" 
                    parentForm="offerForm" />

                <crank:detailListing 
                            detailController="${photoDetailController}" 
                            propertyNames="filename,thumbnail,title"
                            relationshipCollection="#{photoDetailController.model}"
                            parentForm="offerForm"
                            />

            </crank:ajaxForm>   
            <h4>${crud.name} Listing</h4>

            <crank:listing jsfCrudAdapter="${cruds.offer}"

propertyNames="id,title,active,entryDate,changeDate,vendor,countrySite,views"
            pageTitle="User"
            crud="${crud}"
            parentForm="usorForm"/>

        </h:form>
    </ui:define>
</ui:composition>
</html>

Original issue reported on code.google.com by m.schipp...@gmail.com on 23 May 2009 at 10:44