HelloWorld Unit sample code

08 Nov '12, 12:41 AM
45,352 Views
Forum Forum Starter - Level 2

Hi, can someone tell me how/where in the HelloWorld.unit.temp file (of the HellowWorld Unit sample tutorial) I put the code:

<c:out value="${&lt;wr:UnitId/&gt;.message}" &gt;="" <="" p="">

It is the step "Create the Unit template" and the tutorial says:

Now you can edit the HelloWorld.unit.template file. The important thing is to write the unit message using the "message" property.

< c:out value="${<wr:unitid/>.message}"/>

But I get an error:

An error occurred

/page1.jsp(76,0) The function message must be used with a prefix when a default namespace is not specified

If I don't add the line of code the tutorial says to put in the template, the page renders correctly (though without the unit obviously). Please Help

 
x 0
Follow
Answer Answer at this question and get points!
Forum Starter - Level 2

I solved it. It wasn't the code in the HelloWorld.unit.template file at all.

The HellowWorldUnitService.java file's execute() method needed to just return the HellowWorldUnitBean object, not the string from the getMessage() property.

eg, this:

    return hwub;

not this:

    return hwub.getMessage();

   
x 0
Answer at this question and get points!

Related questions

2 grids inside one/same cell result in non-selectable 2nd grid 404 on generated app page 500 error with WebRatio BPM 502 proxy error-generate and run Access page variable in a page template add html Admin area disabled aggiornamento fallito a causa di un errore interno Ajax and FCK Editor (WebRatio 5.x) AJAX events problem to external JavaScript Ajax is not working in own style project Ajax onchange and jQuery 2.x (with migrate plugin) incompatible Ajax web app with javascript history object using the WebRatio Alimentar graficas con base de datos Alternate way to get current User Oid in layout template groovy script? Any sample deployment Any way to localize the Tab Grid Template (Webratio Store)? Applicare un template ad un Web Project Ayuda Simple List Component Layout personalizado Bootstrap Style Button to go on another page Cambiare dimensioni bottoni - Change button size Can I inject html into custom unit template?! Cannot invoke method putAll() on null object Cannot invoke method selectSingleNode() on null object Can't run any aplication Change color template bootstrap style Change Style Changing the login page does not work ckeditor - change directory for the browser Code is exceeding the 65535 bytes limit error on JBOSS Colore Attributi index unit Dinamico - Index unit dynamic attribute color Como abrir una ventana en ajax desde una master page Como embeber un video subido desde archivo ? Como mostrar una imagen de portada arriba del menu? Como mostrar una imagen en una lista o en la componente detalles? Compare with the current time Component computation com.webratio.struts.exceptions.WRSecurityException: Invalid request target host Confirm Dialog Connection refused. Customize layout mobile platform Custom Tooltip Position Database connection, Host and Port number DB in Data Service Project Debug configuration Default error pages default login page Display contents of a URL Dynamic link labelling for Custom Unit error activating student account Error deploying WAR against to JBOSS Error in Error updating metadata process Error when updating to WR 7.2.3 Excel Unit - Font size Export to a HTML/CSS/JS project Field as link soruce File CSS non considerato in generazione Filtros Caracteres Especiales Find Model Problemas Format currency Form element Form template From BPM to WebProject - BUILD FAILED Generation errors on ajax enabled page with many components, ajax links and selective refresh "Generation Error" with Generate and Run Get date pattern Get home page from template Google map is not shown properly in the tab grid Groovy script numer after an error Guardar Saltos de LINEA Help with math unit. Debug mode says error as result code Hiding landmarks (or flows) when the user is logged in Hierarchy component How can i create pagemenu or landmarkmenu with multiple levels. How can I modified the htmls files to perform my style How to add an image in a modal/pop-up window? how to delete this error? How to get a wr:AjaxURL tag working How to include a template into other template? How to localize AJAX waiting dialog? How to localize the multi message unit in the notification layout How to modify template? How to modify the FertileEnviroment Default page How to remove default Linked Resources? How to use LandmarkMenu as AJAX navigation how to use the landmark menu as AJAX navigation i can't install mobile version on windows I can't install Webratio on my Desktop (Ubuntu 13.04 x64) I can't run any application with WebRatio (Table/View 'APP.POST' does not exist) Installation with java 1.8 Installazione Macosx integrate framework to webratio mobile Integrazione javascript invio mail fallito java.lang.NullPointerException Javascript and html javascript history object java virtual machine error Job not start correctly JSP/DO issues on Tomcat 5.5 (Ubuntu) Localize "Welcome..." and "Process details" Login Error logo webratio mandatory control code parameter is missing meaning of each tag in the XML code (Show XML/Show Layout XML) Mensaje: the selection cannot be launched and there are no recent launches Missing plugin emulation support error Missing units when importing project modify field html Modify html generated by wr:NavigationBar Multi Selects didn't work in update page Next Activity Note property - Error synchronizing with web project No access to protected site view with Login No Apache Derby driver found No database on my cloud account Page Home - First time the Project Web begins Pages Problem After Project Generation pass template variable Problema al generar y ejecutar proyecto Problema generazione codice Problema Grafo da una lista gerarchica Problema ¨HTTP Status 404" Problemas con el Operations View Delete Problem: Compile Failed problemi installazione su Mac sistema operativo OSX El Capitan Problem Login Form only if user not logged problem on first deploy with webratio Problem print Problems to connect Sql Server DB from Webratio Problems with the page refresh (Tab Grid) Problem syncing reports Problem to run an Application Problem with adding templates Problem with application runnung Problem with execution of webratio Problem with ireport Problem with the deletion of more than 50.000 records in a table Project cannot be opened with WebRatio Community Platform query unit who to hide fields that are used in a link Recursive Hierarchical Index Unit Style Tree Redirect to the default module Remove default BPM css import for all templates Responsive Bootstrap Grid Responsive Layout Manager Sample web application Set context parameter Showing items that have a relation with an entity Simple Static Page Solve "Generation Error" with Generate and Run option Standard confirm dialog replacement Student reserved area, download error Style hierarchical unit help!! Supoort for Mobile and Desktop display Table 'freeapp43.profesion' doesn't exist Target tabs in Tab Grid Control Tomcat external session store and WebRatio webapp. Tooltip on a field Too much layout parameters = no scroll in parameters config window "Unable to close sub-context ..." Unable to compute the controller URL(s) for applicationUnable to compute the controller URL(s) for application having status PROVISIONING Unable to connect to Internet Unable to execute the script java.lang.NullPointerException Unable to find Cloud free function Unable to get ExpenseReport example work in WebRation Personl 7.2.2 Unable to instantiate a new application instance Unable to update the web project Unspecified BPM Engine Database Updating attributes of an entity Uppercase Use image as interaction flow User Login Timestamp Vista de diferentes Site Views Webratio Add-ons no permite login Web Ratio Add-ons shop not working WEBRATIO LINUX AT EXECUTION TIME Web Ratio Mobile plateform Macos Sierra Web Ratio Mobile - Remote data mapping problem When execute my web application I have this error: returned a null bean wr-ajaxDivs break layout on ajax pages. XPCOM Error