deltaspike-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Struberg <strub...@yahoo.de>
Subject Re: [DISCUSS] ViewConfig
Date Thu, 18 Oct 2012 21:34:16 GMT
I would first need a summary of what the enum based solution does provide.

LieGrue,
strub




----- Original Message -----
> From: Gerhard Petracek <gerhard.petracek@gmail.com>
> To: deltaspike-dev@incubator.apache.org
> Cc: 
> Sent: Thursday, October 18, 2012 11:00 PM
> Subject: Re: [DISCUSS] ViewConfig
> 
> +1 to add type-safe view-configs described in [1]
> +0 to add support for enums
> 
> regards,
> gerhard
> 
> [1]
> https://cwiki.apache.org/confluence/display/EXTCDI/JSF+Usage#JSFUsage-TypesafeViewConfig
> 
> 
> 
> 2012/10/18 Gerhard Petracek <gerhard.petracek@gmail.com>
> 
>>  short addition:
>> 
>>  [1] is just the first step. if we agree to add it, we will continue e.g.
>>  with discussions about [2] [3].
>>  (please notice that [1] is a whole chapter and not just one headline.)
>> 
>>  regards,
>>  gerhard
>> 
>>  [1]
>> 
> https://cwiki.apache.org/confluence/display/EXTCDI/JSF+Usage#JSFUsage-TypesafeViewConfig
>>  [2]
>> 
> https://cwiki.apache.org/confluence/display/EXTCDI/JSF+Usage#JSFUsage-Alternativeto@PageBean%28sincev0.9.1%29
>>  [3]
>> 
> https://cwiki.apache.org/confluence/display/EXTCDI/JSF+Usage#JSFUsage-InlineViewConfigs%28sincev0.9.3%29
>> 
>> 
>> 
>>  2012/10/18 Mark Struberg <struberg@yahoo.de>
>> 
>>>  Hi folks!
>>> 
>>>  We already discussed this as part of another thread, but it's time 
> to
>>>  find a final solution
>>> 
>>>  What we have so far:
>>> 
>>>  in CODI we have interface + annotation based view configs:
>>> 
>>> 
>>> 
> https://cwiki.apache.org/confluence/display/EXTCDI/JSF+Usage#JSFUsage-TypesafeViewConfig
>>> 
>>>  You basically write your page structure as interface with 
> sub-interfaces
>>>  and annotate them with features you like to get.
>>>  A nice feature is that you can write JSF actions like the following
>>> 
>>>    Class<? extends ViewConfig> doSomething() {
>>>      ....
>>>      return Admin.EditCustomer.class;
>>>    }
>>> 
>>>  Say goodbye to any clumsy String handling...
>>> 
>>> 
>>>  In Seam3 there is a way to write Enums for approaching something 
> similar.
>>>  Someone has a link for the docs and might join in to explain the 
> strengths
>>>  and weak spots of this approach?
>>> 
>>> 
>>>  txs and LieGrue,
>>>  strub
>>> 
>> 
>> 
> 

Mime
View raw message