Thanks for your help so far.

After placing the files in the "pages" folder I came across an exception:

Parameter 'translate' of component AppPropertyEditBlocks:duration is bound
to null. This
parameter is not allowed to be null. [at context:AppPropertyEditBlocks.tml,
line 5, column 57]


public class AppPropertyEditBlocks
{
        @Property
    @Environmental
    private PropertyEditContext context;
  
    @Component(parameters =
    { "value=context.propertyValue", "label=prop:context.label",
            "translate=prop:durationTranslator",
"validate=prop:durationValidator",
            "clientId=prop:context.propertyId", "annotationProvider=context"
})
    private TextField duration;
    
    @Inject
    private ComponentResources resources;

    public FieldValidator getDurationValidator()
    {
      return context.getValidator(duration);
    }
    
    public FieldTranslator getDurationTranslator()
    {
      return context.getTranslator(duration);
    }

}

The corresponding TML file:

<div xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";>

        <t:block id="duration">
        <t:label for="duration"/>
        <t:textfield t:id="duration" t:value="" size="20"/>
        </t:block>

</div>

The AppModule.java file:

           public static void
contributeDefaultDataTypeAnalyzer(MappedConfiguration<Class, String>
configuration)
           {
                   configuration.add(java.sql.Time.class, "duration");
           }
           
           public static void
contributeBeanBlockSource(Configuration<BeanBlockContribution>
configuration)
           {
                   configuration.add(new BeanBlockContribution("duration",
"AppPropertyEditBlocks", "duration", true));
           }


Robert Zeigler wrote:
> 
> They should be in the "pages" folder; they are pages that act as  
> "holders" for components.
> 
> Robert
> 
> On Feb 12, 2009, at 2/123:59 PM , bob_k wrote:
> 
>>
>>
>> The page I'm trying to use it with is called "Presentations".
>>
>> It's located in com.eveo.speakertraining.tapestry.webapp.pages.admin
>>
>> The AppPropertyEditBlocks.java and AppPropertyEditBlocks.tml files are
>> located in com.eveo.speakertraining.tapestry.webapp.components
>>
>> Should these files not be in the "components" folder?
>>
>>
>> Robert Zeigler wrote:
>>>
>>> As HLS said already, the exception is that it can't locate the page
>>> "AppPropertyEditBlocks".
>>> What is the name of the page on which you are putting your
>>> BeanEditForm-customizing blocks?
>>> What package is it in?
>>>
>>> Robert
>>>
>>>
>>> On Feb 12, 2009, at 2/123:32 PM , bob_k wrote:
>>>
>>>>
>>>>
>>>> I'm running into the same problem regarding customizing  
>>>> BeanEditForm.
>>>>
>>>> If someone was able to solve this problem could they post the
>>>> solution?
>>>>
>>>> Thanks.
>>>>
>>>> -Bob
>>>>
>>>>
>>>> Howard Lewis Ship wrote:
>>>>>
>>>>> That looks like it can't find your AppPropertyEditBlocks class.
>>>>> What's the full package name?  Have you verified that the .class  
>>>>> file
>>>>> is present where it should be?
>>>>>
>>>>> On Tue, Jul 1, 2008 at 6:43 AM, mister_bobby
>>>>> <clement.col...@digimind.com> wrote:
>>>>>>
>>>>>> I do exactly have the same problem (my data type name is  type ) :
>>>>>> Render queue error in
>>>>>> BeginRender[Search:beaneditform.editor.propertyeditor]: Unable to
>>>>>> locate
>>>>>> a
>>>>>> block to edit property 'type' (with data type 'type') of object
>>>>>> fr.popol.mapper.model.sou...@15d252d: Unable to resolve
>>>>>> 'AppPropertyEditBlocks' to a known page name. Available page  
>>>>>> names:
>>>>>> (blank),
>>>>>> ExceptionReport, Index, PropertyDisplayBlocks, PropertyEditBlocks,
>>>>>> Search,
>>>>>> ServiceStatus.
>>>>>> What happens ?
>>>>>> --
>>>>>> View this message in context:
>>>>>> http://www.nabble.com/t5%3A-BeanEditform-and-Timestamp-tp15730716p18214383.html
>>>>>> Sent from the Tapestry - User mailing list archive at Nabble.com.
>>>>>>
>>>>>>
>>>>>> ---------------------------------------------------------------------
>>>>>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>>>>>> For additional commands, e-mail: users-h...@tapestry.apache.org
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> -- 
>>>>> Howard M. Lewis Ship
>>>>>
>>>>> Creator Apache Tapestry and Apache HiveMind
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>>>>> For additional commands, e-mail: users-h...@tapestry.apache.org
>>>>>
>>>>>
>>>>>
>>>>
>>>> -- 
>>>> View this message in context:
>>>> http://www.nabble.com/t5%3A-BeanEditform-and-Timestamp-tp15730716p21985466.html
>>>> Sent from the Tapestry - User mailing list archive at Nabble.com.
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>>>> For additional commands, e-mail: users-h...@tapestry.apache.org
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>>> For additional commands, e-mail: users-h...@tapestry.apache.org
>>>
>>>
>>>
>>
>> -- 
>> View this message in context:
>> http://www.nabble.com/t5%3A-BeanEditform-and-Timestamp-tp15730716p21985855.html
>> Sent from the Tapestry - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>> For additional commands, e-mail: users-h...@tapestry.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/t5%3A-BeanEditform-and-Timestamp-tp15730716p21986665.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to