Yves, also writing your own tag usually isn't so bad...  There are examples
of this throughout the module repository.  Htmlformflowsheet uses some:

you just need to make a .tld file, and then have the .tld file point to a
real java class.  Then you just need to include the .tld at the top of your
jsp page.  To see this, in htmlformflowsheet, look at:

/web/module/taglib/htmlformflowsheet.tld
the stuff in /web/src/org/openmrs/htmlformflowsheet/web/taglibs
and then to use your tags, you just include the following at the top of any
jsp in the module.  This can be a jsp or a portlet.

<%@ taglib prefix="htmlformflowsheet"
uri="/WEB-INF/view/module/htmlformflowsheet/taglib/htmlformflowsheet.tld" %>

(just change 'htmlformflowsheet' to your module name)

and when you use your custom tag, it looks like this:

<myModuleName:tagName args... />

where myModuleName is what you put for prefix in the include in the jsp,
and the tagName is the name in the .tld file for the specific tag.  The
arguments can be whatever the tld says the arguments are.

d

On Fri, Dec 16, 2011 at 7:58 AM, Darius Jazayeri <[email protected]>wrote:

> Hi Yves,
>
> I thought that this was implemented, but apparently it hasn't been.
>
> One option will be to include the global properties portlet twice, but
> this won't be possible until OpenMRS 1.9 (see
> https://tickets.openmrs.org/browse/TRUNK-2064), but we could backport
> this further. What version are you targeting?
>
> Alternately you could add the feature to the global properties portlet to
> take "globalProperties" in addition to "globalPropertyPrefix". That would
> be a useful feature.
>
> -Darius
>
>
> On Thu, Dec 15, 2011 at 3:34 PM, Yves GAKUBA <[email protected]> wrote:
>
>> Hi Devs,
>>
>> How do I use the globalproperties portlet when propertyPrefix are not the
>> same?
>>
>> e.g: *concept.weight* & *dashboard.overview.showConcepts *are all two
>> global properties created by OpenMRS, how do I display these global
>> properties on the same page (customized configuration page) using
>> globalproperties portlet?
>>
>> Thanks,
>> --
>> Yves GAKUBA
>>
>>  ------------------------------
>> Click here to 
>> unsubscribe<[email protected]?body=SIGNOFF%20openmrs-devel-l>from 
>> OpenMRS Developers' mailing list
>
>
> ------------------------------
> Click here to 
> unsubscribe<[email protected]?body=SIGNOFF%20openmrs-devel-l>from 
> OpenMRS Developers' mailing list
>

_________________________________________

To unsubscribe from OpenMRS Developers' mailing list, send an e-mail to 
[email protected] with "SIGNOFF openmrs-devel-l" in the  body (not 
the subject) of your e-mail.

[mailto:[email protected]?body=SIGNOFF%20openmrs-devel-l]

Reply via email to