You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by kamiseq <ka...@gmail.com> on 2010/01/22 15:05:54 UTC
AbstractSelectModel is not in a controlled package
hi all,
I run into a strange problem, I was googling for this, but still have no
idea what is going on :(
i followed the
http://wiki.apache.org/tapestry/Tapestry5HowtoSelectWithObjects and after
running the page I got error message
java.lang.RuntimeException: Base class
org.apache.tapestry5.util.AbstractSelectModel (super class of
pl mypackage.components.utils.SelectCollectionModel) is not in a controlled
package and is therefore not valid. You should try moving the class to
package mypackage.base.
just to try I refactored my code and put my class
into mypackage.base.SelectCollectionModel like I was asked - no change. the
problem persisted.
please help
pozdrawiam
Paweł Kamiński
kamiseq@gmail.com
pkaminski.prv@gmail.com
______________________
Re: AbstractSelectModel is not in a controlled package
Posted by kamiseq <ka...@gmail.com>.
ok. thanks a lot!
pozdrawiam
Paweł Kamiński
kamiseq@gmail.com
pkaminski.prv@gmail.com
______________________
2010/1/26 Howard Lewis Ship <hl...@gmail.com>
> It is for base classes that may be extended to form concrete pages,
> components or mixins.
>
> On Mon, Jan 25, 2010 at 4:06 PM, Thiago H. de Paula Figueiredo
> <th...@gmail.com> wrote:
> > On Mon, 25 Jan 2010 20:05:10 -0200, kamiseq <ka...@gmail.com> wrote:
> >
> >> I moved the child class to mypackage.util package and it works now. then
> >> mypackage.base is controlled by tapestry??
> >
> > Yes.
> >
> > --
> > Thiago H. de Paula Figueiredo
> > Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,
> and
> > instructor
> > Owner, software architect and developer, Ars Machina Tecnologia da
> > Informação Ltda.
> > http://www.arsmachina.com.br
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
> >
> >
>
>
>
> --
> Howard M. Lewis Ship
>
> Creator of Apache Tapestry
>
> The source for Tapestry training, mentoring and support. Contact me to
> learn how I can get you up and productive in Tapestry fast!
>
> (971) 678-5210
> http://howardlewisship.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
Re: AbstractSelectModel is not in a controlled package
Posted by kamiseq <ka...@gmail.com>.
probably I was too tired of that and read totally something different! ;]
anyway I said I didnt get that ;P
thanks anyway
pozdrawiam
Paweł Kamiński
kamiseq@gmail.com
pkaminski.prv@gmail.com
______________________
2010/1/26 Ulrich Stärk <ul...@spielviel.de>
> You know, three days ago, I told you exactly that:
>
>
> "Don't put your SelectCollectionModel inside the components, pages or base
> subpackages. Otherwise Tapestry will try to enhance it and fail because the
> superclass is not in a controlled package - as the exception message says."
>
> Uli
>
> On 25.01.2010 23:05 schrieb kamiseq:
>
> I moved the child class to mypackage.util package and it works now. then
>> mypackage.base is controlled by tapestry??
>>
>> pozdrawiam
>> Paweł Kamiński
>>
>> kamiseq@gmail.com
>> pkaminski.prv@gmail.com
>> ______________________
>>
>>
>> 2010/1/25 Piero Sartini<li...@pierosartini.de>
>>
>> Forget about what I said. Just needed to do the same thing, and the
>>> packaging is:
>>>
>>> InjectSelectionModel outside of any controlled package, for example:
>>> your.app.package.annotations
>>> GenericSelectionModel inside a controlled package, ie
>>> your.app.package.base
>>> InjectSelectionModelWorker inside your.app.package.services (I guess
>>> any other package may work as well).
>>>
>>> Piero
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>>> For additional commands, e-mail: users-help@tapestry.apache.org
>>>
>>>
>>>
>>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
Re: AbstractSelectModel is not in a controlled package
Posted by "Thiago H. de Paula Figueiredo" <th...@gmail.com>.
On Tue, 26 Jan 2010 06:13:17 -0200, Ulrich Stärk <ul...@spielviel.de> wrote:
> "Don't put your SelectCollectionModel inside the components, pages or
> base subpackages.
You forgot the mixins subpackage. :)
--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,
and instructor
Owner, software architect and developer, Ars Machina Tecnologia da
Informação Ltda.
http://www.arsmachina.com.br
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: AbstractSelectModel is not in a controlled package
Posted by Ulrich Stärk <ul...@spielviel.de>.
You know, three days ago, I told you exactly that:
"Don't put your SelectCollectionModel inside the components, pages or base subpackages. Otherwise
Tapestry will try to enhance it and fail because the superclass is not in a controlled package - as
the exception message says."
Uli
On 25.01.2010 23:05 schrieb kamiseq:
> I moved the child class to mypackage.util package and it works now. then
> mypackage.base is controlled by tapestry??
>
> pozdrawiam
> Paweł Kamiński
>
> kamiseq@gmail.com
> pkaminski.prv@gmail.com
> ______________________
>
>
> 2010/1/25 Piero Sartini<li...@pierosartini.de>
>
>> Forget about what I said. Just needed to do the same thing, and the
>> packaging is:
>>
>> InjectSelectionModel outside of any controlled package, for example:
>> your.app.package.annotations
>> GenericSelectionModel inside a controlled package, ie your.app.package.base
>> InjectSelectionModelWorker inside your.app.package.services (I guess
>> any other package may work as well).
>>
>> Piero
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: AbstractSelectModel is not in a controlled package
Posted by Howard Lewis Ship <hl...@gmail.com>.
It is for base classes that may be extended to form concrete pages,
components or mixins.
On Mon, Jan 25, 2010 at 4:06 PM, Thiago H. de Paula Figueiredo
<th...@gmail.com> wrote:
> On Mon, 25 Jan 2010 20:05:10 -0200, kamiseq <ka...@gmail.com> wrote:
>
>> I moved the child class to mypackage.util package and it works now. then
>> mypackage.base is controlled by tapestry??
>
> Yes.
>
> --
> Thiago H. de Paula Figueiredo
> Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and
> instructor
> Owner, software architect and developer, Ars Machina Tecnologia da
> Informação Ltda.
> http://www.arsmachina.com.br
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
--
Howard M. Lewis Ship
Creator of Apache Tapestry
The source for Tapestry training, mentoring and support. Contact me to
learn how I can get you up and productive in Tapestry fast!
(971) 678-5210
http://howardlewisship.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: AbstractSelectModel is not in a controlled package
Posted by "Thiago H. de Paula Figueiredo" <th...@gmail.com>.
On Mon, 25 Jan 2010 20:05:10 -0200, kamiseq <ka...@gmail.com> wrote:
> I moved the child class to mypackage.util package and it works now. then
> mypackage.base is controlled by tapestry??
Yes.
--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,
and instructor
Owner, software architect and developer, Ars Machina Tecnologia da
Informação Ltda.
http://www.arsmachina.com.br
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: AbstractSelectModel is not in a controlled package
Posted by kamiseq <ka...@gmail.com>.
I moved the child class to mypackage.util package and it works now. then
mypackage.base is controlled by tapestry??
pozdrawiam
Paweł Kamiński
kamiseq@gmail.com
pkaminski.prv@gmail.com
______________________
2010/1/25 Piero Sartini <li...@pierosartini.de>
> Forget about what I said. Just needed to do the same thing, and the
> packaging is:
>
> InjectSelectionModel outside of any controlled package, for example:
> your.app.package.annotations
> GenericSelectionModel inside a controlled package, ie your.app.package.base
> InjectSelectionModelWorker inside your.app.package.services (I guess
> any other package may work as well).
>
> Piero
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
Re: AbstractSelectModel is not in a controlled package
Posted by Piero Sartini <li...@pierosartini.de>.
Forget about what I said. Just needed to do the same thing, and the
packaging is:
InjectSelectionModel outside of any controlled package, for example:
your.app.package.annotations
GenericSelectionModel inside a controlled package, ie your.app.package.base
InjectSelectionModelWorker inside your.app.package.services (I guess
any other package may work as well).
Piero
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: AbstractSelectModel is not in a controlled package
Posted by Piero Sartini <li...@pierosartini.de>.
> but the article you sent me is exactly the same article I used before!!!
>
> I just dont get why tapestry complaints about its own class
> AbstractSelectModel...
Because you extended it. I assume your GenericSelectionModel sits in a
controlled package: base, components, or one of the others. This is
wrong!
Because now tapestry has a problem: the base class is not controlled,
but your child class is. This cant work.
Tapestry is wrong suggesting to put the parent class in a controlled
package, the right solution is to take your implementation out of a
controlled package.
Piero
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: AbstractSelectModel is not in a controlled package
Posted by kamiseq <ka...@gmail.com>.
but the article you sent me is exactly the same article I used before!!!
I just dont get why tapestry complaints about its own class
AbstractSelectModel...
pozdrawiam
Paweł Kamiński
kamiseq@gmail.com
pkaminski.prv@gmail.com
______________________
2010/1/25 kamiseq <ka...@gmail.com>
> no I shouldn't have. anyway I will check that at home, thanks
>
>
> pozdrawiam
> Paweł Kamiński
>
> kamiseq@gmail.com
> pkaminski.prv@gmail.com
> ______________________
>
>
> 2010/1/25 Geoff Callender <ge...@gmail.com>
>
>> No, it's running. Perhaps you have a corporate firewall blocking 8080?
>>
>> On 25/01/2010, at 8:03 PM, kamiseq wrote:
>>
>> > jumpstart seems to be dead for now :( I will look at that later
>> >
>> > pozdrawiam
>> > Paweł Kamiński
>> >
>> > kamiseq@gmail.com
>> > pkaminski.prv@gmail.com
>> > ______________________
>> >
>> >
>> > 2010/1/25 Geoff Callender <ge...@gmail.com>
>> >
>> >> You might get some inspiration from these working examples:
>> >>
>> >>
>> >>
>> http://jumpstart.doublenegative.com.au:8080/jumpstart/examples/select/easyobject
>> >>
>> >>
>> http://jumpstart.doublenegative.com.au:8080/jumpstart/examples/tables/gridwithdeletecolumn1
>> >>
>> >> HTH,
>> >>
>> >> Geoff
>> >>
>> >> On 24/01/2010, at 5:59 AM, kamiseq wrote:
>> >>
>> >>> ok, then how should I use it, or maybe tutorial is all wrong and is
>> just
>> >>> misleading.
>> >>>
>> >>> I have a simple class
>> >>> class MyDict
>> >>> private int idInDb;
>> >>> private string descr;
>> >>>
>> >>> All I want to do is to convert list of such a class into html select's
>> >>> options list!
>> >>> and all I found on the net was the tutorial I tired to used and few
>> >> related
>> >>> articles.
>> >>>
>> >>> how would you advise to do this. where to look, what to read!
>> >>>
>> >>> ps. and something extra ;] how should I marshal single class (like
>> above)
>> >>> into html element?
>> >>> how can use this with beandisplay or grid component
>> >>>
>> >>> thanks for help
>> >>>
>> >>> pozdrawiam
>> >>> Paweł Kamiński
>> >>>
>> >>> kamiseq@gmail.com
>> >>> pkaminski.prv@gmail.com
>> >>> ______________________
>> >>>
>> >>>
>> >>> On 23 January 2010 16:05, Ulrich Stärk <ul...@spielviel.de> wrote:
>> >>>
>> >>>> Don't put your SelectCollectionModel inside the components, pages or
>> >> base
>> >>>> subpackages. Otherwise Tapestry will try to enhance it and fail
>> because
>> >> the
>> >>>> superclass is not in a controlled package - as the exception message
>> >> says.
>> >>>>
>> >>>> Uli
>> >>>>
>> >>>> kamiseq schrieb:
>> >>>>
>> >>>> I dont get it!
>> >>>>> AbstractSelectModel class comes from org.apache.tapestry5.util
>> package
>> >> so
>> >>>>> why should I care about that class!
>> >>>>>
>> >>>>> should I replace that class with my own????
>> >>>>> I just comy paste solution from that tutorial (
>> >>>>> http://wiki.apache.org/tapestry/Tapestry5HowtoSelectWithObjects)
>> >> [except
>> >>>>> addOptionGroup function as I dont see where it could be used]
>> >>>>> so it should work!
>> >>>>>
>> >>>>> pozdrawiam
>> >>>>> Paweł Kamiński
>> >>>>>
>> >>>>> kamiseq@gmail.com
>> >>>>> pkaminski.prv@gmail.com
>> >>>>> ______________________
>> >>>>>
>> >>>>>
>> >>>>> On 22 January 2010 16:11, Joost Schouten (ml) <
>> joost_ml@jsportal.com>
>> >>>>> wrote:
>> >>>>>
>> >>>>> Did you replace the mypackage with your actual package name?
>> >>>>>>
>> >>>>>> Lets say your AppModule lives in
>> >>>>>>
>> >>>>>> com.domain.services
>> >>>>>>
>> >>>>>> your AbstractSelectModel should be places in
>> >>>>>>
>> >>>>>> com.domain.base
>> >>>>>>
>> >>>>>> Hope it helps,
>> >>>>>> Joost
>> >>>>>>
>> >>>>>>
>> >>>>>> kamiseq wrote:
>> >>>>>>
>> >>>>>> hi all,
>> >>>>>>> I run into a strange problem, I was googling for this, but still
>> have
>> >> no
>> >>>>>>> idea what is going on :(
>> >>>>>>>
>> >>>>>>> i followed the
>> >>>>>>> http://wiki.apache.org/tapestry/Tapestry5HowtoSelectWithObjectsand
>> >>>>>>> after
>> >>>>>>> running the page I got error message
>> >>>>>>>
>> >>>>>>> java.lang.RuntimeException: Base class
>> >>>>>>> org.apache.tapestry5.util.AbstractSelectModel (super class of
>> >>>>>>> pl mypackage.components.utils.SelectCollectionModel) is not in a
>> >>>>>>> controlled
>> >>>>>>> package and is therefore not valid. You should try moving the
>> class
>> >> to
>> >>>>>>> package mypackage.base.
>> >>>>>>>
>> >>>>>>> just to try I refactored my code and put my class
>> >>>>>>> into mypackage.base.SelectCollectionModel like I was asked - no
>> >> change.
>> >>>>>>> the
>> >>>>>>> problem persisted.
>> >>>>>>>
>> >>>>>>> please help
>> >>>>>>>
>> >>>>>>> pozdrawiam
>> >>>>>>> Paweł Kamiński
>> >>>>>>>
>> >>>>>>> kamiseq@gmail.com
>> >>>>>>> pkaminski.prv@gmail.com
>> >>>>>>> ______________________
>> >>>>>>>
>> >>>>>>>
>> >>>>>>>
>> >>>>>>>
>> >>>>>>
>> ---------------------------------------------------------------------
>> >>>>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> >>>>>> For additional commands, e-mail: users-help@tapestry.apache.org
>> >>>>>>
>> >>>>>>
>> >>>>>>
>> >>>>>
>> >>>>
>> >>>> ---------------------------------------------------------------------
>> >>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> >>>> For additional commands, e-mail: users-help@tapestry.apache.org
>> >>>>
>> >>>>
>> >>
>> >>
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> >> For additional commands, e-mail: users-help@tapestry.apache.org
>> >>
>> >>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>>
>
Re: AbstractSelectModel is not in a controlled package
Posted by kamiseq <ka...@gmail.com>.
no I shouldn't have. anyway I will check that at home, thanks
pozdrawiam
Paweł Kamiński
kamiseq@gmail.com
pkaminski.prv@gmail.com
______________________
2010/1/25 Geoff Callender <ge...@gmail.com>
> No, it's running. Perhaps you have a corporate firewall blocking 8080?
>
> On 25/01/2010, at 8:03 PM, kamiseq wrote:
>
> > jumpstart seems to be dead for now :( I will look at that later
> >
> > pozdrawiam
> > Paweł Kamiński
> >
> > kamiseq@gmail.com
> > pkaminski.prv@gmail.com
> > ______________________
> >
> >
> > 2010/1/25 Geoff Callender <ge...@gmail.com>
> >
> >> You might get some inspiration from these working examples:
> >>
> >>
> >>
> http://jumpstart.doublenegative.com.au:8080/jumpstart/examples/select/easyobject
> >>
> >>
> http://jumpstart.doublenegative.com.au:8080/jumpstart/examples/tables/gridwithdeletecolumn1
> >>
> >> HTH,
> >>
> >> Geoff
> >>
> >> On 24/01/2010, at 5:59 AM, kamiseq wrote:
> >>
> >>> ok, then how should I use it, or maybe tutorial is all wrong and is
> just
> >>> misleading.
> >>>
> >>> I have a simple class
> >>> class MyDict
> >>> private int idInDb;
> >>> private string descr;
> >>>
> >>> All I want to do is to convert list of such a class into html select's
> >>> options list!
> >>> and all I found on the net was the tutorial I tired to used and few
> >> related
> >>> articles.
> >>>
> >>> how would you advise to do this. where to look, what to read!
> >>>
> >>> ps. and something extra ;] how should I marshal single class (like
> above)
> >>> into html element?
> >>> how can use this with beandisplay or grid component
> >>>
> >>> thanks for help
> >>>
> >>> pozdrawiam
> >>> Paweł Kamiński
> >>>
> >>> kamiseq@gmail.com
> >>> pkaminski.prv@gmail.com
> >>> ______________________
> >>>
> >>>
> >>> On 23 January 2010 16:05, Ulrich Stärk <ul...@spielviel.de> wrote:
> >>>
> >>>> Don't put your SelectCollectionModel inside the components, pages or
> >> base
> >>>> subpackages. Otherwise Tapestry will try to enhance it and fail
> because
> >> the
> >>>> superclass is not in a controlled package - as the exception message
> >> says.
> >>>>
> >>>> Uli
> >>>>
> >>>> kamiseq schrieb:
> >>>>
> >>>> I dont get it!
> >>>>> AbstractSelectModel class comes from org.apache.tapestry5.util
> package
> >> so
> >>>>> why should I care about that class!
> >>>>>
> >>>>> should I replace that class with my own????
> >>>>> I just comy paste solution from that tutorial (
> >>>>> http://wiki.apache.org/tapestry/Tapestry5HowtoSelectWithObjects)
> >> [except
> >>>>> addOptionGroup function as I dont see where it could be used]
> >>>>> so it should work!
> >>>>>
> >>>>> pozdrawiam
> >>>>> Paweł Kamiński
> >>>>>
> >>>>> kamiseq@gmail.com
> >>>>> pkaminski.prv@gmail.com
> >>>>> ______________________
> >>>>>
> >>>>>
> >>>>> On 22 January 2010 16:11, Joost Schouten (ml) <joost_ml@jsportal.com
> >
> >>>>> wrote:
> >>>>>
> >>>>> Did you replace the mypackage with your actual package name?
> >>>>>>
> >>>>>> Lets say your AppModule lives in
> >>>>>>
> >>>>>> com.domain.services
> >>>>>>
> >>>>>> your AbstractSelectModel should be places in
> >>>>>>
> >>>>>> com.domain.base
> >>>>>>
> >>>>>> Hope it helps,
> >>>>>> Joost
> >>>>>>
> >>>>>>
> >>>>>> kamiseq wrote:
> >>>>>>
> >>>>>> hi all,
> >>>>>>> I run into a strange problem, I was googling for this, but still
> have
> >> no
> >>>>>>> idea what is going on :(
> >>>>>>>
> >>>>>>> i followed the
> >>>>>>> http://wiki.apache.org/tapestry/Tapestry5HowtoSelectWithObjectsand
> >>>>>>> after
> >>>>>>> running the page I got error message
> >>>>>>>
> >>>>>>> java.lang.RuntimeException: Base class
> >>>>>>> org.apache.tapestry5.util.AbstractSelectModel (super class of
> >>>>>>> pl mypackage.components.utils.SelectCollectionModel) is not in a
> >>>>>>> controlled
> >>>>>>> package and is therefore not valid. You should try moving the class
> >> to
> >>>>>>> package mypackage.base.
> >>>>>>>
> >>>>>>> just to try I refactored my code and put my class
> >>>>>>> into mypackage.base.SelectCollectionModel like I was asked - no
> >> change.
> >>>>>>> the
> >>>>>>> problem persisted.
> >>>>>>>
> >>>>>>> please help
> >>>>>>>
> >>>>>>> pozdrawiam
> >>>>>>> Paweł Kamiński
> >>>>>>>
> >>>>>>> kamiseq@gmail.com
> >>>>>>> pkaminski.prv@gmail.com
> >>>>>>> ______________________
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>
> ---------------------------------------------------------------------
> >>>>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> >>>>>> For additional commands, e-mail: users-help@tapestry.apache.org
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>
> >>>>
> >>>> ---------------------------------------------------------------------
> >>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> >>>> For additional commands, e-mail: users-help@tapestry.apache.org
> >>>>
> >>>>
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> >> For additional commands, e-mail: users-help@tapestry.apache.org
> >>
> >>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
Re: AbstractSelectModel is not in a controlled package
Posted by Geoff Callender <ge...@gmail.com>.
No, it's running. Perhaps you have a corporate firewall blocking 8080?
On 25/01/2010, at 8:03 PM, kamiseq wrote:
> jumpstart seems to be dead for now :( I will look at that later
>
> pozdrawiam
> Paweł Kamiński
>
> kamiseq@gmail.com
> pkaminski.prv@gmail.com
> ______________________
>
>
> 2010/1/25 Geoff Callender <ge...@gmail.com>
>
>> You might get some inspiration from these working examples:
>>
>>
>> http://jumpstart.doublenegative.com.au:8080/jumpstart/examples/select/easyobject
>>
>> http://jumpstart.doublenegative.com.au:8080/jumpstart/examples/tables/gridwithdeletecolumn1
>>
>> HTH,
>>
>> Geoff
>>
>> On 24/01/2010, at 5:59 AM, kamiseq wrote:
>>
>>> ok, then how should I use it, or maybe tutorial is all wrong and is just
>>> misleading.
>>>
>>> I have a simple class
>>> class MyDict
>>> private int idInDb;
>>> private string descr;
>>>
>>> All I want to do is to convert list of such a class into html select's
>>> options list!
>>> and all I found on the net was the tutorial I tired to used and few
>> related
>>> articles.
>>>
>>> how would you advise to do this. where to look, what to read!
>>>
>>> ps. and something extra ;] how should I marshal single class (like above)
>>> into html element?
>>> how can use this with beandisplay or grid component
>>>
>>> thanks for help
>>>
>>> pozdrawiam
>>> Paweł Kamiński
>>>
>>> kamiseq@gmail.com
>>> pkaminski.prv@gmail.com
>>> ______________________
>>>
>>>
>>> On 23 January 2010 16:05, Ulrich Stärk <ul...@spielviel.de> wrote:
>>>
>>>> Don't put your SelectCollectionModel inside the components, pages or
>> base
>>>> subpackages. Otherwise Tapestry will try to enhance it and fail because
>> the
>>>> superclass is not in a controlled package - as the exception message
>> says.
>>>>
>>>> Uli
>>>>
>>>> kamiseq schrieb:
>>>>
>>>> I dont get it!
>>>>> AbstractSelectModel class comes from org.apache.tapestry5.util package
>> so
>>>>> why should I care about that class!
>>>>>
>>>>> should I replace that class with my own????
>>>>> I just comy paste solution from that tutorial (
>>>>> http://wiki.apache.org/tapestry/Tapestry5HowtoSelectWithObjects)
>> [except
>>>>> addOptionGroup function as I dont see where it could be used]
>>>>> so it should work!
>>>>>
>>>>> pozdrawiam
>>>>> Paweł Kamiński
>>>>>
>>>>> kamiseq@gmail.com
>>>>> pkaminski.prv@gmail.com
>>>>> ______________________
>>>>>
>>>>>
>>>>> On 22 January 2010 16:11, Joost Schouten (ml) <jo...@jsportal.com>
>>>>> wrote:
>>>>>
>>>>> Did you replace the mypackage with your actual package name?
>>>>>>
>>>>>> Lets say your AppModule lives in
>>>>>>
>>>>>> com.domain.services
>>>>>>
>>>>>> your AbstractSelectModel should be places in
>>>>>>
>>>>>> com.domain.base
>>>>>>
>>>>>> Hope it helps,
>>>>>> Joost
>>>>>>
>>>>>>
>>>>>> kamiseq wrote:
>>>>>>
>>>>>> hi all,
>>>>>>> I run into a strange problem, I was googling for this, but still have
>> no
>>>>>>> idea what is going on :(
>>>>>>>
>>>>>>> i followed the
>>>>>>> http://wiki.apache.org/tapestry/Tapestry5HowtoSelectWithObjects and
>>>>>>> after
>>>>>>> running the page I got error message
>>>>>>>
>>>>>>> java.lang.RuntimeException: Base class
>>>>>>> org.apache.tapestry5.util.AbstractSelectModel (super class of
>>>>>>> pl mypackage.components.utils.SelectCollectionModel) is not in a
>>>>>>> controlled
>>>>>>> package and is therefore not valid. You should try moving the class
>> to
>>>>>>> package mypackage.base.
>>>>>>>
>>>>>>> just to try I refactored my code and put my class
>>>>>>> into mypackage.base.SelectCollectionModel like I was asked - no
>> change.
>>>>>>> the
>>>>>>> problem persisted.
>>>>>>>
>>>>>>> please help
>>>>>>>
>>>>>>> pozdrawiam
>>>>>>> Paweł Kamiński
>>>>>>>
>>>>>>> kamiseq@gmail.com
>>>>>>> pkaminski.prv@gmail.com
>>>>>>> ______________________
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>> ---------------------------------------------------------------------
>>>>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>>>>>> For additional commands, e-mail: users-help@tapestry.apache.org
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>>>> For additional commands, e-mail: users-help@tapestry.apache.org
>>>>
>>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: AbstractSelectModel is not in a controlled package
Posted by kamiseq <ka...@gmail.com>.
jumpstart seems to be dead for now :( I will look at that later
pozdrawiam
Paweł Kamiński
kamiseq@gmail.com
pkaminski.prv@gmail.com
______________________
2010/1/25 Geoff Callender <ge...@gmail.com>
> You might get some inspiration from these working examples:
>
>
> http://jumpstart.doublenegative.com.au:8080/jumpstart/examples/select/easyobject
>
> http://jumpstart.doublenegative.com.au:8080/jumpstart/examples/tables/gridwithdeletecolumn1
>
> HTH,
>
> Geoff
>
> On 24/01/2010, at 5:59 AM, kamiseq wrote:
>
> > ok, then how should I use it, or maybe tutorial is all wrong and is just
> > misleading.
> >
> > I have a simple class
> > class MyDict
> > private int idInDb;
> > private string descr;
> >
> > All I want to do is to convert list of such a class into html select's
> > options list!
> > and all I found on the net was the tutorial I tired to used and few
> related
> > articles.
> >
> > how would you advise to do this. where to look, what to read!
> >
> > ps. and something extra ;] how should I marshal single class (like above)
> > into html element?
> > how can use this with beandisplay or grid component
> >
> > thanks for help
> >
> > pozdrawiam
> > Paweł Kamiński
> >
> > kamiseq@gmail.com
> > pkaminski.prv@gmail.com
> > ______________________
> >
> >
> > On 23 January 2010 16:05, Ulrich Stärk <ul...@spielviel.de> wrote:
> >
> >> Don't put your SelectCollectionModel inside the components, pages or
> base
> >> subpackages. Otherwise Tapestry will try to enhance it and fail because
> the
> >> superclass is not in a controlled package - as the exception message
> says.
> >>
> >> Uli
> >>
> >> kamiseq schrieb:
> >>
> >> I dont get it!
> >>> AbstractSelectModel class comes from org.apache.tapestry5.util package
> so
> >>> why should I care about that class!
> >>>
> >>> should I replace that class with my own????
> >>> I just comy paste solution from that tutorial (
> >>> http://wiki.apache.org/tapestry/Tapestry5HowtoSelectWithObjects)
> [except
> >>> addOptionGroup function as I dont see where it could be used]
> >>> so it should work!
> >>>
> >>> pozdrawiam
> >>> Paweł Kamiński
> >>>
> >>> kamiseq@gmail.com
> >>> pkaminski.prv@gmail.com
> >>> ______________________
> >>>
> >>>
> >>> On 22 January 2010 16:11, Joost Schouten (ml) <jo...@jsportal.com>
> >>> wrote:
> >>>
> >>> Did you replace the mypackage with your actual package name?
> >>>>
> >>>> Lets say your AppModule lives in
> >>>>
> >>>> com.domain.services
> >>>>
> >>>> your AbstractSelectModel should be places in
> >>>>
> >>>> com.domain.base
> >>>>
> >>>> Hope it helps,
> >>>> Joost
> >>>>
> >>>>
> >>>> kamiseq wrote:
> >>>>
> >>>> hi all,
> >>>>> I run into a strange problem, I was googling for this, but still have
> no
> >>>>> idea what is going on :(
> >>>>>
> >>>>> i followed the
> >>>>> http://wiki.apache.org/tapestry/Tapestry5HowtoSelectWithObjects and
> >>>>> after
> >>>>> running the page I got error message
> >>>>>
> >>>>> java.lang.RuntimeException: Base class
> >>>>> org.apache.tapestry5.util.AbstractSelectModel (super class of
> >>>>> pl mypackage.components.utils.SelectCollectionModel) is not in a
> >>>>> controlled
> >>>>> package and is therefore not valid. You should try moving the class
> to
> >>>>> package mypackage.base.
> >>>>>
> >>>>> just to try I refactored my code and put my class
> >>>>> into mypackage.base.SelectCollectionModel like I was asked - no
> change.
> >>>>> the
> >>>>> problem persisted.
> >>>>>
> >>>>> please help
> >>>>>
> >>>>> pozdrawiam
> >>>>> Paweł Kamiński
> >>>>>
> >>>>> kamiseq@gmail.com
> >>>>> pkaminski.prv@gmail.com
> >>>>> ______________________
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>> ---------------------------------------------------------------------
> >>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> >>>> For additional commands, e-mail: users-help@tapestry.apache.org
> >>>>
> >>>>
> >>>>
> >>>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> >> For additional commands, e-mail: users-help@tapestry.apache.org
> >>
> >>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
Re: AbstractSelectModel is not in a controlled package
Posted by Geoff Callender <ge...@gmail.com>.
You might get some inspiration from these working examples:
http://jumpstart.doublenegative.com.au:8080/jumpstart/examples/select/easyobject
http://jumpstart.doublenegative.com.au:8080/jumpstart/examples/tables/gridwithdeletecolumn1
HTH,
Geoff
On 24/01/2010, at 5:59 AM, kamiseq wrote:
> ok, then how should I use it, or maybe tutorial is all wrong and is just
> misleading.
>
> I have a simple class
> class MyDict
> private int idInDb;
> private string descr;
>
> All I want to do is to convert list of such a class into html select's
> options list!
> and all I found on the net was the tutorial I tired to used and few related
> articles.
>
> how would you advise to do this. where to look, what to read!
>
> ps. and something extra ;] how should I marshal single class (like above)
> into html element?
> how can use this with beandisplay or grid component
>
> thanks for help
>
> pozdrawiam
> Paweł Kamiński
>
> kamiseq@gmail.com
> pkaminski.prv@gmail.com
> ______________________
>
>
> On 23 January 2010 16:05, Ulrich Stärk <ul...@spielviel.de> wrote:
>
>> Don't put your SelectCollectionModel inside the components, pages or base
>> subpackages. Otherwise Tapestry will try to enhance it and fail because the
>> superclass is not in a controlled package - as the exception message says.
>>
>> Uli
>>
>> kamiseq schrieb:
>>
>> I dont get it!
>>> AbstractSelectModel class comes from org.apache.tapestry5.util package so
>>> why should I care about that class!
>>>
>>> should I replace that class with my own????
>>> I just comy paste solution from that tutorial (
>>> http://wiki.apache.org/tapestry/Tapestry5HowtoSelectWithObjects) [except
>>> addOptionGroup function as I dont see where it could be used]
>>> so it should work!
>>>
>>> pozdrawiam
>>> Paweł Kamiński
>>>
>>> kamiseq@gmail.com
>>> pkaminski.prv@gmail.com
>>> ______________________
>>>
>>>
>>> On 22 January 2010 16:11, Joost Schouten (ml) <jo...@jsportal.com>
>>> wrote:
>>>
>>> Did you replace the mypackage with your actual package name?
>>>>
>>>> Lets say your AppModule lives in
>>>>
>>>> com.domain.services
>>>>
>>>> your AbstractSelectModel should be places in
>>>>
>>>> com.domain.base
>>>>
>>>> Hope it helps,
>>>> Joost
>>>>
>>>>
>>>> kamiseq wrote:
>>>>
>>>> hi all,
>>>>> I run into a strange problem, I was googling for this, but still have no
>>>>> idea what is going on :(
>>>>>
>>>>> i followed the
>>>>> http://wiki.apache.org/tapestry/Tapestry5HowtoSelectWithObjects and
>>>>> after
>>>>> running the page I got error message
>>>>>
>>>>> java.lang.RuntimeException: Base class
>>>>> org.apache.tapestry5.util.AbstractSelectModel (super class of
>>>>> pl mypackage.components.utils.SelectCollectionModel) is not in a
>>>>> controlled
>>>>> package and is therefore not valid. You should try moving the class to
>>>>> package mypackage.base.
>>>>>
>>>>> just to try I refactored my code and put my class
>>>>> into mypackage.base.SelectCollectionModel like I was asked - no change.
>>>>> the
>>>>> problem persisted.
>>>>>
>>>>> please help
>>>>>
>>>>> pozdrawiam
>>>>> Paweł Kamiński
>>>>>
>>>>> kamiseq@gmail.com
>>>>> pkaminski.prv@gmail.com
>>>>> ______________________
>>>>>
>>>>>
>>>>>
>>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>>>> For additional commands, e-mail: users-help@tapestry.apache.org
>>>>
>>>>
>>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: AbstractSelectModel is not in a controlled package
Posted by kamiseq <ka...@gmail.com>.
ok, then how should I use it, or maybe tutorial is all wrong and is just
misleading.
I have a simple class
class MyDict
private int idInDb;
private string descr;
All I want to do is to convert list of such a class into html select's
options list!
and all I found on the net was the tutorial I tired to used and few related
articles.
how would you advise to do this. where to look, what to read!
ps. and something extra ;] how should I marshal single class (like above)
into html element?
how can use this with beandisplay or grid component
thanks for help
pozdrawiam
Paweł Kamiński
kamiseq@gmail.com
pkaminski.prv@gmail.com
______________________
On 23 January 2010 16:05, Ulrich Stärk <ul...@spielviel.de> wrote:
> Don't put your SelectCollectionModel inside the components, pages or base
> subpackages. Otherwise Tapestry will try to enhance it and fail because the
> superclass is not in a controlled package - as the exception message says.
>
> Uli
>
> kamiseq schrieb:
>
> I dont get it!
>> AbstractSelectModel class comes from org.apache.tapestry5.util package so
>> why should I care about that class!
>>
>> should I replace that class with my own????
>> I just comy paste solution from that tutorial (
>> http://wiki.apache.org/tapestry/Tapestry5HowtoSelectWithObjects) [except
>> addOptionGroup function as I dont see where it could be used]
>> so it should work!
>>
>> pozdrawiam
>> Paweł Kamiński
>>
>> kamiseq@gmail.com
>> pkaminski.prv@gmail.com
>> ______________________
>>
>>
>> On 22 January 2010 16:11, Joost Schouten (ml) <jo...@jsportal.com>
>> wrote:
>>
>> Did you replace the mypackage with your actual package name?
>>>
>>> Lets say your AppModule lives in
>>>
>>> com.domain.services
>>>
>>> your AbstractSelectModel should be places in
>>>
>>> com.domain.base
>>>
>>> Hope it helps,
>>> Joost
>>>
>>>
>>> kamiseq wrote:
>>>
>>> hi all,
>>>> I run into a strange problem, I was googling for this, but still have no
>>>> idea what is going on :(
>>>>
>>>> i followed the
>>>> http://wiki.apache.org/tapestry/Tapestry5HowtoSelectWithObjects and
>>>> after
>>>> running the page I got error message
>>>>
>>>> java.lang.RuntimeException: Base class
>>>> org.apache.tapestry5.util.AbstractSelectModel (super class of
>>>> pl mypackage.components.utils.SelectCollectionModel) is not in a
>>>> controlled
>>>> package and is therefore not valid. You should try moving the class to
>>>> package mypackage.base.
>>>>
>>>> just to try I refactored my code and put my class
>>>> into mypackage.base.SelectCollectionModel like I was asked - no change.
>>>> the
>>>> problem persisted.
>>>>
>>>> please help
>>>>
>>>> pozdrawiam
>>>> Paweł Kamiński
>>>>
>>>> kamiseq@gmail.com
>>>> pkaminski.prv@gmail.com
>>>> ______________________
>>>>
>>>>
>>>>
>>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>>> For additional commands, e-mail: users-help@tapestry.apache.org
>>>
>>>
>>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
Re: AbstractSelectModel is not in a controlled package
Posted by Ulrich Stärk <ul...@spielviel.de>.
Don't put your SelectCollectionModel inside the components, pages or
base subpackages. Otherwise Tapestry will try to enhance it and fail
because the superclass is not in a controlled package - as the exception
message says.
Uli
kamiseq schrieb:
> I dont get it!
> AbstractSelectModel class comes from org.apache.tapestry5.util package so
> why should I care about that class!
>
> should I replace that class with my own????
> I just comy paste solution from that tutorial (
> http://wiki.apache.org/tapestry/Tapestry5HowtoSelectWithObjects) [except
> addOptionGroup function as I dont see where it could be used]
> so it should work!
>
> pozdrawiam
> Paweł Kamiński
>
> kamiseq@gmail.com
> pkaminski.prv@gmail.com
> ______________________
>
>
> On 22 January 2010 16:11, Joost Schouten (ml) <jo...@jsportal.com> wrote:
>
>> Did you replace the mypackage with your actual package name?
>>
>> Lets say your AppModule lives in
>>
>> com.domain.services
>>
>> your AbstractSelectModel should be places in
>>
>> com.domain.base
>>
>> Hope it helps,
>> Joost
>>
>>
>> kamiseq wrote:
>>
>>> hi all,
>>> I run into a strange problem, I was googling for this, but still have no
>>> idea what is going on :(
>>>
>>> i followed the
>>> http://wiki.apache.org/tapestry/Tapestry5HowtoSelectWithObjects and after
>>> running the page I got error message
>>>
>>> java.lang.RuntimeException: Base class
>>> org.apache.tapestry5.util.AbstractSelectModel (super class of
>>> pl mypackage.components.utils.SelectCollectionModel) is not in a
>>> controlled
>>> package and is therefore not valid. You should try moving the class to
>>> package mypackage.base.
>>>
>>> just to try I refactored my code and put my class
>>> into mypackage.base.SelectCollectionModel like I was asked - no change.
>>> the
>>> problem persisted.
>>>
>>> please help
>>>
>>> pozdrawiam
>>> Paweł Kamiński
>>>
>>> kamiseq@gmail.com
>>> pkaminski.prv@gmail.com
>>> ______________________
>>>
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: AbstractSelectModel is not in a controlled package
Posted by kamiseq <ka...@gmail.com>.
I dont get it!
AbstractSelectModel class comes from org.apache.tapestry5.util package so
why should I care about that class!
should I replace that class with my own????
I just comy paste solution from that tutorial (
http://wiki.apache.org/tapestry/Tapestry5HowtoSelectWithObjects) [except
addOptionGroup function as I dont see where it could be used]
so it should work!
pozdrawiam
Paweł Kamiński
kamiseq@gmail.com
pkaminski.prv@gmail.com
______________________
On 22 January 2010 16:11, Joost Schouten (ml) <jo...@jsportal.com> wrote:
> Did you replace the mypackage with your actual package name?
>
> Lets say your AppModule lives in
>
> com.domain.services
>
> your AbstractSelectModel should be places in
>
> com.domain.base
>
> Hope it helps,
> Joost
>
>
> kamiseq wrote:
>
>> hi all,
>> I run into a strange problem, I was googling for this, but still have no
>> idea what is going on :(
>>
>> i followed the
>> http://wiki.apache.org/tapestry/Tapestry5HowtoSelectWithObjects and after
>> running the page I got error message
>>
>> java.lang.RuntimeException: Base class
>> org.apache.tapestry5.util.AbstractSelectModel (super class of
>> pl mypackage.components.utils.SelectCollectionModel) is not in a
>> controlled
>> package and is therefore not valid. You should try moving the class to
>> package mypackage.base.
>>
>> just to try I refactored my code and put my class
>> into mypackage.base.SelectCollectionModel like I was asked - no change.
>> the
>> problem persisted.
>>
>> please help
>>
>> pozdrawiam
>> Paweł Kamiński
>>
>> kamiseq@gmail.com
>> pkaminski.prv@gmail.com
>> ______________________
>>
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
Re: AbstractSelectModel is not in a controlled package
Posted by "Joost Schouten (ml)" <jo...@jsportal.com>.
Did you replace the mypackage with your actual package name?
Lets say your AppModule lives in
com.domain.services
your AbstractSelectModel should be places in
com.domain.base
Hope it helps,
Joost
kamiseq wrote:
> hi all,
> I run into a strange problem, I was googling for this, but still have no
> idea what is going on :(
>
> i followed the
> http://wiki.apache.org/tapestry/Tapestry5HowtoSelectWithObjects and after
> running the page I got error message
>
> java.lang.RuntimeException: Base class
> org.apache.tapestry5.util.AbstractSelectModel (super class of
> pl mypackage.components.utils.SelectCollectionModel) is not in a controlled
> package and is therefore not valid. You should try moving the class to
> package mypackage.base.
>
> just to try I refactored my code and put my class
> into mypackage.base.SelectCollectionModel like I was asked - no change. the
> problem persisted.
>
> please help
>
> pozdrawiam
> Paweł Kamiński
>
> kamiseq@gmail.com
> pkaminski.prv@gmail.com
> ______________________
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org