I wonder why there aren't any reusable components out there for stuff like this. Is there some wicket common components market, or something similar where I could possibly post components I would create for me, regarding YT?
pavol On Tue, Apr 19, 2011 at 3:24 PM, Martin Grigorov <[email protected]>wrote: > On Tue, Apr 19, 2011 at 10:43 AM, James Carman > <[email protected]>wrote: > > > Perhaps you can submit the form yourself using something like Apache > > HttpClient? I don't know if it's worth it or not, but if you really > > want to manage your form using Wicket, then you can submit your form > > to your Wicket code and once you have the information gathered, you > > then manually submit the information to YouTube behind the scenes. > > > > He wants to submit directly to YT, without going to his web server. > > Create either a Page or a Resource which will handle the YT response. > Extend Form class and in onComponentTag() override 'action' attribute with > the URL you need to pass to YT - this URL should be created with > RequestCycle.urlFor(Page|Resource.class). > > There is a recipe for OpenID in Apache Wicket Cookbook. The same logic. > > > > > On Tue, Apr 19, 2011 at 3:39 AM, Pavol Zibrita <[email protected]> > > wrote: > > > Hi! > > > > > > Well I know how to do it, I just don't know how to do it in wicket... > > > > > > in ytd a form is created, where target url is the url to youtube site, > > going > > > as POST with some aditional parameters. > > > No, with that I have problem in wicket, as I was writing. How do I > create > > a > > > form where I can specify target url to be going, and return url where > the > > > youtube should sent the response to my application again. > > > > > > can anyone help me with that? > > > > > > Thanx, > > > Pavol > > > > > > On Tue, Apr 19, 2011 at 9:31 AM, James Carman < > > [email protected]>wrote: > > > > > >> Why not look at the source for YTD and see if there's anything you can > > >> "borrow" from them? > > >> > > >> On Tue, Apr 19, 2011 at 2:11 AM, Pavol Zibrita < > [email protected] > > > > > >> wrote: > > >> > Hi! > > >> > > > >> > Ytd is bunch of servlets and jsp. And I want it to work in wicket. > > But I > > >> > have problems I have described. > > >> > > > >> > Thanx, > > >> > Pavol > > >> > On Apr 19, 2011 1:33 AM, "Zilvinas Vilutis" <[email protected]> > > wrote: > > >> >> I think it is YouTubeDirect that you're looking for: > > >> >> http://code.google.com/p/youtube-direct/wiki/GettingStarted > > >> >> > > >> >> Regards > > >> >> > > >> >> Žilvinas Vilutis > > >> >> > > >> >> Mobile: (+370) 652 38353 > > >> >> E-mail: [email protected] > > >> >> > > >> >> > > >> >> > > >> >> On Mon, Apr 18, 2011 at 2:25 PM, Pavol Zibrita < > > [email protected] > > >> > > > >> > wrote: > > >> >>> Hi There! > > >> >>> > > >> >>> I'm quite new to wicket and I'm doing a web application where > > user's > > >> > can > > >> >>> upload videos to youtube. For that, there is an youtube API from > > >> google. > > >> > The > > >> >>> problem I have is that I need to use browser-based upload, which > > means, > > >> > that > > >> >>> the actual upload should go directly to youtube and not to the > > server, > > >> > where > > >> >>> my application is running. > > >> >>> And that is the point where my lack knowledge of wicket is > > stopping > > >> me. > > >> >>> > > >> >>> Basically I would like to present a user a form, where he can > enter > > >> some > > >> >>> values about the video (name, category, etc), the file he wants to > > >> > upload. > > >> >>> This form should be submitted than to the youtube site with post > > method > > >> > and > > >> >>> some extra parameters. But I actually don't know how to do that. > Can > > I > > >> >>> change target in standard wicket form? And if I use the form in > > popup, > > >> > how > > >> >>> will I close the popup if the form goes to youtube? > > >> >>> Has anyone experience with this? > > >> >>> > > >> >>> I don't know what else information to write here, so if anything > > more > > >> is > > >> >>> needed ask for it. I hope someone will help me. > > >> >>> > > >> >>> Thanx, > > >> >>> Pavol > > >> >>> > > >> >> > > >> >> > --------------------------------------------------------------------- > > >> >> To unsubscribe, e-mail: [email protected] > > >> >> For additional commands, e-mail: [email protected] > > >> >> > > >> > > > >> > > >> --------------------------------------------------------------------- > > >> To unsubscribe, e-mail: [email protected] > > >> For additional commands, e-mail: [email protected] > > >> > > >> > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [email protected] > > For additional commands, e-mail: [email protected] > > > > > > > -- > Martin Grigorov > jWeekend > Training, Consulting, Development > http://jWeekend.com <http://jweekend.com/> >
