Where are you putting the Pivot libraries? In the app I am currently working on, I use Pivot on both the client and server. I put the client libraries in a /lib directory in my application's web root, and the server libraries in /WEB-INF/lib.
On Mar 26, 2010, at 8:37 AM, Luiz Gustavo wrote: > Hi Todd, > > thanks for your answer. > Following your sugestion, I created two projects. One for the Pivot classes > and markups (this is the application jar file) and another project for the > web application, that uses the pivot application jar file. > The imagens show project details and the main page, that would load the > applet. I'm getting errors because the applet isn't able to load the > dependencies. > Am I missing something? > > > Cheers, > > Luiz Gustavo > > > 2010/3/26 Todd Volkert <[email protected]> > Hi Luiz, > > The only real requirement is that your jar files are locatable via HTTP on > the same domain as your HTML page containing the applet. Then, you will > generally use Sun's Java Deployment Toolkit (a Javascript file containing > cross-browser JS) to detect the user's Java plug-in version and write out the > applet tags (or force them to install the Java plug-in). Examples of this > can be found in the online Pivot demos (e.g. > http://pivot.apache.org/demos/kitchen-sink.html for a full-screen app, and > http://pivot.apache.org/demos/decorators.html for a non-full-screen one). > > The only thing that springs to mind with your EJB question is that you might > have to sign your jar files to perform cross-domain requests legally from > within the applet. > > Let me know if you have any questions about the parameters that are being > passed to the applet in the examples. > > Cheers, > -T > > > On Fri, Mar 26, 2010 at 2:02 AM, Luiz Gustavo <[email protected]> wrote: > Hi! > > Could anyone post in some place (or send me) some example or reference of a > web application based on Pivot? > All the examples on the project site are desktop based, and it would be nice > to have some clear explanation on how to configure a web based project. For > example: How to organize artifacts in a project and how to configure a web > page to load the components. And, even more, how could I comunicate with EJB > components if I decide to deploy the web application based on Pivot in a > machine, and deploy EJB components in another machine? > > Sorry if these sounds like stupid questions or necessities, but since the > tecnology aims to be used in both platforms, web and desktop, its necessary > to show examples in both cases for a fast evaluation. > In my specific case, I have to set up an architecture possibly using Pivot, > and its being difficult to find direct examples for a fast prototype. > > Thanks in advance! > > Best regards. > > > Luiz Gustavo S. de Souza > Analista de Sistemas - Desenvolvedor Java > > http://luizgustavoss.wordpress.com > http://luizgustavoss.blogspot.com > http://twitter.com/lugustso > > > > > <error.png><pivot_projects.png>
