Re: Tapestry Component Report 5.3

2012-01-25 Thread Igor Drobiazko
Starting with 5.3, the component report has been replaced by Tapestry's
JavaDoc taglets. Read here:

http://blog.tapestry5.de/index.php/2011/11/09/javadoc-plugin-for-component-reference-documentation/

If you still prefer to use the component report, it's should be possible to
use 5.2.6 for 5.3 apps.

On Wed, Jan 25, 2012 at 7:57 AM, Gerold Glaser gerold.gla...@gmail.comwrote:

 Hi!

 I tried to udpate our component reports from 5.2.6 to 5.3.1.
 But maven could not find any 5.3.1 component-report artifacts.

 Could you tell me a maven repository where this artifact is deployed?

 Best regards,
 Gerold




-- 
Best regards,

Igor Drobiazko
http://tapestry5.de
http://twitter.com/drobiazko


Re: Use Translator

2012-01-25 Thread resign
hi,
i want to say THANKS for help.

Unfortunately it was not possible to get this thing to run, so i made an
work around.
It now works, the problem was - 
no communication between developers



bye

Live long and prosper!

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Use-Translator-tp5165694p5429751.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



A question about the MappedConfiguration add/override

2012-01-25 Thread Sigbjørn Tvedt
Hi.

I am trying to integrate tapestry5-ckeditor(1) in the quickstart examples,
but I have a problem figuring out how tapestry is adding/updating the
application_version key.

In the AppModule, application_version is added by using override(x,y).
In the DevelopmentModule, application_version is added bye using add(x,y).


I am writing the values to the console before they are assigned, and this
is what I get:
-
DevelopmentModule: SymbolConstants.APPLICATION_VERSION=1.0-SNAPSHOT-DEV
AppModule:SymbolConstants.APPLICATION_VERSION=1.0-SNAPSHOT
-


According to the printline, DevelopmentModule is added before AppModule
overrides the application_version.
The part where I have a problem understanding is that the application is
using the value from  developmentModule where I am adding the value instead
of using the value that was overridden in AppModule. I have also noticed
that if I try to move the line that adds the  from DevelopmentModule into
AppModule, I will get and exception saying that the value already exists,
and no key if I try the opposite.



Also, I think I found a bug in the override code (
org.apache.tapestry5.ioc.MappedConfiguration). The comment on the method is:

/**
* Overrides an existing contribution by its key.
*
* @param key
* unique id of value to override
* @param value
* new value, or null to remove the key entirely
* @since 5.1.0.0
*/
void override(K key, V value);

This looks good, but in the ValidatingMappedConfigurationWrapper, an
exception is thrown if the key exists (even if you try to insert a null)


To sum up:
Why is the value inserted by a call to add used instead of the value
inserted by using override
Why should you use override in AppModule and add in other modules
How is it possible to replace a key?
Is the comment wrong at the override code or should I file a jira?



Regards.
Sigbjørn Tvedt


1: https://github.com/plannowtech/tapestry5-ckeditor


Re: Tapestry Component Report 5.3

2012-01-25 Thread Gerold Glaser
Hi Igor!

Thank you very much. That is exactly what I was searching for.

The doc on the tapestry page was confusing for me:
http://tapestry.apache.org/component-report.html

because it shows an example for tapestry5.3


2012/1/25 Igor Drobiazko igor.drobia...@gmail.com

 Starting with 5.3, the component report has been replaced by Tapestry's
 JavaDoc taglets. Read here:


 http://blog.tapestry5.de/index.php/2011/11/09/javadoc-plugin-for-component-reference-documentation/

 If you still prefer to use the component report, it's should be possible to
 use 5.2.6 for 5.3 apps.

 On Wed, Jan 25, 2012 at 7:57 AM, Gerold Glaser gerold.gla...@gmail.com
 wrote:

  Hi!
 
  I tried to udpate our component reports from 5.2.6 to 5.3.1.
  But maven could not find any 5.3.1 component-report artifacts.
 
  Could you tell me a maven repository where this artifact is deployed?
 
  Best regards,
  Gerold
 



 --
 Best regards,

 Igor Drobiazko
 http://tapestry5.de
 http://twitter.com/drobiazko



Re: OnEvent Action Handler Without Template

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

On Wed, 25 Jan 2012 04:33:41 -0200, MarcelS sup...@rogers.com wrote:


Greetings,


Hi!


My problem is that the action handler doesn't seem to be visible, even
though the event method is annotated with the OnEvent annotation.


You should create the event URL by @Inject'ing ComponentResources and  
using its createEventLink(String eventType, Object... context). That's  
exactly what EventLink and ActionLink use. Don't try to write this URLs by  
hand.


Does Tapestry require Action events to be declared in templates in order  
for them to be invoked, or can I simply use the @OnEvent annotation to  
register the event handler?


Absolutely no.

--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,  
and instructor

Owner, 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: A question about the MappedConfiguration add/override

2012-01-25 Thread Howard Lewis Ship
You can only override a key that has been added, and only provide a
single override for any key.  Processing goes in two steps:  first the
adds are applied, then the overrides.  In any case, I'm very confident
about the code and tests for this logic, so if you open a JIRA, be
sure to include a test case demonstrating the failure.

Tapestry has evolved over time; the override logic came later: in
earlier code, similar effects were accomplished by having multiple
services; this is how SymbolSource works to this day: there's the
ApplicationDefaults SymbolProvider, and the FactoryDefaults
SymbolProvider; most likely (without looking at your code) the issue
is that you are mixing and matching between these two services, just
causing your confusion.  For an example, an override inside
FactoryDefaults will be ignored in favor of an add to
ApplicationDefaults.

On Wed, Jan 25, 2012 at 1:15 AM, Sigbjørn Tvedt sigbjo...@gmail.com wrote:
 Hi.

 I am trying to integrate tapestry5-ckeditor(1) in the quickstart examples,
 but I have a problem figuring out how tapestry is adding/updating the
 application_version key.

 In the AppModule, application_version is added by using override(x,y).
 In the DevelopmentModule, application_version is added bye using add(x,y).


 I am writing the values to the console before they are assigned, and this
 is what I get:
 -
 DevelopmentModule: SymbolConstants.APPLICATION_VERSION=1.0-SNAPSHOT-DEV
 AppModule:SymbolConstants.APPLICATION_VERSION=1.0-SNAPSHOT
 -


 According to the printline, DevelopmentModule is added before AppModule
 overrides the application_version.
 The part where I have a problem understanding is that the application is
 using the value from  developmentModule where I am adding the value instead
 of using the value that was overridden in AppModule. I have also noticed
 that if I try to move the line that adds the  from DevelopmentModule into
 AppModule, I will get and exception saying that the value already exists,
 and no key if I try the opposite.



 Also, I think I found a bug in the override code (
 org.apache.tapestry5.ioc.MappedConfiguration). The comment on the method is:

 /**
 * Overrides an existing contribution by its key.
 *
 * @param key
 * unique id of value to override
 * @param value
 * new value, or null to remove the key entirely
 * @since 5.1.0.0
 */
 void override(K key, V value);

 This looks good, but in the ValidatingMappedConfigurationWrapper, an
 exception is thrown if the key exists (even if you try to insert a null)


 To sum up:
 Why is the value inserted by a call to add used instead of the value
 inserted by using override
 Why should you use override in AppModule and add in other modules
 How is it possible to replace a key?
 Is the comment wrong at the override code or should I file a jira?



 Regards.
 Sigbjørn Tvedt


 1: https://github.com/plannowtech/tapestry5-ckeditor



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



jsp jstl in tapestry

2012-01-25 Thread csckid
Is it possible to write jstl or use jsp tag in tapestry?

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/jsp-jstl-in-tapestry-tp5430730p5430730.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: jsp jstl in tapestry

2012-01-25 Thread Lutz Hühnken
Short answer: no.

Long answer: well, you know, impossible is nothing. I you really
must, you could probably mix Tapestry templates and JSP pages in the
same application, but I cannot think of a good reason why one should
attempt this. What are you trying to achieve? Why not use just
Tapestry, no JSP/JSTL?



On Wed, Jan 25, 2012 at 5:53 PM, csckid testnowsh...@gmail.com wrote:
 Is it possible to write jstl or use jsp tag in tapestry?

 --
 View this message in context: 
 http://tapestry.1045711.n5.nabble.com/jsp-jstl-in-tapestry-tp5430730p5430730.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




-- 
altocon GmbH
http://www.altocon.de/
Software Development, Consulting
Hamburg, Germany

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



Re: jsp jstl in tapestry

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

On Wed, 25 Jan 2012 14:53:53 -0200, csckid testnowsh...@gmail.com wrote:


Is it possible to write jstl or use jsp tag in tapestry?


No, and like Lutz, I just can's see why would someone do that. Why do you  
want that, csckid?


--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,  
and instructor

Owner, 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: jsp jstl in tapestry

2012-01-25 Thread csckid
there are few things which will take time if I do it with tapestry. I mean I
am quite beginner with tapestry and didn't feel like researching. But with
jsp I guess I can do it quickly.

In my country tapestry job is very very few. Most of the companies uses jsf. 
I really wonder whether I made the right decision or not? Sorry this is
going off the topic I am learning tapestry since I need to get familiar
with at least one framework.

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/jsp-jstl-in-tapestry-tp5430730p5430810.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: jsp jstl in tapestry

2012-01-25 Thread Taha Hafeez Siddiqi
Hi

Well, your tapestry question has already been answered but I will answer your 
apprehension about Tapestry related work.

Where I live, there is no tapestry work (Kashmir, India) but I get a lot of 
work related to tapestry on internet. I think less people using Tapestry is an 
advantage rather than a disadvantage. You are competing with less people for 
existing tapestry projects and you are faster and more productive than other 
programmers :) for new projects where platform has to be decided.

regards
Taha

On Jan 25, 2012, at 10:51 PM, csckid wrote:

 there are few things which will take time if I do it with tapestry. I mean I
 am quite beginner with tapestry and didn't feel like researching. But with
 jsp I guess I can do it quickly.
 
 In my country tapestry job is very very few. Most of the companies uses jsf. 
 I really wonder whether I made the right decision or not? Sorry this is
 going off the topic I am learning tapestry since I need to get familiar
 with at least one framework.
 
 --
 View this message in context: 
 http://tapestry.1045711.n5.nabble.com/jsp-jstl-in-tapestry-tp5430730p5430810.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
 


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



Re: jsp jstl in tapestry

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

On Wed, 25 Jan 2012 15:21:34 -0200, csckid testnowsh...@gmail.com wrote:

there are few things which will take time if I do it with tapestry. I  
mean I am quite beginner with tapestry and didn't feel like researching.  
But with jsp I guess I can do it quickly.


Examples please. ;)

--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,  
and instructor

Owner, 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: jsp jstl in tapestry

2012-01-25 Thread csckid
Thiago I guess doing things using tapestry will be lot easier than jsp.
The thing is I haven't yet worked on javascript in tapestry, so it looks
little complicated to me. Moreover, as I have already mentioned my country
doesn't have much/or may be none at all jobs. So, I am in a doubt these
days, is it really worth studying.
But, after hearing from Taha.. I did gain little inspiration. 

Taha.. thanks.. For getting tapestry jobs on internet, do you look into
freelance sites? Do they specifically mention its a tapestry job? Sorry I am
new to this area and quite fresh graduate too.

The problem I was working on:
I am trying to make a medical prescription. The doctor will search for
medicine using autocomplete mixin and then he will write how many times
should that medicine be taken in a day and he will click on some button and
that medicine along with the dose will be added into a datagrid. Then the
doctor will search for another medicine and hit that fascinating button
again and second medicine will be added on to the same grid. Pretty simple!!


input t:id=medicineNameTf t:type=TextField t:mixins=autocomplete
/t:submit id=addToList/

When the submit button is clicked the value from medicineNameTf will be
added into an arraylist, and that arraylist is pointing to the datagrid.
Should I use a submit button here? If I add the medicine object to the
arraylist is this calling the server? 

Problem: I have passed patient id as context value. When the submit button
is clicked the context value disappears. 






--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/jsp-jstl-in-tapestry-tp5430730p5431022.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: jsp jstl in tapestry

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

On Wed, 25 Jan 2012 17:00:50 -0200, csckid testnowsh...@gmail.com wrote:

Thiago I guess doing things using tapestry will be lot easier than  
jsp. The thing is I haven't yet worked on javascript in tapestry, so it  
looks

little complicated to me.


Everything about JavaScript you can do in JSP you can do in Tapestry,  
probably in an easier way.


Moreover, as I have already mentioned my country doesn't have much/or  
may be none at all jobs. So, I am in a doubt these

days, is it really worth studying.
But, after hearing from Taha.. I did gain little inspiration.


Even being the best, IMHO, Tapestry isn't the most used Java web framework  
in any place. And Taha's words are very wise.



Taha.. thanks.. For getting tapestry jobs on internet, do you look into
freelance sites? Do they specifically mention its a tapestry job? Sorry  
I am new to this area and quite fresh graduate too.


I got my current job in this mailing list. :)


input t:id=medicineNameTf t:type=TextField t:mixins=autocomplete
/t:submit id=addToList/

When the submit button is clicked the value from medicineNameTf will be
added into an arraylist, and that arraylist is pointing to the datagrid.
Should I use a submit button here?


Yes. Create an event (it's just a name), use  
ComponentResources.createEventLink() to get its URL, then invoke this URL  
through your JavaScript. It will invoke the event handler method. Pass  
information as query parameters. Context should be used for passing data  
that doesn't change between the page rendering and its submission.


--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,  
and instructor

Owner, 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: Want locale to be part of every uri

2012-01-25 Thread Lutz Hühnken
Hi Nillehammer,

I was facing the same task and took the liberty of using your code -
works like a charm! Thanks for that!

One thing though... it will redirect with a 302 - Found code, while
I need it to return a 301 - moved permanently.

Maybe it's because it is late, but I can't seem to figure out how to
change that. Do I need to add a custom ComponentEventResultProcessor?
For a custom result type, as Link is already being handled?

Or am I overlooking something?

I appreciate your help,

Lutz



On Fri, Jul 1, 2011 at 2:54 AM, Nillehammer
tapestry.nilleham...@winfonet.eu wrote:
 Hi Thiago,

 I've never tried a ComponentRequestFilter for doing things that involved
 redirection, as they are invoked way later in the Tapestry processing
 pipeline. Please post if it works. ;)

 It turned out that ComponentRequestFilter has several advandatages over
 RequestFilter:
 1.) If a locale is present in the uri, the PersistentLocale is set. No
 workaround using ComponentEventLinkEncoder's decodeXXX methods needed.
 2.) The ThreadLocale already contains a supported locale that can be safely
 used to set the PersistentLocale. In RequestFilter the ThreadLocale is still
 the raw one taken from the request. Which might not be in supported-locales.
 3.) The methods handlePageRender(...) and handleComponentEvent(...) are a
 directer way of distiguishing between the two types. In
 RequestFilter.service(...) you would have to distinguish them on your own by
 decoding the request with ComponentEventLinkEncoder.
 4.) In handleComponentEvent you only have to set the persistent locale.
 Tapestry generates redirects for component events anyway. So you don't need
 to bother.

 The only (slightly) hard part is building a redirect mechanism in
 handlePageRender(...). I surfed through Tapestry's source code and found out
 that PageRenderRequestHandlerImpl uses a ComponentEventResultProcessor for
 that purpose. I have done that too.

 Thanks to you and Howard for helping. And speeking of locales. Its almost
 03:00 am local time now. I really need to go to bed. My boss is gonna kill
 me, if I oversleep (again).
 Cheers, nillehammer

 P.S. The code:
 PersistentLocaleFilter.java:
 /**
  * Checks, if persistent locale is set. If not will do so and send redirect,
 if
  * necessary.
  */
 final class PersistentLocaleFilter implements ComponentRequestFilter {

    /**
     * Used to set the persistent locale (that's what this filter is all
 about).
     */
    private final PersistentLocale persistentLocale;

    /**
     * Used to determine current locale, if persistent locale is not set.
     */
    private final ThreadLocale threadLocale;

    /**
     * Used to generate a page render link in
     * {@link #handlePageRender(PageRenderRequestParameters,
 ComponentRequestHandler)}
     * .
     */
    private final ComponentEventLinkEncoder componentEventLinkEncoder;

    /**
     * Used to add request parameters to the page render link.
     */
    private final Request request;

    /**
     * Used to process the page render link as a redirect.
     */
    private final ComponentEventResultProcessorLink
 componentEventResultProcessor;

    /**
     * Constructor injecting all dependencies.
     *
     * @param persistentLocale
     * @param threadLocale
     * @param componentEventLinkEncoder
     * @param request
     * @param componentEventResultProcessor
     */
    PersistentLocaleFilter(final PersistentLocale persistentLocale,
            final ThreadLocale threadLocale,
            final ComponentEventLinkEncoder componentEventLinkEncoder,
            final Request request,
            final ComponentEventResultProcessorLink
 componentEventResultProcessor) {

        this.persistentLocale = persistentLocale;

        this.threadLocale = threadLocale;

        this.componentEventLinkEncoder = componentEventLinkEncoder;

        this.request = request;

        this.componentEventResultProcessor = componentEventResultProcessor;
    }

    /**
     * Sets persistent locale if necessary and hands over to the rest of the
     * chain. Tapestry is generating redirects for component events anyway,
 so we
     * do not need to do that.
     */
    @Override
    public final void handleComponentEvent(
            final ComponentEventRequestParameters parameters,
            final ComponentRequestHandler handler ) throws IOException {

        setPersistentLocaleIfNecessary();

        handler.handleComponentEvent(parameters);
    }

    /**
     * Sets persistent locale if necessary and creates a page render link to
     * redirect to.
     */
    @Override
    public final void handlePageRender(
            final PageRenderRequestParameters parameters,
            final ComponentRequestHandler handler ) throws IOException {

        if (setPersistentLocaleIfNecessary()) {

            final Link pageRedirectLink = this.componentEventLinkEncoder
                    .createPageRenderLink(parameters);

            /*
             * 

Passing parameters dynamically to jquery dialog

2012-01-25 Thread Russell John-Baptistr
trying to wrap my brain around how I should pass IDs from my
jquery.dialogajaxlink to my jquery.dialog.

I am using query builder to build a list of hosts. I can display the id and 
other host information of each host, per row.
However whenever the delete dialog box is called via clicking delete
on a row, only the first ID and the first hostname in the list gets
passed to the dialog. This happens regardless of which row's delete
link is clicked.

I feel there is something simple I'm missing. Thanks in advance for any input!


 qb:pagedcolumn

   t:jquery.dialog t:clientId=myDialog

   t:zone t:id=myZone id=myZone
   !--   br/brAre you sure you want to
delete host ${host.hostname}?
  input type=input class=report2 name=host
value=${host.hostid}/--
form
   t:actionlink t:type=button t:id=DeleteMe
context=${host.hostId} t:mixins=jquery/button
Delete Host ${host.hostid}
   /t:actionlink
/form
   /t:zone
   /t:jquery.dialog

  t:jquery.dialogajaxlink t:dialog=myDialog
class=report t:zone=myZone t:context=${host.hostid}
   span class=ss_sprite ss_bin/span
   Delete ${host.hostid}
   /t:jquery.dialogajaxlink
   br/br

   /qb:pagedcolumn



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



Re: Passing parameters dynamically to jquery dialog

2012-01-25 Thread François Facon
Hi

Did you check the code related to http://tapestry5-jquery.com/core/docsgrid?


2012/1/25 Russell John-Baptistr rjb...@yahoo.com:
 trying to wrap my brain around how I should pass IDs from my
 jquery.dialogajaxlink to my jquery.dialog.

 I am using query builder to build a list of hosts. I can display the id and 
 other host information of each host, per row.
 However whenever the delete dialog box is called via clicking delete
 on a row, only the first ID and the first hostname in the list gets
 passed to the dialog. This happens regardless of which row's delete
 link is clicked.

 I feel there is something simple I'm missing. Thanks in advance for any input!


     qb:pagedcolumn

               t:jquery.dialog t:clientId=myDialog

                   t:zone t:id=myZone id=myZone
                       !--   br/brAre you sure you want to
 delete host ${host.hostname}?
                  input type=input class=report2 name=host
 value=${host.hostid}/--
                            form
                       t:actionlink t:type=button t:id=DeleteMe
 context=${host.hostId} t:mixins=jquery/button
                            Delete Host     ${host.hostid}
                       /t:actionlink
                            /form
                   /t:zone
               /t:jquery.dialog

              t:jquery.dialogajaxlink t:dialog=myDialog
 class=report t:zone=myZone t:context=${host.hostid}
                   span class=ss_sprite ss_bin/span
                   Delete ${host.hostid}
               /t:jquery.dialogajaxlink
               br/br

           /qb:pagedcolumn



 -
 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: A question about the MappedConfiguration add/override

2012-01-25 Thread Sigbjørn Tvedt
You are correct about the processing. The thing that threw me off track is
that the quickstart application mixes where it overrides the symbol.

AppModule has a contributeFactoryDefaults where it sets the application
version and it says that it is possible to override this further in in the
DevelopmentModule wihtout saying that this has to be done in
contributeApplicationDefaults. (I added a jira with a suggestion for an
amendment to the current text in the quickstart. TAP5-1830)




As for the override, I have not been able to create a test case yet (I
think grade dislikes me), but reproducing is quite simple.

In contributeApplicationDefaults (DevelopmentModule.java) I added the
following line:
  configuration.override(SymbolConstants.APPLICATION_VERSION,
1.0-SNAPSHOT-DEV-override);

This runs as expected, but if I want to remove the key using this line
afterwards, I get an exception stating that the key exists:
  configuration.override(SymbolConstants.APPLICATION_VERSION, null);

According to the documentation(2), a null value should remove the key, not
throw an exception.(@param value - new value, or null to remove the key
entirely)

Do you remember if this is a feature that is supposed to be removed and the
documentation needs to be updated, or should I try to create a patch+test
for this?

Regards
Sigbjørn Tvedt

2:
http://tapestry.apache.org/tapestry5/apidocs/org/apache/tapestry5/ioc/MappedConfiguration.html#override(K,
V)





On 25 January 2012 17:23, Howard Lewis Ship hls...@gmail.com wrote:

 You can only override a key that has been added, and only provide a
 single override for any key.  Processing goes in two steps:  first the
 adds are applied, then the overrides.  In any case, I'm very confident
 about the code and tests for this logic, so if you open a JIRA, be
 sure to include a test case demonstrating the failure.

 Tapestry has evolved over time; the override logic came later: in
 earlier code, similar effects were accomplished by having multiple
 services; this is how SymbolSource works to this day: there's the
 ApplicationDefaults SymbolProvider, and the FactoryDefaults
 SymbolProvider; most likely (without looking at your code) the issue
 is that you are mixing and matching between these two services, just
 causing your confusion.  For an example, an override inside
 FactoryDefaults will be ignored in favor of an add to
 ApplicationDefaults.

 On Wed, Jan 25, 2012 at 1:15 AM, Sigbjørn Tvedt sigbjo...@gmail.com
 wrote:
  Hi.
 
  I am trying to integrate tapestry5-ckeditor(1) in the quickstart
 examples,
  but I have a problem figuring out how tapestry is adding/updating the
  application_version key.
 
  In the AppModule, application_version is added by using override(x,y).
  In the DevelopmentModule, application_version is added bye using
 add(x,y).
 
 
  I am writing the values to the console before they are assigned, and this
  is what I get:
  -
  DevelopmentModule: SymbolConstants.APPLICATION_VERSION=1.0-SNAPSHOT-DEV
  AppModule:SymbolConstants.APPLICATION_VERSION=1.0-SNAPSHOT
  -
 
 
  According to the printline, DevelopmentModule is added before AppModule
  overrides the application_version.
  The part where I have a problem understanding is that the application is
  using the value from  developmentModule where I am adding the value
 instead
  of using the value that was overridden in AppModule. I have also noticed
  that if I try to move the line that adds the  from DevelopmentModule into
  AppModule, I will get and exception saying that the value already exists,
  and no key if I try the opposite.
 
 
 
  Also, I think I found a bug in the override code (
  org.apache.tapestry5.ioc.MappedConfiguration). The comment on the method
 is:
 
  /**
  * Overrides an existing contribution by its key.
  *
  * @param key
  * unique id of value to override
  * @param value
  * new value, or null to remove the key entirely
  * @since 5.1.0.0
  */
  void override(K key, V value);
 
  This looks good, but in the ValidatingMappedConfigurationWrapper, an
  exception is thrown if the key exists (even if you try to insert a
 null)
 
 
  To sum up:
  Why is the value inserted by a call to add used instead of the value
  inserted by using override
  Why should you use override in AppModule and add in other modules
  How is it possible to replace a key?
  Is the comment wrong at the override code or should I file a jira?
 
 
 
  Regards.
  Sigbjørn Tvedt
 
 
  1: https://github.com/plannowtech/tapestry5-ckeditor



 --
 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: jsp jstl in tapestry

2012-01-25 Thread Taha Hafeez Siddiqi
Hi

I get work from our mailing list, my github 
repository(https://github.com/tawus) and my blog (http://tawus.wordpress.com) 
(Pretty much every time I help tapestry it helps me back :)). A lot of people 
use guru.com, elance.com, rent-a-coder.com etc. 

regards
Taha

On Jan 26, 2012, at 12:30 AM, csckid wrote:

 Thiago I guess doing things using tapestry will be lot easier than jsp.
 The thing is I haven't yet worked on javascript in tapestry, so it looks
 little complicated to me. Moreover, as I have already mentioned my country
 doesn't have much/or may be none at all jobs. So, I am in a doubt these
 days, is it really worth studying.
 But, after hearing from Taha.. I did gain little inspiration. 
 
 Taha.. thanks.. For getting tapestry jobs on internet, do you look into
 freelance sites? Do they specifically mention its a tapestry job? Sorry I am
 new to this area and quite fresh graduate too.
 
 The problem I was working on:
 I am trying to make a medical prescription. The doctor will search for
 medicine using autocomplete mixin and then he will write how many times
 should that medicine be taken in a day and he will click on some button and
 that medicine along with the dose will be added into a datagrid. Then the
 doctor will search for another medicine and hit that fascinating button
 again and second medicine will be added on to the same grid. Pretty simple!!
 
 
 input t:id=medicineNameTf t:type=TextField t:mixins=autocomplete
 /t:submit id=addToList/
 
 When the submit button is clicked the value from medicineNameTf will be
 added into an arraylist, and that arraylist is pointing to the datagrid.
 Should I use a submit button here? If I add the medicine object to the
 arraylist is this calling the server? 
 
 Problem: I have passed patient id as context value. When the submit button
 is clicked the context value disappears. 
 
 
 
 
 
 
 --
 View this message in context: 
 http://tapestry.1045711.n5.nabble.com/jsp-jstl-in-tapestry-tp5430730p5431022.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
 


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



Re: [tynamo-user] Re: tapestry-resteasy 0.3.0 snapshot stable enough?

2012-01-25 Thread Yohan Yudanara
Hi..

Sorry for the late reply.
I've tried using tapestry-resteasy 0.3.0-SNAPSHOT with tapestry 5.3.1.
But I've got problem now.

When I'm accessing All of my REST URL, I've got this exception:

26 Jan 2012 08:33:26,965 [WARN] core.SynchronousDispatcher Failed executing
GET /authentication/challenge
org.jboss.resteasy.spi.ReaderException:
org.jboss.resteasy.core.ExceptionAdapter:  : null
at
org.jboss.resteasy.core.MessageBodyParameterInjector.inject(MessageBodyParameterInjector.java:202)
at
org.jboss.resteasy.core.MethodInjectorImpl.injectArguments(MethodInjectorImpl.java:123)
at
org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:146)
at
org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:257)
at
org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:222)
at
org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:211)
at
org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:525)
at
org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:502)
at
org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:119)
at
org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:208)
at
org.tynamo.resteasy.ResteasyRequestFilter.service(ResteasyRequestFilter.java:96)
at $HttpServletRequestFilter_2a4551aa48d.service(Unknown Source)
at $HttpServletRequestHandler_2a4551aa492.service(Unknown Source)
at
org.apache.tapestry5.internal.services.IgnoredPathsFilter.service(IgnoredPathsFilter.java:62)
at $HttpServletRequestFilter_2a4551aa48e.service(Unknown Source)
at $HttpServletRequestHandler_2a4551aa492.service(Unknown Source)
at
org.apache.tapestry5.services.TapestryModule$1.service(TapestryModule.java:852)
at $HttpServletRequestHandler_2a4551aa492.service(Unknown Source)
at $HttpServletRequestHandler_2a4551aa48c.service(Unknown Source)
at
org.apache.tapestry5.TapestryFilter.doFilter(TapestryFilter.java:171)

I've moved the @Path, @Get, and @Produces annotation to interface.
Do you have any clue about this problem?

Previously, my rest web service working smooth with T 5.2.6 and
tapestry-resteasy 0.2.1

Thanks in advance..

Best regards,
Yohan Yudanara

On Mon, Jan 16, 2012 at 4:18 PM, Alejandro Scandroli 
ascandr...@codehaus.org wrote:

 Hi Yohan

 
  When does tapestry-resteasy 0.3.0 will be released?
 

It will be released in a couple of weeks. I just want to add a new
 Symbol to avoid scanning the .rest package if you don't need to.

  Is it stable enough to use it?
 
I think it is but I just recently started to test it in one of my
 projects. There is almost no new code in it, only dependency upgrades.

 
  I want to upgrade because I need to use resteasy-jaxrs-2.3.0.GA,
 instead of
  resteasy-jaxrs-2.0.1.GA
 
Please try it out, give it a shot and let me know if you find any
 issues. BTW, are you also going to upgrade to Tapestry 5.3?

  Thank you...


 Cheers.
 Alejandro.

 -
 To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email





Re: Passing parameters dynamically to jquery dialog

2012-01-25 Thread Taha Hafeez Siddiqi
Hi

If your dialog is in some kind of a loop you have to ensure t:clientId is 
unique for each dialog

something like

div t:type='jquery/dialog' t:clientId='prop:dialogId'
 ...
/div

a t:type='jquery/dialogLink' dialog='prop:dialogId'Link/a

and then in your java file

public String getDialogId(){
   return myDialog + loopIndex;
}

regards
Taha

On Jan 26, 2012, at 2:43 AM, Russell John-Baptistr wrote:

 trying to wrap my brain around how I should pass IDs from my
 jquery.dialogajaxlink to my jquery.dialog.
 
 I am using query builder to build a list of hosts. I can display the id and 
 other host information of each host, per row.
 However whenever the delete dialog box is called via clicking delete
 on a row, only the first ID and the first hostname in the list gets
 passed to the dialog. This happens regardless of which row's delete
 link is clicked.
 
 I feel there is something simple I'm missing. Thanks in advance for any input!
 
 
 qb:pagedcolumn
 
   t:jquery.dialog t:clientId=myDialog
 
   t:zone t:id=myZone id=myZone
   !--   br/brAre you sure you want to
 delete host ${host.hostname}?
  input type=input class=report2 name=host
 value=${host.hostid}/--
form
   t:actionlink t:type=button t:id=DeleteMe
 context=${host.hostId} t:mixins=jquery/button
Delete Host ${host.hostid}
   /t:actionlink
/form
   /t:zone
   /t:jquery.dialog
 
  t:jquery.dialogajaxlink t:dialog=myDialog
 class=report t:zone=myZone t:context=${host.hostid}
   span class=ss_sprite ss_bin/span
   Delete ${host.hostid}
   /t:jquery.dialogajaxlink
   br/br
 
   /qb:pagedcolumn
 
 
 
 -
 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: [tynamo-user] Re: tapestry-resteasy 0.3.0 snapshot stable enough?

2012-01-25 Thread Yohan Yudanara
When I'm using tapestry 5.3.1 with  tapestry-resteasy 5.2.1, I also get
similar exception:

org.jboss.resteasy.spi.BadRequestException: content-type was null and
expecting to extract a body into public abstract java.lang.String
MyAuthentication.requestChallenge(java.lang.Long,java.lang.String)
at
org.jboss.resteasy.core.MessageBodyParameterInjector.inject(MessageBodyParameterInjector.java:131)
at
org.jboss.resteasy.core.MethodInjectorImpl.injectArguments(MethodInjectorImpl.java:114)

my rest services is not on autodiscovery package.

On Thu, Jan 26, 2012 at 8:56 AM, Yohan Yudanara yohan.yudan...@gmail.comwrote:

 Hi..

 Sorry for the late reply.
 I've tried using tapestry-resteasy 0.3.0-SNAPSHOT with tapestry 5.3.1.
 But I've got problem now.

 When I'm accessing All of my REST URL, I've got this exception:

 26 Jan 2012 08:33:26,965 [WARN] core.SynchronousDispatcher Failed
 executing GET /authentication/challenge
 org.jboss.resteasy.spi.ReaderException:
 org.jboss.resteasy.core.ExceptionAdapter:  : null
 at
 org.jboss.resteasy.core.MessageBodyParameterInjector.inject(MessageBodyParameterInjector.java:202)
 at
 org.jboss.resteasy.core.MethodInjectorImpl.injectArguments(MethodInjectorImpl.java:123)
 at
 org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:146)
 at
 org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:257)
 at
 org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:222)
 at
 org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:211)
 at
 org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:525)
 at
 org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:502)
 at
 org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:119)
 at
 org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:208)
 at
 org.tynamo.resteasy.ResteasyRequestFilter.service(ResteasyRequestFilter.java:96)
 at $HttpServletRequestFilter_2a4551aa48d.service(Unknown Source)
 at $HttpServletRequestHandler_2a4551aa492.service(Unknown Source)
 at
 org.apache.tapestry5.internal.services.IgnoredPathsFilter.service(IgnoredPathsFilter.java:62)
 at $HttpServletRequestFilter_2a4551aa48e.service(Unknown Source)
 at $HttpServletRequestHandler_2a4551aa492.service(Unknown Source)
 at
 org.apache.tapestry5.services.TapestryModule$1.service(TapestryModule.java:852)
 at $HttpServletRequestHandler_2a4551aa492.service(Unknown Source)
 at $HttpServletRequestHandler_2a4551aa48c.service(Unknown Source)
 at
 org.apache.tapestry5.TapestryFilter.doFilter(TapestryFilter.java:171)

 I've moved the @Path, @Get, and @Produces annotation to interface.
 Do you have any clue about this problem?

 Previously, my rest web service working smooth with T 5.2.6 and
 tapestry-resteasy 0.2.1

 Thanks in advance..

 Best regards,
 Yohan Yudanara


 On Mon, Jan 16, 2012 at 4:18 PM, Alejandro Scandroli 
 ascandr...@codehaus.org wrote:

 Hi Yohan

 
  When does tapestry-resteasy 0.3.0 will be released?
 

It will be released in a couple of weeks. I just want to add a new
 Symbol to avoid scanning the .rest package if you don't need to.

  Is it stable enough to use it?
 
I think it is but I just recently started to test it in one of my
 projects. There is almost no new code in it, only dependency upgrades.

 
  I want to upgrade because I need to use resteasy-jaxrs-2.3.0.GA,
 instead of
  resteasy-jaxrs-2.0.1.GA
 
Please try it out, give it a shot and let me know if you find any
 issues. BTW, are you also going to upgrade to Tapestry 5.3?

  Thank you...


 Cheers.
 Alejandro.

 -
 To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email






Re: [tynamo-user] Re: tapestry-resteasy 0.3.0 snapshot stable enough?

2012-01-25 Thread Yohan Yudanara
This error happens when I'm moving  @GET, @Produces, @Path annotations from
service implementation to service interface.

I've tried using tapestry-resteasy 0.2.1 and tapestry 5.2.6 with
annotations on service interface, and then the same error happened.
When I move the annotations to service implementation, everything went
right.

I'm using Tapestry 5.3, so I need to move the annotations to service
interface as described on
http://docs.codehaus.org/display/TYNAMO/tapestry-resteasy+guide.

Do you know how to overcome this problem?

Thanks in advance.

Best regards,
Yohan Yudanara


On Thu, Jan 26, 2012 at 10:54 AM, Yohan Yudanara
yohan.yudan...@gmail.comwrote:

 When I'm using tapestry 5.3.1 with  tapestry-resteasy 5.2.1, I also get
 similar exception:

 org.jboss.resteasy.spi.BadRequestException: content-type was null and
 expecting to extract a body into public abstract java.lang.String
 MyAuthentication.requestChallenge(java.lang.Long,java.lang.String)
 at
 org.jboss.resteasy.core.MessageBodyParameterInjector.inject(MessageBodyParameterInjector.java:131)
 at
 org.jboss.resteasy.core.MethodInjectorImpl.injectArguments(MethodInjectorImpl.java:114)

 my rest services is not on autodiscovery package.

 On Thu, Jan 26, 2012 at 8:56 AM, Yohan Yudanara 
 yohan.yudan...@gmail.comwrote:

 Hi..

 Sorry for the late reply.
 I've tried using tapestry-resteasy 0.3.0-SNAPSHOT with tapestry 5.3.1.
 But I've got problem now.

 When I'm accessing All of my REST URL, I've got this exception:

 26 Jan 2012 08:33:26,965 [WARN] core.SynchronousDispatcher Failed
 executing GET /authentication/challenge
 org.jboss.resteasy.spi.ReaderException:
 org.jboss.resteasy.core.ExceptionAdapter:  : null
 at
 org.jboss.resteasy.core.MessageBodyParameterInjector.inject(MessageBodyParameterInjector.java:202)
 at
 org.jboss.resteasy.core.MethodInjectorImpl.injectArguments(MethodInjectorImpl.java:123)
 at
 org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:146)
 at
 org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:257)
 at
 org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:222)
 at
 org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:211)
 at
 org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:525)
 at
 org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:502)
 at
 org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:119)
 at
 org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:208)
 at
 org.tynamo.resteasy.ResteasyRequestFilter.service(ResteasyRequestFilter.java:96)
 at $HttpServletRequestFilter_2a4551aa48d.service(Unknown Source)
 at $HttpServletRequestHandler_2a4551aa492.service(Unknown Source)
 at
 org.apache.tapestry5.internal.services.IgnoredPathsFilter.service(IgnoredPathsFilter.java:62)
 at $HttpServletRequestFilter_2a4551aa48e.service(Unknown Source)
 at $HttpServletRequestHandler_2a4551aa492.service(Unknown Source)
 at
 org.apache.tapestry5.services.TapestryModule$1.service(TapestryModule.java:852)
 at $HttpServletRequestHandler_2a4551aa492.service(Unknown Source)
 at $HttpServletRequestHandler_2a4551aa48c.service(Unknown Source)
 at
 org.apache.tapestry5.TapestryFilter.doFilter(TapestryFilter.java:171)

 I've moved the @Path, @Get, and @Produces annotation to interface.
 Do you have any clue about this problem?

 Previously, my rest web service working smooth with T 5.2.6 and
 tapestry-resteasy 0.2.1

 Thanks in advance..

 Best regards,
 Yohan Yudanara


 On Mon, Jan 16, 2012 at 4:18 PM, Alejandro Scandroli 
 ascandr...@codehaus.org wrote:

 Hi Yohan

 
  When does tapestry-resteasy 0.3.0 will be released?
 

It will be released in a couple of weeks. I just want to add a new
 Symbol to avoid scanning the .rest package if you don't need to.

  Is it stable enough to use it?
 
I think it is but I just recently started to test it in one of my
 projects. There is almost no new code in it, only dependency upgrades.

 
  I want to upgrade because I need to use resteasy-jaxrs-2.3.0.GA,
 instead of
  resteasy-jaxrs-2.0.1.GA
 
Please try it out, give it a shot and let me know if you find any
 issues. BTW, are you also going to upgrade to Tapestry 5.3?

  Thank you...


 Cheers.
 Alejandro.

 -
 To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email







Re: [tynamo-user] Re: tapestry-resteasy 0.3.0 snapshot stable enough?

2012-01-25 Thread Yohan Yudanara
After long investigation
I realized that I forgot to move @QueryParam annotation to service
interface.. :)

Now everything works great with Tapestry 5.3.1 and
tapestry-resteasy-0.3.0-SNAPSHOT :)


On Thu, Jan 26, 2012 at 11:17 AM, Yohan Yudanara
yohan.yudan...@gmail.comwrote:

 This error happens when I'm moving  @GET, @Produces, @Path annotations
 from service implementation to service interface.

 I've tried using tapestry-resteasy 0.2.1 and tapestry 5.2.6 with
 annotations on service interface, and then the same error happened.
 When I move the annotations to service implementation, everything went
 right.

 I'm using Tapestry 5.3, so I need to move the annotations to service
 interface as described on
 http://docs.codehaus.org/display/TYNAMO/tapestry-resteasy+guide.

 Do you know how to overcome this problem?

 Thanks in advance.

 Best regards,
 Yohan Yudanara


 On Thu, Jan 26, 2012 at 10:54 AM, Yohan Yudanara yohan.yudan...@gmail.com
  wrote:

 When I'm using tapestry 5.3.1 with  tapestry-resteasy 5.2.1, I also get
 similar exception:

 org.jboss.resteasy.spi.BadRequestException: content-type was null and
 expecting to extract a body into public abstract java.lang.String
 MyAuthentication.requestChallenge(java.lang.Long,java.lang.String)
 at
 org.jboss.resteasy.core.MessageBodyParameterInjector.inject(MessageBodyParameterInjector.java:131)
 at
 org.jboss.resteasy.core.MethodInjectorImpl.injectArguments(MethodInjectorImpl.java:114)

 my rest services is not on autodiscovery package.

 On Thu, Jan 26, 2012 at 8:56 AM, Yohan Yudanara yohan.yudan...@gmail.com
  wrote:

 Hi..

 Sorry for the late reply.
 I've tried using tapestry-resteasy 0.3.0-SNAPSHOT with tapestry 5.3.1.
 But I've got problem now.

 When I'm accessing All of my REST URL, I've got this exception:

 26 Jan 2012 08:33:26,965 [WARN] core.SynchronousDispatcher Failed
 executing GET /authentication/challenge
 org.jboss.resteasy.spi.ReaderException:
 org.jboss.resteasy.core.ExceptionAdapter:  : null
 at
 org.jboss.resteasy.core.MessageBodyParameterInjector.inject(MessageBodyParameterInjector.java:202)
 at
 org.jboss.resteasy.core.MethodInjectorImpl.injectArguments(MethodInjectorImpl.java:123)
 at
 org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:146)
 at
 org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:257)
 at
 org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:222)
 at
 org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:211)
 at
 org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:525)
 at
 org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:502)
 at
 org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:119)
 at
 org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:208)
 at
 org.tynamo.resteasy.ResteasyRequestFilter.service(ResteasyRequestFilter.java:96)
 at $HttpServletRequestFilter_2a4551aa48d.service(Unknown Source)
 at $HttpServletRequestHandler_2a4551aa492.service(Unknown Source)
 at
 org.apache.tapestry5.internal.services.IgnoredPathsFilter.service(IgnoredPathsFilter.java:62)
 at $HttpServletRequestFilter_2a4551aa48e.service(Unknown Source)
 at $HttpServletRequestHandler_2a4551aa492.service(Unknown Source)
 at
 org.apache.tapestry5.services.TapestryModule$1.service(TapestryModule.java:852)
 at $HttpServletRequestHandler_2a4551aa492.service(Unknown Source)
 at $HttpServletRequestHandler_2a4551aa48c.service(Unknown Source)
 at
 org.apache.tapestry5.TapestryFilter.doFilter(TapestryFilter.java:171)

 I've moved the @Path, @Get, and @Produces annotation to interface.
 Do you have any clue about this problem?

 Previously, my rest web service working smooth with T 5.2.6 and
 tapestry-resteasy 0.2.1

 Thanks in advance..

 Best regards,
 Yohan Yudanara


 On Mon, Jan 16, 2012 at 4:18 PM, Alejandro Scandroli 
 ascandr...@codehaus.org wrote:

 Hi Yohan

 
  When does tapestry-resteasy 0.3.0 will be released?
 

It will be released in a couple of weeks. I just want to add a new
 Symbol to avoid scanning the .rest package if you don't need to.

  Is it stable enough to use it?
 
I think it is but I just recently started to test it in one of my
 projects. There is almost no new code in it, only dependency upgrades.

 
  I want to upgrade because I need to use resteasy-jaxrs-2.3.0.GA,
 instead of
  resteasy-jaxrs-2.0.1.GA
 
Please try it out, give it a shot and let me know if you find any
 issues. BTW, are you also going to upgrade to Tapestry 5.3?

  Thank you...


 Cheers.
 Alejandro.

 -
 To unsubscribe from this list, please visit:


migration / porting idea

2012-01-25 Thread Chris Mylonas
Hi Tap List -

Disclaimer:  I'm more systems than dev at the moment, but I can fumble my way 
through J2EE deving and have implemented a standard protocol for telephony 
signalling in the early 2000's - I'm not pure dev these days because 10 years 
ago the complexity of java web dev put me off (read: xml config).  But tapestry 
is great!


Short version:
Drupal - Tapestry port  -  has anyone done something similar with _any_ CMS to 
tapestry?



If the CSS is available, and I make my blocks/template/components the same 
names/layout - I can't imagine there being much more special-ness to add.
Comments?   Is it that simple?

Why?

1..  Personally, I'm sick of doing PHP stuff.  I'm an old time hack these days 
:)  and I like my network and systems than web stuff.   Nothing is 
out-of-the-box magic, so if I _have_ to do stuff, I'd rather do it in tapestry.

2.. To create the ability to port from a PHP(any) CMS to tapestry.

The way I see it - the model is pretty much there in the DB, lots of people 
have learned OO stuff  - and you can craft most of it in a day or two if a) 
it's a crappy schema; or, b) it's just not the type of thing you're good at.  
You could point at it with POJOGEN (http://pojogen.sourceforge.net/ - used it, 
no probs for me) or eclipse I believe.

Longer version:  if you're still reading - cool - me too :)

I've had an idea for ages - I like just hacking at bits of code here and there 
but as I get a little bit older there's a little bit less and less wanting to 
do so - a comment from a tapestry legend (GC of jumpstart fame) set it off - 
why dive into an existing framework to find it's bugs and mangle with it when 
you don't have to with tapestry.

Having used drupal for 4+ years for prototypes and what not, I just don't like 
PHP.   I've got some junk testing libs that come-to-think-off-it will put up on 
github if they still work - e.g. webservices etc.  great - drupal for instance 
is just coming out of v6 and into v7 (well for 12 months) but v6 websites are 
still out there in the thousands.

If I get started, on it (which I will) is there anyone that's willing to follow 
me down the rabbit hole?

On a slight tangent:
Same with sugarcrm - the last CRM migration I did was 5 years ago (it seems, 
maybe).  It's an OK CRM but a CRM is a massive undertaking.   These CRMs charge 
$12 - $20+/user/month -  tapestry community could make something like that 
within 12 months.  Sort of Co-Op style.

/rant

Chris

EventContext.toString() ?

2012-01-25 Thread Gunnar Eketrapp
Hi!

Some time ago I suggested to add a toString method to EventContext in order
for it to be properly logged by the @Log annotation.

I coded a workaround at that time.

This was fixed in T5 for some time ago .

My old workaround code is still there but now I noticed that


@Log
Object onActivate(EventContext ctx) { // groupId, mode
logEnter(log, ctx);   // My fix

--


T5.3.1 writes this .. via @Log

2012-01-26 08:25:18.152 [8952910@qtp-12934710-3] DEBUG
utskicket.pages.group.EditMember - [ENTER] onActivate(EventContext: null)


My log fix writes this ..

2012-01-26 08:25:18.152 [8952910@qtp-12934710-3] DEBUG
utskicket.pages.group.EditMember - [ENTER] onActivate(2,skapa)



protected void logEnter(Logger l, EventContext ctx) {
l.debug([ENTER] onActivate( + toString(ctx) + ));
}

protected void logExit(Logger l, EventContext ctx) {
l.debug([ EXIT] onActivate( + toString(ctx) + ));
}

public static String toString(EventContext ctx) {
StringBuilder b = new StringBuilder();
String[] ss = ctx.toStrings();
for (String s : ss) {
if (b.length()  0)
b.append(,);
b.append(s);
}
return b.toString();
}