Robert, I agree with you definitefly.

Wicket should provide a "generic" PageService not tied to a specific
component. It would be very useful for client-server interaction where a
visual component is not req

On 3/16/07, Robert . <[EMAIL PROTECTED]> wrote:

Hi!

A Tapestry service basically has a
public void service(RequestCycle) method.
Something like a PageService would do something like
cycle.activate(cycle....param[0])

Now I understand that I don't usually need a PageService. The onClick for
Link components are much easier to use. However what if I don't have a
component and
there is some javascript that wants to change the page? I'll try to write
about this more in the other replies in this thread.

Robert


On 3/15/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
>
> you wanted to know how to have an equivalent of a tapestry service. if i
> remember correctly tapestry services return things. like an asset service
> that streams images.
>
> if all you want is a callback then you can use urlFor methods to build
> such a callback url. see, for example, how Link component does it.
>
> wicket is event driven. tapestry is also, but not to the same degree. in
> wicket you rarely need to build urls yourself because we provide components
> that do this for you.
>
> for example Link has an onClick() method and a Button has onSubmit().
> wicket takes care of wiring these methods with urls it generates.
>
> -igor
>
>
> On 3/15/07, Robert . < [EMAIL PROTECTED]> wrote:
> >
> > Really? A resource?
> > But I have nothing to return from my service resource.
> >
> > Robert
> >
> >
> > On 3/15/07, Igor Vaynberg < [EMAIL PROTECTED]> wrote:
> > >
> > > wicket's equivalent of a service is a shared resource. you can
> > > register your own shared resources through your webapplication subclass.
> > >
> > > as far as selecting pages via javascript:
> > >
> > > wicket doesnt really have a page service. urls for pages are
> > > resolved internally. if you want a stable entry point into the page then 
you
> > > should mount it, also via the webapplication subclass, and then the
> > > javascript can redirect to the mounted url.
> > >
> > > -igor
> > >
> > >
> > > On 3/15/07, Robert . < [EMAIL PROTECTED]> wrote:
> > >
> > > > Hi,
> > > >
> > > > I have been examining how I can convert a web application product
> > > > from Tapestry 3 to Wicket, and trying to adapt
> > > > myself to the Wicket way of thinking about web flow.
> > > >
> > > > One part that I just can't seem to figure out from reading Pro
> > > > Wicket and browsing through the apidocs is how to
> > > > make something like Tapestry "services".
> > > >
> > > > For example I have an action service in Tapestry that let's me
> > > > send an action command, including additonal parameters,
> > > > to the service by using javascript. I have such a service for both
> > > > normal requests and XMLHTTP requests. But thinking
> > > > about this further makes me realize I don't even know how to make
> > > > something like a PageService where the page is determined by javascript.
> > > >
> > > > I feel like I am missing something.
> > > >
> > > > Robert
> > > >
> > > >
> > > >
> > > >
> > > > 
-------------------------------------------------------------------------
> > > > Take Surveys. Earn Cash. Influence the Future of IT
> > > > Join SourceForge.net's Techsay panel and you'll get the chance to
> > > > share your
> > > > opinions on IT & business topics through brief surveys-and earn
> > > > cash
> > > >
> > > > 
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > > > _______________________________________________
> > > > Wicket-user mailing list
> > > > Wicket-user@lists.sourceforge.net
> > > > https://lists.sourceforge.net/lists/listinfo/wicket-user
> > > >
> > > >
> > >
> > >
> > > -------------------------------------------------------------------------
> > > Take Surveys. Earn Cash. Influence the Future of IT
> > > Join SourceForge.net's Techsay panel and you'll get the chance to
> > > share your
> > > opinions on IT & business topics through brief surveys-and earn cash
> > >
> > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > > _______________________________________________
> > > Wicket-user mailing list
> > > Wicket-user@lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/wicket-user
> > >
> > >
> >
> >
> > -------------------------------------------------------------------------
> > Take Surveys. Earn Cash. Influence the Future of IT
> > Join SourceForge.net's Techsay panel and you'll get the chance to
> > share your
> > opinions on IT & business topics through brief surveys-and earn cash
> >
> > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > _______________________________________________
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
> >
>
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys-and earn cash
>
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to