Not getting the Post Parameter values in Iframe (wicket Page)

2012-06-20 Thread ramlael
Hi,
 
I have embed/include a wicket page in a third party jsp site ( with iframe )
and  on form submit the jsp sending the values to iframe through post
method.

I need to get those values in wicket page, I have used pageparameters and
getRequest().getPostParameters().getParameterNames() but no luck.

Please can you help me on this.
 

Code : 
Third Party Jsp

form action=http://localhost:8080/abc; name=myform target=my-iframe
method=POST 
input type=text name=name id=text/input
input type=hidden name=memberId id=memberId 
value=1234/
input type=hidden name=firstName id=firstName 
value=ram/
input type=hidden name=lastName id=lastName 
value=babu/
input type=hidden name=parenttoken 
id=parenttoken value=123456/
input type=submit name=sumbit /
/form
 iframe height=410 width=100% frameBorder=1 name=my-iframe

src=http://localhost:8081/abc;/iframe


Kind regards
Rambabu

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Not-getting-the-Post-Parameter-values-in-Iframe-wicket-Page-tp4650106.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: Not getting the Post Parameter values in Iframe (wicket Page)

2012-06-20 Thread Martin Grigorov
This should just work...
Can you show us the java (wicket) code ?
Also check with Firebug/Dev tools that the post data is actually sent.

On Wed, Jun 20, 2012 at 11:12 AM, ramlael grambab...@gmail.com wrote:
 Hi,

 I have embed/include a wicket page in a third party jsp site ( with iframe )
 and  on form submit the jsp sending the values to iframe through post
 method.

 I need to get those values in wicket page, I have used pageparameters and
 getRequest().getPostParameters().getParameterNames() but no luck.

 Please can you help me on this.


 Code :
 Third Party Jsp

 form action=http://localhost:8080/abc; name=myform target=my-iframe
 method=POST 
                        input type=text name=name id=text/input
                        input type=hidden name=memberId id=memberId 
 value=1234/
                        input type=hidden name=firstName id=firstName 
 value=ram/
                        input type=hidden name=lastName id=lastName 
 value=babu/
                        input type=hidden name=parenttoken 
 id=parenttoken value=123456/
                        input type=submit name=sumbit /
 /form
  iframe height=410 width=100% frameBorder=1 name=my-iframe
                                                
 src=http://localhost:8081/abc;/iframe


 Kind regards
 Rambabu

 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/Not-getting-the-Post-Parameter-values-in-Iframe-wicket-Page-tp4650106.html
 Sent from the Users forum mailing list archive at Nabble.com.

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




-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

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



Re: Not getting the Post Parameter values in Iframe (wicket Page)

2012-06-20 Thread ramlael
HI

JSP and Wikcet Iframe running on different server. 

The JAVA Code
public class abc extends WebPage {

public abc(final PageParameters parameters) {
logger.debug(+ +
parameters.getIndexedCount());
logger.debug(++getRequest().getPostParameters().getParameterNames());
}

}

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Not-getting-the-Post-Parameter-values-in-Iframe-wicket-Page-tp4650106p4650108.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: Not getting the Post Parameter values in Iframe (wicket Page)

2012-06-20 Thread vineet semwal
you forgot to do super(parameters) in constructors

On Wed, Jun 20, 2012 at 1:58 PM, ramlael grambab...@gmail.com wrote:
 HI

 JSP and Wikcet Iframe running on different server.

 The JAVA Code
 public class abc extends WebPage {

 public abc(final PageParameters parameters) {
 logger.debug(+ +
 parameters.getIndexedCount());
 logger.debug(++getRequest().getPostParameters().getParameterNames());
        }

 }

 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/Not-getting-the-Post-Parameter-values-in-Iframe-wicket-Page-tp4650106p4650108.html
 Sent from the Users forum mailing list archive at Nabble.com.

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




-- 
thanks,

Vineet Semwal

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



Re: Not getting the Post Parameter values in Iframe (wicket Page)

2012-06-20 Thread Martin Grigorov
PageParameters contain only the GET parameters.
Calling super(parameters) only helps to use page.getPageParameters() later.

getRequest().getPostParameters().getParameterNames() is the right way
to read POST params in this case.
As I said check that the browser actually sends them.

On Wed, Jun 20, 2012 at 11:30 AM, vineet semwal
vineetsemwa...@gmail.com wrote:
 you forgot to do super(parameters) in constructors

 On Wed, Jun 20, 2012 at 1:58 PM, ramlael grambab...@gmail.com wrote:
 HI

 JSP and Wikcet Iframe running on different server.

 The JAVA Code
 public class abc extends WebPage {

 public abc(final PageParameters parameters) {
 logger.debug(+ +
 parameters.getIndexedCount());
 logger.debug(++getRequest().getPostParameters().getParameterNames());
        }

 }

 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/Not-getting-the-Post-Parameter-values-in-Iframe-wicket-Page-tp4650106p4650108.html
 Sent from the Users forum mailing list archive at Nabble.com.

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




 --
 thanks,

 Vineet Semwal

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




-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

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



Re: Not getting the Post Parameter values in Iframe (wicket Page)

2012-06-20 Thread ramlael
Yes... the post values are submitted. I have checked in firefox debugger

Parametersapplication/x-www-form-urlencoded
firstName   ram
lastNamebabu
memberId1234
name
parenttoken 123456
sumbit  Submit Query

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Not-getting-the-Post-Parameter-values-in-Iframe-wicket-Page-tp4650106p4650120.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: Not getting the Post Parameter values in Iframe (wicket Page)

2012-06-20 Thread Martin Grigorov
Create a quickstart and attach it to a ticket in Jira.

On Wed, Jun 20, 2012 at 12:25 PM, ramlael grambab...@gmail.com wrote:
 Yes... the post values are submitted. I have checked in firefox debugger

 Parametersapplication/x-www-form-urlencoded
 firstName       ram
 lastName        babu
 memberId        1234
 name
 parenttoken     123456
 sumbit  Submit Query

 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/Not-getting-the-Post-Parameter-values-in-Iframe-wicket-Page-tp4650106p4650120.html
 Sent from the Users forum mailing list archive at Nabble.com.

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




-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

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



Re: Not getting the Post Parameter values in Iframe (wicket Page)

2012-06-20 Thread ramlael
Hi, I didn't get you.. what r u saying.. shall I add all the pages to JIRA?

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Not-getting-the-Post-Parameter-values-in-Iframe-wicket-Page-tp4650106p4650122.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: Not getting the Post Parameter values in Iframe (wicket Page)

2012-06-20 Thread Martin Grigorov
Just a small demo application. This is what we call a 'quickstart'.
http://wicket.apache.org/start/quickstart.html

On Wed, Jun 20, 2012 at 12:32 PM, ramlael grambab...@gmail.com wrote:
 Hi, I didn't get you.. what r u saying.. shall I add all the pages to JIRA?

 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/Not-getting-the-Post-Parameter-values-in-Iframe-wicket-Page-tp4650106p4650122.html
 Sent from the Users forum mailing list archive at Nabble.com.

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




-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

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



Re: Not getting the Post Parameter values in Iframe (wicket Page)

2012-06-20 Thread ramlael
Hey... I solved the problem..


I have changed the form action action=http://localhost:8080/abc; to
action=http://localhost:8080/abc/;   (added '/'  after abc)... now its
working fine.


thank you very much.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Not-getting-the-Post-Parameter-values-in-Iframe-wicket-Page-tp4650106p4650125.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: Not getting the Post Parameter values in Iframe (wicket Page)

2012-06-20 Thread Martin Grigorov
Good!

What is the value of url-mapping for WicketFilter in your web.xml ?

On Wed, Jun 20, 2012 at 1:29 PM, ramlael grambab...@gmail.com wrote:
 Hey... I solved the problem..


 I have changed the form action action=http://localhost:8080/abc; to
 action=http://localhost:8080/abc/;   (added '/'  after abc)... now its
 working fine.


 thank you very much.

 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/Not-getting-the-Post-Parameter-values-in-Iframe-wicket-Page-tp4650106p4650125.html
 Sent from the Users forum mailing list archive at Nabble.com.

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




-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

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



Re: Not getting the Post Parameter values in Iframe (wicket Page)

2012-06-20 Thread ramlael
org.apache.wicket.protocol.http.WicketFilter

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Not-getting-the-Post-Parameter-values-in-Iframe-wicket-Page-tp4650106p4650127.html
Sent from the Users forum mailing list archive at Nabble.com.

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