You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by John Patterson <jd...@gmail.com> on 2008/08/27 12:17:01 UTC
Page models
Hi, in almost all my pages I set a model for the page and then need to
retrieve it using the un-typesafe getDefaultModel(). Or I implement a
typesafe getModel(). I was just wondering if others really normally use
pages without models? If not maybe Page should be generified?
JD
--
View this message in context: http://www.nabble.com/Page-models-tp19178165p19178165.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Page models
Posted by Johan Compagner <jc...@gmail.com>.
i think many people doent want to do
Page<Void> and that kind of stuff...
dont think that it is used much (the model of the page)
johan
On Wed, Aug 27, 2008 at 12:17 PM, John Patterson <jd...@gmail.com> wrote:
>
> Hi, in almost all my pages I set a model for the page and then need to
> retrieve it using the un-typesafe getDefaultModel(). Or I implement a
> typesafe getModel(). I was just wondering if others really normally use
> pages without models? If not maybe Page should be generified?
>
> JD
> --
> View this message in context:
> http://www.nabble.com/Page-models-tp19178165p19178165.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
Re: Page models
Posted by Igor Vaynberg <ig...@gmail.com>.
we decided not to generify components unless it made sense. since
pages, unlike eg formcomponents, do not use their models for anything
they are not generified.
-igor
On Wed, Aug 27, 2008 at 8:22 AM, John Patterson <jd...@gmail.com> wrote:
>
> Yeah guess I will do that. was just wondering if I was in the minority using
> models in my pages.
>
>
> igor.vaynberg wrote:
>>
>> you can always create your own subclass that is generified, and use that
>>
>> -igor
>>
>> On Wed, Aug 27, 2008 at 3:17 AM, John Patterson <jd...@gmail.com> wrote:
>>>
>>> Hi, in almost all my pages I set a model for the page and then need to
>>> retrieve it using the un-typesafe getDefaultModel(). Or I implement a
>>> typesafe getModel(). I was just wondering if others really normally use
>>> pages without models? If not maybe Page should be generified?
>>>
>>> JD
>>> --
>>> View this message in context:
>>> http://www.nabble.com/Page-models-tp19178165p19178165.html
>>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>>
>
> --
> View this message in context: http://www.nabble.com/Page-models-tp19178165p19183332.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Page models
Posted by Patrick Angeles <pa...@inertiabev.com>.
I don't tend to use models in my pages. I tend to think of Pages as having
more to do with site navigation, as opposed to what is actually displayed in
them... (you would then add genericized panels, like ViewOrderPanel, etc.,
to a page.).
John Patterson wrote:
>
> Yeah guess I will do that. was just wondering if I was in the minority
> using models in my pages.
>
>
> igor.vaynberg wrote:
>>
>> you can always create your own subclass that is generified, and use that
>>
>> -igor
>>
>> On Wed, Aug 27, 2008 at 3:17 AM, John Patterson <jd...@gmail.com>
>> wrote:
>>>
>>> Hi, in almost all my pages I set a model for the page and then need to
>>> retrieve it using the un-typesafe getDefaultModel(). Or I implement a
>>> typesafe getModel(). I was just wondering if others really normally use
>>> pages without models? If not maybe Page should be generified?
>>>
>>> JD
>>> --
>>> View this message in context:
>>> http://www.nabble.com/Page-models-tp19178165p19178165.html
>>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>>
>
>
--
View this message in context: http://www.nabble.com/Page-models-tp19178165p19190800.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Page models
Posted by John Patterson <jd...@gmail.com>.
Yeah guess I will do that. was just wondering if I was in the minority using
models in my pages.
igor.vaynberg wrote:
>
> you can always create your own subclass that is generified, and use that
>
> -igor
>
> On Wed, Aug 27, 2008 at 3:17 AM, John Patterson <jd...@gmail.com> wrote:
>>
>> Hi, in almost all my pages I set a model for the page and then need to
>> retrieve it using the un-typesafe getDefaultModel(). Or I implement a
>> typesafe getModel(). I was just wondering if others really normally use
>> pages without models? If not maybe Page should be generified?
>>
>> JD
>> --
>> View this message in context:
>> http://www.nabble.com/Page-models-tp19178165p19178165.html
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/Page-models-tp19178165p19183332.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Page models
Posted by Igor Vaynberg <ig...@gmail.com>.
you can always create your own subclass that is generified, and use that
-igor
On Wed, Aug 27, 2008 at 3:17 AM, John Patterson <jd...@gmail.com> wrote:
>
> Hi, in almost all my pages I set a model for the page and then need to
> retrieve it using the un-typesafe getDefaultModel(). Or I implement a
> typesafe getModel(). I was just wondering if others really normally use
> pages without models? If not maybe Page should be generified?
>
> JD
> --
> View this message in context: http://www.nabble.com/Page-models-tp19178165p19178165.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org