Error Tag on line 158 contains more than one 'valuebool' attribute.

2009-11-10 Thread Rayden30

Hello,


First I m a beginer in Tapestry... Actually I m developping a webview which
has to display an ordered array as below:

Root 1
Root 2
Root 3
 |Child1
 |Child2
   |---Child 2.1
   |---Child 2.2

...

My code in local working perfectly... However when I intrated in my tapestry
application it idisplays the following exception:

Tag  on line 158 contains more than one 'valuebool' attribute.

I checked on webview and there is no tags which are using this variable
name. I try to rename in toto. And the results is the same:

Below you can see the code:

In bold where Apache detects an exception.
   
function clear(result)
{
   
var res= result.replace('','');
var res= res.replace('','');
var res= res.replace('[','');
var res= res.replace(']','');
var res= res.replace('[','');
var res= res.replace(']','');
   
return res;

}
function who_is_root(tab_result)
{
   
var i=3;
var root=new Array();
var y=0;
var valuebool;
var z;
while (i  tab_result.length)
{
   
var id_parent=clear(tab_result[i]);
valuebool=false;
z=1;
   
   
while (z  tab_result.length)
{
   
if(clear(tab_result[z])==id_parent)
{
// An exception is up
   
valuebool=true;
   
}
 //Sometimes the exception
is up for z variables
z=z+4;
   
}
   
if (!valuebool)
{
   
root[y]=clear(tab_result[i-3]);
root[y+1]=clear(tab_result[i-2]);
root[y+2]=clear(tab_result[i-1]);
root[y+3]=clear(tab_result[i]);
   
y=y+4;
}
   
i=i+4;
   
}

return(root);

}  
 
function afficher_enfant(id_root,y,result)
{
   

   
if (y result.length)
{
   
   
if(id_root==clear(result[y]))
{
//Afficher l'enfant ci-dessous
document.write(tr);
document.write(td + clear(result[y-3]) +
/td);
document.write(td + clear(result[y-2]) +
/td);
document.write(td + clear(result[y-1]) +
/td);
document.write(td + clear(result[y]) +
/td);
document.write(/tr);
   
}
   
y=y+4;
   
afficher_enfant(id_root,y,result);
   
}
   
}



   
  function afficher_ma_config(code,result)
  {
result=result.split(,);
  var tab_root=who_is_root(result);
   
var i=1;
 
document.write(table align='center' class='tablesorter');
document.write(theadtr tdZone
List/td/trtrthName/ththID/ththType/ththParents/th/tr/thead);
document.write(tbody);

while(itab_root.length)
{
   
document.write(tr);
document.write(td + clear(tab_root[i-1]) +
/td);
document.write(td + 

Re: [Tapestry Central] Next Steps for Tapestry

2009-11-10 Thread Borut Bolčina
Hi,

2009/11/10 Inge Solvoll inge.tapes...@gmail.com


 Maybe it would be a good idea to find out what most newcomers ask for, and
 just put it in there, even if it doesn't make that much sense? It COULD
 attract more people.


That is exactly why I opened http://tapestry5.ideascale.com/

-borut


Re: [Tapestry Central] Next Steps for Tapestry

2009-11-10 Thread Borut Bolčina
And of course we can make more of this:
http://www.questionpro.com/akira/ShowResults?id=1151880mode=data

The above was initiated long time ago:
http://bbwebcraft.blogspot.com/2009/02/wishlist-and-survey-for-tapestry-5.html

-borut

2009/11/10 Borut Bolčina borut.bolc...@gmail.com

 Hi,

 2009/11/10 Inge Solvoll inge.tapes...@gmail.com



 Maybe it would be a good idea to find out what most newcomers ask for, and
 just put it in there, even if it doesn't make that much sense? It COULD
 attract more people.


 That is exactly why I opened http://tapestry5.ideascale.com/

 -borut



[T5.1] posting externally with t:form

2009-11-10 Thread Jack Nuzbit
Hi All,
I've got a rather complex form that I'd like to use the tapestry form
components to initialise but it needs to post externally.
Is there a way to do this with tapestry? Form components require a
surrounding t:form element which then overrides the action. I can't see any
way around this without some javascript hack or avoiding tapestry components
completely.

Thanks,

Jack


Re: IoC container performance issues

2009-11-10 Thread Adriaan Joubert
We'll do that. Thanks!

Adriaan

2009/11/9 Howard Lewis Ship hls...@gmail.com:
 The container is organized for functionality, not performance, with
 service lookups because lookups normally occur once.

 Suggestion: create a lookup service that has getters for all the
 other keys services you want. Inject those other services into its
 implementation. Obtain it from the Registry. Store it in a global and
 use that for non-service code to gain access to IoC services.

 On Mon, Nov 9, 2009 at 2:15 AM, Adriaan Joubert adriaan...@gmail.com wrote:
 Hi,

 we hit some performance issues using the tapestry IoC. The problem is
 that we have legacy apps where we do need to do a lot of registry
 look-ups - takes a while to rewrite everything to have services
 injected via constructors everywhere. In our particular case we have a
 few hundred services and in one instance a static call was replaced
 with a registry look-up and a call on the service. It turns out that a
 registry look-up is rather slower than we expected.

 A colleague has looked into this and says:

 We are having some performance issues with the getService() method in
 the 'RegistryImpl' class. Looking at the source code it seems that there
 are some linear list searches going on in there that could perhaps be
 replaced by more efficient map lookups, if possible.

 Has anybody looked into the performance of the IoC?

 Thanks,

 Adriaan

 -
 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



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



Re: How to avoid contribution to TypeCoercer in my case.

2009-11-10 Thread sandeepraj singh

Hi Inge

The solution you provide works fine.
But to a lesser mortal like me, the description of ITERATION in
LoopFormState is a bit difficult
/**
  * Only enough state to iterate over the source values is stored. When the
Form is submitted, 
the Loop will  re-acquire its source and iterate over it. This is equivalent
to volatile mode in Tapestry 5.0. This can be subject to race conditions
when the values within the source change between render and submit.*/

From above its ok to guess what it is doing, but how is it solving the
co-ercion problem

Any discussions?

Thanks
Sandeep


Inge Solvoll-2 wrote:
 
 I struggled a lot with loops in forms, I still do to tell you the truth.
 See
 this page in jumpstart, it helped me a lot. If you use
 formstate=ITERATION, it won't ask you for a coercer. Formstate and loops
 is one of the harder concepts of T5 in my opinion, it doesn't seem logical
 to me so I don't understand what to do.
 
 http://202.177.217.122:8080/jumpstart/examples/tables/editableloop1
 
 
 
 On Tue, Nov 10, 2009 at 7:47 AM, sandeepraj singh 
 sandeepraj.si...@atosorigin.com wrote:
 

 Hi Niclas,
 Sorry for a delayed response.
 The solution you suggest is not working.
 My Original Code is like below

 t:loop source=mYlist value=prop:MyDataObject  ...
 myDataObject.myOtherContent
 /t:loop

 As per your suggestion i changed it to
 t:loop source=mYlist value=prop:MyDataObject
 volatile=MyDataObject.myContent ...
 myDataObject.myOtherContent
 /t:loop

 also tried with values of Volatile = true etc
 It still asks for co-ercion of String to MyDataObject

 Would be grateful for any further pointers

 Thanks
 Sandeep


 Niclas.Meier wrote:
 
  Hi sandeep,
 
  The effekt that occurs is, that tapestry tries to provide a loop
  context/state for the enclosing form. You need this if you have any
 fields
  in your loop.
 
  If you don¹t want/need to provide a context you may mark the loop as
  voliatile. This looks like:
 
  t:loop source=mYlist value=prop:MyDataObject volatile=²true² ...
  /t:loop
 
  Otherwise you'll have to provide a form state. I guess it would look
 like
 
  t:loop source=mYlist value=prop:MyDataObject
  volatile=²MyDataObject.someID² ... /t:loop
 
  The tapestry error message in this case is - IMHO - improvable ;-)
 
  Regards
  Niclas
 
 
  On 30.10.09 08:31, sandeepraj singh sandeepraj.si...@atosorigin.com
  wrote:
 
 
 
  Hi All,
  I have the following
 
  In MyComponent.tml
  t:loop source=mYlist value=prop:MyDataObject
 
   ${MyDataObject.someothervariable} /li
 
  /t:loop
 
  Ofcourse there is supporting code for the same in MyComponent.java.
 ie.
  having an istance variable of MyDataObject etc.
 
  In my Page, there are 2 cases
  1) I use the component without an enclosing form. In this case the
  component
  works abs fine.
  2) I use the component with an enclosing form. In such a case ,i
 recieve
  co-ercion error because of the context value that is being passed and
 is
  mapped to MyDataObject. The error is recieved only when the Enclosing
  FORM
  IS SUBMITTED.
 
  For scenario 2, i make a contribution to TypeCoercer to force creation
 of
  MyDataObject so that the problem is solved. But can any one think of a
  better way. A way in which some code in My Component takes care of the
  problem rather than a contribution inthe service.
 
  Thanks
  sandeep
  --
  View this message in context:
 
 http://old.nabble.com/How-to-avoid-contribution-to-TypeCoercer-in-my-case.-tp2
  6126002p26126002.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
 
 
 

 --
 View this message in context:
 http://old.nabble.com/How-to-avoid-contribution-to-TypeCoercer-in-my-case.-tp26126002p26279024.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


 
 

-- 
View this message in context: 
http://old.nabble.com/How-to-avoid-contribution-to-TypeCoercer-in-my-case.-tp26126002p26282712.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: [T5.1] posting externally with t:form

2009-11-10 Thread Massimo Lusetti
On Tue, Nov 10, 2009 at 12:08 PM, Jack Nuzbit fnuz...@googlemail.com wrote:

 Hi All,
 I've got a rather complex form that I'd like to use the tapestry form
 components to initialise but it needs to post externally.
 Is there a way to do this with tapestry? Form components require a
 surrounding t:form element which then overrides the action. I can't see any
 way around this without some javascript hack or avoiding tapestry components
 completely.

If you want to use the form component simply code the t:formdata
parameter in your post request then set parameter as usual then you
can get T5 do the rest and you can process the form the T5-way.

Till you don't change the tml of the form you're safe.

Cheers
-- 
Massimo
http://meridio.blogspot.com

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



[OT] ChenilleKit home, update your bookmark

2009-11-10 Thread Massimo Lusetti
Hi everyone,
  sorry for the off topic but as the ChenilleKit team we still receive
issue from JIRA at Formos and and someone still post to google group.

This is a reminder for people using these old channel to update their
own bookmark since ChenilleKit has a new home at
http://chenillekit.codehaus.org with issue tracking and mailing list
support.

Any other form of communication is not supported anymore. Thanks.

Cheers
-- 
Massimo
http://meridio.blogspot.com

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



Re: [T5.1] posting externally with t:form

2009-11-10 Thread Jack Nuzbit
Thanks Massimo but I'm trying to do it the other way around (if I've
understood you correctly).
I am hosting the form on a tapestry site which I need to post to an external
non-tapestry site. The problem is that in using tapestry components I can't
set the action attribute of the form to post to this external site. The form
component will override any action I define.


On Tue, Nov 10, 2009 at 1:53 PM, Massimo Lusetti mluse...@gmail.com wrote:

 On Tue, Nov 10, 2009 at 12:08 PM, Jack Nuzbit fnuz...@googlemail.com
 wrote:

  Hi All,
  I've got a rather complex form that I'd like to use the tapestry form
  components to initialise but it needs to post externally.
  Is there a way to do this with tapestry? Form components require a
  surrounding t:form element which then overrides the action. I can't see
 any
  way around this without some javascript hack or avoiding tapestry
 components
  completely.

 If you want to use the form component simply code the t:formdata
 parameter in your post request then set parameter as usual then you
 can get T5 do the rest and you can process the form the T5-way.

 Till you don't change the tml of the form you're safe.

 Cheers
 --
 Massimo
 http://meridio.blogspot.com

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




Re: [OT] ChenilleKit home, update your bookmark

2009-11-10 Thread Ivano Luberti
Massimo, I think I have already wrote this: I cannot find from the home
page a link to code examples. I know there is one...

Massimo Lusetti ha scritto:
 Hi everyone,
   sorry for the off topic but as the ChenilleKit team we still receive
 issue from JIRA at Formos and and someone still post to google group.

 This is a reminder for people using these old channel to update their
 own bookmark since ChenilleKit has a new home at
 http://chenillekit.codehaus.org with issue tracking and mailing list
 support.

 Any other form of communication is not supported anymore. Thanks.

 Cheers
   

-- 
==
dott. Ivano Mario Luberti
Archimede Informatica societa' cooperativa a r. l.
Sede Operativa
Via Gereschi 36 - 56126- Pisa
tel.: +39-050- 580959
tel/fax: +39-050-9711344
web: www.archicoop.it
==


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



Re: [T5.1] posting externally with t:form

2009-11-10 Thread Ulrich Stärk

Just do it in plain HTML.

form method=post action=http://some.other.site/action;
input type=text value=${someProperty} /
input type=submit /
/form

Uli

Am 10.11.2009 15:42 schrieb Jack Nuzbit:

Thanks Massimo but I'm trying to do it the other way around (if I've
understood you correctly).
I am hosting the form on a tapestry site which I need to post to an external
non-tapestry site. The problem is that in using tapestry components I can't
set the action attribute of the form to post to this external site. The form
component will override any action I define.


On Tue, Nov 10, 2009 at 1:53 PM, Massimo Lusetti mluse...@gmail.com wrote:


On Tue, Nov 10, 2009 at 12:08 PM, Jack Nuzbit fnuz...@googlemail.com
wrote:


Hi All,
I've got a rather complex form that I'd like to use the tapestry form
components to initialise but it needs to post externally.
Is there a way to do this with tapestry? Form components require a
surrounding t:form element which then overrides the action. I can't see

any

way around this without some javascript hack or avoiding tapestry

components

completely.

If you want to use the form component simply code the t:formdata
parameter in your post request then set parameter as usual then you
can get T5 do the rest and you can process the form the T5-way.

Till you don't change the tml of the form you're safe.

Cheers
--
Massimo
http://meridio.blogspot.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: [OT] ChenilleKit home, update your bookmark

2009-11-10 Thread Ulrich Stärk

select the tapestry module first.

Am 10.11.2009 15:54 schrieb Ivano Luberti:

Massimo, I think I have already wrote this: I cannot find from the home
page a link to code examples. I know there is one...

Massimo Lusetti ha scritto:

Hi everyone,
  sorry for the off topic but as the ChenilleKit team we still receive
issue from JIRA at Formos and and someone still post to google group.

This is a reminder for people using these old channel to update their
own bookmark since ChenilleKit has a new home at
http://chenillekit.codehaus.org with issue tracking and mailing list
support.

Any other form of communication is not supported anymore. Thanks.

Cheers
  




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



Re: [T5.1] posting externally with t:form

2009-11-10 Thread Thiago H. de Paula Figueiredo
Em Tue, 10 Nov 2009 12:42:25 -0200, Jack Nuzbit fnuz...@googlemail.com  
escreveu:


non-tapestry site. The problem is that in using tapestry components I  
can't set the action attribute of the form to post to this external site.


You could use JavaScript for that as, from a Tapestry perspective, it  
doesn't make sense to post to other pages.


--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,  
and instructor
Owner, software architect and developer, Ars Machina Tecnologia da  
Informação Ltda.

http://www.arsmachina.com.br

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



Re: [T5.1] posting externally with t:form

2009-11-10 Thread Massimo Lusetti
On Tue, Nov 10, 2009 at 3:42 PM, Jack Nuzbit fnuz...@googlemail.com wrote:

 Thanks Massimo but I'm trying to do it the other way around (if I've
 understood you correctly).

Ops sorry you're right, I did misunderstood you. As others already
suggested you should do in plain HTML/JavaScript.

Cheers
-- 
Massimo
http://meridio.blogspot.com

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



Re: [T5.1] posting externally with t:form

2009-11-10 Thread Jack Nuzbit
No worries, that's what I thought.

Probably from a tapestry perspective it doesn't make a lot of sense but it's
not an uncommon use case.
I would say it would be an improvement if I could override the default form
action and leverage tapestry form components in these situations.



On Tue, Nov 10, 2009 at 2:58 PM, Thiago H. de Paula Figueiredo 
thiag...@gmail.com wrote:

 Em Tue, 10 Nov 2009 12:42:25 -0200, Jack Nuzbit fnuz...@googlemail.com
 escreveu:


  non-tapestry site. The problem is that in using tapestry components I
 can't set the action attribute of the form to post to this external site.


 You could use JavaScript for that as, from a Tapestry perspective, it
 doesn't make sense to post to other pages.

 --
 Thiago H. de Paula Figueiredo
 Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,
 and instructor
 Owner, software architect and developer, Ars Machina Tecnologia da
 Informação Ltda.
 http://www.arsmachina.com.br


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




Re: [Tapestry Central] Next Steps for Tapestry

2009-11-10 Thread Peter Stavrinides
My 2 cents, in order of priority:

1. Ongoing bug fixes, prioritized by severity and then community votes
2. Comprehensive multi-language docs (preferably community driven via 
collaboration software), including ALL types of docs (cookbook, API reference, 
tutorials, quickstart) and all in one place
3. A Tapestry Bible, but not another beginners book, it should have 
intermediate and advanced concepts explained with examples.
4. Least of all is new features in my list, they are nice to have but 
maintaining the user base means putting your house in order first (i.e.: all of 
the above) before doing new funky stuff with Tapestry
5. This last one is not critical, but an idea stemming from Tapestry 3 days: a 
place once again for users to share custom components, preferably directly off 
the Tapestry site... I personally see the Tapestry site as a hub of all 
Tapestry related activities. 

best wishes!
Peter


- Original Message -
From: Borut Bolčina borut.bolc...@gmail.com
To: Tapestry users users@tapestry.apache.org
Sent: Tuesday, 10 November, 2009 12:58:34 GMT +02:00 Athens, Beirut, Bucharest, 
Istanbul
Subject: Re: [Tapestry Central] Next Steps for Tapestry

And of course we can make more of this:
http://www.questionpro.com/akira/ShowResults?id=1151880mode=data

The above was initiated long time ago:
http://bbwebcraft.blogspot.com/2009/02/wishlist-and-survey-for-tapestry-5.html

-borut

2009/11/10 Borut Bolčina borut.bolc...@gmail.com

 Hi,

 2009/11/10 Inge Solvoll inge.tapes...@gmail.com



 Maybe it would be a good idea to find out what most newcomers ask for, and
 just put it in there, even if it doesn't make that much sense? It COULD
 attract more people.


 That is exactly why I opened http://tapestry5.ideascale.com/

 -borut


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



Re: [OT] ChenilleKit home, update your bookmark

2009-11-10 Thread Ivano Luberti
I get 404 error

Ulrich Stärk ha scritto:
 select the tapestry module first.

 Am 10.11.2009 15:54 schrieb Ivano Luberti:
 Massimo, I think I have already wrote this: I cannot find from the home
 page a link to code examples. I know there is one...

 Massimo Lusetti ha scritto:
 Hi everyone,
   sorry for the off topic but as the ChenilleKit team we still receive
 issue from JIRA at Formos and and someone still post to google group.

 This is a reminder for people using these old channel to update their
 own bookmark since ChenilleKit has a new home at
 http://chenillekit.codehaus.org with issue tracking and mailing list
 support.

 Any other form of communication is not supported anymore. Thanks.

 Cheers
   


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



-- 
==
dott. Ivano Mario Luberti
Archimede Informatica societa' cooperativa a r. l.
Sede Operativa
Via Gereschi 36 - 56126- Pisa
tel.: +39-050- 580959
tel/fax: +39-050-9711344
web: www.archicoop.it
==


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



Re: [OT] ChenilleKit home, update your bookmark

2009-11-10 Thread Massimo Lusetti
On Tue, Nov 10, 2009 at 3:54 PM, Ivano Luberti lube...@archicoop.it wrote:

 Massimo, I think I have already wrote this: I cannot find from the home
 page a link to code examples. I know there is one...

From here http://chenillekit.codehaus.org/chenillekit-tapestry/index.html
click the demo link which direct to

http://www.chenillekit.org/demo and point to Sven our errors ;)

Cheers
-- 
Massimo
http://meridio.blogspot.com

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



Re: [OT] ChenilleKit home, update your bookmark

2009-11-10 Thread Sven Homburg
I will do my best, to find and remove that bug ;-)


with regards
Sven Homburg
Founder of the Chenille Kit Project
http://www.chenillekit.org




2009/11/10 Massimo Lusetti mluse...@gmail.com

 On Tue, Nov 10, 2009 at 3:54 PM, Ivano Luberti lube...@archicoop.it
 wrote:

  Massimo, I think I have already wrote this: I cannot find from the home
  page a link to code examples. I know there is one...

 From here http://chenillekit.codehaus.org/chenillekit-tapestry/index.html
 click the demo link which direct to

 http://www.chenillekit.org/demo and point to Sven our errors ;)

 Cheers
 --
 Massimo
 http://meridio.blogspot.com

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




Object expected error with prototype.js and IE 8

2009-11-10 Thread Ignacio González Arboleya
 I am using renderSupport.addScript() in order to add some JavaScript to my 
webpage. It works perfectly in Firefox, IE 7 and IE 8... However, although it
also works well in IE 8, you can read an error saying object expected 
associated with prototype.js. It only happens in IE 8.

Does anybody know anything about this issue?

Thankyou

Re: [OT] ChenilleKit home, update your bookmark

2009-11-10 Thread Piero Sartini
Isn't it possible to shut down these channels? This will prevent people from 
landing there while searching for tapestry components. I remember my early 
days with t5 when this was very confusing.

If you don't use the google project any more - why not delete it?
If you don't use the formos infrastructure any more, why not ask howard to 
remove the project?

I think this would it make easier for new people to find their way around.

Piero


Am Dienstag 10 November 2009 15:14:17 schrieb Massimo Lusetti:
 Hi everyone,
   sorry for the off topic but as the ChenilleKit team we still receive
 issue from JIRA at Formos and and someone still post to google group.
 
 This is a reminder for people using these old channel to update their
 own bookmark since ChenilleKit has a new home at
 http://chenillekit.codehaus.org with issue tracking and mailing list
 support.
 
 Any other form of communication is not supported anymore. Thanks.
 
 Cheers

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



Re: Object expected error with prototype.js and IE 8

2009-11-10 Thread Juan E. Maya
The current versions of prototype used by tapestry doesn't work very
well with IE8, u can replace it by yourself (search the list, for sure
is there somewher) or even use
http://tapestry.formos.com/nightly/tapx/tapx-prototype/

2009/11/10 Ignacio González Arboleya nachogo...@hotmail.com:
  I am using renderSupport.addScript() in order to add some JavaScript to my 
 webpage. It works perfectly in Firefox, IE 7 and IE 8... However, although it
 also works well in IE 8, you can read an error saying object expected 
 associated with prototype.js. It only happens in IE 8.

 Does anybody know anything about this issue?

 Thankyou

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



Re: beaneditform question

2009-11-10 Thread Jonhy Pear
Hi,
thanks. I managed to change the code and now it's working with a normal form
component.


On Tue, Nov 10, 2009 at 1:21 AM, DH ningd...@gmail.com wrote:

 I never had this issue before.
 I just test and everything works right, can you share the whole stack
 trace?

 DH

 http://www.gaonline.com.cn
 - Original Message -
 From: Jonhy Pear
 To: Tapestry users users@tapestry.apache.org
 Sent: Tuesday, November 10, 2009 3:27 AM
 Subject: Re: beaneditform question


 I'm experimenting your code but I'm blocked :(

 I have in my page.java
 @Property
 private String password;
 @Property
 private String confirmPassword;

 in my tml:
 form t:id=userRegistrationForm t:type=beaneditform object=user
 add=password, confirmPassword exclude=id, active

 p:passsword
 t:label for=password /
 t:passwordfield t:id=password validate=required /
 /p:passsword
  p:confirmPassword
 t:label for=confirmPassword /
 t:passwordfield t:id=confirmPassword validate=required /
 /p:confirmPassword
 /form

 But I get this error:

 Render queue error in
 BeginRender[user/New:userregistrationform.editor.propertyeditor]: The data
 type for property 'password' of org.code.sandbox.model.u...@d9973a is
 null.
 *
 *
 *Can you help me?*

 On Mon, Nov 9, 2009 at 4:13 PM, ningdh ningd...@gmail.com wrote:

  I am sorry that Object onValidate should be Object onValidateForm.
 
  DH
 
  - Original Message -
  From: João Pereira
  To: Tapestry users users@tapestry.apache.org
  Sent: Monday, November 09, 2009 11:53 PM
  Subject: Re: beaneditform question
 
 
  Thank you.
 
 
  On Mon, Nov 9, 2009 at 1:50 AM, DH ningd...@gmail.com wrote:
 
   Hi
  
   Simple sample(t5.1):
  
   In tml:
   form t:id=regForm t:type=beaneditform object=user
   include=nick,firstName,lastName add=password,retypePassword
  p:password
  t:label for=password/
  t:passwordfield t:id=password validate=required
  /p:password
  p:retypePassword
  t:label for=retypePassword/
  t:passwordfield t:id=retypePassword validate=required
  /p:retypePassword
   /form
  
   In java:
  
   @Component
   private BeanEditForm regForm;
  
   @Property
   private User user; // your user entity
  
   @Property
   private String password;
  
   @Property
   private String retypePassword;
  
   Object onValidate() {
  if (!password.equals(retypePassword)) {
  regForm.recordError(password and retypepassword must be == );
  return this; // meaning validation failed
  }
  return null; // validation successfully.
   }
  
   Object onSuccess() {
  user.setPassword(encodeutil.encode(password));
  service.save(user);
  return successpage or other;
   }
  
   DH
   http://www.gaonline.com.cn
 



Form.recordError not preventing from calling onSubmit form

2009-11-10 Thread Jonhy Pear
Hello,

I'm trying to get around this for some time, so I decided to ask another
newcomer question.

I have a form in a page resgistration

Registration.tml

form t:type=form t:id=registrationForm
t:errors/

[Rest of the form]
/form

in my Registration.java I have:

void onValidateForm() {

if (!this.password.equals(this.confirmPassword)) {

registrationForm.recordError(Password match error); ///Line 1
}
 }

Object onSubmitFromRegistrationForm() {
 successPage.setRegisteredUser(user);
return successPage;

}


The problem is that on onValidateForm I record the error in line:

registrationForm.recordError(Password match error);

I checked and is the line is being executed, but the process keep going to
the onSubmitRegistrationForm() and the new page successPage is rendered...

If I go back to the page registration, the errors are displayed


Shouldn't the form be displayed again in this case with the errors?

Thank you


Re: Construction of service 'InternalRequestGlobals' has failed due to recursion:

2009-11-10 Thread Howard Lewis Ship
There will be a trace in the console of what Tapestry IoC was doing
when it hit the issue.

However, this looks like the culprit:


   public static void contributeMasterObjectProvider(
   OrderedConfigurationObjectProvider configuration,
   ObjectLocator locator) {
   configuration.add(spring, locator
   .autobuild(SpringObjectProvider.class));
   }


autobuilding will attmpt to instantiat SpringObjectProvider ... but
that will itself require injection that falls into the
MasterObjectProvider.  Either instantiate SOP yourself, or use the
proxy() method, which builds a proxy that can defer instantiation of
SOP until it is actually needed.


On Tue, Nov 10, 2009 at 1:55 PM, mraible m...@raibledesigns.com wrote:

 Hello all,

 I'm in the process of writing tests for AppFuse's Tapestry 5 integration and
 I've run into an interesting issue. When I use Hibernate or JPA as backends,
 my tests pass just fine. However, when I use iBATIS, they take forever and I
 get an OOM error and the following shows up in my logs:

 Construction of service 'InternalRequestGlobals' has failed due to
 recursion: the service depends on itself in some way. Please check
 org.apache.tapestry5.internal.services.InternalRequestGlobalsImpl() (at
 InternalRequestGlobalsImpl.java:22) via
 org.apache.tapestry5.internal.services.InternalModule.bind(ServiceBinder)
 (at InternalModule.java:65) for references to another service that is itself
 dependent on service 'InternalRequestGlobals'.

 Looking at the dependencies differences, my first guess is AspectJ is
 causing this, but I'm not sure.

 [INFO] +- org.appfuse:appfuse-ibatis:jar:2.1-SNAPSHOT:compile
 [INFO] |  +- org.appfuse:appfuse-data-common:jar:2.1-SNAPSHOT:compile
 [INFO] |  |  +- javax.persistence:persistence-api:jar:1.0:compile
 [INFO] |  |  +- javax.xml.bind:jaxb-api:jar:2.2:compile
 [INFO] |  |  |  \- javax.xml.stream:stax-api:jar:1.0-2:compile
 [INFO] |  |  \- org.compass-project:compass:jar:2.1.3:compile
 [INFO] |  |     \- org.apache.lucene:lucene-core:jar:2.4.1:compile
 [INFO] |  +- org.apache.ibatis:ibatis-sqlmap:jar:2.3.4.726:compile
 [INFO] |  +- org.aspectj:aspectjweaver:jar:1.6.6:compile
 [INFO] |  +- org.aspectj:aspectjrt:jar:1.6.6:compile
 [INFO] |  +- org.springframework:spring-aspects:jar:2.5.6:compile
 [INFO] |  +- commons-beanutils:commons-beanutils:jar:1.8.1:compile
 [INFO] |  +- org.springframework:spring-jdbc:jar:2.5.6:compile
 [INFO] |  |  \- org.springframework:spring-tx:jar:2.5.6:compile
 [INFO] |  \- org.springframework:spring-orm:jar:2.5.6:compile


 [INFO] +- org.appfuse:appfuse-hibernate:jar:2.1-SNAPSHOT:compile
 [INFO] |  +- org.appfuse:appfuse-data-common:jar:2.1-SNAPSHOT:compile
 [INFO] |  |  +- javax.persistence:persistence-api:jar:1.0:compile
 [INFO] |  |  +- javax.xml.bind:jaxb-api:jar:2.2:compile
 [INFO] |  |  |  \- javax.xml.stream:stax-api:jar:1.0-2:compile
 [INFO] |  |  \- org.compass-project:compass:jar:2.1.3:compile
 [INFO] |  |     \- org.apache.lucene:lucene-core:jar:2.4.1:compile
 [INFO] |  +- org.hibernate:hibernate-annotations:jar:3.4.0.GA:compile
 [INFO] |  |  +-
 org.hibernate:hibernate-commons-annotations:jar:3.1.0.GA:compile
 [INFO] |  |  +- org.slf4j:slf4j-api:jar:1.4.2:compile
 [INFO] |  |  \- dom4j:dom4j:jar:1.6.1:compile
 [INFO] |  +- org.hibernate:hibernate-core:jar:3.3.1.GA:compile
 [INFO] |  |  +- antlr:antlr:jar:2.7.6:compile
 [INFO] |  |  \- javax.transaction:jta:jar:1.1:compile
 [INFO] |  +- javassist:javassist:jar:3.4.GA:compile
 [INFO] |  +- org.slf4j:slf4j-log4j12:jar:1.5.2:compile
 [INFO] |  +- org.hibernate:hibernate-ehcache:jar:3.3.1.GA:compile
 [INFO] |  +- net.sf.ehcache:ehcache-core:jar:1.7.0:compile
 [INFO] |  +- commons-beanutils:commons-beanutils:jar:1.8.1:compile
 [INFO] |  +- org.springframework:spring-jdbc:jar:2.5.6:compile
 [INFO] |  |  \- org.springframework:spring-tx:jar:2.5.6:compile
 [INFO] |  \- org.springframework:spring-orm:jar:2.5.6:compile

 I also suspect it might be coming from my SpringObjectProvider (used for
 testing).

 http://source.appfuse.org/browse/~raw,r=trunk/appfuse/trunk/web/tapestry/src/test/java/org/appfuse/webapp/services/SpringObjectProvider.java

 This is added by an IntegrationTestModule:

 public class IntegrationTestModule {

    // contribution master object provider
    public static void contributeMasterObjectProvider(
            OrderedConfigurationObjectProvider configuration,
            ObjectLocator locator) {
        configuration.add(spring, locator
                .autobuild(SpringObjectProvider.class));
    }
 }

 And wired into PageTester as follows:

 String appPackage = com.mycompany.webapp;
 String appName = app;
 tester = new PageTester(appPackage, appName, src/main/webapp,
 IntegrationTestModule.class);

 Any help is appreciated.

 Thanks,

 Matt
 --
 View this message in context: 
 http://old.nabble.com/Construction-of-service-%27InternalRequestGlobals%27-has-failed-due-to-recursion%3A-tp26291936p26291936.html
 Sent from the 

Re: i18n overhead

2009-11-10 Thread Melidramo

Howard,

thanks for the clarification.

Would the upgrade from 5.0 to 5.1 bring any improvement in terms of speed or
resource usage?

Thanks,
regards

  MD
-- 
View this message in context: 
http://old.nabble.com/i18n-overhead-tp26252169p26294435.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: Embed a generated image in a page with IE6

2009-11-10 Thread Angelo Chen

I followed that sample too, and works in IE7, Safari and Chrome.


ellisonchiu wrote:
 
 I also test it in IE7, But it also does not work.
 The wiki Tapestry5HowToCreatePieChartsInAPage sample:
  http://wiki.apache.org/tapestry/Tapestry5HowToCreatePieChartsInAPage
 http://wiki.apache.org/tapestry/Tapestry5HowToCreatePieChartsInAPage 
 
 
 ellisonchiu wrote:
 
 I follow the wiki Tapestry5HowToCreatePieChartsInAPage sample to embed
 a generated image in a page.
 It's fine in firefox, but not work in IE6.
 Is there any way to get it in IE6? 
 
 
 

-- 
View this message in context: 
http://old.nabble.com/Embed-a-generated-image-in-a-page-with-IE6-tp26280115p26294451.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 Central] Next Steps for Tapestry

2009-11-10 Thread liigo
Kalle Korhonen: By now, you probably have a fairly good idea how you could
improve things and I'd hate to have the first book on Tapestry5 to already
become outdated right away if you start on T5.2 only after releasing the
book.

Kalle Korhonen: Yes, there are a few active committers but the community
still needs your direction and you have a superior ability to generalize
concepts and turn them into brilliant implementations.

+1


2009/11/9 Kalle Korhonen kalle.o.korho...@gmail.com

 Howard, you touch too many points to make a very concise reply, but I
 agree with many others encouraging you to continue coding 5.2 before
 you start writing a book. By now, you probably have a fairly good idea
 how you could improve things and I'd hate to have the first book on
 Tapestry5 to already become outdated right away if you start on T5.2
 only after releasing the book. Yes, there are a few active committers
 but the community still needs your direction and you have a superior
 ability to generalize concepts and turn them into brilliant
 implementations. I'm not sure the committers would be able to lay out
 a release plan without you either - bug fixes and some pet
 improvements yes, but coming up and deciding features for a new major
 release is a different ballgame. Of course, it's always easy for
 people like me who are sitting on the sidelines to tell what you
 should and shouldn't do.

 On the matter of new features, I'm more and more convinced that web
 conversations can be simplified a lot if they stay on the same page
 - as proven by my Tapestry-conversations module
 (http://docs.codehaus.org/display/TRAILS/Conversations+in+Trails). As
 good as Spring Web Flow is, it's cumbersome and unnecessarily heavy
 for modern ajaxified web. A built-in conversational scope with a
 better mechanism for dealing with different page context entry points
 (I'm likely not the only one with long if-elses in my onActivate
 methods) might be enough for 90% of the use cases.

 Still, a book is badly needed. The inconvenient truth is there are
 very very few users of Tapestry anymore, the popularity of Tapestry is
 declining and new Java developers are not finding the framework (as
 proven by
 http://www.google.com/insights/search/#q=tapestry%20java%2C%20wicket%20java%2Cgrails%20javacmpt=q
 - by know T5 release should have made a bump in those graphs). And
 don't get me wrong - I've never believed that popularity would make
 anything better, but without a wide enough user base it's difficult to
 make a living out of it even if you want to and a healthy user base is
 needed for a project to alive and active. I'm sure you've gone out of
 your way to evangelize Tapestry but I'm amazed by (and I bet you've
 been equally amazed, even envious at times) how some other frameworks
 such as RoR and Grails have been able to market themselves so well.
 It's baffling as we all know that purely from technological
 standpoint, T5 is easily on par with the rest out there and often
 surpassing the competition on specific areas. Clearly, but sadly,
 eye-candy and looks over substance plays a big part here even among
 engineers and I'm sure Tapestry could do more there. Documentation is
 an issue with new-comers and a book would help. The reference
 documentation is great but what missing is the longer, more
 descriptive tutorials on how to get started and a book would at least
 partially address those needs. It's not really just Tapestry's fault,
 just that modern Java is complex and there are various tools like
 Maven and other frameworks that you need to know about compared to
 lighter, but easier all-in-one frameworks. But when it comes down to
 choosing between coding and writing (a book), I think most would agree
 that your time is better spent improving the core framework and
 pushing the envelope further, while letting somebody else fill the gap
 for the book. If you start feeling like it's getting harder to find
 new things that might be worthwhile to add to the framework, at that
 point it may be the right time for you to write a book. Hopefully that
 time is not yet.

 Just my 2 cents,
 Kalle



 On Sat, Nov 7, 2009 at 10:11 AM, Howard hls...@gmail.com wrote:
  I've been consciously letting Tapestry 5.1 sit and stabilize for a
  while ... a time that's stretched a few months longer than I initially
  intended.
  This is due to a number of factors: my return to independent
  consulting, my desire to write a definitive Tapestry 5 book, and
  preparations for many trips and speaking engagements.
  All of these factors have worked on each other: I've been improving and
  extending my Tapestry Workshop training materials which can be quite
  time consuming. I've also (over the last several months) been on the
  road several times, talking about Tapestry or doing Tapestry training.
  I do want to write a book on Tapestry but if I start writing 5.2 code,
  I know I'll be sucked right in ... lots of code (that darn Spring Web
  Flow integration 

Pass params to pager of grid component

2009-11-10 Thread Xuan Tran Le
I have a problem with the pager of grid component. I want to pass some
params to the pager link.

For example, I have a page support searching. It contains a text field, a
submit button, and a grid component. When I enter the value to the text and
click on submit button, it show the result in the grid. There are so many
result, so there is a grid pager. When I click on the pager link to the page
2, then the value of the text is not remembered, so it's empty now. So I
wanna remember/pass some params to the pager link. How can I do it?


Re: Pass params to pager of grid component

2009-11-10 Thread DH
It seems that Grid doesn't support 'context' parameter.

But why don't you add the keyword to the page's activation context?

DH
http://www.gaonline.com.cn

- Original Message - 
From: Xuan Tran Le 
To: Tapestry users users@tapestry.apache.org
Sent: Wednesday, November 11, 2009 12:45 PM
Subject: Pass params to pager of grid component


I have a problem with the pager of grid component. I want to pass some
 params to the pager link.
 
 For example, I have a page support searching. It contains a text field, a
 submit button, and a grid component. When I enter the value to the text and
 click on submit button, it show the result in the grid. There are so many
 result, so there is a grid pager. When I click on the pager link to the page
 2, then the value of the text is not remembered, so it's empty now. So I
 wanna remember/pass some params to the pager link. How can I do it?