T5 - using t:select nested inside beaneditform

2011-08-05 Thread Eric Torti
Hello, guys,

I`m struggling to get a beaneditform to show a t:select element.

I`ve accomplished the creation of the GenericSelectModel but I
don`t know if I`m on the right track. My template reads as follows:








The form is displayed but no  is rendered.

Is this the right way to go? Any help will be greatly appreciated.

Thanks


Re: Uploading then displaying Images

2011-08-05 Thread Josh Canfield
The real issue is more likely the first point, you're getting your
InputStream from an object from the session. Does calling getImage()
return a new InputStream every time?

On Fri, Aug 5, 2011 at 2:44 PM, David Canteros
 wrote:
> Hi Josh;
>           I have already tried with PageRenderLinkSource but It has the
> same behavior.  I did not know the difference between LinkSource and
> PageRenderLinkSource, thanks for the information!
>
> David
>
> --
> David Germán Canteros
>
>
> 2011/8/5 Josh Canfield 
>
>> Also.
>> >    private LinkSource linkSource;
>>
>> This is an internal class, you should be using PageRenderLinkSource.
>> You can replace:
>>
>> > linkSource.createPageRenderLink(DisplayImagePage.class.getSimpleName(),
>> false, new Object[]{imageId});
>>
>> with
>>
>>
>> pageRenderLinkSource.createPageRenderLinkWithContext(DisplayImagePage.class,
>> imageId);
>>
>> Josh
>>
>> On Fri, Aug 5, 2011 at 1:39 PM, David Canteros
>>  wrote:
>> > Hi
>> > I have to show a image loaded from database BLOB field. I implemented
>> > Thiago's suggestion, I have created a page with the following code:
>> >
>> > public class ShowImagePage {
>> >
>> >    @Inject
>> >    private LinkSource linkSource;
>> >     (...)
>> >
>> >    public Link *getUploadedFile*(String imageId) {
>> >            return
>> > linkSource.createPageRenderLink(DisplayImagePage.class.getSimpleName(),
>> > false, new Object[]{imageId});
>> >    }
>> >
>> >    public StreamResponse *onActivate*(String imageId) {
>> >        this.filename = imageId;
>> >        return new StreamResponse() {
>> >
>> >            public String *getContentType*() {
>> >                return contentType;
>> >            }
>> >
>> >            public InputStream *getStream*() throws IOException {
>> >                User user =
>> > (User)_request.getSession(true).getAttribute("user");
>> >                return user.getImage();
>> >            }
>> >
>> >            public void *prepareResponse*(Response response) {
>> >                response.setHeader("Content-Disposition", "inline;
>> > filename=" + filename
>> >                            + ((extension == null) ? "" : ("." +
>> > extension)));
>> >            }
>> >        };
>> >    }
>> >  }
>> > **
>> > In the javacode of the page where i have to show the image, I injected
>> the
>> > above page and wrote this method
>> >
>> > public Link *getImageLink*(ImageId){
>> >    return showImagewPage.getUploadedFile(imageId);
>> > }
>> >  and in html code I put this:
>> >
>> > 
>> >
>> > It works fine, the image is showed but when I refresh the page (with F5),
>> > the image dissapear. It behavior does not occur if I submit some form
>> placed
>> > in the same page that refresh the page too (the method  "onSubmitFrom..."
>> > returns "this" ). I have debugged the code and everything works fine, do
>> you
>> > have any idea about this behavior?
>> >
>> > Thanks!!
>> >
>> > --
>> > David Germán Canteros
>> >
>> >
>> > 2011/3/11 Rich M 
>> >
>> >> Thanks everyone for the responses so far, conceptually I think this is
>> >> coming together for me.
>> >>
>> >> So, I'm glad the context path was not a good idea, it felt dirty from
>> the
>> >> beginning. Avoiding that, there are two main options: use the database
>> to
>> >> store/retrieve the images, or use a configured system folder from where
>> I
>> >> can load/save files with Java IO.
>> >>
>> >> Regardless of the option chosen there, the image file will be captured
>> as
>> >> an InputStream and returned as a StreamResponse in some form to a
>> >> page/component.
>> >>
>> >> As far as linking the StreamResponse to an HTML IMG tag, I believe I
>> >> understand the various options presented here.
>> >>
>> >> LLTYK suggests using an EventLink. I was looking through my code and
>> found
>> >> a Captcha implementation I have using a propertyExpression in the TML on
>> the
>> >> src attribute of  to reference a getImageLink function that returns
>> >> ComponentResources.**createActionLink("image",null)**. Then there is an
>> >> onImage() action handler method that returns a StreamResponse. I
>> understand
>> >> this is ActionLink and not EventLink, but I think the concept must be
>> nearly
>> >> identical.
>> >>
>> >> Alternately, Thiago is suggesting that instead of using
>> ComponentResources
>> >> to generate an ActionLink or EventLink, it may be easier to create a
>> >> seperate Page that handles returning just a StreamResponse. In that case
>> the
>> >> EventLink can be replaced with a PageLink and using an activation
>> context
>> >> the ID for the Image can be passed to the Page so it can load the Image,
>> >> build the StreamResponse, and return it.
>> >>
>> >> <30 minutes later> Okay, the PageLink works out, great! I can see the
>> >> biggest issue I was having was setting up the src attribute for IMG
>> >> correctly. I was stuck thinking it

Re: Uploading then displaying Images

2011-08-05 Thread David Canteros
Hi Josh;
   I have already tried with PageRenderLinkSource but It has the
same behavior.  I did not know the difference between LinkSource and
PageRenderLinkSource, thanks for the information!

David

--
David Germán Canteros


2011/8/5 Josh Canfield 

> Also.
> >private LinkSource linkSource;
>
> This is an internal class, you should be using PageRenderLinkSource.
> You can replace:
>
> > linkSource.createPageRenderLink(DisplayImagePage.class.getSimpleName(),
> false, new Object[]{imageId});
>
> with
>
>
> pageRenderLinkSource.createPageRenderLinkWithContext(DisplayImagePage.class,
> imageId);
>
> Josh
>
> On Fri, Aug 5, 2011 at 1:39 PM, David Canteros
>  wrote:
> > Hi
> > I have to show a image loaded from database BLOB field. I implemented
> > Thiago's suggestion, I have created a page with the following code:
> >
> > public class ShowImagePage {
> >
> >@Inject
> >private LinkSource linkSource;
> > (...)
> >
> >public Link *getUploadedFile*(String imageId) {
> >return
> > linkSource.createPageRenderLink(DisplayImagePage.class.getSimpleName(),
> > false, new Object[]{imageId});
> >}
> >
> >public StreamResponse *onActivate*(String imageId) {
> >this.filename = imageId;
> >return new StreamResponse() {
> >
> >public String *getContentType*() {
> >return contentType;
> >}
> >
> >public InputStream *getStream*() throws IOException {
> >User user =
> > (User)_request.getSession(true).getAttribute("user");
> >return user.getImage();
> >}
> >
> >public void *prepareResponse*(Response response) {
> >response.setHeader("Content-Disposition", "inline;
> > filename=" + filename
> >+ ((extension == null) ? "" : ("." +
> > extension)));
> >}
> >};
> >}
> >  }
> > **
> > In the javacode of the page where i have to show the image, I injected
> the
> > above page and wrote this method
> >
> > public Link *getImageLink*(ImageId){
> >return showImagewPage.getUploadedFile(imageId);
> > }
> >  and in html code I put this:
> >
> > 
> >
> > It works fine, the image is showed but when I refresh the page (with F5),
> > the image dissapear. It behavior does not occur if I submit some form
> placed
> > in the same page that refresh the page too (the method  "onSubmitFrom..."
> > returns "this" ). I have debugged the code and everything works fine, do
> you
> > have any idea about this behavior?
> >
> > Thanks!!
> >
> > --
> > David Germán Canteros
> >
> >
> > 2011/3/11 Rich M 
> >
> >> Thanks everyone for the responses so far, conceptually I think this is
> >> coming together for me.
> >>
> >> So, I'm glad the context path was not a good idea, it felt dirty from
> the
> >> beginning. Avoiding that, there are two main options: use the database
> to
> >> store/retrieve the images, or use a configured system folder from where
> I
> >> can load/save files with Java IO.
> >>
> >> Regardless of the option chosen there, the image file will be captured
> as
> >> an InputStream and returned as a StreamResponse in some form to a
> >> page/component.
> >>
> >> As far as linking the StreamResponse to an HTML IMG tag, I believe I
> >> understand the various options presented here.
> >>
> >> LLTYK suggests using an EventLink. I was looking through my code and
> found
> >> a Captcha implementation I have using a propertyExpression in the TML on
> the
> >> src attribute of  to reference a getImageLink function that returns
> >> ComponentResources.**createActionLink("image",null)**. Then there is an
> >> onImage() action handler method that returns a StreamResponse. I
> understand
> >> this is ActionLink and not EventLink, but I think the concept must be
> nearly
> >> identical.
> >>
> >> Alternately, Thiago is suggesting that instead of using
> ComponentResources
> >> to generate an ActionLink or EventLink, it may be easier to create a
> >> seperate Page that handles returning just a StreamResponse. In that case
> the
> >> EventLink can be replaced with a PageLink and using an activation
> context
> >> the ID for the Image can be passed to the Page so it can load the Image,
> >> build the StreamResponse, and return it.
> >>
> >> <30 minutes later> Okay, the PageLink works out, great! I can see the
> >> biggest issue I was having was setting up the src attribute for IMG
> >> correctly. I was stuck thinking it was either the URL to the context
> path or
> >> the StreamResponse itself, rather than a link to an event or page that
> >> returns the StreamResponse.
> >>
> >> Thanks,
> >> Rich
> >>
> >>
> >>
> >> On 03/11/2011 08:08 AM, Thiago H. de Paula Figueiredo wrote:
> >>
> >>> On Fri, 11 Mar 2011 09:24:35 -0300, LLTYK 
> wrote:
> >>>
> >>>  Nobody's mentioned createEventLink. That

Re: Uploading then displaying Images

2011-08-05 Thread Josh Canfield
Also.
>    private LinkSource linkSource;

This is an internal class, you should be using PageRenderLinkSource.
You can replace:

> linkSource.createPageRenderLink(DisplayImagePage.class.getSimpleName(), 
> false, new Object[]{imageId});

with

pageRenderLinkSource.createPageRenderLinkWithContext(DisplayImagePage.class,
imageId);

Josh

On Fri, Aug 5, 2011 at 1:39 PM, David Canteros
 wrote:
> Hi
> I have to show a image loaded from database BLOB field. I implemented
> Thiago's suggestion, I have created a page with the following code:
>
> public class ShowImagePage {
>
>    @Inject
>    private LinkSource linkSource;
>     (...)
>
>    public Link *getUploadedFile*(String imageId) {
>            return
> linkSource.createPageRenderLink(DisplayImagePage.class.getSimpleName(),
> false, new Object[]{imageId});
>    }
>
>    public StreamResponse *onActivate*(String imageId) {
>        this.filename = imageId;
>        return new StreamResponse() {
>
>            public String *getContentType*() {
>                return contentType;
>            }
>
>            public InputStream *getStream*() throws IOException {
>                User user =
> (User)_request.getSession(true).getAttribute("user");
>                return user.getImage();
>            }
>
>            public void *prepareResponse*(Response response) {
>                response.setHeader("Content-Disposition", "inline;
> filename=" + filename
>                            + ((extension == null) ? "" : ("." +
> extension)));
>            }
>        };
>    }
>  }
> **
> In the javacode of the page where i have to show the image, I injected the
> above page and wrote this method
>
> public Link *getImageLink*(ImageId){
>    return showImagewPage.getUploadedFile(imageId);
> }
>  and in html code I put this:
>
> 
>
> It works fine, the image is showed but when I refresh the page (with F5),
> the image dissapear. It behavior does not occur if I submit some form placed
> in the same page that refresh the page too (the method  "onSubmitFrom..."
> returns "this" ). I have debugged the code and everything works fine, do you
> have any idea about this behavior?
>
> Thanks!!
>
> --
> David Germán Canteros
>
>
> 2011/3/11 Rich M 
>
>> Thanks everyone for the responses so far, conceptually I think this is
>> coming together for me.
>>
>> So, I'm glad the context path was not a good idea, it felt dirty from the
>> beginning. Avoiding that, there are two main options: use the database to
>> store/retrieve the images, or use a configured system folder from where I
>> can load/save files with Java IO.
>>
>> Regardless of the option chosen there, the image file will be captured as
>> an InputStream and returned as a StreamResponse in some form to a
>> page/component.
>>
>> As far as linking the StreamResponse to an HTML IMG tag, I believe I
>> understand the various options presented here.
>>
>> LLTYK suggests using an EventLink. I was looking through my code and found
>> a Captcha implementation I have using a propertyExpression in the TML on the
>> src attribute of  to reference a getImageLink function that returns
>> ComponentResources.**createActionLink("image",null)**. Then there is an
>> onImage() action handler method that returns a StreamResponse. I understand
>> this is ActionLink and not EventLink, but I think the concept must be nearly
>> identical.
>>
>> Alternately, Thiago is suggesting that instead of using ComponentResources
>> to generate an ActionLink or EventLink, it may be easier to create a
>> seperate Page that handles returning just a StreamResponse. In that case the
>> EventLink can be replaced with a PageLink and using an activation context
>> the ID for the Image can be passed to the Page so it can load the Image,
>> build the StreamResponse, and return it.
>>
>> <30 minutes later> Okay, the PageLink works out, great! I can see the
>> biggest issue I was having was setting up the src attribute for IMG
>> correctly. I was stuck thinking it was either the URL to the context path or
>> the StreamResponse itself, rather than a link to an event or page that
>> returns the StreamResponse.
>>
>> Thanks,
>> Rich
>>
>>
>>
>> On 03/11/2011 08:08 AM, Thiago H. de Paula Figueiredo wrote:
>>
>>> On Fri, 11 Mar 2011 09:24:35 -0300, LLTYK  wrote:
>>>
>>>  Nobody's mentioned createEventLink. That's where you get the image url,
 create an event link pointing to the event handler that returns the
 stream response.

>>>
>>> I haven't mentioned it because my preferred approach is to create a page
>>> just for returning StreamResponses. It's more reusable, as it can be used to
>>> serve images for any page, while an event must be only used inside a give
>>> page.
>>>
>>>
>>
>> --**--**-
>> To unsubscribe, e-mail: 
>> users-unsubscribe@tapestry.**apache.org
>> For additional commands, e-mail: users-h...@tapestry.apache.or

Re: Uploading then displaying Images

2011-08-05 Thread Josh Canfield
>            public InputStream *getStream*() throws IOException {
>                User user =
> (User)_request.getSession(true).getAttribute("user");
>                return user.getImage();
>            }

It looks like you're pulling the User object from the session and then
getting the InputStream from user.getImage();
If user.getImage is caching the stream reference then the stream will
be empty the second time you try to read from it right? Because it's
the same object stored in the session.

Josh

On Fri, Aug 5, 2011 at 1:39 PM, David Canteros
 wrote:
> Hi
> I have to show a image loaded from database BLOB field. I implemented
> Thiago's suggestion, I have created a page with the following code:
>
> public class ShowImagePage {
>
>    @Inject
>    private LinkSource linkSource;
>     (...)
>
>    public Link *getUploadedFile*(String imageId) {
>            return
> linkSource.createPageRenderLink(DisplayImagePage.class.getSimpleName(),
> false, new Object[]{imageId});
>    }
>
>    public StreamResponse *onActivate*(String imageId) {
>        this.filename = imageId;
>        return new StreamResponse() {
>
>            public String *getContentType*() {
>                return contentType;
>            }
>
>            public InputStream *getStream*() throws IOException {
>                User user =
> (User)_request.getSession(true).getAttribute("user");
>                return user.getImage();
>            }
>
>            public void *prepareResponse*(Response response) {
>                response.setHeader("Content-Disposition", "inline;
> filename=" + filename
>                            + ((extension == null) ? "" : ("." +
> extension)));
>            }
>        };
>    }
>  }
> **
> In the javacode of the page where i have to show the image, I injected the
> above page and wrote this method
>
> public Link *getImageLink*(ImageId){
>    return showImagewPage.getUploadedFile(imageId);
> }
>  and in html code I put this:
>
> 
>
> It works fine, the image is showed but when I refresh the page (with F5),
> the image dissapear. It behavior does not occur if I submit some form placed
> in the same page that refresh the page too (the method  "onSubmitFrom..."
> returns "this" ). I have debugged the code and everything works fine, do you
> have any idea about this behavior?
>
> Thanks!!
>
> --
> David Germán Canteros
>
>
> 2011/3/11 Rich M 
>
>> Thanks everyone for the responses so far, conceptually I think this is
>> coming together for me.
>>
>> So, I'm glad the context path was not a good idea, it felt dirty from the
>> beginning. Avoiding that, there are two main options: use the database to
>> store/retrieve the images, or use a configured system folder from where I
>> can load/save files with Java IO.
>>
>> Regardless of the option chosen there, the image file will be captured as
>> an InputStream and returned as a StreamResponse in some form to a
>> page/component.
>>
>> As far as linking the StreamResponse to an HTML IMG tag, I believe I
>> understand the various options presented here.
>>
>> LLTYK suggests using an EventLink. I was looking through my code and found
>> a Captcha implementation I have using a propertyExpression in the TML on the
>> src attribute of  to reference a getImageLink function that returns
>> ComponentResources.**createActionLink("image",null)**. Then there is an
>> onImage() action handler method that returns a StreamResponse. I understand
>> this is ActionLink and not EventLink, but I think the concept must be nearly
>> identical.
>>
>> Alternately, Thiago is suggesting that instead of using ComponentResources
>> to generate an ActionLink or EventLink, it may be easier to create a
>> seperate Page that handles returning just a StreamResponse. In that case the
>> EventLink can be replaced with a PageLink and using an activation context
>> the ID for the Image can be passed to the Page so it can load the Image,
>> build the StreamResponse, and return it.
>>
>> <30 minutes later> Okay, the PageLink works out, great! I can see the
>> biggest issue I was having was setting up the src attribute for IMG
>> correctly. I was stuck thinking it was either the URL to the context path or
>> the StreamResponse itself, rather than a link to an event or page that
>> returns the StreamResponse.
>>
>> Thanks,
>> Rich
>>
>>
>>
>> On 03/11/2011 08:08 AM, Thiago H. de Paula Figueiredo wrote:
>>
>>> On Fri, 11 Mar 2011 09:24:35 -0300, LLTYK  wrote:
>>>
>>>  Nobody's mentioned createEventLink. That's where you get the image url,
 create an event link pointing to the event handler that returns the
 stream response.

>>>
>>> I haven't mentioned it because my preferred approach is to create a page
>>> just for returning StreamResponses. It's more reusable, as it can be used to
>>> serve images for any page, while an event must be only used inside a give
>>> page.
>>>
>>>
>>
>> --**--

Re: Uploading then displaying Images

2011-08-05 Thread David Canteros
Hi
I have to show a image loaded from database BLOB field. I implemented
Thiago's suggestion, I have created a page with the following code:

public class ShowImagePage {

@Inject
private LinkSource linkSource;
 (...)

public Link *getUploadedFile*(String imageId) {
return
linkSource.createPageRenderLink(DisplayImagePage.class.getSimpleName(),
false, new Object[]{imageId});
}

public StreamResponse *onActivate*(String imageId) {
this.filename = imageId;
return new StreamResponse() {

public String *getContentType*() {
return contentType;
}

public InputStream *getStream*() throws IOException {
User user =
(User)_request.getSession(true).getAttribute("user");
return user.getImage();
}

public void *prepareResponse*(Response response) {
response.setHeader("Content-Disposition", "inline;
filename=" + filename
+ ((extension == null) ? "" : ("." +
extension)));
}
};
}
 }
**
In the javacode of the page where i have to show the image, I injected the
above page and wrote this method

public Link *getImageLink*(ImageId){
return showImagewPage.getUploadedFile(imageId);
}
 and in html code I put this:



It works fine, the image is showed but when I refresh the page (with F5),
the image dissapear. It behavior does not occur if I submit some form placed
in the same page that refresh the page too (the method  "onSubmitFrom..."
returns "this" ). I have debugged the code and everything works fine, do you
have any idea about this behavior?

Thanks!!

--
David Germán Canteros


2011/3/11 Rich M 

> Thanks everyone for the responses so far, conceptually I think this is
> coming together for me.
>
> So, I'm glad the context path was not a good idea, it felt dirty from the
> beginning. Avoiding that, there are two main options: use the database to
> store/retrieve the images, or use a configured system folder from where I
> can load/save files with Java IO.
>
> Regardless of the option chosen there, the image file will be captured as
> an InputStream and returned as a StreamResponse in some form to a
> page/component.
>
> As far as linking the StreamResponse to an HTML IMG tag, I believe I
> understand the various options presented here.
>
> LLTYK suggests using an EventLink. I was looking through my code and found
> a Captcha implementation I have using a propertyExpression in the TML on the
> src attribute of  to reference a getImageLink function that returns
> ComponentResources.**createActionLink("image",null)**. Then there is an
> onImage() action handler method that returns a StreamResponse. I understand
> this is ActionLink and not EventLink, but I think the concept must be nearly
> identical.
>
> Alternately, Thiago is suggesting that instead of using ComponentResources
> to generate an ActionLink or EventLink, it may be easier to create a
> seperate Page that handles returning just a StreamResponse. In that case the
> EventLink can be replaced with a PageLink and using an activation context
> the ID for the Image can be passed to the Page so it can load the Image,
> build the StreamResponse, and return it.
>
> <30 minutes later> Okay, the PageLink works out, great! I can see the
> biggest issue I was having was setting up the src attribute for IMG
> correctly. I was stuck thinking it was either the URL to the context path or
> the StreamResponse itself, rather than a link to an event or page that
> returns the StreamResponse.
>
> Thanks,
> Rich
>
>
>
> On 03/11/2011 08:08 AM, Thiago H. de Paula Figueiredo wrote:
>
>> On Fri, 11 Mar 2011 09:24:35 -0300, LLTYK  wrote:
>>
>>  Nobody's mentioned createEventLink. That's where you get the image url,
>>> create an event link pointing to the event handler that returns the
>>> stream response.
>>>
>>
>> I haven't mentioned it because my preferred approach is to create a page
>> just for returning StreamResponses. It's more reusable, as it can be used to
>> serve images for any page, while an event must be only used inside a give
>> page.
>>
>>
>
> --**--**-
> To unsubscribe, e-mail: 
> users-unsubscribe@tapestry.**apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


Re: t:form cannot be created?

2011-08-05 Thread Howard Lewis Ship
I suspect the file was in a charset that Tapestry wasn't expecting.

On Fri, Aug 5, 2011 at 12:04 PM, nillehammer
 wrote:
> Hi eray,
> thanks for sharing your knowledge. That was an odd error.
>
> Usually one shouldn't be forced to change system language settings for
> Tapestry-apps to run. I myself am using a system with a non-Enlish system
> language (actually German) too and did not face this problem. Could it be
> that Turkish wasn't in the list of supported locales that is configured in
> AppModule?
>
> Regards nillehammer
>
> -
> http://www.winfonet.eu
> --
> View this message in context: 
> http://tapestry.1045711.n5.nabble.com/t-form-cannot-be-created-tp4657559p4670525.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
> -
> 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: t:form cannot be created?

2011-08-05 Thread nillehammer
Hi eray,
thanks for sharing your knowledge. That was an odd error.

Usually one shouldn't be forced to change system language settings for
Tapestry-apps to run. I myself am using a system with a non-Enlish system
language (actually German) too and did not face this problem. Could it be
that Turkish wasn't in the list of supported locales that is configured in
AppModule?

Regards nillehammer

-
http://www.winfonet.eu
--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/t-form-cannot-be-created-tp4657559p4670525.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

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



Re: Tapestry-Hibernate xml mapping

2011-08-05 Thread Norman Franke
Using the  tag you can reference mapping  
files from hibernate.cfg.cml. I do this in a Tapestry 4 project.


For Tapestry 5, I use annotations on my POJOs to eliminate mapping  
files and have Tapestry scan certain packages for the entities.


Norman Franke
Answering Service for Directors, Inc.
www.myasd.com



On Aug 5, 2011, at 2:41 AM, andreisirghi wrote:


What is actually the code that adds mappings.xml. As I know in
hibernate.cfg.xml is not possible to include mappings, and in
contributeHibernateEntityPackageManager you can add just packages with
hibernate-annotated classes.

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Tapestry-Hibernate-xml-mapping-tp4666037p4668805.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

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





Re: Preparing for the upgrade to Tapestry 5.3

2011-08-05 Thread Howard Lewis Ship
It does make sense that RenderSupport stay in until 5.4.  For really
important things, having two full releases for people to upgrade makes
sense before the class is removed.  RenderSupport was deprecated in
5.2, so 5.4 makes sense.

Some of the minor things that were deprecated in 5.2 were removed in
5.3; if there's enough outcry, they can be restored (such as
@IncludeJavaScriptLibrary, etc.).

On Fri, Aug 5, 2011 at 5:36 AM, Taha Hafeez  wrote:
> Hi Howard
>
> It is being used in tapestry-upload. I had submitted a patch for that
> sometime back
>
> https://issues.apache.org/jira/browse/TAP5-1564
>
> regards
> Taha
>
>
> On Fri, Aug 5, 2011 at 5:54 PM, Howard Lewis Ship  wrote:
>> Slight correction: RenderSupport is still available but will be
>> removed in 5.4. While you are rummaging through your code to fix your
>> imports, update your use of RenderSupport to JavaScriptSupport.
>>
>> On Fri, Aug 5, 2011 at 5:19 AM, Howard Lewis Ship  wrote:
>>> You know you're gonna wanna do it ... upgrade to 5.3, when it's ready.
>>>  Tapestry 5.3 is faster, learner, and has new features and new
>>> components, including the unified alerts subsystem, the Tree and
>>> Kaptcha components, JavaScript minification, JPA integration, and
>>> more.
>>>
>>> A couple of my clients have already been upgrading to the lastest
>>> alphas ... one has a larger project and is hitting some issues.
>>>
>>> #1  RenderSupport has been removed
>>>
>>> You should locate your code that uses RenderSupport and change it to
>>> use the similar JavaScriptSupport. RenderSupport was deprecated in 5.2
>>> and removed in 5.3.
>>>
>>> #2 @IncludeJavaScriptLibrary and @IncludeStyleSheet are now @Import
>>>
>>> The older annotations were deprecated in 5.2 and removed in 5.3.
>>>
>>> #3 You MUST not have ANYTHING but component classes in your controlled 
>>> packages
>>>
>>> Under your application (or library) root package, the .pages,
>>> .components, .base and .mixins packages should contain ONLY component
>>> classes.
>>>
>>> No interfaces, enums, annotations, data objects or anything else that
>>> is not a component to be transformed at runtime.
>>>
>>> Note: inner classes of components are live-reloaded, but not transformed.
>>>
>>> More release notes for 5.3 here:
>>> http://tapestry.apache.org/release-notes-53.html
>>>
>>> I expect to see the first 5.3 beta quite soon!
>>>
>>> --
>>> 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
>>>
>>
>>
>>
>> --
>> 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
>>
>>
>
>
>
> --
> Regards
>
> Taha Hafeez Siddiqi (tawus)
> http://tawus.wordpress.com
>
> -
> 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: Class Transformation problem

2011-08-05 Thread Josh Canfield
Right, this is what I was talking about. I use tynamo resteasy in this way.

On Fri, Aug 5, 2011 at 12:27 AM, Taha Hafeez  wrote:
> I don't think you need ComponentClassTransformationWorker. What you
> need is, as Josh said, a service advice
>
> http://tapestry.apache.org/service-advisors.html
>
> Now the tricky part is where to apply it. As Josh said, if you expose
> your resources as services you will be able to apply advises and even
> use injection.
>
> By "exposing as service" I mean create an interface and its
> implementation and bind using ServiceBinder. Then you can add that
> resource to resteasy as
>
> public static void contributeApplication(Configuration
> singletons, ObjectLocator locator)
> {
>        singletons.add(locator.autobuild(MyDomainObjectResource.class));
> }
>
> Disclaimer: I have never used tynamo-resteasy and this information is
> based on http://tynamo.org/tapestry-resteasy+guide.
>
> On Fri, Aug 5, 2011 at 8:16 AM, Rendy Tapestry  
> wrote:
>> Hi Josh,
>>
>> Might you please elaborate your answer ? I don't get it :)
>>
>> Thanks,
>> Rendy.
>>
>> On Thu, Aug 4, 2011 at 10:29 PM, Josh Canfield wrote:
>>
>>> Also, rest resources can be bound as services to use injection and advice.
>>> On Aug 4, 2011 8:05 AM, "Taha Hafeez"  wrote:
>>> > Hi Rendy
>>> >
>>> > No ComponentClassTransformWorker will not work outside
>>> > pages/components package. But class transformation is not the only
>>> > reason to keep a special packages. You sometime need to scan classes
>>> > for annotations etc and it is easy if you have specific packages
>>> > which can be contributed to the scanning service.
>>> >
>>> > As far as class transformation is concerned, you can transform an
>>> > existing class or create a new one by using ClassFab etc classes which
>>> > are based on javassist in 5.2+ (on PlasticClass etc in 5.3+).
>>> >
>>> > Can you elaborate on your problem ?
>>> >
>>> > On Thu, Aug 4, 2011 at 7:25 PM, Rendy Tapestry >> >
>>> wrote:
>>> >> Hi all,
>>> >>
>>> >> I have problem with class transformation, my question, will this class
>>> >> transformation work outside from special package (pages for example). I
>>> am
>>> >> using restful integration from tynamo which direct me to put my web
>>> service
>>> >> in rest package. Is the package name matter with class transformation ?
>>> If
>>> >> yes, how could I solve my problem ?
>>> >>
>>> >> Thanks,
>>> >>
>>> >> Rendy.
>>> >>
>>> >> ps. I am using tapestry 5.2.5 (ComponentClassTransformWorker)
>>> >>
>>> >
>>> >
>>> >
>>> > --
>>> > Regards
>>> >
>>> > Taha Hafeez Siddiqi (tawus)
>>> > http://tawus.wordpress.com
>>> >
>>> > -
>>> > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>>> > For additional commands, e-mail: users-h...@tapestry.apache.org
>>> >
>>>
>>
>
>
>
> --
> Regards
>
> Taha Hafeez Siddiqi (tawus)
> http://tawus.wordpress.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



tapestry-func

2011-08-05 Thread Михаил Слободянюк
Hi!

How to use *tapestry*-*func library?*
*
*
May be exists some examles or documentation?


Mihail.


Re: How to use a different zone to update after the AJAX submit?

2011-08-05 Thread stephanos2k
Thanks for the lightning-fast reply [maybe you also have an answer for my
other 
http://tapestry.1045711.n5.nabble.com/T5-3-customize-validation-messages-td4659356.html
question ] :)

I will give it a try, I thought it was just for updating /multiple/ zones,
not also a /different/ zone.

Cheers!

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/How-to-use-a-different-zone-to-update-after-the-AJAX-submit-tp4669860p4669894.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

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



Re: How to use a different zone to update after the AJAX submit?

2011-08-05 Thread dragan.sahpas...@gmail.com
On Fri, Aug 5, 2011 at 5:23 PM, stephanos2k
wrote:

> Let's assume I have *2 zones* and *1 event link*.
> I set up the event link to update zone #1 with the current time on click
> (zone="zone1").
>
> What if, on the server-side after the submit is issued, I decide that
> */before noon/ zone #1* and */after noon/ zone #2* is updated.
>
> Is this in any way possible?
>

Yes. Just return MultiZoneUpdate from the event handler - updating zone2,
with it's id and desired body.


> [PS: My real use case is updating a complete form vs. only the status bar
> in
> case of errors/warnings]
>
> Cheers
>
>
Cheers,
Dragan Sahpaski




>  --
> View this message in context:
> http://tapestry.1045711.n5.nabble.com/How-to-use-a-different-zone-to-update-after-the-AJAX-submit-tp4669860p4669860.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


How to use a different zone to update after the AJAX submit?

2011-08-05 Thread stephanos2k
Let's assume I have *2 zones* and *1 event link*. 
I set up the event link to update zone #1 with the current time on click
(zone="zone1").

What if, on the server-side after the submit is issued, I decide that
*/before noon/ zone #1* and */after noon/ zone #2* is updated.

Is this in any way possible?

[PS: My real use case is updating a complete form vs. only the status bar in
case of errors/warnings]

Cheers

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/How-to-use-a-different-zone-to-update-after-the-AJAX-submit-tp4669860p4669860.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

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



Re: Class Transformation problem

2011-08-05 Thread Rendy Tapestry
Thanks Taha & Josh, I will give it a try and later post back the result
here.

Thanks,
Rendy.

On Fri, Aug 5, 2011 at 2:27 PM, Taha Hafeez wrote:

> I don't think you need ComponentClassTransformationWorker. What you
> need is, as Josh said, a service advice
>
> http://tapestry.apache.org/service-advisors.html
>
> Now the tricky part is where to apply it. As Josh said, if you expose
> your resources as services you will be able to apply advises and even
> use injection.
>
> By "exposing as service" I mean create an interface and its
> implementation and bind using ServiceBinder. Then you can add that
> resource to resteasy as
>
> public static void contributeApplication(Configuration
> singletons, ObjectLocator locator)
> {
>singletons.add(locator.autobuild(MyDomainObjectResource.class));
> }
>
> Disclaimer: I have never used tynamo-resteasy and this information is
> based on http://tynamo.org/tapestry-resteasy+guide.
>
> On Fri, Aug 5, 2011 at 8:16 AM, Rendy Tapestry 
> wrote:
> > Hi Josh,
> >
> > Might you please elaborate your answer ? I don't get it :)
> >
> > Thanks,
> > Rendy.
> >
> > On Thu, Aug 4, 2011 at 10:29 PM, Josh Canfield  >wrote:
> >
> >> Also, rest resources can be bound as services to use injection and
> advice.
> >> On Aug 4, 2011 8:05 AM, "Taha Hafeez"  wrote:
> >> > Hi Rendy
> >> >
> >> > No ComponentClassTransformWorker will not work outside
> >> > pages/components package. But class transformation is not the only
> >> > reason to keep a special packages. You sometime need to scan classes
> >> > for annotations etc and it is easy if you have specific packages
> >> > which can be contributed to the scanning service.
> >> >
> >> > As far as class transformation is concerned, you can transform an
> >> > existing class or create a new one by using ClassFab etc classes which
> >> > are based on javassist in 5.2+ (on PlasticClass etc in 5.3+).
> >> >
> >> > Can you elaborate on your problem ?
> >> >
> >> > On Thu, Aug 4, 2011 at 7:25 PM, Rendy Tapestry <
> rendy.tapes...@gmail.com
> >> >
> >> wrote:
> >> >> Hi all,
> >> >>
> >> >> I have problem with class transformation, my question, will this
> class
> >> >> transformation work outside from special package (pages for example).
> I
> >> am
> >> >> using restful integration from tynamo which direct me to put my web
> >> service
> >> >> in rest package. Is the package name matter with class transformation
> ?
> >> If
> >> >> yes, how could I solve my problem ?
> >> >>
> >> >> Thanks,
> >> >>
> >> >> Rendy.
> >> >>
> >> >> ps. I am using tapestry 5.2.5 (ComponentClassTransformWorker)
> >> >>
> >> >
> >> >
> >> >
> >> > --
> >> > Regards
> >> >
> >> > Taha Hafeez Siddiqi (tawus)
> >> > http://tawus.wordpress.com
> >> >
> >> > -
> >> > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> >> > For additional commands, e-mail: users-h...@tapestry.apache.org
> >> >
> >>
> >
>
>
>
> --
> Regards
>
> Taha Hafeez Siddiqi (tawus)
> http://tawus.wordpress.com
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


Re: Preparing for the upgrade to Tapestry 5.3

2011-08-05 Thread Taha Hafeez
Hi Howard

It is being used in tapestry-upload. I had submitted a patch for that
sometime back

https://issues.apache.org/jira/browse/TAP5-1564

regards
Taha


On Fri, Aug 5, 2011 at 5:54 PM, Howard Lewis Ship  wrote:
> Slight correction: RenderSupport is still available but will be
> removed in 5.4. While you are rummaging through your code to fix your
> imports, update your use of RenderSupport to JavaScriptSupport.
>
> On Fri, Aug 5, 2011 at 5:19 AM, Howard Lewis Ship  wrote:
>> You know you're gonna wanna do it ... upgrade to 5.3, when it's ready.
>>  Tapestry 5.3 is faster, learner, and has new features and new
>> components, including the unified alerts subsystem, the Tree and
>> Kaptcha components, JavaScript minification, JPA integration, and
>> more.
>>
>> A couple of my clients have already been upgrading to the lastest
>> alphas ... one has a larger project and is hitting some issues.
>>
>> #1  RenderSupport has been removed
>>
>> You should locate your code that uses RenderSupport and change it to
>> use the similar JavaScriptSupport. RenderSupport was deprecated in 5.2
>> and removed in 5.3.
>>
>> #2 @IncludeJavaScriptLibrary and @IncludeStyleSheet are now @Import
>>
>> The older annotations were deprecated in 5.2 and removed in 5.3.
>>
>> #3 You MUST not have ANYTHING but component classes in your controlled 
>> packages
>>
>> Under your application (or library) root package, the .pages,
>> .components, .base and .mixins packages should contain ONLY component
>> classes.
>>
>> No interfaces, enums, annotations, data objects or anything else that
>> is not a component to be transformed at runtime.
>>
>> Note: inner classes of components are live-reloaded, but not transformed.
>>
>> More release notes for 5.3 here:
>> http://tapestry.apache.org/release-notes-53.html
>>
>> I expect to see the first 5.3 beta quite soon!
>>
>> --
>> 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
>>
>
>
>
> --
> 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
>
>



-- 
Regards

Taha Hafeez Siddiqi (tawus)
http://tawus.wordpress.com

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



Re: Preparing for the upgrade to Tapestry 5.3

2011-08-05 Thread Howard Lewis Ship
Slight correction: RenderSupport is still available but will be
removed in 5.4. While you are rummaging through your code to fix your
imports, update your use of RenderSupport to JavaScriptSupport.

On Fri, Aug 5, 2011 at 5:19 AM, Howard Lewis Ship  wrote:
> You know you're gonna wanna do it ... upgrade to 5.3, when it's ready.
>  Tapestry 5.3 is faster, learner, and has new features and new
> components, including the unified alerts subsystem, the Tree and
> Kaptcha components, JavaScript minification, JPA integration, and
> more.
>
> A couple of my clients have already been upgrading to the lastest
> alphas ... one has a larger project and is hitting some issues.
>
> #1  RenderSupport has been removed
>
> You should locate your code that uses RenderSupport and change it to
> use the similar JavaScriptSupport. RenderSupport was deprecated in 5.2
> and removed in 5.3.
>
> #2 @IncludeJavaScriptLibrary and @IncludeStyleSheet are now @Import
>
> The older annotations were deprecated in 5.2 and removed in 5.3.
>
> #3 You MUST not have ANYTHING but component classes in your controlled 
> packages
>
> Under your application (or library) root package, the .pages,
> .components, .base and .mixins packages should contain ONLY component
> classes.
>
> No interfaces, enums, annotations, data objects or anything else that
> is not a component to be transformed at runtime.
>
> Note: inner classes of components are live-reloaded, but not transformed.
>
> More release notes for 5.3 here:
> http://tapestry.apache.org/release-notes-53.html
>
> I expect to see the first 5.3 beta quite soon!
>
> --
> 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
>



-- 
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



Preparing for the upgrade to Tapestry 5.3

2011-08-05 Thread Howard Lewis Ship
You know you're gonna wanna do it ... upgrade to 5.3, when it's ready.
 Tapestry 5.3 is faster, learner, and has new features and new
components, including the unified alerts subsystem, the Tree and
Kaptcha components, JavaScript minification, JPA integration, and
more.

A couple of my clients have already been upgrading to the lastest
alphas ... one has a larger project and is hitting some issues.

#1  RenderSupport has been removed

You should locate your code that uses RenderSupport and change it to
use the similar JavaScriptSupport. RenderSupport was deprecated in 5.2
and removed in 5.3.

#2 @IncludeJavaScriptLibrary and @IncludeStyleSheet are now @Import

The older annotations were deprecated in 5.2 and removed in 5.3.

#3 You MUST not have ANYTHING but component classes in your controlled packages

Under your application (or library) root package, the .pages,
.components, .base and .mixins packages should contain ONLY component
classes.

No interfaces, enums, annotations, data objects or anything else that
is not a component to be transformed at runtime.

Note: inner classes of components are live-reloaded, but not transformed.

More release notes for 5.3 here:
http://tapestry.apache.org/release-notes-53.html

I expect to see the first 5.3 beta quite soon!

-- 
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: t:form cannot be created?

2011-08-05 Thread eray
I found out what the problem was! I cannot express how happy I am now. It was
the System Language setting. I changed it from Turkish to English and the
t:form was created without a problem.

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/t-form-cannot-be-created-tp4657559p4669117.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

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



Re: Adding in place editing ...

2011-08-05 Thread antalk
Isnt Chenille Kit what you are looking for ?

http://www.chenillekit.org/demo/tapcomp/inplacedemo



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Adding-in-place-editing-tp4668744p4669044.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

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



Re: Tapestry-Hibernate xml mapping

2011-08-05 Thread Taha Hafeez
Did have take a look at
http://tapestry.apache.org/5.3/apidocs/org/apache/tapestry5/hibernate/HibernateConfigurer.html

You can contribute a HibernateConfigurer and use
http://docs.jboss.org/hibernate/core/3.5/javadoc/org/hibernate/cfg/Configuration.html#addFile(java.lang.String)
to add a mapping file.

regards
Taha


On Fri, Aug 5, 2011 at 12:11 PM, andreisirghi  wrote:
> What is actually the code that adds mappings.xml. As I know in
> hibernate.cfg.xml is not possible to include mappings, and in
> contributeHibernateEntityPackageManager you can add just packages with
> hibernate-annotated classes.
>
> --
> View this message in context: 
> http://tapestry.1045711.n5.nabble.com/Tapestry-Hibernate-xml-mapping-tp4666037p4668805.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>



-- 
Regards

Taha Hafeez Siddiqi (tawus)
http://tawus.wordpress.com

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



Re: Class Transformation problem

2011-08-05 Thread Taha Hafeez
I don't think you need ComponentClassTransformationWorker. What you
need is, as Josh said, a service advice

http://tapestry.apache.org/service-advisors.html

Now the tricky part is where to apply it. As Josh said, if you expose
your resources as services you will be able to apply advises and even
use injection.

By "exposing as service" I mean create an interface and its
implementation and bind using ServiceBinder. Then you can add that
resource to resteasy as

public static void contributeApplication(Configuration
singletons, ObjectLocator locator)
{
singletons.add(locator.autobuild(MyDomainObjectResource.class));
}

Disclaimer: I have never used tynamo-resteasy and this information is
based on http://tynamo.org/tapestry-resteasy+guide.

On Fri, Aug 5, 2011 at 8:16 AM, Rendy Tapestry  wrote:
> Hi Josh,
>
> Might you please elaborate your answer ? I don't get it :)
>
> Thanks,
> Rendy.
>
> On Thu, Aug 4, 2011 at 10:29 PM, Josh Canfield wrote:
>
>> Also, rest resources can be bound as services to use injection and advice.
>> On Aug 4, 2011 8:05 AM, "Taha Hafeez"  wrote:
>> > Hi Rendy
>> >
>> > No ComponentClassTransformWorker will not work outside
>> > pages/components package. But class transformation is not the only
>> > reason to keep a special packages. You sometime need to scan classes
>> > for annotations etc and it is easy if you have specific packages
>> > which can be contributed to the scanning service.
>> >
>> > As far as class transformation is concerned, you can transform an
>> > existing class or create a new one by using ClassFab etc classes which
>> > are based on javassist in 5.2+ (on PlasticClass etc in 5.3+).
>> >
>> > Can you elaborate on your problem ?
>> >
>> > On Thu, Aug 4, 2011 at 7:25 PM, Rendy Tapestry > >
>> wrote:
>> >> Hi all,
>> >>
>> >> I have problem with class transformation, my question, will this class
>> >> transformation work outside from special package (pages for example). I
>> am
>> >> using restful integration from tynamo which direct me to put my web
>> service
>> >> in rest package. Is the package name matter with class transformation ?
>> If
>> >> yes, how could I solve my problem ?
>> >>
>> >> Thanks,
>> >>
>> >> Rendy.
>> >>
>> >> ps. I am using tapestry 5.2.5 (ComponentClassTransformWorker)
>> >>
>> >
>> >
>> >
>> > --
>> > Regards
>> >
>> > Taha Hafeez Siddiqi (tawus)
>> > http://tawus.wordpress.com
>> >
>> > -
>> > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>> > For additional commands, e-mail: users-h...@tapestry.apache.org
>> >
>>
>



-- 
Regards

Taha Hafeez Siddiqi (tawus)
http://tawus.wordpress.com

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