mojo

Difference between '%p' and 'my %p' ?

% %p = ('option1' => 'Option 1', % 'option2' => 'Option 2', % 'option3' => 'Option 3' % ); <select name="killer_feature" id="killer_feature" class="select"> % foreach (keys %p) { % my $selected = param('killer_feature') && param('killer_feature') eq $_ ? 'selected="selected"' : ''; % if (!param('killer_feature') && $_ eq 'option2')...

Output command to socket without buffering using Mojo::IOLoop

How to do continiously output of command (for me it's long ping) in real-time mode on Mojo server? I'm looking for some example on Mojo::IOLoop. For example, client connects to server and requests for ping X.X.X.X, server returns an non-buffered output (while ping on server return each line to output, client receive this line from socket...

Calling setupWidget from the stage assistant in WebOS/Mojo

The scroller and other widgets in Palm's WebOS are commonly called like so: this.controller.setupWidget(Mojo.Menu.appMenu, {}, this.appMenuModel); within on of the JavaScript assistant files representing a 'scene'. My application is dead simple and requires only one view, so I'm not using anything other than the stage-assistant fil...

Why JQuery's .post returns no data?

I post JSON request to remote service. Everything is OK, service works fine and it response to me. But I have no data returned from remote service. How to get data from remote json service by JQuery via .post? Why this example returns the data -- ``null': <SCRIPT> $(function() { $('#zzz').click(function() { $('#lak').html('...

How to make list in webOS look like Grid?

I tried 'float: left;', but when scrolling(slowly is clearer), only one list item scroll..but not numItem of one row..(But photos app built in palm pre ROM woks just fine) In one file: <div id="results-list" class='thumb-list' x-mojo-element="List"></div> In another: <ul>#{-listElements}</ul> In another: <li class='thumb-item'>...

Triggering SOAP requests in a Maven Mojo

I have a WSDL which I need to trigger some commands from. I need to do this as part of a Maven Plugin (Mojo) I'm a relative newbie to SOAP so what I want to know is this: 1) Is this possible? Can the SOAP calls be run from a Maven Plugin or does it require a container or something else? 2) If so, what tools should I use to do this? I...

How to get the current MavenSession or MavenExecutionRequest from a Plexus Component

I created a Plexus component to house common logic for several Mojos I want to create. I have been able to pass information like localRepository and project from the Mojo (and test cases). I was wondering if there is a way to get the MavenSession or MavenExecutionRequest from within the component without having to pass them as paramete...

Your thoughts on a proposal to manage JavaScript dependencies

I've recently done a great deal of JavaScript programming in the context of developing a Rich Internet Application. My view at the start of development is pretty much what it is now; JS RIA works but the development tools are lacking. One tool that I missed in particular was for managing dependencies. What I found was that I ended up wi...

hosting mojoportal on plesk and getting web.config error

hi! i am trying to host mojo portal 2.2.7.9 on Plesk but getting the following error. i have changed to but its showing the same error page..pls help!!!!: Server Error in '/' Application. Runtime Error Description: An application error occurred on the server. The current custom error settings for this application prevent the details...

Maven mojo plugin, how to define phases that must be triggered before this goal ?

hey, I have a deploy pojo plugin (deploying a war to a remote server). I have the remote-deploy plugin in the build section of pom definition, I need package phase to be triggered before deploy-remote goal, for it the war be already created before I secure-copy it to a remote server. With the execution elements (according to a documen...

Maven Plugin Logger Compatibility

I am writing a Maven plugin (Mojo) that imports a Jar library used by other projects. At least one of the classes in that library use Apache Log4j for logging, but Log4j is not going to be properly configured by the logger that Maven provides to the Mojo. Is there any simple way to bridge between these? Unfortunately, org.apache.log4j.L...

Starting and stoping listeners in Mojo framework (WebOS)

Hi, I am starting WebOS dev and I have a doubt on where should I start and stop my listeners ? I am reading this book but I couldn't find a clear explanation about this. In the sample the author set the listeners in the setup function but I wonder why? isn't a better idea to set them in activate function and stop them in deactivate func...