You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by d2marcelo <d2...@gmail.com> on 2010/06/25 21:17:45 UTC

Get data from main application

Hello, 

I'm building a webapp in wicket which will be a redirect from other webapp.
The other webapp will send me a string ,  what is the best way to get this
string from the wicket application? and how to do it?

Thanks a lot,

Marcelo
-- 
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Get-data-from-main-application-tp2268839p2268839.html
Sent from the Wicket - User mailing list archive at Nabble.com.

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


Re: Get data from main application

Posted by d2marcelo <d2...@gmail.com>.
That's correct. 

APP 1 will call APP2 and pass the string  like "ABCDEFG"  in the url.. 
I was just thinking if this is the best way to do it. 

Thanks 
-- 
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Get-data-from-main-application-tp2268839p2268873.html
Sent from the Wicket - User mailing list archive at Nabble.com.

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


Re: Get data from main application

Posted by Jeremy Thomerson <je...@wickettraining.com>.
Depends on what your String is.  Do you mean that you need to redirect a
user from app one to app two, and you could pass this string in the URL (as
a query parameter)?  If s, just create a wicket bookmarkable page and use
the PageParameters to get the string.

Jeremy

On Fri, Jun 25, 2010 at 2:38 PM, d2marcelo <d2...@gmail.com> wrote:

>
> I'm open to suggestions on this.  What is a simple way to send the string .
> This is coming from a webapp written in a diff java framework. jsf
>
> Possibility a simple get to the url with the string or use RESTfull
> service.
> Trying to be away from database option.  I'm not familiar with jmx.
>
> Anyway, any suggestion would be good to get me started.
>
> Thanks,
>
> Marcelo
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Get-data-from-main-application-tp2268839p2268865.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>


-- 
Jeremy Thomerson
http://www.wickettraining.com

Re: Get data from main application

Posted by d2marcelo <d2...@gmail.com>.
I'm open to suggestions on this.  What is a simple way to send the string . 
This is coming from a webapp written in a diff java framework. jsf

Possibility a simple get to the url with the string or use RESTfull service.
Trying to be away from database option.  I'm not familiar with jmx. 

Anyway, any suggestion would be good to get me started.

Thanks,

Marcelo
-- 
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Get-data-from-main-application-tp2268839p2268865.html
Sent from the Wicket - User mailing list archive at Nabble.com.

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


Re: Get data from main application

Posted by Jeremy Thomerson <je...@wickettraining.com>.
How are you sending the string?  As a query string parameter, a JMS message,
something in the database?

On Fri, Jun 25, 2010 at 2:17 PM, d2marcelo <d2...@gmail.com> wrote:

>
> Hello,
>
> I'm building a webapp in wicket which will be a redirect from other webapp.
> The other webapp will send me a string ,  what is the best way to get this
> string from the wicket application? and how to do it?
>
> Thanks a lot,
>
> Marcelo
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Get-data-from-main-application-tp2268839p2268839.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>


-- 
Jeremy Thomerson
http://www.wickettraining.com

Re: Get data from main application

Posted by Jeremy Thomerson <je...@wickettraining.com>.
yes

On Fri, Jun 25, 2010 at 2:43 PM, d2marcelo <d2...@gmail.com> wrote:

>
> So , I assume I don't have to do anything on the application class.
> But on the home page class, I would get PageParameters passed in the
> constructor like so?
>
>
> public class MyApp extends WebPage {
>
>                public MyApp (PageParameters params) {
>
>
> }
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Get-data-from-main-application-tp2268839p2268869.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>


-- 
Jeremy Thomerson
http://www.wickettraining.com

Re: Get data from main application

Posted by d2marcelo <d2...@gmail.com>.
So , I assume I don't have to do anything on the application class. 
But on the home page class, I would get PageParameters passed in the
constructor like so?


public class MyApp extends WebPage {
	
		public MyApp (PageParameters params) {


}
-- 
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Get-data-from-main-application-tp2268839p2268869.html
Sent from the Wicket - User mailing list archive at Nabble.com.

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


Re: Get data from main application

Posted by Edward Zarecor <ed...@indeterminate.org>.
Do you mean that App1 will redirect to something like
http://wickethost/WicketApp/homepage?myArgument=theValue

If so, see:

http://wicketbyexample.com/api/wicket/1.4.6/org/apache/wicket/PageParameters.html

If not, please clarify the use case.

Ed.


On Fri, Jun 25, 2010 at 3:17 PM, d2marcelo <d2...@gmail.com> wrote:
>
> Hello,
>
> I'm building a webapp in wicket which will be a redirect from other webapp.
> The other webapp will send me a string ,  what is the best way to get this
> string from the wicket application? and how to do it?
>
> Thanks a lot,
>
> Marcelo
> --
> View this message in context: http://apache-wicket.1842946.n4.nabble.com/Get-data-from-main-application-tp2268839p2268839.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

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