Re: AjaxFormLoop Exception on 5.1.0.2 upgrade

2009-04-28 Thread zack1403

Alright this is the simplest setup I could do.  This is way simpler than even
the example thats in the nightly docs.  I am getting the same error.  If
someone could please help me out as to what I am missing here I would be
eternally grateful.  This is the complete source, there is no other source
involved in this except what I am pasting.

Tml:

http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";>




Bye!





Page:

import java.util.ArrayList;
import java.util.List;

import org.apache.tapestry5.annotations.Component;
import org.apache.tapestry5.annotations.Property;
import org.apache.tapestry5.corelib.components.TextField;

public class Test {

@Property
private List strings;

@Property
private String currentString;

@Component
private TextField theField;

void onActivate() {
strings = new ArrayList();
strings.add("Hello");
strings.add("Heres a tester");
}

String onAddRow() {
return "Added!";
}

void onRemoveRow(String toRemove) {
strings.remove(toRemove);
}
}

Sorry to be posting so much, I've just been pulling out my hair on this and
(as I'm sure you all understand) we have a very tight deadline to meet. 
Thank you all again for all the help!

Zack
-- 
View this message in context: 
http://www.nabble.com/AjaxFormLoop-Exception-on-5.1.0.2-upgrade-tp23175801p23291616.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: public or package level for event methods

2009-04-28 Thread Robert Zeigler

Tapestry doesn't care; it can even be private.

As for which to use, it's your preference, depending entirely on your  
needs.


Robert

On Apr 28, 2009, at 4/2810:19 PM , Angelo Chen wrote:



Hi,

which one is tapestry 5 correct:

public void onActivate();
void onActivate();

should we make event method public?

Angelo



--
View this message in context: 
http://www.nabble.com/t5%3A-public-or-package-level-for-event-methods-tp23289854p23289854.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



t5: public or package level for event methods

2009-04-28 Thread Angelo Chen

Hi,

which one is tapestry 5 correct:

public void onActivate();
void onActivate();

should we make event method public?

Angelo



-- 
View this message in context: 
http://www.nabble.com/t5%3A-public-or-package-level-for-event-methods-tp23289854p23289854.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: problems when using FormFragment in a loop

2009-04-28 Thread Howard Lewis Ship
This is the reason for the AjaxFormLoop component.

On Thu, Jan 15, 2009 at 3:19 PM, Joachim Van der Auwera
 wrote:
> After two days of hunting, I have discovered a bug (or maybe better)
> "limitation".
> If you try to use the FormFragment component inside a loop, then the updates
> caused by the form elements in the formfragment will only be applied to the
> last item in the loop.
>
> The form elements seem to be included at the end of the form instead of
> inside the loop element, which causes the problem.
>
> Maybe at a minimum the documentation could be modified to indicate this
> limitation.
>
> Kind regards,
> Joachim
>
> --
> Joachim Van der Auwera
> PROGS bvba, progs.be
>
>
> -
> 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
Director of Open Source Technology at Formos

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



Re: problems when using FormFragment in a loop

2009-04-28 Thread Andrew Court


Did anyone find a resolution (or file a JIRA) for this issue? 

I'm encountering exactly the same problem with formFragments in a loop. Only
the final loop iteration is updated on form submit and all the rest ignored.

Seems like a really fundamental problem with the formFragment component and
has me stumped.

Any ideas?

Thanks,
Andrew





Joachim Van der Auwera wrote:
> 
> After two days of hunting, I have discovered a bug (or maybe better) 
> "limitation".
> If you try to use the FormFragment component inside a loop, then the 
> updates caused by the form elements in the formfragment will only be 
> applied to the last item in the loop.
> 
> The form elements seem to be included at the end of the form instead of 
> inside the loop element, which causes the problem.
> 
> Maybe at a minimum the documentation could be modified to indicate this 
> limitation.
> 
> Kind regards,
> Joachim
> 
> -- 
> Joachim Van der Auwera
> PROGS bvba, progs.be
> 
> 
> -
> 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/problems-when-using-FormFragment-in-a-loop-tp21488113p23287963.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] combination of linksubmit and submit fails

2009-04-28 Thread Howard Lewis Ship
"fails" can mean many things.  What exactly does it do?

On Tue, Apr 28, 2009 at 1:26 PM, Rolf Strijdhorst  wrote:
> Hi is there a way to put both a linksubmit and a submit component on a page?
>
> when i press the linksubmit it fails at the javascript with the line
> this.form.submit();
>
> onClick : function(event)7828 {
> 7829 // Tapestry.debug("LinkSubmit #{id} clicked.", this.element);
> 7830
> 7831 Event.stop(event);
> 7832
> 7833 var onsubmit = this.form.onsubmit;
> 7834
> 7835 if (onsubmit == undefined || onsubmit.call(window.document, event))
> 7836 {
> 7837 this.createHidden();
> 7838 this.form.submit();
> 7839 }
> 7840
> 7841 return false;
> 7842 }
> 7843});
>
> thanx,
> Rolf Strijdhorst
>



-- 
Howard M. Lewis Ship

Creator of Apache Tapestry
Director of Open Source Technology at Formos

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



[T5] combination of linksubmit and submit fails

2009-04-28 Thread Rolf Strijdhorst
Hi is there a way to put both a linksubmit and a submit component on a page?

when i press the linksubmit it fails at the javascript with the line
this.form.submit();

onClick : function(event)7828 {
7829 // Tapestry.debug("LinkSubmit #{id} clicked.", this.element);
7830
7831 Event.stop(event);
7832
7833 var onsubmit = this.form.onsubmit;
7834
7835 if (onsubmit == undefined || onsubmit.call(window.document, event))
7836 {
7837 this.createHidden();
7838 this.form.submit();
7839 }
7840
7841 return false;
7842 }
7843});

thanx,
Rolf Strijdhorst


Using Tapestry + Eclipse + Maven

2009-04-28 Thread Howard Lewis Ship
I've updated the following wiki page:

http://tapestry.formos.com/wiki/display/T5IDEINT/Eclipse+(including+Maven)

Some people have been having some trouble with this; please give it a
try with fresh downloads and see if it all works for you.

-- 
Howard M. Lewis Ship

Creator of Apache Tapestry
Director of Open Source Technology at Formos

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



Re: AjaxFormLoop Exception on 5.1.0.2 upgrade

2009-04-28 Thread zack1403

Upgraded to 5.1.0.3 with same result.  I also removed any hibernate entities
whatsoever.  I made an AjaxFormLoop of Strings and I get the same result. 
Has anyone out there ever gotten this error in any context I just cant
believe I am the only one having these issues, seeing as how even the
simplest use does not work.

Zack


Joost Schouten (mailing lists) wrote:
> 
> I'm using 5.1.0.3
> 
> On Tue, Apr 28, 2009 at 7:27 PM, zack1403  wrote:
>>
>> Joost,
>>
>> Are you using this code on >5.1.0.2?
>>
>> Zack
>>
>>
>> Joost Schouten (mailing lists) wrote:
>>>
>>> Here is the code related to my AjaxFormLoop which works (besides a few
>>> non T5 related persistance issues in my own code ;-)
>>>
>>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/AjaxFormLoop-Exception-on-5.1.0.2-upgrade-tp23175801p23271622.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://www.nabble.com/AjaxFormLoop-Exception-on-5.1.0.2-upgrade-tp23175801p23283509.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



[ANNOUNCE] tapestry-templating merged into tapx

2009-04-28 Thread Howard Lewis Ship
I've merged the tapestry-templating project into the tapx (Tapestry
extensions) project on Tapestry360.

http://tapestry.formos.com/nightly/tapx/

The Java packages have stayed the same, but the Maven artifact ID has changed:

  
com.formos.tapestry
tapx-templating
 1.0.0-SNAPSHOT
  

-- 
Howard M. Lewis Ship

Creator of Apache Tapestry
Director of Open Source Technology at Formos

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



Re: Web framework evaluation - What is beautiful in Tapestry?

2009-04-28 Thread Paul Field
In addition to various cool things mentioned by other people, I really 
like the ability to unit test components and pages:
http://tapestry.apache.org/tapestry5.1/guide/unit-testing-pages.html

It's really nice to be able to do test-driven development in the GUI 
layer. (Particularly in conjunction with the tapestry-xpath project: 
http://tapestry.formos.com/nightly/tapestry-xpath/ ).

- Paul
--
Paul Field
Research IT
Deutsche Bank




Sebastian Hennebrueder  
23/04/2009 19:12
Please respond to
"Tapestry users" 


To
users@tapestry.apache.org
cc

Subject
Web framework evaluation - What is beautiful in Tapestry?






Hello,

I am working on an article evaluating Tapestry 5 in details. The article 
is part of an article series on my website http://www.laliluna.de on 
web technologies and frameworks. Apart from a large article on 
technologies, there is a detailed test of the Stripes Framework.

One chapter in the evaluation is going to show features or concepts 
which are very beautiful, unique or somehow special for this framework. 
In this chapter, I would like to integrate
feedback from the community using the framework. I did this as well with 
Stripes (
http://www.mail-archive.com/stripes-us...@lists.sourceforge.net/msg02294.html
)

This is why, I would like to ask you for your opinion.

What is your favourite feature or concept of Stripes, what is unique as 
compared to other things, what is an eye catcher?

-- 
Best Regards / Viele Grüße

Sebastian Hennebrueder
-
Software Developer and Trainer for Hibernate / Java Persistence
http://www.laliluna.de




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





---

This e-mail may contain confidential and/or privileged information. If you are 
not the intended recipient (or have received this e-mail in error) please 
notify the sender immediately and delete this e-mail. Any unauthorized copying, 
disclosure or distribution of the material in this e-mail is strictly forbidden.

Please refer to http://www.db.com/en/content/eu_disclosures.htm for additional 
EU corporate and regulatory disclosures.

Re: Using T5 Validation Outside a Form

2009-04-28 Thread Thiago H. de Paula Figueiredo
Take a look at Tapestry CRUD-Hibernate Validator, part of the Ars
Machina Project:
http://www.arsmachina.com.br/project/tapestrycrudhibernatevalidator.
Its 1.1 version (the documentation is related to the 1.0 version, but
I hadn't had the time to update it yet) provides validation as a mixin
to be used inside BaseEditPage (from Tapestry CRUD) and another to be
used at any page class (DummyHibernateValidatorMixin).

-- 
Thiago

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



Re: Using T5 Validation Outside a Form

2009-04-28 Thread Geoffrey Wiseman
On Tue, Apr 28, 2009 at 11:13 AM, Geoffrey Wiseman <
geoffrey.wise...@gmail.com> wrote:

> Anyone have an example of using Tapestry validation outside of the form
> context?  As in, if I were interested in taking a domain object, checking it
> for T5-annotated validity, and examining the messages myself?  I could
> presumably dig into the form code deeply and find out which objects it's
> using and how, but if someone's already doing this and can point me in the
> right way quickly, I'd be interested to see what it looks like.
>

For that matter, if someone's integrated Tapestry with external validation
systems like OVal / Hibernate Validation that'd also be interesting to see.

  - Geoffrey
-- 
Geoffrey Wiseman
http://www.geoffreywiseman.ca/


Using T5 Validation Outside a Form

2009-04-28 Thread Geoffrey Wiseman
Anyone have an example of using Tapestry validation outside of the form
context?  As in, if I were interested in taking a domain object, checking it
for T5-annotated validity, and examining the messages myself?  I could
presumably dig into the form code deeply and find out which objects it's
using and how, but if someone's already doing this and can point me in the
right way quickly, I'd be interested to see what it looks like.

  - Geoffrey
-- 
Geoffrey Wiseman
http://www.geoffreywiseman.ca/


[ANNOUNCE] Tapestry 5.1.0.4 (beta release)

2009-04-28 Thread Howard Lewis Ship
Tapestry 5.1.0.4 is now available via Maven and the Apache Mirrors.

http://tapestry.apache.org/download.html

This is a bug fix release, addressing a number of problems present in
5.1.0.3, and stabilizing the URLRewriter APIs.

We are looking forward to community feedback on this release; it looks
like there will be a .5 release to fix a small number of annoyances.


-- 
Howard M. Lewis Ship

Creator of Apache Tapestry
Director of Open Source Technology at Formos

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



Re: [Tapestry360]

2009-04-28 Thread Howard Lewis Ship
I must not have deployed it previously (?). Just ran a deploy.

It's in http://tapestry.formos.com/maven-repository



On Tue, Apr 28, 2009 at 3:30 AM, Andy Pahne  wrote:
>
> Hello,
>
> I am looking for the tapestry360-project in any maven repository. It appears
> not to be available in http://tapestry.formos.com/maven-snapshot-repository
>
> Or am I missing something?
>
>
> my maven error message:
>   Cannot find parent: com.formos.tapestry:tapestry360-project for project:
> com.formos.tapestry:tapx-project:pom:1.0.0-SNAPSHOT for project
> com.formos.tapestry:tapx-project:pom:1.0.0-SNAPSHOT
>
>
> Andy
>
>
> -
> 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
Director of Open Source Technology at Formos

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



Re: Getting a zone id when inside another zone

2009-04-28 Thread Joost Schouten (mailing lists)
good to hear the solution was a lot simpler than I thought. Gotta love
quick fixes  :-)

On Tue, Apr 28, 2009 at 9:14 PM, Hugo Palma  wrote:
> Thanks for you help Joost,
> i don't think there was any other javascript failing. Simply the form
> performed a usual submit instead of doing a partial update.
>
> On Mon, Apr 27, 2009 at 11:42 PM, Joost Schouten (mailing lists)
>  wrote:
>> I think there might be another problem at play here because when you
>> refresh your outer zone, your form and zone are both re-rendered. I
>> have numerous situations like this in my app which work fine. It more
>> sounds like the scripts passed along in the response JSON from your
>> outerZone are not handled correctly and thus not initializing the zone
>> properly. This can be due to some other javascript failing.
>>
>> What is the exact behavior you are getting and what errors are occurring?
>>
>> Cheers,
>> Joost
>>
>> On Tue, Apr 28, 2009 at 3:38 AM, Hugo Palma  wrote:
>>> I have a template that looks something like this:
>>>
>>> 
>>>
>>> 
>>> 
>>>
>>> 
>>> 
>>> 
>>>
>>> The problem is figuring out the id of the innerZone in order to pass
>>> it to the form. Because the innerZone is itself inside a zone once the
>>> outerZone gets updated a new id is generated to the innerZone making
>>> the id i passed to the form an invalid one. I also tried something
>>> like:
>>>
>>> 
>>>
>>> but it doesn't work either.
>>> Any ideas on how i could make this work ?
>>> Thanks.
>>>
>>> -
>>> 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
>>
>>
>
> -
> 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: AjaxFormLoop Exception on 5.1.0.2 upgrade

2009-04-28 Thread Joost Schouten (mailing lists)
I'm using 5.1.0.3

On Tue, Apr 28, 2009 at 7:27 PM, zack1403  wrote:
>
> Joost,
>
> Are you using this code on >5.1.0.2?
>
> Zack
>
>
> Joost Schouten (mailing lists) wrote:
>>
>> Here is the code related to my AjaxFormLoop which works (besides a few
>> non T5 related persistance issues in my own code ;-)
>>
>>
>
> --
> View this message in context: 
> http://www.nabble.com/AjaxFormLoop-Exception-on-5.1.0.2-upgrade-tp23175801p23271622.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>

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



Re: AjaxFormLoop Exception on 5.1.0.2 upgrade

2009-04-28 Thread Joost Schouten (mailing lists)
in my case onAddRow will not do any persisting. I will only persist
the added row once the user saves the whole form. Also, I use my own
transaction handling which is all done in a filter outside Tapestry.
So any exception will actually roll back the transaction.

The fact that I don't use any of the Tapestry hibernate/transaction
stuff might cause a substantial difference.

Cheers,
Joost

On Tue, Apr 28, 2009 at 6:59 PM, zack1403  wrote:
>
> Thanks Joost! While I'm sorting through that to find out what youre doing
> that I am missing, here is a question.  When my onAddRow event is throwing
> an exception, shouldn't the transaction be rolled back? I would think that
> is expected behavior but the transaction is being committed. When I refresh
> the page the row is there. Is there a reason that isnt consistent with the
> rest of tapestry transactions?
>
> Zack
>
>
> Joost Schouten (mailing lists) wrote:
>>
>> sorry, I forgot the encoder for the AjaxFormLoop:
>>
>> public ValueEncoder>
>> getContactDetailEncoder() {
>>
>>               final LegalEntityService service =
>> serviceProvider.getService(LegalEntityService.class);
>>
>>               return new 
>> ValueEncoder>() {
>>
>>                       public String 
>> toClient(AjaxFormLoopEntityHolder detail)
>> {
>>                               return detail.getKey().toString();
>>                       }
>>
>>                       public AjaxFormLoopEntityHolder 
>> toValue(String detailId)
>> {
>>
>>                               AjaxFormLoopEntityHolder ret = 
>> null;
>>
>>                               Long detailKey = Long.parseLong(detailId);
>>
>>                               for(AjaxFormLoopEntityHolder 
>> holder : details) {
>>                                       if(detailKey.equals(holder.getKey())) {
>>                                               ret = holder;
>>                                               break;
>>                                       }
>>                               }
>>
>>                               return ret;
>>
>>                       }
>>               };
>>       }
>>
>> On Tue, Apr 28, 2009 at 6:45 PM, Joost Schouten (mailing lists)
>>  wrote:
>>> Here is the code related to my AjaxFormLoop which works (besides a few
>>> non T5 related persistance issues in my own code ;-)
>>>
>>>
>>>
>>>        *** java file **
>>>
>>>       �...@property
>>>       �...@persist
>>>        private List> details;
>>>
>>>       �...@property
>>>        private AjaxFormLoopEntityHolder contactDetailRow;
>>>
>>>       �...@component(id = "contactDetailsAjaxLoop", parameters =
>>> {"source=details",
>>>
>>>                                      "value=contactDetailRow",
>>>
>>>                                      "addRow=block:addRowBlock",
>>>
>>>                                      "encoder=contactDetailEncoder"})
>>>        private AjaxFormLoop contactDetailsAjaxLoop;
>>>
>>>       �...@component(id = "contactDetailForm", parameters =
>>> {"zone=contactDetailsZone", "context=legalEntity.id"})
>>>        private Form contactDetailForm;
>>>
>>>       �...@component(id = "addRowLink", parameters =
>>> {"context=legalEntity.id"})
>>>        private AddRowLink addRowLink;
>>>
>>>
>>>       �...@component(id = "contactDetailsSubmit", parameters =
>>> {"value=message:jsportal.controls.save"})
>>>        private Submit contactDetailsSubmit;
>>>
>>>       �...@inject
>>>       �...@property
>>>        private Block addRowBlock;
>>>
>>>       �...@onevent(value=EventConstants.ADD_ROW)
>>>                        private Object handleAddRow() throws Exception {
>>>                                this.setEdit(true);
>>>
>>>                                ContactDetail contactDetail = new
>>> ContactDetail();
>>>                                contactDetail.setState(State.ACTIVE);
>>>                                AjaxFormLoopEntityHolder detail = new
>>> AjaxFormLoopEntityHolder(contactDetail, true, 0 -
>>> System.currentTimeMillis());
>>>                                details.add(detail);
>>>
>>>                                return detail;
>>>        }
>>>
>>>       �...@onevent(value=EventConstants.REMOVE_ROW)
>>>        private void handleRemoveRow(AjaxFormLoopEntityHolder detail)
>>> throws Exception{
>>>
>>>  for(AjaxFormLoopEntityHolder holder : details) {
>>>                                        if(detail.getKey() ==
>>> holder.getKey()) {
>>>                                                detail.setDeleted(true);
>>>                                        }
>>>                                }
>>>        }
>>>
>>>       �...@onevent(component = "contactDetailForm", value =
>>> EventConstants.PREPARE_FOR_SUBMIT)
>>>                private void handleContactDetailPrepare(Long
>>> legalEntityId) throws Exception {
>>>                        loadLegalEntity(legalEntityId);
>>>                }
>>>
>>>                private void loadLegalEntity(Long legalEntityId) throws
>>> Exception {
>>> 

[Tapestry360]

2009-04-28 Thread Andy Pahne


Hello,

I am looking for the tapestry360-project in any maven repository. It 
appears not to be available in 
http://tapestry.formos.com/maven-snapshot-repository


Or am I missing something?


my maven error message:
   Cannot find parent: com.formos.tapestry:tapestry360-project for 
project: com.formos.tapestry:tapx-project:pom:1.0.0-SNAPSHOT for project 
com.formos.tapestry:tapx-project:pom:1.0.0-SNAPSHOT



Andy


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



Re: Getting a zone id when inside another zone

2009-04-28 Thread Hugo Palma
Thanks for you help Joost,
i don't think there was any other javascript failing. Simply the form
performed a usual submit instead of doing a partial update.

On Mon, Apr 27, 2009 at 11:42 PM, Joost Schouten (mailing lists)
 wrote:
> I think there might be another problem at play here because when you
> refresh your outer zone, your form and zone are both re-rendered. I
> have numerous situations like this in my app which work fine. It more
> sounds like the scripts passed along in the response JSON from your
> outerZone are not handled correctly and thus not initializing the zone
> properly. This can be due to some other javascript failing.
>
> What is the exact behavior you are getting and what errors are occurring?
>
> Cheers,
> Joost
>
> On Tue, Apr 28, 2009 at 3:38 AM, Hugo Palma  wrote:
>> I have a template that looks something like this:
>>
>> 
>>
>> 
>> 
>>
>> 
>> 
>> 
>>
>> The problem is figuring out the id of the innerZone in order to pass
>> it to the form. Because the innerZone is itself inside a zone once the
>> outerZone gets updated a new id is generated to the innerZone making
>> the id i passed to the form an invalid one. I also tried something
>> like:
>>
>> 
>>
>> but it doesn't work either.
>> Any ideas on how i could make this work ?
>> Thanks.
>>
>> -
>> 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
>
>

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



Re: Getting a zone id when inside another zone

2009-04-28 Thread Hugo Palma
Yep, that did the trick.
Thanks

On Tue, Apr 28, 2009 at 2:29 AM, DH  wrote:
> What about giving the static id to the innerZone, like following:
>
> 
> 
>
> DH
> - Original Message -
> From: "Hugo Palma"
> To: "Tapestry users" 
> Sent: Monday, April 27, 2009 11:38 PM
> Subject: Getting a zone id when inside another zone
>
>
>>I have a template that looks something like this:
>>
>> 
>>
>> 
>> 
>>
>> 
>> 
>> 
>>
>> The problem is figuring out the id of the innerZone in order to pass
>> it to the form. Because the innerZone is itself inside a zone once the
>> outerZone gets updated a new id is generated to the innerZone making
>> the id i passed to the form an invalid one. I also tried something
>> like:
>>
>> 
>>
>> but it doesn't work either.
>> Any ideas on how i could make this work ?
>> Thanks.
>>
>> -
>> 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: Exception while http://localhost:8080/myapp/index.pageForm

2009-04-28 Thread zack1403

Wesley,

You can contribute a custom exception page in your module class:

public static void contributeApplicationDefaults(MappedConfiguration configuration) {

configuration.add(SymbolConstants.EXCEPTION_REPORT_PAGE,
"ProductionException");
}

As for your initial issue, you should never have a url like 'index.form'
unless there was an unhandled exception on form submit.  It sounds like you
just arent redirecting after you post your form.

Zack


wesleywj2 wrote:
> 
> that is the problem, typically when user close their browser, they will
> save the state as index.pageForm, i don't know why. they will either hit
> the refresh button or hit enter button on the address bar and cause this
> exception to be thrown. what's really uneasy is the exception shows up all
> the app server information. i know i can turn the app to production mode,
> but it just doesn't look nice. is there any way to throw custom exception
> page when it hits this error?
> 
> please advice,
> wesley
> 
> 
> 
> Onno Scheffers-3 wrote:
>> 
>> You should type the url of your page in the browser and not the url of
>> your
>> component:
>> http://localhost:8080/myapp/index
>> 
>> Typing an URL in the browser typically causes a GET-request instead of a
>> POST-request. The form-component is part of the page and will
>> automatically
>> POST its query-parameters to http://localhost:8080/myapp/index.pageForm
>> when
>> the form is submitted in the browser.
>> 
>> 
>> - Onno
>> 
>> 
>> 
>> On Mon, Apr 27, 2009 at 11:03 AM, wesleywj2 
>> wrote:
>> 
>>>
>>> hi,
>>>
>>> when i type this url in my browser and hit enter,
>>> http://localhost:8080/myapp/index.pageForm
>>> it throws "Forms require that the request method be POST and that the
>>> t:formdata query parameter have values." exception. index is my
>>> first/login
>>> page, where pageForm is the id of my form. why it throws error? anyway
>>> to
>>> intercept it? and show other page other than the standard exception
>>> page?
>>>
>>> please advice,
>>> wesley
>>> --
>>> View this message in context:
>>> http://www.nabble.com/Exception-while-http%3A--localhost%3A8080-myapp-index.pageForm-tp23252483p23252483.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
>>>
>>>
>> 
>> 
>> -- 
>> *
>> Winston
>> Churchill
>> - "The best argument against democracy is a five-minute conversation
>> with
>> the average voter."
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Exception-while-http%3A--localhost%3A8080-myapp-index.pageForm-tp23252483p23271706.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: AjaxFormLoop Exception on 5.1.0.2 upgrade

2009-04-28 Thread zack1403

Joost,

Are you using this code on >5.1.0.2?

Zack


Joost Schouten (mailing lists) wrote:
> 
> Here is the code related to my AjaxFormLoop which works (besides a few
> non T5 related persistance issues in my own code ;-)
> 
> 

-- 
View this message in context: 
http://www.nabble.com/AjaxFormLoop-Exception-on-5.1.0.2-upgrade-tp23175801p23271622.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