java - Does Tapestry 5 Have composite components -


I'm trying to write a composite component like this

   & Lt; T: Select t: id = "monthField" t: value = "month" t: blankOption = "always" t: model = "month model" class = "select" /> & Lt; / T: container & gt;   

so that I can use it like this

    

But I can not use exactly what method to get different elements and create a date element. Any ideas?

You type value type date and < In the getters and setters for code> year and month your:

  public class MyDatePicker {@Parameter Private Date Price; Public Integer Recipients () {...} Public Zero Set Year (Integer Year) {...} Public Integer GetMonth () {...} Public Zero SatMonth (Completed month) {...}}   

You can use Java or very well to get / set different parts of your date values.

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

ruby on rails - Convert a Activerecord result with has_one associations into a single hash per record -

javascript - Read complete data from stream from onMessage -