T5 Components with parameters inside a loop

2009-05-19 Thread rmkkk

Hello,

I have components with parameters. I want to display them inside a loop.
For instance I have a list with two type1  components and two type2
components. When I try to display them inside a loop I have 2 times the
first type1 component and 2 times the type2 component.
I don't see where it comes from...

http://www.nabble.com/file/p23613799/Start.java Start.java 
http://www.nabble.com/file/p23613799/Start.tml Start.tml 
-- 
View this message in context: 
http://www.nabble.com/T5-Components-with-parameters-inside-a-loop-tp23613799p23613799.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: Submit a form in a zone in a component

2009-04-29 Thread rmkkk

It was already done (all my model objects and dtos implement hashcode and
equals), and the same select gave me the good binding  on a separate page
%-|
Now I have simplified my component, particularly with zones (I have now only
one zone for all my component), and the binding works fine now. Great but I
don't really understand where was the problem :confused: I will try to add
new zones soon...


Thiago H. de Paula Figueiredo wrote:
> 
> Make sure the class whose objects are selected implement both
> hashCode() and equals(). This is typical source of errors not only
> with Tapestry, but with any collection as well.
> 
> -- 
> Thiago
> 
> -
> 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://www.nabble.com/Submit-a-form-in-a-zone-in-a-component-tp23295673p23302557.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: Submit a form in a zone in a component

2009-04-29 Thread rmkkk

I have two forms in my component, I discovered that if I place my select in
my first form, the value is well binded :confused:

-- 
View this message in context: 
http://www.nabble.com/Submit-a-form-in-a-zone-in-a-component-tp23295673p23296111.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



Submit a form in a zone in a component

2009-04-29 Thread rmkkk

Hello,

I have a form in a Zone in a custom Component. The problem is that when I
submit the form, the binded value is null. I use 
http://wiki.apache.org/tapestry/Tapestry5AnotherSelectWithObjects this
select .
I join my Java and tml files, if someone has an idea, I searched for a long
time without success :-/
http://www.nabble.com/file/p23295673/SportFavoriteTeam.java
SportFavoriteTeam.java 
http://www.nabble.com/file/p23295673/SportFavoriteTeam.tml
SportFavoriteTeam.tml 
-- 
View this message in context: 
http://www.nabble.com/Submit-a-form-in-a-zone-in-a-component-tp23295673p23295673.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



Problem using many times the same component on one page

2009-04-10 Thread rmkkk

Hello,

I have a component I want to inject two times in the same page. I want to
display a block when clicking on an edit button. With one component no
problem. With two components when I click on the edit button of my second
component, it's the block of the first component which is displayed.

The strange thing is that another link works fine, I can  which didn't work
before adding clientId. But with my other zone 'configZone' I can't use
clientId, I get an exception.

How can I correct that ?

I join my tml and java files.
http://www.nabble.com/file/p22988449/SportTopOdds.java SportTopOdds.java 
http://www.nabble.com/file/p22988449/SportTopOdds.tml SportTopOdds.tml 
-- 
View this message in context: 
http://www.nabble.com/Problem-using-many-times-the-same-component-on-one-page-tp22988449p22988449.html
Sent from the Tapestry - User mailing list archive at Nabble.com.