Get data from External application.

2013-05-01 Thread chrome1235
Hi,

I want to integrate zxing application (barcode reader) to my web application
for android phones.

When user click an ajax button in a page,
the code will call zxing with a custom url (like:
zxing://scan/?ret=http://mydomain.com/MyApp/{CODE};), 
then zxing can post or (get) to a generated url according to my parameters.

Can I handle this url (zxing's post url) at the same page?



Thanks.
Kemal.




--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Get-data-from-External-application-tp4658441.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: Get data from External application.

2013-05-01 Thread Bertrand Guay-Paquet

Hi,

Sure you can!

In BarcodePage, use the PageParameters to extract the code. If the code 
is there, show its associated content.

StringValue codeValue = getPageParameters().get(code);
if (!codeValue.isEmpty())
...

In your app init code, mount your page like this:
mountPage(/activate/#{code}, BarcodePage.class);

On 01/05/2013 12:07 PM, chrome1235 wrote:

Hi,

I want to integrate zxing application (barcode reader) to my web application
for android phones.

When user click an ajax button in a page,
the code will call zxing with a custom url (like:
zxing://scan/?ret=http://mydomain.com/MyApp/{CODE};),
then zxing can post or (get) to a generated url according to my parameters.

Can I handle this url (zxing's post url) at the same page?



Thanks.
Kemal.




--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Get-data-from-External-application-tp4658441.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




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



Re: Get data from External application.

2013-05-01 Thread Bertrand Guay-Paquet

On 01/05/2013 12:13 PM, Bertrand Guay-Paquet wrote:

In your app init code, mount your page like this:
mountPage(/activate/#{code}, BarcodePage.class);


Assuming you want to mount this under the activate path.

I just noticed your example uses the root app mount. I think you might 
run into some problems with mappers if you use a path like /#{code} 
instead. Incoming requests for other pages could be confused with the 
ones for barcodes.


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



Re: Get data from External application.

2013-05-01 Thread chrome1235
Bertrand thanks for your quick reply.

I will call it from a page (incluedes form and fields). then returned value
fill a form text element. lastly user submit all values.

If I can not succeed by this method, I will do with your suggestion.
 



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Get-data-from-External-application-tp4658441p4658444.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