Fórumok

webform refresh problem

thumbnail
Zeeshan Khan, módosítva 12 év-val korábban

webform refresh problem

Expert Bejegyzések: 349 Csatlakozás dátuma: 2011.07.21. Legújabb bejegyzések
Hi All !!

I have a WEBFORM with some fields(PFA). The problem is whenever any user is providing the data in the fields and after clicking the send button, the data remains in there....and if i refresh the page, it automatically sends the data to the configured Email id. Plz help me in this as i dont want to send the data again and want to keep clear the fields after clicking the SEND button.

PFA

thnx !!

Mellékletek:

thumbnail
Jignesh Vachhani, módosítva 12 év-val korábban

RE: webform refresh problem

Liferay Master Bejegyzések: 803 Csatlakozás dátuma: 2008.03.10. Legújabb bejegyzések
For that you need to validate form on submission of action when you are refreshing the form.
So you need to change the web form portlet OOB code.

Best,
Jignesh
liferaycms blog
thumbnail
Zeeshan Khan, módosítva 12 év-val korábban

RE: webform refresh problem

Expert Bejegyzések: 349 Csatlakozás dátuma: 2011.07.21. Legújabb bejegyzések
Jignesh Vachhani:
For that you need to validate form on submission of action when you are refreshing the form.
So you need to change the web form portlet OOB code.


Hi JIgnesh !!

thnx 4 replying....where to make changes, i mean in which should i make changes......????

thnx !!
thumbnail
Tejas Kanani, módosítva 12 év-val korábban

RE: webform refresh problem

Liferay Master Bejegyzések: 654 Csatlakozás dátuma: 2009.01.06. Legújabb bejegyzések
Hi Zeeshan,

You need to make change in webform-portlet's view.jsp
There is one aui script call at the bottom of the file.

<aui:script use="aui-base,selector-css3">
var form = A.one('#<portlet:namespace />fm');

if (form) {
. .
. .
. .


it is being called when we click on Submit button. So you can add a logic to clear all the fields via javascript after Submit logic. So that every time you will get blank fields.

Regards,
Tejas Kanani
Deploy Liferay to Jelastic Cloud
thumbnail
Zeeshan Khan, módosítva 12 év-val korábban

RE: webform refresh problem

Expert Bejegyzések: 349 Csatlakozás dátuma: 2011.07.21. Legújabb bejegyzések
Hi Tejas n thnx 4 replying...

1 more thing...the that is attached with ur signature "Deploy Liferay to Jelastic Cloud", what if i want to deploy here...??? i have developed in LR 6.0.6 bundled with Tomcat....on that link u have shown using LR 6.1 BETA....so what modifications do i need...?? Moreover it is talking about deploying as WAR and we have developed in JEDI theme and using Liferay components like,WEBFORM,CHAT-PORTLET,WEB CONTENT DISPLAY,MAIL PORTLET......

thnx !!!
thumbnail
Tejas Kanani, módosítva 12 év-val korábban

RE: webform refresh problem

Liferay Master Bejegyzések: 654 Csatlakozás dátuma: 2009.01.06. Legújabb bejegyzések
Thanks Zeeshan for showing interest in Jelastic.

You can deploy Liferay 6.0.6 as well. There will not be any major change. Just we need to use respective war of Liferay 6.0.6 and dependent jars.
I've also prepare Liferay 6.0.6 instance as well. Check this Liferay 6.0.6

And regarding plugins portlet deployment, I think we can deploy it from Plugins installer from Control Panel. It's working fine.

I've not checked with custom plugins portlet deployment. We'll try it and let you know the updates.

Thanks,
Tejas Kanani
thumbnail
Zeeshan Khan, módosítva 12 év-val korábban

RE: webform refresh problem

Expert Bejegyzések: 349 Csatlakozás dátuma: 2011.07.21. Legújabb bejegyzések
Hi Tejas !!

i just visited ur link for liferay6.06....great work...

plz let me know how to deploy my tomcat bundle on this Jelastic...

thnx !!
thumbnail
Jignesh Vachhani, módosítva 12 év-val korábban

RE: webform refresh problem

Liferay Master Bejegyzések: 803 Csatlakozás dátuma: 2008.03.10. Legújabb bejegyzések
you can download lifeay portal war file from the site and can deploy directly on the server(upload option is available on jelastic account ).
Also you will have to add some dependency files which needed to run the application so you can download those jar files and can put it into lib folder of jelastic account which you have created.

HTH,
Jignesh
thumbnail
Zeeshan Khan, módosítva 12 év-val korábban

RE: webform refresh problem

Expert Bejegyzések: 349 Csatlakozás dátuma: 2011.07.21. Legújabb bejegyzések
Jignesh Vachhani:
you can download lifeay portal war file from the site and can deploy directly on the server(upload option is available on jelastic account ).
Also you will have to add some dependency files which needed to run the application so you can download those jar files and can put it into lib folder of jelastic account which you have created.

HTH,
Jignesh


yeah Jignesh....earlier u gave me some idea about how to deploy my complete tomcat folder.....thnx for that...i will be deploying very soon....here u are talking about downloading war from which site Jignesh...??

thnx !!
thumbnail
Jignesh Vachhani, módosítva 12 év-val korábban

RE: webform refresh problem

Liferay Master Bejegyzések: 803 Csatlakozás dátuma: 2008.03.10. Legújabb bejegyzések
thumbnail
Tejas Kanani, módosítva 12 év-val korábban

RE: webform refresh problem

Liferay Master Bejegyzések: 654 Csatlakozás dátuma: 2009.01.06. Legújabb bejegyzések
Zeeshan Khan:
yeah Jignesh...earlier u gave me some idea about how to deploy my complete tomcat folder


Hi Jignesh,

Can we deploy complete tomcat folder inside jelastic ?
It would be good if you please share how can we do that.

Thanks,
Tejas Kanani
thumbnail
Jignesh Vachhani, módosítva 12 év-val korábban

RE: webform refresh problem

Liferay Master Bejegyzések: 803 Csatlakozás dátuma: 2008.03.10. Legújabb bejegyzések
Hi Tejas,

No in jelastic we cant put complete tomcat folder,
Zeeshan is talking here about the problem which we resolved previously.
For jelastic deployment we must have to deploy tomcat war and dependencies.
thumbnail
Zeeshan Khan, módosítva 12 év-val korábban

RE: webform refresh problem

Expert Bejegyzések: 349 Csatlakozás dátuma: 2011.07.21. Legújabb bejegyzések
Jignesh Vachhani:
Hi Tejas,

No in jelastic we cant put complete tomcat folder,
Zeeshan is talking here about the problem which we resolved previously.
For jelastic deployment we must have to deploy tomcat war and dependencies.


yeah Jignesh....i was asking about deploying the whole tomcat folder in Jelastic.....
thumbnail
Tejas Kanani, módosítva 12 év-val korábban

RE: webform refresh problem

Liferay Master Bejegyzések: 654 Csatlakozás dátuma: 2009.01.06. Legújabb bejegyzések
Thanks Jignesh for the clarification,

I thought that there is some other way which you may have gone through.
But never mind, what we have so far is not that bad emoticon. We can still go ahead with what we have.

Zeeshan Khan:
yeah Jignesh....i was asking about deploying the whole tomcat folder in Jelastic.....

Hi Zeeshan,
As per Jignesh's comment and as far I know, deploying entire tomcat is not the better way and its not possible as of now in Jelastic.
Rather you should setup fresh instance and deploy your custom portlet/theme one by one.

Thanks,
Tejas Kanani
OpenSourceForLife
thumbnail
Tejas Kanani, módosítva 12 év-val korábban

RE: webform refresh problem

Liferay Master Bejegyzések: 654 Csatlakozás dátuma: 2009.01.06. Legújabb bejegyzések
Zeeshan Khan:
Hi Tejas !!

i just visited ur link for liferay6.06....great work...

plz let me know how to deploy my tomcat bundle on this Jelastic...

thnx !!


Hi Zeeshan,

Please visit below links. Uploaded some more useful details.
Video of Liferay in the Cloud, by Jelastic
Deploy custom war in Liferay hosted in Jelastic
Deploy Liferay to Jelastic Cloud

Regards,
Tejas Kanani
OpenSourceForLife
thumbnail
Ranga Rao Bobbili, módosítva 12 év-val korábban

RE: webform refresh problem

Regular Member Bejegyzések: 152 Csatlakozás dátuma: 2007.07.20. Legújabb bejegyzések
<aui:script use="aui-base,selector-css3">
var form = A.one('#<portlet:namespace />fm');

if (form) {
. .
. .
. .

my side script(Tejas Khanani) is also not working. so we created one patch for view.jsp. Patch is working fine from my side.
Environment
Liferay portal version 6.0.6

Mellékletek:

thumbnail
amit doshi, módosítva 11 év-val korábban

RE: webform refresh problem

Liferay Master Bejegyzések: 550 Csatlakozás dátuma: 2010.12.29. Legújabb bejegyzések
Hi Ranga,

You can do change with the help of jquery directly in theme or in webform portlet.

I made changes in theme code and added the following line to clear the field and it worked for me .


<script type="text/javascript">
$(document).ready( function(){
	$(webFormPortlet).find(".aui-fieldset-content").find(".aui-field-input-text").val("");
});
</script>



Hope it helps.

Thanks & Regards,
Amit Doshi
thumbnail
Zeeshan Khan, módosítva 11 év-val korábban

RE: webform refresh problem

Expert Bejegyzések: 349 Csatlakozás dátuma: 2011.07.21. Legújabb bejegyzések
amit doshi:
Hi Ranga,

You can do change with the help of jquery directly in theme or in webform portlet.

I made changes in theme code and added the following line to clear the field and it worked for me .


<script type="text/javascript">
$(document).ready( function(){
	$(webFormPortlet).find(".aui-fieldset-content").find(".aui-field-input-text").val("");
});
</script>



Hope it helps.

Thanks & Regards,
Amit Doshi





Hi Amit !!

where u added this...?? in theme's portal_normal.vm ???
thumbnail
amit doshi, módosítva 11 év-val korábban

RE: webform refresh problem

Liferay Master Bejegyzések: 550 Csatlakozás dátuma: 2010.12.29. Legújabb bejegyzések
Hi Zeeshan,

I changed in theme part.

According to our requirement we placed the WebForm Portlet in the footer of the all the pages.

So in the footer.vm at the bottom I had written following script.



<script type="text/javascript">
$(document).ready( function(){
var footerForm = $("#footer_form_area");    // The following is my footer portion id. in your code it might be different one.
	
	if($(footerForm).length){
		var webFormPortlet = $(footerForm).find("#_1_WAR_webformportlet_INSTANCE_9TOw_fm");    // As webform portlet is instanciable . so u might be having different last four number [b]9TOw[/b]
		
		if($(webFormPortlet).length){
                	$(webFormPortlet).find(".aui-fieldset-content").find(".aui-field-input-text").val("");
               }
        }
});
</script>


Hope it helps.

Thanks & Regards,
Amit Doshi
thumbnail
Zeeshan Khan, módosítva 11 év-val korábban

RE: webform refresh problem

Expert Bejegyzések: 349 Csatlakozás dátuma: 2011.07.21. Legújabb bejegyzések
thnx amit.... emoticon