Re: Grid component and available rows number

2008-10-13 Thread Renat Zubairov
Hello

You may have a look on the implementation of the GridDataSource for Hibernate

http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-hibernate/src/main/java/org/apache/tapestry5/hibernate/HibernateGridDataSource.java?view=markup

BR
Renat

2008/10/14 shymon <[EMAIL PROTECTED]>:
>
>
> I wanted to use a grid component to display search results. So I tried to
> define a class which implements GridDataSource interface. Unfortunatelly
> getAvailableRecords() method is called by T5 before prepare(...) method.
> This doesn't suit me as I receive total record number with search results
> only.
>
> My search engine is accessed through XML-RPC and has a Query(...) method
> which performs the search. This method returns a dictionary (or hashtable)
> containing search results and some other info including total number of
> records matching given query.
>
> Of course I can trigger Query(...) method from getAvailableRecords() or even
> before, but I don't have information about indexFrom, indexTo and
> sortConstraints and don't want to send all records (without limit) through
> XML-RPC.
>
> Is there any reasonable solution or do I have to write my own grid
> component?
> --
> View this message in context: 
> http://www.nabble.com/Grid-component-and-available-rows-number-tp19964529p19964529.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



-- 
Best regards,
Renat Zubairov

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: ActionLink in component

2008-10-13 Thread mdes

maybe you can try to be more specific in this way:

${index}

  @OnEvent(value = "action", component = "select")
  void valueChosen(int value)
  {
this.value = value;
  }

Here you can find more explanation:
http://tapestry.apache.org/tapestry5/tapestry-core/guide/event.html



moritzgilsdorf-2 wrote:
> 
> 
> Yes, they are both persisted. tableParsed is set to true after a file was
> uploaded and parsed success
> fully. This variable is then used to show the next step of this process
> which requires the table to be parsed.
> 
> The whole thing works well except that after the process is finished I
> have
> to restart jetty or wait until the session has expired. :-(
>  
> When I change the OnEvent annotation to component unspecific by removing
> (component="reset"), the reset() method is triggered, but then I never
> reach
> the second step. The method is then triggered when uploading the file.
> 
>  
> 
> 
> 
> Thiago H. de Paula Figueiredo wrote:
>> 
>> Em Mon, 13 Oct 2008 14:22:36 -0200, moritzgilsdorf  
>> <[EMAIL PROTECTED]> escreveu:
>> 
>>> @OnEvent(component = "reset")
>>> public Object reset(){
>>> tableParsed = false;
>>> saveSucceed = false;
>>> return null;
>>> }
>> 
>> Are tableParsed and saveSucceed @Persist'ed?
>> 
>> -- 
>> Thiago H. de Paula Figueiredo
>> Independent Java consultant, developer, and instructor
>> Consultor, desenvolvedor e instrutor em Java
>> http://www.arsmachina.com.br/thiago
>> 
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>> 
>> 
>> 
> 
> -- 
> View this message in context:
> http://n2.nabble.com/ActionLink-in-component-tp1329406p1330597.html
> Sent from the Tapestry Users mailing list archive at Nabble.com.
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/ActionLink-in-component-tp19958102p19964545.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Grid component and available rows number

2008-10-13 Thread shymon


I wanted to use a grid component to display search results. So I tried to
define a class which implements GridDataSource interface. Unfortunatelly
getAvailableRecords() method is called by T5 before prepare(...) method.
This doesn't suit me as I receive total record number with search results
only.

My search engine is accessed through XML-RPC and has a Query(...) method
which performs the search. This method returns a dictionary (or hashtable)
containing search results and some other info including total number of
records matching given query.

Of course I can trigger Query(...) method from getAvailableRecords() or even
before, but I don't have information about indexFrom, indexTo and
sortConstraints and don't want to send all records (without limit) through
XML-RPC.

Is there any reasonable solution or do I have to write my own grid
component?
-- 
View this message in context: 
http://www.nabble.com/Grid-component-and-available-rows-number-tp19964529p19964529.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: ActionLink in component

2008-10-13 Thread Howard Lewis Ship
Where is your event handler method?  If the  is inside
component Foo's template (Foo.tml), then the method goes inside
Foo.java.

On Mon, Oct 13, 2008 at 9:22 AM, moritzgilsdorf
<[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I'm feeling like posting a very trivial problem but unfortunately I can't
> find my mistake.
>
> I have a actionlink in a component to reset some persisted booleans. The
> actionlink looks like this:
>
> Reset
>
> And the triggered method like this:
>
>@OnEvent(component = "reset")
>public Object reset(){
>tableParsed = false;
>saveSucceed = false;
>return null;
>}
>
> But the booleans are not resetted. It only works when I remove the
> ("component="reset") or rename reset() to onAction(). But then I also reset
> the variables on form submits.
>
> What am I doing wrong?
>
> Thanks.
>
> --
> View this message in context: 
> http://n2.nabble.com/ActionLink-in-component-tp1329406p1329406.html
> Sent from the Tapestry Users mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



-- 
Howard M. Lewis Ship

Creator Apache Tapestry and Apache HiveMind

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: manage sub-collection with grid component

2008-10-13 Thread mdes

sorry for being not so clear in my previous explanation,here the complete
code concerning my problem:
I need to show a list of products, and because each product can contain one
or more contents, I want to add a list of actionlink in the last column
representing the content list related. 

@Entity
public class Product implements java.io.Serializable{
private long idProd;
private ProdType prodType;
private String idServiceType;
private String status;
private Date reqDate; 
private String dex;
private Collection contents = new ArrayList();

@Id 
@GeneratedValue
public long getIdProd(){return idProd;}
public void setIdProd(long idProd){this.idProd=idProd;}

@ManyToOne
public ProdType getProdType(){return prodType;}
public void setProdType(ProdType prodType){this.prodType=prodType;}

public String getIdServiceType() {return idServiceType;}
public void setIdServiceType(String idServiceType) {this.idServiceType =
idServiceType;}

public String getStatus(){

}
public void setStatus(String status){this.status=status;}

@Temporal(TemporalType.DATE)
public Date getReqDate(){return reqDate;}
public void setReqDate(Date reqDate){this.reqDate=reqDate;}

public String getDex(){return dex;}
public void setDex(String dex){this.dex=dex;}

@OneToMany(cascade={CascadeType.ALL})
public Collection getContents(){return contents;}
public void setContents(Collection
contents){this.contents=contents;}

@Override
public int hashCode() {
...
}
@Override
public boolean equals(Object obj) {
...
}

}


@Entity
public class Content implements java.io.Serializable  {
private long idCont;
private Operator operator;
private String host;
private String folder;
private String fileName;

@Id
@GeneratedValue
public long getIdCont(){return idCont;}
public void setIdCont(long idCont){this.idCont=idCont; }

   other setter/getter methods

}

public class ProductMonitor{
@ApplicationState
private DuckBeanRemote dao;
@ApplicationState
private Coordinator coordinator;
@Persist
private Product product;

public Product getProduct() {return product;}
public void setProduct(Product product) {this.product = product;}

public DuckBeanRemote getDao() {return dao;}
public void setDao(DuckBeanRemote dao) {this.dao = dao;}

public Coordinator getCoordinator() {return coordinator;}
public void setCoordinator(Coordinator coordinator) {this.coordinator =
coordinator;}

public Collection getProducts(){return dao.getProducts();}

public Object onActionFromSend(long 
idProd){dao.sendProduct(idProd);return
this;}

public Object onActionFromLogout(String 
username){coordinator=null;return
Index.class;}
}

ProductMonitor.tml



send


I need to show here the list of contents of 
the current product
(idprod) 




   
-- 
View this message in context: 
http://www.nabble.com/manage-sub-collection-with-grid-component-tp19954739p19964387.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to return .tml content as a String from a Java class?

2008-10-13 Thread superoverdrive
This is just a simple opening/closing. I am looking for an Accordion with a 
transition.

 Original-Nachricht 
> Datum: Mon, 13 Oct 2008 13:27:00 +0200
> Von: Joachim Van der Auwera <[EMAIL PROTECTED]>
> An: Tapestry users 
> Betreff: Re: How to return .tml content as a String from a Java class?

> You may want to look at the "Accordion" component in equanda-tapestry5
> 
> Kind regards,
> Joachim
> 
> [EMAIL PROTECTED] wrote:
> > The SlidingPanel (as it currently is), expects an Array of Strings that
> contain the contents of the SlidingPanel:
> >
> > E.g.:
> >
> > public String[] getDetails(){
> > return new String[]{"Content A","Content B","Content C"};
> > }
> >
> > Assuming, I want to return components instead of Strings, how would I
> access them in Java code?
> >
> > e.g.
> >
> > ComponentA.tml
> > ComponentB.tml
> > ComponentC.tml
> >
> > Can I "inject" them somehow and access their contents as a String?
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >   
> 
> 
> -- 
> Joachim Van der Auwera
> PROGS bvba, progs.be
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: ActionLink in component

2008-10-13 Thread moritzgilsdorf

Yes, they are both persisted. tableParsed is set to true after a file was
uploaded and parsed success
fully. This variable is then used to show the next step of this process
which requires the table to be parsed.

The whole thing works well except that after the process is finished I have
to restart jetty or wait until the session has expired. :-(
 
When I change the OnEvent annotation to component unspecific by removing
(component="reset"), the reset() method is triggered, but then I never reach
the second step. The method is then triggered when uploading the file.

 



Thiago H. de Paula Figueiredo wrote:
> 
> Em Mon, 13 Oct 2008 14:22:36 -0200, moritzgilsdorf  
> <[EMAIL PROTECTED]> escreveu:
> 
>> @OnEvent(component = "reset")
>> public Object reset(){
>> tableParsed = false;
>> saveSucceed = false;
>> return null;
>> }
> 
> Are tableParsed and saveSucceed @Persist'ed?
> 
> -- 
> Thiago H. de Paula Figueiredo
> Independent Java consultant, developer, and instructor
> Consultor, desenvolvedor e instrutor em Java
> http://www.arsmachina.com.br/thiago
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://n2.nabble.com/ActionLink-in-component-tp1329406p1330597.html
Sent from the Tapestry Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



T5 : localization of Options in a dropdown list

2008-10-13 Thread Stephane Decleire

Hi,

What is the best way to localize the options of a dynamically generated 
Select component ?


Thanks in advance.

Stephane


Re: [ANN] JumpStart 3.16 has arrived!

2008-10-13 Thread Geoff Callender

Hi,

There's a README in the root directory.  Is it missing the information  
you are looking for?


Failing that, do these pages answer all those questions?
http://files.doublenegative.com.au/jumpstart/installation.html
http://files.doublenegative.com.au/jumpstart/orientation.html

Regards,

Geoff

On 14/10/2008, at 5:39 AM, [EMAIL PROTECTED] wrote:

what about a small readme file that describes, how to start it, e.g.  
context directory, whether any additional libs are necessary  
(cglib.jar?), etcand whether you are supposed to run the war  
file or directly the directory of the files etc...? And should you  
start exploder.xml or build.xml first ? I guess build.xml ?




 Original-Nachricht 

Datum: Mon, 13 Oct 2008 21:54:06 +1100
Von: Geoff Callender <[EMAIL PROTECTED]>
An: Tapestry users 
Betreff: [ANN] JumpStart 3.16 has arrived!



Hi all,

JumpStart 3.16 is now available.  It has heaps of new examples!

* Grid Model
* Editable Grid
* onActivate and OnPassivate
* Passing Data Between Pages
* Return Types
* Multiple Method Matches
* Event Bubbling
* Triggering a New Event
* Create (Using BeanEditForm)

Use it live:

 http://202.177.217.122:8080/jumpstart/

or download it:

 http://files.doublenegative.com.au/jumpstart .

Feedback and suggestions are always welcome. The last lot of
suggestions was absolutely sensational - thanks to all of you.   
Please

keep 'em flowing!

Cheers,

Geoff


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: TransformationException running tutorial

2008-10-13 Thread D Dart

I'm using 5.0.15.


Thiago H. de Paula Figueiredo wrote:
> 
> What Tapestry version are you using? The @Property annotation was added in  
> some release I cannot remeber exactly. Make sure you are using the latest  
> one. ;)
> 
> Em Mon, 13 Oct 2008 15:45:04 -0200, D Dart <[EMAIL PROTECTED]> escreveu:
> 
>>
>> I'm doing this tutorial,
>> http://tapestry.apache.org/tapestry5/tutorial1/forms.html, but using  
>> Tomcat
>> instead of Jetty and "t5demo" instead of "org.apache.tapestry5.tutorial".
>> I'm getting this exception when trying to run it in Tomcat:
>>
>> caught an exception while obtaining a class file for
>> t5demo.pages.address.CreateAddress
>> exception
>> org.apache.tapestry.internal.services.TransformationException:
>> java.lang.ClassNotFoundException:  
>> org.apache.tapestry5.annotations.Property
>>
>> I've received this exception in the tutorial in prior chapters when the
>> Property annotation was used, but was able to work around it by adding
>> getters/setters.
>>
>> Since this particular chapter uses beaneditform, I can't figure out a  
>> work
>> around.  Does anybody have a fix for this issue?
>>
>> thanks
> 
> 
> 
> -- 
> Thiago H. de Paula Figueiredo
> Independent Java consultant, developer, and instructor
> Consultor, desenvolvedor e instrutor em Java
> http://www.arsmachina.com.br/thiago
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/TransformationException-running-tutorial-tp19959440p19960810.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [ANN] JumpStart 3.16 has arrived!

2008-10-13 Thread superoverdrive
what about a small readme file that describes, how to start it, e.g. context 
directory, whether any additional libs are necessary (cglib.jar?), etcand 
whether you are supposed to run the war file or directly the directory of the 
files etc...? And should you start exploder.xml or build.xml first ? I guess 
build.xml ?



 Original-Nachricht 
> Datum: Mon, 13 Oct 2008 21:54:06 +1100
> Von: Geoff Callender <[EMAIL PROTECTED]>
> An: Tapestry users 
> Betreff: [ANN] JumpStart 3.16 has arrived!

> Hi all,
> 
> JumpStart 3.16 is now available.  It has heaps of new examples!
> 
>   * Grid Model
>   * Editable Grid
>   * onActivate and OnPassivate
>   * Passing Data Between Pages
>   * Return Types
>   * Multiple Method Matches
>   * Event Bubbling
>   * Triggering a New Event
>   * Create (Using BeanEditForm)
> 
> Use it live:
> 
>http://202.177.217.122:8080/jumpstart/
> 
> or download it:
> 
>http://files.doublenegative.com.au/jumpstart .
> 
> Feedback and suggestions are always welcome. The last lot of  
> suggestions was absolutely sensational - thanks to all of you.  Please  
> keep 'em flowing!
> 
> Cheers,
> 
> Geoff

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: TransformationException running tutorial

2008-10-13 Thread Thiago H. de Paula Figueiredo
What Tapestry version are you using? The @Property annotation was added in  
some release I cannot remeber exactly. Make sure you are using the latest  
one. ;)


Em Mon, 13 Oct 2008 15:45:04 -0200, D Dart <[EMAIL PROTECTED]> escreveu:



I'm doing this tutorial,
http://tapestry.apache.org/tapestry5/tutorial1/forms.html, but using  
Tomcat

instead of Jetty and "t5demo" instead of "org.apache.tapestry5.tutorial".
I'm getting this exception when trying to run it in Tomcat:

caught an exception while obtaining a class file for
t5demo.pages.address.CreateAddress
exception
org.apache.tapestry.internal.services.TransformationException:
java.lang.ClassNotFoundException:  
org.apache.tapestry5.annotations.Property


I've received this exception in the tutorial in prior chapters when the
Property annotation was used, but was able to work around it by adding
getters/setters.

Since this particular chapter uses beaneditform, I can't figure out a  
work

around.  Does anybody have a fix for this issue?

thanks




--
Thiago H. de Paula Figueiredo
Independent Java consultant, developer, and instructor
Consultor, desenvolvedor e instrutor em Java
http://www.arsmachina.com.br/thiago

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to return .tml content as a String from a Java class?

2008-10-13 Thread superoverdrive
Where is this?

This is from the Tapestry5 accordion - and it only takes Strings - no other 
components can be put inside the Accordion.

 Original-Nachricht 
> Datum: Mon, 13 Oct 2008 13:27:00 +0200
> Von: Joachim Van der Auwera <[EMAIL PROTECTED]>
> An: Tapestry users 
> Betreff: Re: How to return .tml content as a String from a Java class?

> You may want to look at the "Accordion" component in equanda-tapestry5
> 
> Kind regards,
> Joachim
> 
> [EMAIL PROTECTED] wrote:
> > The SlidingPanel (as it currently is), expects an Array of Strings that
> contain the contents of the SlidingPanel:
> >
> > E.g.:
> >
> > public String[] getDetails(){
> > return new String[]{"Content A","Content B","Content C"};
> > }
> >
> > Assuming, I want to return components instead of Strings, how would I
> access them in Java code?
> >
> > e.g.
> >
> > ComponentA.tml
> > ComponentB.tml
> > ComponentC.tml
> >
> > Can I "inject" them somehow and access their contents as a String?
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >   
> 
> 
> -- 
> Joachim Van der Auwera
> PROGS bvba, progs.be
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



TransformationException running tutorial

2008-10-13 Thread D Dart

I'm doing this tutorial,
http://tapestry.apache.org/tapestry5/tutorial1/forms.html, but using Tomcat
instead of Jetty and "t5demo" instead of "org.apache.tapestry5.tutorial". 
I'm getting this exception when trying to run it in Tomcat:

caught an exception while obtaining a class file for
t5demo.pages.address.CreateAddress
exception
org.apache.tapestry.internal.services.TransformationException:
java.lang.ClassNotFoundException: org.apache.tapestry5.annotations.Property

I've received this exception in the tutorial in prior chapters when the
Property annotation was used, but was able to work around it by adding
getters/setters.

Since this particular chapter uses beaneditform, I can't figure out a work
around.  Does anybody have a fix for this issue?

thanks
-- 
View this message in context: 
http://www.nabble.com/TransformationException-running-tutorial-tp19959440p19959440.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: t5: DAO and hibernate integration

2008-10-13 Thread Hugo Palma

Why don't you make those "normal java classes" services ?

shinkei wrote:
Is there another way? 


I have quite a few DAO's that need to talk with alot normal java classes
behind the page. So it seems a bit messy injecting all the DAOs through the
page class and then back into the java classes behind it.




HugoPalma wrote:
  
Just inject it into the page/component/service where the normal java 
class is being called from and pass the userDAO instance to it.


shinkei wrote:


How would I use the userDAO in a normal java class (ie. not a page)?

Inject won't seem to work unless its a page.

Can anyone help?



Raul Rosenzvaig wrote:
  
  

Finally I got the most simple solution from Onno

Just to pass the hibernate session in the constructor and that will do
the
trick:

import org.hibernate.Session;

public class UserDAOImpl implements UserDAO {
   
  private Session session;
   
   
public UserDAOImpl(Session session) {   //this is the constructor !!

  this.session = session;
}


after that I can inject the service and use it at my pages by:

@Inject
private UserDAO userDAO;

public List getUserList()
{
	   
			return userDAO.findAllUsers();


}




Raul Rosenzvaig wrote:



Does anyone have a working example of  Hibernate  in DAO service ?

Much appreciate

Raul Rosenzvaig 

  
  


  
  



  


Re: t5: DAO and hibernate integration

2008-10-13 Thread shinkei


Is there another way? 

I have quite a few DAO's that need to talk with alot normal java classes
behind the page. So it seems a bit messy injecting all the DAOs through the
page class and then back into the java classes behind it.




HugoPalma wrote:
> 
> Just inject it into the page/component/service where the normal java 
> class is being called from and pass the userDAO instance to it.
> 
> shinkei wrote:
>> How would I use the userDAO in a normal java class (ie. not a page)?
>>
>> Inject won't seem to work unless its a page.
>>
>> Can anyone help?
>>
>>
>>
>> Raul Rosenzvaig wrote:
>>   
>>> Finally I got the most simple solution from Onno
>>>
>>> Just to pass the hibernate session in the constructor and that will do
>>> the
>>> trick:
>>>
>>> import org.hibernate.Session;
>>>
>>> public class UserDAOImpl implements UserDAO {
>>>
>>>   private Session session;
>>>
>>>
>>> public UserDAOImpl(Session session) {   //this is the constructor !!
>>>   this.session = session;
>>> }
>>>
>>>
>>> after that I can inject the service and use it at my pages by:
>>>
>>> @Inject
>>> private UserDAO userDAO;
>>>
>>> public List getUserList()
>>> {
>>>
>>> return userDAO.findAllUsers();
>>>
>>> }
>>>
>>>
>>>
>>>
>>> Raul Rosenzvaig wrote:
>>> 
 Does anyone have a working example of  Hibernate  in DAO service ?

 Much appreciate

 Raul Rosenzvaig 

   
>>> 
>>
>>   
> 
> 

-- 
View this message in context: 
http://www.nabble.com/t5%3A-DAO-and-hibernate-integration-tp19124880p19959177.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: t5: DAO and hibernate integration

2008-10-13 Thread Hugo Palma
Just inject it into the page/component/service where the normal java 
class is being called from and pass the userDAO instance to it.


shinkei wrote:

How would I use the userDAO in a normal java class (ie. not a page)?

Inject won't seem to work unless its a page.

Can anyone help?



Raul Rosenzvaig wrote:
  

Finally I got the most simple solution from Onno

Just to pass the hibernate session in the constructor and that will do the
trick:

import org.hibernate.Session;

public class UserDAOImpl implements UserDAO {
   
  private Session session;
   
   
public UserDAOImpl(Session session) {   //this is the constructor !!

  this.session = session;
}


after that I can inject the service and use it at my pages by:

@Inject
private UserDAO userDAO;

public List getUserList()
{
	   
			return userDAO.findAllUsers();


}




Raul Rosenzvaig wrote:


Does anyone have a working example of  Hibernate  in DAO service ?

Much appreciate

Raul Rosenzvaig 

  



  


Re: ActionLink in component

2008-10-13 Thread Thiago H. de Paula Figueiredo
Em Mon, 13 Oct 2008 14:22:36 -0200, moritzgilsdorf  
<[EMAIL PROTECTED]> escreveu:



@OnEvent(component = "reset")
public Object reset(){
tableParsed = false;
saveSucceed = false;
return null;
}


Are tableParsed and saveSucceed @Persist'ed?

--
Thiago H. de Paula Figueiredo
Independent Java consultant, developer, and instructor
Consultor, desenvolvedor e instrutor em Java
http://www.arsmachina.com.br/thiago

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



ActionLink in component

2008-10-13 Thread moritzgilsdorf

Hi,

I'm feeling like posting a very trivial problem but unfortunately I can't
find my mistake.

I have a actionlink in a component to reset some persisted booleans. The
actionlink looks like this:

Reset

And the triggered method like this:

@OnEvent(component = "reset")
public Object reset(){
tableParsed = false;
saveSucceed = false;
return null;
}

But the booleans are not resetted. It only works when I remove the
("component="reset") or rename reset() to onAction(). But then I also reset
the variables on form submits.

What am I doing wrong?

Thanks.

-- 
View this message in context: 
http://n2.nabble.com/ActionLink-in-component-tp1329406p1329406.html
Sent from the Tapestry Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



5.0.15 asset NullPointerException

2008-10-13 Thread Jack Nuzbit
Hi All,

I've just switched over to tapestry 5.0.15 and I'm now seeing sporadic
NullPointerExceptions originating from the ContextAssetFactory.

Caused by: java.lang.NullPointerException
at $Request_11cf6ca8ebe.getContextPath($Request_11cf6ca8ebe.java)
at $Request_11cf6ca8e55.getContextPath($Request_11cf6ca8e55.java)
at
org.apache.tapestry5.internal.services.ContextAssetFactory.createAsset(ContextAssetFactory.java:45)
at $AssetFactory_11cf6ca8e7c.createAsset($AssetFactory_11cf6ca8e7c.java)
at
org.apache.tapestry5.internal.services.AssetSourceImpl.createAssetFromResource(AssetSourceImpl.java:130)
at
org.apache.tapestry5.internal.services.AssetSourceImpl.getAssetForResource(AssetSourceImpl.java:113)
at
org.apache.tapestry5.internal.services.AssetSourceImpl.findRelativeAsset(AssetSourceImpl.java:104)
at
org.apache.tapestry5.internal.services.AssetSourceImpl.getAsset(AssetSourceImpl.java:93)
at $AssetSource_11cf6ca8e47.getAsset($AssetSource_11cf6ca8e47.java)
at
org.apache.tapestry5.internal.bindings.AssetBindingFactory.newBinding(AssetBindingFactory.java:93)
at
$BindingFactory_11cf6ca8e9b.newBinding($BindingFactory_11cf6ca8e9b.java)
at
org.apache.tapestry5.internal.services.BindingSourceImpl.newBinding(BindingSourceImpl.java:80)


The line in question in the ContextAssetFactory is:

45:   final String contextPath = request.getContextPath() + "/"
+ resource.getPath();

The request implementation is using the JustInTimeObjectCreator at this
point and it looks like it's failing to build the Request correctly and
throwing this error.

If i restart jetty about 50% of the time the webapp will start fine and this
exception will never occur.
The rest of the time the webapp seems to startup fine but will always throw
this Exception when an asset is encountered on a page.
I'm using maven with the jetty plugin to run it and the webapp also uses an
overlay.

Does anybody have any thoughts on what could be causing this?

Many thanks

jack


Re: t5: DAO and hibernate integration

2008-10-13 Thread shinkei


How would I use the userDAO in a normal java class (ie. not a page)?

Inject won't seem to work unless its a page.

Can anyone help?



Raul Rosenzvaig wrote:
> 
> Finally I got the most simple solution from Onno
> 
> Just to pass the hibernate session in the constructor and that will do the
> trick:
> 
> import org.hibernate.Session;
> 
> public class UserDAOImpl implements UserDAO {
>
>   private Session session;
>
>
> public UserDAOImpl(Session session) {   //this is the constructor !!
>   this.session = session;
> }
> 
> 
> after that I can inject the service and use it at my pages by:
> 
> @Inject
>   private UserDAO userDAO;
> 
>   public List getUserList()
>   {
>  
>   return userDAO.findAllUsers();
> 
> }
> 
> 
> 
> 
> Raul Rosenzvaig wrote:
>> 
>> Does anyone have a working example of  Hibernate  in DAO service ?
>> 
>> Much appreciate
>> 
>> Raul Rosenzvaig 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/t5%3A-DAO-and-hibernate-integration-tp19124880p19958026.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Ajax Response in IE with HTML Entities (4.1.6)

2008-10-13 Thread lt

Jesse,

You seem to be the expert.  Im snagged yet again by IE.  The character this
time is & raquo;  .  In the ajax response its a valid html entity.  I added
the space here to make it clearer.  Again all browsers are fine with it
except for IE.  All characters encoded in the 100's range fails too.  There
has to be a way to let IE be more lenient or some trick im missing in
tapestry.  This has to be a common error.  

Thanks in Advance.
LT

For others having issues with Asyn Responses.  Here are some tips.
Guidelines to doing tapestry ASYNC requests in IE and Firefox:

* Repsonse must be valid xml (this means nowraps attributes have to be
nowrap="nowrap" and br tags need to be xhtml compliant.  like < br /> (no
spaces of course)
* Comment tags are not allowed (IE only)
* All characters must be encoded or escaped,  Check for &'s.  99.9
percent  of the time there seems to be an & in some url thats not escaped.

If your not seeing the html updated after the response is received:

* CHECK ALL ABOVE
* In IE you cannot update a ROW  within the dom, this is Illegal. 
You must update the table or a div or a td 





lt wrote:
> 
> In rendering a response from an async request, my html comes back valid. 
> All browsers work but IE.  I have narrowed it down to special characters
> such as & reg;.  Without those IE works.  With characters like that, the
> component doesn't update.  There has to be a fix for this.  My page has a
> valid dtd. (transitional)
> 
> Pleas let me know what I can do to fix this.
> 
> Thanks.
> L
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Ajax-Response-in-IE-with-HTML-Entities-%284.1.6%29-tp19788294p19957088.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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

2008-10-13 Thread José Paumard

Sorry, it was my mistake, due to a mess in a pom.xml, that was
referencing both 5.0.15 and 5.0.14, following a merge. The problem is
now solved. 
J.




José Paumard a écrit :


Joachim,

I met the same problem (5.0.15), and I'm having troubles with it. 
Could you solve it ? Any hint anyone ?


Thank you,

José



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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

2008-10-13 Thread Hugo Palma
Do you mean tapestry-spring-security at 
http://www.localhost.nu/java/tapestry-spring-security ?


Joachim Van der Auwera wrote:
Anybody know what the cause/solution for this error is (see exception 
below).


I am trying to integrate tapestry-sping-acegi and this exception occurs.

I have already assured all methods in AppModule are static, but that 
hasn't helped.


Any ideas?

Thanks,
Joachim

ERROR 
[org.apache.tapestry5.ioc.services.TapestryIOCModule.MasterObjectProvider] 
Construction of service MasterObjectProvider failed: Error invoking 
constructor 
org.apache.tapestry5.ioc.internal.services.MasterObjectProviderImpl(List) 
(at MasterObjectProviderImpl.java:29) (for service 
'MasterObjectProvider'): Error invoking service contribution method 
org.apache.tapestry5.services.TapestryModule.contributeMasterObjectProvider(OrderedConfiguration, 
Alias, ObjectProvider): Exception constructing service 
'MasterObjectProvider': Construction of service 'MasterObjectProvider' 
has failed due to recursion: the service depends on itself in some 
way. Please check 
org.apache.tapestry5.ioc.internal.services.MasterObjectProviderImpl(List) 
(at MasterObjectProviderImpl.java:29) for references to another 
service that is itself dependent on service 'MasterObjectProvider'.
java.lang.RuntimeException: Error invoking constructor 
org.apache.tapestry5.ioc.internal.services.MasterObjectProviderImpl(List) 
(at MasterObjectProviderImpl.java:29) (for service 
'MasterObjectProvider'): Error invoking service contribution method 
org.apache.tapestry5.services.TapestryModule.contributeMasterObjectProvider(OrderedConfiguration, 
Alias, ObjectProvider): Exception constructing service 
'MasterObjectProvider': Construction of service 'MasterObjectProvider' 
has failed due to recursion: the service depends on itself in some 
way. Please check 
org.apache.tapestry5.ioc.internal.services.MasterObjectProviderImpl(List) 
(at MasterObjectProviderImpl.java:29) for references to another 
service that is itself dependent on service 'MasterObjectProvider'.




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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

2008-10-13 Thread José Paumard

Joachim,

I met the same problem (5.0.15), and I'm having troubles with it. Could 
you solve it ? Any hint anyone ?


Thank you,

José

Joachim Van der Auwera a écrit :


Anybody know what the cause/solution for this error is (see exception 
below).


I am trying to integrate tapestry-sping-acegi and this exception occurs.

I have already assured all methods in AppModule are static, but that 
hasn't helped.


Any ideas?

Thanks,
Joachim

ERROR 
[org.apache.tapestry5.ioc.services.TapestryIOCModule.MasterObjectProvider] 
Construction of service MasterObjectProvider failed: Error invoking 
constructor 
org.apache.tapestry5.ioc.internal.services.MasterObjectProviderImpl(List) 
(at MasterObjectProviderImpl.java:29) (for service 
'MasterObjectProvider'): Error invoking service contribution method 
org.apache.tapestry5.services.TapestryModule.contributeMasterObjectProvider(OrderedConfiguration, 
Alias, ObjectProvider): Exception constructing service 
'MasterObjectProvider': Construction of service 'MasterObjectProvider' 
has failed due to recursion: the service depends on itself in some 
way. Please check 
org.apache.tapestry5.ioc.internal.services.MasterObjectProviderImpl(List) 
(at MasterObjectProviderImpl.java:29) for references to another 
service that is itself dependent on service 'MasterObjectProvider'.
java.lang.RuntimeException: Error invoking constructor 
org.apache.tapestry5.ioc.internal.services.MasterObjectProviderImpl(List) 
(at MasterObjectProviderImpl.java:29) (for service 
'MasterObjectProvider'): Error invoking service contribution method 
org.apache.tapestry5.services.TapestryModule.contributeMasterObjectProvider(OrderedConfiguration, 
Alias, ObjectProvider): Exception constructing service 
'MasterObjectProvider': Construction of service 'MasterObjectProvider' 
has failed due to recursion: the service depends on itself in some 
way. Please check 
org.apache.tapestry5.ioc.internal.services.MasterObjectProviderImpl(List) 
(at MasterObjectProviderImpl.java:29) for references to another 
service that is itself dependent on service 'MasterObjectProvider'.





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Bug with grid default-sorting

2008-10-13 Thread Martin Grotzke
Hi,

can anybody help with https://issues.apache.org/jira/browse/TAP5-135
(Grid.getSortContraints NPE when sortColumnId != null)?

Is there any workaround for this or any other solution?

1) We really want to upgrade T5 because of
https://issues.apache.org/jira/browse/TAPESTRY-2561
2) We really need a default sorting, as this is very important for our
customer.

Any help appreciated!

Thanx in advance,
cheers,
Martin



signature.asc
Description: This is a digitally signed message part


Re: BeanEditForm and Date problem

2008-10-13 Thread Geoff Callender

This sounds worth creating an issue in JIRA. 
https://issues.apache.org/jira/browse/TAPESTRY

On 11/10/2008, at 3:54 AM, shymon wrote:




I have a bean with property of type java.util.Date. There is also a
constructor getting Date value as parameter. When I try to use  
BeanEditForm

with this bean RenderQueueException is thrown saying:

...(for service 'BeanModelSource'): No service implements the  
interface

java.util.Date


Another problem is with DateField component. First date selection  
works

fine, edit box is filled with selected date but then when I click on
calendar icon empty calendar window is opened. (ie. NaN in place of  
year,

undefined in place of month and so on).

Thanks in advance for your help.

(Tapestry 5.0.15)



--
View this message in context: 
http://www.nabble.com/BeanEditForm-and-Date-problem-tp19922063p19922063.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Can i use components.

2008-10-13 Thread Ulrich Stärk
I think it should be possible to just put it anywhere in your classpath
but the package hierarchy has to be respected. That is you could put it
into /templates/org/yourgroup/components/Template.tml and contribute
/templates to your classpath if the component is in
org/yourgroup/components/Template.class.

Uli

Am Mo, 13.10.2008, 15:35, schrieb Thiago H. de Paula Figueiredo:
> Em Mon, 13 Oct 2008 04:54:23 -0200, BhushanMahajan <[EMAIL PROTECTED]>
> escreveu:
>
>> I have created a custom layout component and also a .tml page for it.
>> Tapestry 5 allows me to keep the tml in the component folder only, but i
>> want to use it out side of the components folder.
>> it shows a binding error.
>> Please tell me the solution,
>
> There is no solution unless you fork Tapestry's source code.
>
> --
> Thiago H. de Paula Figueiredo
> Independent Java consultant, developer, and instructor
> Consultor, desenvolvedor e instrutor em Java
> http://www.arsmachina.com.br/thiago
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Can i use components.

2008-10-13 Thread Thiago H. de Paula Figueiredo
Em Mon, 13 Oct 2008 04:54:23 -0200, BhushanMahajan <[EMAIL PROTECTED]>  
escreveu:



I have created a custom layout component and also a .tml page for it.
Tapestry 5 allows me to keep the tml in the component folder only, but i
want to use it out side of the components folder.
it shows a binding error.
Please tell me the solution,


There is no solution unless you fork Tapestry's source code.

--
Thiago H. de Paula Figueiredo
Independent Java consultant, developer, and instructor
Consultor, desenvolvedor e instrutor em Java
http://www.arsmachina.com.br/thiago

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Reply is Null

2008-10-13 Thread Thiago H. de Paula Figueiredo
Em Mon, 13 Oct 2008 04:50:00 -0200, BhushanMahajan <[EMAIL PROTECTED]>  
escreveu:



Hi,


Hi!

I m using zone with block but i have some problem with it as it gives me  
js

error as "reply is null".
if any body had solution please tell me its urgent.


You should always return a Zone or Block in the event handler method. ;)

--
Thiago H. de Paula Figueiredo
Independent Java consultant, developer, and instructor
Consultor, desenvolvedor e instrutor em Java
http://www.arsmachina.com.br/thiago

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: manage sub-collection with grid component

2008-10-13 Thread Hugo Palma
Have you taken a look at the "Adding Columns Example" here 
http://tapestry.apache.org/tapestry5/tapestry-core/ref/org/apache/tapestry5/corelib/components/Grid.html 
?


Does that solve your problem ?

mdes wrote:
Dear all, 
I need your support in order to determine the better way to solve this

situation.

I have, say, 2 entities (ejb3)

@Entity
public class Child {
private String idChild;
private String firstName;
private String secondName;
...
}

@Entity
public class Father{
private String idFather;


private Collection children;
...
}

And I want to build a table in this way:
- for each row, print all Father properties
- in the last column, I want to insert a list of links to the each child
related to the specific Father in the row. 


I'm working on a grid component, so:



but what can I insert in the "childrenInfo" column?
I think that one solution could be a new component that accepts the idFather
as parameter, and then returns the html code for the Children list. Is this
a good idea?

Any suggestions/thoughts?









  


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



manage sub-collection with grid component

2008-10-13 Thread mdes

Dear all, 
I need your support in order to determine the better way to solve this
situation.

I have, say, 2 entities (ejb3)

@Entity
public class Child {
private String idChild;
private String firstName;
private String secondName;
...
}

@Entity
public class Father{
private String idFather;


private Collection children;
...
}

And I want to build a table in this way:
- for each row, print all Father properties
- in the last column, I want to insert a list of links to the each child
related to the specific Father in the row. 

I'm working on a grid component, so:



but what can I insert in the "childrenInfo" column?
I think that one solution could be a new component that accepts the idFather
as parameter, and then returns the html code for the Children list. Is this
a good idea?

Any suggestions/thoughts?









-- 
View this message in context: 
http://www.nabble.com/manage-sub-collection-with-grid-component-tp19954739p19954739.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [ANN] JumpStart 3.16 has arrived!

2008-10-13 Thread Geoff Callender

Thanks, guys. You're making me blush!

On 13/10/2008, at 11:24 PM, Inge Solvoll wrote:


Agreed, I love Jumpstart! Extremely useful!

On Mon, Oct 13, 2008 at 2:19 PM, Francois Armand  
<[EMAIL PROTECTED]>wrote:



Francois Armand wrote:


Geoff, I didn't look at your work yet,


I mean, "I didtn't look at that new version of...", of course :)


--
Francois Armand
Etudes & Développements J2EE
Groupe Linagora - http://www.linagora.com
Tél.: +33 (0)1 58 18 68 28
---
InterLDAP - http://interldap.org FederID - http://www.federid.org/
Open Source identities management and federation


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [ANN] JumpStart 3.16 has arrived!

2008-10-13 Thread Inge Solvoll
Agreed, I love Jumpstart! Extremely useful!

On Mon, Oct 13, 2008 at 2:19 PM, Francois Armand <[EMAIL PROTECTED]>wrote:

> Francois Armand wrote:
>
>> Geoff, I didn't look at your work yet,
>>
> I mean, "I didtn't look at that new version of...", of course :)
>
>
> --
> Francois Armand
> Etudes & Développements J2EE
> Groupe Linagora - http://www.linagora.com
> Tél.: +33 (0)1 58 18 68 28
> ---
> InterLDAP - http://interldap.org FederID - http://www.federid.org/
> Open Source identities management and federation
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: [ANN] JumpStart 3.16 has arrived!

2008-10-13 Thread Francois Armand

Francois Armand wrote:
Geoff, I didn't look at your work yet, 

I mean, "I didtn't look at that new version of...", of course :)

--
Francois Armand
Etudes & Développements J2EE
Groupe Linagora - http://www.linagora.com
Tél.: +33 (0)1 58 18 68 28
---
InterLDAP - http://interldap.org 
FederID - http://www.federid.org/

Open Source identities management and federation


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [ANN] JumpStart 3.16 has arrived!

2008-10-13 Thread Francois Armand

Geoff Callender wrote:

Hi all,

JumpStart 3.16 is now available.  It has heaps of new examples!


Geoff, I didn't look at your work yet, but I already want to thank you 
for this really good piece of work, you quite follow the T5 development, 
and it's really great to have this bunch of examples.

So, great work and thank you again !

--
Francois Armand
Etudes & Développements J2EE
Groupe Linagora - http://www.linagora.com
Tél.: +33 (0)1 58 18 68 28
---
InterLDAP - http://interldap.org 
FederID - http://www.federid.org/

Open Source identities management and federation


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [T5] What is your missing feature / bloking bug before 5.0 ?

2008-10-13 Thread Onno Scheffers
Great sum up.

There has been talk in the past about the missing $remove$, $body$ etc.
which we had in Tapestry 4 if I'm not mistaken.
There are work-arounds in T5, but I would expect those to be available in a
release candidate of T5.

regards,

Onno Scheffers



On Mon, Oct 13, 2008 at 11:36 AM, Francois Armand <[EMAIL PROTECTED]>wrote:

> OK, so a little sum up with the matching bug reference, so that at least
> everybody can vote for this easaly. It would be quite simple afterward to
> bring the T5 dev attention to bugs with tens of vote for them.
>
> Note: some bugs are in the Tapestry project, not the TAP5 one. I thing
> there owners should reopen them in the new TAP5 project.
>
> So ! Go and vote for your bugs and features !!
>
> (notice 2 : I really believe that T5 is a WONDERFUL framework, and it's
> just that the 5.0 is so much important in people (I mean, non tech) spirit
> that it deserve to reflect the beauty of T5. I would be a mass that people
> stop after only some trying ours because they it one of the these bugs).
>
>> So, for me, what I expect for 5.0 :
>> 1/ - full and complete and rather simple internationalization : I really
>> believe that a web framework can ignore other language and culture (date,
>> number) today ;
>>that include validator translation and stuff like that.
>>
> It's a point that seems to drove a lot of attention, and which is really
> important for the success of T5 outside English-speaking countries.
> So, there is the validator already opened bug :
> https://issues.apache.org/jira/browse/TAP5-211
>
> UTF-8 in autocomplete, with the one-line patch :
> https://issues.apache.org/jira/browse/TAPESTRY-2433
>
> "There is no data to display." is hardcoded in  Grid.tml :
> https://issues.apache.org/jira/browse/TAP5-262
>
> If other specific issue with i18n appears, please open other bugs and
> linked them here.
>
>  2/ - valid XHTML, even for IE, by default. The workaround is here for some
>> time, but why it's not default ? See
>> http://wiki.apache.org/tapestry/Tapestry5HowToXhtml
>>
> It appears that it's important that things will "just work" on IE, even if
> this browser suck. Perhaps a configuration value ?
> So, the bug :
> https://issues.apache.org/jira/browse/TAP5-263
>
>
> Others queries was raised :
>
> * Javascript at top or bottom of the page, what seems to be a really hot
> topic, and does not required a lot of modification in T5 code base :
> https://issues.apache.org/jira/browse/TAPESTRY-2364
>
> The bug is closed, so perhaps it will be good to open a new one for 5.0.16
> and post the link ?
>
> * ApplicationStateObject, "mileading name". The fact here is that after 5.0
> released, the named will be write in the stone forever. Personnaly, I have
> no opinion on that topic, but it appears that several members in my team
> don't feel at ease with this name.
> Related bug :
> https://issues.apache.org/jira/browse/TAPESTRY-2703
>
> * T5 lacks queries with named parameters, especially for search and this
> kind of queries.
> I'm fear that this one may require a lot of modification in the T5 code
> base. Some solution are purposed, like having a map in the query :
>
> http://foo/myT5app/mypage/normalcontext/mycontextmap=[key1:value1,key2:value2]/othercontextparam
> will match a onActivate(String normalcontext, Map
> mycontextmap, String othercontextparam).
> The map would contains the different key/values.
> The bug is here :
> https://issues.apache.org/jira/browse/TAP5-264
>
> * Missing "hidden" field component : a rather simple thing to do, and a
> strange missing :
> https://issues.apache.org/jira/browse/TAP5-265
>
> The next queries seems to be less important, so for now I didn't opened
> other bugs.
>
>> 3/ - something around AJAX documentation and Zone update inside a form
>> (that includes update of part of a form on change from a select :
>> https://issues.apache.org/jira/browse/TAP5-138)
>> 4/- a property symbol provider, also simple and in use almost always @see
>> http://wiki.apache.org/tapestry/Tapestry5HowToReadSymbolsFromPropertiesFile
>> [...]
>> Other simple stuff that should be corrected before 5.0 (in my opinion) :
>> - why hidden field is still missing ? It's so easy to add, a new user
>> should not even have to search for that !
>> - https://issues.apache.org/jira/browse/TAP5-257, that seems to bring
>> other pb with decorator and the like ;
>>
> Enloy !
>
>
> --
> Francois Armand
> Etudes & Développements J2EE
> Groupe Linagora - http://www.linagora.com
> Tél.: +33 (0)1 58 18 68 28
> ---
> InterLDAP - http://interldap.org FederID - http://www.federid.org/
> Open Source identities management and federation
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: How to return .tml content as a String from a Java class?

2008-10-13 Thread Joachim Van der Auwera

You may want to look at the "Accordion" component in equanda-tapestry5

Kind regards,
Joachim

[EMAIL PROTECTED] wrote:

The SlidingPanel (as it currently is), expects an Array of Strings that contain 
the contents of the SlidingPanel:

E.g.:

public String[] getDetails(){
return new String[]{"Content A","Content B","Content C"};
}

Assuming, I want to return components instead of Strings, how would I access 
them in Java code?

e.g.

ComponentA.tml
ComponentB.tml
ComponentC.tml

Can I "inject" them somehow and access their contents as a String?

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


  



--
Joachim Van der Auwera
PROGS bvba, progs.be


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: hidden input field, TAPESTRY5

2008-10-13 Thread Andy Pahne


There is already a JIRA issue and a patch:
https://issues.apache.org/jira/browse/TAP5-265



Joel Halbert schrieb:
Just out of interest, does any one know what the rational was for not 
making hidden fields part of the core codebase?
Is it simply because Activation Contexts should be used in preference to 
hidden fields for keeping state between requests?




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[ANN] JumpStart 3.16 has arrived!

2008-10-13 Thread Geoff Callender

Hi all,

JumpStart 3.16 is now available.  It has heaps of new examples!

* Grid Model
* Editable Grid
* onActivate and OnPassivate
* Passing Data Between Pages
* Return Types
* Multiple Method Matches
* Event Bubbling
* Triggering a New Event
* Create (Using BeanEditForm)

Use it live:

 http://202.177.217.122:8080/jumpstart/

or download it:

 http://files.doublenegative.com.au/jumpstart .

Feedback and suggestions are always welcome. The last lot of  
suggestions was absolutely sensational - thanks to all of you.  Please  
keep 'em flowing!


Cheers,

Geoff

Re: [T5] What is your missing feature / bloking bug before 5.0 ?

2008-10-13 Thread Francois Armand
OK, so a little sum up with the matching bug reference, so that at least 
everybody can vote for this easaly. It would be quite simple afterward 
to bring the T5 dev attention to bugs with tens of vote for them.


Note: some bugs are in the Tapestry project, not the TAP5 one. I thing 
there owners should reopen them in the new TAP5 project.


So ! Go and vote for your bugs and features !!

(notice 2 : I really believe that T5 is a WONDERFUL framework, and it's 
just that the 5.0 is so much important in people (I mean, non tech) 
spirit that it deserve to reflect the beauty of T5. I would be a mass 
that people stop after only some trying ours because they it one of the 
these bugs).

So, for me, what I expect for 5.0 :
1/ - full and complete and rather simple internationalization : I 
really believe that a web framework can ignore other language and 
culture (date, number) today ;

that include validator translation and stuff like that.
It's a point that seems to drove a lot of attention, and which is really 
important for the success of T5 outside English-speaking countries.

So, there is the validator already opened bug :
https://issues.apache.org/jira/browse/TAP5-211

UTF-8 in autocomplete, with the one-line patch :
https://issues.apache.org/jira/browse/TAPESTRY-2433

"There is no data to display." is hardcoded in  Grid.tml :
https://issues.apache.org/jira/browse/TAP5-262

If other specific issue with i18n appears, please open other bugs and 
linked them here.


2/ - valid XHTML, even for IE, by default. The workaround is here for 
some time, but why it's not default ? See 
http://wiki.apache.org/tapestry/Tapestry5HowToXhtml
It appears that it's important that things will "just work" on IE, even 
if this browser suck. Perhaps a configuration value ?

So, the bug :
https://issues.apache.org/jira/browse/TAP5-263


Others queries was raised :

* Javascript at top or bottom of the page, what seems to be a really hot 
topic, and does not required a lot of modification in T5 code base :

https://issues.apache.org/jira/browse/TAPESTRY-2364

The bug is closed, so perhaps it will be good to open a new one for 
5.0.16 and post the link ?


* ApplicationStateObject, "mileading name". The fact here is that after 
5.0 released, the named will be write in the stone forever. Personnaly, 
I have no opinion on that topic, but it appears that several members in 
my team don't feel at ease with this name.

Related bug :
https://issues.apache.org/jira/browse/TAPESTRY-2703

* T5 lacks queries with named parameters, especially for search and this 
kind of queries.
I'm fear that this one may require a lot of modification in the T5 code 
base. Some solution are purposed, like having a map in the query :

http://foo/myT5app/mypage/normalcontext/mycontextmap=[key1:value1,key2:value2]/othercontextparam
will match a onActivate(String normalcontext, Map 
mycontextmap, String othercontextparam).

The map would contains the different key/values.
The bug is here :
https://issues.apache.org/jira/browse/TAP5-264

* Missing "hidden" field component : a rather simple thing to do, and a 
strange missing :

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

The next queries seems to be less important, so for now I didn't opened 
other bugs.
3/ - something around AJAX documentation and Zone update inside a form 
(that includes update of part of a form on change from a select : 
https://issues.apache.org/jira/browse/TAP5-138)
4/- a property symbol provider, also simple and in use almost always 
@see 
http://wiki.apache.org/tapestry/Tapestry5HowToReadSymbolsFromPropertiesFile 


[...]
Other simple stuff that should be corrected before 5.0 (in my opinion) :
- why hidden field is still missing ? It's so easy to add, a new user 
should not even have to search for that !
- https://issues.apache.org/jira/browse/TAP5-257, that seems to bring 
other pb with decorator and the like ;

Enloy !

--
Francois Armand
Etudes & Développements J2EE
Groupe Linagora - http://www.linagora.com
Tél.: +33 (0)1 58 18 68 28
---
InterLDAP - http://interldap.org 
FederID - http://www.federid.org/

Open Source identities management and federation


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [T5] What is your missing feature / bloking bug before 5.0 ?

2008-10-13 Thread Neeme Praks

I agree with all the points.

And, for point #4, there is also a JIRA issue you can vote on:
https://issues.apache.org/jira/browse/TAP5-223

As it is a simple addition and commonly used, I do not see why it should 
not be included in 5.0. Then the wiki page can just describe how to 
enable it (actually, it would make sense to add a note about that topic 
to "official" T5 documentation also).


Rgds,
Neeme

Francois Armand wrote:
Ok, so we reach the point where T5.0 final is imminent, and we are all 
(I think) really happy of that.
As we also want that T5 really makes its way in the Java Web ecosystem, 
I think it always miss some really little things that are really 
important for a .0 release.


I purpose to start this discussion in the ml, and when some major gap 
emerge, to post them in the issue tracker, and vote for them.


So, for me, what I expect for 5.0 :
1/ - full and complete and rather simple internationalization : I really 
believe that a web framework can ignore other language and culture 
(date, number) today ;

that include validator translation and stuff like that.
2/ - valid XHTML, even for IE, by default. The workaround is here for 
some time, but why it's not default ? See 
http://wiki.apache.org/tapestry/Tapestry5HowToXhtml
3/ - something around AJAX documentation and Zone update inside a form 
(that includes update of part of a form on change from a select : 
https://issues.apache.org/jira/browse/TAP5-138)
4/- a property symbol provider, also simple and in use almost always 
@see 
http://wiki.apache.org/tapestry/Tapestry5HowToReadSymbolsFromPropertiesFile


Without 1, T5 just can't get is path easely outside English contries ; 
Without 2, T5 can hardly be considered top-level (even if on the 
technical point of vue, it's completly rigth and it's IE fault), without 
3, AJAX seems not so well integrated, and it's hot stuff todays, and 4 
is so much common in a application, why do we have to bother with that 
each time ?


Other simple stuff that should be corrected before 5.0 (in my opinion) :
- why hidden field is still missing ? It's so easy to add, a new user 
should not even have to search for that !
- https://issues.apache.org/jira/browse/TAP5-257, that seems to bring 
other pb with decorator and the like ;


What do you thing about that ? Does it make sense to open a "community 
want that" bug, that have to be quick to handle, but that brings the 
attention of T5 developers on what we need ? Perhaps we can already vote 
for existing bugs ? Which ones ?





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: hidden input field, TAPESTRY5

2008-10-13 Thread Joel Halbert
Just out of interest, does any one know what the rational was for not 
making hidden fields part of the core codebase?
Is it simply because Activation Contexts should be used in preference to 
hidden fields for keeping state between requests?


Bill Holloway wrote:

The tapestry5-components project on Google code features a Hidden
field component.  See:  http://code.google.com/p/tapestry5-components/

Bill @ peoplepad

On Sun, Oct 12, 2008 at 1:51 PM, Argo Vilberg <[EMAIL PROTECTED]> wrote:
  

hello

How to make hidden field in Tapestry5.






this textfield does not work.

Wich tapestry component i must use to use hidden form field?


Argo






  


--
SU3 Analytics Ltd
61b Oxford Gardens
W10 5UJ
London

Tel: +44 20 8960 2634
Mob: +44 75 2501 0825
www.su3analytics.com

SU3 Analytics Ltd is a company registered in England and Wales under company 
number 06639473 at registered address 61b Oxford Gardens, London W10 5UJ, 
United Kingdom.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]