Re: AbstractSelectModel is not in a controlled package

2010-01-26 Thread Ulrich Stärk

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

kami...@gmail.com
pkaminski@gmail.com
__


2010/1/25 Piero Sartinili...@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-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



Re: AbstractSelectModel is not in a controlled package

2010-01-26 Thread kamiseq
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

kami...@gmail.com
pkaminski@gmail.com
__


2010/1/26 Ulrich Stärk u...@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

 kami...@gmail.com
 pkaminski@gmail.com
 __


 2010/1/25 Piero Sartinili...@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-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




Re: AbstractSelectModel is not in a controlled package

2010-01-26 Thread Thiago H. de Paula Figueiredo

On Tue, 26 Jan 2010 06:13:17 -0200, Ulrich Stärk u...@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-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: AbstractSelectModel is not in a controlled package

2010-01-25 Thread Geoff Callender
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
 
 kami...@gmail.com
 pkaminski@gmail.com
 __
 
 
 On 23 January 2010 16:05, Ulrich Stärk u...@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
 
 kami...@gmail.com
 pkaminski@gmail.com
 __
 
 
 On 22 January 2010 16:11, Joost Schouten (ml) joost...@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
 
 kami...@gmail.com
 pkaminski@gmail.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
 
 


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



Re: AbstractSelectModel is not in a controlled package

2010-01-25 Thread kamiseq
jumpstart seems to be dead for now :( I will look at that later

pozdrawiam
Paweł Kamiński

kami...@gmail.com
pkaminski@gmail.com
__


2010/1/25 Geoff Callender geoff.callender.jumpst...@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
 
  kami...@gmail.com
  pkaminski@gmail.com
  __
 
 
  On 23 January 2010 16:05, Ulrich Stärk u...@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
 
  kami...@gmail.com
  pkaminski@gmail.com
  __
 
 
  On 22 January 2010 16:11, Joost Schouten (ml) joost...@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
 
  kami...@gmail.com
  pkaminski@gmail.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
 
 


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




Re: AbstractSelectModel is not in a controlled package

2010-01-25 Thread Geoff Callender
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
 
 kami...@gmail.com
 pkaminski@gmail.com
 __
 
 
 2010/1/25 Geoff Callender geoff.callender.jumpst...@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
 
 kami...@gmail.com
 pkaminski@gmail.com
 __
 
 
 On 23 January 2010 16:05, Ulrich Stärk u...@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
 
 kami...@gmail.com
 pkaminski@gmail.com
 __
 
 
 On 22 January 2010 16:11, Joost Schouten (ml) joost...@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
 
 kami...@gmail.com
 pkaminski@gmail.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
 
 
 
 
 -
 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



Re: AbstractSelectModel is not in a controlled package

2010-01-25 Thread kamiseq
no I shouldn't have. anyway I will check that at home, thanks

pozdrawiam
Paweł Kamiński

kami...@gmail.com
pkaminski@gmail.com
__


2010/1/25 Geoff Callender geoff.callender.jumpst...@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
 
  kami...@gmail.com
  pkaminski@gmail.com
  __
 
 
  2010/1/25 Geoff Callender geoff.callender.jumpst...@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
 
  kami...@gmail.com
  pkaminski@gmail.com
  __
 
 
  On 23 January 2010 16:05, Ulrich Stärk u...@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
 
  kami...@gmail.com
  pkaminski@gmail.com
  __
 
 
  On 22 January 2010 16:11, Joost Schouten (ml) joost...@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
 
  kami...@gmail.com
  pkaminski@gmail.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
 
 
 
 
  -
  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




Re: AbstractSelectModel is not in a controlled package

2010-01-25 Thread kamiseq
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

kami...@gmail.com
pkaminski@gmail.com
__


2010/1/25 kamiseq kami...@gmail.com

 no I shouldn't have. anyway I will check that at home, thanks


 pozdrawiam
 Paweł Kamiński

 kami...@gmail.com
 pkaminski@gmail.com
 __


 2010/1/25 Geoff Callender geoff.callender.jumpst...@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
 
  kami...@gmail.com
  pkaminski@gmail.com
  __
 
 
  2010/1/25 Geoff Callender geoff.callender.jumpst...@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
 
  kami...@gmail.com
  pkaminski@gmail.com
  __
 
 
  On 23 January 2010 16:05, Ulrich Stärk u...@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
 
  kami...@gmail.com
  pkaminski@gmail.com
  __
 
 
  On 22 January 2010 16:11, Joost Schouten (ml) 
 joost...@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
 
  kami...@gmail.com
  pkaminski@gmail.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
 
 
 
 
  -
  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





Re: AbstractSelectModel is not in a controlled package

2010-01-25 Thread Piero Sartini
 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-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: AbstractSelectModel is not in a controlled package

2010-01-25 Thread Piero Sartini
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-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: AbstractSelectModel is not in a controlled package

2010-01-25 Thread 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

kami...@gmail.com
pkaminski@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-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org




Re: AbstractSelectModel is not in a controlled package

2010-01-25 Thread Thiago H. de Paula Figueiredo

On Mon, 25 Jan 2010 20:05:10 -0200, kamiseq kami...@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-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: AbstractSelectModel is not in a controlled package

2010-01-25 Thread Howard Lewis Ship
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
thiag...@gmail.com wrote:
 On Mon, 25 Jan 2010 20:05:10 -0200, kamiseq kami...@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-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@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-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: AbstractSelectModel is not in a controlled package

2010-01-25 Thread kamiseq
ok. thanks a lot!

pozdrawiam
Paweł Kamiński

kami...@gmail.com
pkaminski@gmail.com
__


2010/1/26 Howard Lewis Ship hls...@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
 thiag...@gmail.com wrote:
  On Mon, 25 Jan 2010 20:05:10 -0200, kamiseq kami...@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-unsubscr...@tapestry.apache.org
  For additional commands, e-mail: users-h...@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-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org




Re: AbstractSelectModel is not in a controlled package

2010-01-23 Thread kamiseq
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

kami...@gmail.com
pkaminski@gmail.com
__


On 22 January 2010 16:11, Joost Schouten (ml) joost...@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

 kami...@gmail.com
 pkaminski@gmail.com
 __





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




Re: AbstractSelectModel is not in a controlled package

2010-01-23 Thread Ulrich Stärk
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

kami...@gmail.com
pkaminski@gmail.com
__


On 22 January 2010 16:11, Joost Schouten (ml) joost...@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

kami...@gmail.com
pkaminski@gmail.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



Re: AbstractSelectModel is not in a controlled package

2010-01-23 Thread kamiseq
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

kami...@gmail.com
pkaminski@gmail.com
__


On 23 January 2010 16:05, Ulrich Stärk u...@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

 kami...@gmail.com
 pkaminski@gmail.com
 __


 On 22 January 2010 16:11, Joost Schouten (ml) joost...@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

 kami...@gmail.com
 pkaminski@gmail.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




Re: AbstractSelectModel is not in a controlled package

2010-01-22 Thread Joost Schouten (ml)

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

kami...@gmail.com
pkaminski@gmail.com
__

  



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