You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Argo Vilberg <wi...@gmail.com> on 2009/10/13 01:24:49 UTC

Upgrade to 5.1.0.5 submitbutton problem

In 5.0.14 my submit buttons works fine.

But in 5.1.0.5 are not.


If i click to submit form no action take place.

why?

In tapestry 5.0.14 HTML code i see :
<form action="mallid.lisa" id="lisa" method="post" name="lisa"><div class="
t-invisible">

But in 5.1.0.5 HTML code:
<form onsubmit="javascript:Tapestry.waitForPage(event);" action="mallid.lisa"
method="post" id="lisa" name="lisa">


Argo

Re: Upgrade to 5.1.0.5 submitbutton problem

Posted by "Thiago H. de Paula Figueiredo" <th...@gmail.com>.
Em Mon, 12 Oct 2009 20:24:49 -0300, Argo Vilberg <wi...@gmail.com>  
escreveu:

> In 5.0.14 my submit buttons works fine.

No error message, we can't help you. Use Firebug or Web Developer (Firefox  
plugins) to find out what error happened.

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

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


Re: Upgrade to 5.1.0.5 submitbutton problem

Posted by Argo Vilberg <wi...@gmail.com>.
 <t:form t:id="search">
<span class="submitbutton"><t:submit class="submitbutton" value="PƤring
Ć„rigistrist" t:id="paringariregistrist"/></span>
<span class="submitbutton"><t:submit class="submitbutton" value="Lisa
kontaktisik" t:id="lisakontakt"/></span>
</t:form>


void onSelectedFromParingariregistrist() {
System.out.println("onSelectedFromParingariregistrist");
cancel = true;
delete = false;
otsi = false;
}


KontaktisikLisa onSuccess() {
try {
System.out.println("otsi="+otsi);
System.out.println("cancel="+cancel);
System.out.println("delete="+delete);
if (otsi) {
return null;
} else
if (delete) {
return null;
} else
if (cancel) {
System.out.println(new
Timestamp(System.currentTimeMillis())+"Kontaktisikud.onSuccess()
"+getUser().getRegistryCode());
System.out.println(new
Timestamp(System.currentTimeMillis())+"Kontaktisikud.onSuccess()search");
List list = new ArrayList();
AriregFactory.INSTANCE.getPersonsWithRepresentationRight(getUser().getRoleId(),getUser().getRegistryCode(),getUser().getIdcode());
System.out.println("Äriregistri esindusõiguse päring
****************************************");
UserBean.INSTANCE.saveLOGI(getUser().getRoleId(),getUser().getIdcode(),"ARIREG_ESINDUSOIGUS");
return null;
....





2009/10/13 Igor Drobiazko <ig...@gmail.com>

> There were several submit bugs in 5.1.0.5 which are fixed in  5.2
> snapshots.
> Take a look at these two, maybe you have one of these issues. You didn'
> post
> your template, so it is really hard to figure out your problem.
>
> https://issues.apache.org/jira/browse/TAP5-711
> https://issues.apache.org/jira/browse/TAP5-779
>
>
> On Tue, Oct 13, 2009 at 1:24 AM, Argo Vilberg <wi...@gmail.com> wrote:
>
> > In 5.0.14 my submit buttons works fine.
> >
> > But in 5.1.0.5 are not.
> >
> >
> > If i click to submit form no action take place.
> >
> > why?
> >
> > In tapestry 5.0.14 HTML code i see :
> > <form action="mallid.lisa" id="lisa" method="post" name="lisa"><div
> class="
> > t-invisible">
> >
> > But in 5.1.0.5 HTML code:
> > <form onsubmit="javascript:Tapestry.waitForPage(event);"
> > action="mallid.lisa"
> > method="post" id="lisa" name="lisa">
> >
> >
> > Argo
> >
>
>
>
> --
> Best regards,
>
> Igor Drobiazko
>

Re: Upgrade to 5.1.0.5 submitbutton problem

Posted by Argo Vilberg <wi...@gmail.com>.
This was jQuery $ problem.
jQuery.noConflict() helped.

and also, after that my jQuery based javascript does not work.

var $j = jQuery;

$ variable must replace with $j.





2009/10/13 Argo Vilberg <wi...@gmail.com>

> I also tried very simple example Submitbutton and onSuccess().
> This also does't work.
>
> Where i can download 5.2 tapestry release?
>
>
>
>  <t:form t:id="form">
> <div class="panel">
>  <div class="stepcontainer">
> <label for="projekti_nimi1">Sildi nimi
>  <t:textfield t:id="sildiNimi"/>
> </label>
> <span class="submitbutton"><t:submit class="submitbutton"  value="Salvesta"
> t:id="save"/></span>
>  </div>
> </div>
> </t:form>
>
>
> void onSuccess()
> {
>  try {
> LoendidBean.INSTANCE.insertLabel(getUser().getRoleId(), sildiNimi,
> getUser().getIdcode());
>  } catch(Exception ex) {
>
> LoendidBean.INSTANCE.insertError(getUser().getRoleId(),"Sildid.onSuccess",LoendidBean.INSTANCE.getStackTrace(ex));
>  System.out.println(" ERROR "+LoendidBean.INSTANCE.getStackTrace(ex));
> }
>
>
>
>
> 2009/10/13 Igor Drobiazko <ig...@gmail.com>
>
>> There were several submit bugs in 5.1.0.5 which are fixed in  5.2
>> snapshots.
>>
>> Take a look at these two, maybe you have one of these issues. You didn'
>> post
>> your template, so it is really hard to figure out your problem.
>>
>> https://issues.apache.org/jira/browse/TAP5-711
>> https://issues.apache.org/jira/browse/TAP5-779
>>
>>
>> On Tue, Oct 13, 2009 at 1:24 AM, Argo Vilberg <wi...@gmail.com> wrote:
>>
>> > In 5.0.14 my submit buttons works fine.
>> >
>> > But in 5.1.0.5 are not.
>> >
>> >
>> > If i click to submit form no action take place.
>> >
>> > why?
>> >
>> > In tapestry 5.0.14 HTML code i see :
>> > <form action="mallid.lisa" id="lisa" method="post" name="lisa"><div
>> class="
>> > t-invisible">
>> >
>> > But in 5.1.0.5 HTML code:
>> > <form onsubmit="javascript:Tapestry.waitForPage(event);"
>> > action="mallid.lisa"
>> > method="post" id="lisa" name="lisa">
>> >
>> >
>> > Argo
>> >
>>
>>
>>
>> --
>> Best regards,
>>
>> Igor Drobiazko
>>
>
>

Re: Upgrade to 5.1.0.5 submitbutton problem

Posted by Argo Vilberg <wi...@gmail.com>.
I also tried very simple example Submitbutton and onSuccess().
This also does't work.

Where i can download 5.2 tapestry release?



<t:form t:id="form">
<div class="panel">
<div class="stepcontainer">
<label for="projekti_nimi1">Sildi nimi
<t:textfield t:id="sildiNimi"/>
</label>
<span class="submitbutton"><t:submit class="submitbutton"  value="Salvesta"
t:id="save"/></span>
</div>
</div>
</t:form>


void onSuccess()
{
try {
LoendidBean.INSTANCE.insertLabel(getUser().getRoleId(), sildiNimi,
getUser().getIdcode());
} catch(Exception ex) {
LoendidBean.INSTANCE.insertError(getUser().getRoleId(),"Sildid.onSuccess",LoendidBean.INSTANCE.getStackTrace(ex));
System.out.println(" ERROR "+LoendidBean.INSTANCE.getStackTrace(ex));
}




2009/10/13 Igor Drobiazko <ig...@gmail.com>

> There were several submit bugs in 5.1.0.5 which are fixed in  5.2
> snapshots.
> Take a look at these two, maybe you have one of these issues. You didn'
> post
> your template, so it is really hard to figure out your problem.
>
> https://issues.apache.org/jira/browse/TAP5-711
> https://issues.apache.org/jira/browse/TAP5-779
>
>
> On Tue, Oct 13, 2009 at 1:24 AM, Argo Vilberg <wi...@gmail.com> wrote:
>
> > In 5.0.14 my submit buttons works fine.
> >
> > But in 5.1.0.5 are not.
> >
> >
> > If i click to submit form no action take place.
> >
> > why?
> >
> > In tapestry 5.0.14 HTML code i see :
> > <form action="mallid.lisa" id="lisa" method="post" name="lisa"><div
> class="
> > t-invisible">
> >
> > But in 5.1.0.5 HTML code:
> > <form onsubmit="javascript:Tapestry.waitForPage(event);"
> > action="mallid.lisa"
> > method="post" id="lisa" name="lisa">
> >
> >
> > Argo
> >
>
>
>
> --
> Best regards,
>
> Igor Drobiazko
>

Re: Upgrade to 5.1.0.5 submitbutton problem

Posted by Igor Drobiazko <ig...@gmail.com>.
There were several submit bugs in 5.1.0.5 which are fixed in  5.2 snapshots.
Take a look at these two, maybe you have one of these issues. You didn' post
your template, so it is really hard to figure out your problem.

https://issues.apache.org/jira/browse/TAP5-711
https://issues.apache.org/jira/browse/TAP5-779


On Tue, Oct 13, 2009 at 1:24 AM, Argo Vilberg <wi...@gmail.com> wrote:

> In 5.0.14 my submit buttons works fine.
>
> But in 5.1.0.5 are not.
>
>
> If i click to submit form no action take place.
>
> why?
>
> In tapestry 5.0.14 HTML code i see :
> <form action="mallid.lisa" id="lisa" method="post" name="lisa"><div class="
> t-invisible">
>
> But in 5.1.0.5 HTML code:
> <form onsubmit="javascript:Tapestry.waitForPage(event);"
> action="mallid.lisa"
> method="post" id="lisa" name="lisa">
>
>
> Argo
>



-- 
Best regards,

Igor Drobiazko